/* Bölümler arası boşluğu artırmak ve diğer stil düzeltmeleri için ek CSS */
.bestsellers-sec.deal-product h3 {
    font-size: 9px;
    margin: 0;
    font-weight: 600;
    color: #333;
    background: none;
    text-align: center;
    padding: 0;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}
.products-section,
.category-grid {
    padding: 80px 0; /* Dikey padding artırıldı */
    margin-bottom: 60px; /* Alt marjin eklendi */
    background-color: #fff; /* Arka plan rengi beyaz olarak ayarlandı */
}

/* Ürün kartları için ek stiller - unified-product-card.css dosyasına taşındı */

/* Haftanın Fırsatları bölümü için özel stiller */
.deals-box {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background-color: #fff;
    position: relative;
}

.deals-box h3 {
    background-color: #2a395a; /* İstenen başlık rengi */
    color: #fff;
    text-align: center;
    padding: 8px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.deals-carousel {
    padding: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Haftanın Fırsatları: boşluğu yukarı çek, görseli büyüt, butonu görünür yap */
.deals-carousel .showcase { margin: 2px 4px 8px; }
.deals-carousel .showcase-image { height: 170px; }
.deals-carousel .showcase-content { padding: 10px 10px 8px; }
.deals-carousel .showcase-title { margin-bottom: 4px; min-height: 34px; }
.deals-carousel .showcase-price { margin-top: 2px; margin-bottom: 6px; }
.deals-carousel .showcase-favorites { display: none; } /* Kalp ikonunu gizle, yer kazandır */
.deals-carousel .add-to-cart-button { width: 100%; font-weight: 700; }

.deal-product {
    width: 100%;
    max-width: 180px;
    margin: 0 5px;
    background: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.deal-product .product-card-inner {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
    background: #fff;
}

.deal-product .product-image {
    width: 100%;
    height: auto;
    padding: 4px; /* Daha az iç boşluk */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.deal-product .product-image img,
.deal-product .product-image .product-img {
    width: 100%;
    max-width: 160px; /* Biraz büyüt */
    height: auto;
    max-height: 110px; /* Yüksekliği artır */
    object-fit: contain !important;
    background-color: transparent !important;
    margin: 0 auto;
    display: block;
    border-radius: 5px;
}

/* Fix for static fallback product images - unified-product-card.css dosyasına taşındı */

/* No products message */
.no-products-message {
    padding: 30px 10px;
    text-align: center;
}

.no-products-message p {
    color: #777;
    font-size: 14px;
    margin: 0;
}

.deal-product .product-info {
    width: 100%;
    padding: 0 10px 8px; /* Alt padding'i kısalt */
    text-align: left;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.deal-product h3 {
    font-size: 12px;
    margin: 0;
    font-weight: 600;
    color: #333;
    background: none;
    text-align: left;
    padding: 0;
    min-height: 36px;
    display: block;
    line-height: 1.3;
    margin-top: 5px;
    text-transform: none;
}

.deal-product .product-info {
    padding-top: 0;
}

.deal-product .product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 6px; /* Butona alan aç */
    margin-top: 4px; /* Biraz yukarı al */
}

.deal-product .old-price {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 2px;
    display: block;
}

.deal-product .price {
    font-size: 13px;
    color: #e74c3c;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 6px; /* Alt boşluğu azalt */
    display: block;
}

.deal-product .add-to-cart {
    font-size: 12px; /* Biraz büyüt ki daha görünür olsun */
    padding: 7px 12px; /* Yükseklik ver */
    background-color: #ffcc00;
    border: none;
    border-radius: 6px;
    color: #333;
    font-weight: 700;
    width: 100%; /* Tam genişlikte olsun, daha görünür */
    cursor: pointer;
    text-align: center;
    display: block;
}

/* İndirim etiketi */
.discount-badge {
    position: absolute;
    top: 6px; /* Görselin üzerinde, header altına yakın */
    left: 6px;
    right: auto;
    width: auto; /* Şerit olmasın */
    margin: 0;
    background-color: #d32f2f; /* Kırmızı indirim etiketi */
    color: #fff;
    text-align: center;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 3;
}

/* Deals vitrininde üst rozet gizle - fiyat yanına taşındı */
.deals-carousel .discount-badge { display: none !important; }

/* Carousel navigation arrows */
.deals-carousel .owl-nav {
    position: absolute;
    width: 100%; /* Taşma yapmasın */
    left: 0;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.deals-carousel .owl-prev,
.deals-carousel .owl-next {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px !important;
    color: #333 !important;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .deals-carousel {
        padding: 10px;
    }
    
    .deal-product {
        max-width: 100%;
    }
    
    .deal-product .product-image img {
        height: 150px;
    }
}

/* Desktop adjustments */
@media (min-width: 992px) {
    .deals-carousel {
        padding: 0;
    }
    
    .deal-product {
        margin: 0;
    }
    
    .deal-product .product-image img {
        height: 80px;
        object-fit: cover !important;
        background-color: #fff !important;
    }
    
    .deal-product h3 {
        min-height: 20px;
        margin-top: 0;
        font-size: 9px;
    }
    
    /* Adjust for desktop to prevent overflow */
    .deals-box {
        max-height: 240px;
        overflow: hidden;
    }
    
    /* Masaüstünde de rozet şeride dönüşmesin */
    .discount-badge {
        width: auto;
        left: 6px;
        right: auto;
        top: 6px;
    }
    
    .deal-product .add-to-cart {
        padding: 5px;
        font-size: 12px;
    }
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .deals-carousel {
        justify-content: center;
    }
    
    .deal-product {
        width: 90%;
        margin: 0 auto 15px;
    }
}

/* Mobilde Haftanın Fırsatları (deals-carousel) kart içeriklerini ortala */
@media (max-width: 768px) {
    /* Metin bloklarını ortala */
    .deals-carousel .showcase-content,
    .deals-carousel .showcase-brand,
    .deals-carousel .showcase-title,
    .deals-carousel .showcase-price {
        text-align: center;
    }

    /* Fiyat satırını yatayda ortala */
    .deals-carousel .showcase-price {
        justify-content: center;
    }

    /* Görsel kapsayıcı zaten tam genişlik; yine de güvenli merkezleme */
    .deals-carousel .showcase-image,
    .deals-carousel .showcase-image img {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Footer bottom payment/SSL logo alignment */
.footer-bottom .footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-bottom .payment-methods {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer ETBİS */
.footer-etbis { display: inline-block; }
.footer-etbis-link { display: inline-block; }
.footer-etbis-img {
    display: block;
    width: 96px; /* reasonable default; QR stays legible */
    height: auto;
    object-fit: contain;
}

.footer-bottom .payment-logo {
    /* Override base 25px rule and allow a larger, readable size */
    height: auto !important; /* ensure it isn't locked to 25px */
    max-height: 40px; /* was 28px */
    max-width: 180px; /* prevent overly small width caps from other styles */
    width: auto;
    display: block;
    object-fit: contain;
    filter: none; /* keep original colors */
}

@media (max-width: 576px) {
    .footer-bottom .footer-bottom-content { flex-direction: column; text-align: center; }
    .footer-bottom .payment-methods { justify-content: center; }
}

/* Grow the SSL/payment logo a bit more on mobile */
@media (max-width: 768px) {
    .footer-bottom .payment-logo {
        max-height: 44px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .footer-bottom .payment-logo {
        max-height: 48px;
        max-width: 220px;
    }
}
