:root{
    --bg:#F6F8FF;
    --bg2:#FFFFFF;
    --txt:#0B1220;
    --muted:rgba(11,18,32,.62);
    --line:rgba(11,18,32,.10);
    --shadow:0 26px 70px rgba(11,18,32,.10);
    --shadow2:0 14px 34px rgba(11,18,32,.08);

    --acc1:#7C3AED;
    --acc2:#06B6D4;
    --acc3:#22C55E;
    --acc4:#F97316;

    --r1:30px;
    --r2:22px;
    --max:1180px;

    /* ===== Bottom Nav vars (یکپارچه و نهایی) ===== */
    --bn-bar: rgba(17, 24, 39, .86);
    --bn-stroke: rgba(255,255,255,.10);
    --bn-text: rgba(255,255,255,.70);
    --bn-text-active: rgba(255,255,255,.95);

    --bn-accent: #e11d48;
    --bn-accent2:#ff4d6d;

    /* فضای لازم پایین صفحه برای منوی ثابت */
    --bn-safe-pad: 130px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
    margin:0;
    font-family:"Vazirmatn",system-ui,-apple-system,Segoe UI,Roboto,Arial;
    color:var(--txt);
    background:
            radial-gradient(900px 520px at 12% 12%, rgba(124,58,237,.18), transparent 62%),
            radial-gradient(820px 520px at 88% 12%, rgba(6,182,212,.16), transparent 58%),
            radial-gradient(900px 620px at 70% 92%, rgba(34,197,94,.12), transparent 62%),
            radial-gradient(860px 520px at 35% 78%, rgba(249,115,22,.14), transparent 62%),
            linear-gradient(180deg, var(--bg), #EEF2FF 55%, var(--bg2));
    overflow-x:hidden;

    /* ✅ فقط یک بار */
    padding-bottom: var(--bn-safe-pad);
}

a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:18px 16px 90px; width:100%}

/* ===== Header ===== */
.header{
    position:sticky; top:0; z-index:80;
    background: rgba(255,255,255,.58);
    backdrop-filter: blur(18px);
    border-bottom:1px solid rgba(11,18,32,.08);
}
.header:after{
    content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,.24), rgba(6,182,212,.22), rgba(249,115,22,.20), transparent);
}
.header-in{
    max-width:var(--max);
    margin:0 auto;
    padding:14px 16px;
    display:flex; align-items:center; justify-content:space-between;
    gap:12px;
}
.brand{display:flex; align-items:center; gap:10px; min-width:240px}
.logo{
    width:46px; height:46px; border-radius:18px;
    display:grid; place-items:center;
    font-weight:900; color:#fff;
    background: linear-gradient(135deg, var(--acc1), var(--acc2));
    box-shadow: 0 26px 70px rgba(124,58,237,.18);
    border: 1px solid rgba(255,255,255,.65);
}
.logo img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.brand .t1{font-weight:900; font-size:15px}
.brand .t2{font-size:12px; color:var(--muted); margin-top:2px}

.rightbar{display:flex; align-items:center; gap:10px; flex:1; justify-content:flex-end}

.nav{display:flex; gap:8px; flex-wrap:wrap; align-items:center;}
.nav a{
    text-decoration:none;
    font-size:13px;
    padding:9px 12px;
    border-radius:999px;
    border:1px solid rgba(11,18,32,.10);
    background: rgba(255,255,255,.62);
    transition:.18s ease;
    box-shadow: 0 10px 22px rgba(11,18,32,.05);
    white-space:nowrap;
}
.nav a:hover{
    transform:translateY(-2px);
    background: rgba(255,255,255,.92);
    border-color: rgba(124,58,237,.22);
    box-shadow: 0 18px 38px rgba(124,58,237,.10);
}

.search{display:flex; align-items:center; gap:10px; width:min(560px,100%)}
.sbox{
    width:100%;
    display:flex; align-items:center; gap:10px;
    border:1px solid rgba(11,18,32,.10);
    background: rgba(255,255,255,.70);
    border-radius: 22px;
    padding:11px 14px;
    box-shadow: var(--shadow2);
}
.sbox input{border:none; outline:none; background:transparent; width:100%; font-size:14px}

.menuBtn{
    display:none;
    border:none; cursor:pointer;
    border-radius: 16px;
    padding:10px 12px;
    background: rgba(255,255,255,.70);
    border:1px solid rgba(11,18,32,.10);
    box-shadow: var(--shadow2);
    font-weight:900;
}

/* ===== Drawer ===== */
.drawer{display:none; position:fixed; inset:0; z-index:90}
.drawer .backdrop{position:absolute; inset:0; background: rgba(11,18,32,.38); backdrop-filter: blur(6px);}
.drawer .panel{
    position:absolute; top:12px; right:12px; left:12px;
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    border:1px solid rgba(11,18,32,.10);
    box-shadow: var(--shadow);
    overflow:hidden;
}
.drawerHead{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 14px 10px;
    border-bottom:1px solid rgba(11,18,32,.08);
}
.drawerBody{padding:12px 14px 14px}
.drawerNav{display:flex; flex-direction:column; gap:10px}
.drawerNav a{
    text-decoration:none;
    padding:12px 12px;
    border-radius: 18px;
    border:1px solid rgba(11,18,32,.10);
    background: rgba(255,255,255,.76);
    font-weight:800;
}
.xbtn{border:none; cursor:pointer; border-radius: 14px; padding:9px 12px; font-weight:900; background: rgba(11,18,32,.06);}

/* ===== Sections / Hero ===== */
.section{margin-top:22px}
.head{display:flex; justify-content:space-between; align-items:flex-end; gap:10px; flex-wrap:wrap; margin-bottom:12px;}
.head h2{margin:0; font-size:18px}
.head p{margin:0; font-size:13px; color:var(--muted)}

.hero{margin-top:16px}
.slider{
    position:relative;
    border-radius: var(--r1);
    overflow:hidden;
    border: 1px solid rgba(11,18,32,.10);
    background: rgba(255,255,255,.66);
    box-shadow: var(--shadow);
    height: clamp(320px, 46vw, 560px);
}
.slides{height:100%; position:relative}
.slide{position:absolute; inset:0; opacity:0; transform: scale(1.04); transition: opacity .6s ease, transform 1s ease;}
.slide.active{opacity:1; transform: scale(1)}
.slide img{width:100%; height:100%; object-fit:cover; display:block;}
.shade{
    position:absolute; inset:0;
    background:
            radial-gradient(900px 420px at 22% 12%, rgba(124,58,237,.26), transparent 60%),
            radial-gradient(860px 420px at 85% 18%, rgba(6,182,212,.18), transparent 58%),
            linear-gradient(180deg, rgba(0,0,0,.00) 10%, rgba(0,0,0,.28) 68%, rgba(0,0,0,.62) 100%);
    pointer-events:none;
}
.slider-ui{position:absolute; inset:0; padding:18px; display:flex; flex-direction:column; justify-content:space-between; gap:10px;}
.heroBadge{
    display:inline-flex; align-items:center; gap:8px;
    padding:8px 10px; border-radius:999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,.92);
    font-size: 12px; font-weight:800;
    box-shadow: 0 18px 44px rgba(0,0,0,.18);
}
.heroText{margin-top:auto; max-width: 86%;}
.heroText h1{margin:0 0 6px; font-size: clamp(20px, 2.2vw, 32px); line-height:1.55; color:#fff; text-shadow: 0 14px 38px rgba(0,0,0,.46);}
.heroText p{margin:0; color: rgba(255,255,255,.88); font-size: 13px; line-height:2; max-width: 62ch;}

.controls{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;}
.dots{display:flex; gap:8px; align-items:center}
.dot{width:9px; height:9px; border-radius:999px; border:1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.26); cursor:pointer; transition:.18s ease;}
.dot.active{width:30px; background: linear-gradient(90deg, rgba(124,58,237,.98), rgba(6,182,212,.92), rgba(249,115,22,.92)); border-color: rgba(255,255,255,.96); box-shadow: 0 16px 44px rgba(124,58,237,.22);}


.hero-btns{display:flex; gap:8px}
.hero-btn{
  border:none; cursor:pointer;
  padding:10px 14px; border-radius: 18px;
  color: rgba(255,255,255,.98); font-weight:900;
  background: linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.10));
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  transition:.18s ease;
}
.hero-btn:hover{transform: translateY(-2px);}


.toast{
    position:fixed; bottom:18px; left:18px; right:18px;
    max-width: 560px; margin:0 auto;
    border:1px solid rgba(11,18,32,.10);
    border-radius: 22px; padding:12px 14px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    display:none; align-items:center; justify-content:space-between; gap:10px;
    z-index:95;
}
.toast.show{display:flex}
.toast button{
    border:none; cursor:pointer;
    padding:10px 14px; border-radius: 18px;
    font-weight:900; color:#fff;
    background: linear-gradient(135deg, var(--acc4), var(--acc1));
    box-shadow: 0 16px 40px rgba(249,115,22,.18);
}

footer{
    margin-top:34px; padding-top:18px;
    border-top:1px solid rgba(11,18,32,.10);
    color:var(--muted);
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    font-size:13px;
}

/* ===== Brands ===== */
.brandScroll{
    display:flex;
    gap:14px;
    overflow-x:auto;
    padding:6px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type:x mandatory;
}
.brandCard{flex:0 0 auto; width:92px; text-align:center; cursor:pointer; scroll-snap-align:start;}
.brandCard img{
    width:72px; height:72px; border-radius:50%;
    border:3px solid rgba(124,58,237,.65);
    object-fit:cover;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    background:#fff;
}
.brandCard span{
    display:block;
    margin-top:7px;
    font-size:13px;
    font-weight:900;
    color:var(--txt);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ===== Groups / Products ===== */
.groups{display:flex; flex-direction:column; gap:14px;}
.g{
    --gcolor: var(--acc1);
    border:1px solid rgba(11,18,32,.10);
    border-radius: 26px;
    padding:14px;
    background: rgba(255,255,255,.72);
    box-shadow: var(--shadow2);
    overflow:hidden;
    position:relative;
}
.g::before{
    content:"";
    position:absolute; inset:-2px;
    background:
            radial-gradient(860px 300px at 18% 0%, rgba(124,58,237,.12), transparent 62%),
            radial-gradient(820px 300px at 92% 40%, rgba(124,58,237,.08), transparent 62%);
    pointer-events:none;
}
@supports (background: color-mix(in srgb, red 20%, transparent)){
    .g::before{
        background:
                radial-gradient(860px 300px at 18% 0%, color-mix(in srgb, var(--gcolor) 26%, transparent), transparent 62%),
                radial-gradient(820px 300px at 92% 40%, color-mix(in srgb, var(--gcolor) 12%, transparent), transparent 62%);
    }
}

.ghead{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; position:relative;}
.gtitle{display:flex; align-items:center; gap:10px; font-weight:900;}
.gmeta{font-size:12px; color:var(--muted)}

.hscroll{
    display:flex; gap:10px;
    overflow:auto; padding-bottom:10px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar{height:9px}
.hscroll::-webkit-scrollbar-track{background:transparent}
.hscroll::-webkit-scrollbar-thumb{
    background: rgba(124,58,237,.28);
    border-radius:999px;
}
@supports (background: color-mix(in srgb, red 20%, blue)){
    .hscroll::-webkit-scrollbar-thumb{
        background: color-mix(in srgb, var(--gcolor) 38%, rgba(11,18,32,.12));
    }
}

.productCard{
    scroll-snap-align:start;
    min-width:240px;
    border-radius:22px;
    overflow:hidden;
    background:rgba(255,255,255,.92);
    border:1px solid rgba(11,18,32,.10);
    box-shadow:0 12px 35px rgba(0,0,0,.12);
    cursor:pointer;
    transition:.25s ease;
    transform:translateZ(0);
    position:relative;
}
.productCard:hover{transform:translateY(-6px)}
.productCard .ph{width:100%; height:150px; background:rgba(11,18,32,.03); overflow:hidden;}
.productCard .ph img{width:100%; height:100%; object-fit:cover; display:block}
.productBody{padding:10px 12px 12px}
.productBody h4{font-size:13px; font-weight:900; margin:0; line-height:1.7}
.productBody p{font-size:12px; margin:6px 0 0; color:var(--muted)}

.productCard .badge{
    position:absolute; top:10px; right:10px;
    padding:6px 10px; border-radius:999px;
    font-size:12px; font-weight:900;
    background: rgba(124,58,237,.12);
    border:1px solid rgba(124,58,237,.24);
    box-shadow:0 12px 28px rgba(0,0,0,.10);
}
@supports (background: color-mix(in srgb, red 20%, white)){
    .productCard .badge{
        background: color-mix(in srgb, var(--gcolor) 18%, white);
        border:1px solid color-mix(in srgb, var(--gcolor) 32%, rgba(11,18,32,.10));
    }
}

/* =========================
   Bottom Nav (FAB)
   ========================= */

.bottom-nav{
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    width: min(720px, calc(100% - 18px));
    height: 74px;

    background: var(--bn-bar);
    border: 1px solid var(--bn-stroke);
    border-radius: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 14px;
    box-shadow: 0 18px 45px rgba(2,6,23,.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    z-index: 9999;
}

.bn-item{
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 56px;
    border-radius: 18px;

    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    gap: 4px;

    text-decoration:none;
    color: var(--bn-text);
    transition: .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.bn-item:hover{
    background: rgba(255,255,255,.06);
    color: var(--bn-text-active);
}




.bn-ico{ font-size: 18px; line-height: 1; opacity: .95; }
.bn-txt{ font-size: 11px; font-weight: 800; line-height: 1; opacity: .92; }

.bn-gap{ flex: 0 0 92px; height: 1px; }

.bn-item.is-active{
    background: rgba(225,29,72,.14);
    color: var(--bn-text-active);
    box-shadow: inset 0 0 0 1px rgba(225,29,72,.18);
}

.bn-badge{
    position:absolute;
    top: 8px;
    left: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #111827;
    font-size: 11px;
    font-weight: 900;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 8px 16px rgba(2,6,23,.25);
}

/* FAB */
.bn-fab{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;

    width: 86px;
    height: 86px;
    border-radius: 26px;

    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    gap: 4px;

    text-decoration:none;
    color: #fff;
    z-index: 5;
}

.bn-fab-bg{
    position:absolute;
    inset: 0;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--bn-accent), var(--bn-accent2));
    box-shadow:
            0 18px 40px rgba(225,29,72,.30),
            0 10px 22px rgba(255,77,109,.18),
            inset 0 1px 0 rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.18);
}

.bn-fab-ico, .bn-fab-txt{ position: relative; }
.bn-fab-ico{ font-size: 22px; line-height:1; }
.bn-fab-txt{ font-size: 11px; font-weight: 900; opacity: .98; }

/* ریسپانسیو */
@media (max-width: 420px){
    .bottom-nav{ height: 70px; border-radius: 24px; }
    .bn-gap{ flex-basis: 84px; }
    .bn-fab{ width: 78px; height: 78px; border-radius: 24px; }
    .bn-fab-bg{ border-radius: 24px; }
}

/* Responsive header */
@media (max-width: 980px){
    .nav{display:none}
    .menuBtn{display:inline-flex; align-items:center; gap:8px}
}
@media (max-width: 640px){
    .header-in{flex-direction: column; align-items: stretch;}
    .rightbar{width:100%; justify-content: space-between;}
}
@media (max-width: 768px){
    .slider{height: clamp(280px, 72vw, 420px); border-radius: 24px;}
    .slider-ui{padding:14px}
    .heroText{max-width:100%}
    .heroText h1{font-size:20px}
    .heroText p{font-size:12px}
    .productCard{min-width:78vw}
}

/* safe-area آیفون (✅ یک بار و درست) */
@supports (padding: env(safe-area-inset-bottom)){
    .bottom-nav{ bottom: calc(14px + env(safe-area-inset-bottom)); }
    body{ padding-bottom: calc(var(--bn-safe-pad) + env(safe-area-inset-bottom)); }
}


:root{
    --bg:#F6F8FF;
    --bg2:#FFFFFF;
    --txt:#0B1220;
    --muted:rgba(11,18,32,.62);
    --line:rgba(11,18,32,.10);
    --shadow:0 26px 70px rgba(11,18,32,.10);
    --shadow2:0 14px 34px rgba(11,18,32,.08);

    --acc1:#7C3AED;
    --acc2:#06B6D4;
    --acc3:#22C55E;
    --acc4:#F97316;

    --r1:30px;
    --r2:22px;
    --max:1180px;

    /* ===== Bottom Nav vars (یکپارچه و نهایی) ===== */
    --bn-bar: rgba(17, 24, 39, .86);
    --bn-stroke: rgba(255,255,255,.10);
    --bn-text: rgba(255,255,255,.70);
    --bn-text-active: rgba(255,255,255,.95);

    --bn-accent: #e11d48;
    --bn-accent2:#ff4d6d;

    /* فضای لازم پایین صفحه برای منوی ثابت */
    --bn-safe-pad: 130px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
    margin:0;
    font-family:"Vazirmatn",system-ui,-apple-system,Segoe UI,Roboto,Arial;
    color:var(--txt);
    background:
            radial-gradient(900px 520px at 12% 12%, rgba(124,58,237,.18), transparent 62%),
            radial-gradient(820px 520px at 88% 12%, rgba(6,182,212,.16), transparent 58%),
            radial-gradient(900px 620px at 70% 92%, rgba(34,197,94,.12), transparent 62%),
            radial-gradient(860px 520px at 35% 78%, rgba(249,115,22,.14), transparent 62%),
            linear-gradient(180deg, var(--bg), #EEF2FF 55%, var(--bg2));
    overflow-x:hidden;

    /* ✅ فقط یک بار */
    padding-bottom: var(--bn-safe-pad);
}

a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:18px 16px 90px; width:100%}

/* ===== Header ===== */
.header{
    position:sticky; top:0; z-index:80;
    background: rgba(255,255,255,.58);
    backdrop-filter: blur(18px);
    border-bottom:1px solid rgba(11,18,32,.08);
}
.header:after{
    content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,.24), rgba(6,182,212,.22), rgba(249,115,22,.20), transparent);
}
.header-in{
    max-width:var(--max);
    margin:0 auto;
    padding:14px 16px;
    display:flex; align-items:center; justify-content:space-between;
    gap:12px;
}
.brand{display:flex; align-items:center; gap:10px; min-width:240px}
.logo{
    width:46px; height:46px; border-radius:18px;
    display:grid; place-items:center;
    font-weight:900; color:#fff;
    background: linear-gradient(135deg, var(--acc1), var(--acc2));
    box-shadow: 0 26px 70px rgba(124,58,237,.18);
    border: 1px solid rgba(255,255,255,.65);
}
.logo img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.brand .t1{font-weight:900; font-size:15px}
.brand .t2{font-size:12px; color:var(--muted); margin-top:2px}

.rightbar{display:flex; align-items:center; gap:10px; flex:1; justify-content:flex-end}

.nav{display:flex; gap:8px; flex-wrap:wrap; align-items:center;}
.nav a{
    text-decoration:none;
    font-size:13px;
    padding:9px 12px;
    border-radius:999px;
    border:1px solid rgba(11,18,32,.10);
    background: rgba(255,255,255,.62);
    transition:.18s ease;
    box-shadow: 0 10px 22px rgba(11,18,32,.05);
    white-space:nowrap;
}
.nav a:hover{
    transform:translateY(-2px);
    background: rgba(255,255,255,.92);
    border-color: rgba(124,58,237,.22);
    box-shadow: 0 18px 38px rgba(124,58,237,.10);
}

.search{display:flex; align-items:center; gap:10px; width:min(560px,100%)}
.sbox{
    width:100%;
    display:flex; align-items:center; gap:10px;
    border:1px solid rgba(11,18,32,.10);
    background: rgba(255,255,255,.70);
    border-radius: 22px;
    padding:11px 14px;
    box-shadow: var(--shadow2);
}
.sbox input{border:none; outline:none; background:transparent; width:100%; font-size:14px}

.menuBtn{
    display:none;
    border:none; cursor:pointer;
    border-radius: 16px;
    padding:10px 12px;
    background: rgba(255,255,255,.70);
    border:1px solid rgba(11,18,32,.10);
    box-shadow: var(--shadow2);
    font-weight:900;
}

/* ===== Drawer ===== */
.drawer{display:none; position:fixed; inset:0; z-index:90}
.drawer .backdrop{position:absolute; inset:0; background: rgba(11,18,32,.38); backdrop-filter: blur(6px);}
.drawer .panel{
    position:absolute; top:12px; right:12px; left:12px;
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    border:1px solid rgba(11,18,32,.10);
    box-shadow: var(--shadow);
    overflow:hidden;
}
.drawerHead{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 14px 10px;
    border-bottom:1px solid rgba(11,18,32,.08);
}
.drawerBody{padding:12px 14px 14px}
.drawerNav{display:flex; flex-direction:column; gap:10px}
.drawerNav a{
    text-decoration:none;
    padding:12px 12px;
    border-radius: 18px;
    border:1px solid rgba(11,18,32,.10);
    background: rgba(255,255,255,.76);
    font-weight:800;
}
.xbtn{border:none; cursor:pointer; border-radius: 14px; padding:9px 12px; font-weight:900; background: rgba(11,18,32,.06);}

/* ===== Sections / Hero ===== */
.section{margin-top:22px}
.head{display:flex; justify-content:space-between; align-items:flex-end; gap:10px; flex-wrap:wrap; margin-bottom:12px;}
.head h2{margin:0; font-size:18px}
.head p{margin:0; font-size:13px; color:var(--muted)}

.hero{margin-top:16px}
.slider{
    position:relative;
    border-radius: var(--r1);
    overflow:hidden;
    border: 1px solid rgba(11,18,32,.10);
    background: rgba(255,255,255,.66);
    box-shadow: var(--shadow);
    height: clamp(320px, 46vw, 560px);
}
.slides{height:100%; position:relative}
.slide{position:absolute; inset:0; opacity:0; transform: scale(1.04); transition: opacity .6s ease, transform 1s ease;}
.slide.active{opacity:1; transform: scale(1)}
.slide img{width:100%; height:100%; object-fit:cover; display:block;}
.shade{
    position:absolute; inset:0;
    background:
            radial-gradient(900px 420px at 22% 12%, rgba(124,58,237,.26), transparent 60%),
            radial-gradient(860px 420px at 85% 18%, rgba(6,182,212,.18), transparent 58%),
            linear-gradient(180deg, rgba(0,0,0,.00) 10%, rgba(0,0,0,.28) 68%, rgba(0,0,0,.62) 100%);
    pointer-events:none;
}
.slider-ui{position:absolute; inset:0; padding:18px; display:flex; flex-direction:column; justify-content:space-between; gap:10px;}
.heroBadge{
    display:inline-flex; align-items:center; gap:8px;
    padding:8px 10px; border-radius:999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,.92);
    font-size: 12px; font-weight:800;
    box-shadow: 0 18px 44px rgba(0,0,0,.18);
}
.heroText{margin-top:auto; max-width: 86%;}
.heroText h1{margin:0 0 6px; font-size: clamp(20px, 2.2vw, 32px); line-height:1.55; color:#fff; text-shadow: 0 14px 38px rgba(0,0,0,.46);}
.heroText p{margin:0; color: rgba(255,255,255,.88); font-size: 13px; line-height:2; max-width: 62ch;}

.controls{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;}
.dots{display:flex; gap:8px; align-items:center}
.dot{width:9px; height:9px; border-radius:999px; border:1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.26); cursor:pointer; transition:.18s ease;}
.dot.active{width:30px; background: linear-gradient(90deg, rgba(124,58,237,.98), rgba(6,182,212,.92), rgba(249,115,22,.92)); border-color: rgba(255,255,255,.96); box-shadow: 0 16px 44px rgba(124,58,237,.22);}
.btns{display:flex; gap:8px}
.btn{
    border:none; cursor:pointer;
    padding:10px 14px; border-radius: 18px;
    color: rgba(255,255,255,.98); font-weight:900;
    background: linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.10));
    border:1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
    transition:.18s ease;
}
.btn:hover{transform: translateY(-2px);}

.toast{
    position:fixed; bottom:18px; left:18px; right:18px;
    max-width: 560px; margin:0 auto;
    border:1px solid rgba(11,18,32,.10);
    border-radius: 22px; padding:12px 14px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    display:none; align-items:center; justify-content:space-between; gap:10px;
    z-index:95;
}
.toast.show{display:flex}
.toast button{
    border:none; cursor:pointer;
    padding:10px 14px; border-radius: 18px;
    font-weight:900; color:#fff;
    background: linear-gradient(135deg, var(--acc4), var(--acc1));
    box-shadow: 0 16px 40px rgba(249,115,22,.18);
}

footer{
    margin-top:34px; padding-top:18px;
    border-top:1px solid rgba(11,18,32,.10);
    color:var(--muted);
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    font-size:13px;
}

/* ===== Brands ===== */
.brandScroll{
    display:flex;
    gap:14px;
    overflow-x:auto;
    padding:6px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type:x mandatory;
}
.brandCard{flex:0 0 auto; width:92px; text-align:center; cursor:pointer; scroll-snap-align:start;}
.brandCard img{
    width:72px; height:72px; border-radius:50%;
    border:3px solid rgba(124,58,237,.65);
    object-fit:cover;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    background:#fff;
}
.brandCard span{
    display:block;
    margin-top:7px;
    font-size:13px;
    font-weight:900;
    color:var(--txt);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ===== Groups / Products ===== */
.groups{display:flex; flex-direction:column; gap:14px;}
.g{
    --gcolor: var(--acc1);
    border:1px solid rgba(11,18,32,.10);
    border-radius: 26px;
    padding:14px;
    background: rgba(255,255,255,.72);
    box-shadow: var(--shadow2);
    overflow:hidden;
    position:relative;
}
.g::before{
    content:"";
    position:absolute; inset:-2px;
    background:
            radial-gradient(860px 300px at 18% 0%, rgba(124,58,237,.12), transparent 62%),
            radial-gradient(820px 300px at 92% 40%, rgba(124,58,237,.08), transparent 62%);
    pointer-events:none;
}
@supports (background: color-mix(in srgb, red 20%, transparent)){
    .g::before{
        background:
                radial-gradient(860px 300px at 18% 0%, color-mix(in srgb, var(--gcolor) 26%, transparent), transparent 62%),
                radial-gradient(820px 300px at 92% 40%, color-mix(in srgb, var(--gcolor) 12%, transparent), transparent 62%);
    }
}

.ghead{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; position:relative;}
.gtitle{display:flex; align-items:center; gap:10px; font-weight:900;}
.gmeta{font-size:12px; color:var(--muted)}

.hscroll{
    display:flex; gap:10px;
    overflow:auto; padding-bottom:10px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar{height:9px}
.hscroll::-webkit-scrollbar-track{background:transparent}
.hscroll::-webkit-scrollbar-thumb{
    background: rgba(124,58,237,.28);
    border-radius:999px;
}
@supports (background: color-mix(in srgb, red 20%, blue)){
    .hscroll::-webkit-scrollbar-thumb{
        background: color-mix(in srgb, var(--gcolor) 38%, rgba(11,18,32,.12));
    }
}

.productCard{
    scroll-snap-align:start;
    min-width:240px;
    border-radius:22px;
    overflow:hidden;
    background:rgba(255,255,255,.92);
    border:1px solid rgba(11,18,32,.10);
    box-shadow:0 12px 35px rgba(0,0,0,.12);
    cursor:pointer;
    transition:.25s ease;
    transform:translateZ(0);
    position:relative;
}
.productCard:hover{transform:translateY(-6px)}
.productCard .ph{width:100%; height:150px; background:rgba(11,18,32,.03); overflow:hidden;}
.productCard .ph img{width:100%; height:100%; object-fit:cover; display:block}
.productBody{padding:10px 12px 12px}
.productBody h4{font-size:13px; font-weight:900; margin:0; line-height:1.7}
.productBody p{font-size:12px; margin:6px 0 0; color:var(--muted)}

.productCard .badge{
    position:absolute; top:10px; right:10px;
    padding:6px 10px; border-radius:999px;
    font-size:12px; font-weight:900;
    background: rgba(124,58,237,.12);
    border:1px solid rgba(124,58,237,.24);
    box-shadow:0 12px 28px rgba(0,0,0,.10);
}
@supports (background: color-mix(in srgb, red 20%, white)){
    .productCard .badge{
        background: color-mix(in srgb, var(--gcolor) 18%, white);
        border:1px solid color-mix(in srgb, var(--gcolor) 32%, rgba(11,18,32,.10));
    }
}

/* =========================
   Bottom Nav (FAB)
   ========================= */

.bottom-nav{
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    width: min(720px, calc(100% - 18px));
    height: 74px;

    background: var(--bn-bar);
    border: 1px solid var(--bn-stroke);
    border-radius: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 14px;
    box-shadow: 0 18px 45px rgba(2,6,23,.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    z-index: 9999;
}

.bn-item{
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 56px;
    border-radius: 18px;

    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    gap: 4px;

    text-decoration:none;
    color: var(--bn-text);
    transition: .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.bn-item:hover{
    background: rgba(255,255,255,.06);
    color: var(--bn-text-active);
}

.bn-ico{ font-size: 18px; line-height: 1; opacity: .95; }
.bn-txt{ font-size: 11px; font-weight: 800; line-height: 1; opacity: .92; }

.bn-gap{ flex: 0 0 92px; height: 1px; }

.bn-item.is-active{
    background: rgba(225,29,72,.14);
    color: var(--bn-text-active);
    box-shadow: inset 0 0 0 1px rgba(225,29,72,.18);
}

.bn-badge{
    position:absolute;
    top: 8px;
    left: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #111827;
    font-size: 11px;
    font-weight: 900;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 8px 16px rgba(2,6,23,.25);
}

/* FAB */
.bn-fab{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;

    width: 86px;
    height: 86px;
    border-radius: 26px;

    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    gap: 4px;

    text-decoration:none;
    color: #fff;
    z-index: 5;
}

.bn-fab-bg{
    position:absolute;
    inset: 0;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--bn-accent), var(--bn-accent2));
    box-shadow:
            0 18px 40px rgba(225,29,72,.30),
            0 10px 22px rgba(255,77,109,.18),
            inset 0 1px 0 rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.18);
}

.bn-fab-ico, .bn-fab-txt{ position: relative; }
.bn-fab-ico{ font-size: 22px; line-height:1; }
.bn-fab-txt{ font-size: 11px; font-weight: 900; opacity: .98; }

/* ریسپانسیو */
@media (max-width: 420px){
    .bottom-nav{ height: 70px; border-radius: 24px; }
    .bn-gap{ flex-basis: 84px; }
    .bn-fab{ width: 78px; height: 78px; border-radius: 24px; }
    .bn-fab-bg{ border-radius: 24px; }
}

/* Responsive header */
@media (max-width: 980px){
    .nav{display:none}
    .menuBtn{display:inline-flex; align-items:center; gap:8px}
}
@media (max-width: 640px){
    .header-in{flex-direction: column; align-items: stretch;}
    .rightbar{width:100%; justify-content: space-between;}
}
@media (max-width: 768px){
    .slider{height: clamp(280px, 72vw, 420px); border-radius: 24px;}
    .slider-ui{padding:14px}
    .heroText{max-width:100%}
    .heroText h1{font-size:20px}
    .heroText p{font-size:12px}
    .productCard{min-width:78vw}
}

/* safe-area آیفون (✅ یک بار و درست) */
@supports (padding: env(safe-area-inset-bottom)){
    .bottom-nav{ bottom: calc(14px + env(safe-area-inset-bottom)); }
    body{ padding-bottom: calc(var(--bn-safe-pad) + env(safe-area-inset-bottom)); }
}





/* ===== Pro Footer ===== */
.pro-footer{
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(17,24,39,.92), rgba(2,6,23,.96));
  color: rgba(255,255,255,.86);
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 18px 45px rgba(2,6,23,.25);
}

.pro-footer .pf-grid{
  display: grid;
  grid-template-columns: 1.2fr .9fr 1.1fr;
  gap: 14px;
  align-items: start;
}

.pro-footer .pf-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pro-footer .pf-title{
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
  display:flex;
  align-items:center;
  gap:8px;
}

.pro-footer .pf-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size: 13px;
  line-height: 1.9;
  opacity: .92;
}

.pro-footer .pf-ico{ width: 22px; text-align:center; opacity:.95; }
.pro-footer a{ color: rgba(255,255,255,.92); text-decoration:none; }
.pro-footer a:hover{ text-decoration:underline; }

.pro-footer .pf-links{
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 13px;
}

.pro-footer .pf-pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.pro-footer .pf-pill:hover{
  background: rgba(255,255,255,.09);
}

.pro-footer .pf-map{
  overflow:hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.pro-footer iframe{
  width: 100%;
  height: 230px;
  border: 0;
  display:block;
}

.pro-footer .pf-bottom{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  opacity: .88;
}

.pro-footer .pf-dev a{
  color: #ff4d6d;
  font-weight: 900;
}

@media (max-width: 900px){
  .pro-footer .pf-grid{ grid-template-columns: 1fr; }
  .pro-footer iframe{ height: 220px; }
}


