/* Seraghami storefront – built from the approved preview */
@font-face{font-family:Vazirmatn;src:url(../fonts/Vazirmatn-Regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Vazirmatn;src:url(../fonts/Vazirmatn-Medium.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:Vazirmatn;src:url(../fonts/Vazirmatn-Bold.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:Vazirmatn;src:url(../fonts/Vazirmatn-ExtraBold.woff2) format("woff2");font-weight:800;font-display:swap}
@font-face{font-family:Vazirmatn;src:url(../fonts/Vazirmatn-Black.woff2) format("woff2");font-weight:900;font-display:swap}
:root{
  --brand:#e11d48; --brand-600:#be123c; --brand-50:#fff1f3;
  --accent:#f59e0b; --ok:#16a34a; --info:#0284c7;
  --bg:#f3f4f6; --surface:#fff; --surface-2:#f9fafb;
  --text:#1f2937; --muted:#6b7280; --line:#e5e7eb;
  --radius:12px; --radius-sm:8px; --shadow:0 1px 2px rgba(0,0,0,.05),0 4px 16px rgba(0,0,0,.06);
  --container:1336px;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#0f1115; --surface:#181b22; --surface-2:#1f232c; --text:#e5e7eb; --muted:#9ca3af; --line:#2a2f3a;
  --brand-50:#3a1520; --shadow:0 1px 2px rgba(0,0,0,.4); color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:Vazirmatn,Tahoma,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.8;direction:rtl}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
.container{max-width:var(--container);margin-inline:auto;padding-inline:16px}
.icon{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}


/* ===== header ===== */
.hdr{background:var(--surface);position:sticky;top:0;z-index:50;box-shadow:0 1px 0 var(--line)}
.hdr-top{display:flex;align-items:center;gap:20px;height:72px}
.logo img{height:46px;width:auto}
.search{flex:1;max-width:620px;position:relative}
.search input{width:100%;height:44px;border-radius:var(--radius-sm);border:0;background:var(--bg);padding:0 44px 0 14px;outline:none}
.search input:focus{background:var(--surface);box-shadow:0 0 0 2px var(--brand)}
.search .icon{position:absolute;right:12px;top:11px;color:var(--muted)}
.suggest{position:absolute;inset-inline:0;top:48px;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:8px;display:none;max-height:420px;overflow:auto}
.suggest.open{display:block}
.suggest h6{font-size:12px;color:var(--muted);padding:6px 8px;font-weight:500}
.suggest a{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:8px}
.suggest a:hover{background:var(--bg)}
.suggest img{width:40px;height:40px;object-fit:contain;border-radius:6px;background:#fff}
.hdr-actions{display:flex;align-items:center;gap:10px;margin-inline-start:auto}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 16px;border-radius:var(--radius-sm);font-weight:600;white-space:nowrap}
.btn-line{border:1px solid var(--line)}
.btn-brand{background:var(--brand);color:#fff}
.btn-brand:hover{background:var(--brand-600)}
.btn-ghost{color:var(--brand)}
.cart-btn{position:relative;padding:8px}
.badge{position:absolute;top:0;left:0;min-width:18px;height:18px;border-radius:9px;background:var(--brand);color:#fff;font-size:11px;display:grid;place-items:center;border:2px solid var(--surface)}
.nav{display:flex;align-items:center;gap:22px;height:44px;font-size:13px;color:var(--muted);position:relative}
.nav > a,.nav > div > button{display:flex;align-items:center;gap:6px;height:44px;border-bottom:2px solid transparent}
.nav > a:hover,.nav > div > button:hover{color:var(--text);border-color:var(--brand)}
.nav .sep{width:1px;height:18px;background:var(--line)}
.mega{position:absolute;top:44px;right:0;width:min(760px,90vw);background:var(--surface);box-shadow:var(--shadow);border-radius:0 0 var(--radius) var(--radius);padding:16px;display:none;grid-template-columns:repeat(3,1fr);gap:4px}
.cats-menu:hover .mega,.cats-menu:focus-within .mega{display:grid}
.mega a{padding:8px 10px;border-radius:8px;color:var(--text);display:flex;justify-content:space-between}
.mega a:hover{background:var(--brand-50);color:var(--brand)}
.mega small{color:var(--muted)}

/* mobile tab bar */
.tabbar{display:none}
@media (max-width:768px){
  .hdr-top{height:auto;flex-wrap:wrap;gap:10px;padding:10px 0}
  .logo{order:1} .hdr-actions{order:2} .search{order:3;flex-basis:100%;max-width:none}
  .logo img{height:36px}
  .hdr-actions .btn-line{display:none}
  .nav{display:none}
  .tabbar{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;inset-inline:0;background:var(--surface);box-shadow:0 -1px 0 var(--line);z-index:60;padding-bottom:env(safe-area-inset-bottom)}
  .tabbar a{display:flex;flex-direction:column;align-items:center;font-size:11px;padding:8px 0;color:var(--muted)}
  .tabbar a.on{color:var(--brand)}
  body{padding-bottom:64px}
}

/* ===== sections ===== */
main{padding:16px 0 40px}
.sec{margin-top:24px}
.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sec-head h2{font-size:18px;font-weight:800;display:flex;align-items:center;gap:8px}
.sec-head h2::before{content:"";width:4px;height:20px;border-radius:2px;background:var(--brand)}
.sec-head a{color:var(--info);font-size:13px;display:flex;align-items:center;gap:4px}

/* slider */
.slider{position:relative;border-radius:var(--radius);overflow:hidden;aspect-ratio:1336/400;background:var(--surface)}
.slides{display:flex;height:100%;transition:transform .5s ease}
.slides a{flex:0 0 100%;height:100%}
.slides img{width:100%;height:100%;object-fit:cover}
.dots{position:absolute;bottom:12px;right:50%;transform:translateX(50%);display:flex;gap:6px}
.dots button{width:8px;height:8px;border-radius:4px;background:rgba(255,255,255,.6);transition:width .3s}
.dots button.on{width:22px;background:#fff}
.sl-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.9);display:grid;place-items:center;color:#111;box-shadow:var(--shadow)}
.sl-prev{right:16px}.sl-next{left:16px}
@media (max-width:768px){.slider{aspect-ratio:16/8;border-radius:var(--radius-sm)}.sl-nav{display:none}}

/* category circles */
.cat-row{display:grid;grid-template-columns:repeat(10,1fr);gap:12px}
.cat-row a{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;font-size:12px}
.cat-row .ring{width:96px;max-width:100%;aspect-ratio:1;border-radius:50%;background:var(--surface);overflow:hidden;box-shadow:var(--shadow);display:grid;place-items:center}
.cat-row .ring img{width:80%;height:80%;object-fit:contain}
@media (max-width:1024px){.cat-row{grid-template-columns:repeat(5,1fr)}}
@media (max-width:560px){.cat-row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding-bottom:6px}.cat-row a{flex:0 0 72px;scroll-snap-align:start}.cat-row .ring{width:72px}}

/* incredible band */
.amazing{background:linear-gradient(135deg,var(--brand),#f43f5e 60%,#fb7185);border-radius:var(--radius);padding:16px;display:flex;gap:12px;align-items:stretch}
.amazing-head{flex:0 0 170px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px}
.amazing-head b{font-size:22px;font-weight:900;line-height:1.4}
.timer{display:flex;gap:4px;direction:ltr}
.timer span{background:#fff;color:var(--brand);border-radius:6px;min-width:32px;padding:2px 4px;font-weight:800;text-align:center}
.amazing-head a{color:#fff;font-size:13px;opacity:.9}
.hscroll{display:flex;gap:2px;overflow-x:auto;scroll-snap-type:x mandatory;flex:1;border-radius:var(--radius-sm);scrollbar-width:none}
.hscroll::-webkit-scrollbar{display:none}
.hscroll .pc{flex:0 0 180px;scroll-snap-align:start;border-radius:0}
.hscroll .pc:first-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0}
@media (max-width:768px){.amazing{flex-direction:column;padding:12px}.amazing-head{flex:none;flex-direction:row;justify-content:space-between}.amazing-head b{font-size:16px}.hscroll .pc{flex-basis:150px}}

/* product card – fixed geometry so layout never jumps */
.pc{background:var(--surface);padding:12px;display:flex;flex-direction:column;gap:8px;position:relative;transition:box-shadow .2s}
.pc:hover{box-shadow:0 4px 24px rgba(0,0,0,.1);z-index:1}
.pc .ph{aspect-ratio:1;border-radius:8px;overflow:hidden;background:#fff;display:grid;place-items:center}
.pc .ph img{width:100%;height:100%;object-fit:contain;transition:transform .3s}
.pc:hover .ph img{transform:scale(1.04)}
.pc h3{font-size:13px;font-weight:500;line-height:1.7;height:3.4em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pc .meta{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);min-height:18px}
.pc .meta .stock{color:var(--brand)}
.price{display:flex;flex-direction:column;align-items:flex-end;min-height:44px;justify-content:flex-end}
.price .now{font-weight:800;font-size:15px}
.price .now small{font-weight:400;font-size:11px;color:var(--muted);margin-inline-start:2px}
.price .old{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}
.price .old s{opacity:.8}
.off{background:var(--brand);color:#fff;border-radius:12px;padding:0 7px;font-size:11px;font-weight:700}
.pc .unavail{color:var(--muted);font-weight:700;text-align:center;padding:10px 0}
.pc .quick{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;gap:6px;opacity:0;transition:.2s}
.pc:hover .quick{opacity:1}
.quick button{width:32px;height:32px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow);display:grid;place-items:center;color:var(--muted)}
.quick button:hover{color:var(--brand)}
.quick .icon{width:16px;height:16px}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1px;background:var(--line);border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
@media (max-width:560px){.grid{grid-template-columns:repeat(2,1fr)}.pc{padding:10px}.pc h3{font-size:12px}}

/* banners */
.banners{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.banners a{border-radius:var(--radius);overflow:hidden;aspect-ratio:16/9;background:var(--surface)}
.banners img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.banners a:hover img{transform:scale(1.03)}
@media (max-width:768px){.banners{grid-template-columns:repeat(2,1fr);gap:10px}}

/* brands */
.brands{display:flex;gap:1px;overflow-x:auto;background:var(--line);border-radius:var(--radius);scrollbar-width:none}
.brands a{flex:1 0 130px;background:var(--surface);aspect-ratio:4/3;display:grid;place-items:center;padding:16px}
.brands img{max-height:70px;object-fit:contain;filter:grayscale(1);opacity:.75;transition:.2s}
.brands a:hover img{filter:none;opacity:1}

/* services */
.services{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;text-align:center;font-size:12px;color:var(--muted)}
.services div{display:flex;flex-direction:column;align-items:center;gap:8px}
.services .icon{width:40px;height:40px;color:var(--brand);stroke-width:1.4}
@media (max-width:768px){.services{grid-template-columns:repeat(3,1fr)}}

/* footer */
footer{background:var(--surface);border-top:1px solid var(--line);margin-top:40px;padding:32px 0 20px;font-size:13px}
.ft-grid{display:grid;grid-template-columns:repeat(3,1fr) 1.4fr;gap:24px;margin-top:28px}
.ft-grid h4{font-size:15px;margin-bottom:10px}
.ft-grid ul{list-style:none;color:var(--muted);display:grid;gap:6px}
.ft-grid a:hover{color:var(--brand)}
.news{display:flex;gap:8px;margin-top:8px}
.news input{flex:1;height:40px;border-radius:var(--radius-sm);border:0;background:var(--bg);padding:0 12px;min-width:0}
.social{display:flex;gap:10px;margin-top:14px}
.social a{width:38px;height:38px;border-radius:50%;background:var(--bg);display:grid;place-items:center;color:var(--muted)}
.trust{display:flex;gap:10px;margin-top:14px}
.trust span{width:80px;height:80px;border:1px dashed var(--line);border-radius:8px;display:grid;place-items:center;font-size:11px;color:var(--muted)}
.copy{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;color:var(--muted);font-size:12px;text-align:center}
@media (max-width:768px){.ft-grid{grid-template-columns:1fr 1fr}.ft-grid > div:last-child{grid-column:1/-1}}

/* breadcrumb */
.crumb{display:flex;gap:6px;font-size:12px;color:var(--muted);margin-bottom:12px;flex-wrap:wrap}
.crumb a:hover{color:var(--brand)}
.crumb span::before{content:"/";margin-inline-end:6px}

/* ===== category ===== */
.listing{display:grid;grid-template-columns:280px 1fr;gap:16px;align-items:start}
.filters{padding:16px;position:sticky;top:132px}
.filters h3{font-size:15px;display:flex;justify-content:space-between;margin-bottom:6px}
.filters h3 button{font-size:12px;color:var(--info)}
.fgroup{border-top:1px solid var(--line);padding:12px 0}
.fgroup > b{display:block;margin-bottom:8px;font-size:13px}
.chk{display:flex;align-items:center;gap:8px;padding:4px 0;cursor:pointer}
.chk input{accent-color:var(--brand);width:16px;height:16px}
.switch{display:flex;justify-content:space-between;align-items:center;cursor:pointer}
.switch input{appearance:none;width:38px;height:22px;border-radius:11px;background:var(--line);position:relative;transition:.2s;cursor:pointer}
.switch input::after{content:"";position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.2s}
.switch input:checked{background:var(--brand)}
.switch input:checked::after{right:19px}
.range{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.range label{font-size:11px;color:var(--muted)}
.range input{width:100%;height:36px;border:1px solid var(--line);border-radius:8px;padding:0 8px;background:var(--surface);direction:ltr;text-align:left}
.sortbar{display:flex;align-items:center;gap:16px;padding:0 16px;height:52px;font-size:13px;color:var(--muted);overflow-x:auto;white-space:nowrap}
.sortbar button{color:var(--muted);height:52px;border-bottom:2px solid transparent}
.sortbar button.on{color:var(--brand);border-color:var(--brand);font-weight:700}
.sortbar .count{margin-inline-start:auto}
.mob-tools{display:none}
.list-wrap .grid{border-radius:0 0 var(--radius) var(--radius)}
@media (max-width:1024px){
  .listing{grid-template-columns:1fr}
  .filters{position:fixed;inset:0;top:auto;max-height:85vh;overflow:auto;z-index:80;border-radius:16px 16px 0 0;transform:translateY(100%);transition:transform .3s}
  .filters.open{transform:none}
  .sortbar{display:none}
  .mob-tools{display:flex;gap:8px;margin-bottom:12px}
  .mob-tools button{flex:1;height:40px;border-radius:var(--radius-sm);background:var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;gap:6px}
  .scrim{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:70;display:none}
  .scrim.open{display:block}
}
.empty{background:var(--surface);padding:60px 16px;text-align:center;color:var(--muted)}

/* ===== product ===== */
.pdp{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr) 320px;gap:24px;padding:20px;align-items:start}
.gallery .main{aspect-ratio:1;background:#fff;border-radius:var(--radius-sm);overflow:hidden;display:grid;place-items:center}
.gallery .main img{width:100%;height:100%;object-fit:contain}
.thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto}
.thumbs button{flex:0 0 64px;height:64px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;padding:4px}
.thumbs button.on{border-color:var(--brand)}
.thumbs img{width:100%;height:100%;object-fit:contain}
.pinfo h1{font-size:19px;font-weight:700;line-height:1.7}
.pinfo .en{color:var(--muted);font-size:12px;direction:ltr;text-align:right;margin:4px 0 10px}
.pinfo .row{display:flex;gap:14px;font-size:12px;color:var(--muted);flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--line)}
.pinfo .row b{color:var(--info);font-weight:500}
.stars{color:var(--accent)}
.opts{margin-top:14px}
.opts b{font-size:13px}
.swatches{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.swatches button{border:1px solid var(--line);border-radius:20px;padding:4px 12px;display:flex;align-items:center;gap:6px;font-size:12px}
.swatches button.on{border:2px solid var(--info)}
.swatches i{width:16px;height:16px;border-radius:50%;border:1px solid var(--line)}
.feats{margin-top:16px;display:grid;gap:6px;font-size:13px}
.feats li{list-style:none;color:var(--muted)}
.feats li::before{content:"•";color:var(--brand);margin-inline-end:6px}
.buybox{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);padding:16px;display:grid;gap:12px;position:sticky;top:132px}
.buybox .seller{display:flex;gap:10px;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line)}
.buybox .line{display:flex;gap:10px;align-items:center;font-size:13px;color:var(--muted)}
.buybox .line .icon{color:var(--text);width:20px;height:20px}
.buybox .price{align-items:flex-end}
.buybox .price .now{font-size:20px}
.qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:var(--radius-sm);height:44px}
.qty button{width:40px;height:100%;color:var(--brand);font-size:20px}
.qty span{flex:1;text-align:center;font-weight:700}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding:0 16px;position:sticky;top:116px;background:var(--surface);z-index:5;overflow-x:auto;border-radius:var(--radius) var(--radius) 0 0}
.tabs a{padding:14px 12px;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.tabs a.on{color:var(--brand);border-color:var(--brand)}
.tabbody{padding:20px;display:grid;gap:28px}
.tabbody h3{font-size:16px;margin-bottom:10px}
.spec{display:grid;grid-template-columns:180px 1fr;gap:1px;background:var(--line);border-radius:8px;overflow:hidden}
.spec div{background:var(--surface);padding:10px 12px}
.spec div:nth-child(odd){color:var(--muted);background:var(--surface-2)}
.comment{border-bottom:1px solid var(--line);padding:12px 0}
.comment .who{display:flex;gap:8px;font-size:12px;color:var(--muted);align-items:center}
.chip{background:var(--bg);border-radius:12px;padding:0 8px;font-size:11px}
.chip.ok{background:#dcfce7;color:#166534}
.chart{width:100%;height:160px}
.sticky-buy{display:none}
@media (max-width:1100px){.pdp{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.buybox{grid-column:1/-1;position:static}}
@media (max-width:768px){
  .pdp{grid-template-columns:1fr;padding:12px;gap:16px}
  .buybox .btn-brand{display:none}
  .sticky-buy{display:flex;position:fixed;bottom:60px;inset-inline:0;background:var(--surface);box-shadow:0 -2px 10px rgba(0,0,0,.08);padding:10px 16px;gap:12px;align-items:center;justify-content:space-between;z-index:55}
  .tabs{top:104px}
  .spec{grid-template-columns:110px 1fr}
}

/* toast */
.toast{position:fixed;bottom:90px;right:50%;transform:translateX(50%) translateY(20px);background:#111827;color:#fff;padding:10px 18px;border-radius:10px;font-size:13px;opacity:0;transition:.3s;z-index:100;pointer-events:none}
.toast.show{opacity:1;transform:translateX(50%)}

/* compare tray */
.cmp-tray{position:fixed;bottom:16px;left:16px;background:var(--surface);box-shadow:var(--shadow);border-radius:var(--radius);padding:10px 14px;display:none;align-items:center;gap:10px;z-index:58;border:1px solid var(--line)}
.cmp-tray.show{display:flex}
@media (max-width:768px){.cmp-tray{bottom:72px;left:12px;right:12px}}

/* skeleton shimmer for lazy images */
img[loading="lazy"]{background:linear-gradient(90deg,var(--bg),var(--surface-2),var(--bg));background-size:200% 100%;animation:sh 1.2s infinite}
img.loaded{animation:none;background:#fff}
@keyframes sh{to{background-position:-200% 0}}

/* ===== forms, alerts, auth ===== */
.field{display:grid;gap:6px;margin-bottom:14px}
.field label{font-size:13px;font-weight:600}
.input,.field input,.field select,.field textarea{width:100%;height:46px;border:1px solid var(--line);border-radius:var(--radius-sm);padding:0 12px;background:var(--surface);outline:none;transition:border-color .15s,box-shadow .15s}
.field textarea{height:auto;min-height:110px;padding:10px 12px;line-height:1.9}
.input:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50)}
.field .err,.err{color:#dc2626;font-size:12px}
.field .hint{color:var(--muted);font-size:12px}
.ltr{direction:ltr;text-align:left}
.alert{border-radius:var(--radius-sm);padding:10px 14px;font-size:13px;margin-bottom:14px}
.alert-success{background:#dcfce7;color:#166534}
.alert-error{background:#fee2e2;color:#991b1b}
.alert-info{background:#e0f2fe;color:#075985}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px 16px;background:var(--bg)}
.auth-card{width:100%;max-width:420px;padding:28px 24px}
.auth-card .logo{display:flex;justify-content:center;margin-bottom:18px}
.auth-card .logo img{height:56px}
.auth-card h1{font-size:18px;font-weight:800;margin-bottom:6px}
.auth-card p.sub{color:var(--muted);font-size:13px;margin-bottom:18px}
.btn-block{width:100%;height:48px}
.otp{direction:ltr;text-align:center;letter-spacing:12px;font-size:22px;font-weight:700}
.link{color:var(--info)}
.muted{color:var(--muted)}
.mt{margin-top:12px}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pagination{display:flex;gap:6px;justify-content:center;margin:20px 0;flex-wrap:wrap}
.pagination a,.pagination span{min-width:38px;height:38px;border-radius:8px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);padding:0 10px}
.pagination .on{background:var(--brand);color:#fff;border-color:var(--brand)}
.pagination .off{opacity:.4}
.notify-bar{display:flex;align-items:center;justify-content:center;gap:12px;background:var(--brand);color:#fff;min-height:40px;padding:4px 16px;font-size:13px;text-align:center}
.notify-bar img{height:40px;width:auto}
.notify-bar b{background:rgba(255,255,255,.2);border-radius:6px;padding:2px 10px}
.mega a.sub{padding-inline-start:22px;font-size:12px;color:var(--muted)}
.services img{width:44px;height:44px;object-fit:contain}
.trust img{max-height:90px;width:auto}
[hidden]{display:none!important}
html,body{overflow-x:clip}
.sortbar a{color:var(--muted);height:52px;display:flex;align-items:center;border-bottom:2px solid transparent}
.sortbar a.on{color:var(--brand);border-color:var(--brand);font-weight:700}
.rich img{max-width:100%;height:auto;border-radius:8px}
.rich h2,.rich h3{color:var(--text);margin:14px 0 6px}
.rich ul,.rich ol{padding-inline-start:20px}
.pinfo .row a{color:var(--info)}
details > summary{list-style:none}
details > summary::-webkit-details-marker{display:none}
/* ===== cart & checkout ===== */
.steps{display:flex;list-style:none;gap:8px;justify-content:center;margin:4px 0 16px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.steps li{display:flex;align-items:center;gap:6px}
.steps li:not(:last-child)::after{content:"";width:36px;height:2px;background:var(--line);margin-inline-start:6px}
.steps span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--line);font-size:12px}
.steps .on{color:var(--brand);font-weight:700}.steps .on span{background:var(--brand);color:#fff}
.steps .done span{background:var(--ok);color:#fff}
.checkout{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}
.summary{padding:16px;display:grid;gap:12px;position:sticky;top:132px;font-size:13px}
.summary .total{border-top:1px solid var(--line);padding-top:12px;font-size:15px}
.cart-line{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.cart-line:last-child{border-bottom:0}
.cl-img{flex:0 0 96px;height:96px;background:#fff;border-radius:8px;overflow:hidden}
.cl-img img{width:100%;height:100%;object-fit:contain}
.cl-body{flex:1;min-width:0;display:grid;gap:6px}
.cl-body h3{font-size:14px;font-weight:600;line-height:1.8}
.sw{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid var(--line);vertical-align:middle}
.icon.big{width:64px;height:64px;color:var(--muted);stroke-width:1.2}
.opt-card{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:var(--radius-sm);cursor:pointer;margin-bottom:10px}
.opt-card:has(input:checked){border-color:var(--brand);background:var(--brand-50)}
.opt-card input{accent-color:var(--brand);margin-top:5px}
.opt-card img{width:40px;height:40px;object-fit:contain}
.panel-box{padding:16px;margin-bottom:16px}
.panel-box h2{font-size:15px;margin-bottom:12px}
@media (max-width:900px){.checkout{grid-template-columns:1fr}.summary{position:static}}
@media (max-width:768px){.summary .btn-block{position:fixed;bottom:64px;inset-inline:12px;width:auto;z-index:56;box-shadow:0 4px 16px rgba(0,0,0,.15)}.checkout{padding-bottom:60px}}
/* ===== account ===== */
.account{display:grid;grid-template-columns:260px 1fr;gap:16px;align-items:start}
.acc-nav{padding:8px;display:grid;gap:2px;position:sticky;top:132px}
.acc-nav a,.acc-nav button{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;font-size:13px;color:var(--muted);width:100%}
.acc-nav a:hover,.acc-nav button:hover{background:var(--bg);color:var(--text)}
.acc-nav a.on{background:var(--brand-50);color:var(--brand);font-weight:700}
.acc-user{display:flex;gap:10px;align-items:center;padding:12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.acc-main{min-width:0}
.acc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.acc-stats a{padding:16px;text-align:center;font-size:13px;color:var(--muted)}
.acc-stats b{display:block;font-size:22px;color:var(--text)}
.order-row{display:grid;grid-template-columns:1.4fr 1fr auto 20px;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}
.order-row span:first-child{display:grid}
.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px 16px;font-size:13px;margin-top:10px}
.kv div{display:flex;justify-content:space-between;border-bottom:1px dashed var(--line);padding:6px 0}
.kv span{color:var(--muted)}
.tone-danger{background:#fee2e2;color:#991b1b}.tone-warning{background:#fef3c7;color:#92400e}.tone-info{background:#e0f2fe;color:#075985}
.tone-primary{background:#ede9fe;color:#5b21b6}.tone-success{background:#dcfce7;color:#166534}.tone-muted{background:var(--bg);color:var(--muted)}
.dlg{border:0;padding:20px;width:min(560px,94vw);max-height:90vh;overflow:auto;margin:auto}
.dlg::backdrop{background:rgba(0,0,0,.45)}
@media (max-width:900px){.account{grid-template-columns:1fr}.acc-nav{position:static;display:flex;overflow-x:auto;white-space:nowrap}.acc-user{display:none}.acc-nav a,.acc-nav button{width:auto}.acc-stats{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.order-row{grid-template-columns:1fr auto}.order-row .icon{display:none}}
.ps-no[hidden]{display:none!important}
