/* ============================================
   GENEL BANAT LAYOUTU
============================================ */
.banat-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    position: relative;
    font-family: "Montserrat", sans-serif;
}

/* ============================================
   HERO ANA ALAN
============================================ */
.nodesan-hero-section {
    position: relative;
    width: 100%;
    background: #fff;
    padding: 0 !important;
    overflow: hidden;
}

/* ============================================
   SOL DİKEY MENÜ
============================================ */
.nodesan-side-menu {
    position: absolute;
    left: 0;
    top: 140px !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80px;
    z-index: 10;
}

.nodesan-side-item {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 25px;
    color: #777;
    cursor: pointer;
    opacity: .7;
    transition: .3s;
}
.nodesan-side-item:hover {
    opacity: 1;
    color: #000;
}

/* ============================================
   HERO İÇERİK ALANI
============================================ */
.nodesan-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    padding-left: 150px;
    margin-top: 60px !important;
    position: relative;
    z-index: 5;
}

/* ============================================
   SOL ANA GÖRSEL
============================================ */
.nodesan-main-image-box img {
    width: 600px;
    height: 600px;
    object-fit: cover;
    border-radius: 25px;
    flex-shrink: 0; /* Görsel slider'ı itmesin */
}

/* ============================================
   SAĞ BLOK (YAZI + SLIDER)
============================================ */
.nodesan-right-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* BAŞLIK - PARAGRAF */
.nodesan-hero-text h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 44px;
    color: #333;
}

.nodesan-hero-text p {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    color: #666;
}

/* ============================================
   SLIDER — TEK VE DOĞRU SÜRÜM
============================================ */
.nodesan-bottom-slider {
    display: flex;
    gap: 35px;
    width: 290%;
    margin-top: 200px !important;
    padding-left: 0 !important;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* ============================================
   SLIDER KUTULARI (DİKDÖRTGEN - PREMİUM)
============================================ */
.nodesan-thumb {
    width: 260px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}
.nodesan-thumb:hover {
    transform: scale(1.05);
}

/* ============================================
   GÖRSELLER (KESİN YATAY OTURUR)
============================================ */
.nodesan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
}

/* ============================================
   ARKA PLAN SHAPE
============================================ */
.nodesan-hero-section::before {
    content: "";
    position: absolute;
    top: -240px;
    right: -400px;
    width: 1700px;
    height: 1400px;
    background: url("/Uploads/Images/site/sliderbanner.png") no-repeat;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   MOBİL
============================================ */
@media (max-width: 900px) {

    .nodesan-hero-content {
        flex-direction: column;
        padding-left: 0;
        gap: 40px;
        margin-top: 120px !important;
    }

    .nodesan-side-menu {
        left: 10px;
        top: 180px;
        gap: 40px;
    }

    .nodesan-bottom-slider {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .nodesan-thumb {
        width: 90% !important;
        height: 200px !important;
    }
}
/* ============================
   MOBİL DÜZELTME (GENEL)
=============================== */
@media (max-width: 768px) {

    /* HERO | Sol dikey yazılar tamamen gizle */
    .nodesan-side-menu {
        display: none !important;
    }

    /* HERO | Sol büyük görsel düzgün ortalansın */
    .nodesan-main-image-box img {
        width: 100%;
        height: 380px; /* Mobil için ideal yükseklik */
        object-fit: cover; 
        object-position: center;
        border-radius: 0;
    }

    /* HERO içindeki sağ yazılar ortalansın */
    .nodesan-hero-text {
        text-align: center;
        padding: 10px 20px;
    }

    .nodesan-hero-text h1 {
        font-size: 22px !important;
        line-height: 1.3;
    }

    .nodesan-hero-text p {
        font-size: 15px !important;
    }

    /* Slider elemanları alt alta otursun */
    .nodesan-bottom-slider {
        display: flex;
        gap: 15px;
        justify-content: center;
        padding: 15px 0;
    }

    .nodesan-thumb {
        width: 90px;
        height: auto;
    }

    .nodesan-thumb img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}
/* ============================================
   MOBİL DÜZELTME – TEK BLOK (FINAL)
=============================================== */
@media (max-width: 768px) {

    /* SOL MENÜ KAPANSIN */
    .nodesan-side-menu {
        display: none !important;
    }

    /* HERO GÖRSEL DOĞRU ORAN */
    .nodesan-main-image-box img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        border-radius: 0;
    }

    /* HERO YAZI ORTALAMA */
    .nodesan-hero-text {
        text-align: center;
        padding: 10px 20px;
    }
    .nodesan-hero-text h1 {
        font-size: 24px !important;
        line-height: 1.3;
    }
    .nodesan-hero-text p {
        font-size: 15px !important;
    }

    /* === SLIDER TAM DÜZELTME === */
    .nodesan-bottom-slider {
        width: 100% !important;        /* ❗ 290% SORUNU ÇÖZÜLDÜ */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 20px !important;
    }

    /* SLIDER KUTULARI — TAM GENİŞLİK */
    .nodesan-thumb {
        width: 90% !important;
        height: 180px !important;
        border-radius: 16px;
    }

    .nodesan-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: inherit;
    }

    /* ÜRÜN / KATEGORİ KARTLARI DÜZELTME */
    .product-card,
    .kategori-kutu,
    .brand-card,
    .card {
        width: 100% !important;
        height: auto !important;
        overflow: hidden;
        margin-bottom: 22px !important;
    }

    .product-card img,
    .kategori-kutu img,
    .brand-card img,
    .card img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 18px !important;
    }

    /* GRID TEK SÜTUN */
    .kategori-grid,
    .product-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}
/* ============================
   MACBOOK GENİŞLİĞİ İÇİN BANNER FIX
   (1280px – 1600px arası ekranlar)
============================ */
@media (min-width: 1280px) and (max-width: 1600px) {
    .kategori-banner img {
        object-fit: contain !important;
        height: auto !important;
        max-height: 380px; /* yüksekliği dengeler */
    }
}
/* İkon bloğu dikey ama döndürülmeden */
.nodesan-icon-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: absolute;
    left: 0;
    top: 140px;
    z-index: 20;
}

/* Eski dikey yazının tüm etkilerini KIR -> ikonlar düzelir */
.nodesan-icon-list a {
    writing-mode: horizontal-tb !important;
    transform: rotate(0deg) !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ICON BOYUTU */
.nodesan-icon-list i {
    font-size: 40px;
    color: #888;
    transition: .3s;
}

/* Hover efekti */
.nodesan-icon-list a:hover i {
    color: var(--ats-purple);
    transform: scale(1.2);
}
.nodesan-icon-list a,
.nodesan-icon-list a:link,
.nodesan-icon-list a:visited,
.nodesan-icon-list a:hover,
.nodesan-icon-list a:active {
    text-decoration: none !important;
    border: 0 !important;
    outline: none !important;
}
/* Küçültülmüş kart boyutu */
.nodesan-bottom-slider .nodesan-thumb {
    width: 260px;        /* küçültülmüş genişlik */
    height: 160px;       /* küçültülmüş yükseklik */
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

/* Hover efekti (isteğe bağlı) */
.nodesan-bottom-slider .nodesan-thumb:hover {
    transform: translateY(-4px);
}

/* Görsel tam otursun */
.nodesan-bottom-slider .nodesan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;  
    object-position: center;
}
/* Desktop görünüm */
.nodesan-bottom-slider .nodesan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobil görünümde kesilme olmasın */
@media (max-width: 768px) {
    .nodesan-bottom-slider .nodesan-thumb {
        width: 100%;
        height: 200px;        /* mobil için optimum yükseklik */
    }

  /* === 3'lü SLIDER GRID === */
.nodesan-bottom-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 0;
}

/* === KUTU === */
.nodesan-thumb {
    width: 100%;
    height: 300px;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* === GÖRSEL ORTALAMA — SENİN ÇİZDİĞİN DÜZEN === */
.nodesan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* kutuya tam oturur */
    object-position: center;    /* merkezden kırpar */
    display: block;
}

/* ——— TABLET ——— */
@media (max-width: 1024px) {
    .nodesan-bottom-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ——— MOBİL ——— */
@media (max-width: 768px) {
    .nodesan-bottom-slider {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .nodesan-thumb {
        height: 260px;
    }
}
@media (max-width: 768px) {

    /* Ana büyük görsel full width olsun */
    .nodesan-main-image-box img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block;
        border-radius: 0 !important;
    }

    /* Sol boşluğu kaldır */
    .nodesan-hero-content {
        padding-left: 0 !important;
        margin-top: 40px !important;
        gap: 20px !important;
    }
}
/* Kart alanı – boşlukları kaldır */
.nodesan-bottom-slider .nodesan-thumb {
    width: 100%;
    height: 260px; /* İstersen artırabiliriz */
    padding: 0 !important;
    border-radius: 22px;
    overflow: hidden;
}

/* Görseli tam oturt */
.nodesan-bottom-slider .nodesan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* Taşma yok, boşluk yok */
    object-position: center;
    display: block;
}

/* Mobilde daha iyi görünmesi için */
@media(max-width: 768px) {
    .nodesan-bottom-slider .nodesan-thumb {
        height: 200px; 
    }
}
/* Desktop görünüm */
.nodesan-bottom-slider .nodesan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobil görünümde kesilme olmasın */
@media (max-width: 768px) {
    .nodesan-bottom-slider .nodesan-thumb {
        width: 100%;
        height: 200px;        /* mobil için optimum yükseklik */
    }

    .nodesan-bottom-slider .nodesan-thumb img {
        object-fit: contain !important;  /* tam oturacak */
        padding: 10px;                   /* görsel nefes alır */
    }
}
/* ===============================
        KATEGORİ BANNER – FINAL
================================ */

.kategori-banner {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    overflow: hidden;
    margin: 40px 0;
}

/* Banner görseli */
.kategori-banner img {
    width: 100%;
    height: 240px;   
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Yazı kutusu */
.banner-yazi {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    padding: 16px 28px;
    border-radius: 14px;
    text-align: center;
    max-width: 80%;
}

.banner-yazi h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #003d79;
}

/* ===============================
              MOBİL
================================ */
@media (max-width: 768px) {

    .kategori-banner img {
        height: 180px !important;
        object-fit: cover;
    }

    .banner-yazi {
        bottom: 10%;
        padding: 10px 20px;
        max-width: 90%;
        border-radius: 12px;
    }

    .banner-yazi h2 {
        font-size: 20px !important;
    }
}
