:root{--bg:#121826;--card:#1c2436;--card-2:#232d44;--line:#2c3854;--ink:#eef0f5;--muted:#7d869c;--soft:#a2aac0;--gold:#e3b25b;--gold-ink:#121826}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:70px}
body{background:var(--bg);color:var(--ink);font-family:Vazirmatn,system-ui,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.6}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
:focus:not(:focus-visible){outline:none}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.shell{max-width:1040px;margin:0 auto;padding:0 18px 40px}

.top{display:flex;justify-content:space-between;align-items:center;padding:22px 0 8px}
.brand{font-size:21px;font-weight:800;color:var(--ink);text-decoration:none}
.brand span{color:var(--gold)}
.top-actions{display:flex;gap:10px;align-items:center}
.pill-btn{height:40px;padding:0 14px;border-radius:12px;background:var(--card);font-size:12.5px;font-weight:600;color:var(--soft)}
.icon-btn{position:relative;width:40px;height:40px;border-radius:12px;background:var(--card);color:var(--gold);display:grid;place-items:center;font-size:21px}
.badge{position:absolute;top:-5px;inset-inline-end:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--gold);color:var(--gold-ink);font-size:11px;font-weight:800;display:grid;place-items:center}

.search{display:flex;align-items:center;gap:8px;margin:12px 0 4px;background:var(--card);border-radius:14px;padding:0 14px;color:var(--muted)}
.search>i{font-size:18px}
.search input{flex:1;min-width:0;border:0;background:none;outline:none;font:inherit;font-size:13.5px;color:var(--ink);padding:13px 0}
.search input::placeholder{color:var(--muted)}
.search input::-webkit-search-cancel-button{display:none}
.search button{font-size:22px;color:var(--muted);padding:0 4px}

.tabs{position:sticky;top:0;z-index:5;background:var(--bg);display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -18px;padding:10px 18px 12px}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex-shrink:0;display:flex;gap:6px;align-items:center;padding:8px 13px;border-radius:12px;background:var(--card);font-size:12.5px;color:var(--soft);white-space:nowrap}
.tabs button i{font-size:17px}
.tabs button[aria-current=true]{background:var(--gold);color:var(--gold-ink);font-weight:700}

.feature{margin:8px 0 6px;border-radius:22px;background:linear-gradient(135deg,#26324d,var(--card));border:1px solid var(--line);padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:14px;cursor:pointer}
.feature .f-art{order:2;width:72px;height:72px;flex-shrink:0;border-radius:18px;overflow:hidden;display:grid;place-items:center;font-size:56px;color:var(--gold)}
.feature .f-art img{width:100%;height:100%;object-fit:cover}
.feature .f-txt{min-width:0}
.feature small{display:flex;gap:4px;align-items:center;font-size:11px;color:var(--gold);font-weight:700}
.feature h3{font-size:19px;margin:3px 0 2px;line-height:1.4}
.feature p{font-size:12.5px;color:var(--soft)}
.feature .f-price{margin-top:6px;font-weight:700;font-size:14px;color:var(--gold)}

.cat{padding-top:22px}
.cat-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:2px}
.cat-head h2{font-size:17px;font-weight:700}
.cat-head small{font-size:11px;color:var(--muted);white-space:nowrap}
.cat-desc{font-size:12px;color:var(--muted)}
.items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.card{position:relative;display:flex;flex-direction:column;text-align:start;background:var(--card);border:1px solid #232d44;border-radius:18px;padding:10px;min-width:0}
.card-img{width:100%;height:84px;border-radius:12px;background:var(--card-2);color:var(--gold);display:grid;place-items:center;font-size:38px;overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover}
.card-name{width:100%;font-size:13.5px;font-weight:600;margin:8px 0 0;padding:0 2px;line-height:1.5}
.card-sub{display:block;width:100%;font-size:10.5px;color:var(--muted);margin:0 0 8px;padding:0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prices{width:100%;margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pbox{display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--bg);border-radius:10px;padding:6px 4px;line-height:1.25;min-width:0}
.pbox i{font-style:normal;font-size:9.5px;color:var(--gold);font-weight:500}
.pbox b{font-size:13.5px;font-weight:700;white-space:nowrap}
.pbox em{font-style:normal;font-size:8.5px;color:var(--muted);white-space:nowrap}
.qty-dot{position:absolute;top:16px;inset-inline-start:16px;min-width:22px;height:22px;border-radius:11px;background:var(--gold);color:var(--gold-ink);font-size:11.5px;font-weight:800;display:grid;place-items:center;padding:0 6px}
.empty{text-align:center;color:var(--muted);padding:50px 0;font-size:14px}

.foot{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);padding:30px 0 0}
.foot a{color:var(--muted)}

.sheet{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center}
.sheet-backdrop{position:absolute;inset:0;background:#05080fb3;animation:fade .2s ease}
.sheet-panel{position:relative;width:100%;max-width:560px;max-height:88vh;overflow:auto;background:var(--card);border:1px solid var(--line);border-bottom:0;border-radius:24px 24px 0 0;padding:22px 20px 26px;animation:up .25s ease}
.sheet-close{position:absolute;top:12px;inset-inline-end:14px;width:34px;height:34px;border-radius:50%;background:var(--card-2);font-size:22px;line-height:1;color:var(--soft);z-index:2}
.sheet-img{height:190px;border-radius:18px;overflow:hidden;background:var(--card-2);margin-bottom:16px}
.sheet-img img{width:100%;height:100%;object-fit:cover}
.sheet-body h2{font-size:21px;line-height:1.4;padding-inline-end:40px}
.sheet-body .alt{font-size:12px;color:var(--muted)}
.sheet-body .cap{font-size:11.5px;color:var(--gold);font-weight:600;margin-bottom:2px}
.sheet-body .desc{font-size:13px;color:var(--soft);margin-top:12px}
.sheet-body h4{font-size:12px;color:var(--muted);font-weight:500;margin:16px 0 4px}
.opts{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.opt{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--bg);border-radius:14px;padding:10px 12px}
.opt-label{font-size:13.5px;font-weight:600}
.opt-label small{display:block;font-size:10px;color:var(--gold);font-weight:400}
.stepper{display:flex;align-items:center;gap:10px}
.stepper button{width:32px;height:32px;border-radius:10px;background:var(--card-2);color:var(--gold);font-size:19px;font-weight:600;line-height:1}
.stepper button.add{background:var(--gold);color:var(--gold-ink)}
.stepper span{min-width:16px;text-align:center;font-weight:700}
.cart-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.cart-row b{font-size:14px;font-weight:600}
.cart-row small{display:block;font-size:11.5px;color:var(--muted)}
.cart-total{display:flex;justify-content:space-between;font-weight:700;font-size:15px;padding:16px 0 4px;color:var(--gold)}
.cart-note{font-size:11.5px;color:var(--muted)}
.cart-clear{margin-top:14px;font-size:12.5px;color:var(--gold)}

@keyframes up{from{transform:translateY(30px);opacity:0}}
@keyframes fade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.sheet-panel,.sheet-backdrop{animation:none}}

@media (min-width:700px){
  .items{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:980px){
  .shell{padding:0 32px 60px}
  .tabs{margin:0;padding:10px 0 12px}
  .items{grid-template-columns:repeat(4,minmax(0,1fr))}
  .card-img{height:110px}
  .feature{padding:26px 30px;min-height:150px}
  .feature .f-art{width:100px;height:100px;font-size:80px}
  .feature h3{font-size:23px}
  .sheet{align-items:center}
  .sheet-panel{border-radius:24px;border-bottom:1px solid var(--line)}
}
