/* Products Sayfası Özel Stilleri */
.product-frame {
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
   
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-card .img-container {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    background-color: #fff;
    position: relative;
    padding: 10px;
}

.product-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
}

.product-card .product-code {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-card .product-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
    overflow: visible;
    display: block;
}

.product-card .price-container {
    margin-top: auto;
}

.product-card .price-info {
    margin-bottom: 1rem;
}

.product-card .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.product-card .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.product-card .discount-badge {
    background: #e91e63;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.product-card .tax {
    font-size: 0.8rem;
    color: #666;
}

.product-card .button-container {
    display: flex;
    gap: 0.5rem;
}

.product-card .btn-add-cart {
    flex: 1;
    padding: 0.25rem;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: #4caf50;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-card .btn-add-cart:hover {
    background: #43a047;
}

.product-card .btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.product-card .btn-detail {
    padding: 0.25rem;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: #2196f3;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .btn-detail:hover {
    background: #1976d2;
}

.product-card .stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    z-index: 2;
    line-height: 1.4;
}

.product-card .stock-badge.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.product-card .stock-badge.critical-stock {
    background: #fff3e0;
    color: #ef6c00;
}

.product-card .stock-badge.low-stock {
    background: #fff8e1;
    color: #f9a825;
}

.product-card .stock-badge.medium-stock {
    background: #f1f8e9;
    color: #558b2f;
}

.product-card .stock-badge.good-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.product-card .stock-badge.high-stock {
    background: #e8f5e9;
    color: #1b5e20;
}

/* Banner Carousel Styles */
.banner-carousel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-carousel .carousel {
    border-radius: 8px;
}

.banner-carousel .carousel-item {
    height: 300px;
}

.banner-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.banner-carousel .carousel-indicators {
    margin-bottom: 0.5rem;
}

.banner-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
}

.banner-carousel .carousel-indicators button.active {
    background-color: #fff;
}

.banner-carousel .carousel-control-prev,
.banner-carousel .carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-carousel:hover .carousel-control-prev,
.banner-carousel:hover .carousel-control-next {
    opacity: 0.8;
}

.img-container {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

    .img-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Action Buttons - Ortak Stiller */
.btn-group-sm > .btn,
.btn-sm {
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-group-sm > .btn i,
.btn-sm i {
    font-size: 0.75rem;
    margin: 0;
}

.btn-group {
    display: inline-flex;
    gap: 6px;
    text-align: center;
    width: fit-content;
}

/* Hover efektleri */
.btn:hover {
    transform: translateY(-1px);
    color: white;
}

.btn-primary:hover { background-color: #0d6efd; }
.btn-danger:hover { background-color: #dc3545; }
.btn-success:hover { background-color: #198754; }
.btn-warning:hover { background-color: #ffc107; }
.btn-info:hover { background-color: #0dcaf0; }

/* Banner Management */
.banner-table-image {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
}

.banner-modal-image {
    max-width: 200px;
    object-fit: contain;
}

/* Discount Management */
.hidden-group {
    display: none;
}

.discount-table {
    width: 100%;
    margin-bottom: 1rem;
}

    .discount-table th,
    .discount-table td {
        vertical-align: middle;
    }

.discount-badge {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.discount-rate {
    font-weight: bold;
    color: #dc3545;
}

.discount-actions {
    display: flex;
    gap: 6px;
}

/* Table Styles */
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 8px;
}

.table tbody td {
    padding: 8px;
    font-size: 0.75rem;
    vertical-align: middle;
}

.table .form-control {
    font-size: 0.75rem;
    padding: 4px 8px;
    height: auto;

}

/* API Update Button Container */
.api-update-container {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

#updateFromApiButton {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    #updateFromApiButton i {
        font-size: 0.75rem;
    }
.filter-frame {
    padding: 0.5rem;
}

    .filter-frame .row {
        display: flex;
        align-items: center;
    }

    .filter-frame .col-auto {
        display: flex;
        align-items: center;
    }

    .filter-frame .form-group {
        margin-bottom: 0;
    }

    .filter-frame button {
        height: 28px;
        padding: 0 0.8rem;
        font-size: 0.75rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 20px;
    }
/* Filtre Alanı Stilleri */
.filter-container {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .filter-container .form-group {
        margin-bottom: 0;
    }

    .filter-container label {
        display: block;
        margin-bottom: 0.5rem;
        color: #333;
        font-weight: 500;
        font-size: 0.75rem;
    }

.filter-input {
    width: 100%;
    height: 28px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    transition: border-color 0.15s ease-in-out;
}

    .filter-input:focus {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.filter-container .btn {
    height: 28px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive Tasarım */
/* Mobil (320px - 767px) */
@media (max-width: 767px) {
    .banner-carousel .carousel-item {
        height: 200px;
    }

    .filter-container {
        padding: 0.5rem;
    }
    
    .filter-row {
        gap: 8px;
    }
    
    .filter-item {
        min-width: 100%;
    }
    
    .filter-item label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .filter-item input,
    .filter-item select {
        width: 100%;
        height: 35px;
        font-size: 0.8rem;
        padding: 0 8px;
        margin: 0;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .product-card {
        padding: 0.5rem;
    }

    .product-card .img-container {
        width: 120px;
        height: 120px;
    }

    .product-card .product-title {
        font-size: 0.75rem;
    }

    .product-card .price {
        font-size: 1rem;
    }

    .product-card .button-container {
        flex-direction: column;
    }

    .product-card .btn-add-cart, 
    .product-card .btn-detail {
        width: 100%;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Banner Carousel */
    .banner-carousel .carousel-item {
        height: 250px;
    }

    /* Button Group */
    .btn-group {
        gap: 4px;
    }
    
    .btn-group-sm > .btn,
    .btn-sm {
        width: 26px;
        height: 26px;
    }

    /* Filter */
    .filter-container {
        padding: 15px;
    }
    
    .filter-row {
        gap: 10px;
    }
    
    .filter-item {
        min-width: 180px;
    }
    
    .filter-item label {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }
    
    .filter-item input,
    .filter-item select {
        width: 140px;
        height: 25px;
        font-size: 0.8rem;
        padding: 0 8px;
        margin: 0 10px 0 0;
    }

    .filter-input {
        height: 26px;
        font-size: 0.7rem;
    }
    
    .filter-container .btn {
        height: 26px;
        font-size: 0.7rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .product-card .img-container {
        width: 150px;
        height: 150px;
    }

    .product-card .product-title {
        font-size: 0.75rem;
    }

    .product-card .btn-add-cart,
    .product-card .btn-detail {
        height: 26px;
        font-size: 0.7rem;
    }

    /* Stock Badge */
    .product-card .stock-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }

    /* Table */
    .table thead th,
    .table tbody td {
        font-size: 0.7rem;
        padding: 6px;
    }

    /* API Update Button */
    #updateFromApiButton {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    /* Filter Frame */
    .filter-frame button {
        height: 26px;
        font-size: 0.7rem;
        padding: 0 0.7rem;
    }

    .table thead th,
    .table tbody td {
        font-size: 0.7rem;
        padding: 6px;
    }

    #updateFromApiButton {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .filter-frame button {
        height: 26px;
        font-size: 0.7rem;
        padding: 0 0.7rem;
    }

    .product-card .stock-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }

    .filter-input {
        height: 26px;
        font-size: 0.7rem;
    }
    
    .filter-container .btn {
        height: 26px;
        font-size: 0.7rem;
    }
}


@media (min-width: 1024px) and (max-width: 1366px) {
    /* Banner Carousel */
    .banner-carousel .carousel-item {
        height: 300px;
    }

    /* Button Group */
    .btn-group {
        gap: 6px;
    }

    /* Filter */
    .filter-container {
        background: #fff;
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .filter-item {
        min-width: 165px;
    }

        .filter-item label {
            font-size: 0.65rem;
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
            font-weight: 500;
        }

        .filter-item input,
        .filter-item select {
            width: 160px;
            font-size: 0.75rem;
            height: 28px;
        }

    .filter-input {
        height: 28px;
        font-size: 0.75rem;
    }

    .filter-container .btn {
        height: 28px;
        font-size: 0.75rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .product-card .img-container {
        width: 180px;
        height: 180px;
    }

    .product-card .product-title {
        font-size: 0.8rem;
    }

    .product-card .btn-add-cart,
    .product-card .btn-detail {
        height: 28px;
        font-size: 0.75rem;
    }

    /* Stock Badge */
    .product-card .stock-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
    }

    /* Table */
    .table thead th,
    .table tbody td {
        font-size: 0.75rem;
        padding: 8px;
    }

    .form-control {
        font-size: 0.75rem;
        padding: 4px 8px;
        height: auto;
        width: 165px;
        margin: 0 8px 0 0;
    }

    /* API Update Button */
    #updateFromApiButton {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* Filter Frame */
    .filter-frame button {
        height: 28px;
        font-size: 0.75rem;
        padding: 0 0.8rem;
    }

    .table thead th,
    .table tbody td {
        font-size: 0.75rem;
        padding: 8px;
    }

    .form-control {
        font-size: 0.75rem;
        padding: 4px 8px;
        height: auto;
        width: 165px;
        margin: 0 8px 0 0;
    }

    #updateFromApiButton {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .filter-frame button {
        height: 28px;
        font-size: 0.75rem;
        padding: 0 0.8rem;
    }

    .product-card .stock-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
    }

    .filter-input {
        height: 28px;
        font-size: 0.75rem;
    }
    
    .filter-container .btn {
        height: 28px;
        font-size: 0.75rem;
    }
}

/* PC (1367px - 1919px) */
@media (min-width: 1367px) and (max-width: 1919px) {
    #updateFromApiButton {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }

    /* Banner Carousel */
    .banner-carousel .carousel-item {
        height: 350px;
    }

    /* Button Group */
    .btn-group {
        gap: 8px;
    }

    /* Filter */
    .filter-item label {
        font-size: 0.7rem;
    }

    .filter-item input,
    .filter-item select {
        font-size: 0.8rem;
        height: 30px;
    }

    .filter-input {
        height: 30px;
        font-size: 0.8rem;
    }

    .filter-container .btn {
        height: 30px;
        font-size: 0.8rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .product-card .product-title {
        font-size: 0.85rem;
    }

    .product-card .price {
        font-size: 1.2rem;
    }

    .product-card .img-container {
        width: 200px;
        height: 200px;
    }

    .product-card .btn-add-cart,
    .product-card .btn-detail {
        height: 30px;
        font-size: 0.8rem;
    }

    /* Stock Badge */
    .product-card .stock-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    /* Table */
    .table thead th,
    .table tbody td {
        font-size: 0.8rem;
        padding: 10px;
    }

    /* API Update Button */
    #updateFromApiButton {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }

    /* Filter Frame */
    .filter-frame button {
        height: 30px;
        font-size: 0.8rem;
        padding: 0 0.9rem;
    }

    .table thead th,
    .table tbody td {
        font-size: 0.8rem;
        padding: 10px;
    }
    .filter-frame button {
        height: 30px;
        font-size: 0.8rem;
        padding: 0 0.9rem;
    }
    .product-card .stock-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    .filter-input {
        height: 30px;
        font-size: 0.8rem;
    }
    
    .filter-container .btn {
        height: 30px;
        font-size: 0.8rem;
    }
}


/* 4K ve Üzeri (1920px ve üzeri) */
@media (min-width: 1920px) {
    /* Banner Carousel */
    .banner-carousel .carousel-item {
        height: 400px;
    }

    /* Button Group */
    .btn-group {
        gap: 10px;
    }

    .btn-group-sm > .btn,
    .btn-sm {
        width: 30px;
        height: 30px;
    }

    /* Filter */
    .filter-item label {
        font-size: 0.75rem;
    }

    .filter-item input,
    .filter-item select {
        font-size: 0.85rem;
        height: 32px;
    }

    .filter-input {
        height: 32px;
        font-size: 0.85rem;
    }

    .filter-container .btn {
        height: 32px;
        font-size: 0.85rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .product-card .product-title {
        font-size: 0.9rem;
    }

    .product-card .price {
        font-size: 1.3rem;
    }

    .product-card .btn-add-cart,
    .product-card .btn-detail {
        font-size: 1rem;
        padding: 0.7rem;
    }

    .product-card .img-container {
        width: 220px;
        height: 220px;
    }

    /* Stock Badge */
    .product-card .stock-badge {
        font-size: 0.75rem;
        padding: 0.45rem 0.8rem;
    }

    /* Table */
    .table thead th,
    .table tbody td {
        font-size: 0.85rem;
        padding: 12px;
    }

    /* API Update Button */
    #updateFromApiButton {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Filter Frame */
    .filter-frame button {
        height: 32px;
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    .table thead th,
    .table tbody td {
        font-size: 0.85rem;
        padding: 12px;
    }

    #updateFromApiButton {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .filter-frame button {
        height: 32px;
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    .product-card .stock-badge {
        font-size: 0.75rem;
        padding: 0.45rem 0.8rem;
    }

    .filter-input {
        height: 32px;
        font-size: 0.85rem;
    }
    
    .filter-container .btn {
        height: 32px;
        font-size: 0.85rem;
    }
}




