
:root{
    --header-bg: #ffffff;
    --header-text: #111827;
    --header-border: rgba(255,255,255,.10);
    --header-hover: rgba(255,255,255,.10);
    --submenu-bg:#ffffff;
    --submenu-text:#111111;
    --submenu-hover:#f4f6fb;
    --shadow:0 18px 44px rgba(15,23,42,.16);
    --shadow-strong:0 24px 60px rgba(15,23,42,.18);
    --mobile-safe-bottom:calc(env(safe-area-inset-bottom, 0px) + 14px);
}

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
}

body{
    padding-top:86px !important;
}

body.header-compact{
    padding-top:68px !important;
}

body.mobile-menu-open{
    overflow:hidden;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

.mobile-only{
    display:none !important;
}

/* HEADER */
.site-header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    width:100% !important;
    z-index:99999 !important;
    background:var(--header-bg) !important;
    background-color:var(--header-bg) !important;
    color:var(--header-text) !important;
    border-bottom:1px solid var(--header-border);
    backdrop-filter:saturate(130%) blur(10px);
    transition:all .30s ease;
    transform:translateZ(0);
}

.site-header.header-scrolled{
    background:var(--header-bg) !important;
    background-color:var(--header-bg) !important;
    box-shadow:0 12px 30px rgba(0,0,0,.18) !important;
    border-bottom:1px solid rgba(255,255,255,.10) !important;
}

.header-main,
.header-container,
.header-row{
    background:transparent !important;
}

.header-main{
    width:100%;
}

.header-container{
    max-width:1380px;
    margin:0 auto;
    padding:0 20px;
}

.header-row{
    min-height:86px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    transition:min-height .30s ease, gap .30s ease;
}

.site-header.header-scrolled .header-row{
    min-height:68px !important;
    gap:14px !important;
}

.header-left{
    display:flex;
    align-items:center;
    gap:28px;
    flex:1;
    min-width:0;
}

.header-logo{
    flex:0 0 auto;
}

.header-logo a{
    display:flex;
    align-items:center;
}

.header-logo img{
    max-height:58px;
    width:auto;
    transition:max-height .30s ease;
}

.site-header.header-scrolled .header-logo img{
    max-height:44px !important;
}

/* DESKTOP MENU */
.desktop-nav{
    display:flex;
    align-items:center;
    gap:4px;
    flex-wrap:wrap;
    min-width:0;
}

.desktop-nav > a,
.desktop-dropdown > a{
    color:var(--header-text) !important;
    font-size:15px;
    font-weight:600;
    padding:14px 12px;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:8px;
    transition:all .25s ease;
    white-space:nowrap;
}

.site-header.header-scrolled .desktop-nav > a,
.site-header.header-scrolled .desktop-dropdown > a{
    padding:10px 11px !important;
    font-size:14px !important;
}

.desktop-nav > a:hover,
.desktop-dropdown > a:hover{
    background:var(--header-hover);
    color:var(--header-text) !important;
}

.desktop-dropdown{
    position:relative;
}

.desktop-dropdown::before{
    content:"";
    position:absolute;
    left:0;
    top:100%;
    width:100%;
    height:18px;
}

.desktop-dropdown > a i{
    font-size:11px;
}

.desktop-submenu{
    position:absolute;
    top:calc(100% + 4px);
    left:0;
    min-width:260px;
    background:var(--submenu-bg);
    color:var(--submenu-text);
    border:1px solid rgba(0,0,0,.08);
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:10px;
    display:none;
    flex-direction:column;
    gap:4px;
    z-index:999;
}

.desktop-dropdown:hover .desktop-submenu{
    display:flex;
}

.desktop-submenu a{
    color:var(--submenu-text) !important;
    font-size:14px;
    font-weight:500;
    padding:11px 12px;
    border-radius:10px;
}

.desktop-submenu a:hover{
    background:var(--submenu-hover);
}

.desktop-mega-menu{
    min-width:720px;
    max-width:900px;
    padding:18px;
    border-radius:22px;
}

.desktop-mega-title{
    font-size:13px;
    font-weight:800;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:.4px;
    margin:0 0 14px;
}

.desktop-mega-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:10px;
}

.desktop-mega-grid a{
    display:flex;
    align-items:center;
    min-height:48px;
    padding:12px 14px;
    border-radius:14px;
    background:#f8fafc;
    border:1px solid rgba(0,0,0,.05);
    color:#111827 !important;
    font-size:14px;
    font-weight:600;
}

.desktop-mega-grid a:hover{
    background:#eef2ff;
}

/* HEADER RIGHT */
.header-right{
    display:flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
}

.header-action{
    width:46px;
    height:46px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.14);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--header-text) !important;
    background:transparent;
    transition:all .25s ease;
    position:relative;
    cursor:pointer;
    flex:0 0 auto;
}

.site-header.header-scrolled .header-action{
    width:40px !important;
    height:40px !important;
    border-radius:12px !important;
}

.header-action:hover{
    background:var(--header-hover);
    color:var(--header-text) !important;
}

.header-action-dropdown{
    position:relative;
}

.cart-badge,
.favori-badge{
    position:absolute;
    top:-5px;
    right:-5px;
    min-width:20px;
    height:20px;
    border-radius:20px;
    background:#ef4444;
    color:#fff !important;
    font-size:11px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 5px;
}

/* SEARCH */
.search-box-wrap{
    position:relative;
}

.search-dropdown{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    width:340px;
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:14px;
    display:none;
    z-index:999;
}

.search-box-wrap.active .search-dropdown{
    display:block;
}

.search-form{
    display:flex;
    gap:8px;
}

.search-form input{
    width:100%;
    height:48px;
    border:1px solid rgba(0,0,0,.12);
    border-radius:12px;
    padding:0 14px;
    outline:none;
    font-size:14px;
    color:#111 !important;
}

.search-form button{
    height:48px;
    padding:0 18px;
    border:none;
    border-radius:12px;
    background:#111;
    color:#fff !important;
    font-weight:600;
    cursor:pointer;
}

/* ACCOUNT DROPDOWN */
.account-dropdown{
    position:absolute;
    top:calc(100% + 14px);
    right:0;
    width:348px;
    background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
    border:1px solid rgba(15,23,42,.08);
    border-radius:28px;
    box-shadow:var(--shadow-strong);
    padding:18px;
    display:none;
    z-index:1200;
    overflow:hidden;
}

.account-dropdown::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:5px;
    background:linear-gradient(90deg,#2563eb,#60a5fa);
}

.header-action-dropdown.active .account-dropdown{
    display:block;
}

.account-card-head{
    padding:8px 4px 14px;
}

.account-card-title{
    font-size:20px;
    line-height:1.2;
    font-weight:900;
    color:#0f172a;
    margin:0 0 8px;
}

.account-card-text{
    font-size:14px;
    line-height:1.65;
    color:#64748b;
    margin:0;
}

.account-divider{
    height:1px;
    background:#e2e8f0;
    margin:0 0 16px;
}

.account-menu{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.account-menu a{
    min-height:56px;
    border-radius:18px;
    display:flex;
    align-items:center;
    gap:14px;
    padding:0 16px;
    font-size:15px;
    font-weight:800;
    color:#0f172a !important;
    background:#fff;
    border:1px solid rgba(15,23,42,.06);
}

.account-menu a.primary{
    background:#eef5ff;
}

/* MOBILE */
.mobile-menu-btn{
    display:none;
    width:46px;
    height:46px;
    border:none;
    border-radius:14px;
    background:transparent;
    color:var(--header-text) !important;
    font-size:22px;
    cursor:pointer;
    align-items:center;
    justify-content:center;
}

.mobile-panel{
    position:fixed;
    top:0;
    right:-100%;
    width:100%;
    max-width:390px;
    height:100vh;
    background:#ffffff;
    z-index:10001;
    transition:right .35s ease;
    box-shadow:-10px 0 30px rgba(0,0,0,.16);
    overflow-y:auto;
    border-radius:24px 0 0 24px;
}

.mobile-panel.active{
    right:0;
}

.mobile-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 16px;
    border-bottom:1px solid rgba(0,0,0,.08);
    position:sticky;
    top:0;
    background:#fff;
    z-index:2;
}

.mobile-panel-logo img{
    max-height:44px;
    width:auto;
}

.mobile-close{
    width:38px;
    height:38px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    color:#111;
    cursor:pointer;
    border:1px solid rgba(0,0,0,.08);
    background:#fff;
}

.mobile-panel-body{
    padding:12px 16px;
    padding-bottom:calc(12px + var(--mobile-safe-bottom));
}

.mobile-user-box{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 14px;
    border-radius:15px;
    background:linear-gradient(135deg,#0f172a,#1e3a8a);
    color:#fff;
    margin-bottom:14px;
}

.mobile-user-title{
    font-size:14px;
    font-weight:800;
    margin-bottom:4px;
}

.mobile-user-subtitle{
    font-size:12px;
    opacity:.86;
    line-height:1.4;
}

.mobile-user-btn{
    min-height:40px;
    padding:0 14px;
    border-radius:12px;
    background:#fff;
    color:#111827 !important;
    font-size:13px;
    font-weight:800;
    display:flex;
    align-items:center;
}

.mobile-search{
    margin-bottom:10px;
}

.mobile-search form{
    display:flex;
    gap:8px;
}

.mobile-search input{
    width:100%;
    height:42px;
    border:1px solid rgba(0,0,0,.12);
    border-radius:12px;
    padding:0 14px;
    font-size:14px;
    outline:none;
}

.mobile-search button{
    height:42px;
    padding:0 14px;
    border:none;
    border-radius:12px;
    background:#111;
    color:#fff;
    font-weight:600;
}

.mobile-accordion,
.mobile-item{
    border:1px solid rgba(15,23,42,.08);
    border-radius:14px;
    background:#fff;
    box-shadow:0 3px 12px rgba(15,23,42,.035);
    margin-bottom:8px;
    overflow:hidden;
}

.mobile-accordion-head,
.mobile-item-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:56px;
    padding:0 14px;
    cursor:pointer;
}

.mobile-accordion-title,
.mobile-item-head a{
    color:#111 !important;
    font-size:14px !important;
    font-weight:750 !important;
}

.mobile-toggle,
.mobile-accordion-toggle{
    width:40px;
    height:40px;
    min-width:40px;
    border:1px solid rgba(0,0,0,.10);
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:#111;
}

.mobile-accordion.active .mobile-accordion-toggle,
.mobile-toggle.active{
    transform:rotate(90deg);
}

.mobile-accordion-body,
.mobile-submenu{
    display:none;
    padding:0 16px 14px;
    border-top:1px solid rgba(0,0,0,.06);
}

.mobile-accordion.active .mobile-accordion-body,
.mobile-submenu.open{
    display:block;
}

.mobile-accordion-grid a,
.mobile-submenu a{
    display:flex;
    align-items:center;
    min-height:50px;
    color:#111 !important;
    padding:0 0 0 12px;
    font-size:15px;
    font-weight:700;
    border-bottom:1px solid rgba(0,0,0,.06);
}

.mobile-links{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.mobile-quick{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin-top:12px;
}

.mobile-quick a{
    min-height:52px;
    border-radius:13px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-size:15px;
    font-weight:800;
    border:1px solid rgba(0,0,0,.08);
    color:#111 !important;
    padding:0 14px;
    text-align:center;
    background:#fff;
}

.mobile-contact{
    margin-top:12px;
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    color:#111;
}

.mobile-contact a{
    color:#111 !important;
}

.mobile-social{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.mobile-social a{
    width:40px;
    height:40px;
    border-radius:12px;
    border:1px solid rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#111 !important;
    background:#fff;
}

.mobile-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:10000;
    opacity:0;
    visibility:hidden;
    transition:all .25s ease;
    backdrop-filter:blur(2px);
}

.mobile-overlay.active{
    opacity:1;
    visibility:visible;
}


/* MOBİL MENÜ FINAL RESPONSIVE / AÇ-KAPA DÜZELTME */
.mobile-panel{
    z-index:100002 !important;
    will-change:right;
    overscroll-behavior:contain;
}

.mobile-overlay{
    z-index:100001 !important;
}

body.mobile-menu-open .site-header{
    z-index:100000 !important;
}

.mobile-menu-btn i{
    pointer-events:none;
}

.mobile-user-box{
    width:100%;
    min-width:0;
}

.mobile-user-box > div{
    min-width:0;
}

.mobile-user-title,
.mobile-user-subtitle{
    overflow-wrap:anywhere;
}

.mobile-user-btn{
    flex:0 0 auto;
    white-space:normal;
    text-align:center;
    line-height:1.25;
    min-width:112px;
    justify-content:center;
}

@media(max-width:575px){
    .mobile-user-box{
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
        align-items:center;
        gap:12px;
        padding:12px 14px;
        border-radius:15px;
    }

    .mobile-user-btn{
        min-width:104px;
        max-width:124px;
        min-height:40px;
        padding:0 12px;
        border-radius:15px;
        font-size:15px;
    }

    .mobile-user-title{
        font-size:15px;
        line-height:1.25;
    }

    .mobile-user-subtitle{
        font-size:12px;
        line-height:1.45;
    }
}

@media(max-width:420px){
    .header-container{
        padding:0 10px;
    }

    .header-right{
        gap:6px;
    }

    .header-action,
    .mobile-menu-btn{
        width:43px;
        height:43px;
        border-radius:13px;
    }

    .header-logo img{
        max-width:142px;
    }

    .mobile-user-box{
        grid-template-columns:1fr;
        text-align:left;
    }

    .mobile-user-btn{
        width:100%;
        max-width:none;
        min-width:0;
    }
}

@media(max-width:360px){
    .header-logo img{
        max-width:126px;
    }

    .header-action,
    .mobile-menu-btn{
        width:40px;
        height:40px;
    }

    .header-right{
        gap:5px;
    }
}


/* RESPONSIVE */
@media(max-width:1199px){
    .desktop-nav > a,
    .desktop-dropdown > a{
        font-size:14px;
        padding:12px 10px;
    }

    .desktop-mega-menu{
        min-width:620px;
    }

    .desktop-mega-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:991px){
    body,
    body.header-compact{
        padding-top:72px !important;
    }

    .header-container{
        padding:0 14px;
    }

    .header-row,
    .site-header.header-scrolled .header-row{
        min-height:72px !important;
        gap:10px !important;
    }

    .desktop-nav{
        display:none;
    }

    .header-logo img,
    .site-header.header-scrolled .header-logo img{
        max-height:44px !important;
    }

    .header-right{
        margin-left:auto;
        gap:8px;
    }

    .header-action.desktop-only,
    .header-action-dropdown.desktop-only{
        display:none !important;
    }

    .mobile-only{
        display:inline-flex !important;
    }

    .mobile-menu-btn{
        display:inline-flex;
    }

    .search-dropdown{
        position:fixed !important;
        top:84px !important;
        left:12px !important;
        right:12px !important;
        width:auto !important;
    }
}

@media(max-width:575px){
    .header-logo img{
        max-width:150px;
        height:auto;
    }

    .mobile-panel{
        max-width:100%;
        border-radius:0;
    }

    .mobile-panel-body{
        padding:12px 14px;
        padding-bottom:calc(12px + var(--mobile-safe-bottom));
    }

    .mobile-accordion-head,
    .mobile-item-head{
        min-height:56px !important;
    }

    .mobile-accordion-title,
    .mobile-item-head a{
        font-size:15px !important;
    }

    .search-dropdown{
        top:78px !important;
        left:10px !important;
        right:10px !important;
    }
}

/* RESPONSIVE FAVORİ / SEPET ALERT */
.hs-toast{
    position:fixed;
    left:50%;
    top:96px;
    transform:translateX(-50%) translateY(-20px);
    z-index:999999;
    min-width:260px;
    max-width:calc(100% - 28px);
    padding:14px 18px;
    border-radius:16px;
    background:#16a34a;
    color:#fff;
    font-size:15px;
    font-weight:800;
    text-align:center;
    box-shadow:0 14px 40px rgba(0,0,0,.22);
    opacity:0;
    visibility:hidden;
    transition:all .25s ease;
    pointer-events:none;
}

.hs-toast.show{
    opacity:1;
    visibility:visible;
    transform:translateX(-50%) translateY(0);
}

.hs-toast.error{
    background:#dc2626;
}

.hs-toast.info{
    background:#2563eb;
}

@media(max-width:991px){
    .hs-toast{
        top:auto;
        bottom:calc(env(safe-area-inset-bottom, 0px) + 18px);
        width:calc(100% - 28px);
        font-size:14px;
        border-radius:14px;
    }
}


/* Scotplus – tam genişlik ve header ile aynı kenar boşluğu */
:root{--scotplus-gutter:clamp(14px,2.2vw,36px);--scotplus-heading-font:system-ui,-apple-system,"Segoe UI",sans-serif;}
.site-header .header-container{width:100%;max-width:none;margin-inline:auto;padding-inline:var(--scotplus-gutter);}
.site-header .header-row{max-width:none;}
.site-header .header-logo img{max-width:190px;max-height:56px;object-fit:contain;}
@media(max-width:991px){.site-header .header-container{padding-inline:var(--scotplus-gutter)}.site-header .header-logo img{max-width:155px;}}

/* Mobil menü: geçersiz varsayılan e-posta adresini göstermeyin. */
@media(max-width:991px){
  .mobile-panel .mobile-contact:has(a[href="mailto:info@site.com"]){display:none}
}

/* Scotplus - dinamik kategori tetikleyicisi, masaustu/mobil */
.desktop-nav .scotplus-category-trigger {
    appearance:none; border:0; background:transparent; cursor:pointer;
    color:var(--header-text) !important; font:600 15px/1.4 inherit;
    padding:14px 12px; border-radius:12px; display:flex; align-items:center;
    gap:8px; white-space:nowrap; transition:background .2s ease;
}
.desktop-nav .scotplus-category-trigger:hover,
.desktop-nav .scotplus-category-trigger:focus-visible {
    background:var(--header-hover); outline-offset:3px;
}
.desktop-nav .scotplus-category-trigger i {font-size:11px; transition:transform .2s ease;}
.scotplus-category-dropdown.is-open .scotplus-category-trigger i {transform:rotate(180deg);}
.scotplus-category-dropdown.is-open > .desktop-submenu,
.scotplus-category-dropdown:focus-within > .desktop-submenu {display:flex;}
.site-header.header-scrolled .desktop-nav .scotplus-category-trigger {padding:10px 11px;font-size:14px;}
.mobile-accordion-head[aria-controls="mobileKategoriBody"] {
    width:100%; text-align:left; font-family:inherit; cursor:pointer;
    appearance:none;
}
@media(max-width:1199px) {
 .desktop-nav .scotplus-category-trigger {font-size:14px;padding:12px 10px;}
}

/* Ortak bildirim alani: her sayfada sag alt. */
body .hs-toast {left:auto!important;right:20px!important;top:auto!important;bottom:calc(22px + env(safe-area-inset-bottom,0px))!important;min-width:0;max-width:min(390px,calc(100vw - 32px));width:max-content;box-sizing:border-box;transform:translateY(14px)!important;border-radius:12px;z-index:1000010;font:700 13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left;padding:13px 18px;background:var(--sp-brand-primary);box-shadow:0 14px 35px rgba(12,60,31,.24);transition:opacity .22s ease,transform .22s ease,visibility .22s ease}
body .hs-toast.show {transform:translateY(0)!important}
body .hs-toast.error{background:#b42338}
@media(max-width:600px){body .hs-toast{left:auto!important;right:16px!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;width:auto;max-width:calc(100vw - 32px);font-size:13px}}
@media(prefers-reduced-motion:reduce){body .hs-toast{transition:none!important}}
