/* ==========================================================================
   Meridian for WordPress — base.css
   Ported from the Meridian Shopify OS 2.0 theme. The token defaults below are
   overridden at runtime by the inline :root block that inc/customizer.php
   prints from Appearance → Customize → Meridian.
   ========================================================================== */
:root {
  --color-primary: #0E6E6E;
  --color-primary-dark: #0A5252;
  --color-primary-fade: rgba(14, 110, 110, 0.10);
  --color-secondary: #0F1720;
  --color-accent: #F2A007;
  --color-bg: #F4F5F7;
  --color-card: #FFFFFF;
  --color-subtle: #EDEFF2;
  --color-border: #DCE0E5;
  --color-border-strong: #C6CCD4;
  --color-text: #12181F;
  --color-text-muted: #5C6672;
  --color-sale: #D0021B;
  --color-success: #1F7A45;
  --color-button: #0E6E6E;
  --color-button-text: #FFFFFF;
  --color-header-bg: #FFFFFF;
  --color-header-text: #12181F;
  --color-utility-bg: #0F1720;
  --color-utility-text: #C7CDD4;
  --color-footer-bg: #0F1720;
  --color-footer-text: #AEB6BF;

  --font-body: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body-weight: 400;
  --font-heading: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading-weight: 700;
  --font-size-base: 15px;
  --heading-scale: 1;
  --heading-tracking: -0.02em;
  --eyebrow-transform: uppercase;

  --page-width: 1440px;
  --gutter: 16px;
  --grid-gap: 12px;
  --section-spacing: 48px;
  --radius: 8px;
  --radius-sm: 6px;
  --card-border: 1px solid var(--color-border);
  --shadow-sm: 0 1px 2px rgba(15, 23, 32, 0.05);
  --shadow-lg: 0 4px 16px rgba(15, 23, 32, 0.09);
  --shadow-xl: 0 14px 40px rgba(15, 23, 32, 0.16);
  --sticky-offset: 150px;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 20px;
  --space-5: 32px; --space-6: 48px; --space-7: 64px;

  --motion-fast: 120ms ease;
  --motion-base: 220ms cubic-bezier(.4, 0, .2, 1);

  --card-ratio: 1 / 1;
  --card-fit: contain;
  --card-img-pad: 10px;
}

@media (min-width: 750px) { :root { --gutter: 24px; --grid-gap: 16px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; --grid-gap: 20px; } }

/* ==========================================================================
   MERIDIAN — Design System
   Token-driven. Every colour, radius and spacing value below resolves to a
   CSS custom property written by layout/theme.liquid from Theme Settings.
   Do not hard-code brand colours in section files.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & document
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-body-weight);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--color-primary); }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

table { border-collapse: collapse; width: 100%; }

/* --------------------------------------------------------------------------
   2. Typography scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}

h1, .h1 { font-size: calc(2.125rem * var(--heading-scale)); line-height: 1.12; }
h2, .h2 { font-size: calc(1.625rem * var(--heading-scale)); }
h3, .h3 { font-size: calc(1.25rem  * var(--heading-scale)); }
h4, .h4 { font-size: calc(1.0625rem * var(--heading-scale)); }
h5, .h5 { font-size: calc(0.9375rem * var(--heading-scale)); }
h6, .h6 { font-size: calc(0.8125rem * var(--heading-scale)); }

@media (min-width: 990px) {
  h1, .h1 { font-size: calc(2.75rem * var(--heading-scale)); }
  h2, .h2 { font-size: calc(2rem * var(--heading-scale)); }
  h3, .h3 { font-size: calc(1.4375rem * var(--heading-scale)); }
}

p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

small, .text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.0625rem; }
.text-muted { color: var(--color-text-muted); }
.text-strong { font-weight: 600; }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: var(--eyebrow-transform);
  color: var(--color-primary);
  margin: 0 0 var(--space-1);
}

.rte a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.rte h2, .rte h3, .rte h4 { margin-top: var(--space-5); }
.rte ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 var(--space-3); }
.rte ol { list-style: decimal; padding-left: 1.25rem; margin: 0 0 var(--space-3); }
.rte li { margin-bottom: 0.35rem; }
.rte img { border-radius: var(--radius); margin: var(--space-4) 0; }
.rte table { font-size: 0.9375rem; }
.rte th, .rte td { border: 1px solid var(--color-border); padding: 0.6rem 0.75rem; text-align: left; }
.rte th { background: var(--color-subtle); font-weight: 600; }

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

.page-width--narrow { max-width: 820px; }

.section {
  padding-block: var(--section-spacing);
}

.section--tight { padding-block: calc(var(--section-spacing) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.section-head__text { min-width: 0; }
.section-head__title { margin: 0; }
.section-head__subtitle {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.section-head__link {
  flex: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.section-head__link:hover { text-decoration: underline; }
.section-head__link svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 749px) {
  .section-head { flex-wrap: wrap; align-items: flex-start; margin-bottom: var(--space-4); }
  .section-head__link { font-size: 0.875rem; }
}

.stack > * + * { margin-top: var(--space-3); }

.grid {
  display: grid;
  gap: var(--grid-gap);
}

.divider { border-top: 1px solid var(--color-border); }

/* --------------------------------------------------------------------------
   4. Accessibility helpers
   -------------------------------------------------------------------------- */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-to-content:focus {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 1000;
  width: auto; height: auto;
  clip: auto; clip-path: none;
  padding: 0.75rem 1.1rem;
  background: var(--color-card);
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--color-button);
  --btn-fg: var(--color-button-text);
  --btn-border: var(--color-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6875rem 1.25rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: filter var(--motion-fast), background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
  -webkit-appearance: none;
  appearance: none;
}

.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { color: var(--btn-fg); filter: brightness(0.92); }
.btn:active { filter: brightness(0.86); }
.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; filter: none; }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--color-text);
  --btn-border: var(--color-border-strong);
}
.btn--secondary:hover { --btn-bg: var(--color-subtle); filter: none; }

.btn--dark { --btn-bg: var(--color-secondary); --btn-border: var(--color-secondary); --btn-fg: #fff; }

.btn--accent { --btn-bg: var(--color-accent); --btn-border: var(--color-accent); --btn-fg: #12181F; }

.btn--sale { --btn-bg: var(--color-sale); --btn-border: var(--color-sale); --btn-fg: #fff; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-fg: var(--color-primary);
  padding-inline: 0.5rem;
}
.btn--ghost:hover { --btn-bg: var(--color-subtle); filter: none; }

.btn--full { width: 100%; }
.btn--sm { min-height: 36px; padding: 0.4rem 0.85rem; font-size: 0.8438rem; }
.btn--lg { min-height: 52px; padding: 0.9rem 1.75rem; font-size: 1rem; }

.btn--loading { position: relative; color: transparent !important; pointer-events: none; }
.btn--loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: var(--btn-fg);
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.link-underline { text-decoration: underline; text-underline-offset: 3px; }

/* Icon button (header actions, close buttons) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  transition: background-color var(--motion-fast);
}
.icon-btn:hover { background: rgba(0,0,0,0.06); color: inherit; }
.icon-btn svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   6. Form controls
   -------------------------------------------------------------------------- */
.field { display: block; margin-bottom: var(--space-3); }

.field__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.input,
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"],
input[type="url"], input[type="date"], textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  background: var(--color-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  -webkit-appearance: none;
  appearance: none;
}

textarea { min-height: 120px; resize: vertical; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6672' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 18px;
  padding-right: 2.25rem;
}

.input:focus,
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-fade);
}

::placeholder { color: var(--color-text-muted); opacity: 1; }

.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9063rem;
  padding: 0.25rem 0;
  min-height: 34px;
}

.checkbox input[type="checkbox"],
.radio input[type="radio"] {
  flex: none;
  width: 18px; height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9063rem;
  margin-bottom: var(--space-3);
}
.form-status--error { background: color-mix(in srgb, var(--color-sale) 10%, transparent); color: var(--color-sale); }
.form-status--success { background: color-mix(in srgb, var(--color-success) 12%, transparent); color: var(--color-success); }

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  overflow: hidden;
}
.qty__btn {
  width: 40px; height: 42px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.qty__btn:hover { background: var(--color-subtle); }
.qty__input {
  width: 46px;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  text-align: center;
  font-weight: 600;
  padding: 0;
  background: transparent;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { box-shadow: none; }
.qty--sm .qty__btn { width: 32px; height: 34px; font-size: 1rem; }
.qty--sm .qty__input { width: 36px; min-height: 34px; font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   7. Cards, badges, pills
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-card);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.4375rem;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--sale { background: var(--color-sale); color: #fff; }
.badge--new { background: var(--color-secondary); color: #fff; }
.badge--best { background: var(--color-accent); color: #12181F; }
.badge--custom { background: var(--color-primary); color: #fff; }
.badge--soldout { background: var(--color-subtle); color: var(--color-text-muted); }
.badge--outline { background: transparent; border: 1px solid var(--color-border-strong); color: var(--color-text-muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-card);
  font-size: 0.8438rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color var(--motion-fast), background-color var(--motion-fast);
}
.pill:hover { border-color: var(--color-text); color: var(--color-text); }
.pill--active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pill--active:hover { color: #fff; }

/* Stock status */
.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.stock::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.stock--in { color: var(--color-success); }
.stock--low { color: #B26A00; }
.stock--out { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   8. Ratings
   -------------------------------------------------------------------------- */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1;
}
.rating__stars {
  --pct: 0%;
  position: relative;
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--color-border-strong);
  white-space: nowrap;
}
.rating__stars::before { content: "★★★★★"; }
.rating__stars::after {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  width: var(--pct);
  overflow: hidden;
  color: var(--color-accent);
}
.rating__count { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   9. Price
   -------------------------------------------------------------------------- */
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4375rem;
  font-family: var(--font-heading);
}
.price__current {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.price--on-sale .price__current { color: var(--color-sale); }
.price__was {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.price__save {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-sale);
  text-transform: uppercase;
}
.price__unit { width: 100%; font-size: 0.75rem; color: var(--color-text-muted); }
.price--lg .price__current { font-size: 1.875rem; }
.price--lg .price__was { font-size: 1rem; }
.price--lg .price__save { font-size: 0.8125rem; }

/* --------------------------------------------------------------------------
   10. Product card
   -------------------------------------------------------------------------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-card);
  border: var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--motion-base), border-color var(--motion-base), transform var(--motion-base);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}

.product-card__media {
  position: relative;
  display: block;
  background: #fff;
  aspect-ratio: var(--card-ratio);
  overflow: hidden;
}
.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: var(--card-fit);
  object-position: center;
  padding: var(--card-img-pad);
  transition: opacity var(--motion-base), transform var(--motion-base);
}
.product-card__img--hover { opacity: 0; }
.product-card:hover .product-card__img--hover { opacity: 1; }
.product-card:hover .product-card__img--main.has-hover { opacity: 0; }
.product-card:hover .product-card__img--main:not(.has-hover) { transform: scale(1.035); }

.product-card__badges {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  z-index: 2;
  pointer-events: none;
}

.product-card__wishlist {
  position: absolute;
  top: 0.4rem; right: 0.4rem;
  z-index: 2;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--color-text-muted);
  transition: color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}
.product-card__wishlist svg { width: 17px; height: 17px; }
.product-card__wishlist:hover { color: var(--color-sale); border-color: var(--color-sale); }
.product-card__wishlist[aria-pressed="true"] { color: var(--color-sale); border-color: var(--color-sale); }
.product-card__wishlist[aria-pressed="true"] svg { fill: var(--color-sale); }

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  padding: 0.75rem 0.8125rem 0.875rem;
  flex: 1 1 auto;
}

.product-card__vendor {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9063rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.45em;
}
.product-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product-card__title a:hover { color: var(--color-primary); }

.product-card__price { margin-top: auto; padding-top: 0.25rem; }

.product-card__actions {
  position: relative;
  z-index: 2;
  padding: 0 0.8125rem 0.8125rem;
  display: flex;
  gap: 0.4rem;
}
.product-card__actions .btn { flex: 1; }

.product-card--compact .product-card__body { padding: 0.625rem; }

/* Horizontal (list view / cart line) variant */
.product-card--row {
  flex-direction: row;
  align-items: stretch;
}
.product-card--row .product-card__media { width: 180px; flex: none; aspect-ratio: 1 / 1; }
.product-card--row .product-card__body { padding: 1rem 1.125rem; }
.product-card--row .product-card__title { -webkit-line-clamp: 3; min-height: 0; font-size: 1rem; }

@media (max-width: 749px) {
  .product-card--row .product-card__media { width: 120px; }
  .product-card--row .product-card__body { padding: 0.75rem; }
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols-mobile, 2), minmax(0, 1fr));
  gap: var(--grid-gap);
}
@media (min-width: 750px) {
  .product-grid { grid-template-columns: repeat(var(--cols-tablet, 3), minmax(0, 1fr)); }
}
@media (min-width: 990px) {
  .product-grid { grid-template-columns: repeat(var(--cols-desktop, 4), minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   11. Carousel / horizontal scroller
   -------------------------------------------------------------------------- */
.carousel { position: relative; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--slide-w-mobile, 46%);
  gap: var(--grid-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }

@media (min-width: 750px) {
  .carousel__track { grid-auto-columns: var(--slide-w-tablet, 30%); }
}
@media (min-width: 990px) {
  .carousel__track { grid-auto-columns: var(--slide-w-desktop, 22%); }
  .carousel--fit .carousel__track {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(var(--cols-desktop, 5), minmax(0, 1fr));
    overflow: visible;
  }
}

.carousel__nav {
  display: none;
  gap: 0.375rem;
}
@media (min-width: 990px) {
  .carousel__nav { display: inline-flex; }
}
.carousel__btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-card);
  color: var(--color-text);
  transition: background-color var(--motion-fast), opacity var(--motion-fast);
}
.carousel__btn:hover { background: var(--color-subtle); }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; }
.carousel__btn svg { width: 18px; height: 18px; }

/* Bleed the scroller to the screen edge on mobile */
@media (max-width: 989px) {
  .carousel--bleed .carousel__track {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
}

/* --------------------------------------------------------------------------
   12. Announcement bar
   -------------------------------------------------------------------------- */
.announcement {
  background: var(--announcement-bg);
  color: var(--announcement-fg);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  text-align: center;
}
.announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 36px;
  padding-block: 0.4375rem;
}
.announcement a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
.announcement a:hover { color: inherit; opacity: 0.85; }
.announcement strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   13. Header
   -------------------------------------------------------------------------- */
.header-group { position: relative; z-index: 40; }
.header-group--sticky { position: sticky; top: 0; }

.utility-bar {
  background: var(--color-utility-bg);
  color: var(--color-utility-text);
  font-size: 0.75rem;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 34px;
}
.utility-bar__list { display: flex; align-items: center; gap: 1.125rem; }
.utility-bar a { color: inherit; display: inline-flex; align-items: center; gap: 0.3rem; }
.utility-bar a:hover { color: #fff; }
.utility-bar svg { width: 14px; height: 14px; }
@media (max-width: 989px) { .utility-bar { display: none; } }

.header {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-5);
  min-height: 72px;
  padding-block: 0.75rem;
}

.header__logo { display: inline-flex; align-items: center; flex: none; }
.header__logo img { max-height: var(--logo-height, 38px); width: auto; }
.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-header-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.header__logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--color-primary);
  display: inline-grid; place-items: center;
  color: #fff;
  font-size: 0.9375rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex: none;
}

.header-action {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-width: 58px;
  min-height: 48px;
  padding: 0.25rem 0.5rem;
  border: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  color: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color var(--motion-fast);
}
.header-action:hover { background: var(--color-subtle); color: inherit; }
.header-action svg { width: 22px; height: 22px; }
.header-action__label { white-space: nowrap; }

.header-action__count {
  position: absolute;
  top: 0.125rem;
  right: 0.5rem;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--color-sale);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.header-action__count[hidden] { display: none; }

/* Primary nav */
.navbar {
  position: relative;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
}
.navbar__inner { display: flex; align-items: center; gap: 0.25rem; }
.navbar__list { display: flex; align-items: stretch; gap: 0.125rem; flex-wrap: nowrap; overflow: visible; }

.nav-item { position: static; }
.nav-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  height: 46px;
  padding: 0 0.8125rem;
  border: 0;
  background: transparent;
  color: var(--color-header-text);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--motion-fast), border-color var(--motion-fast);
}
.nav-item__link:hover,
.nav-item__link[aria-expanded="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.nav-item__link svg { width: 14px; height: 14px; transition: transform var(--motion-fast); }
.nav-item__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-item--highlight .nav-item__link { color: var(--color-sale); }

@media (max-width: 989px) { .navbar { display: none; } }

/* --------------------------------------------------------------------------
   14. Mega menu
   -------------------------------------------------------------------------- */
.mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 50;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--motion-base), transform var(--motion-base), visibility var(--motion-base);
}
.mega[data-open="true"] { opacity: 1; visibility: visible; transform: none; }

.mega__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  padding-block: var(--space-5) var(--space-6);
}
.mega__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4) var(--space-5);
}
.mega__col-title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.mega__links li + li { margin-top: 0.0625rem; }
.mega__links a {
  display: block;
  padding: 0.3125rem 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.mega__links a:hover { color: var(--color-primary); }
.mega__links a.is-view-all { color: var(--color-primary); font-weight: 600; }

.mega__promos {
  display: grid;
  gap: var(--space-3);
  width: 300px;
}
.mega__promo {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-subtle);
}
.mega__promo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mega__promo-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.875rem 1rem;
  background: linear-gradient(to top, rgba(10,14,19,0.88), rgba(10,14,19,0));
  color: #fff;
}
.mega__promo-title { font-family: var(--font-heading); font-weight: 700; font-size: 0.9375rem; }
.mega__promo-sub { font-size: 0.75rem; opacity: 0.85; }

/* Category-tile style mega column */
.mega__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-3); }
.mega__tile { text-align: center; font-size: 0.8125rem; }
.mega__tile img { border-radius: var(--radius-sm); aspect-ratio: 1/1; object-fit: cover; margin-bottom: 0.4rem; }

.mega-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-base), visibility var(--motion-base);
  z-index: 39;
}
.mega-overlay[data-open="true"] { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   15. Search
   -------------------------------------------------------------------------- */
.search-bar { position: relative; width: 100%; }

.search-bar__form {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  overflow: hidden;
  transition: box-shadow var(--motion-fast);
}
.search-bar__form:focus-within { box-shadow: 0 0 0 3px var(--color-primary-fade); }

.search-bar__input {
  flex: 1 1 auto;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0.625rem 0.9375rem;
  font-size: 0.9375rem;
  background: transparent;
}
.search-bar__input:focus { box-shadow: none; }

.search-bar__scope {
  flex: none;
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-subtle);
  font-size: 0.8125rem;
  font-weight: 600;
  padding-inline: 0.75rem 1.9rem;
  width: auto;
  max-width: 150px;
}
.search-bar__scope:focus { box-shadow: none; }

.search-bar__submit {
  flex: none;
  width: 56px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: filter var(--motion-fast);
}
.search-bar__submit:hover { filter: brightness(0.92); }
.search-bar__submit svg { width: 21px; height: 21px; }

/* Predictive results panel */
.search-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 60;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  display: none;
}
.search-panel[data-open="true"] { display: block; }

.search-panel__group + .search-panel__group { border-top: 1px solid var(--color-border); }
.search-panel__heading {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.search-panel__list { padding-bottom: 0.5rem; }
.search-panel__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9063rem;
}
.search-panel__item:hover,
.search-panel__item:focus,
.search-panel__item[aria-selected="true"] { background: var(--color-subtle); color: var(--color-text); }
.search-panel__item img {
  width: 46px; height: 46px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex: none;
}
.search-panel__item-text { min-width: 0; flex: 1; }
.search-panel__item-title {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-panel__item .price__current { font-size: 0.875rem; }
.search-panel__footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-subtle);
}
.search-panel__terms { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.875rem; }

/* Mobile search row */
.mobile-search { display: none; padding-bottom: 0.75rem; }
@media (max-width: 989px) { .mobile-search { display: block; } }

/* --------------------------------------------------------------------------
   16. Mobile header & drawer nav
   -------------------------------------------------------------------------- */
@media (max-width: 989px) {
  .header__inner {
    grid-template-columns: auto auto 1fr auto;
    gap: 0.25rem;
    min-height: 60px;
    padding-block: 0.5rem;
  }
  .header__search-desktop { display: none; }
  .header-action { min-width: 46px; }
  .header-action__label { display: none; }
  .header__logo-text { font-size: 1.125rem; }
}
@media (min-width: 990px) {
  .header__burger { display: none; }
}

.drawer {
  position: fixed;
  top: 0; bottom: 0;
  z-index: 100;
  width: min(400px, 88vw);
  background: var(--color-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--motion-base);
  box-shadow: var(--shadow-xl);
}
.drawer--left  { left: 0;  transform: translateX(-102%); }
.drawer--right { right: 0; transform: translateX(102%); }
.drawer[data-open="true"] { transform: none; }
.drawer--wide { width: min(520px, 92vw); }

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
  flex: none;
}
.drawer__title { margin: 0; font-size: 1.0625rem; }
.drawer__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.drawer__footer {
  flex: none;
  padding: 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-card);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(15,23,32,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-base), visibility var(--motion-base);
}
.drawer-overlay[data-open="true"] { opacity: 1; visibility: visible; }

/* Accordion nav inside mobile drawer */
.nav-accordion__item { border-bottom: 1px solid var(--color-border); }
.nav-accordion__trigger,
.nav-accordion__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 0;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
}
.nav-accordion__trigger svg { width: 18px; height: 18px; flex: none; transition: transform var(--motion-fast); color: var(--color-text-muted); }
.nav-accordion__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-accordion__panel { display: none; padding: 0 1rem 0.75rem; }
.nav-accordion__panel[data-open="true"] { display: block; }
.nav-accordion__group + .nav-accordion__group { margin-top: 0.625rem; }
.nav-accordion__group-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-muted);
  margin: 0.5rem 0 0.25rem;
}
.nav-accordion__panel a {
  display: block;
  padding: 0.5rem 0.25rem;
  font-size: 0.9063rem;
  color: var(--color-text-muted);
  min-height: 40px;
}
.nav-accordion__panel a:hover { color: var(--color-primary); }

/* Sticky bottom bar (mobile) */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: none;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(15,23,32,0.06);
}
@media (max-width: 749px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 60px; }
}
.bottom-nav__list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.bottom-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1875rem;
  min-height: 56px;
  border: 0;
  background: transparent;
  font-size: 0.6563rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.bottom-nav__item svg { width: 21px; height: 21px; }
.bottom-nav__item[aria-current="page"] { color: var(--color-primary); }
.bottom-nav__item .header-action__count { top: 0.3rem; right: 50%; margin-right: -22px; }

/* --------------------------------------------------------------------------
   17. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; }
.hero__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--color-subtle); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: var(--hero-overlay, transparent); }

.hero--banner .hero__media { aspect-ratio: 21 / 8; }
.hero--banner .hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 620px;
}

.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.hero--split .hero__media { aspect-ratio: 4 / 3; }
.hero--split .hero__content { display: flex; flex-direction: column; gap: var(--space-3); }

.hero__badge {
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #12181F;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.hero__title { margin: 0; }
.hero__text { margin: 0; font-size: 1.0625rem; color: var(--color-text-muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.25rem; }

.hero--light .hero__title,
.hero--light .hero__text { color: #fff; }
.hero--light .hero__text { opacity: 0.9; }

@media (max-width: 749px) {
  .hero--banner .hero__media { aspect-ratio: 3 / 4; max-height: 70vh; }
  .hero--banner .hero__content { max-width: none; justify-content: flex-end; padding-bottom: 2rem; }
  .hero--split { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero--split .hero__media { aspect-ratio: 16 / 10; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* Hero + rail combo (marketplace layout) */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--grid-gap);
  align-items: stretch;
}
.hero-layout__rail { display: grid; gap: var(--grid-gap); align-content: start; }
@media (max-width: 989px) { .hero-layout { grid-template-columns: 1fr; } .hero-layout__rail { display: none; } }

/* --------------------------------------------------------------------------
   18. Category cards
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(var(--cat-cols-mobile, 3), minmax(0, 1fr));
  gap: var(--grid-gap);
}
@media (min-width: 750px) { .category-grid { grid-template-columns: repeat(var(--cat-cols-tablet, 4), minmax(0, 1fr)); } }
@media (min-width: 990px) { .category-grid { grid-template-columns: repeat(var(--cat-cols-desktop, 6), minmax(0, 1fr)); } }

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: var(--space-3) 0.5rem;
  background: var(--color-card);
  border: var(--card-border);
  border-radius: var(--radius);
  text-align: center;
  transition: box-shadow var(--motion-base), border-color var(--motion-base), transform var(--motion-base);
}
.category-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.category-card__media {
  width: 100%;
  max-width: 116px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-subtle);
  display: grid; place-items: center;
}
.category-card__media img { width: 100%; height: 100%; object-fit: cover; }
.category-card__title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.category-card__desc { font-size: 0.75rem; color: var(--color-text-muted); margin: 0; }

.category-card--tile { padding: 0; overflow: hidden; align-items: stretch; }
.category-card--tile .category-card__media { max-width: none; border-radius: 0; aspect-ratio: 4 / 3; }
.category-card--tile .category-card__body { padding: 0.75rem; text-align: left; }

/* --------------------------------------------------------------------------
   19. Deals / countdown
   -------------------------------------------------------------------------- */
.deals {
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--card-border);
  background: var(--color-card);
}
.deals__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  background: var(--deals-head-bg, var(--color-secondary));
  color: var(--deals-head-fg, #fff);
}
.deals__title { margin: 0; color: inherit; }
.deals__sub { margin: 0.2rem 0 0; font-size: 0.9063rem; opacity: 0.82; }
.deals__body { padding: var(--space-4); }

.countdown {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.countdown__unit {
  min-width: 46px;
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.14);
  text-align: center;
  line-height: 1.1;
}
.countdown--dark .countdown__unit { background: var(--color-subtle); }
.countdown__num { display: block; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown__label { display: block; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.countdown__sep { font-weight: 700; opacity: 0.5; }

/* --------------------------------------------------------------------------
   20. Promo banner
   -------------------------------------------------------------------------- */
.promo {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-secondary);
  color: #fff;
}
.promo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__content {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 560px;
  display: flex; flex-direction: column; gap: var(--space-3);
  align-items: flex-start;
}
.promo__title { color: inherit; margin: 0; }
.promo__text { margin: 0; opacity: 0.88; }

.promo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
@media (max-width: 749px) { .promo-duo { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   21. Trust badges
   -------------------------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 750px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-4) var(--space-3);
  background: var(--color-card);
}
.trust__icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primary-fade);
  color: var(--color-primary);
}
.trust__icon svg { width: 21px; height: 21px; }
.trust__title { display: block; font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; margin: 0; }
.trust__text { display: block; font-size: 0.75rem; color: var(--color-text-muted); margin: 0.1rem 0 0; }

/* --------------------------------------------------------------------------
   22. Brands
   -------------------------------------------------------------------------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 750px) { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 990px) { .brand-grid { grid-template-columns: repeat(var(--brand-cols, 6), minmax(0, 1fr)); } }
.brand-card {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  min-height: 96px;
  padding: var(--space-3);
  background: var(--color-card);
  transition: background-color var(--motion-fast);
}
.brand-card:hover { background: var(--color-subtle); color: var(--color-text); }
.brand-card img {
  max-height: 40px; width: auto;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter var(--motion-base), opacity var(--motion-base);
}
.brand-card:hover img { filter: none; opacity: 1; }
.brand-card__name { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-text-muted); }
.brand-card:hover .brand-card__name { color: var(--color-text); }

/* --------------------------------------------------------------------------
   23. Reviews
   -------------------------------------------------------------------------- */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4);
  background: var(--color-card);
  border: var(--card-border);
  border-radius: var(--radius);
}
.reviews-summary__score { font-family: var(--font-heading); font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  height: 100%;
  padding: var(--space-4);
  background: var(--color-card);
  border: var(--card-border);
  border-radius: var(--radius);
}
.review-card__text { font-size: 0.9375rem; line-height: 1.55; margin: 0; }
.review-card__meta { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; font-size: 0.8125rem; }
.review-card__avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: var(--color-primary-fade);
  color: var(--color-primary);
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.8125rem;
}
.review-card__name { font-weight: 600; }
.review-card__verified { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--color-success); font-size: 0.75rem; font-weight: 600; }
.review-card__verified svg { width: 13px; height: 13px; }
.review-card__img { border-radius: var(--radius-sm); aspect-ratio: 16/10; object-fit: cover; }

/* --------------------------------------------------------------------------
   24. Newsletter
   -------------------------------------------------------------------------- */
.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
  border-radius: var(--radius);
  background: var(--color-secondary);
  color: #fff;
}
.newsletter__title { color: #fff; margin: 0; }
.newsletter__text { margin: 0.4rem 0 0; opacity: 0.82; }
.newsletter__form { display: flex; gap: 0.5rem; }
.newsletter__form input { flex: 1; border-color: transparent; }
.newsletter__note { font-size: 0.75rem; opacity: 0.66; margin: 0.6rem 0 0; }
@media (max-width: 749px) {
  .newsletter { grid-template-columns: 1fr; padding: var(--space-5) var(--space-4); }
  .newsletter__form { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   25. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: var(--section-spacing);
}
.footer a { color: inherit; }
.footer a:hover { color: #fff; }

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  padding-block: var(--space-7) var(--space-6);
}
@media (max-width: 989px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 749px) { .footer__top { grid-template-columns: 1fr; gap: 0; padding-block: var(--space-5); } }

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.6rem;
}
.footer__blurb { font-size: 0.875rem; max-width: 34ch; margin: 0 0 var(--space-3); }

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.875rem;
}
.footer__links li + li { margin-top: 0.5rem; }
.footer__links a { font-size: 0.875rem; }

/* Collapsible footer columns on mobile */
@media (max-width: 749px) {
  .footer__col { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .footer__col-title {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; margin: 0;
    padding: 0.9375rem 0;
    background: none; border: 0; color: #fff;
    font-size: 0.8125rem; text-align: left;
  }
  .footer__col-title svg { width: 16px; height: 16px; transition: transform var(--motion-fast); }
  .footer__col-title[aria-expanded="true"] svg { transform: rotate(180deg); }
  .footer__links { display: none; padding-bottom: 0.875rem; }
  .footer__links[data-open="true"] { display: block; }
  .footer__brand { padding-bottom: var(--space-4); }
}

.footer__socials { display: flex; gap: 0.5rem; }
.footer__social {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  transition: background-color var(--motion-fast), border-color var(--motion-fast);
}
.footer__social:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.footer__social svg { width: 17px; height: 17px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8125rem;
}
.footer__payments { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.payment-chip {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 0.5rem;
  border-radius: 4px;
  background: #fff;
  color: #12181F;
  font-size: 0.6563rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer__payments svg { height: 26px; width: auto; }

/* --------------------------------------------------------------------------
   26. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding-block: var(--space-3);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.375rem; }
.breadcrumbs svg { width: 13px; height: 13px; opacity: 0.55; }
.breadcrumbs a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* --------------------------------------------------------------------------
   27. Collection page
   -------------------------------------------------------------------------- */
.collection-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 989px) { .collection-layout { grid-template-columns: 1fr; gap: var(--space-4); } }

.collection-hero {
  padding: var(--space-4) 0 var(--space-5);
}
.collection-hero__title { margin: 0 0 0.4rem; }
.collection-hero__desc { color: var(--color-text-muted); max-width: 70ch; font-size: 0.9375rem; }
.collection-hero--image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: #fff;
  margin-bottom: var(--space-5);
}
.collection-hero--image .collection-hero__title,
.collection-hero--image .collection-hero__desc { color: #fff; }
.collection-hero--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-hero--image .collection-hero__inner { position: relative; }
.collection-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,32,0.78), rgba(15,23,32,0.25)); }
.collection-hero--image .collection-hero__inner { z-index: 1; }

/* Filter sidebar */
.facets {
  position: sticky;
  top: var(--sticky-offset, 90px);
  max-height: calc(100vh - var(--sticky-offset, 90px) - 16px);
  overflow-y: auto;
  padding-right: 4px;
}
@media (max-width: 989px) {
  .facets { position: static; max-height: none; overflow: visible; }
}
.facets__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.75rem; margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}
.facets__head h2 { margin: 0; font-size: 1rem; }
.facets__clear { font-size: 0.8125rem; color: var(--color-primary); font-weight: 600; background: none; border: 0; padding: 0; }
.facets__clear:hover { text-decoration: underline; }

.facet { border-bottom: 1px solid var(--color-border); }
.facet__summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 0.875rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
}
.facet__summary::-webkit-details-marker { display: none; }
.facet__summary svg { width: 16px; height: 16px; color: var(--color-text-muted); transition: transform var(--motion-fast); }
.facet[open] > .facet__summary svg { transform: rotate(180deg); }
.facet__panel { padding-bottom: 0.875rem; max-height: 280px; overflow-y: auto; }
.facet__count { color: var(--color-text-muted); font-size: 0.8125rem; }
.facet input:disabled + span { opacity: 0.4; }

.facet-price { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.875rem; }
.facet-price input { min-height: 38px; font-size: 0.875rem; }

.active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--space-4); }
.active-filter {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.4rem 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--color-primary-fade);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 500;
}
.active-filter svg { width: 13px; height: 13px; }

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-bottom: var(--space-4);
}
.collection-toolbar__count { font-size: 0.875rem; color: var(--color-text-muted); }
.collection-toolbar__right { display: flex; align-items: center; gap: 0.5rem; }
.collection-toolbar select { min-height: 40px; width: auto; min-width: 190px; font-size: 0.875rem; }

.mobile-filter-bar { display: none; gap: 0.5rem; padding-bottom: var(--space-4); }
.mobile-filter-bar .btn { flex: 1; }
@media (max-width: 989px) {
  .mobile-filter-bar { display: flex; }
  .facets-desktop { display: none; }
  .collection-toolbar__right { display: none; }
}

.empty-state {
  text-align: center;
  padding: var(--space-7) var(--space-4);
  background: var(--color-card);
  border: var(--card-border);
  border-radius: var(--radius);
}
.empty-state svg { width: 46px; height: 46px; color: var(--color-text-muted); margin: 0 auto var(--space-3); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.3rem; padding-top: var(--space-6); flex-wrap: wrap; }
.pagination__item {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.6rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  font-size: 0.875rem;
  font-weight: 600;
}
.pagination__item svg { width: 16px; height: 16px; }
.pagination__item:hover { border-color: var(--color-text); color: var(--color-text); }
.pagination__item[aria-current="page"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination__item--disabled { opacity: 0.4; pointer-events: none; }

/* --------------------------------------------------------------------------
   28. Product page
   -------------------------------------------------------------------------- */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-6);
  align-items: start;
  padding-bottom: var(--space-6);
}
@media (max-width: 989px) { .product-layout { grid-template-columns: 1fr; gap: var(--space-4); } }

/* Gallery */
.gallery { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
@media (max-width: 749px) { .gallery { grid-template-columns: 1fr; } }

.gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
}
@media (max-width: 749px) { .gallery__thumbs { flex-direction: row; overflow-x: auto; max-height: none; } }

.gallery__thumb {
  flex: none;
  width: 78px; height: 78px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb[aria-current="true"] { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.gallery__thumb--video { position: relative; }
.gallery__thumb--video::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-left: 12px solid rgba(255,255,255,0.95);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
}

.gallery__stage {
  position: relative;
  background: #fff;
  border: var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}
.gallery__slide img,
.gallery__slide video,
.gallery__slide iframe { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery__slide--zoomable img { cursor: zoom-in; transition: transform 0.25s ease; }
.gallery__slide--zoomable.is-zoomed img { cursor: zoom-out; transform: scale(1.85); }

.gallery__counter {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15,23,32,0.72);
  color: #fff;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.gallery__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  display: none; place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 750px) { .gallery__arrow { display: grid; } }
.gallery__arrow--prev { left: 0.75rem; }
.gallery__arrow--next { right: 0.75rem; }
.gallery__arrow svg { width: 18px; height: 18px; }
.gallery__badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; z-index: 2; }

/* Product info column */
.product-info { display: flex; flex-direction: column; gap: var(--space-3); }
.product-info__vendor {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-primary); margin: 0;
}
.product-info__title { margin: 0; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.25; }
.product-info__meta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; font-size: 0.8125rem; color: var(--color-text-muted); }
.product-info__sku { font-variant-numeric: tabular-nums; }
.product-info__short { color: var(--color-text-muted); font-size: 0.9375rem; }

.product-price-block {
  padding: var(--space-3) 0;
  border-block: 1px solid var(--color-border);
}
.product-savings { font-size: 0.875rem; color: var(--color-sale); font-weight: 600; margin-top: 0.35rem; }
.product-tax-note { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.35rem; }

.variant-group { display: flex; flex-direction: column; gap: 0.5rem; }
.variant-group__label { font-size: 0.8125rem; font-weight: 600; }
.variant-group__label span { color: var(--color-text-muted); font-weight: 400; }
.variant-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.variant-option { position: relative; }
.variant-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.variant-option span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 42px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--motion-fast), background-color var(--motion-fast);
}
.variant-option input:checked + span { border-color: var(--color-primary); background: var(--color-primary-fade); color: var(--color-primary); font-weight: 600; box-shadow: inset 0 0 0 1px var(--color-primary); }
.variant-option input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.variant-option input:disabled + span { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.variant-option--swatch span { width: 42px; min-width: 42px; padding: 0; border-radius: 50%; background: var(--swatch, #ccc); }
.variant-option--swatch input:checked + span { box-shadow: 0 0 0 2px var(--color-card), 0 0 0 4px var(--color-primary); }

.product-buy { display: flex; gap: 0.625rem; align-items: stretch; }
.product-buy .btn { flex: 1; }
.product-form { display: flex; flex-direction: column; gap: 0.75rem; }

.wishlist-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 0; padding: 0.5rem 0;
  font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted);
}
.wishlist-link:hover { color: var(--color-sale); }
.wishlist-link svg { width: 18px; height: 18px; }
.wishlist-link[aria-pressed="true"] { color: var(--color-sale); }
.wishlist-link[aria-pressed="true"] svg { fill: currentColor; }

.delivery-box {
  display: grid;
  gap: 0.75rem;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-subtle);
}
.delivery-row { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.875rem; }
.delivery-row svg { width: 19px; height: 19px; flex: none; color: var(--color-primary); margin-top: 1px; }
.delivery-row > span { display: block; }
.delivery-row strong { display: block; font-size: 0.875rem; }
.delivery-row span { color: var(--color-text-muted); font-size: 0.8125rem; }

/* Accordions */
.accordion { border-top: 1px solid var(--color-border); }
.accordion:last-of-type { border-bottom: 1px solid var(--color-border); }
.accordion__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary svg { width: 18px; height: 18px; flex: none; color: var(--color-text-muted); transition: transform var(--motion-fast); }
.accordion[open] > .accordion__summary svg { transform: rotate(180deg); }
.accordion__panel { padding-bottom: 1.125rem; font-size: 0.9375rem; color: var(--color-text-muted); }
.accordion__panel > *:first-child { margin-top: 0; }

/* Spec table */
.spec-table { font-size: 0.875rem; }
.spec-table tr { border-bottom: 1px solid var(--color-border); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left; font-weight: 600; padding: 0.6rem 1rem 0.6rem 0;
  width: 40%; color: var(--color-text-muted); vertical-align: top;
}
.spec-table td { padding: 0.6rem 0; }

/* Sticky mobile buy bar */
.sticky-buy {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 46;
  display: none;
  gap: 0.625rem;
  align-items: center;
  padding: 0.625rem var(--gutter);
  padding-bottom: calc(0.625rem + env(safe-area-inset-bottom));
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -3px 14px rgba(15,23,32,0.09);
  transform: translateY(110%);
  transition: transform var(--motion-base);
}
.sticky-buy[data-visible="true"] { transform: none; }
@media (max-width: 749px) {
  .sticky-buy { display: flex; }
  body.single-product { padding-bottom: 74px; }
  body.single-product .bottom-nav { display: none; }
}
.sticky-buy__info { min-width: 0; flex: 1; }
.sticky-buy__title { font-size: 0.8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy .btn { flex: none; min-width: 140px; }

/* --------------------------------------------------------------------------
   29. Cart
   -------------------------------------------------------------------------- */
.cart-progress { padding: 0.875rem 1rem; background: var(--color-primary-fade); font-size: 0.8125rem; }
.cart-progress__text { margin: 0 0 0.5rem; }
.cart-progress__text strong { color: var(--color-primary); }
.cart-progress__track { height: 6px; border-radius: 999px; background: rgba(0,0,0,0.09); overflow: hidden; }
.cart-progress__fill { height: 100%; background: var(--color-primary); border-radius: 999px; transition: width 0.4s ease; }
.cart-progress--complete { background: color-mix(in srgb, var(--color-success) 12%, transparent); }
.cart-progress--complete .cart-progress__fill { background: var(--color-success); }
.cart-progress--complete .cart-progress__text strong { color: var(--color-success); }

.cart-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 0.875rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-line__img {
  width: 84px; height: 84px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.cart-line__title { font-size: 0.9063rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line__variant { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.2rem; }
.cart-line__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.6rem; }
.cart-line__remove { background: none; border: 0; padding: 0; font-size: 0.75rem; color: var(--color-text-muted); text-decoration: underline; }
.cart-line__remove:hover { color: var(--color-sale); }
.cart-line__price { text-align: right; white-space: nowrap; }
.cart-line__discount { font-size: 0.75rem; color: var(--color-success); margin-top: 0.2rem; }

.cart-summary { display: grid; gap: 0.625rem; }
.cart-summary__row { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.9063rem; }
.cart-summary__row--total { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; padding-top: 0.625rem; border-top: 1px solid var(--color-border); }
.cart-summary__note { font-size: 0.75rem; color: var(--color-text-muted); text-align: center; }

.cart-page-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: var(--space-5); align-items: start; }
@media (max-width: 989px) { .cart-page-layout { grid-template-columns: 1fr; } }
.cart-aside { position: sticky; top: var(--sticky-offset, 90px); padding: var(--space-4); }

/* --------------------------------------------------------------------------
   30. Modal / toast
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.modal[data-open="true"] { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,32,0.55); }
.modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

.toast-stack {
  position: fixed;
  bottom: 1rem; right: 1rem;
  z-index: 120;
  display: grid;
  gap: 0.5rem;
  max-width: min(340px, calc(100vw - 2rem));
}
.toast {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.22s ease;
}
.toast svg { width: 18px; height: 18px; flex: none; }
.toast--error { background: var(--color-sale); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 749px) { .toast-stack { bottom: 72px; left: 1rem; right: 1rem; max-width: none; } }

/* --------------------------------------------------------------------------
   31. Misc / utility
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, var(--color-subtle) 25%, var(--color-border) 37%, var(--color-subtle) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
html.no-motion .reveal { opacity: 1; transform: none; }

.placeholder-svg { width: 100%; height: 100%; background: var(--color-subtle); fill: var(--color-border-strong); }

.article-card { display: flex; flex-direction: column; height: 100%; background: var(--color-card); border: var(--card-border); border-radius: var(--radius); overflow: hidden; }
.article-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.article-card__date { font-size: 0.75rem; color: var(--color-text-muted); }

.account-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: var(--space-5); align-items: start; }
@media (max-width: 749px) { .account-layout { grid-template-columns: 1fr; } }
.account-nav a { display: block; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.9063rem; font-weight: 500; }
.account-nav a:hover, .account-nav a[aria-current="page"] { background: var(--color-subtle); color: var(--color-primary); }

.auth-card { max-width: 440px; margin-inline: auto; padding: var(--space-5); }

/* Print */
@media print {
  .header-group, .footer, .bottom-nav, .sticky-buy, .drawer, .drawer-overlay, .announcement { display: none !important; }
  body { background: #fff; }
}


/* --------------------------------------------------------------------------
   WordPress integration
   -------------------------------------------------------------------------- */
.admin-bar .header-group--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .header-group--sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header-group--sticky { top: 0; } }
.drawer { z-index: 300; }
.drawer-overlay { z-index: 299; }
.bottom-nav { z-index: 190; }
@media (min-width: 750px) {
  .footer__col-title { display: block; background: none; border: 0; padding: 0; text-align: left; cursor: default; pointer-events: none; }
  .footer__col-title svg { display: none; }
}
.skip-to-content { z-index: 1000; }
