﻿.sepet-satir.gizli {
    display: none !important;
}

.table td {
    vertical-align: middle;
}

.img-thumbnail {
    border-radius: 8px;
}

.input-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

.sticky-top {
    position: sticky;
    z-index: 1020;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
}

/* Miktar input geçersiz olduğunda */
.miktar-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Dropdown Filtre Stilleri */
.filtre-dropdown .dropdown-toggle {
    height: 31px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

    /* ✅ Bootstrap'in otomatik eklediği sol ok işaretini gizle */
    .filtre-dropdown .dropdown-toggle::after {
        display: none !important;
    }

.filtre-dropdown .dropdown-menu {
    min-width: 250px;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

    .filtre-dropdown .dropdown-menu .filtre-arama {
        border-radius: 0.25rem;
    }

.filtre-dropdown .filtre-checkbox-list {
    background: #f8f9fa;
    border-radius: 0.25rem;
}

    .filtre-dropdown .filtre-checkbox-list::-webkit-scrollbar {
        width: 6px;
    }

    .filtre-dropdown .filtre-checkbox-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .filtre-dropdown .filtre-checkbox-list::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

        .filtre-dropdown .filtre-checkbox-list::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.filtre-dropdown .custom-control-label {
    font-size: 0.875rem;
    line-height: 1.2;
}

.filtre-dropdown .custom-control-input:checked ~ .custom-control-label {
    font-weight: 500;
    color: #007bff;
}

/* Seçili filtre badge */
.filtre-secili-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.75rem;
    margin-left: 4px;
}

/* Gizli checkbox item */
.filtre-checkbox-item.d-none {
    display: none !important;
}

/* Number input spinner okları gizle */
.miktar-input::-webkit-outer-spin-button,
.miktar-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.miktar-input[type=number] {
    -moz-appearance: textfield;
}

/* Logolu/Dökme select stilleri - KÜÇÜLTÜLMÜŞ */
.logolu-urun-select,
.dokme-urun-select {
    font-size: 0.75rem !important; /* Yazı boyutu küçültüldü */
    padding: 0.15rem 0.25rem !important; /* İç boşluk azaltıldı */
    height: auto !important; /* Yükseklik otomatik */
    line-height: 1.2; /* Satır yüksekliği */
}

    /* Option elementleri için */
    .logolu-urun-select option,
    .dokme-urun-select option {
        font-size: 0.65rem;
        padding: 0.10rem;
    }

/* Label'ları da küçült (opsiyonel) */
.logolu-dokme-label {
    font-size: 0.7rem !important;
    margin-bottom: 0.25rem !important;
}



/* Dropdown menu positioning fix */
.product__hover {
    position: relative;
    overflow: visible !important;
}

.product__action-buttons {
    position: relative;
    z-index: 10;
}

    .product__action-buttons .dropdown {
        position: static;
    }

    .product__action-buttons .dropdown-menu {
        position: absolute;
        z-index: 1050;
        margin-top: 0;
        padding: 0.25rem 0;
    }

/* Icon button styling */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

    .icon-btn:hover {
        background-color: #f8f9fa;
        color: #000;
        border-color: #ccc;
        transform: scale(1.05);
    }

/* ✅ Favori durumu - Boş kalp (favoride değil) */
.add-favori i.flaticon-heart {
    color: #999; /* Gri renk */
    font-weight: 300; /* İnce çizgi için */
}

.add-favori:hover i.flaticon-heart {
    color: #e74c3c; /* Hover'da kırmızı */
}

/* ✅ Favori durumu - Dolu kalp (favoride) */
.icon-btn-favorited {
    background-color: #ffe5e5 !important; /* Açık pembe arka plan */
    border-color: #e74c3c !important;
}

    .icon-btn-favorited i.flaticon-heart {
        color: #e74c3c !important; /* Kırmızı kalp */
        font-weight: 900 !important; /* Kalın, dolu görünüm */
    }

    .icon-btn-favorited:hover {
        background-color: #ffcccc !important;
        transform: scale(1.1);
    }

/* Dropdown menu styling */
.product__action-buttons .dropdown-menu {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.product__action-buttons .dropdown-item {
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

    .product__action-buttons .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    .product__action-buttons .dropdown-item i {
        width: 16px;
        font-size: 12px;
    }

/* Prevent overflow issues */
.product__inner {
    overflow: visible !important;
}

.woocommerce-loop-product__link {
    overflow: visible !important;
}








/* Product List Container - Relative position for absolute loading */
#productListContainer {
    position: relative;
    min-height: 400px;
}

/* Loading Indicator - Container içinde absolute - ÜSTTE */
.product-list-loading {
    position: absolute !important;
    top: 50px !important; /* ✅ Üstten 50px aşağıda */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* ✅ Flu beyaz arka plan */
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: flex-start !important; /* ✅ Üst hizalama */
    padding-top: 30px !important; /* ✅ Üstten biraz boşluk */
    min-height: 400px;
}

    .product-list-loading .loading-content {
        text-align: center;
        padding: 40px 60px; /* ✅ Daha geniş padding */
        background: white;
        border-radius: 12px;
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15); /* ✅ Daha belirgin gölge */
        border: 1px solid rgba(4, 30, 66, 0.1); /* ✅ İnce border */
    }

    .product-list-loading .loading-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #041e42;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 15px;
    }

@@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.product-list-loading .loading-text {
    color: #041e42;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Product List Content */
#productListContent {
    position: relative;
    z-index: 1;
}

/* Ürün görseli container'ı sabit yükseklik */
.woocommerce-loop-product__thumbnail {
    height: 250px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background-color: #f8f9fa;
}

    /* Tüm görseller aynı yükseklikte, genişlik otomatik */
    .woocommerce-loop-product__thumbnail img {
        height: 250px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }

/* Product body - Normal durum */
.woocommerce-loop-product__body {
    transition: transform 0.2s ease-in-out !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Hover durumunda yukarı kayma */
.product__inner:hover .woocommerce-loop-product__body {
    transform: translateY(-130px) !important;
}

/* Hover bölümü */
.product__hover {
    min-height: 130px !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #fff !important;
    opacity: 0 !important;
    transition: all 0.1s ease-in-out !important;
    z-index: 2 !important;
}

/* Hover durumunda görünür yap */
.product__inner:hover .product__hover {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* İskonto Badge - Kırmızı kare + aşağı ok */
.product-badge {
    position: absolute !important;
    top: 1px !important;
    left: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(135deg, #041e42 0%, #041e50 100%) !important;
    color: white !important;
    padding: 5px 5px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 30px !important;
    font-weight: bold !important;
    text-align: center !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
    margin-left: 8px;
    border-bottom-left-radius: 8px;
}

    /* Aşağı ok (üçgen) - CSS ile */
    .product-badge::after {
        content: "" !important;
        position: absolute !important;
        bottom: -15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
    }

.badge-percent {
    font-size: 14px !important;
    line-height: 1 !important;
    display: block !important;
    margin-bottom: 2px !important;
    font-weight: 700 !important;
}

.badge-text {
    font-size: 10px !important;
    line-height: 1 !important;
    display: block !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* Hover efekti */
.product__inner:hover .product-badge {
    transform: scale(1.05) !important;
    transition: transform 0.2s ease !important;
}

/* Responsive */
@@media (max-width: 768px) {
    .product-badge {
        padding: 8px 12px !important;
        min-width: 50px !important;
    }

        .product-badge::after {
            bottom: -6px !important;
            border-left: 6px solid transparent !important;
            border-right: 6px solid transparent !important;
            border-top: 6px solid #c0392b !important;
        }

    .badge-percent {
        font-size: 12px !important;
    }

    .badge-text {
        font-size: 9px !important;
    }
}

@@media (max-width: 576px) {
    .product-badge {
        padding: 6px 10px !important;
        min-width: 45px !important;
    }

    .badge-percent {
        font-size: 10px !important;
    }

    .badge-text {
        font-size: 8px !important;
    }
}

.product-badge-sepet {
    position: absolute !important;
    top: 1px !important;
    right: 5px !important;
    z-index: 1 !important;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
    color: white !important;
    padding: 6px 10px !important;
    border-bottom-right-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-weight: bold !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
    cursor: pointer !important;
}

.badge-sepet-adet {
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

/* Hover efekti */
.product__inner:hover .product-badge-sepet {
    background: linear-gradient(135deg, #43A047 0%, #5CB85C 100%) !important;
    transform: scale(1.08) !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

/* Responsive */
@@media (max-width: 768px) {
    .product-badge-sepet {
        padding: 5px 9px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        border-radius: 5px !important;
    }

    .badge-sepet-adet {
        font-size: 12px !important;
    }
}

@@media (max-width: 576px) {
    .product-badge-sepet {
        padding: 4px 8px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        border-radius: 4px !important;
    }

    .badge-sepet-adet {
        font-size: 11px !important;
    }
}

.quantity-input-compact {
    display: inline-flex !important;
    align-items: center !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-right: 8px !important;
}

.qty-btn {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
}

    .qty-btn:hover {
        background: #041e42 !important;
        color: white !important;
    }

.qty-input-compact {
    width: 35px !important;
    height: 22px !important;
    border: none !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    background: white !important;
    -moz-appearance: textfield !important;
}

    .qty-input-compact::-webkit-outer-spin-button,
    .qty-input-compact::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }

    .qty-input-compact:focus {
        outline: none !important;
        background: #fff !important;
    }

/* Sepete Ekle Butonu - Kompakt */
.sepete-ekle-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.product__add-to-cart-compact {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    margin-right: 4px !important;
}

.product__add-to-cart-icon {
    font-size: 16px !important;
}

    .product__add-to-cart-icon i {
        font-size: 16px !important;
    }

/* Icon butonları */
.icon-btn {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

    .icon-btn:hover {
        background: #041e42 !important;
        color: white !important;
        border-color: #041e42 !important;
    }

.product__hover {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    min-height: 90px !important;
    background-color: #fff !important;
    opacity: 0 !important;
    transition: all 0.1s ease-in-out !important;
    z-index: 2 !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.product__inner:hover .product__hover {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Sepete Ekle Butonu - Tam genişlik */
.sepete-ekle-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    justify-content: center !important;
}

.product__add-to-cart-compact {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    margin-right: 4px !important;
}

/* Icon butonları - Ortalanmış */
.icon-btn {
    width: 34px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
}

    .icon-btn:hover {
        background: #041e42 !important;
        color: white !important;
        border-color: #041e42 !important;
    }

/* Responsive */
@@media (max-width: 768px) {
    .product__hover {
        padding: 10px 6px !important;
        min-height: 80px !important;
    }

    .product__add-to-cart-compact {
        font-size: 10px !important;
    }

    .icon-btn {
        width: 30px !important;
        height: 26px !important;
        font-size: 12px !important;
    }
}

@@media (max-width: 576px) {
    .product__hover {
        padding: 8px 4px !important;
        min-height: 70px !important;
    }

    .product__add-to-cart-compact {
        font-size: 9px !important;
    }

    .icon-btn {
        width: 28px !important;
        height: 24px !important;
        font-size: 11px !important;
    }
}



/* ✅ Badge animasyonu */
.badge {
    transition: all 0.3s ease;
}

    .badge:empty {
        display: none;
    }



.add-favori.favori-eklendi i {
    color: #e74c3c !important;
}

.add-favori:hover i {
    color: #e74c3c;
    transition: color 0.3s ease;
}