/* ============================================================
   Nova Natural – Özel Geçersiz Kılma (Override) CSS
   Amaç: Ana slider küçültme + Ürün kartı boyutu ve stabilitesi
   ============================================================ */

/* ─── SOLDA KATEGORİ MENÜSÜ STİLLERİ ─────────────────────────
   Yan menü kategorileri için modern tasarım                 */

.home-section-3 .col-2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #b2a49b 0%, #8a7c73 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(178, 164, 155, 0.3);
}

.home-section-3 .col-2 ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.home-section-3 .col-2 ul li:last-child {
    border-bottom: none;
}

.home-section-3 .col-2 ul li a {
    display: block;
    padding: 10px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-section-3 .col-2 ul li a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.home-section-3 .col-2 ul li a:hover:before {
    left: 0;
}

.home-section-3 .col-2 ul li a:hover {
    padding-left: 25px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.home-section-3 .col-2 ul li a:after {
    content: '→';
    position: absolute;
    right: 18px;
    opacity: 0;
    transition: all 0.3s ease;
}

.home-section-3 .col-2 ul li a:hover:after {
    opacity: 1;
    right: 15px;
}

/* Alternatif Stil - Minimalist */
.home-section-3.minimal .col-2 ul {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.home-section-3.minimal .col-2 ul li {
    border-bottom: 1px solid #f0f0f0;
}

.home-section-3.minimal .col-2 ul li a {
    color: #333;
    padding: 8px 16px;
}

.home-section-3.minimal .col-2 ul li a:hover {
    background: #f8f8f8;
    color: #667eea;
    padding-left: 20px;
}

/* Responsive - Kategoriler mobilde gizli */
@media (max-width: 1199px) {
    .home-section-3 .col-2 {
        display: none !important;
    }
}

/* ─── 1. ANA HERO SLIDER KÜÇÜLTME ────────────────────────────
   .home-section / .special-offer-slide-2-1 yüksekliği azaltma  */

/* Ana hero bölümü – önceden viewport'u dolduruyordu */
.home-section {
    max-height: 480px !important;
    overflow: hidden;
}

/* Hero sol resim alanı yüksekliği */
.home-section .home-left-img,
.home-section .home-left-img img {
    max-height: 480px !important;
    object-fit: cover;
    object-position: top;
}

/* Hero sağ içerik alanı */
.home-section .home-right-img {
    max-height: 480px !important;
}

/* home-section-2 (alternatif layout) */
.home-section-2 img {
    max-height: 460px !important;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Swiper ana banner slider */
.special-offer-slide-2-1 {
    max-height: 460px !important;
    overflow: hidden;
}

.special-offer-slide-2-1 .swiper-slide {
    max-height: 460px !important;
}

.special-offer-slide-2-1 .swiper-slide img {
    max-height: 460px !important;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* ratio sınıflarını geçersiz kıl – banner için */
.ratio_13 .bg-size:before { padding-top: 28% !important; }
.ratio_18 .bg-size:before { padding-top: 30% !important; }
.ratio_30 .bg-size:before { padding-top: 28% !important; }
.ratio_35 .bg-size:before { padding-top: 32% !important; }
.ratio_38 .bg-size:before { padding-top: 32% !important; }
.ratio_40 .bg-size:before { padding-top: 34% !important; }
.ratio_45 .bg-size:before { padding-top: 36% !important; }

/* ─── 2. ÜRÜN KARTLARI – BOYUT VE STABİLİTE ─────────────────
   Daha küçük, düzgün yerleşim, titreme yok               */

/* Genel ürün kartı konteyneri */
.product-box-3 {
    transition: none !important;
    margin-bottom: 20px;
}

/* Ürün resim sarmalayıcı – overflow ve yükseklik */
.product-box-3 .img-wrapper {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background-color: #f8f8f8;
}

/* Ürün görseli – sabit oran ve responsive */
.product-box-3 .img-wrapper .product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-height: 280px;
}

.product-box-3 .img-wrapper .product-image img,
.product-box-3 .img-wrapper .product-image .pro-first img,
.product-box-3 .img-wrapper .product-image .pro-sec img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background-color: #fff;
    transition: opacity 0.3s ease;
}

/* İkinci resim hover efekti */
.product-box-3 .img-wrapper .product-image .pro-first,
.product-box-3 .img-wrapper .product-image .pro-sec {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.product-box-3 .img-wrapper .product-image .pro-sec {
    opacity: 0;
}

.product-box-3:hover .img-wrapper .product-image .pro-sec {
    opacity: 1;
}

.product-box-3:hover .img-wrapper .product-image .pro-first {
    opacity: 0;
}

/* Hover'da ölçek büyümesi kaldırıldı – layout'u bozuyordu */
.product-box-3:hover .img-wrapper .product-image {
    transform: none !important;
}

/* Ürün detay alanı padding küçültme */
.product-box-3 .product-detail {
    padding-top: 12px;
}

.product-box-3 .product-detail h6 {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fiyat Satırı - BÜYÜK KIRMIZI BOLD */
.product-box-3 .product-detail .product-price-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    margin-bottom: 6px;
    overflow: hidden;
}

.product-box-3 .product-detail .product-price-row .current-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #dc3545 !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-box-3 .product-detail .product-price-row .old-price {
    font-size: 12px !important;
    color: #999 !important;
    font-weight: 400 !important;
    text-decoration: line-through;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Buton Grubu - Yan Yana */
.product-box-3 .product-detail .product-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* İncele Butonu - mor-pembe gradyan (ayın ürünü ile uyumlu) */
.product-box-3 .btn-product-view {
    flex: 1;
    padding: 10px 12px;
    background-image: linear-gradient(90deg, rgb(101,78,163) 0%, rgb(160,100,150) 51%, rgb(101,78,163) 100%) !important;
    background-size: 200% auto !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .5s ease !important;
    display: block;
    text-align: center;
    text-decoration: none !important;
}

.product-box-3 .btn-product-view:hover {
    background-position: 100% !important;
    background-image: linear-gradient(90deg, rgb(101,78,163) 0%, rgb(160,100,150) 51%, rgb(101,78,163) 100%) !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Sepete Ekle Butonu - #39a78e */
.product-box-3 .btn-add-cart {
    flex: 1;
    padding: 10px 12px;
    background: linear-gradient(135deg, #39a78e 0%, #2b8a74 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    text-decoration: none !important;
}

.product-box-3 .btn-add-cart:hover {
    background: linear-gradient(135deg, #2b8a74 0%, #1e6e5c 100%) !important;
    transform: scale(1.03);
    box-shadow: 0 3px 12px rgba(57, 167, 142, 0.4);
    color: #ffffff !important;
}

/* Favoriler ve sepet ikonları (üstteki) */
.product-box-3 .label-block,
.product-box-3 .cart-info-icon {
    z-index: 10;
}

.product-box-3 .label-block .label-2 {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 8px;
}

.product-box-3 .cart-info-icon a {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── 3. FASHIKART SLIDE (Ürün Listesi Slider) ───────────────
   Kaydırma esnasında yükseklik tutarlılığı                */

.swiper.fashikart-slide {
    min-height: unset !important;
}

.swiper.fashikart-slide .swiper-slide {
    height: auto !important;
    align-self: stretch;
}

.swiper.fashikart-slide .product-box-3 .img-wrapper .product-image {
    aspect-ratio: 1 / 1;
}

/* ─── 4. TOP-CATEGORIES SLIDE ────────────────────────────────
   Kategori slider üst boşluk düzenlemesi                  */

.swiper.top-categories-slide {
    padding-bottom: 48px;
}

/* ─── 5. ÖZEL TEKLİF SLIDER ─────────────────────────────────
   special-offer-slide-2 – Ürün kutusu yüksekliği           */

.special-offer-slide-2 .swiper-slide {
    height: auto !important;
}

/* ─── 6. GENEL STABİLİTE DÜZELTMELERİ ───────────────────────
   Layout shift ve titreme önleme                          */

/* Tüm slider container'larda min-height sıfırlama */
.swiper-wrapper {
    align-items: stretch !important;
}

.swiper-slide {
    height: auto;
    box-sizing: border-box;
}

/* Ürün kartı – hover efektinde boyut değişimi kaldırıldı */
.product-box-3,
.product-box-4,
.product-box-5 {
    will-change: auto !important;
    transform: none !important;
}

.product-box-3:hover,
.product-box-4:hover,
.product-box-5:hover {
    transform: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ─── 7. MOBİL DÜZENLEMELER ──────────────────────────────────
   Küçük ekranlarda slider yüksekliği                      */

@media (max-width: 768px) {
    .home-section {
        max-height: 320px !important;
    }

    .home-section .home-left-img,
    .home-section .home-left-img img {
        max-height: 320px !important;
    }

    .special-offer-slide-2-1,
    .special-offer-slide-2-1 .swiper-slide {
        max-height: 320px !important;
    }

    .home-section-2 img {
        max-height: 300px !important;
    }

    .ratio_13 .bg-size:before,
    .ratio_18 .bg-size:before,
    .ratio_30 .bg-size:before { padding-top: 40% !important; }

    /* Ürün kartları tablet */
    .product-box-3 .img-wrapper .product-image {
        max-height: 240px;
    }

    .product-box-3 .product-detail h6 {
        font-size: 13px !important;
        min-height: 36px;
    }

    .product-box-3 .product-detail p {
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    /* Ürün kartları mobil */
    .product-box-3 .img-wrapper .product-image {
        max-height: 200px;
    }

    .product-box-3 .product-detail h6 {
        font-size: 12px !important;
        min-height: 32px;
    }

    .product-box-3 .product-detail p {
        font-size: 12px !important;
    }

    .product-box-3 .product-detail .rating li i {
        font-size: 11px;
    }

    .product-box-3 .label-block .label-2,
    .product-box-3 .cart-info-icon a {
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .home-section {
        max-height: 260px !important;
    }

    .special-offer-slide-2-1,
    .special-offer-slide-2-1 .swiper-slide {
        max-height: 260px !important;
    }

    /* Ürün kartları küçük mobil */
    .product-box-3 .img-wrapper .product-image {
        max-height: 180px;
    }

    .product-box-3 .product-detail {
        padding-top: 8px;
    }

    .product-box-3 .product-detail h6 {
        font-size: 11px !important;
        min-height: 30px;
    }

    .product-box-3 .product-detail p {
        font-size: 11px !important;
    }
}

@media (max-width: 375px) {
    /* Ürün kartları çok küçük mobil (iPhone SE, vb.) */
    .product-box-3 .img-wrapper .product-image {
        max-height: 160px;
    }

    .product-box-3 .product-detail h6 {
        font-size: 10.5px !important;
    }
}

/* ===== SEPETE EKLE BUTON - urun.php btn_black override ===== */
#sepet-ekle.btn.btn_black,
a#sepet-ekle.btn_black {
    background-image: linear-gradient(90deg, #39a78e 0%, #2b8a74 51%, #39a78e 100%) !important;
    background-size: 200% auto;
}
#sepet-ekle.btn.btn_black:hover,
a#sepet-ekle.btn_black:hover {
    background-position: 100%;
    box-shadow: 0 4px 15px rgba(57, 167, 142, 0.4);
}

/* ===== BTN-ADD-CART global override (kategori, urun-ara, urun "Sizin İçin" bölümü) ===== */
.btn-add-cart,
.product-box-3 .btn-add-cart,
a.btn-add-cart {
    background-image: linear-gradient(90deg, #39a78e 0%, #2b8a74 51%, #39a78e 100%) !important;
    background-size: 200% auto !important;
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    transition: all .5s ease !important;
    box-shadow: none !important;
}
.btn-add-cart:hover,
.product-box-3 .btn-add-cart:hover,
a.btn-add-cart:hover {
    background-position: 100% !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== VİTRİN BAŞLIK ETİKETİ - şerit gradient yayılmış ===== */
.vitrin-baslik-etiket {
    display: block !important;
    width: 100%;
    background: linear-gradient(to right, rgb(101, 78, 163), rgb(234, 175, 200)) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 40px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(101, 78, 163, 0.22);
    text-align: center;
}

/* ── İndirim Badge - Satırda Kalır ── */
.product-box-3 .discount-badge {
    background: #dc2626 !important;
    color: #fff !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
}

/* ── Mobil h6 min-height override ── */
@media (max-width: 768px) {
    .product-box-3 .product-detail h6 {
        font-size: 12px !important;
        min-height: 0 !important;
    }
    .product-box-3 .product-detail .product-price-row .current-price {
        font-size: 13px !important;
    }
    .product-box-3 .product-detail .product-price-row .old-price {
        font-size: 11px !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   HEADER ARAMA KUTUSU — nn-search
   ═══════════════════════════════════════════════════════════ */

.nn-search-li {
    flex: 1 1 0;
    min-width: 180px;
    max-width: 360px;
    padding: 0 6px;
}

.nn-search-form {
    width: 100%;
}

.nn-search-inner {
    display: flex;
    align-items: center;
    background: #f4f4f6;
    border: 1.5px solid #e0e0e5;
    border-radius: 24px;
    height: 38px;
    padding: 0 6px 0 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.nn-search-inner:focus-within {
    border-color: rgba(var(--theme-default), 0.7);
    box-shadow: 0 0 0 3px rgba(var(--theme-default), 0.08);
    background: #fff;
}

.nn-search-icon {
    font-size: 16px;
    color: #999;
    flex-shrink: 0;
    margin-right: 6px;
    pointer-events: none;
}

.nn-search-inner input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #333;
    padding: 0;
    min-width: 0;
    -webkit-appearance: none;
}

.nn-search-inner input[type="search"]::placeholder {
    color: #aaa;
    font-size: 12.5px;
}

.nn-search-inner input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.nn-search-btn {
    flex-shrink: 0;
    background: rgba(var(--theme-default), 1);
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}

.nn-search-btn:hover {
    background: rgba(var(--theme-default), 0.85);
}

@media (max-width: 1199px) {
    .nn-search-li { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   FOOTER BANNER (ETBİS + ABONE OL) — YENİ TASARIM
   ═══════════════════════════════════════════════════════════ */

.nn-footer-banner {
    background: #f8f8f8;
    border-top: 1px solid #ececec;
    padding: 16px 0;
}

.nn-footer-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ETBİS */
.nn-etbis-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.nn-etbis-link:hover { opacity: 1; }

.nn-etbis-link img {
    width: 46px;
    height: auto;
    display: block;
}

.nn-etbis-link span {
    font-size: 10px;
    color: #666;
    line-height: 1.3;
    text-align: left;
}

/* Dikey ayraç */
.nn-footer-banner-inner::after {
    content: "";
    width: 1px;
    height: 40px;
    background: #ddd;
    flex-shrink: 0;
    order: 1;
}

/* Abone ol bloğu */
.nn-subscribe-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 260px;
    order: 2;
}

.nn-subscribe-title {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.nn-subscribe-title i {
    color: rgba(var(--theme-default), 1);
    margin-right: 5px;
}

.nn-subscribe-row {
    display: flex;
    gap: 0;
    max-width: 420px;
}

.nn-subscribe-row input[type="email"] {
    flex: 1;
    border: 1.5px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
    background: #fff;
}

.nn-subscribe-row input[type="email"]:focus {
    border-color: rgba(var(--theme-default), 0.6);
}

.nn-subscribe-row input[type="email"]::placeholder {
    color: #bbb;
    font-size: 12.5px;
}

#abone-ol {
    background: rgba(var(--theme-default), 1);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

#abone-ol i { margin-right: 5px; }

#abone-ol:hover {
    background: rgba(var(--theme-default), 0.85);
}

/* Mobil */
@media (max-width: 768px) {
    .nn-footer-banner { padding: 12px 0; }
    .nn-footer-banner-inner { gap: 12px; }
    .nn-footer-banner-inner::after { display: none; }
    .nn-etbis-link img { width: 36px; }
    .nn-subscribe-block { min-width: 100%; }
    .nn-subscribe-row { max-width: 100%; }
}


/* ═══════════════════════════════════════════════════════════
   OVERFLOW FIX — yatay kaydırma engelle
   ═══════════════════════════════════════════════════════════ */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.top_header,
.top_header .swiper {
    overflow: hidden;
    max-width: 100%;
}

