/* ============================================================================
   MATTE BOUTIQUE — DESIGN SYSTEM
   Editorial, refined, premium. Mobile-app-inspired homepage sections.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   01 — TOKENS
---------------------------------------------------------------------------- */
:root {
  --color-bg:           #FAF8F5;
  --color-surface:      #FFFFFF;
  --color-surface-alt:  #F2EEE7;
  --color-surface-mute: #ECE7DE;

  --color-ink:          #161512;
  --color-ink-2:        #3A3631;
  --color-ink-3:        #6E6862;
  --color-ink-4:        #A39C92;

  --color-line:         #E6E2DA;
  --color-line-2:       #D8D2C6;
  --color-line-3:       #C4BCAE;

  --color-accent:       #549437;
  --color-accent-hover: #3d7228;
  --color-accent-soft:  #e8f4e1;

  --color-sage:         #A8B0A0;
  --color-sage-soft:    #DDE2D5;
  --color-blush:        #E8D6CC;
  --color-clay:         #E8DCC8;
  --color-ivory:        #F6F1EA;

  --color-success:      #4A6B3F;
  --color-error:        #A8442E;
  --color-warning:      #C68F3E;
  --color-sale:         #A8442E;
  --color-info:         #4F6E89;

  /* Mobile bottom nav — overridden per-site via Admin → Brand Colours */
  --color-mob-nav-bg:         rgba(22, 21, 18, 0.93);
  --color-mob-nav-border:     rgba(255, 255, 255, 0.06);
  --color-mob-nav-item:       rgba(255, 255, 255, 0.58);
  --color-mob-nav-item-hover: rgba(255, 255, 255, 0.92);
  --color-mob-nav-active:     #549437;
  --color-mob-nav-center-bg:  #549437;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-display:   clamp(2.75rem, 6vw, 4.75rem);
  --fs-h1:        clamp(2rem, 4vw, 3rem);
  --fs-h2:        clamp(1.625rem, 3vw, 2.25rem);
  --fs-h3:        1.25rem;
  --fs-body:      0.9375rem;
  --fs-small:     0.8125rem;
  --fs-tiny:      0.6875rem;

  --lh-display:   1.04;
  --lh-h1:        1.1;
  --lh-h2:        1.15;
  --lh-h3:        1.35;
  --lh-body:      1.6;
  --lh-tight:     1.4;

  --tracking-tight:    -0.012em;
  --tracking-normal:   0;
  --tracking-wide:     0.04em;
  --tracking-eyebrow:  0.22em;
  --tracking-cta:      0.18em;

  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  48px;
  --space-6:  64px;
  --space-7:  96px;
  --space-8:  128px;

  --radius-card:   2px;
  --radius-tile:   4px;
  --radius-input:  999px;
  --radius-square: 0;
  --radius-pill:   999px;
  --radius-modal:  6px;
  --radius-soft:   18px;
  --radius-xl:     24px;

  --ease:          cubic-bezier(.22, .61, .36, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
  --t-fast:        .18s;
  --t-base:        .28s;
  --t-slow:        .55s;

  --shadow-modal:  0 24px 60px -20px rgba(22, 21, 18, .25), 0 2px 6px rgba(22, 21, 18, .04);
  --shadow-drawer: -12px 0 40px -8px rgba(22, 21, 18, .12);
  --shadow-soft:   0 1px 0 rgba(22, 21, 18, .04);
  --shadow-card:   0 1px 2px rgba(22, 21, 18, .04), 0 6px 24px -12px rgba(22, 21, 18, .08);

  --container:     1280px;
  --header-h:      72px;

  --brand:    var(--color-accent);
  --dark:     var(--color-ink);
  --mid:      var(--color-ink-3);
  --offwhite: var(--color-bg);
}

/* ----------------------------------------------------------------------------
   02 — RESET & BASE
---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--color-accent); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--color-accent); color: #fff; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ----------------------------------------------------------------------------
   03 — TYPOGRAPHY
---------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin: 0;
}
.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-tight);
  font-weight: 400;
}
.t-display .italic, .t-display em {
  font-style: italic; font-weight: 400; color: var(--color-accent);
}
.t-h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 500; letter-spacing: var(--tracking-tight); }
.t-h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 500; letter-spacing: var(--tracking-tight); }
.t-h3 { font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 500; }
.t-body  { font-family: var(--font-body); font-size: var(--fs-body);  line-height: var(--lh-body); }
.t-small { font-family: var(--font-body); font-size: var(--fs-small); line-height: var(--lh-body); color: var(--color-ink-3); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-ink-3);
  display: inline-block;
}
.display {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-display);
  font-weight: 500;
}

/* ----------------------------------------------------------------------------
   04 — LAYOUT PRIMITIVES
---------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-2);
}
@media (min-width: 768px)  { .container { padding-inline: var(--space-3); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-4); } }

.section { padding-block: var(--space-5); }
@media (min-width: 768px)  { .section { padding-block: var(--space-6); } }
@media (min-width: 1024px) { .section { padding-block: var(--space-7); } }

.section-tight { padding-block: var(--space-4); }
@media (min-width: 768px) { .section-tight { padding-block: var(--space-5); } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.section-head h2,
.section-head .t-display { margin: 0; }
.section-head .eyebrow { margin-bottom: 6px; }

.section-head--center {
  text-align: center;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-5);
}

.section-head--split {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  margin-bottom: var(--space-4);
}
@media (min-width: 768px) {
  .section-head--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
  }
}

.hairline { height: 1px; background: var(--color-line); border: 0; margin: 0; }

/* ----------------------------------------------------------------------------
   05 — BUTTONS
---------------------------------------------------------------------------- */
.m-btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: var(--tracking-cta);
  text-transform: uppercase;
  padding: 14px 28px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              opacity var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.m-btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active { transform: translateY(1px); }

.btn-primary, .m-btn--primary {
  background: var(--color-ink); color: #fff; border-color: var(--color-ink);
}
.btn-primary:hover, .m-btn--primary:hover {
  background: var(--color-accent); border-color: var(--color-accent); color: #fff;
}

.btn-accent, .m-btn--accent {
  background: var(--color-accent); color: #fff; border-color: var(--color-accent);
}
.btn-accent:hover, .m-btn--accent:hover {
  background: var(--color-accent-hover); border-color: var(--color-accent-hover);
}

.btn-secondary, .m-btn--secondary {
  background: transparent; color: var(--color-ink); border-color: var(--color-ink);
}
.btn-secondary:hover, .m-btn--secondary:hover {
  background: var(--color-ink); color: #fff;
}

.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover {
  background: #fff; color: var(--color-ink); border-color: #fff;
}

.btn-ghost, .m-btn--ghost {
  background: transparent; color: var(--color-ink); border-color: transparent;
  padding-inline: 12px;
}
.btn-ghost:hover, .m-btn--ghost:hover { color: var(--color-accent); }

.btn-link, .m-btn--link {
  padding: 0 0 6px 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
}
.btn-link:hover, .m-btn--link:hover {
  color: var(--color-accent); border-bottom-color: var(--color-accent);
}

.btn-link-light {
  padding: 0 0 6px 0;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.5);
  background: transparent;
  color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-tiny); font-weight: 600;
  letter-spacing: var(--tracking-cta); text-transform: uppercase;
  text-decoration: none;
}
.btn-link-light:hover { border-bottom-color: #fff; }

.m-btn--sm { padding: 10px 18px; min-height: 38px; font-size: 10px; }
.m-btn--lg { padding: 16px 36px; min-height: 54px; }

.m-btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink-2);
  transition: all var(--t-base) var(--ease);
}
.icon-btn:hover {
  background: var(--color-ink); color: #fff; border-color: var(--color-ink);
}

/* ----------------------------------------------------------------------------
   06 — FORM CONTROLS
---------------------------------------------------------------------------- */
.m-input, .m-select, .m-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line-3);
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  min-height: 48px;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
  outline: none;
}
.m-input::placeholder, .m-textarea::placeholder { color: var(--color-ink-4); }
.m-input:focus, .m-select:focus, .m-textarea:focus {
  border-color: var(--color-ink); background: var(--color-surface);
}
.m-textarea {
  border-radius: 4px; min-height: 120px; padding: 14px 18px;
  resize: vertical; line-height: var(--lh-body);
}
.m-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23161512' stroke-width='1.5' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 11px 7px;
}

.m-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-tiny); font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-ink-3);
  margin-bottom: 10px;
}

.m-help  { font-size: var(--fs-small); color: var(--color-ink-3); margin-top: 6px; }
.m-error { font-size: var(--fs-small); color: var(--color-error); margin-top: 6px; }

.m-checkbox, .m-radio {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); cursor: pointer; user-select: none;
  color: var(--color-ink-2);
}
.m-checkbox input[type="checkbox"], .m-radio input[type="radio"] {
  width: 18px; height: 18px; accent-color: var(--color-accent); cursor: pointer;
}

.ns-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  border: 1px solid var(--color-line-3);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  min-height: 48px;
  color: var(--color-ink);
  outline: none;
  transition: border-color var(--t-base) var(--ease);
}
.ns-input::placeholder { color: var(--color-ink-4); }
.ns-input:focus { border-color: var(--color-ink); }

/* ----------------------------------------------------------------------------
   07 — BADGES
---------------------------------------------------------------------------- */
.m-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: var(--radius-square);
  background: var(--color-ink);
  color: #fff;
  line-height: 1;
}
.m-badge--new      { background: var(--color-ink); }
.m-badge--sale     { background: var(--color-sale); }
.m-badge--trending { background: var(--color-info); }
.m-badge--featured { background: var(--color-accent); }
.m-badge--oos      { background: rgba(22,21,18,.6); }
.m-badge--low      { background: var(--color-warning); }
.m-badge--soft     { background: var(--color-surface-alt); color: var(--color-ink); }
.m-badge--outline  { background: transparent; color: var(--color-ink); border: 1px solid var(--color-line-2); }

/* ----------------------------------------------------------------------------
   08 — PRODUCT CARD (uniform, app-style soft rounded)
---------------------------------------------------------------------------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.product-card .pc-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface-alt);
  border-radius: var(--radius-soft);
  margin-bottom: 12px;
}

.product-card .pc-media img.pc-main-img,
.product-card .pc-media img.pc-hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--t-slow) var(--ease), transform 800ms var(--ease-out);
}
.product-card .pc-media img.pc-hover-img { opacity: 0; }

@media (hover: hover) {
  .product-card:hover .pc-media img.pc-main-img { opacity: 0; }
  .product-card:hover .pc-media img.pc-hover-img { opacity: 1; }
  .product-card:hover .pc-media img.pc-main-img.no-hover { opacity: 1; transform: scale(1.04); }
}

.product-card .pc-badge-tl { position: absolute; top: 12px; left: 12px; z-index: 2; }
.product-card .pc-badge-tr { position: absolute; top: 12px; right: 12px; z-index: 2; }

.product-card .pc-oos-veil {
  position: absolute; inset: 0;
  background: rgba(250, 248, 245, .82);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.product-card .pc-oos-veil span {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-ink-2);
}

.product-card .pc-quick {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  z-index: 4;
}
@media (hover: hover) {
  .product-card:hover .pc-quick { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
  .product-card .pc-quick { display: none; }
}

.product-card .pc-quick .add-to-cart-btn {
  width: 100%;
  background: var(--color-ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-cta);
  text-transform: uppercase;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t-base) var(--ease);
}
.product-card .pc-quick .add-to-cart-btn:hover { background: var(--color-accent); }

.product-card .pc-info {
  display: flex;
  flex-direction: column;
  padding: 0 4px;
}

.product-card .pc-category {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-ink-3);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .pc-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-ink);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  transition: color var(--t-base) var(--ease);
  letter-spacing: 0;
}
.product-card a:hover .pc-title { color: var(--color-accent); }

.product-card .pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.product-card .pc-price {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0;
}
.product-card .pc-price-old {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-ink-4);
  text-decoration: line-through;
}

.product-card .pc-colors {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  min-height: 18px;
}

.product-card .pc-mobile-atc { display: none; }
@media (max-width: 767px) {
  .product-card .pc-mobile-atc {
    display: inline-flex;
    margin-top: 10px;
    align-self: stretch;
  }
}

/* Color swatches */
.pc-swatch {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(22, 21, 18, .18);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  flex-shrink: 0;
  padding: 0;
  background-clip: padding-box;
}
.pc-swatch:hover, .pc-swatch.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.sp-swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(22, 21, 18, .15);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), outline var(--t-fast) var(--ease);
  padding: 0;
}
.sp-swatch:hover { transform: scale(1.08); }

#product-colors {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
#gallery-thumbs {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
#gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-main-img { transition: opacity var(--t-fast) ease; }

/* ----------------------------------------------------------------------------
   09 — GRIDS
---------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px var(--space-2);
}
@media (min-width: 640px)  { .product-grid { gap: var(--space-3) var(--space-3); } }
@media (min-width: 768px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-3); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-5) var(--space-4); } }

.product-grid--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px)  { .product-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.product-grid--related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px var(--space-2);
}
@media (min-width: 768px)  { .product-grid--related { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); } }

/* =============================================================================
   ★ HOMEPAGE — app-inspired sections
   ============================================================================= */

/* ============================================================================
   HERO PROMO CARD
   • Mobile (≤767px): two-up split card, compact — preserved as the user likes.
   • Tablet/Desktop (≥768px): editorial full-bleed image on the right,
     calm cream panel on the left, single tasteful seam between them.
   ============================================================================ */

/* ── MOBILE (default) — preserved ─────────────────────────────────────────── */
.hero-promo {
  background: var(--color-accent-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 260px;
}

.hero-promo__content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.hero-promo__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
}

.hero-promo__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin: 0;
}
.hero-promo__title em { font-style: italic; color: var(--color-accent); font-weight: 400; }

.hero-promo__sub {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-ink-2);
  margin: 0;
  max-width: 320px;
}

.hero-promo__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.hero-promo__cta {
  align-self: flex-start;
  background: var(--color-ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.hero-promo__cta:hover { background: var(--color-accent); color: #fff; }
.hero-promo__cta--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
}
.hero-promo__cta--ghost:hover {
  background: var(--color-ink);
  color: #fff;
}

.hero-promo__media {
  position: relative;
  overflow: hidden;
  background: var(--color-clay);
}
.hero-promo__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

/* Hero video — same rules as the image, no object-fit on iframe */
.hero-promo__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  /* For <video> elements, cover keeps it cinematic */
  object-fit: cover;
  z-index: 1;
}
/* Fallback image behind the video — hidden once video loads */
.hero-promo__img-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Decorative accents hidden on mobile */
.hero-promo__accent { display: none; }


/* ── TABLET / DESKTOP (≥768px) — editorial, premium ──────────────────────── */
@media (min-width: 768px) {
  .hero-promo {
    /* A single calm cream surface — no busy gradient.
       The image will fill the right half and earn the visual weight. */
    background: #F4ECDD;
    border-radius: 24px;
    min-height: 460px;
    grid-template-columns: 1.05fr 1fr;
    box-shadow:
      0 1px 0 rgba(255,255,255,.55) inset,
      0 24px 60px -34px rgba(22, 21, 18, .22);
    isolation: isolate;
  }

  /* Subtle paper texture using a single CSS gradient — adds richness
     without looking like a busy mockup. Sits behind the content. */
  .hero-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(60% 100% at 0% 0%, rgba(255,255,255,.42), rgba(255,255,255,0) 60%),
      radial-gradient(60% 100% at 100% 100%, rgba(158,124,79,.10), rgba(158,124,79,0) 55%);
    pointer-events: none;
    z-index: 0;
  }

  .hero-promo__content {
    padding: 56px 52px;
    gap: 24px;
    max-width: 560px;
  }

  /* Eyebrow: small caps label with a hairline rule before it */
  .hero-promo__eyebrow {
    font-size: 10.5px;
    letter-spacing: .34em;
    color: var(--color-accent-hover);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    align-self: flex-start;
  }
  .hero-promo__eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--color-accent);
  }

  /* Title — keep solid ink; italic word in clean accent (no gradient clip) */
  .hero-promo__title {
    font-size: clamp(2.4rem, 4.6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.018em;
    font-weight: 500;
    color: var(--color-ink);
  }
  .hero-promo__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--color-accent);
  }

  .hero-promo__sub {
    font-size: 14.5px;
    line-height: 1.75;
    max-width: 420px;
    color: var(--color-ink-2);
  }

  .hero-promo__cta-row {
    gap: 14px;
    margin-top: 12px;
  }

  .hero-promo__cta {
    padding: 15px 30px;
    font-size: 11px;
    letter-spacing: .22em;
  }
  .hero-promo__cta--primary {
    box-shadow:
      0 12px 28px -12px rgba(22, 21, 18, .42),
      0 4px 12px -4px rgba(22, 21, 18, .22);
  }
  .hero-promo__cta--primary:hover {
    transform: translateY(-1px);
    background: var(--color-accent);
    box-shadow:
      0 16px 32px -10px rgba(158, 124, 79, .50),
      0 6px 14px -4px rgba(158, 124, 79, .30);
  }
  .hero-promo__cta--ghost {
    background: transparent;
    color: var(--color-ink);
    border: 1px solid rgba(22, 21, 18, .25);
  }
  .hero-promo__cta--ghost:hover {
    background: var(--color-ink);
    color: #fff;
    border-color: var(--color-ink);
  }

  /* Media side — flush with the card, no inner margin, no inner radius.
     Only the outer corner of the card is rounded. */
  .hero-promo__media {
    background: var(--color-clay);
    border-radius: 0 24px 24px 0;
    overflow: hidden;
  }
  .hero-promo__media img {
    transition: transform 1.8s cubic-bezier(.2,.6,.2,1);
  }
  .hero-promo:hover .hero-promo__media img {
    transform: scale(1.035);
  }

  /* A single hairline seam between the two halves — the only ornament */
  .hero-promo__media::before {
    content: '';
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg,
      rgba(22,21,18,0) 0%,
      rgba(22,21,18,.10) 50%,
      rgba(22,21,18,0) 100%);
    z-index: 3;
  }
}

@media (min-width: 1024px) {
  .hero-promo {
    min-height: 540px;
    border-radius: 28px;
  }
  .hero-promo__content {
    padding: 80px 64px;
    gap: 28px;
  }
  .hero-promo__media { border-radius: 0 28px 28px 0; }
}

@media (min-width: 1280px) {
  .hero-promo {
    min-height: 600px;
    grid-template-columns: 1fr 1.05fr;
  }
  .hero-promo__content { padding: 96px 80px; gap: 30px; }
}

/* Slider dots */
.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--color-line-3);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}
.hero-dot.is-active {
  width: 22px;
  background: var(--color-accent);
}

/* ---- CATEGORY CIRCLES --------------------------------------------------- */
.cat-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}
.cat-row::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .cat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 28px;
    overflow: visible;
  }
}

.cat-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  width: 76px;
}
@media (min-width: 768px) { .cat-item { width: auto; } }

.cat-circle {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
  position: relative;
}
@media (min-width: 768px)  { .cat-circle { width: 96px; height: 96px; } }
@media (min-width: 1024px) { .cat-circle { width: 108px; height: 108px; } }
.cat-item:hover .cat-circle {
  transform: translateY(-2px);
  background: var(--color-accent-soft);
}
.cat-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-ink);
  text-align: center;
  white-space: normal;       /* allow wrapping */
  word-break: break-word;    /* break long words if needed */
  hyphens: auto;             /* hyphenate as last resort */
  line-height: 1.3;
  width: 100%;               /* constrain to parent width, not wider */
  letter-spacing: 0;
}
@media (min-width: 1024px) { .cat-label { font-size: 13px; } }

/* ---- FLASH SALE ---------------------------------------------------------- */
.flash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-3);
}

.flash-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

.flash-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-ink-3);
}
.flash-timer__label { letter-spacing: .04em; }
.flash-timer__digits {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.flash-timer__digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  background: var(--color-ink);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.flash-timer__sep {
  color: var(--color-ink);
  font-weight: 700;
  font-size: 12px;
}

/* Chip filter row */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 var(--space-3);
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-ink-2);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0;
}
.chip:hover { border-color: var(--color-ink); color: var(--color-ink); }
.chip.is-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* Soft info card (value props row) */
.soft-card {
  background: var(--color-surface);
  border-radius: var(--radius-soft);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
}
.soft-card__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.soft-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 2px;
}
.soft-card__sub {
  font-size: 11px;
  color: var(--color-ink-3);
  margin: 0;
}

.see-all-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-ink-3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--t-fast) var(--ease);
}
.see-all-link:hover { color: var(--color-accent); }

/* Collection tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px)  { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.tile-soft {
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: var(--color-surface-alt);
  text-decoration: none;
  color: inherit;
}
.tile-soft img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
}
.tile-soft:hover img { transform: scale(1.05); }
.tile-soft__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,21,18,.82) 0%, rgba(22,21,18,.45) 35%, rgba(22,21,18,.15) 60%, transparent 80%);
}
.tile-soft__caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.tile-soft__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: var(--tracking-tight);
  color: #fff;
  line-height: 1.15;
}
.tile-soft__count {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Newsletter card (app-style soft) */
.newsletter-card {
  background: var(--color-accent-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  text-align: center;
}
@media (min-width: 768px) { .newsletter-card { padding: var(--space-6); } }

/* =============================================================================
   END HOMEPAGE BLOCK
   ============================================================================= */

/* ----------------------------------------------------------------------------
   10 — TILES (legacy)
---------------------------------------------------------------------------- */
.m-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-tile);
  background: var(--color-surface-alt);
  display: block;
}
.m-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.m-tile:hover img, .m-tile.group:hover img { transform: scale(1.04); }

.m-tile-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,21,18,.45) 0%, rgba(22,21,18,.12) 35%, transparent 60%);
}

.m-tile-content {
  position: absolute;
  left: var(--space-3); right: var(--space-3); bottom: var(--space-3);
  color: #fff;
  z-index: 2;
}
@media (min-width: 768px) {
  .m-tile-content { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); }
}

.tile-blush  { background: var(--color-blush); }
.tile-clay   { background: var(--color-clay); }
.tile-sage   { background: var(--color-sage-soft); }
.tile-ivory  { background: var(--color-ivory); }
.tile-bronze { background: var(--color-accent-soft); }

/* ----------------------------------------------------------------------------
   11 — STEPPERS, TABS, ACCORDION
---------------------------------------------------------------------------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-line-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  height: 44px;
  background: var(--color-surface);
}
.qty-stepper button,
.qty-stepper .drw-qty {
  width: 38px; height: 100%;
  background: transparent; border: 0;
  font-size: 16px; color: var(--color-ink);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) var(--ease);
}
.qty-stepper button:hover,
.qty-stepper .drw-qty:hover { background: var(--color-surface-alt); }
.qty-stepper input,
.qty-stepper .drw-qi {
  width: 36px; border: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--color-ink); background: transparent;
  outline: none; -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.m-tabs {
  display: flex;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-line);
  margin-bottom: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
}
.m-tabs::-webkit-scrollbar { display: none; }
.m-tab {
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-ink-3);
  padding: 14px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  text-decoration: none;
}
.m-tab:hover { color: var(--color-ink); }
.m-tab.active, .m-tab[aria-selected="true"] {
  color: var(--color-ink); border-bottom-color: var(--color-ink);
}

.m-accordion-item { border-bottom: 1px solid var(--color-line); }
.m-accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body);
  font-size: var(--fs-small); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-ink);
}
.m-accordion-item summary::-webkit-details-marker { display: none; }
.m-accordion-item summary::after {
  content: '+';
  font-size: 22px; font-weight: 300;
  color: var(--color-ink-3);
  transition: transform var(--t-base) var(--ease);
  line-height: 1;
}
.m-accordion-item[open] summary::after { content: '−'; }
.m-accordion-item > div {
  padding: 0 0 22px;
  color: var(--color-ink-2);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ============================================================================
   12 — HEADER  (utility bar + main header, editorial premium)
   ============================================================================ */

:root {
  /* Icon-circle tint colors — soft, hand-mixed palette */
  --hi-tint-search:  #F0E7DA;   /* warm cream */
  --hi-tint-account: #E3ECEE;   /* powder blue */
  --hi-tint-wish:    #F2EAD3;   /* soft champagne */
  --hi-tint-cart:    #EFE1D0;   /* light clay */
  --hi-tint-menu:    #F0EAE0;   /* neutral linen */
}

/* ── Top utility bar ─────────────────────────────────────────────────────── */
.header-utility {
  background: var(--color-ink);
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1;
}
.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-block: 8px;
}
.header-utility__text {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .82);
  letter-spacing: .03em;
  /* Truncate gracefully on smaller widths */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.header-utility__dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.header-utility__links {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.header-utility__link {
  position: relative;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-block: 2px;
  transition: color .18s var(--ease);
}
.header-utility__link:hover { color: #fff; }
.header-utility__link:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px; top: 50%;
  width: 1px; height: 11px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .18);
}
@media (max-width: 639px) {
  .header-utility { font-size: 10.5px; }
  .header-utility__inner { min-height: 34px; gap: 10px; padding-block: 6px; }
  .header-utility__links { gap: 14px; }
  .header-utility__link { font-size: 9.5px; letter-spacing: .14em; }
  .header-utility__link:not(:last-child)::after { right: -8px; height: 9px; }
  /* On narrow phones, hide the promo text and let only the links show */
  .header-utility__text { display: none; }
}

/* ── Main header (white card, fixed) ─────────────────────────────────────── */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow var(--t-base) var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--color-line), 0 10px 28px -18px rgba(22,21,18,.12);
}
.site-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding-block: 8px;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  text-decoration: none;
}

/* ── Centered primary nav ────────────────────────────────────────────────── */
.site-header__nav {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) {
  .site-header__nav { display: inline-flex; }
}

.site-nav-item {
  position: relative;
}
.site-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
@media (min-width: 1280px) { .site-nav-link { padding: 12px 20px; font-size: 12.5px; } }
.site-nav-link:hover,
.site-nav-item:hover > .site-nav-link {
  color: var(--color-ink);
}
.site-nav-link.is-active {
  color: var(--color-accent);
}
.site-nav-caret {
  transition: transform .2s var(--ease);
  margin-top: 1px;
  opacity: .7;
}
.site-nav-item:hover .site-nav-caret,
.site-nav-item:focus-within .site-nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Dropdown panel ──────────────────────────────────────────────────────── */
.site-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding-top: 12px;        /* hover gap between trigger and panel */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease),
              transform .25s var(--ease),
              visibility .2s var(--ease);
  z-index: 60;
}
.site-nav-item:hover > .site-nav-dropdown,
.site-nav-item:focus-within > .site-nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.site-nav-dropdown__inner {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 20px 50px -16px rgba(22, 21, 18, .15),
    0 8px 20px -10px rgba(22, 21, 18, .08);
  display: flex;
  flex-direction: column;
}
.site-nav-dropdown__link {
  display: block;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--color-ink-2);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.site-nav-dropdown__link:hover {
  background: var(--color-surface-alt);
  color: var(--color-ink);
}

/* ── Right icon group ────────────────────────────────────────────────────── */
.site-header__icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
@media (max-width: 1023px) {
  .site-header__icons { gap: 4px; }
}

/* Each header icon sits in its own soft tinted circle */
.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--color-ink);
  background: var(--hi-tint, transparent);
  border: 0;
  cursor: pointer;
  transition: transform .18s var(--ease),
              box-shadow .22s var(--ease),
              background .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.header-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(22,21,18,.25);
}
.header-icon:active { transform: translateY(0); }

.header-icon--search  { --hi-tint: var(--hi-tint-search); }
.header-icon--account { --hi-tint: var(--hi-tint-account); }
.header-icon--wish    { --hi-tint: var(--hi-tint-wish); }
.header-icon--cart    { --hi-tint: var(--hi-tint-cart); }
.header-icon--menu    { --hi-tint: var(--hi-tint-menu); }

@media (max-width: 374px) {
  .header-icon { width: 38px; height: 38px; }
  .site-header__icons { gap: 2px; }
  .site-header__row { gap: 12px; }
}

/* Header icon badge (used on wishlist and cart) */
.header-icon__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  letter-spacing: 0;
}
.header-icon__badge.hidden { display: none; }

/* Legacy: keep #cart-badge hook working with the same styling */
#cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

/* Cart button — icon circle + subtotal price beside it */
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.header-cart .header-icon {
  position: relative;
}
.header-cart__total {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-ink);
  white-space: nowrap;
  padding-right: 6px;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.header-cart__total.is-empty { opacity: 0; pointer-events: none; }
/* Hide subtotal on narrow screens (no room) — icon + badge still show */
@media (max-width: 1023px) {
  .header-cart__total { display: none; }
}

/* Site logo image is sized via the inline <style> block from PHP */

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes matte-bump { 0%,100% { transform: scale(1); } 30% { transform: scale(1.32); } }
.cart-badge-bump { animation: matte-bump .35s var(--ease); }

/* ── Backwards-compatible aliases (kept so other pages don't break) ─────── */
/* The old #site-header rule (border-bottom etc) is now provided by .site-header,
   and #site-header is the same element, so .scrolled / hover handlers still match. */
#site-header { background: var(--color-surface); transition: box-shadow var(--t-base) var(--ease); }
#site-header.scrolled { box-shadow: 0 1px 0 var(--color-line), 0 10px 28px -18px rgba(22,21,18,.12); }
/* Legacy .nav-link kept for any inline references */
.nav-link {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  transition: color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-ink); }
.nav-link.is-active { color: var(--color-accent); }

/* ── Mobile drawer additions for accordion menus ─────────────────────────── */
.m-drawer-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--color-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
  cursor: pointer;
  transition: color .18s var(--ease);
}
.m-drawer-row:hover { color: var(--color-accent); }
.m-drawer-row--toggle { text-align: left; }
.m-drawer-row__caret {
  transition: transform .25s var(--ease);
  color: var(--color-ink-3);
}
.m-drawer-row--toggle[aria-expanded="true"] .m-drawer-row__caret {
  transform: rotate(180deg);
  color: var(--color-accent);
}
.m-drawer-group { border-bottom: 1px solid var(--color-line); }
.m-drawer-group .m-drawer-row { border-bottom: 0; }
.m-drawer-sub {
  display: flex;
  flex-direction: column;
  padding: 4px 8px 12px 18px;
  background: var(--color-surface-alt);
  margin: 0 -8px;
}
.m-drawer-sublink {
  padding: 10px 6px;
  font-size: 12.5px;
  color: var(--color-ink-2);
  text-decoration: none;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: color .15s var(--ease);
}
.m-drawer-sublink:last-child { border-bottom: 0; }
.m-drawer-sublink:hover { color: var(--color-accent); }
.text-accent { color: var(--color-accent); }

/* ----------------------------------------------------------------------------
   13 — DRAWERS, MODALS
---------------------------------------------------------------------------- */
.m-overlay { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.m-backdrop {
  position: absolute; inset: 0;
  background: rgba(22, 21, 18, .42);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.m-drawer {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out);
}
.m-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-line);
}
.m-drawer-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500;
  margin: 0; line-height: 1.2;
}
.m-drawer-sub {
  font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-ink-3); margin-top: 4px;
}

.m-modal {
  background: var(--color-surface);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

/* ----------------------------------------------------------------------------
   14 — TOASTS
---------------------------------------------------------------------------- */
#toast-container {
  position: fixed;
  top: 86px;
  right: 20px;
  z-index: 100;
  display: flex; flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--color-ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-small); font-weight: 500;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-modal);
  display: inline-flex; align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: matte-toast-in .35s var(--ease-out);
  min-width: 240px;
}
.toast.success { background: var(--color-ink); }
.toast.error   { background: var(--color-error); }
.toast.info    { background: var(--color-info); }
@keyframes matte-toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: m-spin .7s linear infinite;
}
@keyframes m-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------------------
   15 — REVEAL ON SCROLL
---------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal-on-scroll.revealed {
  opacity: 1; transform: translateY(0);
}

/* ----------------------------------------------------------------------------
   16 — UTILITIES
---------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------------------------
   17 — PAGE BANNER
---------------------------------------------------------------------------- */
.page-banner {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  padding-block: var(--space-5);
}
@media (min-width: 1024px) {
  .page-banner { padding-block: var(--space-6); }
}
.page-banner .eyebrow { margin-bottom: 12px; }
.page-banner h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: var(--tracking-tight);
}
.page-banner p {
  color: var(--color-ink-3);
  font-size: var(--fs-body);
  max-width: 560px;
  margin: 0 auto;
}

/* ----------------------------------------------------------------------------
   18 — BREADCRUMBS
---------------------------------------------------------------------------- */
.crumbs {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-ink-3);
  display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
}
.crumbs a { color: var(--color-ink-3); }
.crumbs a:hover { color: var(--color-ink); }
.crumbs .sep { color: var(--color-ink-4); }
.crumbs [aria-current="page"] { color: var(--color-ink); }

/* ----------------------------------------------------------------------------
   19 — BLOG CARDS
---------------------------------------------------------------------------- */
.blog-card {
  display: flex; flex-direction: column;
  background: transparent; text-decoration: none; color: inherit;
}
.blog-card .bc-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-soft);
  background: var(--color-surface-alt);
  margin-bottom: 18px;
}
.blog-card .bc-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.blog-card:hover .bc-media img { transform: scale(1.05); }

.blog-card .bc-meta {
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-ink-3);
  margin-bottom: 8px;
}
.blog-card .bc-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-ink);
  margin: 0 0 10px;
  letter-spacing: var(--tracking-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2);
  transition: color var(--t-base) var(--ease);
}
.blog-card:hover .bc-title { color: var(--color-accent); }
.blog-card .bc-excerpt {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-ink-3);
  line-height: var(--lh-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ----------------------------------------------------------------------------
   20 — PAGINATION
---------------------------------------------------------------------------- */
.m-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  margin-top: var(--space-5);
}
.m-pagination a, .m-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: var(--fs-small); font-weight: 500;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
.m-pagination a:hover {
  border-color: var(--color-ink); color: var(--color-ink);
}
.m-pagination .is-current {
  background: var(--color-ink); color: #fff; border-color: var(--color-ink);
}
.m-pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ----------------------------------------------------------------------------
   21 — FILTER SIDEBAR
---------------------------------------------------------------------------- */
.filter-group { padding-block: var(--space-2); border-bottom: 1px solid var(--color-line); }
.filter-group:first-child { padding-top: var(--space-3); }
.filter-group:last-child  { border-bottom: 0; }
.filter-group summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-tiny); font-weight: 600;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--color-ink);
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 6px;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after {
  content: '+';
  font-size: 16px; font-weight: 300; color: var(--color-ink-3); line-height: 1;
}
.filter-group[open] summary::after { content: '−'; }
.filter-group .filter-body { padding-top: 14px; padding-bottom: 4px; }

.filter-link {
  display: block;
  padding: 7px 0;
  font-size: var(--fs-small);
  color: var(--color-ink-2);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.filter-link:hover, .filter-link.is-active { color: var(--color-accent); }
.filter-link.is-active::before { content: '— '; }

.size-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 38px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: var(--fs-small); font-weight: 500;
  border: 1px solid var(--color-line-2);
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  background: var(--color-surface);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
.size-chip:hover { border-color: var(--color-ink); }
.size-chip.is-active {
  background: var(--color-ink); color: #fff; border-color: var(--color-ink);
}

.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  background: var(--color-surface-alt);
  color: var(--color-ink-2);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease);
}
.filter-pill:hover { background: var(--color-line); }

/* ----------------------------------------------------------------------------
   22 — CART / CHECKOUT
---------------------------------------------------------------------------- */
.cart-page-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-line);
}
@media (min-width: 768px) {
  .cart-page-row {
    grid-template-columns: 110px 1fr 150px 110px 40px;
    gap: var(--space-3);
    padding: var(--space-3) 0;
  }
}
.cart-page-row .cp-thumb {
  aspect-ratio: 3/4;
  width: 92px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-soft);
  overflow: hidden;
}
@media (min-width: 768px) { .cart-page-row .cp-thumb { width: 110px; } }
.cart-page-row .cp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-page-row .cp-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 500;
  color: var(--color-ink);
  margin: 0 0 4px;
  line-height: 1.3;
}
.cart-page-row .cp-meta {
  font-size: var(--fs-small);
  color: var(--color-ink-3);
}
.cart-page-row .cp-subtotal {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  color: var(--color-ink);
}

.checkout-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-soft);
  padding: var(--space-3);
}
@media (min-width: 1024px) {
  .checkout-summary { padding: var(--space-4); position: sticky; top: calc(var(--header-h) + 24px); }
}
.checkout-summary .cs-row {
  display: flex; justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--color-ink-2);
  padding: 6px 0;
}
.checkout-summary .cs-row strong { font-weight: 500; color: var(--color-ink); }
.checkout-summary .cs-total {
  display: flex; justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-2);
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-line);
}
.checkout-summary .cs-total .label {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 500;
  color: var(--color-ink);
}
.checkout-summary .cs-total .val {
  font-family: var(--font-body);
  font-size: 1.25rem; font-weight: 600;
  color: var(--color-ink);
}

/* ----------------------------------------------------------------------------
   23 — FOOTER
---------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,.7);
  margin-top: var(--space-7);
}
.site-footer .footer-h {
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-tiny); font-weight: 600;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  margin: 0 0 var(--space-3);
}
.site-footer a { color: rgba(255,255,255,.6); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-link {
  display: block;
  padding: 6px 0;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.site-footer .footer-divider { border-color: rgba(255,255,255,.1); }
.site-footer .social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.65);
  transition: all var(--t-base) var(--ease);
}
.site-footer .social-icon:hover {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
}
.site-footer .pay-chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
}

/* ----------------------------------------------------------------------------
   24 — PRODUCT DETAIL
---------------------------------------------------------------------------- */
.gallery-thumb {
  width: 64px; height: 80px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--color-surface-alt);
  transition: border-color var(--t-fast) var(--ease);
  padding: 0;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--color-ink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.size-quick-btn, .size-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 46px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  border: 1px solid var(--color-line-2);
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.size-quick-btn:hover, .size-select-btn:hover { border-color: var(--color-ink); }
.size-quick-btn.selected, .size-select-btn.selected {
  background: var(--color-ink); color: #fff; border-color: var(--color-ink);
}

/* ----------------------------------------------------------------------------
   25 — MARQUEE
---------------------------------------------------------------------------- */
@keyframes matte-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex; align-items: center;
  gap: var(--space-5);
  white-space: nowrap;
  width: max-content;
  animation: matte-marquee 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

/* ----------------------------------------------------------------------------
   26 — HERO SLIDE (legacy)
---------------------------------------------------------------------------- */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 900ms var(--ease);
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1; pointer-events: auto;
}
@media (max-width: 1023px) {
  .hero-slide { position: relative; opacity: 1; display: none; }
  .hero-slide.is-active { display: block; }
}

/* ----------------------------------------------------------------------------
   27 — HIDDEN
---------------------------------------------------------------------------- */
.hidden { display: none !important; }

/* ----------------------------------------------------------------------------
   28 — SCROLL-SNAP
---------------------------------------------------------------------------- */
.h-snap {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.h-snap::-webkit-scrollbar { display: none; }
.h-snap > * { scroll-snap-align: start; }

/* ----------------------------------------------------------------------------
   29 — PROMO STRIP
---------------------------------------------------------------------------- */
.promo-strip {
  background: var(--color-ink);
  color: #fff;
  position: relative;
}
.promo-strip .ps-text {
  text-align: center;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 10px 36px;
  line-height: 1.5;
}
.promo-strip a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  margin-left: 6px;
}
.promo-strip a:hover { color: rgba(255,255,255,.75); }
#promo-strip-close {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 6px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
}
#promo-strip-close:hover { color: #fff; }
@media (min-width: 768px) { #promo-strip-close { right: 24px; } }

/* ----------------------------------------------------------------------------
   30 — REVIEWS
---------------------------------------------------------------------------- */
.review-card {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
}
.review-card:last-child { border-bottom: 0; }
.review-stars {
  display: inline-flex; gap: 1px;
  color: var(--color-accent);
  font-size: 14px;
  letter-spacing: 1px;
}
.review-name {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-ink);
  margin-right: 12px;
}
.review-date {
  font-size: var(--fs-tiny);
  color: var(--color-ink-3);
  letter-spacing: .04em;
}

/* ----------------------------------------------------------------------------
   30b — ADMIN PANEL
---------------------------------------------------------------------------- */

/* Admin form controls (used across admin pages — rectangular, not pill) */
.form-input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #111;
  outline: none;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(158, 124, 79, .12);
}
.form-input::placeholder { color: #aaa; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 6px;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.62);
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.admin-sidebar-link:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.admin-sidebar-link.active {
  background: rgba(158, 124, 79, .18);
  color: var(--color-accent);
}
.admin-sidebar-link.active svg { color: var(--color-accent); }

/* Admin top bar mobile toggle */
.admin-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-ink-2);
  transition: all .2s var(--ease);
}
.admin-topbar-btn:hover {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}

/* Admin stat cards */
.admin-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 20px;
  transition: border-color .2s var(--ease);
}
.admin-stat:hover { border-color: var(--color-line-2); }
.admin-stat__label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  margin: 0 0 10px;
}
.admin-stat__value {
  font-family: var(--font-body);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
  margin: 0;
}
.admin-stat__sub {
  font-size: 11px;
  color: var(--color-ink-3);
  margin: 8px 0 0;
}

/* ----------------------------------------------------------------------------
   31 — RESPONSIVE
---------------------------------------------------------------------------- */
@media (max-width: 639px) {
  :root { --header-h: 64px; }
  .section { padding-block: var(--space-4); }
  .section-head { margin-bottom: var(--space-3); }
}

/* ----------------------------------------------------------------------------
   32 — MOBILE BOTTOM NAV BAR
   Sleek, premium, mobile-only fixed nav. Hidden ≥ 768px.
---------------------------------------------------------------------------- */

/* Hide on desktop and tablets */
.m-bottom-nav { display: none; }

@media (max-width: 767px) {
  .m-bottom-nav {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    pointer-events: none; /* let .m-bottom-nav__inner own pointer events */
  }

  .m-bottom-nav__inner {
    pointer-events: auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 22px;
    background: var(--color-mob-nav-bg);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--color-mob-nav-border);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .08) inset,
      0 -1px 0 rgba(0, 0, 0, .25) inset,
      0 20px 40px -12px rgba(0, 0, 0, .45),
      0 8px 20px -8px rgba(22, 21, 18, .35);
  }

  /* Individual nav item */
  .m-bnav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px 6px;
    border-radius: 16px;
    color: var(--color-mob-nav-item);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
  }
  .m-bnav-item:hover,
  .m-bnav-item:focus-visible {
    color: var(--color-mob-nav-item-hover);
  }
  .m-bnav-item:active { transform: scale(.94); }

  .m-bnav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
  }
  .m-bnav-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.6;
    transition: stroke-width .25s var(--ease);
  }

  .m-bnav-label {
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
  }

  /* Active state — accent color + soft pill background + indicator dot */
  .m-bnav-item.is-active {
    color: #fff;
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--color-mob-nav-active) 28%, transparent) 0%,
      color-mix(in srgb, var(--color-mob-nav-active) 14%, transparent) 100%);
  }
  .m-bnav-item.is-active .m-bnav-icon svg {
    stroke: var(--color-mob-nav-active);
    stroke-width: 1.85;
  }
  .m-bnav-item.is-active .m-bnav-label {
    color: var(--color-mob-nav-active);
    font-weight: 600;
  }
  .m-bnav-item.is-active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-mob-nav-active);
    box-shadow: 0 0 8px color-mix(in srgb, var(--color-mob-nav-active) 60%, transparent);
  }

  /* Center "Search" button — same level as other icons, accent colour */
  .m-bnav-item--center {
    padding-top: 7px;
    padding-bottom: 6px;
  }
  .m-bnav-item--center .m-bnav-label { display: none; }
  .m-bnav-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-mob-nav-center-bg);
    color: #fff;
    /* No margin-top — sits level with all other icons */
    box-shadow: 0 2px 10px -2px color-mix(in srgb, var(--color-mob-nav-center-bg) 55%, transparent);
    transition: transform .2s var(--ease), box-shadow .25s var(--ease);
  }
  .m-bnav-item--center:hover .m-bnav-center,
  .m-bnav-item--center:focus-visible .m-bnav-center {
    transform: scale(1.08);
    box-shadow: 0 4px 16px -4px color-mix(in srgb, var(--color-mob-nav-center-bg) 70%, transparent);
  }
  .m-bnav-item--center.is-active::before { display: none; }
  .m-bnav-item--center.is-active .m-bnav-center {
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--color-mob-nav-center-bg) 22%, transparent),
      0 4px 16px -4px color-mix(in srgb, var(--color-mob-nav-center-bg) 70%, transparent);
  }

  /* Cart badge */
  .m-bnav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-mob-nav-active);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 1.5px solid var(--color-mob-nav-bg-solid, #161512);
    letter-spacing: 0;
  }

  /* Bottom safety padding for the page so content doesn't hide behind the nav */
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

  /* Push floating action stack (WA + scroll-top) up above the bottom nav */
  .floating-stack {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
  }

  /* PWA install banner — keep it clear of the bottom nav */
  #pwa-install-banner {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
  }
}

/* Desktop default bottom for floating stack */
@media (min-width: 768px) {
  .floating-stack { bottom: 24px; }
}

/* Hide bottom nav when print or in special states */
@media print {
  .m-bottom-nav { display: none !important; }
}
/* ============================================================================
   PDP GALLERY v2 — appended (added 2026-05-23)
   Replaces the older .gallery-thumb / aspect-ratio:3/4 image-cover approach.
   Higher-specificity selectors (.pdp-gallery-thumbs .gallery-thumb) so this
   block wins without removing the older rules — safe to drop in.
   ============================================================================ */
.pdp-gallery {
  position: relative;
}

/* Main image stage — soft surface, height-capped, contain not cover */
.pdp-gallery-stage {
  position: relative;
  width: 100%;
  background: var(--color-surface-alt);
  border-radius: var(--radius-card);
  overflow: hidden;
  /* Aspect-ratio gives a baseline shape; max-height caps it on big screens */
  aspect-ratio: 4 / 5;
  max-height: min(640px, 75vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .pdp-gallery-stage {
    aspect-ratio: 4 / 5;
    max-height: 70vh;
  }
}

/* The image inside the stage — contain shows the whole garment, no cropping */
.pdp-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 220ms ease;
  display: block;
  padding: 12px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .pdp-gallery-img {
    padding: 20px;
  }
}

/* Badges over the gallery */
.pdp-gallery-badge {
  position: absolute;
  z-index: 2;
}

/* Sold-out overlay */
.pdp-gallery-oos {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 245, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.pdp-gallery-oos span {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-ink-2);
}

/* Thumb strip — wider thumbs, square-ish, light shadow on active */
.pdp-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pdp-gallery-thumbs::-webkit-scrollbar { display: none; }

/* Override the global .gallery-thumb rules with higher specificity */
.pdp-gallery-thumbs .gallery-thumb {
  width: 76px;
  height: 92px;
  flex: 0 0 auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface-alt);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
  padding: 0;
  position: relative;
}

@media (min-width: 768px) {
  .pdp-gallery-thumbs .gallery-thumb {
    width: 84px;
    height: 100px;
  }
}

.pdp-gallery-thumbs .gallery-thumb:hover {
  border-color: var(--color-ink-3);
  transform: translateY(-1px);
}

.pdp-gallery-thumbs .gallery-thumb.active {
  border-color: var(--color-ink);
  box-shadow: 0 0 0 2px var(--color-ink);
}

.pdp-gallery-thumbs .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* thumbs CAN be cover-cropped, it reads better at this size */
  display: block;
}

/* When color_swatches.js rebuilds thumbs with inline styles, those still work
   inside our container. We only need to make sure our active state still applies. */
/* ============================================================================
   BRAND PALETTE EXTENSION + PRE-ORDER STYLING — appended 2026-05-23 v2
   ----------------------------------------------------------------------------
   Why this block exists
   ---------------------
   1. The site's neutral palette (cream, taupe, caramel accent) is unchanged.
      We're adding two *opt-in* brand colours — Matte Green and Matte Blue —
      pulled directly from the products: emerald & jungle greens from the
      satin / floral sets, midnight & royal blues from the Power & Poise and
      Heritage pieces. Use them where they earn their place; everywhere else
      stays as it was.

   2. Pre-order styling. Out-of-stock items are no longer "sold out" — they're
      "pre-order". This block defines the badges, ribbon, and helper classes
      the PHP templates reference. The hard "block buying" behaviour was
      removed in cart.php and product.php.

   Naming pattern: --color-brand-green / -blue, plus -soft variants.
   ============================================================================ */

:root {
  /* Pulled from the products themselves so swatches and brand sit in tune */
  --color-brand-green:       #549437;
  --color-brand-green-deep:  #3d7228;
  --color-brand-green-soft:  #e8f4e1;

  --color-brand-blue:        #135fa4;
  --color-brand-blue-deep:   #0d4a82;
  --color-brand-blue-soft:   #ddeaf8;
}

/* ----------------------------------------------------------------------------
   PRE-ORDER BADGES
---------------------------------------------------------------------------- */
/* Card corner badge (replaces the old "Sold Out" veil) */
.m-badge--preorder {
  background: var(--color-brand-blue);
  color: #fff;
}

/* On the product detail page the badge sits over the gallery image */
.pdp-gallery-preorder {
  background: var(--color-brand-blue);
  color: #fff;
  /* Slightly larger so it reads from across the page */
  height: 26px;
  padding: 0 12px;
  font-size: 10px;
}

/* ----------------------------------------------------------------------------
   BRAND-ACCENT EYEBROWS (opt-in)
   Drop --green or --blue on a .eyebrow label to tint it. Used sparingly on
   the homepage to bring the brand colours into the page rhythm.
---------------------------------------------------------------------------- */
.eyebrow--green { color: var(--color-brand-green); }
.eyebrow--blue  { color: var(--color-brand-blue);  }

/* ----------------------------------------------------------------------------
   NEWSLETTER CARD — sage variant
   Original: --color-accent-soft (warm cream)
   This:     --color-brand-green-soft (cool sage)
   Use by adding .newsletter-card--sage alongside .newsletter-card.
---------------------------------------------------------------------------- */
.newsletter-card--sage {
  background: var(--color-brand-green-soft);
}
.newsletter-card--sage .eyebrow {
  color: var(--color-brand-green-deep);
}
.newsletter-card--sage em {
  color: var(--color-brand-green-deep);
  font-style: italic;
}

/* ----------------------------------------------------------------------------
   SOFT-CARD ICON VARIANTS
   Tint just one or two of the value-prop icons so the row isn't monotonous.
---------------------------------------------------------------------------- */
.soft-card--green .soft-card__icon {
  background: var(--color-brand-green-soft);
  color: var(--color-brand-green-deep);
}
.soft-card--blue .soft-card__icon {
  background: var(--color-brand-blue-soft);
  color: var(--color-brand-blue);
}

/* ----------------------------------------------------------------------------
   CATEGORY CIRCLES — hover ring tint variants
   Default hover is warm caramel; these alternates land cooler.
---------------------------------------------------------------------------- */
.cat-item--green:hover .cat-circle {
  background: var(--color-brand-green-soft);
}
.cat-item--blue:hover .cat-circle {
  background: var(--color-brand-blue-soft);
}

/* ----------------------------------------------------------------------------
   FLASH-SALE TITLE — accent line under the heading
   Pure visual punctuation, totally optional. Drop .flash-title--accent on
   the H2 to add a small underline rule in the brand green.
---------------------------------------------------------------------------- */
.flash-title--accent {
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}
.flash-title--accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--color-brand-green),
    var(--color-brand-blue)
  );
}

/* ----------------------------------------------------------------------------
   SEE-ALL LINK HOVER — keep caramel default but allow green/blue variants
---------------------------------------------------------------------------- */
.see-all-link--green:hover { color: var(--color-brand-green); }
.see-all-link--blue:hover  { color: var(--color-brand-blue);  }

/* ============================================================================
   END BRAND PALETTE EXTENSION
   ============================================================================ */

/* ============================================================================
   MULTI-CATEGORY FILTER CHECKBOXES
   ============================================================================ */
.filter-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--color-ink-2);
  transition: color .18s var(--ease);
  user-select: none;
}
.filter-check-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.filter-check-box {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--color-line-2);
  background: var(--color-surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.filter-check-row.is-active .filter-check-box,
.filter-check-row input:checked ~ .filter-check-box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.filter-check-row.is-active .filter-check-box::after,
.filter-check-row input:checked ~ .filter-check-box::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.filter-check-row.is-active { color: var(--color-ink); font-weight: 500; }
.filter-check-row:hover .filter-check-box { border-color: var(--color-accent); }
.filter-clear-link {
  font-size: 11.5px;
  color: var(--color-ink-4);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.filter-clear-link:hover { color: var(--color-accent); }


/* ============================================================================
   VIDEO SECTION — premium, responsive, play-button
   ============================================================================ */

/* Section container */
.vs-section {
  overflow: hidden;
  position: relative;
}

/* ── Player ──────────────────────────────────────────────────────────────── */
.vs-player {
  position: relative;
  width: 100%;
  aspect-ratio: var(--vs-ar, 16/9);
  overflow: hidden;
  background: #000;
  /* Cap height on large screens so it doesn't fill the whole viewport */
  max-height: 82vh;
}

/* Iframes fill the container exactly — no object-fit (iframes don't support it) */
.vs-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  /* No object-fit here — iframes ignore it and it causes zoom on video elements */
}
.vs-media--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Poster image over the player before play */
.vs-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .3s ease;
}

/* ── Play button ─────────────────────────────────────────────────────────── */
.vs-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s ease;
  -webkit-tap-highlight-color: transparent;
  z-index: 3;
}
.vs-play-btn:hover { background: rgba(0, 0, 0, .28); }
.vs-play-btn:active .vs-play-icon { transform: scale(.93); }

/* The actual play icon circle */
.vs-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .35),
    0 2px 8px  rgba(0, 0, 0, .2);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  flex-shrink: 0;
}
.vs-play-btn:hover .vs-play-icon {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 4px 12px rgba(0, 0, 0, .25);
}
.vs-play-icon svg {
  width: 24px;
  height: 24px;
  color: #161512;
  margin-left: 4px; /* optical centre for play triangle */
}

/* Hidden state — JS adds this after autoplay or play-click */
.vs-play-btn--hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .vs-play-icon { width: 58px; height: 58px; }
  .vs-play-icon svg { width: 20px; height: 20px; }
}

/* ── Text overlay on top of the video ───────────────────────────────────── */
.vs-overlay-text {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: clamp(12px, 1.6vw, 17px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .65);
  z-index: 4;
  pointer-events: none;
  background: rgba(0,0,0,.32);
  padding: 8px 18px;
  border-radius: 999px;
}

/* ── FULL-WIDTH layout ───────────────────────────────────────────────────── */
.vs-full {
  display: flex;
  flex-direction: column;
}
.vs-full__video {
  position: relative;
  flex: 1;
}

/* Text block below the video */
.vs-copy--below {
  padding: clamp(36px, 6vw, 72px) clamp(20px, 6vw, 80px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── SPLIT layout ────────────────────────────────────────────────────────── */
.vs-split {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .vs-split {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 520px;
  }
  .vs-split--video-left .vs-split__copy  { order: 2; }
  .vs-split--video-left .vs-split__video { order: 1; }
}

.vs-split__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(40px, 7vw, 80px) clamp(28px, 5vw, 64px);
}

.vs-split__video {
  position: relative;
}
/* In split layout the player fills the column height — override aspect-ratio */
.vs-split__video .vs-player {
  height: 100%;
  aspect-ratio: unset;
  max-height: unset;
  min-height: 320px;
}
@media (max-width: 767px) {
  .vs-split__video .vs-player {
    aspect-ratio: var(--vs-ar, 16/9);
    height: auto;
    max-height: 60vh;
    min-height: unset;
  }
}

/* ── Shared text elements ────────────────────────────────────────────────── */
.vs-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .65;
  margin: 0;
}

.vs-heading {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

.vs-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.75;
  opacity: .78;
  margin: 0;
  max-width: 500px;
}

/* CTA — underline link style */
.vs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 4px;
  opacity: .9;
  transition: opacity .2s, gap .2s;
  width: fit-content;
}
.vs-cta:hover { opacity: 1; gap: 14px; color: inherit; }

/* ============================================================================
   END VIDEO SECTION
   ============================================================================ */