/* ==========================================================================
   Technabe (تکنابه) — static UI
   Mobile first. < 768px: mobile layouts + bottom tab bar. >= 768px: desktop.
   ========================================================================== */

:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --ink: #0E1116;
  --ink-2: #1E232B;
  --ink-3: #3A414C;
  --muted: #5B6470;
  --muted-2: #6B7480;
  --soft: #A3ACB7;
  --line: #E4E7EB;
  --line-2: #EEF0F3;
  --grey: #C9CFD6;
  --accent: #C8F23A;
  --deal: #FF8A4C;
  --deal-ink: #C2410C;
  --ok: #1E7F4F;
  --like: #E5484D;

  --t-slate: #E6EAF0;
  --t-blue: #DDEBFF;
  --t-lime: #ECF6CC;
  --t-peach: #FFE3D3;
  --t-violet: #E4DDFF;
  --t-mint: #CFF0E1;
  --t-pink: #FFDCE5;
  --t-butter: #FFF0BF;
  --t-apricot: #FFDCC8;

  --font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-latin: 'Space Grotesk', system-ui, sans-serif;
  --tabbar-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #000; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
input::placeholder { color: var(--muted-2); }
svg { flex: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.on-dark :focus-visible, .deals :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.noscroll { scrollbar-width: none; }
.noscroll::-webkit-scrollbar { display: none; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.toman { font-size: 11px; font-weight: 500; color: var(--muted); }
@media (max-width: 767.98px) { .only-d { display: none !important; } }
@media (min-width: 768px) { .only-m { display: none !important; } }
.skip-link { position: absolute; top: -100px; right: 16px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--accent); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--accent); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 16px; }

/* ---------- Marquee ---------- */
.marquee { height: 36px; background: var(--ink); color: var(--accent); overflow: hidden; display: flex; align-items: center; }
.marquee__track { display: flex; flex: none; gap: 28px; padding-left: 28px; font-size: 13px; font-weight: 700; white-space: nowrap; animation: marquee 26s linear infinite; }
.marquee__track .sep { color: #fff; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.brand__mark .icon { width: 20px; height: 20px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 21px; font-weight: 900; }
.brand__latin { font-family: var(--font-latin); font-size: 10px; font-weight: 700; letter-spacing: 2.5px; color: var(--muted); margin-top: 5px; }
.header-actions { display: flex; gap: 8px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: none; }
.icon-btn--dark { background: var(--ink); color: #fff; }
.icon-btn--dark:hover { color: #fff; }
.icon-btn--plain { background: transparent; }
.icon-btn--white { background: #fff; }
.badge { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; line-height: 1; }
.login-btn { display: none; }
.search { order: 3; flex: 1 1 100%; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 16px; background: var(--bg); color: var(--muted); margin: 0; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font-size: 15px; }
.search input::-webkit-search-cancel-button { display: none; }
.search .icon { width: 20px; height: 20px; }
.cat-nav { display: none; }

/* ---------- Generic sections ---------- */
.section { padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section__title { font-size: 19px; font-weight: 900; line-height: 1.4; }
.link-more { font-size: 13px; font-weight: 700; color: var(--ink); }
.pill { align-self: flex-start; display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--accent); font-size: 11px; font-weight: 800; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; margin-inline: -16px; scroll-snap-type: x proximity; }
.hscroll > * { scroll-snap-align: start; }

/* ---------- Product card ---------- */
.card { display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; transition: transform .2s, box-shadow .2s; }
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(14,17,22,.35); }
.card__media { position: relative; height: 156px; border-radius: 16px; overflow: hidden; background: var(--t-slate); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__tag { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; line-height: 1.5; background: var(--deal); color: var(--ink); }
.card__tag--new { background: var(--ink); color: var(--accent); }
.card__tag--hot { background: var(--accent); color: var(--ink); font-weight: 900; }
.card__body { padding: 0 4px; display: flex; flex-direction: column; gap: 6px; }
.card__name { font-size: 14px; font-weight: 700; line-height: 1.6; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card__prices { display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: flex-end; }
.card__old { font-size: 12px; color: var(--muted-2); text-decoration: line-through; }
.card__price { font-size: 16px; font-weight: 900; }
.card__soldout { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.card__soldout span:first-child { font-size: 13px; font-weight: 700; color: var(--muted); }
.card__notify { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--accent); }
.card.is-out { opacity: .65; }
.card.is-out img { filter: grayscale(.6); }

/* ---------- Home: mobile hero slider ---------- */
.hero-m { padding: 16px 0 4px; }
.slider { position: relative; height: 330px; border-radius: 28px; overflow: hidden; background: var(--ink); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__sticker { position: absolute; top: 16px; left: 16px; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 900; line-height: 1.3; transform: rotate(-12deg); }
.slide__card { position: absolute; right: 12px; left: 12px; bottom: 12px; padding: 14px 16px; border-radius: 20px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slide__card--accent { background: var(--accent); }
.slide__card--dark { background: var(--ink); color: #fff; }
.slide__kicker { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.slide__card--accent .slide__kicker { color: var(--ink); font-weight: 800; }
.slide__card--dark .slide__kicker { color: var(--accent); }
.slide__title { font-size: 21px; font-weight: 900; line-height: 1.35; }
.round-go { flex: none; width: 50px; height: 50px; border-radius: 25px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.round-go:hover { color: var(--accent); }
.round-go--accent { background: var(--accent); color: var(--ink); }
.round-go--accent:hover { color: var(--ink); }
.dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.dot { width: 32px; height: 28px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; }
.dot span { width: 7px; height: 6px; border-radius: 3px; background: var(--grey); transition: width .25s, background .25s; }
.dot[aria-pressed="true"] span { width: 24px; background: var(--ink); }
.hero-d { display: none; }

/* ---------- Home: categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.cat:hover { color: var(--ink); }
.cat__thumb { width: 76px; height: 76px; border-radius: 26px; overflow: hidden; background: var(--t-slate); display: flex; transition: transform .2s; }
.cat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat__thumb { transform: translateY(-2px) rotate(-3deg); }
.cat--featured .cat__thumb { border: 2px solid var(--accent); }
.cat__name { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.4; }
.cat--featured .cat__name { font-weight: 800; }
.cat--extra { display: none; }

/* ---------- Home: trend (3D cases) ---------- */
.trend .card { flex: 0 0 196px; border-radius: 24px; padding: 8px 8px 14px; }
.trend .card__media { height: 240px; border-radius: 18px; }
.trend .card__name { height: auto; font-weight: 800; }

/* ---------- Home: deals ---------- */
.deals { margin-top: 24px; padding: 18px 16px 16px; border-radius: 28px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.deals__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.deals__title-row { display: flex; align-items: center; gap: 8px; }
.deals__title-row .icon { color: var(--accent); }
.deals__title { font-size: 19px; font-weight: 900; }
.deals__sub { font-size: 12px; color: var(--soft); }
.deals__all-d { display: none; }
.timer { direction: ltr; display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; }
.timer span { min-width: 32px; height: 32px; border-radius: 10px; background: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.timer span.sep { min-width: 0; background: none; color: var(--muted-2); }
.timer span:last-child { background: var(--accent); color: var(--ink); }
.deals .hscroll { gap: 10px; padding-bottom: 2px; }
.deals .card { flex: 0 0 158px; border: 0; border-radius: 20px; }
.deals .card__media { height: 140px; border-radius: 14px; }
.deals .card__name { font-size: 13px; height: 42px; }
.deals .card__prices { min-height: 0; }
.more-tile { flex: 0 0 110px; border-radius: 20px; border: 1.5px dashed var(--ink-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-decoration: none; color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.more-tile:hover { color: var(--accent); }
.more-tile span { width: 44px; height: 44px; border-radius: 22px; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; }

/* ---------- Home: promo tiles ---------- */
.promos { padding-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.promo { position: relative; overflow: hidden; height: 176px; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--ink); isolation: isolate; }
.promo:hover { color: var(--ink); }
.promo--apricot { background: var(--t-apricot); }
.promo--mint { background: var(--t-mint); }
.promo--butter { background: var(--t-butter); }
.promo__kicker { position: relative; z-index: 1; font-size: 12px; font-weight: 700; }
.promo__big { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1; }
.promo__num { font-size: 58px; font-weight: 900; letter-spacing: -2px; }
.promo__unit { font-size: 13px; font-weight: 800; margin-top: 6px; }
.promo__title { position: relative; z-index: 1; font-size: 22px; font-weight: 900; line-height: 1.3; }
.promo__photo { position: absolute; z-index: 0; left: -10px; bottom: -10px; width: 96px; height: 96px; object-fit: cover; border-radius: 22px; transform: rotate(14deg); box-shadow: 0 10px 24px -10px rgba(14,17,22,.45); border: 3px solid #fff; transition: transform .3s; }
.promo:hover .promo__photo { transform: rotate(8deg) scale(1.04); }
.promo__go { position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; border-radius: 16px; background: var(--ink); color: var(--t-apricot); display: flex; align-items: center; justify-content: center; z-index: 1; }
.promo__go .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.promo--mint .promo__photo { width: 112px; height: 112px; left: -14px; bottom: -14px; }

/* smart home wide banner */
.wide-banner { margin-top: 20px; position: relative; overflow: hidden; min-height: 168px; border-radius: 26px; background: var(--t-butter); padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wide-banner:hover { color: var(--ink); }
.wide-banner__photo { position: absolute; left: 14px; top: 50%; width: 132px; height: 132px; margin-top: -66px; object-fit: cover; border-radius: 26px; transform: rotate(-6deg); box-shadow: 0 14px 30px -14px rgba(14,17,22,.5); border: 3px solid #fff; transition: transform .3s; }
.wide-banner:hover .wide-banner__photo { transform: rotate(-2deg) scale(1.03); }
.wide-banner__kicker { position: relative; font-size: 12px; font-weight: 800; }
.wide-banner__title { position: relative; max-width: 190px; font-size: 22px; font-weight: 900; line-height: 1.4; }
.wide-banner__link { position: relative; align-self: flex-start; font-size: 13px; font-weight: 800; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

/* ---------- Home: best sellers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.best .card:nth-child(n+5) { display: none; }

/* ---------- Perks ---------- */
.perks { margin-top: 20px; padding: 18px 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.perk { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.perk--return { display: none; }
.perk__icon { flex: none; width: 44px; height: 44px; border-radius: 22px; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.perk__text { display: flex; flex-direction: column; font-size: 12px; line-height: 1.5; }
.perk__text b { font-weight: 700; }
.perk__text span { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; background: var(--ink); color: #fff; border-radius: 28px 28px 0 0; }
.site-footer__inner { padding-top: 28px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand__name { font-size: 22px; font-weight: 900; }
.footer-brand__name i { font-style: normal; color: var(--accent); }
.footer-brand p { font-size: 13px; line-height: 1.9; color: var(--soft); max-width: 360px; }
.newsletter { display: flex; gap: 8px; max-width: 420px; }
.newsletter label { flex: 1; display: flex; align-items: center; height: 50px; padding: 0 14px; border-radius: 14px; background: var(--ink-2); }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: 14px; }
.newsletter button { height: 50px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 900; }
.newsletter-msg { font-size: 13px; color: var(--accent); min-height: 1em; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.footer-col { display: contents; }
.footer-col__title { display: none; }
.footer-col a { height: 40px; display: flex; align-items: center; font-size: 14px; color: #D5DAE0; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; }
.socials a { flex: 1; height: 44px; border-radius: 14px; background: var(--ink-2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; }
.socials a:hover { background: var(--ink-3); color: #fff; }
.socials a.is-accent { background: var(--accent); color: var(--ink); font-weight: 800; }
.trust { display: flex; flex-direction: column; gap: 12px; }
.trust__title { display: none; font-size: 15px; font-weight: 900; }
.trust__badges { display: flex; gap: 10px; }
.trust__badges div { width: 84px; height: 84px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-align: center; }
.copyright { font-size: 12px; color: #8A939E; padding-bottom: 20px; }

/* ---------- Mobile bottom tab bar ---------- */
.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; z-index: 40; right: 0; left: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 11px; }
.tabbar__ico { position: relative; height: 28px; display: flex; align-items: center; justify-content: center; }
.tabbar a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.tabbar a[aria-current="page"] .tabbar__ico { width: 48px; border-radius: 14px; background: var(--ink); color: var(--accent); }
.tabbar a[aria-current="page"] .icon { width: 20px; height: 20px; stroke-width: 2; }
.tabbar .badge { top: -2px; left: -10px; min-width: 18px; height: 18px; font-size: 11px; border: 0; }

/* ---------- Inner pages: mobile page bar ---------- */
.page-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-bar__title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.page-bar__title h1 { font-size: 17px; font-weight: 900; }
.page-bar__title span { font-size: 12px; color: var(--muted); }
.page-bar .badge { top: -5px; left: -5px; min-width: 18px; height: 18px; font-size: 11px; }
.page-search { padding: 10px 16px 0; display: none; }
.page-search.is-open { display: block; }
.page-search .search { order: 0; }

/* ---------- Category ---------- */
.cat-banner { margin-top: 14px; position: relative; overflow: hidden; min-height: 128px; border-radius: 24px; background: var(--ink); color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; text-decoration: none; isolation: isolate; }
.cat-banner:hover { color: #fff; }
.cat-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; z-index: -2; }
.cat-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(14,17,22,.96) 30%, rgba(14,17,22,.55) 65%, rgba(14,17,22,.05) 100%); }
.cat-banner .pill { background: var(--accent); color: var(--ink); }
.cat-banner__title { max-width: 200px; font-size: 19px; font-weight: 900; line-height: 1.45; }
.cat-banner__sub { font-size: 12px; color: var(--grey); }
.toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 12px; }
.tool-btn { height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 800; }
.tool-btn .icon { width: 20px; height: 20px; }
.tool-btn__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tool-btn__count[hidden] { display: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; margin-inline: -16px; }
.chip { flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 800; transition: background .15s, color .15s; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.list-meta { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; min-height: 44px; }
.list-meta__count { font-size: 13px; color: var(--muted); }
.switch-btn { display: flex; align-items: center; gap: 10px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; padding: 0; }
.switch { position: relative; width: 42px; height: 24px; border-radius: 12px; background: var(--grey); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 9px; background: #fff; transition: right .2s, background .2s; }
.switch-btn[aria-checked="true"] .switch { background: var(--ink); }
.switch-btn[aria-checked="true"] .switch::after { right: 21px; background: var(--accent); }
.empty-list { grid-column: 1 / -1; padding: 40px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.load-more { margin-top: 20px; width: 100%; height: 50px; border-radius: 16px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; font-weight: 800; }
.load-more[hidden] { display: none; }
.category-main { padding-bottom: 24px; }

/* Bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; visibility: hidden; }
.sheet.is-open { visibility: visible; }
.sheet__scrim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(14,17,22,.5); opacity: 0; transition: opacity .25s; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel { position: relative; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--grey); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h2 { font-size: 18px; font-weight: 900; }
.fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fieldset legend { font-size: 14px; font-weight: 800; margin-bottom: 8px; padding: 0; }
.price-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.price-range label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.price-range input { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 12px; font-size: 15px; width: 100%; }
.check-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 14px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; }
.sheet__actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.btn { height: 52px; border-radius: 16px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 0 20px; }
.btn--dark { border: 0; background: var(--ink); color: #fff; font-size: 15px; }
.btn--dark:hover { color: #fff; background: #000; }
.btn--accent { border: 0; background: var(--accent); color: var(--ink); font-size: 16px; font-weight: 900; }
.btn--accent:hover { color: var(--ink); filter: brightness(.96); }
.btn--outline { border: 1.5px solid var(--ink); }
body.is-locked { overflow: hidden; }

/* ---------- Product ---------- */
.p-layout { display: flex; flex-direction: column; }
.p-gallery { position: relative; height: 430px; background: var(--ink); border-radius: 0 0 32px 32px; overflow: hidden; }
.p-gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: opacity .3s; }
.p-gallery__bar { position: absolute; top: 12px; right: 12px; left: 12px; display: flex; align-items: center; justify-content: space-between; }
.p-gallery__bar .group { display: flex; gap: 8px; }
.icon-btn[aria-pressed="true"] { color: var(--like); }
.icon-btn[aria-pressed="true"] .icon { fill: var(--like); }
.p-gallery__off { position: absolute; bottom: 16px; right: 16px; padding: 5px 11px; border-radius: 10px; background: var(--deal); color: var(--ink); font-size: 13px; font-weight: 900; }
.p-gallery__trend { position: absolute; bottom: 16px; left: 16px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; }
.p-info { padding: 0 16px; display: flex; flex-direction: column; }
.p-block { padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.p-block__head { display: flex; align-items: baseline; justify-content: space-between; }
.p-block__head h2 { font-size: 15px; font-weight: 800; }
.p-block__head span, .p-block__head a { font-size: 14px; color: var(--muted); }
.p-block__head a { font-size: 12px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 76px; height: 76px; border-radius: 20px; border: 3px solid #fff; padding: 0; overflow: hidden; background: var(--t-slate); display: flex; box-shadow: 0 0 0 1px var(--line); transition: border-color .15s; }
.swatch img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: none; }
.p-crumb { align-self: flex-start; font-size: 12px; font-weight: 800; color: var(--ink); text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--accent); }
.p-title { font-size: 22px; font-weight: 900; line-height: 1.5; }
.p-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.p-meta a { color: var(--muted); }
.p-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 800; }
.p-rating svg { width: 16px; height: 16px; }
.p-stock { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 800; }
.p-stock::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: #22A565; }
.models { display: flex; flex-wrap: wrap; gap: 8px; }
.model { direction: ltr; height: 42px; min-width: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; transition: background .15s, color .15s; }
.model[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.models.is-nudge { animation: nudge .4s; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.specs { padding-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spec { padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.spec span { font-size: 12px; color: var(--muted); }
.spec b { font-size: 15px; font-weight: 900; }
.services { margin-top: 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.service { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.6; }
.service + .service { border-top: 1px solid var(--line-2); }
.service__icon { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.service__icon .icon { width: 20px; height: 20px; }
.accs { padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.acc { border-radius: 18px; background: #fff; border: 1px solid var(--line); scroll-margin-top: 80px; }
.acc__btn { width: 100%; min-height: 56px; padding: 0 16px; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 800; text-align: right; }
.acc__btn .icon { width: 20px; height: 20px; stroke-width: 2; transition: transform .2s; }
.acc__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.acc__panel { padding: 0 16px 16px; font-size: 14px; line-height: 2; color: var(--ink-3); display: flex; flex-direction: column; gap: 12px; }
.acc__panel[hidden] { display: none; }
.review { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: var(--bg); line-height: 1.8; }
.review b { font-size: 13px; }
.review small { color: var(--muted); font-size: 12px; }
.related { padding-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.related .card__media { height: 120px; border-radius: 14px; }
.related .card__name { font-size: 13px; height: auto; }
.related .card__price { font-size: 15px; }
.related .card__prices { min-height: 0; }
.buybar { position: sticky; bottom: 0; z-index: 30; margin-top: 24px; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.buybar__action { flex: 1; min-width: 0; display: flex; gap: 8px; }
.buybar__action .btn { flex: 1; height: 56px; border-radius: 18px; }
.btn--disabled { border: 0; background: var(--line); color: var(--ink-3); cursor: not-allowed; font-size: 14px; }
.btn--add { border: 0; background: var(--ink); color: #fff; font-size: 16px; font-weight: 900; }
.btn--add:hover { color: #fff; background: #000; }
.btn--add .icon { color: var(--accent); stroke-width: 2; }
.stepper { flex: none; display: flex; align-items: center; height: 56px; border-radius: 18px; background: var(--bg); }
.stepper button { width: 46px; height: 56px; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.stepper button .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.stepper output { min-width: 24px; text-align: center; font-size: 17px; font-weight: 900; }
.buybar__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 100px; }
.buybar__old { display: flex; align-items: center; gap: 6px; }
.buybar__old s { font-size: 12px; color: var(--muted-2); }
.buybar__old b { padding: 1px 6px; border-radius: 6px; background: var(--deal); color: var(--ink); font-size: 11px; font-weight: 900; }
.buybar__now { font-size: 19px; font-weight: 900; white-space: nowrap; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 100px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cart ---------- */
.cart-head { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.cart-head .page-bar { position: static; border: 0; }
.cart-head h1 { font-size: 18px; font-weight: 900; }
.cart-head h1 span { font-size: 14px; font-weight: 500; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.steps li { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.steps li::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); }
.steps li[aria-current="step"] { color: var(--ink); font-weight: 800; }
.steps li[aria-current="step"]::before { background: var(--ink); }
.cart-layout { display: flex; flex-direction: column; }
.ship { margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 10px; }
.ship__msg { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.7; }
.ship__msg .icon { color: var(--accent); }
.ship__bar { height: 8px; border-radius: 4px; background: #2E343C; overflow: hidden; }
.ship__bar div { height: 8px; width: 0; border-radius: 4px; background: var(--accent); transition: width .3s; }
.cart-items { padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: flex; gap: 12px; padding: 10px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.cart-item__img { flex: none; width: 96px; height: 108px; border-radius: 16px; overflow: hidden; background: var(--t-slate); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.cart-item__top { display: flex; align-items: flex-start; gap: 6px; }
.cart-item__names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-item__names b { font-size: 14px; font-weight: 800; line-height: 1.6; }
.cart-item__names span { font-size: 12px; color: var(--muted); }
.cart-item__remove { flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.cart-item__remove:hover { color: var(--like); background: var(--bg); }
.cart-item__remove .icon { width: 18px; height: 18px; }
.cart-item__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qty { display: flex; align-items: center; height: 44px; border-radius: 12px; background: var(--bg); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.qty button .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.qty span { min-width: 20px; text-align: center; font-size: 15px; font-weight: 900; }
.cart-item__prices { display: flex; flex-direction: column; align-items: flex-end; }
.cart-item__prices s { font-size: 11px; color: var(--muted-2); }
.cart-item__prices b { font-size: 15px; font-weight: 900; white-space: nowrap; }
.cart-item__prices .toman { font-size: 10px; }
.coupon { padding-top: 16px; }
.coupon__form { display: flex; gap: 8px; }
.coupon__field { flex: 1; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 16px; border: 1.5px dashed #AEB6BF; background: #fff; color: var(--muted); }
.coupon__field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font-size: 14px; }
.coupon__field .icon { width: 20px; height: 20px; }
.coupon__form .btn { width: 84px; height: 50px; padding: 0; font-size: 14px; }
.coupon__applied { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 14px 0 8px; border-radius: 16px; background: var(--accent); font-size: 14px; font-weight: 800; }
.coupon__applied button { height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); font-size: 13px; text-decoration: underline; }
.summary { margin-top: 16px; padding: 6px 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.summary__row span:first-child { color: var(--muted); }
.summary__row--save span:last-child { color: var(--deal-ink); font-weight: 800; }
.summary__row--total { border: 0; padding: 14px 0; font-size: 16px; font-weight: 900; }
.summary__row--total span:first-child { color: var(--ink); }
.summary__cta { display: none; }
.checkout-bar { position: sticky; bottom: 0; z-index: 30; margin-top: 24px; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.checkout-bar .btn { flex: 1; height: 56px; border-radius: 18px; }
.checkout-bar__total { display: flex; flex-direction: column; align-items: flex-end; min-width: 116px; }
.checkout-bar__total span { font-size: 12px; color: var(--muted); }
.checkout-bar__total b { font-size: 18px; font-weight: 900; white-space: nowrap; }
.empty { padding: 72px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.empty__art { width: 150px; height: 150px; border-radius: 48px; background: var(--accent); display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); overflow: hidden; padding: 14px; }
.empty__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.empty h2 { font-size: 22px; font-weight: 900; }
.empty p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.empty .link-btn { height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; }
[hidden] { display: none !important; }

/* ==========================================================================
   Desktop >= 768px
   ========================================================================== */
@media (min-width: 768px) {
  .container { padding-inline: 24px; }
  .has-tabbar { padding-bottom: 0; }
  .tabbar { display: none; }

  .marquee { height: 40px; }
  .marquee__track { gap: 36px; padding-left: 36px; animation-duration: 40s; }

  .site-header__row { flex-wrap: nowrap; gap: 16px 32px; padding-block: 18px; }
  .brand__mark { width: 44px; height: 44px; border-radius: 14px; }
  .brand__mark .icon { width: 22px; height: 22px; }
  .brand__name { font-size: 25px; }
  .brand__latin { letter-spacing: 3px; margin-top: 6px; }
  .search { order: 0; flex: 1 1 320px; max-width: 620px; height: 52px; padding: 0 16px; }
  .header-actions { gap: 10px; margin-right: auto; }
  .header-actions .icon-btn { width: 48px; height: 48px; }
  .header-actions .icon-btn--account { display: none; }
  .login-btn { height: 48px; padding: 0 16px; border-radius: 14px; background: var(--bg); display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
  .login-btn .icon { width: 20px; height: 20px; }
  .cat-nav { display: flex; gap: 4px; overflow-x: auto; }
  .cat-nav a { flex: none; height: 50px; padding: 0 14px; display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-3); font-size: 14px; font-weight: 700; border-bottom: 3px solid transparent; }
  .cat-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
  .cat-nav a.is-strong { color: var(--ink); font-weight: 900; }
  .cat-nav a.is-deal { color: var(--deal-ink); font-weight: 900; }
  .cat-nav a.is-deal .icon { width: 16px; height: 16px; }
  .page-bar, .cart-head .page-bar { display: none; }

  /* Home */
  .home-main { padding-top: 28px; display: flex; flex-direction: column; gap: 56px; }
  .home-main > .section, .home-main > .deals, .home-main > .wide-banner, .home-main > .perks { margin-top: 0; padding-top: 0; }
  .hero-m { display: none; }
  .hero-d { display: flex; flex-wrap: wrap; gap: 16px; }
  .hero-d__main { flex: 2 1 560px; position: relative; overflow: hidden; min-height: 480px; border-radius: 36px; background: var(--accent); color: var(--ink); display: flex; flex-wrap: wrap; }
  .hero-d__copy { flex: 1 1 300px; padding: 48px 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
  .hero-d__tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink); font-size: 13px; font-weight: 800; }
  .hero-d__title { font-size: clamp(40px, 4.4vw, 56px); font-weight: 900; line-height: 1.2; letter-spacing: -1px; }
  .hero-d__text { max-width: 340px; font-size: 17px; line-height: 1.9; font-weight: 500; }
  .hero-d__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
  .hero-d__ctas .btn { height: 54px; padding: 0 26px; font-size: 15px; }
  .hero-d__ctas .btn--outline { border-width: 2px; padding: 0 22px; }
  .hero-d__ctas .btn--outline:hover { background: var(--ink); color: var(--accent); }
  .hero-d__media { flex: 1 1 300px; position: relative; min-height: 380px; padding: 16px; }
  .hero-d__media img { width: 100%; height: 100%; min-height: 348px; object-fit: cover; object-position: center 40%; border-radius: 28px; }
  .hero-d__sticker { position: absolute; top: 34px; left: 34px; width: 100px; height: 100px; border-radius: 50%; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 17px; font-weight: 900; line-height: 1.3; transform: rotate(-12deg); }
  .hero-d__side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
  .hero-tile { flex: 1; min-height: 232px; position: relative; overflow: hidden; border-radius: 32px; background: var(--ink); text-decoration: none; color: var(--ink); }
  .hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .5s; }
  .hero-tile:hover img { transform: scale(1.04); }
  .hero-tile__label { position: absolute; right: 14px; bottom: 14px; padding: 10px 16px; border-radius: 16px; background: var(--accent); display: flex; flex-direction: column; line-height: 1.4; }
  .hero-tile__label small { font-size: 12px; font-weight: 800; }
  .hero-tile__label b { font-size: 19px; font-weight: 900; }
  .hero-tile--dark .hero-tile__label { background: var(--ink); color: #fff; }
  .hero-tile--dark .hero-tile__label small { color: var(--accent); }

  .section { gap: 20px; }
  .section__title { font-size: 26px; }
  .link-more { font-size: 14px; font-weight: 800; }

  .cats { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
  .cat { height: 168px; justify-content: center; gap: 10px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); padding: 14px 10px; transition: transform .2s, box-shadow .2s; }
  .cat:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(14,17,22,.45); }
  .cat:hover .cat__thumb { transform: none; }
  .cat__thumb { width: 96px; height: 96px; border-radius: 24px; }
  .cat__name { font-size: 15px; font-weight: 800; }
  .cat--extra { display: flex; }

  .trend .hscroll { margin: 0; padding: 0; overflow: visible; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .trend .card { padding: 10px 10px 16px; }
  .trend .card__media { height: 340px; }
  .trend .card__name { font-size: 16px; }
  .trend .card__price { font-size: 19px; }

  .deals { padding: 32px; border-radius: 36px; gap: 22px; }
  .deals__head-l { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
  .deals__title-row .icon { width: 30px; height: 30px; }
  .deals__title { font-size: 28px; }
  .deals__sub { font-size: 14px; }
  .deals__all-d { display: flex; height: 44px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--ink-3); align-items: center; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; }
  .deals__all-d:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }
  .timer { font-size: 16px; }
  .timer span { min-width: 42px; height: 38px; border-radius: 12px; }
  .deals .hscroll { margin: 0; padding: 0; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
  .deals .more-tile { display: none; }

  .card { padding: 10px 10px 16px; border-radius: 24px; gap: 12px; }
  .card__media, .deals .card__media { height: 200px; border-radius: 18px; }
  .card__tag { top: 10px; right: 10px; padding: 3px 9px; font-size: 13px; }
  .card__body { padding: 0 6px; }
  .card__name, .deals .card__name { font-size: 15px; height: 48px; }
  .card__old { font-size: 13px; }
  .card__price { font-size: 19px; }
  .card .toman { font-size: 12px; }

  .promos { padding-top: 0; gap: 16px; }
  .promo { height: auto; min-height: 230px; border-radius: 32px; padding: 32px; }
  .promo__kicker { font-size: 14px; font-weight: 800; }
  .promo__num { font-size: 84px; letter-spacing: -3px; }
  .promo__unit { font-size: 17px; margin-top: 8px; }
  .promo__title { font-size: 34px; }
  .promo__photo, .promo--mint .promo__photo { left: 28px; bottom: auto; top: 50%; width: 190px; height: 190px; margin-top: -95px; border-radius: 30px; border-width: 4px; transform: rotate(8deg); }
  .promo__go { display: none; }

  .wide-banner { min-height: 260px; border-radius: 32px; padding: 40px; gap: 12px; }
  .wide-banner__photo { left: 40px; width: 300px; height: 200px; margin-top: -100px; border-radius: 28px; border-width: 4px; }
  .wide-banner__kicker { font-size: 14px; }
  .wide-banner__title { max-width: 360px; font-size: 34px; line-height: 1.35; }
  .wide-banner__link { font-size: 14px; }

  .grid-2, .best { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
  .best .card:nth-child(n+5) { display: flex; }

  .perks { margin: 0; padding: 0; background: none; border: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
  .perk, .perk--return { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); text-align: right; }
  .perk__icon { width: 50px; height: 50px; border-radius: 25px; }
  .perk__icon .icon { width: 24px; height: 24px; stroke-width: 1.7; }
  .perk__text { gap: 2px; }
  .perk__text b { font-size: 15px; font-weight: 900; }
  .perk__text br { display: none; }
  .perk__text span { font-size: 13px; }

  .site-footer { margin-top: 64px; border-radius: 40px 40px 0 0; }
  .site-footer__inner { flex-direction: row; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 28px; }
  .footer-brand { flex: 2 1 300px; gap: 14px; }
  .footer-brand__name { font-size: 28px; }
  .footer-brand p { font-size: 14px; line-height: 2; }
  .footer-cols { display: contents; }
  .footer-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; }
  .footer-col__title { display: block; font-size: 15px; font-weight: 900; margin-bottom: 8px; }
  .footer-col a { height: 36px; color: var(--grey); }
  .socials { display: none; }
  .trust { flex: 1 1 220px; }
  .trust__title { display: block; }
  .trust__badges div { width: 100px; height: 100px; border-radius: 18px; font-size: 12px; }
  .copyright { padding: 18px 24px 28px; border-top: 1px solid var(--ink-2); font-size: 13px; }

  /* Category */
  .category-main { padding-top: 28px; padding-bottom: 0; }
  .crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
  .crumbs a { color: var(--muted); text-decoration: none; }
  .crumbs a:hover { color: var(--ink); }
  .cat-title-d { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
  .cat-title-d h1 { font-size: 30px; font-weight: 900; }
  .cat-title-d span { font-size: 15px; color: var(--muted); }
  .cat-banner { margin-top: 0; min-height: 220px; border-radius: 32px; padding: 36px; gap: 10px; }
  .cat-banner__title { max-width: 420px; font-size: 34px; }
  .cat-banner__sub { font-size: 15px; }
  .cat-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 0 8px; }
  .toolbar { display: flex; padding: 0; }
  .tool-btn { padding: 0 18px; }
  .chips { flex: 1; margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; }
  .chip { height: 44px; padding: 0 18px; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .load-more { max-width: 320px; margin: 28px auto 0; display: block; }
  .sheet { justify-content: center; align-items: center; padding: 24px; }
  .sheet__panel { width: 100%; max-width: 480px; border-radius: 28px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .25s, opacity .25s; padding-bottom: 20px; }
  .sheet.is-open .sheet__panel { opacity: 1; }
  .sheet__grip { display: none; }

  /* Product */
  .product-main { padding-top: 28px; }
  .p-container { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
  .p-info > * { order: 3; }
  .p-info > .p-head-block { order: -1; }
  .p-info > .p-design { order: 0; padding-top: 24px; }
  .p-info > .p-models { order: 1; }
  .p-info > .buybar { order: 2; }
  .p-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .p-gallery { position: sticky; top: 24px; height: auto; aspect-ratio: 1 / 1.05; border-radius: 36px; }
  .p-gallery__bar .back { display: none; }
  .p-gallery__bar { justify-content: flex-end; top: 16px; right: 16px; left: 16px; }
  .p-gallery__off, .p-gallery__trend { bottom: 20px; }
  .p-gallery__off { right: 20px; font-size: 14px; }
  .p-gallery__trend { left: 20px; font-size: 13px; }
  .p-info { padding: 0; }
  .p-info .p-block:first-child { padding-top: 0; }
  .p-title { font-size: 30px; line-height: 1.45; }
  .p-head-block { order: -1; padding-top: 0; }
  .swatch { width: 88px; height: 88px; border-radius: 22px; }
  .model { height: 44px; }
  .buybar { position: static; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; flex-direction: row-reverse; }
  .buybar__price { align-items: flex-start; }
  .buybar__now { font-size: 24px; }
  .related .grid-2 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .related .card__media { height: 180px; }
  .product-wide { grid-column: 1 / -1; }
  .toast { bottom: 32px; }

  /* Cart */
  .cart-main { padding-top: 28px; }
  .cart-title-d { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
  .cart-title-d h1 { font-size: 30px; font-weight: 900; }
  .cart-title-d span { font-size: 16px; color: var(--muted); }
  .steps-d { max-width: 560px; padding: 0 0 8px; }
  .cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
  .cart-aside { position: sticky; top: 24px; display: flex; flex-direction: column; }
  .cart-aside .coupon { padding-top: 0; }
  .ship { margin-top: 0; }
  .cart-item { padding: 12px; gap: 16px; }
  .cart-item__img { width: 120px; height: 120px; }
  .cart-item__names b { font-size: 16px; }
  .cart-item__prices b { font-size: 17px; }
  .summary__cta { display: flex; margin: 6px 0 14px; height: 56px; border-radius: 18px; }
  .checkout-bar { display: none; }
  .empty { padding: 96px 32px; }
}

@media (min-width: 1100px) {
  .best { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .deals .hscroll { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}
