/* ==========================================================================
   SEQO Store - storefront styles
   One hand-written sheet, no build step. Mobile first; breakpoints at
   640 / 900 / 1200. Brand colour can be overridden from the ERP
   (Website Settings > Primary colour) via --brand on :root.
   ========================================================================== */

:root {
  --brand: #1f2a7a;
  --brand-ink: #ffffff;
  --brand-soft: color-mix(in srgb, var(--brand) 9%, white);
  --brand-dark: color-mix(in srgb, var(--brand) 80%, black);
  --accent: #f26b1d;
  --accent-soft: #fff1e8;
  --sale: #e11d48;
  --sale-soft: #ffe9ee;
  --ok: #0f9d58;
  --ok-soft: #e7f6ee;
  --warn: #b45309;
  --warn-soft: #fff6e5;

  --ink: #10131c;
  --ink-2: #3b4152;
  --muted: #6b7285;
  --line: #e6e8ee;
  --line-2: #f0f1f5;
  --bg: #f5f6f9;
  --card: #ffffff;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 19, 28, .06);
  --shadow: 0 6px 24px -8px rgba(16, 19, 28, .14);
  --shadow-lg: 0 24px 60px -18px rgba(16, 19, 28, .32);

  --container: 1320px;
  --gutter: 16px;
  --header-h: 64px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 24px; --header-h: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* mobile tab bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; }
h2 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
[x-cloak] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand); --bi: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--b); color: var(--bi); font-weight: 700; font-size: .95rem;
  border: 1.5px solid var(--b); white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--b) 70%, transparent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-accent { --b: var(--accent); --bi: #fff; }
.btn-dark { --b: var(--ink); --bi: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-light { --b: #fff; --bi: var(--ink); border-color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span, .label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--sale); }
.error { color: var(--sale); font-size: .8rem; margin-top: 5px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.grid-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Cards / badges ---------- */
.card { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
@media (min-width: 900px) { .card-pad { padding: 28px; } }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.badge-sale { background: var(--sale); color: #fff; }
.badge-accent { background: var(--accent); color: #fff; }
.badge-success { background: var(--ok-soft); color: var(--ok); }
.badge-info { background: var(--brand-soft); color: var(--brand); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--sale-soft); color: var(--sale); }
.badge-muted { background: var(--line-2); color: var(--ink-2); }
.alert { padding: 12px 16px; border-radius: var(--r); font-weight: 600; font-size: .9rem; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-error { background: var(--sale-soft); color: #9f1239; }
.alert-success { background: var(--ok-soft); color: #065f46; }
.alert-info { background: var(--brand-soft); color: var(--brand); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; text-align: center; padding: 8px var(--gutter); }
.announce a { text-decoration: underline; }
.topbar { display: none; background: #fff; border-bottom: 1px solid var(--line-2); font-size: .8rem; color: var(--muted); }
.topbar .container { display: flex; justify-content: space-between; height: 36px; align-items: center; }
.topbar a:hover { color: var(--brand); }
.topbar-links { display: flex; gap: 18px; align-items: center; }
@media (min-width: 900px) { .topbar { display: block; } }

.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line-2); transition: box-shadow .2s; }
.header.is-stuck { box-shadow: 0 8px 24px -16px rgba(16, 19, 28, .35); }
.header-main { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; }
.logo-text { font-weight: 900; font-size: 1.4rem; letter-spacing: -.03em; }
@media (min-width: 900px) { .logo img { height: 44px; } }
.header-search { flex: 1; max-width: 720px; position: relative; display: none; }
@media (min-width: 900px) { .header-search { display: block; margin: 0 24px; } }
.search-box { display: flex; align-items: center; height: 48px; border-radius: 999px; background: var(--bg); border: 1.5px solid transparent; transition: border-color .15s, background .15s, box-shadow .15s; }
.search-box:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-box .icon { margin-left: 16px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; padding: 0 12px; }
.search-box button[type=submit] { height: 38px; margin-right: 5px; padding: 0 18px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: .88rem; }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hdr-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-radius: 999px; font-weight: 600; font-size: .88rem; transition: background .15s; }
.hdr-btn:hover { background: var(--bg); }
.hdr-btn .icon { width: 23px; height: 23px; }
.hdr-btn .lbl { display: none; line-height: 1.15; }
.hdr-btn .lbl small { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }
@media (min-width: 1200px) { .hdr-btn .lbl { display: block; } }
.count { position: absolute; top: 3px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.count:empty, .count[data-zero] { display: none; }
.hide-mobile { display: none !important; }
@media (min-width: 900px) { .hide-mobile { display: inline-flex !important; } .hide-desktop { display: none !important; } }

.mobile-search { padding: 0 var(--gutter) 12px; }
@media (min-width: 900px) { .mobile-search { display: none; } }
.mobile-search .search-box { height: 44px; }

.nav { display: none; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .nav { display: block; } }
.nav .container { display: flex; align-items: center; gap: 4px; height: 50px; }
.nav-scroll { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; overflow: hidden; }
.nav-link { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.nav-link:hover { background: var(--bg); color: var(--ink); }
.nav-link.is-hot { color: var(--sale); }
.nav-right { margin-left: auto; display: flex; gap: 4px; }

/* Mega menu */
.mega-wrap { position: relative; }
.mega-btn { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; margin-right: 8px; }
.mega { position: absolute; top: calc(100% + 6px); left: 0; width: min(1080px, calc(100vw - 48px)); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); display: grid; grid-template-columns: 260px 1fr; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); z-index: 50; }
.mega-wrap:hover .mega, .mega-wrap:focus-within .mega, .mega-wrap.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-deps { background: var(--bg); padding: 10px; max-height: 70vh; overflow: auto; }
.mega-dep { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: .9rem; cursor: pointer; }
.mega-dep:hover, .mega-dep.is-active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.mega-dep small { color: var(--muted); font-weight: 500; }
.mega-panel { padding: 22px 26px; max-height: 70vh; overflow: auto; display: none; }
.mega-panel.is-active { display: block; }
.mega-panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mega-cols { columns: 3 200px; column-gap: 28px; }
.mega-cat { break-inside: avoid; margin-bottom: 18px; }
.mega-cat > a { font-weight: 700; font-size: .92rem; display: block; margin-bottom: 6px; }
.mega-cat > a:hover { color: var(--brand); }
.mega-cat ul { list-style: none; margin: 0; padding: 0; }
.mega-cat li a { display: block; padding: 3px 0; font-size: .86rem; color: var(--muted); }
.mega-cat li a:hover { color: var(--brand); }

/* Search suggestions */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); padding: 8px; z-index: 60; max-height: 70vh; overflow: auto; }
.suggest-group { padding: 6px 8px 2px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); }
.suggest-item:hover, .suggest-item.is-active { background: var(--bg); }
.suggest-item img, .suggest-item .ph { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); flex: none; }
.suggest-item .t { font-weight: 600; font-size: .88rem; line-height: 1.3; }
.suggest-item .p { font-weight: 800; font-size: .85rem; color: var(--brand); }
.suggest-item .p s { color: var(--muted); font-weight: 500; margin-left: 6px; }
.suggest-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bg); font-size: .84rem; font-weight: 600; border: 1px solid transparent; }
.chip:hover { border-color: var(--line); background: #fff; }
.chip small { color: var(--muted); font-weight: 500; }
.chip.is-active { background: var(--brand); color: #fff; }
.chip .icon { width: 14px; height: 14px; }
.suggest-all { display: block; text-align: center; padding: 10px; font-weight: 700; color: var(--brand); border-top: 1px solid var(--line-2); margin-top: 6px; }
.suggest-empty { padding: 18px; text-align: center; color: var(--muted); }

/* Mobile tab bar */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); }
.tabbar .is-active { color: var(--brand); }
.tabbar .count { top: 6px; left: calc(50% + 4px); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Drawers / modal / overlay ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 12, 20, .45); backdrop-filter: blur(2px); z-index: 80; opacity: 0; visibility: hidden; transition: .2s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 90; width: min(420px, 92vw); background: #fff; display: flex; flex-direction: column; transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
.drawer-right { right: 0; transform: translateX(105%); }
.drawer-left { left: 0; transform: translateX(-105%); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.drawer-head h3 { margin: 0; font-size: 1.1rem; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line-2); background: #fff; }
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal-box { position: relative; pointer-events: none; visibility: hidden; width: min(920px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 24px; transform: scale(.97); opacity: 0; transition: .2s var(--ease); }
.modal.is-open .modal-box { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
body.no-scroll { overflow: hidden; }

/* Mobile menu */
.mnav-section { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.mnav-section:last-child { border-bottom: 0; }
.mnav-link { display: flex; align-items: center; gap: 12px; padding: 10px 4px; font-weight: 600; }
.mnav details { border-bottom: 1px solid var(--line-2); }
.mnav summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; font-weight: 700; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .icon { transition: transform .2s; }
.mnav details[open] > summary .icon { transform: rotate(180deg); }
.mnav .sub { padding: 0 4px 12px 12px; display: grid; gap: 2px; }
.mnav .sub a { padding: 7px 0; color: var(--ink-2); font-size: .92rem; }

/* Toasts */
.toasts { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); bottom: 80px; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
@media (min-width: 900px) { .toasts { left: auto; right: 24px; transform: none; bottom: 24px; } }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: toast-in .25s var(--ease); }
.toast.is-error { background: #9f1239; }
.toast a { margin-left: auto; color: #fff; text-decoration: underline; white-space: nowrap; }
.toast.is-out { animation: toast-out .2s forwards; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(8px); opacity: 0; } }

/* ---------- Home ---------- */
.section { padding: 22px 0; }
@media (min-width: 900px) { .section { padding: 34px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.section-head .more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .88rem; color: var(--brand); white-space: nowrap; }

.hero { padding-top: 16px; }
.hero-grid { display: grid; gap: 14px; }
@media (min-width: 1200px) { .hero-grid.has-side { grid-template-columns: 1fr 320px; } }
.slider { position: relative; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(120deg, #eef1fb, #f9fafc 55%, #fdf2ea); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1fr; align-items: center; min-height: 300px; padding: 28px 24px 44px; position: relative; }
.slide.has-bg { background-size: cover; background-position: center; }
@media (min-width: 640px) { .slide { grid-template-columns: 1fr 1fr; padding: 36px 48px; min-height: 380px; } }
@media (min-width: 1200px) { .slide { min-height: 440px; padding: 40px 64px; } }
.slide-copy { position: relative; z-index: 1; }
.slide-eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.slide h2 { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.1rem); line-height: 1.05; margin-bottom: 12px; font-weight: 800; }
.slide p { color: var(--ink-2); max-width: 44ch; margin-bottom: 20px; }
.slide.is-light h2, .slide.is-light p, .slide.is-light .slide-eyebrow { color: #fff; }
.slide-media { display: flex; justify-content: center; margin-top: 16px; }
.slide-media img { max-height: 340px; width: auto; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(16, 19, 28, .18)); }
@media (min-width: 640px) { .slide-media { margin-top: 0; } }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.slider-dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(16, 19, 28, .2); transition: .25s; }
.slider-dots button.is-active { width: 26px; background: var(--ink); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: none; place-items: center; }
.slider-nav.prev { left: 14px; } .slider-nav.next { right: 14px; }
@media (min-width: 900px) { .slider-nav { display: grid; } }
.hero-side { display: none; gap: 14px; }
@media (min-width: 1200px) { .hero-side { display: grid; grid-template-rows: 1fr 1fr; } }

.promo { position: relative; display: flex; align-items: flex-end; min-height: 180px; padding: 22px; border-radius: var(--r-lg); overflow: hidden; background: var(--brand-soft) center/cover no-repeat; isolation: isolate; transition: transform .25s var(--ease); }
.promo:hover { transform: translateY(-3px); }
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 12, 20, .55)); z-index: -1; }
.promo.no-img::before { display: none; }
.promo .t { font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1.2; }
.promo .s { color: rgba(255, 255, 255, .9); font-size: .88rem; }
.promo.no-img .t { color: var(--ink); } .promo.no-img .s { color: var(--ink-2); }
.promo .cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: .85rem; color: #fff; }
.promo.no-img .cta { color: var(--brand); }
.promos { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .promos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .promos { grid-template-columns: repeat(3, 1fr); } }
.wide-banner { display: block; border-radius: var(--r-xl); overflow: hidden; }
.wide-banner img { width: 100%; height: auto; }

.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.perk { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border-radius: var(--r); border: 1px solid var(--line-2); }
.perk .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.perk b { display: block; font-size: .88rem; line-height: 1.25; }
.perk span { font-size: .78rem; color: var(--muted); line-height: 1.3; display: block; }

.cat-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
@media (min-width: 900px) { .cat-rail { grid-auto-columns: 132px; } }
.cat-tile { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 14px 8px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); transition: .2s var(--ease); }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile .ci { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 1.2rem; overflow: hidden; }
.cat-tile .ci img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile b { font-size: .82rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile small { font-size: .72rem; color: var(--muted); }

.brand-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .brand-rail { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .brand-rail { grid-template-columns: repeat(6, 1fr); } }
.brand-tile { display: grid; place-items: center; height: 76px; padding: 12px; background: #fff; border-radius: var(--r); border: 1px solid var(--line-2); font-weight: 800; letter-spacing: .02em; color: var(--ink-2); text-align: center; transition: .2s; font-size: .9rem; }
.brand-tile img { max-height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .2s; }
.brand-tile:hover { border-color: var(--brand); color: var(--brand); }
.brand-tile:hover img { filter: none; opacity: 1; }

/* Carousel row */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; margin: -4px -2px 0; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .carousel-track { grid-auto-columns: calc((100% - 24px) / 3); } }
@media (min-width: 900px) { .carousel-track { grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; } }
@media (min-width: 1200px) { .carousel-track { grid-auto-columns: calc((100% - 80px) / 6); } }
.carousel-btns { display: none; gap: 6px; }
@media (min-width: 900px) { .carousel-btns { display: flex; } }
.carousel-btns button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; transition: .15s; }
.carousel-btns button:hover:not([disabled]) { border-color: var(--ink); }
.carousel-btns button[disabled] { opacity: .35; cursor: default; }

/* ---------- Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line-2); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; padding: 14px; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s, transform .4s var(--ease); }
.pcard-media .img2 { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); opacity: 0; }
.pcard:hover .pcard-media .img2 { opacity: 1; }
.pcard:hover .pcard-media .img2 ~ .img1, .pcard:hover .pcard-media:has(.img2) .img1 { opacity: 0; }
.pcard:hover .pcard-media img:only-child { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: #c5c9d6; background: linear-gradient(135deg, #f7f8fb, #eef0f5); border-radius: var(--r); }
.ph .icon { width: 40%; height: 40%; stroke-width: 1.2; }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: grid; gap: 4px; justify-items: start; z-index: 1; }
.pcard-wish { position: absolute; top: 8px; right: 8px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: .15s; }
.pcard-wish:hover { color: var(--sale); transform: scale(1.06); }
.pcard-wish.is-on { color: var(--sale); }
.pcard-wish.is-on .icon { fill: currentColor; }
.pcard-quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; height: 36px; border-radius: 999px; background: rgba(16, 19, 28, .86); color: #fff; font-size: .8rem; font-weight: 700; opacity: 0; transform: translateY(6px); transition: .2s var(--ease); display: none; }
@media (hover: hover) and (min-width: 900px) { .pcard-quick { display: block; } .pcard:hover .pcard-quick { opacity: 1; transform: none; } }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; border-top: 1px solid var(--line-2); }
.pcard-brand { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pcard-title { font-size: .9rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-title:hover { color: var(--brand); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.price b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.price s { color: var(--muted); font-size: .8rem; }
.price .save { font-size: .74rem; font-weight: 800; color: var(--sale); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.stock { font-size: .74rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); } .stock.out { color: var(--muted); } .stock.low { color: var(--warn); }
.add-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; transition: .15s; }
.add-btn:hover { background: var(--brand-dark); transform: scale(1.06); }
.add-btn[disabled] { background: var(--line); color: var(--muted); }
.add-btn.is-loading .icon { animation: spin .7s linear infinite; }
.countdown-mini { font-size: .72rem; font-weight: 700; color: var(--accent); display: inline-flex; gap: 4px; align-items: center; }

/* ---------- Breadcrumbs / page head ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); padding: 14px 0 6px; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }
.page-head { padding: 6px 0 16px; }
.page-head h1 { margin-bottom: 4px; }

/* ---------- Shop ---------- */
.shop { display: grid; gap: 24px; padding-bottom: 40px; }
@media (min-width: 900px) { .shop { grid-template-columns: 260px 1fr; align-items: start; } }
.filters { display: none; }
@media (min-width: 900px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 66px); max-height: calc(100vh - var(--header-h) - 86px); overflow: auto; padding-right: 4px; } }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:first-child { padding-top: 0; }
.fgroup h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.flist { display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.flist .check { padding: 5px 2px; font-size: .9rem; }
.flist .check small { margin-left: auto; color: var(--muted); }
.flist a { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 8px; font-size: .9rem; }
.flist a:hover { background: #fff; }
.flist a small { color: var(--muted); }
.flist a.is-active { background: var(--brand); color: #fff; }
.flist a.is-active small { color: rgba(255, 255, 255, .8); }
.fsearch { height: 38px; margin-bottom: 8px; font-size: .88rem; }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-inputs .input { height: 40px; font-size: .88rem; padding: 0 10px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar .count-text { color: var(--muted); font-size: .88rem; }
.toolbar .select { width: auto; height: 40px; padding: 0 36px 0 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310131c' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.toolbar .end { margin-left: auto; display: flex; gap: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters .chip { background: #fff; border-color: var(--line); }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 8px; }
.progress { width: 220px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 56px 20px; }
.empty .ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.empty .ic .icon { width: 34px; height: 34px; }
.empty p { color: var(--muted); max-width: 42ch; margin: 0 auto 20px; }
.entity-hero { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--brand-soft), #fff); margin-bottom: 18px; border: 1px solid var(--line-2); }
.entity-hero img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; border: 1px solid var(--line-2); }
.entity-hero h1 { margin: 0; }
.sub-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.sub-chips .chip { background: #fff; border-color: var(--line); flex: none; }
.sub-chips .chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 24px; padding-bottom: 24px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.gallery { display: grid; gap: 12px; }
@media (min-width: 900px) { .gallery { position: sticky; top: calc(var(--header-h) + 66px); } .gallery:has(.thumbs) { grid-template-columns: 76px 1fr; } }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line-2); overflow: hidden; cursor: zoom-in; }
@media (min-width: 900px) { .gallery-main { order: 2; } }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 28px; transition: transform .2s; }
.gallery-main .ph { border-radius: 0; }
.gallery-main.is-zoom img { transform: scale(1.9); }
.gallery-main .pcard-badges { top: 16px; left: 16px; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; }
@media (min-width: 900px) { .thumbs { order: 1; flex-direction: column; max-height: 600px; } }
.thumbs button { width: 72px; height: 72px; flex: none; border-radius: 12px; background: #fff; border: 2px solid var(--line-2); padding: 6px; }
.thumbs button.is-active { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info .brand-link { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.pdp-info h1 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin: 6px 0 10px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.price-block { padding: 18px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); margin-bottom: 16px; }
.price-block .now { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price-block .was { color: var(--muted); font-size: 1rem; margin-left: 8px; }
.price-block .saving { display: inline-flex; margin-top: 8px; gap: 8px; align-items: center; font-weight: 700; font-size: .88rem; color: var(--sale); }
.deal-timer { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--accent-soft); color: #9a3412; font-weight: 700; font-size: .85rem; flex-wrap: wrap; }
.deal-timer .t { display: flex; gap: 4px; }
.deal-timer .t span { background: #fff; border-radius: 6px; padding: 2px 7px; min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.buy-row .btn { flex: 1; min-width: 150px; }
.qty { display: inline-flex; align-items: center; height: 46px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { color: var(--brand); }
.qty input { width: 40px; text-align: center; border: 0; outline: none; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.qty-sm { height: 36px; } .qty.qty-sm button { width: 32px; } .qty.qty-sm input { width: 32px; font-size: .88rem; }
.assure { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--bg); margin: 16px 0; }
.assure div { display: flex; gap: 12px; align-items: center; font-size: .88rem; }
.assure .icon { color: var(--brand); }
.icon-actions { display: flex; gap: 8px; }
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 22px; overflow-x: auto; margin-bottom: 18px; }
.tabs button { padding: 12px 0; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs button.is-active { color: var(--ink); border-color: var(--brand); }
.spec { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec th, .spec td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec th { width: 36%; color: var(--muted); font-weight: 600; background: var(--bg); }
.prose { line-height: 1.75; color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose a { color: var(--brand); text-decoration: underline; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 44; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; transform: translateY(120%); transition: transform .25s var(--ease); }
.sticky-buy.is-shown { transform: none; }
.sticky-buy .p b { display: block; font-weight: 800; }
.sticky-buy .p small { color: var(--muted); }
@media (min-width: 900px) { .sticky-buy { bottom: 0; } .sticky-buy .container-inner { max-width: var(--container); margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 16px; } }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; gap: 20px; padding-bottom: 40px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 28px; } }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.cart-line:last-child { border-bottom: 0; }
@media (min-width: 640px) { .cart-line { grid-template-columns: 104px 1fr auto; align-items: center; } }
.cart-line .thumb { width: 84px; height: 84px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; padding: 6px; }
@media (min-width: 640px) { .cart-line .thumb { width: 104px; height: 104px; } }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line .name { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line .name:hover { color: var(--brand); }
.cart-line .controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cart-line .line-total { grid-column: 2; text-align: left; }
@media (min-width: 640px) { .cart-line .line-total { grid-column: 3; text-align: right; } }
.cart-line .line-total b { font-size: 1.05rem; }
.cart-line .remove { color: var(--muted); font-size: .82rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.cart-line .remove:hover { color: var(--sale); }
.order-layout { display: grid; gap: 16px; }
@media (min-width: 1200px) { .order-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.summary { position: sticky; top: calc(var(--header-h) + 66px); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .92rem; }
.summary-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.1rem; font-weight: 800; }
.summary-row .neg { color: var(--ok); font-weight: 700; }
.ship-meter { padding: 12px 14px; border-radius: var(--r); background: var(--brand-soft); font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.ship-meter .bar { height: 6px; border-radius: 99px; background: #fff; margin-top: 8px; overflow: hidden; }
.ship-meter .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s var(--ease); }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-form .input { height: 44px; text-transform: uppercase; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--r); background: var(--ok-soft); color: #065f46; font-weight: 700; font-size: .88rem; margin: 14px 0; }
.mini-line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.mini-line .thumb { width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--line-2); padding: 4px; background: #fff; }
.mini-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.mini-line .name { font-size: .88rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.checkout { display: grid; gap: 20px; padding-bottom: 40px; }
@media (min-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; gap: 28px; } }
.step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-title .n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.step-title h2 { margin: 0; font-size: 1.15rem; }
.pay-option { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); cursor: pointer; margin-bottom: 10px; transition: .15s; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-option input { accent-color: var(--brand); margin-top: 3px; }
.pay-option b { display: block; }
.pay-option span { font-size: .85rem; color: var(--muted); }
.addr-pick { display: grid; gap: 10px; margin-bottom: 16px; }
.addr-card { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); cursor: pointer; font-size: .88rem; }
.addr-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.addr-card input { accent-color: var(--brand); margin-top: 3px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); margin-top: 12px; }

.thanks { max-width: 760px; margin: 0 auto; padding: 32px 0 48px; }
.thanks-hero { text-align: center; margin-bottom: 24px; }
.thanks-hero .ok { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: pop .5s var(--ease); }
.thanks-hero .ok .icon { width: 40px; height: 40px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.order-no { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px dashed var(--line); font-weight: 800; letter-spacing: .04em; }

/* ---------- Account ---------- */
.account { display: grid; gap: 20px; padding: 8px 0 40px; }
@media (min-width: 900px) { .account { grid-template-columns: 260px 1fr; align-items: start; gap: 28px; } }
.acc-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 900px) { .acc-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 66px); } }
.acc-user { display: none; }
@media (min-width: 900px) { .acc-user { display: flex; gap: 12px; align-items: center; padding: 6px 4px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); } }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.acc-nav a, .acc-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; background: #fff; border: 1px solid var(--line-2); width: auto; }
@media (min-width: 900px) { .acc-nav a, .acc-nav button { border-radius: var(--r); border-color: transparent; background: transparent; width: 100%; } }
.acc-nav a:hover, .acc-nav button:hover { background: #fff; }
.acc-nav a.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); }
.stat small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.stat b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.order-card { display: block; padding: 16px 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); margin-bottom: 12px; transition: .2s; }
.order-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.order-card .thumbs-row { display: flex; gap: 6px; margin-top: 12px; }
.order-card .thumbs-row span { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line-2); padding: 4px; background: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.order-card .thumbs-row img { width: 100%; height: 100%; object-fit: contain; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 8px 0 4px; }
.tl-step { position: relative; text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding-top: 38px; }
.tl-step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.tl-step:first-child::before { display: none; }
.tl-step.done::before { background: var(--brand); }
.tl-step .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; z-index: 1; }
.tl-step.done { color: var(--ink); }
.tl-step.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.tl-step.current .dot { box-shadow: 0 0 0 6px var(--brand-soft); }
.tl-step .dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.tl-step small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); margin-top: 2px; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { position: relative; padding: 0 0 14px 22px; font-size: .88rem; }
.history li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.history li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.history li:last-child::after { display: none; }
.table-lines { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-lines td { padding: 12px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table-lines .thumb { width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line-2); padding: 4px; background: #fff; }
.table-lines .thumb img { width: 100%; height: 100%; object-fit: contain; }
.addr-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .addr-grid { grid-template-columns: 1fr 1fr; } }
.addr-box { padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); font-size: .9rem; position: relative; }
.addr-box.is-default { border-color: var(--brand); }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - 300px); display: grid; place-items: center; padding: 32px 0 48px; }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { font-size: 1.6rem; }
.auth-alt { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }

/* ---------- Footer ---------- */
.newsletter { background: var(--brand); color: #fff; border-radius: var(--r-xl); padding: 26px; display: grid; gap: 16px; align-items: center; margin: 24px 0 0; position: relative; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr auto; padding: 34px 40px; } }
.newsletter h3 { font-size: 1.35rem; margin-bottom: 4px; }
.newsletter p { margin: 0; opacity: .85; }
.footer { background: #0e1220; color: #c9cdd8; margin-top: 40px; padding: 44px 0 24px; font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid > :first-child { grid-column: auto; } }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer .logo-foot img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer .contact-line { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .8rem; color: #8a90a2; }
.pay-chips { display: flex; gap: 6px; }
.pay-chips span { padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); font-weight: 700; font-size: .72rem; color: #dfe2ea; }
.wa-fab { position: fixed; right: 12px; bottom: 76px; z-index: 44; width: 46px; height: 46px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 24px; height: 24px; fill: #fff; }
@media (min-width: 900px) { .wa-fab { width: 54px; height: 54px; right: 20px; } .wa-fab svg { width: 28px; height: 28px; } }
@media (min-width: 900px) { .wa-fab { bottom: 24px; } }

/* ---------- Ratings & reviews ---------- */
.stars { position: relative; display: inline-block; color: #d6d9e2; font-size: .85rem; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.stars-on { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #f5a524; }
.stars.lg { font-size: 1.3rem; }
.pcard-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; margin: -2px 0 10px; }
.rating-line:hover b { color: var(--brand); }
.reviews { display: grid; gap: 16px; }
@media (min-width: 900px) { .reviews { grid-template-columns: 320px 1fr; align-items: start; } .review-summary { position: sticky; top: calc(var(--header-h) + 66px); } }
.review-summary .avg { font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.dist { display: grid; gap: 6px; margin-top: 14px; }
.dist-row { display: grid; grid-template-columns: 34px 1fr 26px; gap: 8px; align-items: center; font-size: .8rem; font-weight: 600; }
.dist-row .bar { height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.dist-row .bar i { display: block; height: 100%; background: #f5a524; border-radius: 99px; }
.review-list { display: grid; gap: 12px; align-content: start; }
.review h3 { font-size: 1rem; }
.review-reply { margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--brand-soft); font-size: .88rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; color: #d6d9e2; cursor: pointer; transition: transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a524; }
.star-input label:active { transform: scale(.9); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }

/* Skeleton shimmer while loading */
.skeleton { background: linear-gradient(90deg, #eef0f4 25%, #f7f8fa 37%, #eef0f4 63%); background-size: 400% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
