/*
 * Storefront styles: layout, home page, product card and shop page.
 * Loaded after styles.css (which still styles the product, policy and contact pages).
 *
 * One accent (brand teal). --brand is for accents; --brand-ink is the darker teal used
 * for text and filled buttons so white text keeps a readable contrast.
 */

:root {
  --brand: #13b8a6;
  --brand-ink: #0b7a70;
  --brand-ink-hover: #096a61;
  --brand-soft: #e8f7f5;

  --ink: #14201f;
  --ink-2: #3c4a48;
  --muted: #66736f;
  --line: #e2e8e6;
  --line-strong: #cfd8d6;
  --canvas: #f5f7f6;
  --surface: #ffffff;
  --save: #11734f;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(20, 32, 31, 0.06);
  --shadow-2: 0 2px 4px rgba(20, 32, 31, 0.04),
    0 8px 24px rgba(20, 32, 31, 0.08);

  --z-header: 40;
  --z-dropdown: 50;
  --z-bottomnav: 60;
  --z-toast: 70;
  --z-skip: 80;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

body.store {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.store h1,
body.store h2,
body.store h3 {
  text-wrap: balance;
}
body.store p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: var(--z-skip);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

body.store :focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.mob-only {
  display: none !important;
}

/* ---------- buttons & chips ---------- */

/* Only the storefront's own button styles; legacy page buttons keep their look */
body.store :is(.btn-brand, .btn-ink, .btn-line) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease),
    transform 0.1s var(--ease);
}
body.store :is(.btn-brand, .btn-ink, .btn-line):active {
  transform: translateY(1px);
}
.btn-brand {
  background: var(--brand-ink) !important;
  color: #fff;
}
.btn-brand:hover {
  background: var(--brand-ink-hover) !important;
}
.btn-ink {
  background: var(--ink) !important;
  color: #fff;
}
.btn-ink:hover {
  background: #26302f !important;
}
.btn-line {
  border-color: var(--line-strong) !important;
  color: var(--ink);
  background: var(--surface) !important;
}
.btn-line:hover {
  border-color: var(--brand-ink) !important;
  color: var(--brand-ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 500;
  transition:
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.chip:hover {
  border-color: var(--brand-ink);
  color: var(--brand-ink);
}
.chip-lg {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.chip-ghost {
  background: transparent;
  border-style: dashed;
}

/* ---------- announcement bar ---------- */

.tb {
  background: var(--ink);
  color: #d9e2e0;
  font-size: 0.8rem;
}
.tb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.tb a {
  color: #fff;
  font-weight: 600;
}
.tb-side {
  white-space: nowrap;
}
.tb-side i {
  margin-right: 4px;
}
.tb-msgs {
  position: relative;
  flex: 1;
  display: grid;
  text-align: center;
}
.tb-msg {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
  pointer-events: none;
}
.tb-msg.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.tb-msg a {
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- header ---------- */

.hd {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hd.scrolled {
  box-shadow: var(--shadow-1);
}
.hd-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.hd-logo {
  display: inline-flex;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hd-logo-a {
  color: var(--brand-ink);
}
.hd-logo-b {
  color: var(--ink);
}
.hd-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}
.hd-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.hd-search {
  position: relative;
  flex: 1;
  max-width: 560px;
}
.hd-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--canvas);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  transition:
    border-color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}
.hd-search input:focus {
  outline: none;
  border-color: var(--brand-ink);
  background: var(--surface);
}
.hd-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.hd-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  display: none;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.hd-suggest.visible {
  display: block;
}
.hd-suggest-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.hd-suggest .chips + .hd-suggest-label {
  margin-top: 14px;
}

.hd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.hd-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
}
.hd-icon:hover {
  background: var(--canvas);
  color: var(--ink);
}
.hd-icon .fa-whatsapp {
  font-size: 1.15rem;
  color: #1b9e4b;
}
.hd-mobsearch {
  display: none;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.hd-mobsearch.visible {
  display: block;
}
.hd-mobsearch form {
  display: flex;
  gap: 8px;
}
.hd-mobsearch input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font: inherit;
}

/* ---------- main menu ---------- */

.mn {
  border-top: 1px solid var(--line);
}
.mn-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
  min-height: 46px;
}
.mn-list > li {
  position: relative;
}
.mn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
}
.mn-link:hover,
.mn-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--brand);
}
.mn-caret {
  font-size: 0.65rem;
  color: var(--muted);
}
.mn-drop {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: var(--z-dropdown);
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 0.15s var(--ease),
    transform 0.15s var(--ease);
}
.mn-drop a {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.mn-drop a:hover {
  background: var(--canvas);
  color: var(--ink);
}
.mn-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
body.store .has-dropdown:hover > .mn-drop,
body.store .has-dropdown:focus-within > .mn-drop,
body.store .has-dropdown.open > .mn-drop {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- story rail ---------- */

.st {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.st-rail {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0 auto;
  padding-block: 16px 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.st-rail::-webkit-scrollbar {
  display: none;
}
.st-rail > li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.st-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 76px;
  text-align: center;
}
.st-ring {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  padding: 3px;
  border: 1px solid var(--line, #e2e8f0);
  background: var(--surface);
  transition: transform 0.15s var(--ease);
}
.st-ring img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
  background: var(--canvas);
  padding: 8px;
}
.st-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 1.4rem;
  font-weight: 700;
}
.st-item:hover .st-ring {
  transform: scale(1.04);
}
.st-label {
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- hero ---------- */

.hr {
  padding-top: 20px;
}
.hr-track {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr); /* slides stack in one cell */
  aspect-ratio: 12 / 5; /* same shape as Admin > Banners recommends (1200x500) */
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
}
body.store .hr-slide {
  grid-area: 1 / 1;
  min-height: 0;
  overflow: hidden;
  position: relative; /* holds the caption; slides still stack in one grid cell */
  inset: auto;
  display: block;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
body.store .hr-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hr-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hr-cap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
@media (max-width: 640px) {
  .hr-cap { left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 0.78rem; padding: 4px 10px; }
}
.hr-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.hr-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.75rem;
}
.hr-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.hr-dots {
  display: flex;
  gap: 6px;
}
body.store .hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color 0.15s var(--ease);
}
body.store .hero-dot.active {
  width: 8px;
  border-radius: 50%;
  background: var(--brand-ink);
}

/* ---------- sections ---------- */

.sec {
  padding-block: 44px 52px;
}
.sec-tight {
  padding-block: 12px 20px;
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sec-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.sec-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-ink);
}
.sec-link i {
  font-size: 0.75rem;
  transition: transform 0.15s var(--ease);
}
.sec-link:hover i {
  transform: translateX(2px);
}

.price-band {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-block: 1px solid var(--line);
}
.price-band .sec-title {
  font-size: 1.1rem;
  margin-right: 8px;
}

/* product rail & grid */
.rail {
  display: grid;
  grid-auto-flow: column;
  /* a quarter of the row each, so one or two items do not stretch across it */
  grid-auto-columns: minmax(220px, calc((100% - 48px) / 4));
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.rail-item {
  scroll-snap-align: start;
  display: flex;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ---------- product card ---------- */

.pc {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease);
}
.pc:hover {
  box-shadow: var(--shadow-2);
}
.pc-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--surface); /* product photos are shot on white */
  border-bottom: 1px solid var(--line);
}
.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.25s var(--ease);
}
.pc:hover .pc-media img {
  transform: scale(1.03);
}
.pc-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 600;
}
.pc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 14px 16px 16px;
}
.pc-type {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-ink);
}
.pc-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-title a {
  color: var(--ink);
}
.pc-title a:hover {
  color: var(--brand-ink);
}
.pc-specs,
.pc-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.pc-rating {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pc-rating i {
  color: #e0a100;
  font-size: 0.75rem;
}
.pc-rating span {
  color: var(--muted);
  font-weight: 400;
}
.pc-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.pc-price strong {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pc-price s {
  font-size: 0.85rem;
  color: var(--muted);
}
.pc-off {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--save);
}
.pc-cta {
  margin-top: auto;
  width: 100%;
}
.pc-body > .pc-cta {
  margin-top: 10px;
}

/* ---------- trust row ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.trust-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.trust-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
.trust-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- why refurbished ---------- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}
.why-intro {
  position: sticky;
  top: 140px;
}
.why-intro .btn {
  margin-top: 20px;
}
.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.why-list li {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.why-icon {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 14px;
}
.why-list h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
}
.why-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */

.qa {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}
.qa-list {
  border-top: 1px solid var(--line-strong);
}
.qa-item {
  border-bottom: 1px solid var(--line-strong);
}
.qa-item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.qa-item summary::-webkit-details-marker {
  display: none;
}
.qa-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.15s var(--ease);
}
.qa-item[open] summary::after {
  transform: rotate(45deg);
}
.qa-item p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------- legacy pages inside the new layout ---------- */

body.store .breadcrumb {
  list-style: none;
}
body.store .breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* product page: same accent and quiet badges as the rest of the store */
body.store .btn-buy-lg {
  background: var(--brand-ink);
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  border-radius: var(--r-md);
}
body.store .btn-buy-lg:hover {
  background: var(--brand-ink-hover);
  transform: none;
}
body.store .btn-wa-lg {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  border-radius: var(--r-md);
}
body.store .btn-wa-lg i {
  color: #1b9e4b;
}
body.store .btn-wa-lg:hover {
  border-color: var(--ink);
  transform: none;
}
body.store .pdp-discount-badge,
body.store .pdp-badge {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
body.store .pdp-discount-badge {
  color: var(--save);
}

/* ---------- shop page ---------- */

.shop {
  padding-block: 24px 56px;
}
.shop-head {
  margin-bottom: 20px;
}
.shop-head h1 {
  margin: 6px 0 2px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.shop-intro {
  margin: 0 0 4px;
  max-width: 65ch;
  color: var(--muted);
  text-wrap: pretty;
}
.shop-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--brand-ink);
}
.shop-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.shop-filters {
  position: sticky;
  top: 132px;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.fl-group {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
.fl-group legend {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.fl-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.9rem;
  cursor: pointer;
}
.fl-opt input {
  accent-color: var(--brand-ink);
}
.fl-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.fl-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fl-clear {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-ink);
}
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--muted);
}
.shop-sort select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
.empty {
  padding: 56px 24px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-lg);
}
.empty h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* ---------- footer ---------- */

.ft {
  margin-top: 24px;
  background: var(--ink);
  color: #b9c5c2;
  font-size: 0.9rem;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-block: 48px 36px;
}
.ft-logo .hd-logo-a {
  color: var(--brand);
}
.ft-logo .hd-logo-b {
  color: #fff;
}
.ft-brand p {
  margin: 12px 0 16px;
  max-width: 34ch;
}
.ft-social {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.ft-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  border: 1px solid #33403e;
  color: #e3ebe9;
}
.ft-social a:hover {
  border-color: var(--brand);
  color: #fff;
}
.ft-play img {
  height: 44px;
  width: auto;
}
.ft-h {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.ft-links,
.ft-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.ft a:hover {
  color: #fff;
}
.ft-contact li {
  display: flex;
  gap: 10px;
}
.ft-contact i {
  margin-top: 4px;
  width: 14px;
  color: var(--brand);
  font-size: 0.8rem;
}
.ft-bottom {
  border-top: 1px solid #2a3533;
}
.ft-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  font-size: 0.82rem;
}
.ft-bottom p {
  margin: 0;
}
.ft-legal {
  display: flex;
  gap: 18px;
}

/* ---------- mobile bottom nav & toast ---------- */

.bn {
  display: none;
}
body.store .toast {
  z-index: var(--z-toast);
  border-radius: var(--r-md);
  background: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ft-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why,
  .qa {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .why-intro {
    position: static;
  }
}

@media (max-width: 899px) {
  .mob-only {
    display: inline-flex !important;
  }
  .desk-only,
  .tb-side {
    display: none;
  }
  .hd-inner {
    gap: 8px;
    min-height: 58px;
  }
  .hd-burger {
    display: flex;
  }
  .hd-search {
    display: none;
  }
  .hd-app {
    display: none !important;
  }
  .mn {
    display: none;
    border-top: 1px solid var(--line);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }
  .mn.mobile-open {
    display: block;
  }
  .mn-list {
    flex-direction: column;
    align-items: stretch;
    padding-block: 8px;
  }
  .mn-link {
    width: 100%;
    justify-content: space-between;
    border-bottom: 0;
  }
  .mn-drop {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 12px;
  }
  body.store .has-dropdown.open > .mn-drop {
    display: block;
  }
  body.store .has-dropdown:hover > .mn-drop {
    opacity: 1;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-filters {
    display: none;
    position: static;
  }
  .shop-filters.is-open {
    display: block;
  }

  .bn {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-bottomnav);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.7rem;
    color: var(--muted);
  }
  .bn-item i {
    font-size: 1.05rem;
  }
  .bn-item.is-active {
    color: var(--brand-ink);
  }
  .bn-app {
    color: var(--ink);
    font-weight: 600;
  }
  body.store {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
  body.store .toast {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 599px) {
  .sec {
    padding-block: 32px 36px;
  }
  .hr-track {
    border-radius: var(--r-md);
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .rail {
    grid-auto-columns: 46%;
    gap: 10px;
  }
  .pc-body {
    padding: 12px;
  }
  .pc-price strong {
    font-size: 1.05rem;
  }
  .sec-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .why-list {
    grid-template-columns: 1fr;
  }
  .trust {
    gap: 10px;
  }
  .trust-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .trust-icon {
    flex-basis: auto;
    width: 36px;
    height: 36px;
  }
  .why-list li {
    padding: 18px;
  }
  .ft-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ft-bottom-inner {
    flex-direction: column;
  }
}

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

/* ---------- product page ---------- */

.pd {
  padding-block: 20px 56px;
}
.pd .crumbs {
  margin-bottom: 16px;
}
.pd-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.pd-gallery {
  position: sticky;
  top: 132px;
}
.pd-main {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pd-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
}
.pd-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.pd-thumb {
  flex: 0 0 72px;
  height: 72px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd-thumb.is-active {
  border-color: var(--brand-ink);
}
.pd-flag {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
}
.pd-brand {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-ink);
}
.pd-title {
  margin: 4px 0 10px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pd-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.pd-rating {
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pd-rating i {
  color: #e0a100;
}
.pd-rating span {
  color: var(--muted);
  font-weight: 400;
}
.pd-stock {
  font-weight: 600;
}
.pd-stock-in {
  color: var(--save);
}
.pd-stock-low {
  color: #a15c00;
}
.pd-stock-out {
  color: #b42318;
}
.pd-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.pd-price strong {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pd-price s {
  color: var(--muted);
}
.pd-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 16px 0 6px;
}
.pd-facts dt {
  font-size: 0.78rem;
  color: var(--muted);
}
.pd-facts dd {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.pd-grade-note {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.pd-h {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.pd-options {
  margin-top: 18px;
}
.pd-grade-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pd-grade-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.pd-grade-list li.is-current {
  border-color: var(--brand-ink);
}
.pd-grade-list small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.pd-grade-list b {
  font-variant-numeric: tabular-nums;
}
.pd-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.pd-cta .btn-brand,
.pd-cta .btn-line {
  min-height: 50px;
  font-size: 0.98rem;
}
.pd-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.pd-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.pd-trust i {
  color: var(--brand-ink);
  margin-right: 6px;
  font-size: 0.75rem;
}
.pd-sec {
  margin-top: 44px;
}
.pd-h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pd-table-wrap {
  overflow-x: auto;
}
.pd-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 0.92rem;
}
.pd-table th,
.pd-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.pd-table thead th {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.pd-table .num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.pd-table tr.is-out td {
  color: var(--muted);
}
.pd-table small {
  color: #b42318;
  font-weight: 500;
}
.pd-specs th {
  width: 34%;
  color: var(--muted);
  font-weight: 500;
}
.pd-tabs {
  display: flex;
  gap: 4px;
  margin-top: 44px;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
}
.pd-tab {
  flex: 0 0 auto;
  padding: 12px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.pd-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--brand);
}
.pd-panel {
  padding-top: 22px;
}
.pd-lead {
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 70ch;
}
.pd-prose {
  color: var(--ink-2);
  max-width: 70ch;
}
.pd-prose ul,
.pd-prose ol {
  padding-left: 20px;
}
.pd-box {
  columns: 2;
  gap: 32px;
  padding-left: 18px;
  color: var(--ink-2);
}
.pd-box li {
  margin-bottom: 6px;
}
.pd-empty {
  text-align: left;
  padding: 24px;
}
.pd-rv-summary {
  display: grid;
  grid-template-columns: 200px minmax(0, 360px);
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}
.pd-rv-score strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.pd-rv-score span {
  color: var(--muted);
  font-size: 0.88rem;
}
.pd-rv-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.pd-rv-bars li {
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  gap: 8px;
}
.pd-rv-bars i {
  color: #e0a100;
  font-size: 0.7rem;
}
.pd-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.pd-bar span {
  display: block;
  height: 100%;
  background: var(--brand-ink);
}
.pd-rv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pd-rv {
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--r-lg);
}
.pd-rv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 6px;
  font-size: 0.88rem;
}
.pd-rv-stars {
  color: #e0a100;
  letter-spacing: 1px;
}
.pd-rv-stars span {
  color: var(--line-strong);
}
.pd-rv-verified {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--save);
}
.pd-rv time {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
}
.pd-rv h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}
.pd-rv p {
  margin: 0;
  color: var(--ink-2);
}
.pd-qa {
  display: grid;
  gap: 16px;
  margin: 0;
}
.pd-qa dt {
  font-weight: 600;
}
.pd-qa dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}
.muted {
  color: var(--muted);
}

@media (max-width: 899px) {
  .pd-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pd-gallery {
    position: static;
  }
  .pd-rv-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 599px) {
  .pd-cta {
    grid-template-columns: 1fr;
  }
  .pd-trust,
  .pd-facts {
    grid-template-columns: 1fr 1fr;
  }
  .pd-box {
    columns: 1;
  }
  .pd-main img {
    padding: 18px;
  }
}

/* Home: small promo banner (Admin > Banners > Middle promo strip), as in the app */
.promo-strip { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.promo-strip img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }

/* Home: what customers say */
.rv-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.rv-card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rv-stars { color: #15803d; font-weight: 700; font-size: 0.9rem; }
.rv-text { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv-who { font-size: 0.82rem; color: var(--muted, #64748b); }
.rv-who strong { color: var(--ink, #0f172a); }
