/* =========================================================
   Delimed storefront — design system v2
   Calm neutral surfaces, compact type, brand teal used as accent.
   ========================================================= */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f5f6f6;
  --surface: #ffffff;
  --soft: #f3f5f5;
  --ink: #13263a;
  --ink-2: #3b484c;
  --muted: #6e7b7f;
  --line: #e8ebeb;
  --line-strong: #d7dcdd;
  --teal: #0b78a6;
  --teal-dark: #0a5a85;
  --deep: #0d3b5e;
  --tint: #e4f3fa;
  --accent: #28b9de;
  --accent-ink: #062a3d;
  --danger: #d92d20;
  --success: #14804a;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 6px 24px rgba(20, 36, 40, 0.07);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 170px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 20px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.panel h2 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.page-title { font-size: 19px; font-weight: 800; line-height: 1.6; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 40px 20px; text-align: center; color: var(--muted); }
.note { font-size: 13px; color: var(--ink-2); background: var(--soft); border-radius: 12px; padding: 11px 13px; }

/* ---------- buttons, fields, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0;
  font-size: 13.5px; font-weight: 700; text-align: center; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(0.96); color: var(--accent-ink); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }

.field { height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; padding: 0 12px; font-size: 13.5px; color: var(--ink); min-width: 0; }
.field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--tint); }

.tag { display: inline-block; background: var(--tint); color: var(--teal-dark); font-weight: 600; font-size: 11.5px; line-height: 1.9; padding: 0 9px; border-radius: 999px; white-space: nowrap; }
.tag.neutral { background: var(--soft); color: var(--ink-2); }
.tag.warn { background: #fdf0d9; color: #7a4b00; }
.off { display: inline-block; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.8; padding: 0 7px; border-radius: 6px; }

.price { font-weight: 800; font-size: 15px; white-space: nowrap; color: var(--ink); }
.price small { font-size: 11px; font-weight: 500; color: var(--muted); }
.price-old { font-size: 12px; color: #9aa5a8; text-decoration: line-through; }

.flash { margin-top: 14px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; background: var(--tint); color: var(--teal-dark); }
.flash.error { background: #fdecea; color: var(--danger); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 11px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 36, 40, 0.3); }
.toast.error { background: var(--danger); }

/* ---------- top bar and header ---------- */
.topbar { background: var(--ink); color: #e6ecec; font-size: 12px; }
.topbar .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 36px; padding-block: 7px; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { color: var(--accent); }

.header { position: sticky; top: 0; z-index: 35; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-img { height: 42px; width: auto; max-width: 140px; object-fit: contain; border-radius: 10px; }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--teal); display: grid; place-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.35; }
.logo-text b { font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.logo-text small { font-size: 11px; color: var(--muted); }
.search { flex: 1 1 auto; max-width: 620px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--soft); border: 1px solid transparent; border-radius: 12px; color: var(--muted); transition: border-color 0.15s, background 0.15s; }
.search:focus-within { background: #fff; border-color: var(--teal); }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font-size: 13.5px; color: var(--ink); outline: none; }
.search input::placeholder { color: #8f9a9d; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone { display: flex; align-items: center; gap: 7px; padding-inline: 6px; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.header-phone svg { color: var(--teal); }
.account-link { height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; max-width: 190px; }
.account-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-link:hover { border-color: var(--teal); color: var(--teal-dark); }
.cart-link { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); display: grid; place-items: center; }
.cart-link:hover { border-color: var(--teal); color: var(--teal-dark); }
.cart-badge { position: absolute; top: -7px; left: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

.nav { position: relative; display: flex; align-items: center; gap: 4px 22px; height: 44px; font-size: 13px; font-weight: 600; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav > a { color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover { color: var(--teal-dark); }
.nav > a.is-strong { color: var(--danger); }
.mega { flex: none; }
.mega summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; padding-inline-end: 18px; border-inline-end: 1px solid var(--line); }
.mega summary::-webkit-details-marker { display: none; }
.mega[open] summary { color: var(--teal-dark); }
.mega-panel { position: fixed; top: auto; inset-inline: max(24px, calc((100vw - 1232px) / 2)); z-index: 30; margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 48px rgba(20, 36, 40, 0.14); padding: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 26px; max-height: 70vh; overflow: auto; font-weight: 400; }
.mega-col { display: flex; flex-direction: column; }
.mega-col a { color: var(--ink-2); font-size: 13px; padding-block: 4px; }
.mega-col a:hover { color: var(--teal-dark); }
.mega-col a.mega-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 4px; }
.mega-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--tint); color: var(--teal); display: grid; place-items: center; flex: none; }
.mega-icon svg { width: 18px; height: 18px; }

/* ---------- home: hero ---------- */
.hero-section { padding-top: 18px; }
.hero-section.has-side { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 14px; }
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.slides { display: flex; align-items: flex-start; transition: transform 0.5s ease; }
.slide { flex: 0 0 100%; position: relative; height: clamp(220px, 28vw, 360px); max-width: 100%; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.slide-plain { height: auto; aspect-ratio: 1600 / 520; }
.slide-plain img { object-fit: cover; }
.slide-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 28px 64px; color: #fff; background: linear-gradient(to left, rgba(9, 34, 56, 0.84), rgba(9, 34, 56, 0.5) 45%, rgba(9, 34, 56, 0) 75%); }
.slide-text h2 { font-size: clamp(18px, 2.3vw, 28px); font-weight: 800; line-height: 1.5; max-width: 480px; }
.slide-text p { font-size: 14px; color: #e3efef; max-width: 440px; }
.slide-link { position: absolute; inset: 0; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); opacity: 0; transition: opacity 0.2s; }
.slider:hover .slider-btn, .slider:focus-within .slider-btn { opacity: 1; }
.slider-prev { right: 14px; }
.slider-next { left: 14px; }
.dots { position: absolute; bottom: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.6); transition: width 0.2s; }
.dot[aria-current="true"] { width: 22px; background: #fff; }
.side-banners { display: flex; flex-direction: column; gap: 14px; }
.side-banner { position: relative; flex: 1; min-height: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.side-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.side-banner:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .slides, .side-banner img { transition: none; } }

.hero { background: linear-gradient(120deg, var(--deep), var(--teal)); border-radius: var(--radius-lg); color: #fff; padding: 40px 44px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-pill { align-self: flex-start; background: rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 3px 14px; font-size: 12.5px; }
.hero h1 { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.5; font-weight: 800; }
.hero p { font-size: 14.5px; color: #d5e8e8; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { flex: 1 1 300px; min-width: 0; min-height: 200px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; }

/* ---------- home: category tiles ---------- */
.cats-section { padding-top: 20px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 8px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-align: center; transition: border-color 0.15s, box-shadow 0.15s; }
.cat-tile:hover { color: var(--teal-dark); border-color: #c6e3f0; box-shadow: var(--shadow); }
.cat-tile-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--teal); display: grid; place-items: center; overflow: hidden; flex: none; }
.cat-tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-icon.is-sm { width: 38px; height: 38px; border-radius: 11px; }
.cat-tile-icon.is-sm svg { width: 20px; height: 20px; }
.cat-tile-name { font-size: 12.5px; font-weight: 600; line-height: 1.6; }

/* ---------- section heads and product rails ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.head-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--tint); color: var(--teal); }
.head-icon.is-hot { background: #fdecea; color: var(--danger); }
.more-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; }
.rail { position: relative; }
.rail-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px; margin: -2px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track .card { flex: 0 0 188px; scroll-snap-align: start; }
.rail-btn { position: absolute; top: 38%; z-index: 2; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.rail-prev { right: -14px; }
.rail-next { left: -14px; }

/* ---------- product card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(182px, 1fr)); gap: 12px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow 0.15s, border-color 0.15s; }
.card:hover { border-color: #dfe5e5; box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; background: #fff; display: grid; place-items: center; color: #c3cbcd; margin-bottom: 4px; }
.card-img img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.card-off { position: absolute; top: 4px; inset-inline-start: 4px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.75; padding: 0 7px; border-radius: 6px; }
.card-title { color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.85; height: 3.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title:hover { color: var(--teal-dark); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; font-size: 11.5px; color: var(--muted); }
.card-meta .tag { font-size: 10.5px; padding: 0 7px; }
.card-foot { margin-top: auto; display: flex; flex-direction: row-reverse; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; }
.card-price { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.card-price .price-old { font-size: 11.5px; }
.card-add { width: 34px; height: 34px; border-radius: 10px; border: 1px solid #c6e3f0; background: var(--tint); color: var(--teal-dark); display: grid; place-items: center; padding: 0; transition: background 0.15s, color 0.15s; }
.card-add:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* shared quantity stepper (card, product page) */
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.buy.is-busy { opacity: 0.6; pointer-events: none; }
.buy-form { display: flex; }
.buy-price { display: none; }
.buy-stepper { display: flex; align-items: center; justify-content: space-between; height: 44px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.buy-stepper button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--teal-dark); display: grid; place-items: center; }
.buy-stepper button:disabled { color: var(--line-strong); cursor: not-allowed; }
.buy-qty { min-width: 36px; display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.buy-qty b { font-size: 15px; font-weight: 800; }
.buy-qty small { font-size: 9.5px; color: var(--muted); }
.buy-cart { font-size: 13px; font-weight: 700; }
.buy-card { gap: 0; z-index: 1; }
.buy-card .buy-stepper { height: 34px; border-radius: 10px; }
.buy-card .buy-stepper button { width: 32px; font-size: 17px; }
.buy-card .buy-qty { min-width: 26px; }
.buy-card .buy-qty b { font-size: 13.5px; }
.buy-card.is-open { flex: 1 1 100%; order: 2; }
.buy-card.is-open .buy-stepper { width: 100%; }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.trust-item { display: flex; gap: 12px; align-items: center; padding: 18px 20px; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--teal); display: grid; place-items: center; }
.trust-item strong { display: block; font-size: 13.5px; }
.trust-item span { display: block; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------- listing ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal-dark); }
.crumbs > span:last-child { color: var(--ink-2); }
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.layout-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.filter-group { display: flex; flex-direction: column; gap: 2px; }
.filter-group + .filter-group { border-top: 1px solid var(--line); padding-top: 12px; }
.check { display: flex; align-items: center; gap: 9px; min-height: 32px; font-size: 13px; color: var(--ink-2); }
.check input { width: 16px; height: 16px; accent-color: var(--teal); }
.filter-link { min-height: 32px; display: flex; align-items: center; font-size: 13px; color: var(--ink-2); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding-block: 8px 20px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.pager .is-current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr) 300px; grid-template-areas: "g i b"; gap: 24px; align-items: start; }
.gallery { grid-area: g; display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; place-items: center; color: #c3cbcd; }
.gallery-main img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; }
.gallery-main .card-off { top: 14px; inset-inline-start: 14px; font-size: 12.5px; padding: 1px 9px; }
.thumbs { display: flex; gap: 8px; }
.thumbs button { position: relative; padding: 0; width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.thumbs button[aria-current="true"] { border: 2px solid var(--teal); }
.thumbs img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.info { grid-area: i; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.info-brand { display: flex; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.info h1 { font-size: 18px; font-weight: 800; line-height: 1.8; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.info-lead { font-size: 13.5px; color: var(--ink-2); line-height: 2; }
.facts { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { color: var(--muted); flex: none; }
.facts span { color: var(--muted); }
.facts b { font-weight: 600; color: var(--ink); }
.buy-col { grid-area: b; position: sticky; top: 160px; display: flex; flex-direction: column; gap: 12px; }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dot-ok, .dot-no { width: 8px; height: 8px; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 4px #e3f4ea; }
.dot-no { background: #9aa5a8; box-shadow: 0 0 0 4px var(--soft); }
.buybox-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.old-row { display: flex; align-items: center; gap: 8px; }
.buybox-price .price { font-size: 20px; }
.buybox .buy { flex-direction: column; align-items: stretch; }
.buybox .buy-form, .buybox .buy-add { width: 100%; }
.buybox .buy-cart { text-align: center; }
.tiers { border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; }
.tiers table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.tiers td { padding: 5px 0; border-top: 1px dashed var(--line); }
.tiers td:last-child { text-align: left; font-weight: 700; }
.help-line { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); }
.help-line svg { color: var(--teal); flex: none; }
.help-line b { display: block; font-size: 13px; }
.help-line small { display: block; font-size: 12px; color: var(--muted); }
.help-line:hover { border-color: #c6e3f0; color: var(--ink); }
.detail-main { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; font-size: 13px; }
.specs div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { flex: 0 0 42%; color: var(--muted); }
.specs dd { flex: 1; margin: 0; font-weight: 600; }
.prose { font-size: 13.5px; line-height: 2.1; color: var(--ink-2); white-space: pre-line; }

/* ---------- cart ---------- */
.cart-body { padding-top: 14px; }
.page-cart .layout { grid-template-columns: minmax(0, 1fr) 330px; }
.cart-lines { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.line { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.line-img { position: relative; flex: none; width: 84px; height: 84px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: #c3cbcd; }
.line-img img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.line-info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line-info a { color: var(--ink); font-size: 13.5px; font-weight: 700; }
.line-info span { font-size: 12px !important; }
.qty { display: flex; align-items: center; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; height: 38px; }
.qty button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 18px; color: var(--teal-dark); }
.qty button:disabled { color: var(--line-strong); }
.qty span { font-size: 13.5px; }
.line-total { min-width: 120px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.5; }
.line-total .line-old { font-size: 11.5px; font-weight: 400; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { color: var(--danger); border-color: #f3c3be; }
.cart-more { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1.5px dashed #b4d9ea; border-radius: var(--radius-lg); color: var(--teal-dark); font-weight: 700; font-size: 13px; }
.cart-more:hover { background: var(--tint); }
.summary { position: sticky; top: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.summary h2 { font-size: 15px; font-weight: 800; }
.summary-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.summary-saving { background: #e9f7ef; color: var(--success); font-weight: 700; border-radius: 10px; padding: 9px 11px; margin-inline: -4px; }
.summary-saving .off { background: var(--success); margin-inline-end: 4px; }
.summary-total { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13.5px; }
.total-stack { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.5; }
.summary-total .price { font-size: 18px; }
.cart-bar { display: none; }
.bar-saving { color: var(--success); font-weight: 700; font-size: 11px; }
.cart-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: 15px; }
.cart-empty-icon { width: 100px; height: 100px; border-radius: 999px; background: var(--tint); color: var(--teal); display: grid; place-items: center; }

/* ---------- account, forms, auth ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row label { font-size: 13px; font-weight: 600; }
.form .field { width: 100%; height: 46px; font-size: 14px; }
.form textarea.field { height: auto; padding: 10px 12px; line-height: 1.8; resize: vertical; }
.field-error { color: var(--danger); font-size: 12.5px; font-weight: 600; }
.form-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-2col > .check, .form-2col > div:last-child, .form-2col > .flash { grid-column: 1 / -1; }
.account-side { display: flex; flex-direction: column; gap: 6px; }
.avatar { width: 52px; height: 52px; border-radius: 999px; background: var(--tint); color: var(--teal); display: grid; place-items: center; }
.account-nav { display: flex; flex-direction: column; margin-block: 10px; border-top: 1px solid var(--line); }
.account-nav a { min-height: 42px; display: flex; align-items: center; color: var(--ink-2); font-size: 13.5px; border-bottom: 1px solid var(--line); }
.account-nav a:hover { color: var(--teal-dark); }
.address { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.otp-phone { color: var(--ink); unicode-bidi: isolate; }
.link-btn { background: none; border: 0; padding: 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--teal-dark); cursor: pointer; }
.link-btn:disabled { color: var(--muted); cursor: default; }

/* ---------- categories page ---------- */
.cat-acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.cat-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.cat-acc summary::-webkit-details-marker { display: none; }
.cat-acc-name { flex: 1; }
.cat-acc-chevron { color: var(--muted); transition: transform 0.2s; }
.cat-acc[open] .cat-acc-chevron { transform: rotate(180deg); }
.cat-acc-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 20px; padding: 0 14px 10px; padding-inline-start: 64px; }
.cat-acc-body a { min-height: 40px; display: flex; align-items: center; color: var(--ink-2); font-size: 13px; border-bottom: 1px solid var(--line); }
.cat-acc-body a.cat-acc-all { color: var(--teal-dark); font-weight: 700; }

/* ---------- footer (light) ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); margin-top: 36px; font-size: 13px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--teal-dark); }
.footer-contact { border-bottom: 1px solid var(--line); }
.footer-contact .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-block: 18px; }
.fc-item { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.fc-item small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.fc-item b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.fc-icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--tint); color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; padding-block: 30px 24px; }
.f-brand { display: flex; flex-direction: column; gap: 12px; }
.f-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--ink) !important; }
.f-logo img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; }
.f-brand p { margin: 0; font-size: 12.5px; line-height: 2.05; }
.f-social { display: flex; flex-wrap: wrap; gap: 8px; }
.f-social a { height: 36px; min-width: 36px; padding: 0 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--soft); color: var(--ink-2); font-size: 12px; }
.f-social a:hover { background: var(--teal); color: #fff; }
.f-col { display: flex; flex-direction: column; gap: 9px; }
.f-col strong { color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }
.f-col a { font-size: 12.5px; color: var(--muted); }
.f-address p { display: flex; gap: 8px; margin: 0; line-height: 1.95; font-size: 12.5px; }
.f-address p svg { flex: none; margin-top: 3px; color: var(--teal); }
.map-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.map-links a { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.map-links a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.footer-seals { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 24px; }
.seal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; min-width: 92px; min-height: 92px; display: grid; place-items: center; }
.seal img { max-width: 100px; height: auto; }
.footer-bottom { border-top: 1px solid var(--line); font-size: 12px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 14px 18px; }

/* ---------- info pages, contact ---------- */
.info-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; }
.info-body { padding: 26px 30px; line-height: 2.1; font-size: 13.5px; }
.info-body h2 { font-size: 15px; margin: 20px 0 4px; }
.info-body p { margin: 0 0 8px; color: var(--ink-2); }
.info-side { display: flex; flex-direction: column; gap: 2px; padding: 16px; position: sticky; top: 160px; }
.info-side strong { font-size: 13px; margin: 10px 0 4px; }
.info-side strong:first-child { margin-top: 0; }
.info-side a { padding: 6px 10px; border-radius: 9px; font-size: 13px; color: var(--ink-2); }
.info-side a:hover, .info-side a.is-active { background: var(--soft); color: var(--teal-dark); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-block: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); }
.contact-card .fc-icon, .contact-address .fc-icon { margin-bottom: 4px; }
.contact-card small { color: var(--muted); font-size: 12px; }
.contact-card b { font-size: 14.5px; }
a.contact-card:hover { border-color: #c6e3f0; color: var(--ink); }
.contact-address { display: flex; gap: 14px; padding: 18px; align-items: flex-start; }
.contact-address p { margin: 6px 0 10px; line-height: 1.9; }

/* ---------- floating contact + bottom nav ---------- */
.float-contact { position: fixed; z-index: 30; bottom: 22px; left: 22px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 10px 28px rgba(20, 36, 40, 0.25); }
.float-contact:hover { background: var(--teal-dark); color: #fff; }
.bottom-nav { display: none; }

/* ---------- dark button, sizes ---------- */
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-lg { min-height: 52px; border-radius: 14px; font-size: 14.5px; }
.btn-dark:disabled, .btn-primary:disabled { background: #b9c0c2; color: #fff; cursor: not-allowed; box-shadow: none; }

/* ---------- wishlist ---------- */
.wish { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; margin: 0; }
.wish-btn { width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.92); color: #9aa5a8; display: grid; place-items: center; padding: 0; transition: color 0.15s, transform 0.15s; }
.wish-btn:hover { color: var(--danger); }
.wish-btn.is-on { color: var(--danger); }
.wish-btn.is-on svg { fill: currentColor; }
.wish-btn:active { transform: scale(0.9); }
.info-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.info-top .wish { position: static; }
.info-top .wish-btn { width: 38px; height: 38px; border: 1px solid var(--line); }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.state-card { max-width: 460px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.state-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; margin-bottom: 6px; }
.state-card strong { font-size: 16px; }
.state-card p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.state-card .btn { min-width: 220px; }

/* ---------- mobile menu button + drawer ---------- */
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); place-items: center; padding: 0; margin-inline-start: -8px; }
.drawer { margin: 0; margin-inline-end: auto; width: min(340px, 88vw); max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0; background: #fff; color: var(--ink); display: none; flex-direction: column; overflow-y: auto; box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15); }
.drawer[open] { display: flex; animation: drawer-in 0.22s ease; }
.drawer::backdrop { background: rgba(20, 36, 40, 0.35); backdrop-filter: blur(3px); }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head .logo-img { height: 36px; }
.drawer-close { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); display: grid; place-items: center; }
.drawer-account { display: flex; align-items: center; gap: 10px; margin: 12px 16px 4px; padding: 12px 14px; border-radius: 12px; background: var(--soft); color: var(--ink); font-weight: 700; font-size: 13.5px; }
.drawer-nav { display: flex; flex-direction: column; padding: 8px 8px; }
.drawer-link, .drawer-group summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px; border-radius: 10px; color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-link:hover, .drawer-group summary:hover { background: var(--soft); color: var(--ink); }
.drawer-link.is-hot { color: var(--danger); padding-inline-start: 12px; }
.drawer-group .chev { margin-inline-start: auto; color: var(--muted); transition: transform 0.2s; }
.drawer-group[open] .chev { transform: rotate(180deg); }
.drawer-sub { display: flex; flex-direction: column; padding: 0 48px 6px 8px; }
.drawer-sub a { min-height: 38px; display: flex; align-items: center; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.drawer-sub a:first-child { color: var(--teal-dark); font-weight: 700; }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; padding: 12px 16px 20px; border-top: 1px solid var(--line); }
.drawer-foot a { min-height: 38px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.drawer-call { margin-top: 8px; justify-content: center; border-radius: 12px; background: var(--tint); color: var(--teal-dark) !important; font-weight: 600; }

/* ---------- categories page: side rail + panel ---------- */
.cats-page { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding-block: 20px; align-items: start; }
.cat-rail { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; position: sticky; top: 160px; }
.cat-rail-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.cat-rail-item:hover { background: var(--soft); color: var(--ink); }
.cat-rail-item.is-active { background: var(--tint); color: var(--teal-dark); }
.cat-rail-icon { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; overflow: hidden; }
.cat-rail-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-rail-icon svg { width: 21px; height: 21px; }
.cat-rail-item.is-active .cat-rail-icon { background: var(--teal); color: #fff; }
.cat-panels { min-width: 0; }
.cat-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 18px 12px; }
.cat-panel-all { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 800; font-size: 14px; border-bottom: 1px solid var(--line); }
.cat-sub summary, .cat-sub-link { display: flex; align-items: center; justify-content: space-between; min-height: 50px; color: var(--ink); font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.cat-sub summary::-webkit-details-marker { display: none; }
.cat-sub .chev, .cat-sub-link svg { color: var(--muted); transition: transform 0.2s; }
.cat-sub[open] .chev { transform: rotate(180deg); }
.cat-sub-body { display: flex; flex-direction: column; padding: 4px 14px 10px; border-bottom: 1px solid var(--line); }
.cat-sub-body a { min-height: 38px; display: flex; align-items: center; font-size: 13px; color: var(--ink-2); }
.cat-sub-body a:first-child { color: var(--teal-dark); font-weight: 700; }
.cat-panel-empty { padding: 16px 0 6px; font-size: 13px; color: var(--muted); }

/* ---------- cart head and steps ---------- */
.cart-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.cart-head .wrap:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px 6px; }
.cart-title { display: flex; align-items: center; gap: 10px; }
.cart-back, .cart-wish { position: relative; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--ink); display: grid; place-items: center; }
.cart-back:hover, .cart-wish:hover { color: var(--teal-dark); }
.wish-dot { position: absolute; top: -5px; left: -5px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.steps { list-style: none; display: flex; align-items: center; gap: 10px; margin: 0 auto; padding-block: 8px 16px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 40px; height: 1px; background: var(--line-strong); margin-inline-end: 2px; }
.steps span { width: 26px; height: 26px; border-radius: 999px; background: var(--soft); display: grid; place-items: center; font-size: 12px; }
.steps .is-current { color: var(--ink); }
.steps .is-current span { background: var(--ink); color: #fff; }
.cart-login { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-radius: 12px; background: #fff8eb; border: 1px solid #f6dfb4; color: #7a4b00; font-size: 13px; font-weight: 700; }
.cart-login:hover { color: #5c3800; }

/* ---------- auth: form column + brand column ---------- */
.auth-page { background: var(--bg); }
.auth-shell { min-height: 100vh; min-height: 100dvh; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; box-shadow: 0 0 60px rgba(20, 36, 40, 0.06); }
.auth-main { display: flex; flex-direction: column; min-width: 0; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.auth-back { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--ink); display: grid; place-items: center; }
.auth-back:hover { color: var(--teal-dark); }
.auth-brandmark { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 16px; }
.auth-brandmark img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.auth-top-spacer { width: 40px; }
.auth-body { width: 100%; max-width: 400px; margin: 0 auto; padding: 44px 24px 40px; display: flex; flex-direction: column; }
.auth-body > .flash { margin: 0 0 16px; }
.auth-icon { width: 58px; height: 58px; border-radius: 17px; margin: 0 auto 18px; display: grid; place-items: center; background: linear-gradient(160deg, #e8f5fb, #d3ecf7); color: var(--teal-dark); box-shadow: inset 0 0 0 1px rgba(11, 120, 166, 0.12); }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; }
.auth-lead { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.95; }
.auth-form { margin-top: 26px; gap: 18px; }
.auth-form .form-row label { font-size: 12.5px; color: var(--ink-2); }
.phone-field { display: flex; align-items: stretch; height: 52px; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.phone-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--tint); }
.phone-field.has-error { border-color: var(--danger); }
.phone-field input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 14px; font-size: 17px; font-weight: 700; letter-spacing: 1px; color: var(--ink); background: transparent; }
.phone-field input::placeholder { color: #b8c0c2; font-weight: 500; }
.phone-prefix { display: grid; place-items: center; padding: 0 14px; background: var(--soft); border-inline-start: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field-help { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 11.5px; color: var(--muted); text-align: center; }
.auth-secure svg { color: var(--success); flex: none; }
.auth-terms { margin-top: 10px; font-size: 11.5px; color: var(--muted); text-align: center; }
.auth-terms a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-alt-link { margin-top: 22px; text-align: center; font-size: 12.5px; }
.auth-alt-link a { color: var(--muted); }
.auth-alt-link a:hover { color: var(--teal-dark); }
.otp-phone { color: var(--ink); unicode-bidi: isolate; }
.otp-input { text-align: center; letter-spacing: 0.6em; font-size: 20px !important; font-weight: 700; height: 52px !important; }
.otp-boxes { display: flex; justify-content: center; gap: 10px; }
.otp-cell { width: 54px; height: 58px; border: 1px solid var(--line-strong); border-radius: 14px; text-align: center; font-size: 22px; font-weight: 800; color: var(--ink); background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s; caret-color: var(--teal); }
.otp-cell:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 36, 40, 0.08); }
.otp-cell.is-filled { border-color: var(--teal); background: #fbfefe; }
.otp-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.otp-timer { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.otp-meta .link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 12.5px; margin-inline-start: auto; }
.otp-change { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.link-btn { background: none; border: 0; padding: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--teal-dark); cursor: pointer; }
.link-btn:disabled { color: #a9b3b5; cursor: default; }
.auth-aside { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 20% 100%, rgba(40, 185, 222, 0.16), transparent 55%), radial-gradient(90% 70% at 90% 0%, rgba(40, 185, 222, 0.38), transparent 60%), linear-gradient(160deg, #0f3f63, #0a2740); color: #fff; display: flex; align-items: center; }
.auth-aside::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent); pointer-events: none; }
.auth-aside-inner { position: relative; z-index: 1; padding: 56px; display: flex; flex-direction: column; gap: 16px; max-width: 470px; }
.auth-aside-logo { width: 64px; height: 64px; border-radius: 18px; object-fit: contain; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.auth-aside strong { font-size: 30px; font-weight: 800; letter-spacing: -0.3px; }
.auth-aside p { font-size: 15px; line-height: 2; color: #cfe3f0; }
.auth-aside ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-aside li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; color: #eef6fb; }
.auth-aside li::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 999px; background: rgba(40, 185, 222, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328b9de' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* ---------- card v3: bold price, rating, second image on hover ---------- */
.card-price .price { font-size: 16px; font-weight: 900; letter-spacing: -0.2px; display: inline-flex; align-items: baseline; gap: 3px; }
.card-price .price small { font-size: 10px; font-weight: 600; color: var(--muted); order: 2; }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); margin-top: -2px; }
.card-rating svg { color: #f5a524; }
.card-rating b { color: var(--ink); font-weight: 700; }
.card-img .img-alt { opacity: 0; transition: opacity 0.25s ease; }
@media (hover: hover) {
  .card:hover .card-img img:first-child:not(:only-of-type) { opacity: 0; }
  .card:hover .card-img .img-alt { opacity: 1; }
}
.card-img img:first-child { transition: opacity 0.25s ease; }

/* ---------- framed offers strip (home) ---------- */
.offers { display: flex; gap: 12px; background: linear-gradient(135deg, var(--deep), var(--teal)); border-radius: 20px; padding: 14px; }
.offers-intro { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 8px; }
.offers-intro svg { color: var(--accent); }
.offers-intro h2 { font-size: 18px; font-weight: 800; }
.offers-all { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: var(--deep); font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 10px; }
.offers-all:hover { color: var(--teal); }
.offers .rail-track { flex: 1; min-width: 0; margin: 0; padding: 0; border-radius: 14px; }
.offers .card { border-color: transparent; }
.offers .rail-prev { right: 158px; }
.offers .rail-next { left: 8px; }
.offer-more { flex: 0 0 150px !important; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--teal-dark); }
.offer-more-icon { width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid var(--teal); display: grid; place-items: center; }

/* ---------- listing page ---------- */
.cat-banner { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; aspect-ratio: 1600 / 320; background: var(--soft); }
.cat-banner img { width: 100%; height: 100%; object-fit: cover; }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.list-title .page-title { font-size: 21px; }
.list-title .count { display: block; font-size: 12px; color: var(--muted); }
.list-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.list-tools { display: flex; align-items: center; gap: 8px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sort .field { height: 38px; font-size: 12.5px; border-radius: 10px; background: #fff; padding-inline: 10px 6px; }
.filters-open { display: none; }
.filters { position: sticky; top: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; max-height: calc(100vh - 180px); overflow: hidden; }
.filters-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filters-head strong { font-size: 14px; }
.filters-clear { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--danger); }
.filters-close, .filters-foot { display: none; }
.filters-body { overflow-y: auto; padding: 4px 16px 16px; scrollbar-width: thin; scrollbar-color: #cfd6d7 transparent; }
.filter-group { display: flex; flex-direction: column; gap: 8px; padding-block: 14px; }
.filter-group + .filter-group { border-top: 1px solid var(--line); }
.filter-title { font-weight: 800; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.filter-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--muted); }
.filter-search:focus-within { border-color: var(--teal); }
.filter-search input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 12.5px; background: transparent; }
.check-list { max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.check { display: flex; align-items: center; gap: 9px; min-height: 34px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.check-name { flex: 1; }
.check-count { min-width: 26px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 10.5px; text-align: center; color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; width: 38px; height: 22px; flex: none; border-radius: 999px; background: #d5dbdc; transition: background 0.2s; }
.switch i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.switch input:checked + i { background: var(--teal); }
.switch input:checked + i::after { transform: translateX(-16px); }
.switch input:focus-visible + i { outline: 2px solid var(--teal); outline-offset: 2px; }
.range { position: relative; height: 26px; margin: 4px 8px; }
.range::before, .range-fill { content: ""; position: absolute; top: 11px; height: 4px; border-radius: 999px; }
.range::before { inset-inline: 0; background: var(--line-strong); }
.range-fill { background: var(--ink); right: var(--a, 0%); left: var(--b, 0%); }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; direction: rtl; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); cursor: grab; }
.range input::-webkit-slider-runnable-track { background: none; }
.price-inputs { display: flex; flex-direction: column; gap: 8px; }
.price-inputs label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.price-inputs label > span { width: 16px; }
.price-inputs .field { flex: 1; min-width: 0; height: 40px; font-weight: 700; direction: ltr; text-align: right; }
.price-inputs small { font-size: 10.5px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 14px; }
.active-filters .chip { min-height: 30px; padding-inline: 12px 8px; }
.active-clear { font-size: 12px; font-weight: 700; color: var(--danger); margin-inline-start: 4px; }
#results.is-loading { opacity: 0.5; pointer-events: none; transition: opacity 0.15s; }

/* ---------- product reviews ---------- */
.info-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.info-rating svg { color: #f5a524; }
.info-rating b { color: var(--ink); }
.reviews { margin-top: 16px; }
.reviews-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.review-summary { display: flex; flex-direction: column; gap: 10px; }
.score { display: flex; align-items: baseline; gap: 6px; }
.score b { font-size: 34px; font-weight: 900; line-height: 1.2; }
.score span { color: var(--muted); font-size: 13px; }
.stars { --v: 0; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; }
.stars::before { content: "★★★★★"; background: linear-gradient(to left, #f5a524 calc(var(--v) / 5 * 100%), #dfe3e4 calc(var(--v) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars.sm { font-size: 13px; letter-spacing: 1px; }
.dist { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); }
.dist li { display: grid; grid-template-columns: 14px 1fr 26px; align-items: center; gap: 8px; }
.dist i { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.dist em { display: block; height: 100%; background: #f5a524; border-radius: 999px; }
.review-form { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-form strong { font-size: 13px; }
.review-form textarea { height: auto; padding: 10px 12px; line-height: 1.8; resize: vertical; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { color: #dfe3e4; cursor: pointer; transition: color 0.1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a524; }
.star-input input:focus-visible + label { outline: 2px solid var(--teal); border-radius: 4px; }
.review-list { display: flex; flex-direction: column; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review header { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.review time { margin-inline-start: auto; font-size: 11.5px; color: var(--muted); }
.review p { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 2; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "g i" "g b"; }
  .buy-col { position: static; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .filters-open { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; }
  .filters-open b { min-width: 18px; height: 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10.5px; display: grid; place-items: center; }
  .filters { position: fixed; inset: 0; z-index: 60; top: 0; max-height: none; border: 0; border-radius: 0; transform: translateY(100%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s; }
  .filters.is-open { transform: none; visibility: visible; }
  .filters-close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); }
  .filters-body { flex: 1; }
  .filters-foot { display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  body.filters-on { overflow: hidden; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); box-shadow: none; }
  .auth-aside { display: none; }
  .layout, .page-cart .layout, .info-layout { grid-template-columns: minmax(0, 1fr); }
  .summary, .info-side { position: static; max-height: none; }
  .hero-section.has-side { grid-template-columns: minmax(0, 1fr); }
  .side-banners { flex-direction: row; }
  .side-banner { flex: 1; aspect-ratio: 800 / 310; }
  .specs { grid-template-columns: 1fr; }
}

/* =========================================================
   Phone
   ========================================================= */
@media (max-width: 640px) {
  body { font-size: 13.5px; }
  .wrap { padding-inline: 14px; }
  .section { padding-block: 14px; }
  .panel { padding: 16px; border-radius: var(--radius); }
  .page-title { font-size: 16px; }
  .topbar, .float-contact { display: none; }
  html { scroll-padding-top: 70px; }

  /* header: logo row scrolls away, search row stays */
  .header { top: -52px; }
  .header-main { flex-wrap: wrap; gap: 10px 12px; padding-block: 8px 10px; }
  .logo { flex: 1 1 0; min-width: 0; }
  .logo-img { height: 34px; }
  .logo-text b { font-size: 15px; }
  .logo-text small { display: none; }
  .search { order: 3; flex: 1 1 100%; max-width: none; height: 42px; }
  .account-link { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .account-link span { display: none; }
  .cart-link { width: 40px; height: 40px; }
  .has-bottom-nav .header-actions, .has-bottom-nav .header .nav { display: none; }
  .page-product .header .nav { display: none; }

  /* hero */
  .hero-section { padding-top: 12px; }
  .slider, .side-banner { border-radius: var(--radius); }
  .slider-btn { display: none; }
  .slide-text { padding: 18px 20px 30px; background: rgba(9, 34, 56, 0.6); }
  .slide-text p { font-size: 12.5px; }
  .slide.has-mobile { height: auto; aspect-ratio: 3 / 2; }
  .side-banners { overflow-x: auto; scrollbar-width: none; gap: 10px; }
  .side-banner { flex: 0 0 82%; }
  .hero { padding: 26px 20px; }
  .hero-art { display: none; }

  /* categories: one swipeable row */
  .cats-section { padding-top: 14px; }
  .cat-tiles { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 86px; padding: 12px 6px 10px; gap: 7px; }
  .cat-tile-icon { width: 44px; height: 44px; border-radius: 12px; }
  .cat-tile-icon svg { width: 22px; height: 22px; }
  .cat-tile-name { font-size: 11.5px; }

  /* rails and cards */
  .section-head h2 { font-size: 14.5px; }
  .rail-track { margin-inline: -14px; padding-inline: 14px; gap: 8px; }
  .rail-track .card { flex-basis: 152px; }
  .rail-btn { display: none !important; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card { padding: 8px 10px 10px; gap: 4px; }
  .card-title { font-size: 12px; }
  .card .price { font-size: 13.5px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item { padding: 12px; gap: 9px; }
  .trust-item span { display: none; }
  .trust-item strong { font-size: 12px; }
  .trust-icon { width: 34px; height: 34px; border-radius: 10px; }
  .trust-icon svg { width: 18px; height: 18px; }
  .gallery-main { aspect-ratio: 4 / 3; }

  /* listing */

  /* product page: fixed buy bar */
  .product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "g" "i" "b"; gap: 16px; }
  .gallery-main img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .info h1 { font-size: 16px; }
  .page-product { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .buybox .buy { position: fixed; z-index: 40; bottom: 0; inset-inline: 0; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(20, 36, 40, 0.07); }
  .buybox .buy-form { flex: 1 1 auto; width: auto; }
  .buybox .buy-stepper { width: 140px; }
  .buy-price { display: block; flex: none; }
  .buy-price .price { font-size: 16px; }
  .buybox .buy-cart { display: none; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

  /* cart: compact rows and a fixed total bar */
  .page-cart .header, .page-cart .topbar, .page-cart .footer { display: none; }
  .cart-head .page-title { font-size: 16px; }
  .cart-lines { gap: 8px; }
  .line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info remove" "img qty total"; gap: 6px 12px; padding: 12px; border-radius: var(--radius); }
  .line-img { grid-area: img; align-self: start; width: 64px; height: 64px; }
  .line-info { grid-area: info; }
  .line-info a { font-size: 13px; font-weight: 600; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .line-info span:first-of-type { display: none; }
  .line > form.qty { grid-area: qty; justify-self: start; height: 34px; }
  .line > form.qty button { width: 34px; height: 34px; }
  .line > form.qty span { min-width: 28px !important; }
  .line-total { grid-area: total; min-width: 0; font-size: 13.5px; }
  .line > form:last-of-type { grid-area: remove; align-self: start; }
  .line .icon-btn { width: 34px; height: 34px; border: 0; }
  .cart-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; z-index: 39; inset-inline: 0; bottom: calc(58px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; box-shadow: 0 -4px 16px rgba(20, 36, 40, 0.06); }
  .cart-bar-total { display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.55; }
  .cart-bar .price { font-size: 15px; }
  .cart-bar .price-old { font-size: 11px; }
  .cart-bar .btn { min-height: 42px; padding: 0 16px; }
  .cart-body { padding-bottom: 124px; }
  .cart-empty { border: 0; background: transparent; padding-top: 48px; }

  /* categories page */
  .cat-acc { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .cat-acc:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
  .cat-acc:last-of-type { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .cat-acc summary { padding: 9px 12px; font-size: 13.5px; font-weight: 600; }
  .cat-acc-body { padding: 0 12px 8px; padding-inline-start: 62px; }

  /* footer */
  .footer { margin-top: 24px; }
  .footer-contact .wrap { flex-direction: column; gap: 12px; padding-block: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; padding-block: 22px 18px; }
  .f-brand, .f-address { grid-column: 1 / -1; }
  .footer-bottom .wrap { flex-direction: column; text-align: center; }
  .info-body { padding: 18px; }
  .contact-grid { gap: 8px; }
  .contact-card { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; row-gap: 0; padding: 12px 14px; align-items: center; }
  .contact-card .fc-icon { grid-row: 1 / 3; margin: 0; }

  .list-head { flex-direction: column; align-items: stretch; }
  .list-tools { justify-content: space-between; }
  .list-title .page-title { font-size: 17px; }
  .cat-banner { border-radius: var(--radius); }
  .card-price .price { font-size: 14.5px; }
  .offers { flex-direction: column; padding: 12px; border-radius: 16px; }
  .offers-intro { flex: none; flex-direction: row; justify-content: space-between; padding: 2px 4px; }
  .offers-intro svg { display: none; }
  .offers-intro h2 { font-size: 15.5px; }
  .offer-more { flex-basis: 120px !important; }

  /* menu button, auth, categories page, cart head */
  .menu-btn { display: grid; }
  .auth-top { height: 60px; padding: 0 14px; }
  .auth-body { padding: 30px 18px 32px; }
  .auth-title { font-size: 20px; }
  .otp-boxes { gap: 8px; }
  .otp-cell { width: 52px; height: 56px; }
  .cats-page { grid-template-columns: 92px minmax(0, 1fr); gap: 0; padding: 0; margin: 0; max-width: none; min-height: calc(100dvh - 140px); }
  .cat-rail-item > span:last-child { overflow-wrap: anywhere; }
  .cat-rail { position: sticky; top: 56px; align-self: start; max-height: calc(100dvh - 130px); overflow-y: auto; border: 0; border-radius: 0; padding: 6px 0; gap: 0; background: var(--soft); border-inline-end: 1px solid var(--line); }
  .cat-rail-item { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; border-radius: 0; font-size: 11.5px; line-height: 1.6; border-inline-start: 3px solid transparent; }
  .cat-rail-item.is-active { background: #fff; border-inline-start-color: var(--teal); }
  .cat-rail-icon { width: 44px; height: 44px; border-radius: 999px; background: #fff; }
  .cat-panel { border: 0; border-radius: 0; padding: 0 14px 12px; background: #fff; min-height: 100%; }
  .page-cats main { background: #fff; }
  .steps { justify-content: center; gap: 6px; font-size: 11.5px; padding-bottom: 12px; }
  .steps li + li::before { width: 18px; }
  .steps span { width: 22px; height: 22px; font-size: 11px; }
  .cart-head .wrap:first-child { padding-block: 10px 4px; }
  .wish { top: 8px; inset-inline-end: 8px; }
  .wish-btn { width: 28px; height: 28px; }
  .wish-btn svg { width: 16px; height: 16px; }
  .state-card { margin: 12px auto; padding: 28px 18px; }

  /* bottom navigation */
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(20, 36, 40, 0.05); }
  .bottom-nav a { position: relative; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav a.is-active { color: var(--teal-dark); }
  .bottom-nav a.is-active svg { stroke-width: 2.2; background: var(--tint); border-radius: 999px; padding: 3px 14px; width: 52px; height: 30px; box-sizing: border-box; }
  .bn-badge { position: absolute; top: 6px; left: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
  .has-bottom-nav { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* footer legal links */
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; color: var(--muted); }
.active-clear { display: inline-flex; align-items: center; gap: 4px; margin-inline: 0 6px; padding-inline-end: 10px; border-inline-end: 1px solid var(--line-strong); }

/* ---------- wordmark (as in the logo: Outfit, cyan cross over the i, Persian name below) ---------- */
.wordmark { --wm: 26px; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: #0d375c; direction: ltr; }
.wm-en { font-family: "Outfit", "Vazirmatn", sans-serif; font-weight: 500; font-size: var(--wm); letter-spacing: -0.035em; line-height: 1; }
.wm-i { position: relative; display: inline-block; }
.wm-i::before { content: ""; position: absolute; left: 50%; top: -0.1em; width: 0.38em; height: 0.38em; transform: translateX(-50%); background: linear-gradient(#1aa9d6, #1aa9d6) center / 100% 30% no-repeat, linear-gradient(#1aa9d6, #1aa9d6) center / 30% 100% no-repeat; border-radius: 0.03em; }
.wm-fa { font-family: "Vazirmatn", sans-serif; font-weight: 700; font-size: calc(var(--wm) * 0.56); line-height: 1.2; margin-top: 0.06em; direction: rtl; }
.wordmark.is-light { color: #fff; }
.logo .wordmark { --wm: 27px; }
.logo { gap: 12px; }
.drawer-head .wordmark { --wm: 22px; }
.f-logo .wordmark { --wm: 24px; }
.auth-brandmark .wordmark { --wm: 21px; }
.auth-aside-mark { display: block; }
.auth-aside-mark .wordmark { --wm: 46px; }
@media (max-width: 640px) { .logo .wordmark { --wm: 22px; } }

/* ---------- full logo lockup (emblem + Delimed + دلی مد, as one image) ---------- */
.header-main { padding-block: 8px; }
.logo-img { height: 72px; width: auto; max-width: none; border-radius: 0; object-fit: contain; }
.drawer-head .logo-img { height: 56px; }
.f-logo img { width: auto; height: 104px; border-radius: 0; }
.auth-brandmark img { width: auto; height: 50px; border-radius: 0; }
.auth-aside-logo { display: inline-grid; place-items: center; align-self: flex-start; padding: 14px 18px; background: #fff; border-radius: 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28); width: auto; height: auto; }
.auth-aside-logo img { height: 150px; width: auto; }
@media (max-width: 640px) {
  .logo-img { height: 56px; }
  .header { top: -66px; }
  .header-main { padding-block: 6px 10px; }
}

/* ---------- login brand column: light, logo sits on the background without a box ---------- */
.auth-aside { background: radial-gradient(90% 70% at 85% 0%, rgba(40, 185, 222, 0.22), transparent 60%), radial-gradient(80% 60% at 10% 100%, rgba(13, 59, 94, 0.10), transparent 60%), linear-gradient(165deg, #f3f9fc, #e1f0f7); color: var(--ink); }
.auth-aside::after { background-image: radial-gradient(rgba(13, 59, 94, 0.08) 1px, transparent 1px); }
.auth-aside-logo { padding: 0; background: none; border-radius: 0; box-shadow: none; }
.auth-aside-logo img { height: 190px; mix-blend-mode: multiply; }
.auth-aside p { color: var(--ink-2); }
.auth-aside li { color: var(--ink); }
.auth-aside li::before { background-color: rgba(11, 120, 166, 0.12); }
.auth-aside-inner { z-index: auto; }
