/* ==========================================================================
   NEXUS COMMERCE - Storefront
   Design tokens are injected inline from admin settings; everything else
   derives from them so the whole store re-skins from the settings page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --primary:        #4f46e5;
  --secondary:      #0ea5e9;
  --accent:         #f59e0b;
  --dark:           #0f172a;

  --primary-hover:  color-mix(in srgb, var(--primary) 86%, #000);
  --primary-soft:   color-mix(in srgb, var(--primary) 10%, #fff);
  --primary-border: color-mix(in srgb, var(--primary) 26%, #fff);

  --ink:            #0f172a;
  --ink-2:          #334155;
  --muted:          #64748b;
  --muted-2:        #94a3b8;
  --line:           #e2e8f0;
  --line-soft:      #f1f5f9;
  --bg:             #ffffff;
  --bg-soft:        #f8fafc;
  --bg-sunken:      #f1f5f9;

  --success:        #059669;
  --danger:         #dc2626;
  --warning:        #d97706;
  --info:           #0284c7;

  --radius:         14px;
  --radius-sm:      9px;
  --radius-lg:      22px;
  --radius-pill:    999px;

  --shadow-xs:      0 1px 2px rgba(15,23,42,.05);
  --shadow-sm:      0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
  --shadow:         0 4px 14px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.04);
  --shadow-md:      0 10px 30px -8px rgba(15,23,42,.14), 0 4px 10px -4px rgba(15,23,42,.06);
  --shadow-lg:      0 24px 56px -18px rgba(15,23,42,.24), 0 8px 20px -10px rgba(15,23,42,.10);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --gutter: 20px;
  --header-h: 72px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Corner style variants set by the admin "radius_style" setting */
:root[data-radius="sharp"]  { --radius: 3px; --radius-sm: 2px; --radius-lg: 4px; --radius-pill: 4px; }
:root[data-radius="pill"]   { --radius: 22px; --radius-sm: 14px; --radius-lg: 32px; }

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* Icons sit inside running text, so they must stay inline. Flex containers
   blockify their children anyway, so buttons and badges are unaffected. */
.icon { display: inline-block; vertical-align: -.125em; flex: none; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(30px, 4.6vw, 46px); }
h2 { font-size: clamp(23px, 3vw, 33px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; }

p { text-wrap: pretty; }

a { color: var(--primary); text-decoration: none; transition: color .16s var(--ease); }
a:hover { color: var(--primary-hover); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

ul, ol { padding-left: 1.15rem; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--primary); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow { max-width: 900px; }

.section { padding-block: clamp(44px, 6vw, 76px); }
.section-sm { padding-block: clamp(30px, 4vw, 48px); }
.section-soft { background: var(--bg-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: clamp(22px, 3vw, 36px);
  flex-wrap: wrap;
}

.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 9px;
}

.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin-top: 7px; max-width: 60ch; font-size: 15px; }

.section-head .link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 650; font-size: 14.5px; white-space: nowrap;
}
.section-head .link-more svg { transition: transform .2s var(--ease); }
.section-head .link-more:hover svg { transform: translateX(3px); }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; pointer-events: none; }
.btn svg { flex: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.1), 0 6px 18px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 3px 6px rgba(15,23,42,.12), 0 12px 26px -10px color-mix(in srgb, var(--primary) 80%, transparent); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--bg-soft); }

.btn-ghost { background: var(--bg-sunken); color: var(--ink); }
.btn-ghost:hover { background: var(--line); color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--primary); }

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb855; color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-lg { padding: 14px 28px; font-size: 15.5px; border-radius: var(--radius); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { display: flex; width: 100%; }

.btn-icon { padding: 10px; border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   5. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: 16px; }

.label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 6px;
}
.label .req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.input::placeholder, .textarea::placeholder { color: var(--muted-2); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--primary) 15%, transparent);
}

.input.is-invalid, .select.is-invalid, .textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--danger) 13%, transparent);
}

.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}

.field-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; font-weight: 500; }
.field-hint  { color: var(--muted); font-size: 12.5px; margin-top: 5px; }

.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; cursor: pointer;
}
.check-row input[type=checkbox], .check-row input[type=radio] {
  width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--primary); cursor: pointer;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   6. Badges, alerts, misc
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3.5px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  line-height: 1.4;
}
.badge-primary   { background: var(--primary-soft); color: var(--primary); }
.badge-success   { background: #ecfdf5; color: var(--success); }
.badge-danger    { background: #fef2f2; color: var(--danger); }
.badge-warning   { background: #fffbeb; color: var(--warning); }
.badge-info      { background: #f0f9ff; color: var(--info); }
.badge-secondary { background: var(--bg-sunken); color: var(--muted); }

.alert {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  position: relative;
}
.alert svg { flex: none; margin-top: 1px; }
.alert span { flex: 1; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info    { background: #f0f9ff; border-color: #bae6fd; color: #075985; }
.alert-close   { font-size: 21px; line-height: 1; opacity: .5; padding: 0 2px; color: inherit; }
.alert-close:hover { opacity: 1; }

.stars { display: inline-flex; gap: 1.5px; }
.stars .star svg { fill: none; stroke: #cbd5e1; }
.stars .star-full svg { fill: var(--accent); stroke: var(--accent); }
.stars .star-half svg { fill: url(#half); stroke: var(--accent); }

.divider { height: 1px; background: var(--line); margin-block: 20px; border: 0; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted); padding-block: 16px;
  list-style: none; margin: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 7px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--dark);
  color: #cbd5e1;
  font-size: 12.8px;
  position: relative;
  z-index: 60;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; padding-block: 7px;
}
.topbar-msg { display: flex; align-items: center; gap: 8px; }
.topbar-msg a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { color: #cbd5e1; display: inline-flex; align-items: center; gap: 6px; }
.topbar-links a:hover { color: #fff; }
@media (max-width: 860px) {
  .topbar-links { display: none; }
  .topbar-inner { justify-content: center; text-align: center; }
}

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo img { max-height: 46px; width: auto; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 80%, transparent);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 18.5px; font-weight: 750; color: var(--ink); letter-spacing: -.025em; }
.logo-text small { font-size: 11px; color: var(--muted); font-weight: 500; }
@media (max-width: 500px) { .logo-text small { display: none; } }

/* Search */
.header-search { flex: 1; max-width: 560px; position: relative; }
.header-search form { position: relative; display: flex; }
.header-search input {
  width: 100%; padding: 10.5px 44px 10.5px 40px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--bg-soft); font-size: 14.5px;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.header-search input:focus {
  outline: none; background: #fff; border-color: var(--primary);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--primary) 13%, transparent);
}
.header-search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); pointer-events: none;
}
.header-search .search-go {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  transition: background .16s;
}
.header-search .search-go:hover { background: var(--primary-hover); }
@media (max-width: 900px) { .header-search { display: none; } }

/* Live suggestions */
.search-suggest {
  position: absolute; top: calc(100% + 9px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 70;
  max-height: 440px; overflow-y: auto;
}
.search-suggest:empty { display: none; }
.suggest-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  transition: background .12s; color: var(--ink-2);
}
.suggest-item:hover, .suggest-item.active { background: var(--bg-soft); }
.suggest-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg-sunken); }
.suggest-item .s-name { font-size: 14px; font-weight: 550; color: var(--ink); line-height: 1.35; }
.suggest-item .s-cat { font-size: 12px; color: var(--muted); }
.suggest-item .s-price { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--primary); white-space: nowrap; }
.suggest-empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.suggest-all { display: block; padding: 11px; text-align: center; font-size: 13.5px; font-weight: 650; background: var(--bg-soft); border-top: 1px solid var(--line); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }

.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.icon-btn:hover { background: var(--bg-sunken); color: var(--primary); }

.icon-btn .count {
  position: absolute; top: 3px; right: 2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px;
  background: var(--primary); color: #fff;
  font-size: 10.5px; font-weight: 750;
  display: grid; place-items: center;
  border: 2px solid #fff;
  line-height: 1;
}
.icon-btn .count.is-zero { display: none; }
.icon-btn.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.16); } }

.btn-menu { display: none; }
@media (max-width: 1024px) { .btn-menu { display: grid; } }

/* --------------------------------------------------------------------------
   8. Navigation
   -------------------------------------------------------------------------- */
.nav {
  border-top: 1px solid var(--line-soft);
  background: #fff;
  position: relative;
  z-index: 40;
}
@media (max-width: 1024px) { .nav { display: none; } }

.nav-list {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 13px 14px;
  font-size: 14.5px; font-weight: 550;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.active {
  color: var(--primary); border-bottom-color: var(--primary);
}
.nav-link.highlight { color: var(--danger); font-weight: 650; }
.nav-link .chev { transition: transform .2s var(--ease); }
.nav-item:hover .chev { transform: rotate(180deg); }

.nav-all {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; margin-right: 8px;
  background: var(--primary); color: #fff;
  font-size: 14.5px; font-weight: 650;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.nav-all:hover { background: var(--primary-hover); color: #fff; }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  list-style: none; margin: 0;
  z-index: 45;
}
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink-2);
  transition: background .13s, color .13s;
}
.dropdown a:hover { background: var(--primary-soft); color: var(--primary); }
.dropdown a svg { color: var(--muted-2); }
.dropdown a:hover svg { color: var(--primary); }

/* Mega menu */
.mega {
  position: absolute; top: 100%; left: 0;
  width: min(920px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 45;
}
.nav-item:hover > .mega, .nav-item:focus-within > .mega {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 28px; }
.mega-col h5 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin-bottom: 11px; font-weight: 700;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.mega-col a {
  display: block; padding: 5px 0; font-size: 14px; color: var(--ink-2);
  transition: color .13s, padding-left .13s;
}
.mega-col a:hover { color: var(--primary); padding-left: 5px; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s;
  z-index: 90;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: min(370px, 88vw);
  background: #fff;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform .32s var(--ease-out);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer.drawer-right { left: auto; right: 0; transform: translateX(100%); width: min(430px, 92vw); }
.drawer.drawer-right.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer-head h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.drawer-foot { padding: 16px 18px; border-top: 1px solid var(--line); flex: none; background: var(--bg-soft); }

.drawer-search { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.drawer-search .input { border-radius: var(--radius-pill); }

.m-nav { list-style: none; margin: 0; padding: 8px; }
.m-nav > li { border-bottom: 1px solid var(--line-soft); }
.m-nav > li:last-child { border-bottom: 0; }
.m-nav a, .m-nav button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 13px 12px; font-size: 15px; font-weight: 550; color: var(--ink);
  text-align: left; border-radius: var(--radius-sm);
}
.m-nav a:hover { background: var(--bg-soft); color: var(--primary); }
.m-nav .sub { list-style: none; margin: 0; padding: 0 0 8px 22px; display: none; }
.m-nav .sub.open { display: block; }
.m-nav .sub a { padding: 9px 12px; font-size: 14px; font-weight: 450; color: var(--ink-2); }
.m-nav .toggle-sub { margin-left: auto; padding: 4px; color: var(--muted); transition: transform .2s; }
.m-nav .toggle-sub.open { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--dark); }
.hero-track { display: flex; transition: transform .6s var(--ease-out); }
.hero-slide {
  min-width: 100%;
  position: relative;
  display: grid; align-items: center;
  min-height: clamp(400px, 52vw, 580px);
  padding-block: 56px;
  background-size: cover; background-position: center;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(2,6,23,.9) 0%, rgba(2,6,23,.62) 42%, rgba(2,6,23,.22) 100%);
}
.hero-slide.no-image::after {
  background: radial-gradient(900px 520px at 12% 10%, color-mix(in srgb, var(--primary) 62%, transparent), transparent 62%),
              radial-gradient(760px 480px at 88% 88%, color-mix(in srgb, var(--secondary) 48%, transparent), transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; color: #fff; }
.hero-slide[data-align="center"] .hero-content { margin-inline: auto; text-align: center; }
.hero-slide[data-align="right"]  .hero-content { margin-left: auto; text-align: right; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  font-size: 11.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 16px; letter-spacing: -.03em; }
.hero p { color: rgba(255,255,255,.82); font-size: clamp(15px, 1.6vw, 17.5px); margin-bottom: 30px; max-width: 52ch; }
.hero-slide[data-align="center"] .hero p { margin-inline: auto; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-slide[data-align="center"] .hero-btns { justify-content: center; }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
  color: #fff; display: grid; place-items: center; z-index: 3;
  transition: background .18s, transform .18s;
}
.hero-nav:hover { background: rgba(255,255,255,.28); }
.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }
@media (max-width: 700px) { .hero-nav { display: none; } }

/* Keep slide text clear of the arrows wherever they are shown */
@media (min-width: 701px) {
  .hero-slide .container { padding-inline: 80px; }
}

.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: rgba(255,255,255,.42); transition: all .28s var(--ease);
}
.hero-dot.active { width: 30px; background: #fff; }

/* --------------------------------------------------------------------------
   10. USP strip
   -------------------------------------------------------------------------- */
.usp {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: -34px; position: relative; z-index: 5;
  box-shadow: var(--shadow-md);
}
.usp-item {
  background: #fff; padding: 22px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: background .18s var(--ease);
}
.usp-item:hover { background: var(--bg-soft); }
.usp-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
}
.usp-item b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 650; line-height: 1.35; }
.usp-item span { font-size: 12.8px; color: var(--muted); }
@media (max-width: 980px) { .usp { grid-template-columns: repeat(2, 1fr); margin-top: -20px; } }
@media (max-width: 520px) {
  .usp { grid-template-columns: 1fr; margin-top: 24px; }
  .usp-item { padding: 16px 18px; }
}

/* --------------------------------------------------------------------------
   11. Category cards
   -------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 16px;
}
.cat-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  padding: 26px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease), border-color .22s var(--ease);
  overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--primary-soft), transparent 62%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-border); }
.cat-card:hover::before { opacity: 1; }
.cat-card > * { position: relative; z-index: 1; }

.cat-thumb {
  width: 76px; height: 76px; border-radius: 20px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--secondary) 11%, #fff));
  color: var(--primary);
  transition: transform .28s var(--ease-out);
}
.cat-card:hover .cat-thumb { transform: scale(1.07) rotate(-3deg); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-card b { font-size: 14.8px; color: var(--ink); font-weight: 650; line-height: 1.3; }
.cat-card span { font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Product card
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 22px 20px;
}
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(min(var(--cols,4), 4), minmax(0,1fr)); } }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 12px; } }

.pcard {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .24s var(--ease-out), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }

.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-sunken);
  display: block;
}
.pcard-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease-out), opacity .3s var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.07); }
.pcard-media img.img-alt {
  position: absolute; inset: 0; opacity: 0;
}
.pcard:hover .pcard-media img.img-alt { opacity: 1; }

.pcard-badges {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.pbadge {
  padding: 4px 9px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 750; color: #fff;
  letter-spacing: .01em; line-height: 1.45;
  box-shadow: 0 2px 8px rgba(15,23,42,.16);
}
.pbadge-sale { background: var(--danger); }
.pbadge-new  { background: var(--success); }
.pbadge-out  { background: #475569; }

.pcard-actions {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; flex-direction: column; gap: 7px;
  opacity: 0; transform: translateX(10px);
  transition: opacity .24s var(--ease), transform .24s var(--ease-out);
}
.pcard:hover .pcard-actions { opacity: 1; transform: translateX(0); }
@media (hover: none) { .pcard-actions { opacity: 1; transform: none; } }

.pcard-action {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: background .16s, color .16s, transform .16s;
}
.pcard-action:hover { background: var(--primary); color: #fff; transform: scale(1.08); }
.pcard-action.is-active { background: var(--danger); color: #fff; }
.pcard-action.is-active svg { fill: currentColor; }

.pcard-cart {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  opacity: 0; transform: translateY(12px);
  transition: opacity .26s var(--ease), transform .26s var(--ease-out);
}
.pcard:hover .pcard-cart { opacity: 1; transform: translateY(0); }
@media (hover: none) { .pcard-cart { position: static; opacity: 1; transform: none; margin: 0 12px 12px; } }

.pcard-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.pcard-cat { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pcard-title {
  font-size: 14.6px; font-weight: 600; color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2; overflow: hidden;
}
.pcard-title:hover { color: var(--primary); }
.pcard-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

.pcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price-now { font-size: 17px; font-weight: 750; color: var(--ink); letter-spacing: -.02em; }
.price-was { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.price-off { font-size: 11.5px; font-weight: 750; color: var(--danger); background: #fef2f2; padding: 2px 7px; border-radius: var(--radius-pill); }

.pcard-stock { font-size: 12px; display: flex; align-items: center; gap: 5px; }
.pcard-stock.in  { color: var(--success); }
.pcard-stock.low { color: var(--warning); }
.pcard-stock.out { color: var(--danger); }
.pcard-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* List layout on the shop page */
.product-grid.is-list { grid-template-columns: 1fr; gap: 14px; }
.product-grid.is-list .pcard { flex-direction: row; }
.product-grid.is-list .pcard-media { width: 210px; flex: none; aspect-ratio: 1; }
.product-grid.is-list .pcard-body { padding: 18px 20px; }
.product-grid.is-list .pcard-cart { position: static; opacity: 1; transform: none; margin-top: 12px; max-width: 220px; }
.pcard-desc { display: none; }
.product-grid.is-list .pcard-desc {
  font-size: 13.8px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden;
}
@media (max-width: 640px) {
  .product-grid.is-list .pcard { flex-direction: column; }
  .product-grid.is-list .pcard-media { width: 100%; }
}

/* Horizontal scroller for deals */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: thin;
}
.scroller > * { scroll-snap-align: start; }
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-track { background: var(--line-soft); border-radius: 99px; }
.scroller::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.scroller::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* --------------------------------------------------------------------------
   13. Promo banner grid
   -------------------------------------------------------------------------- */
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .banner-grid { grid-template-columns: 1fr; } }

.promo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 210px;
  display: flex; align-items: flex-end;
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-size: cover; background-position: center;
  transition: transform .26s var(--ease-out), box-shadow .26s var(--ease);
}
.promo:nth-child(2) { background: linear-gradient(135deg, #f43f5e, #f59e0b); }
.promo:nth-child(3) { background: linear-gradient(135deg, #0f766e, #10b981); }
.promo.has-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,6,23,.78), rgba(2,6,23,.18)); }
.promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-body { position: relative; z-index: 2; }
.promo h3 { color: #fff; font-size: 21px; margin-bottom: 5px; }
.promo p { color: rgba(255,255,255,.86); font-size: 14px; margin-bottom: 14px; }
.promo .btn { background: #fff; color: var(--ink); }
.promo .btn:hover { background: #fff; color: var(--primary); }

/* --------------------------------------------------------------------------
   14. Testimonials, brands, newsletter
   -------------------------------------------------------------------------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease);
}
.testi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testi-quote { font-size: 14.8px; color: var(--ink-2); line-height: 1.68; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px;
  object-fit: cover;
}
.testi-who b { display: block; font-size: 14.5px; color: var(--ink); }
.testi-who span { font-size: 12.5px; color: var(--muted); }

.brand-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px;
}
.brand-chip {
  display: grid; place-items: center; padding: 22px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 700; font-size: 16px; color: var(--muted);
  letter-spacing: -.01em;
  transition: color .2s, border-color .2s, transform .2s var(--ease-out);
}
.brand-chip:hover { color: var(--primary); border-color: var(--primary-border); transform: translateY(-3px); }
.brand-chip img { max-height: 42px; width: auto; object-fit: contain; }

.newsletter {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 60px);
  background: var(--dark);
  color: #fff;
  text-align: center;
}
.newsletter::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 15% 0%, color-mix(in srgb, var(--primary) 46%, transparent), transparent 62%),
              radial-gradient(600px 380px at 88% 100%, color-mix(in srgb, var(--secondary) 34%, transparent), transparent 60%);
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { color: #fff; margin-bottom: 10px; }
.newsletter p { color: rgba(255,255,255,.74); max-width: 54ch; margin: 0 auto 26px; }
.newsletter-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; }
.newsletter-form .input {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff;
  border-radius: var(--radius-pill); padding-left: 20px;
}
.newsletter-form .input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form .input:focus { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); box-shadow: none; }
.newsletter-form .btn { border-radius: var(--radius-pill); padding-inline: 26px; }
@media (max-width: 520px) { .newsletter-form { flex-direction: column; } }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--dark); color: #94a3b8; margin-top: clamp(48px, 6vw, 84px); }
.footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px;
  padding-block: clamp(40px, 5vw, 64px);
}
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

.footer h5 {
  color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px; font-weight: 700;
}
.footer-about p { font-size: 14px; line-height: 1.72; margin-bottom: 18px; max-width: 40ch; }
.footer .logo-text b { color: #fff; }
.footer .logo-text small { color: #64748b; }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #94a3b8; font-size: 14px; transition: color .15s, padding-left .15s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.footer-contact li { display: flex; gap: 11px; font-size: 14px; line-height: 1.55; }
.footer-contact svg { flex: none; color: var(--primary); margin-top: 2px; }
.footer-contact a { color: #94a3b8; }
.footer-contact a:hover { color: #fff; }

.socials { display: flex; gap: 9px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(148,163,184,.12); color: #cbd5e1;
  display: grid; place-items: center;
  transition: background .18s, color .18s, transform .18s;
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(148,163,184,.14);
  padding-block: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: 13px;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }
.pay-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-badge {
  padding: 5px 11px; border-radius: 7px;
  background: rgba(148,163,184,.12); font-size: 11.5px; font-weight: 600; color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   16. Floating WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; bottom: 24px; z-index: 80;
  display: flex; align-items: center; gap: 0;
}
.wa-float.pos-right { right: 24px; flex-direction: row-reverse; }
.wa-float.pos-left  { left: 24px; }

.wa-btn {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 26px -6px rgba(37,211,102,.62);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease);
  position: relative;
}
.wa-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; opacity: .55;
  animation: waPulse 2.4s ease-out infinite; z-index: -1;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70%,100% { transform: scale(1.7); opacity: 0; } }
.wa-btn:hover { transform: scale(1.07); color: #fff; }

.wa-tip {
  background: #fff; color: var(--ink);
  padding: 9px 15px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateX(8px) scale(.94);
  transition: opacity .24s var(--ease), transform .24s var(--ease-out);
  pointer-events: none;
  margin-inline: 12px;
}
.wa-float.pos-left .wa-tip { transform: translateX(-8px) scale(.94); }
.wa-float:hover .wa-tip { opacity: 1; transform: translateX(0) scale(1); }
@media (max-width: 640px) {
  .wa-float { bottom: 18px; }
  .wa-float.pos-right { right: 16px; }
  .wa-float.pos-left { left: 16px; }
  .wa-tip { display: none; }
  .wa-btn { width: 52px; height: 52px; }
}

.to-top {
  position: fixed; bottom: 24px; z-index: 79;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease-out), visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.wa-float.pos-right ~ .to-top, .to-top { right: 96px; }
@media (max-width: 640px) { .to-top { right: 78px; bottom: 20px; width: 38px; height: 38px; } }

/* --------------------------------------------------------------------------
   17. Toasts
   -------------------------------------------------------------------------- */
.toast-wrap {
  position: fixed; top: 18px; right: 18px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(370px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px;
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--success);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px; color: var(--ink-2);
  pointer-events: auto;
  animation: toastIn .34s var(--ease-out);
}
.toast.hide { animation: toastOut .26s var(--ease) forwards; }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info    { border-left-color: var(--info); }
.toast svg { flex: none; margin-top: 1px; }
.toast.success svg { color: var(--success); }
.toast.error svg   { color: var(--danger); }
.toast.warning svg { color: var(--warning); }
.toast.info svg    { color: var(--info); }
.toast b { display: block; color: var(--ink); font-size: 14px; }
.toast span { display: block; font-size: 13.2px; color: var(--muted); margin-top: 1px; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(.96); } }
@media (max-width: 520px) { .toast-wrap { left: 12px; right: 12px; top: 12px; max-width: none; } }

/* --------------------------------------------------------------------------
   18. Shop page
   -------------------------------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 264px 1fr; gap: 30px; align-items: start; }
@media (max-width: 1024px) { .shop-layout { grid-template-columns: 1fr; } }

.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}
@media (max-width: 1024px) {
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 100;
    width: min(340px, 88vw); max-height: none; border-radius: 0;
    transform: translateX(-100%); transition: transform .3s var(--ease-out);
    box-shadow: var(--shadow-lg);
  }
  .filters.open { transform: translateX(0); }
}

.filter-head {
  display: none; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
@media (max-width: 1024px) { .filter-head { display: flex; } }

.filter-group { padding: 18px; border-bottom: 1px solid var(--line-soft); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-bottom: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; max-height: 260px; overflow-y: auto; }
.filter-list a, .filter-list label {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink-2); cursor: pointer;
  transition: background .13s, color .13s;
}
.filter-list a:hover, .filter-list label:hover { background: var(--bg-soft); color: var(--primary); }
.filter-list a.active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.filter-list .n { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.filter-list .sub-list { padding-left: 14px; }

.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs .input { padding: 8px 10px; font-size: 14px; }

.swatch-list { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line); cursor: pointer; position: relative;
  transition: transform .16s, border-color .16s;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--primary); box-shadow: 0 0 0 2px #fff inset; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 13px 16px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.shop-count { font-size: 14px; color: var(--muted); }
.shop-count b { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.toolbar-right .select { padding: 8px 34px 8px 12px; font-size: 14px; width: auto; }

.view-toggle { display: flex; gap: 3px; padding: 3px; background: var(--bg-sunken); border-radius: var(--radius-sm); }
.view-toggle button {
  width: 32px; height: 30px; border-radius: 6px;
  display: grid; place-items: center; color: var(--muted);
  transition: background .15s, color .15s;
}
.view-toggle button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); }

.btn-filter { display: none; }
@media (max-width: 1024px) { .btn-filter { display: inline-flex; } }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px 5px 12px; border-radius: var(--radius-pill);
  background: var(--primary-soft); color: var(--primary);
  font-size: 12.8px; font-weight: 600;
}
.chip button { display: grid; place-items: center; color: inherit; opacity: .65; padding: 2px; }
.chip button:hover { opacity: 1; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.page-link {
  min-width: 38px; height: 38px; padding: 0 11px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--ink-2); background: #fff;
  transition: all .15s var(--ease);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link.disabled { opacity: .38; pointer-events: none; }
.page-dots { padding: 0 4px; color: var(--muted-2); }

.empty-state { text-align: center; padding: clamp(46px, 8vw, 84px) 20px; }
.empty-state .ico {
  width: 82px; height: 82px; border-radius: 26px; margin: 0 auto 20px;
  background: var(--bg-sunken); color: var(--muted-2);
  display: grid; place-items: center;
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; }

/* --------------------------------------------------------------------------
   19. Product detail
   -------------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 940px) { .pdp { grid-template-columns: 1fr; } }

.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 940px) { .gallery { position: static; } }

.gallery-main {
  position: relative; aspect-ratio: 1;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-sunken);
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.gallery-main.zoomed img { transform: scale(1.9); cursor: zoom-out; }

.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
  width: 76px; height: 76px; flex: none;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-sunken);
  transition: border-color .16s, transform .16s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--primary); }

.pdp-info h1 { font-size: clamp(23px, 3vw, 32px); margin-bottom: 12px; }
.pdp-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.pdp-meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pdp-meta .sep { width: 1px; height: 14px; background: var(--line); }

.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pdp-price .now { font-size: clamp(26px, 3.4vw, 34px); font-weight: 780; color: var(--ink); letter-spacing: -.03em; }
.pdp-price .was { font-size: 17px; color: var(--muted-2); text-decoration: line-through; }
.pdp-price .off { font-size: 13px; font-weight: 750; color: #fff; background: var(--danger); padding: 4px 10px; border-radius: var(--radius-pill); }
.pdp-save { font-size: 13.5px; color: var(--success); font-weight: 600; margin-bottom: 20px; }

.pdp-desc { color: var(--ink-2); font-size: 15px; line-height: 1.72; margin-bottom: 24px; }

.opt-group { margin-bottom: 20px; }
.opt-group .label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.opt-group .label .chosen { font-weight: 500; color: var(--muted); }
.opt-values { display: flex; flex-wrap: wrap; gap: 9px; }

.opt-btn {
  min-width: 48px; padding: 9px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .16s var(--ease); position: relative;
}
.opt-btn:hover { border-color: var(--ink); color: var(--ink); }
.opt-btn.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.opt-btn.sold-out { opacity: .4; text-decoration: line-through; pointer-events: none; }
.opt-btn .adj { font-size: 11.5px; color: var(--muted); display: block; }

.opt-swatch {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--line); position: relative;
  transition: transform .16s, border-color .16s;
}
.opt-swatch:hover { transform: scale(1.08); }
.opt-swatch.active { border-color: var(--primary); box-shadow: 0 0 0 3px #fff inset, 0 0 0 1px var(--primary); }
.opt-swatch.sold-out { opacity: .35; pointer-events: none; }
.opt-swatch.sold-out::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  background: linear-gradient(to bottom right, transparent 47%, var(--danger) 47%, var(--danger) 53%, transparent 53%);
}

.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.qty button {
  width: 40px; height: 44px; display: grid; place-items: center;
  color: var(--ink-2); transition: background .14s, color .14s;
}
.qty button:hover { background: var(--bg-sunken); color: var(--primary); }
.qty button:disabled { opacity: .35; pointer-events: none; }
.qty input {
  width: 52px; height: 44px; text-align: center; border: 0;
  border-inline: 1px solid var(--line);
  font-size: 15px; font-weight: 650; color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-buy { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 14px; }
@media (max-width: 480px) { .pdp-buy { grid-template-columns: 1fr; } }

.pdp-assurance {
  display: grid; gap: 12px; margin-top: 24px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.assure { display: flex; gap: 12px; align-items: flex-start; font-size: 13.8px; }
.assure svg { flex: none; color: var(--primary); margin-top: 2px; }
.assure b { display: block; color: var(--ink); font-size: 14px; font-weight: 650; }
.assure span { color: var(--muted); }

.stock-line { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 18px; font-weight: 550; }
.stock-line.in { color: var(--success); }
.stock-line.low { color: var(--warning); }
.stock-line.out { color: var(--danger); }
.stock-bar { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.stock-bar i { display: block; height: 100%; background: var(--warning); border-radius: 99px; }

/* Tabs */
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; margin-bottom: 26px; }
.tab {
  padding: 13px 18px; font-size: 15px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .16s, border-color .16s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .34s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.prose { color: var(--ink-2); font-size: 15.2px; line-height: 1.78; max-width: 78ch; }
.prose h2 { font-size: 22px; margin: 28px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose img { border-radius: var(--radius); margin-block: 18px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--primary); padding: 4px 0 4px 18px;
  margin: 18px 0; color: var(--muted); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14.5px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 650; color: var(--ink); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; max-width: 620px; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th { text-align: left; padding: 12px 0; color: var(--muted); font-weight: 600; width: 40%; vertical-align: top; }
.spec-table td { padding: 12px 0; color: var(--ink); }

/* Reviews */
.review-summary { display: grid; grid-template-columns: 190px 1fr; gap: 32px; align-items: center; margin-bottom: 30px; }
@media (max-width: 680px) { .review-summary { grid-template-columns: 1fr; gap: 20px; } }
.rating-big { text-align: center; }
.rating-big .num { font-size: 50px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.04em; }
.rating-big .of { font-size: 13px; color: var(--muted); margin-top: 8px; }
.rating-bars { display: grid; gap: 7px; }
.rating-bar { display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--muted); }
.rating-bar .track { flex: 1; height: 7px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.rating-bar .track i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.rating-bar .lab { width: 38px; }
.rating-bar .cnt { width: 30px; text-align: right; }

.review {
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 46px 1fr; gap: 15px;
}
.review:last-child { border-bottom: 0; }
.review-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.review-head b { font-size: 14.8px; color: var(--ink); }
.review-head time { font-size: 12.5px; color: var(--muted-2); margin-left: auto; }
.review h5 { font-size: 14.8px; margin-bottom: 5px; }
.review p { font-size: 14.5px; line-height: 1.68; }
.review-reply {
  margin-top: 12px; padding: 13px 15px;
  background: var(--bg-soft); border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary); font-size: 14px;
}
.review-reply b { display: block; font-size: 13px; color: var(--primary); margin-bottom: 3px; }

/* --------------------------------------------------------------------------
   20. Cart
   -------------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 940px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cart-card-head h3 { font-size: 16.5px; }

.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--line-soft);
  align-items: start;
  transition: background .16s, opacity .2s;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item.removing { opacity: .4; pointer-events: none; }
.cart-item-img {
  width: 96px; height: 96px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-sunken); border: 1px solid var(--line);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 15px; font-weight: 620; color: var(--ink); line-height: 1.42; }
.cart-item-name:hover { color: var(--primary); }
.cart-item-opts { font-size: 12.8px; color: var(--muted); margin-top: 3px; }
.cart-item-unit { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.cart-item-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.cart-item-remove {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--muted); transition: color .15s;
}
.cart-item-remove:hover { color: var(--danger); }
.cart-item-total { text-align: right; font-size: 16.5px; font-weight: 720; color: var(--ink); white-space: nowrap; }
@media (max-width: 620px) {
  .cart-item { grid-template-columns: 78px 1fr; gap: 13px; padding: 15px; }
  .cart-item-img { width: 78px; height: 78px; }
  .cart-item-total { grid-column: 2; text-align: left; margin-top: 8px; }
}

.qty.qty-sm button { width: 32px; height: 34px; }
.qty.qty-sm input { width: 42px; height: 34px; font-size: 14px; }

.summary {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: calc(var(--header-h) + 16px);
}
.summary h3 { font-size: 17px; margin-bottom: 18px; }
.summary-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 0; font-size: 14.5px; color: var(--ink-2);
}
.summary-row .lab { color: var(--muted); }
.summary-row.discount .val { color: var(--success); font-weight: 650; }
.summary-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line);
  font-size: 15px;
}
.summary-total b { font-size: 24px; font-weight: 780; color: var(--ink); letter-spacing: -.025em; }

.coupon-box { display: flex; gap: 8px; margin: 16px 0; }
.coupon-box .input { font-size: 14px; text-transform: uppercase; }
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; margin: 16px 0;
  background: #ecfdf5; border: 1px dashed #6ee7b7; border-radius: var(--radius-sm);
  font-size: 13.5px; color: #065f46;
}
.coupon-applied b { font-weight: 750; }
.coupon-applied button { color: #065f46; opacity: .6; display: grid; place-items: center; }
.coupon-applied button:hover { opacity: 1; }

.free-ship-note {
  padding: 12px 14px; margin-bottom: 16px;
  background: var(--primary-soft); border-radius: var(--radius-sm);
  font-size: 13.2px; color: var(--primary); font-weight: 550;
}
.free-ship-note .bar { height: 5px; background: rgba(255,255,255,.7); border-radius: 99px; margin-top: 9px; overflow: hidden; }
.free-ship-note .bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .5s var(--ease-out); }

.trust-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.trust-row span { display: inline-flex; align-items: center; gap: 5px; }

/* Cart drawer */
.mini-cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft); align-items: start;
}
.mini-cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bg-sunken); }
.mini-cart-item .n { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.38; }
.mini-cart-item .o { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mini-cart-item .q { font-size: 13px; color: var(--muted); margin-top: 5px; }
.mini-cart-item .p { font-weight: 700; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.mini-cart-item .x { color: var(--muted-2); display: block; margin-top: 6px; margin-left: auto; }
.mini-cart-item .x:hover { color: var(--danger); }

/* --------------------------------------------------------------------------
   21. Checkout
   -------------------------------------------------------------------------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 30px; align-items: start; }
@media (max-width: 980px) { .checkout-layout { grid-template-columns: 1fr; } }

.co-section {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.co-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.co-step {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.co-section-head h3 { font-size: 17px; }
.co-section-head p { font-size: 13px; color: var(--muted); margin-top: 1px; }

.method-list { display: grid; gap: 10px; }
.method {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .16s, background .16s;
}
.method:hover { border-color: var(--muted-2); }
.method.selected { border-color: var(--primary); background: var(--primary-soft); }
.method input { margin-top: 2px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.method-body { flex: 1; }
.method-body b { display: block; font-size: 14.8px; color: var(--ink); }
.method-body span { font-size: 13px; color: var(--muted); }
.method-price { font-weight: 700; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.method-instructions {
  margin-top: 12px; padding: 13px 15px;
  background: var(--bg-soft); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--ink-2); white-space: pre-line; line-height: 1.65;
  border-left: 3px solid var(--primary);
}

.co-summary-item {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft); align-items: center;
}
.co-summary-item:last-of-type { border-bottom: 0; }
.co-summary-item .thumb { position: relative; width: 54px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--bg-sunken); }
.co-summary-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-summary-item .thumb .qn {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--ink); color: #fff; border-radius: 99px;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #fff;
}
.co-summary-item .n { font-size: 13.6px; font-weight: 570; color: var(--ink); line-height: 1.38; }
.co-summary-item .o { font-size: 11.8px; color: var(--muted); }
.co-summary-item .p { font-size: 14px; font-weight: 680; white-space: nowrap; }

/* --------------------------------------------------------------------------
   22. Order confirmation / tracking
   -------------------------------------------------------------------------- */
.success-hero { text-align: center; padding: clamp(36px, 6vw, 64px) 20px; }
.success-tick {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 24px;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 40px -12px rgba(16,185,129,.6);
  animation: pop .55s var(--ease-out);
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.order-no {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: var(--radius-pill);
  background: var(--bg-sunken); font-size: 15px; margin-block: 18px;
}
.order-no b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; color: var(--ink); letter-spacing: .03em; }
.order-no button { color: var(--muted); display: grid; place-items: center; }
.order-no button:hover { color: var(--primary); }

.timeline { display: grid; gap: 0; margin: 26px 0; }
.tl-step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; position: relative; padding-bottom: 24px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: ''; position: absolute; left: 16px; top: 34px; bottom: 0;
  width: 2px; background: var(--line);
}
.tl-step:last-child::before { display: none; }
.tl-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
  display: grid; place-items: center; color: var(--muted-2); z-index: 1;
}
.tl-step.done .tl-dot { background: var(--success); border-color: var(--success); color: #fff; }
.tl-step.done::before { background: var(--success); }
.tl-step.current .tl-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.tl-body b { display: block; font-size: 15px; color: var(--ink); }
.tl-body span { font-size: 13.2px; color: var(--muted); }
.tl-step:not(.done):not(.current) .tl-body b { color: var(--muted-2); }

.detail-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.detail-table th, .detail-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.detail-table th { background: var(--bg-soft); font-weight: 650; color: var(--ink); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.detail-table tfoot td { border-bottom: 0; padding-block: 8px; }
.detail-table tfoot tr:last-child td { font-size: 17px; font-weight: 750; color: var(--ink); padding-top: 14px; border-top: 1px solid var(--line); }
.detail-table .right { text-align: right; }

/* --------------------------------------------------------------------------
   23. Page hero / misc pages
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 88% -30%, var(--primary-soft), transparent 62%);
}
.page-hero > * { position: relative; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--muted); max-width: 62ch; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .2s var(--ease-out), box-shadow .2s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-card .ico {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
}
.info-card h4 { margin-bottom: 6px; }
.info-card p, .info-card a { font-size: 14px; color: var(--muted); line-height: 1.6; }

.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-item:last-child { border-bottom: 0; }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; text-align: left;
  font-size: 15.5px; font-weight: 620; color: var(--ink);
  transition: background .15s;
}
.acc-head:hover { background: var(--bg-soft); }
.acc-head svg { flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.acc-item.open .acc-head { color: var(--primary); }
.acc-item.open .acc-head svg { transform: rotate(180deg); color: var(--primary); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 20px 18px; font-size: 14.6px; color: var(--muted); line-height: 1.72; }

/* --------------------------------------------------------------------------
   24. Utilities
   -------------------------------------------------------------------------- */
.stack   { display: grid; gap: 14px; }
.row     { display: flex; gap: 12px; align-items: center; }
.row-wrap{ flex-wrap: wrap; }
.gap-sm  { gap: 8px; }
.mt-0 { margin-top: 0; }  .mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.w-full { width: 100%; }
.hide { display: none !important; }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
@media (min-width: 761px) { .only-sm { display: none !important; } }

.skeleton {
  background: linear-gradient(90deg, var(--line-soft) 25%, var(--line) 37%, var(--line-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll reveal.
   Content is VISIBLE by default. The hidden state (.is-hidden) is applied by
   JS only to elements it is actively observing, so a script error, a missing
   IntersectionObserver or a restored bfcache page can never leave the page
   blank - the worst case is simply no animation. */
.reveal { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-hidden { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  .reveal.is-hidden { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   25. Print
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .header, .nav, .footer, .wa-float, .to-top, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .container { max-width: 100%; }
  a { color: #000; text-decoration: none; }
  .cart-card, .summary, .co-section { border: 1px solid #ddd; box-shadow: none; }
}
