/* Site chrome: header, mega menu, live search, drawers (menu / cart), mobile bar, footer. */
.dsh { position: sticky; top: 0; z-index: 60; background: rgba(8, 12, 22, .8); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.dsh::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 2px; background: linear-gradient(90deg, transparent 5%, var(--t1), var(--t2), transparent 95%); opacity: .7; }
.dsh-top { display: flex; align-items: center; gap: 22px; height: 72px; }
.dsh-logo img { height: 42px; width: auto; }
.dsh-menu, .dsh-search-btn { display: none; }
.dsh-search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; height: 48px; border-radius: 15px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.dsh-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,180,0,.12); background: rgba(255,255,255,.08); }
.dsh-search input { flex: 1; min-width: 0; height: 100%; padding: 0 16px; background: none; border: 0; outline: 0; font-size: 15px; }
.dsh-search input::placeholder { color: #7b8190; }
.dsh-search button[type=submit] { width: 40px; height: 40px; margin-inline-end: 4px; border-radius: 12px; border: 0; background: var(--gold); color: #161000; display: grid; place-items: center; }
.dsh-suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 5; padding: 8px; border-radius: 18px; background: rgba(16, 20, 30, .98); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-height: 70vh; overflow: auto; }
.dsh-suggest h6 { margin: 6px 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.sg-teams { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 8px 8px; }
.sg-teams a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 13px; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.sg-item:hover, .sg-item.on { background: rgba(255,255,255,.07); }
.sg-item .th { width: 52px; height: 52px; flex: none; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in oklab, var(--c) 45%, #1a1f2d), #11141c); }
.sg-item .th img { width: 88%; height: 88%; object-fit: contain; }
.sg-item b { display: block; font-size: 14px; font-weight: 600; }
.sg-item small { color: var(--gold); font-weight: 700; }
.sg-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }

.dsh-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.dsh-icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; border: 0; background: none; }
.dsh-icon:hover { background: rgba(255,255,255,.07); }
.dsh-icon i, .dsh-cart i { position: absolute; top: 3px; left: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #111; font: 700 10.5px/18px Vazirmatn; font-style: normal; text-align: center; }
.dsh-icon i:empty, .dsh-icon i[data-zero] { display: none; }
.dsh-tryon {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 13px; border: 0;
  background: linear-gradient(#141a28, #141a28) padding-box, conic-gradient(from var(--ang, 0deg), var(--t1), var(--t2), var(--gold), var(--t1)) border-box;
  border: 1.5px solid transparent; font-weight: 700; font-size: 14px; animation: tryon-ring 6s linear infinite;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes tryon-ring { to { --ang: 360deg; } }
.dsh-account { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 13px; font-size: 14px; font-weight: 600; }
.dsh-account:hover { background: rgba(255,255,255,.07); }
.dsh-cart { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 16px; border-radius: 15px; border: 0; background: rgba(255,255,255,.07); }
.dsh-cart:hover { background: rgba(255,255,255,.11); }
.dsh-cart .meta { display: grid; line-height: 1.25; text-align: right; }
.dsh-cart .meta b { font-size: 12px; color: var(--muted); font-weight: 500; }
.dsh-cart .meta small { font-size: 13.5px; font-weight: 800; }

/* nav + mega */
.dsh-nav { border-top: 1px solid var(--line); transition: height .3s ease, opacity .3s; height: 50px; }
.dsh.compact .dsh-nav { height: 0; opacity: 0; overflow: hidden; border-top-color: transparent; }
.dsh-nav .wrap { display: flex; align-items: center; gap: 2px; height: 50px; }
.nav-item { position: static; }
.nav-item > a, .nav-item > button { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 13px; border-radius: 11px; border: 0; background: none; font-size: 14px; font-weight: 600; color: #d6d9e1; }
.nav-item > a:hover, .nav-item:hover > a, .nav-item:hover > button, .nav-item.open > button { background: rgba(255,255,255,.07); color: #fff; }
.nav-item svg.caret { width: 14px; height: 14px; transition: transform .2s; }
.nav-item:hover svg.caret { transform: rotate(180deg); }
.nav-hot { color: #ff7a59 !important; }
.nav-end { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.mega {
  position: absolute; inset-inline: 0; top: 100%; z-index: 4; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s ease;
  background: rgba(12, 16, 26, .98); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 1.3fr; gap: 28px; padding: 26px 0 30px; height: auto; align-items: start; }
.mega h5 { margin: 0 0 10px; font-size: 13px; color: var(--gold); font-weight: 700; }
.mega-team { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 11px; font-size: 14px; color: #d8dbe3; }
.mega-team:hover { background: rgba(255,255,255,.06); color: #fff; }
.mega-feat { position: relative; border-radius: 20px; overflow: hidden; min-height: 230px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(80% 70% at 50% 35%, color-mix(in oklab, var(--c) 55%, transparent), transparent 70%), linear-gradient(160deg, #1a2032, #0e121c); border: 1px solid var(--line); }
.mega-feat img { position: absolute; top: 6px; left: 50%; width: 62%; transform: translateX(-50%); filter: drop-shadow(0 18px 20px rgba(0,0,0,.6)); transition: transform .4s; }
.mega-feat:hover img { transform: translateX(-50%) scale(1.06) rotate(-2deg); }
.mega-feat small { color: var(--gold); font-weight: 700; font-size: 12px; } .mega-feat b { font-size: 15px; }
.mega.flags .wrap { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* drawers live in a clipped fixed layer, so the off-screen ones never widen the page (RTL scrolls towards the left) */
html { overflow-x: clip; }
.ds-layer { position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; }
.ds-layer .ds-scrim.on, .ds-layer .drawer { pointer-events: auto; }
/* drawers */
.ds-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(3, 5, 10, .6); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: .25s; }
.ds-scrim.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 95; width: min(420px, 92vw); display: flex; flex-direction: column; background: #0e121c; border-inline: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.drawer.menu { right: 0; transform: translateX(100%); }
.drawer.cart { left: 0; transform: translateX(-100%); }
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head b { font-size: 17px; }
.drawer-body { flex: 1; overflow: auto; padding: 14px 18px; }
.drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.x-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.acc { border-bottom: 1px solid var(--line); }
.acc > button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border: 0; background: none; font-weight: 700; font-size: 15px; }
.acc > button svg { transition: transform .2s; }
.acc.open > button svg { transform: rotate(180deg); }
.acc > div { display: none; padding: 0 0 14px; }
.acc.open > div { display: block; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, minmax(0, 1fr))); gap: 12px 8px; }
.team-grid a { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; text-align: center; color: #cfd3dc; }
.menu-links { display: grid; gap: 2px; padding: 8px 0; }
.menu-links a { display: flex; align-items: center; gap: 10px; padding: 12px 4px; font-weight: 600; }

/* mini cart */
.ci { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ci .th { width: 76px; height: 76px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in oklab, var(--c) 45%, #1a1f2d), #11141c); }
.ci .th img { width: 90%; height: 90%; object-fit: contain; }
.ci b { font-size: 14px; font-weight: 600; line-height: 1.6; }
.ci .meta { font-size: 12.5px; color: var(--muted); }
.ci .row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border-radius: 11px; border: 1px solid var(--line-2); height: 36px; }
.qty button { width: 34px; height: 100%; border: 0; background: none; font-size: 18px; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.ci .price { font-weight: 800; color: var(--gold); }
.ci .del { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 2px 0; }
.ci .del:hover { color: var(--bad); }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--muted); display: grid; justify-items: center; gap: 12px; }
.cart-empty svg { width: 64px; height: 64px; opacity: .5; }
.ship-bar { font-size: 13px; color: #cfd3dc; }
.ship-bar .bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); margin-top: 7px; overflow: hidden; }
.ship-bar .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--ok)); transition: width .4s; }
.sum { display: flex; justify-content: space-between; font-size: 15px; } .sum b { font-size: 18px; }

/* mobile bottom bar */
.mbar { display: none; }

/* footer */
.dsf { position: relative; margin-top: 60px; background: linear-gradient(180deg, rgba(6, 18, 12, .2), rgba(4, 12, 8, .92) 30%); border-top: 1px solid var(--line); }
.dsf-cols { display: grid; grid-template-columns: 1.6fr minmax(0, 1fr) minmax(0, 1fr) 1.3fr; gap: 36px; padding: 48px 0 32px; }
.dsf h4 { margin: 0 0 14px; font-size: 15px; }
.dsf p, .dsf li { color: var(--muted); font-size: 13.5px; }
.dsf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.dsf ul a:hover { color: #fff; }
.dsf .soc { display: flex; gap: 8px; margin-top: 14px; }
.dsf .soc a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #dfe2ea; }
.dsf .soc a:hover { background: var(--gold); color: #111; }
.seals { display: flex; gap: 10px; margin-top: 16px; }
.seal { width: 96px; height: 96px; border-radius: 16px; display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.18); padding: 8px; }
.dsf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 16px 0 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .dsh-account span, .dsh-tryon span { display: none; }
  .dsh-tryon { padding: 0 12px; }
  .mega .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-feat { display: none; }
}
@media (max-width: 900px) {
  body { padding-bottom: 70px; }
  .dsh-top { height: 62px; gap: 10px; }
  .dsh-menu, .dsh-search-btn { display: grid; }
  .dsh-logo { margin-inline: auto; } .dsh-logo img { height: 34px; }
  .dsh-actions { margin: 0; gap: 2px; }
  .dsh-account, .dsh-tryon, .dsh-actions .wish { display: none; }
  .dsh-cart { height: 44px; width: 44px; padding: 0; justify-content: center; background: none; }
  .dsh-cart .meta { display: none; }
  .dsh-search { position: absolute; inset: 62px 12px auto 12px; max-width: none; display: none; background: #121726; }
  .dsh.search-on .dsh-search { display: flex; }
  .dsh-nav { display: none; }
  .dsf-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; padding-top: 36px; }
  .dsf-cols > div:first-child { grid-column: 1 / -1; }
  .mbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; position: fixed; inset: auto 0 0 0; z-index: 70;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(10, 13, 22, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .mbar a, .mbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; height: 64px; border: 0; background: none; font-size: 11px; color: #c9cdd6; }
  .mbar .on { color: var(--gold); }
  .mbar i { position: absolute; top: 6px; left: calc(50% - 20px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--gold); color: #111; font: 700 10px/17px Vazirmatn; font-style: normal; }
  .mbar .cam { transform: translateY(-16px); }
  .mbar .cam span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #111;
    background: conic-gradient(from var(--ang, 0deg), var(--t1), var(--gold), var(--t2), var(--t1)); animation: tryon-ring 6s linear infinite;
    box-shadow: 0 10px 26px -6px rgba(0,0,0,.8), 0 0 0 5px #0a0d16; }
  .mbar .cam span svg { width: 26px; height: 26px; }
}
@media (max-width: 520px) {
  .dsf-cols { grid-template-columns: minmax(0, 1fr); }
}
