/*
Theme Name: Bidolubaski Tarzi Kumas - v8.4
Theme URI: https://kumasanahtarlik.com
Author: Bahar Piko
Description: Bidolubaski tarzi - animasyonlu slider, sol menu kaldirildi, logo alti acilir menu, logo yani yazilar ozellestirilebilir, slider boyut kategori bagli, alttaki urunler ortali
Version: 8.4
License: GPLv2
Text Domain: bidolubaski
Requires Plugins: woocommerce
*/

:root{
    --primary:#FF7A00;
    --black:#111;
    --border:#EEEEEE;
    --soft:#FFFBF5;
}

body{
    margin:0;
    font-family:Inter,system-ui,sans-serif;
    background:#fff;
    color:#111;
}

.topbar{
    background:var(--black);
    color:#fff;
    font-size:13px;
    padding:8px 0;
}

.topbar-inner{
    max-width:1600px;
    margin:0 auto;
    padding:0 24px;
    display:flex;
    justify-content:space-between;
}

.header-main{
    background:#fff;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:1000;
}

.header-inner{
    max-width:1600px;
    margin:0 auto;
    padding:12px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.logo-wrap{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:#111;
}

.logo-text{
    line-height:1;
}

.logo-text .l1{
    font-weight:900;
    font-size:22px;
    letter-spacing:.5px;
}

.logo-text .l2{
    font-weight:900;
    font-size:22px;
}

.logo-text .l3{
    font-size:11px;
    letter-spacing:2px;
    color:#888;
    margin-top:2px;
}

.search-form{
    display:flex;
    align-items:center;
    background:#F5F5F5;
    border-radius:40px;
    padding:6px 6px 6px 16px;
    flex:1;
    max-width:680px;
}

.search-form input{
    flex:1;
    border:0;
    background:transparent;
    outline:none;
}

.search-form button{
    background:var(--black);
    color:#fff;
    border:0;
    border-radius:30px;
    padding:10px 22px;
    font-weight:700;
}

.cat-nav{
    background:var(--black);
    color:#fff;
}

.cat-nav-inner{
    max-width:1600px;
    margin:0 auto;
    padding:0 24px;
    display:flex;
    align-items:center;
    gap:18px;
    overflow-x:auto;
    white-space:nowrap;
}

.cat-dropdown{
    background:#fff;
    color:#111;
    border-radius:30px;
    padding:10px 18px;
    font-weight:800;
    display:flex;
    gap:8px;
    position:relative;
    cursor:pointer;
}

.cat-dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    min-width:280px;
    border-radius:12px;
    box-shadow:0 20px 50px rgba(0,0,0,.2);
    padding:8px 0;
    display:none;
    z-index:999;
    border:1px solid var(--border);
}

.cat-dropdown:hover .cat-dropdown-menu{
    display:block;
}

.cat-dropdown-menu a{
    display:flex;
    justify-content:space-between;
    padding:10px 16px;
    text-decoration:none;
    color:#111;
    font-size:14px;
}

.cat-dropdown-menu a:hover{
    background:#F5F5F5;
    color:var(--primary);
}

.cat-dropdown-menu .has-children{
    position:relative;
}

.cat-dropdown-menu .sub-menu{
    position:absolute;
    left:100%;
    top:0;
    background:#fff;
    min-width:260px;
    border-radius:12px;
    display:none;
    box-shadow:0 20px 50px rgba(0,0,0,.15);
    border:1px solid var(--border);
    padding:8px 0;
}

.cat-dropdown-menu .has-children:hover .sub-menu{
    display:block;
}

.cat-link-wrap{
    position:relative;
}

.cat-link-wrap .cat-sub-dropdown{
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    min-width:220px;
    border-radius:12px;
    display:none;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
    z-index:50;
    border:1px solid var(--border);
    padding:8px 0;
}

.cat-link-wrap:hover .cat-sub-dropdown{
    display:block;
}

.cat-link{
    color:#ccc;
    text-decoration:none;
    padding:14px 0;
    font-weight:600;
    font-size:14px;
}

.hero-grid-no-sidebar{
    max-width:1600px;
    margin:16px auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:1fr 380px;
    gap:20px;
}

@media(max-width:1100px){
    .hero-grid-no-sidebar{
        grid-template-columns:1fr;
    }
}

.main-slider{
    position:relative;
    background:var(--soft);
    border-radius:20px;
    overflow:hidden;
    border:1px solid var(--border);
}

.main-slide{
    opacity:0;
    transform:translateX(60px) scale(.98);
    transition:all .7s cubic-bezier(0.4,0,0.2,1);
    position:absolute;
    inset:0;
    pointer-events:none;
}

.main-slide.active{
    opacity:1;
    transform:translateX(0) scale(1);
    position:relative;
    pointer-events:auto;
}

.main-slide .slide-text{
    opacity:0;
    transform:translateY(30px);
    transition:all .6s .2s;
}

.main-slide.active .slide-text{
    opacity:1;
    transform:translateY(0);
}

.main-slide .slide-image{
    opacity:0;
    transform:translateX(40px) scale(.9);
    transition:all .7s .3s;
}

.main-slide.active .slide-image{
    opacity:1;
    transform:translateX(0) scale(1);
}

.slide-content{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:20px;
    padding:36px 48px;
    align-items:center;
    width:100%;
}

.slide-text h1{
    font-size:52px;
    font-weight:900;
    line-height:.9;
    margin:0 0 16px;
}

.btn-primary{
    background:var(--primary);
    color:#fff;
    padding:14px 24px;
    border-radius:10px;
    text-decoration:none;
    font-weight:800;
    display:inline-flex;
    gap:8px;
}

.dots{
    position:absolute;
    bottom:18px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:8px;
    z-index:5;
}

.dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:rgba(0,0,0,.15);
    cursor:pointer;
}

.dot.active{
    background:var(--primary);
    width:24px;
    border-radius:20px;
}

.arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    background:var(--black);
    color:#fff;
    border:0;
    border-radius:10px;
    cursor:pointer;
    z-index:5;
}

.arrow.prev{
    left:12px;
}

.arrow.next{
    right:12px;
}

.qty-box{
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
    background:#fff;
}

.qty-option{
    padding:14px;
    border:1px solid var(--border);
    border-radius:12px;
    margin:10px;
    display:flex;
    justify-content:space-between;
    cursor:pointer;
}

.qty-option.selected{
    background:#111;
    color:#fff;
}

.prod-grid-centered{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:16px;
    justify-content:center;
    max-width:1400px;
    margin:0 auto;
}

.prod-grid-centered .prod-card{
    margin:0 auto;
    width:100%;
    max-width:280px;
}

.product-section-centered{
    max-width:1600px;
    margin:32px auto;
    padding:0 20px;
    text-align:center;
}

.product-section-centered h2{
    margin-bottom:24px;
}

.prod-card{
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    text-decoration:none;
    color:#111;
    display:block;
}

.footer{
    background:#0A0A0A;
    color:#fff;
    padding:40px 24px;
    margin-top:48px;
}

.floating-wa{
    position:fixed;
    bottom:20px;
    right:20px;
    width:56px;
    height:56px;
    background:#25D366;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:28px;
    z-index:9999;
    text-decoration:none;
}


/* =========================================================
   FIX v8.8 - MENU ÜSTTE
   ========================================================= */

.header-main{
    z-index:10000 !important;
}

.cat-nav{
    z-index:9999 !important;
}

.cat-dropdown{
    z-index:10001 !important;
}

.cat-dropdown-menu{
    z-index:10001 !important;
}

.cat-dropdown-menu .sub-menu{
    z-index:10002 !important;
}

.hero-grid-no-sidebar,
.prod-grid-centered,
.woocommerce,
.footer-new{
    z-index:1 !important;
}

.floating-wa{
    z-index:99999 !important;
}


/* =========================================================
   FIX v8.14 - LOGO ALTINDAKİ KATEGORİLER HER ZAMAN ÜSTTE
   ========================================================= */

.header-main{
    position:sticky;
    top:0;
    z-index:10000;
}

.cat-nav{
    position:sticky !important;
    top:0 !important;
    z-index:10001 !important;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}


/* =========================================================
   TEMİZ MOBİL + STICKY FINAL FIX v8.7
   ========================================================= */

*, *::before, *::after{
    box-sizing:border-box;
}

img,
video,
iframe{
    max-width:100%;
    height:auto;
}

html{
    overflow-x:clip;
}

body{
    overflow-x:visible;
    max-width:100%;
}

.topbar,
.header-main,
.cat-nav,
.hero-grid-no-sidebar,
.product-section-centered,
.site-footer-custom{
    max-width:100vw;
}


/* =========================================================
   LOGO - DESKTOP
   ========================================================= */

.site-logo-img,
.logo-wrap img,
.custom-logo{
    height:auto;
    width:auto;
    max-height:48px;
    max-width:180px;
    object-fit:contain;
}


/* =========================================================
   STICKY - DESKTOP VE MOBİL
   ========================================================= */

.site-sticky-header{
    position:sticky !important;
    position:-webkit-sticky !important;
    top:0 !important;
    z-index:9999 !important;
    background:#fff !important;
    width:100%;
}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width:768px){

    .topbar-inner{
        flex-direction:column;
        gap:6px;
        text-align:center;
        padding:8px 12px !important;
    }

    .header-inner{
        flex-direction:column !important;
        gap:10px !important;
        padding:10px 12px !important;
        align-items:stretch !important;
    }

    .logo-wrap{
        justify-content:center;
        margin:0 auto;
    }

    .search-form{
        max-width:100% !important;
        width:100% !important;
    }


    /* =====================================================
       KATEGORİLER - MOBİL DÜZELTME
       ===================================================== */

    .cat-nav{
        width:100% !important;
        max-width:100vw !important;
        overflow:hidden !important;
    }

    .cat-nav-inner{
        width:100% !important;
        max-width:100% !important;

        display:flex !important;
        align-items:center !important;

        gap:3px !important;

        padding:5px 7px !important;

        overflow-x:auto !important;
        overflow-y:hidden !important;

        white-space:nowrap !important;

        -webkit-overflow-scrolling:touch;

        scrollbar-width:none;
    }

    .cat-nav-inner::-webkit-scrollbar{
        display:none !important;
    }


    /* KATEGORİLER BUTONU */

    .cat-dropdown{
        flex:0 0 auto !important;

        padding:6px 9px !important;

        font-size:11px !important;

        line-height:1 !important;

        gap:4px !important;

        border-radius:18px !important;

        white-space:nowrap !important;
    }


    /* SAĞ TARAFTAKİ MENÜLER */

    .cat-link-wrap{
        position:relative !important;

        /*
         * MENÜLERİN KÜÇÜLEBİLMESİ İÇİN
         */
        flex:1 1 auto !important;

        min-width:0 !important;
    }


    .cat-link{
        display:block !important;

        padding:7px 3px !important;

        font-size:clamp(9px,2.5vw,11px) !important;

        line-height:1.1 !important;

        font-weight:600 !important;

        white-space:nowrap !important;

        text-align:center !important;

        overflow:hidden !important;

        text-overflow:ellipsis !important;
    }


    .cat-link-wrap + .cat-link-wrap{
        margin-left:0 !important;
    }


    /* ALT AÇILIR MENÜ */

    .cat-link-wrap .cat-sub-dropdown{
        min-width:180px !important;
        max-width:90vw !important;
    }


    /* =====================================================
       HERO
       ===================================================== */

    .hero-grid-no-sidebar{
        grid-template-columns:1fr !important;
        padding:0 12px !important;
        gap:16px !important;
    }

    .slide-content{
        grid-template-columns:1fr !important;
        padding:20px !important;
    }

    .slide-text h1{
        font-size:28px !important;
    }


    /* =====================================================
       ÜRÜNLER
       ===================================================== */

    .prod-grid-centered{
        grid-template-columns:repeat(2,1fr) !important;
        gap:10px !important;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .site-footer-inner{
        grid-template-columns:1fr !important;
        gap:28px !important;
    }


    /* =====================================================
       LOGO MOBİL
       ===================================================== */

    .site-logo-img{
        height:32px !important;
        max-height:32px !important;
        min-height:32px !important;
        width:auto !important;
        max-width:110px !important;
    }

    .logo-wrap img{
        height:32px !important;
        max-height:32px !important;
        width:auto !important;
        max-width:110px !important;
    }
}


/* =========================================================
   WHATSAPP HER ZAMAN ÜSTTE
   ========================================================= */

.floating-wa{
    z-index:2147483647 !important;
}