/*
Theme Name: Comfort Care Class
Theme URI: https://comfortcareclass.com
Author: Comfort Care Class
Description: Premium niche streetwear — identity-driven drops on the Comfort Colors blank.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: comfort-care
Tags: woocommerce, ecommerce, dark, fashion, streetwear
*/

/* ─── OKLCH design tokens ────────────────────────────────────────────────── */
:root {
  /* ── Base colors ── */
  --base:          oklch(8% 0.008 60);
  --surface:       oklch(11% 0.008 60);
  --surface-high:  oklch(16% 0.007 60);
  --border:        oklch(22% 0.006 60);
  --glass-bg:      oklch(14% 0.007 60 / 0.75);
  --text:          oklch(95% 0.006 80);
  --text-dim:      oklch(62% 0.008 80);
  --text-faint:    oklch(40% 0.006 80);
  --accent:        oklch(72% 0.04 85);
  --accent-dim:    oklch(55% 0.03 85);
  --pure-white:    oklch(97% 0.004 80);

  /* ── Semantic color aliases (for migration from hex) ── */
  --color-accent-primary:    #c4b58a;     /* oklch(72% 0.04 85) */
  --color-text-primary:      #f2efe8;     /* oklch(95% 0.006 80) */
  --color-surface-primary:   #131110;     /* oklch(8% 0.008 60) */
  --color-surface-card:      #1a1815;     /* slightly lighter than base */
  --color-surface-elevated:  #1f1d1a;     /* card-panel backgrounds */
  --color-overlay-dark:      rgba(13,12,10,0.92);
  --color-overlay-glass:     rgba(13,12,10,0.86);
  --color-text-dim:          rgba(242,239,232,0.62);
  --color-text-faint:        rgba(242,239,232,0.48);
  --color-text-subtle:       rgba(242,239,232,0.38);
  --color-text-muted:        rgba(242,239,232,0.28);
  --color-accent-dim:        rgba(196,181,138,0.5);
  --color-border-subtle:     rgba(255,255,255,0.07);
  --color-border-medium:     rgba(255,255,255,0.14);

  /* ── Typography scales ── */
  --font-size-micro:         9px;
  --font-size-label:         10px;
  --font-size-small:         11px;
  --font-size-body:          0.875rem;      /* 14px */
  --font-size-body-lg:       0.9375rem;     /* 15px */

  /* ── Letter spacing ── */
  --letter-tight:            -0.03em;       /* display headings */
  --letter-tight-sm:         -0.02em;       /* sub-headings */
  --letter-normal:            0.01em;       /* body text */
  --letter-wide:              0.15em;       /* buttons, CTAs */
  --letter-wide-sm:           0.18em;       /* labels */
  --letter-wide-md:           0.22em;       /* micro labels */
  --letter-wide-lg:           0.26em;       /* eyebrows */
  --letter-extra-wide:        0.28em;       /* section labels */

  /* ── Spacing scale ── */
  --space-xs:                0.3rem;        /* 4.8px */
  --space-sm:                0.6rem;        /* 9.6px */
  --space-md:                0.75rem;       /* 12px */
  --space-lg:                0.9rem;        /* 14.4px */
  --space-xl:                1.25rem;       /* 20px */
  --space-2xl:               1.875rem;      /* 30px */
  --space-3xl:               clamp(1.5rem,5vw,5rem);
  --space-4xl:               clamp(2.5rem,5vw,4rem);
  --space-5xl:               clamp(4rem,8vh,7rem);
  --space-6xl:               clamp(5rem,9vw,9rem);

  /* ── Easing curves ── */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:    cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring:    cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: dark;
}

/* ─── Material Symbols ───────────────────────────────────────────────────── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}
.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }
html, body { overflow-x: hidden; }
::selection { background: var(--accent); color: #131110; }

@keyframes page-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* overflow-x:clip instead of Tailwind's overflow-x-hidden — prevents body becoming a scroll container that blocks position:sticky */
body { animation: page-enter 0.4s ease both; overflow-x: clip !important; }

/* ─── Scroll progress ────────────────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  z-index: 10000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.08s linear;
  pointer-events: none;
}

/* ─── Nav: hide search + account from pill on mobile (style.css loads after
       Tailwind so .hidden is overridden by .nav-icon-btn {display:flex} —
       use high-specificity ID selector to win the cascade) ─────────────────── */
@media (max-width: 767px) {
  #nav-pill [data-open-search],
  #nav-pill a[aria-label="Sign in"],
  #nav-pill a[aria-label="My account"] {
    display: none !important;
  }
}

/* ─── Nav icon button ────────────────────────────────────────────────────── */
.nav-icon-btn {
  color: #f2efe8;
  transition: color 0.2s;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.nav-icon-btn:hover { color: var(--accent); }
.nav-icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Mobile menu button focus ──────────────────────────────────────────── */
#mobile-menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Glass panel ────────────────────────────────────────────────────────── */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ─── Floating pill nav ─────────────────────────────────────────────────── */
#nav-pill.scrolled {
  background: rgba(13,12,10,0.88) !important;
  border-color: rgba(242,239,232,0.13) !important;
}

/* ─── Hamburger morph lines ─────────────────────────────────────────────── */
.hamburger-line {
  display: block;
  width: 20px;
  height: 1px;
  background: #f2efe8;
  transform-origin: center;
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.32,0.72,0,1),
    opacity   0.25s ease;
}
body.menu-open #h-line-1 { transform: translateY(7.5px) rotate(45deg); }
body.menu-open #h-line-2 { opacity: 0; transform: scaleX(0); }
body.menu-open #h-line-3 { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── Mobile overlay ────────────────────────────────────────────────────── */
.mobile-overlay {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  background: rgba(11,10,9,0.97);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  overscroll-behavior: contain;
  transition:
    opacity    0.42s cubic-bezier(0.32,0.72,0,1),
    visibility 0s   0.42s;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity    0.42s cubic-bezier(0.32,0.72,0,1),
    visibility 0s   0s;
}

/* ─── Mobile nav links -- staggered mask reveal ──────────────────────────── */
.mobile-nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 9vw, 3.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: var(--text-dim);
  text-decoration: none;
  display: block;
  line-height: 1.18;
  transform: translateY(28px);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.32,0.72,0,1),
    opacity   0.45s cubic-bezier(0.32,0.72,0,1),
    color     0.2s  ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-link[aria-current="page"] { color: #f2efe8; }
.mobile-nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.mobile-overlay.open .mobile-nav-link              { transform: translateY(0); opacity: 1; }
.mobile-overlay.open .mobile-nav-link:nth-child(1) { transition-delay: 55ms; }
.mobile-overlay.open .mobile-nav-link:nth-child(2) { transition-delay: 105ms; }
.mobile-overlay.open .mobile-nav-link:nth-child(3) { transition-delay: 155ms; }
.mobile-overlay.open .mobile-nav-link:nth-child(4) { transition-delay: 205ms; }
.mobile-overlay.open .mobile-nav-link:nth-child(5) { transition-delay: 255ms; }

@media (prefers-reduced-motion: reduce) {
  .hamburger-line  { transition: opacity 0.15s ease !important; }
  .mobile-overlay  { transition: opacity 0.2s ease !important; }
  .mobile-nav-link {
    transition: color 0.15s ease !important;
    transform: none !important;
    opacity: 0 !important;
  }
  .mobile-overlay.open .mobile-nav-link {
    opacity: 1 !important;
    transition-delay: 0ms !important;
  }
}

/* ─── Card panel ─────────────────────────────────────────────────────────── */
.card-panel {
  background: rgba(13,12,10,0.86);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ─── Marquee strip ──────────────────────────────────────────────────────── */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
}

/* ─── Animation keyframes ────────────────────────────────────────────────── */
@keyframes blur-slide-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes word-reveal {
  0%   { opacity: 0;   transform: translateY(120%); clip-path: inset(0 0 100% 0); }
  100% { opacity: 1;   transform: translateY(0);    clip-path: inset(0 0 0% 0); }
}
@keyframes line-reveal {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes img-entrance {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fade-in-only {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Animation utilities ────────────────────────────────────────────────── */
.anim-pending { opacity: 0; }
.anim-entrance-active {
  animation: blur-slide-up 0.7s var(--ease-out-quart) both;
}
.anim-img-active {
  animation: img-entrance 0.9s var(--ease-out-quart) both;
}
.anim-line-active {
  transform-origin: left;
  animation: line-reveal 1s cubic-bezier(0.76, 0, 0.24, 1) both;
}
.anim-word {
  display: inline-block;
  overflow: hidden;
}
.anim-word-inner {
  display: inline-block;
  animation: word-reveal 0.8s var(--ease-out-quart) both;
}
.anim-fade-active {
  animation: fade-in-only 0.6s ease both;
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .anim-entrance-active,
  .anim-img-active,
  .anim-word-inner,
  .anim-line-active {
    animation: fade-in-only 0.2s ease both !important;
    filter: none !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ─── Responsive display type ────────────────────────────────────────────── */
.text-display-xl {
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.text-display-lg {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
@media (max-width: 480px) {
  .text-display-xl { font-size: clamp(2.8rem, 14vw, 4rem); }
  .text-display-lg { font-size: clamp(2rem, 10vw, 3rem); }
}

/* ─── HUD dossier spec row ───────────────────────────────────────────────── */
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-faint); }
.spec-value { color: var(--text); font-variant-numeric: tabular-nums; }

/* ─── Product card ───────────────────────────────────────────────────────── */
.product-img-wrap { overflow: hidden; position: relative; }
.product-img-wrap img {
  transition: transform 0.9s var(--ease-out-quart);
}
.group:hover .product-img-wrap img { transform: scale(1.06); }

.product-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(13, 12, 10, 0.7) 0%, transparent 55%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-quart), visibility 0s 0.4s;
}
.group:hover .product-card-overlay,
.product-card-overlay:focus-within {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease-out-quart), visibility 0s 0s;
}

/* Quick Add overlay: hidden on touch/mobile — tap-to-product-page is the mobile flow */
@media (hover: none) {
  .product-card-overlay {
    display: none;
  }
}

.quick-add-btn {
  width: 100%;
  background: rgba(242, 239, 232, 0.95);
  color: #131110;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 13px;
  min-height: 44px;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  transform: translateY(12px);
  transition: transform 0.45s var(--ease-out-quart), background 0.2s var(--ease-out-quart);
}
.group:hover .quick-add-btn,
.product-card-overlay:focus-within .quick-add-btn { transform: translateY(0); }
.quick-add-btn:hover { background: #ffffff; }
.quick-add-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.quick-add-btn.added { background: var(--accent); color: #131110; }

/* ─── Product card meta hover lift ──────────────────────────────────────── */
.cc-card-meta {
  transition: transform 0.45s var(--ease-out-quart);
}
.group:hover .cc-card-meta { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .cc-card-meta { transition: none; }
  .group:hover .cc-card-meta { transform: none; }
}

/* ─── Product card heading link hover ────────────────────────────────────── */
.cc-card h3 a { transition: color 0.2s; }
.cc-card:hover h3 a { color: var(--accent); }
.cc-card h3 a:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ─── Cart count bubble ──────────────────────────────────────────────────── */
.cart-count-bubble {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #131110;
  border-radius: 9999px;
  width: 14px;
  height: 14px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  pointer-events: none;
}

/* ─── CTA buttons ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f2efe8;
  color: #131110;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 32px;
  min-height: 44px;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.25s ease, color 0.25s ease, transform 0.1s ease;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent); color: #131110; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #f2efe8;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 31px;
  min-height: 44px;
  border: 1px solid rgba(242, 239, 232, 0.25);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.1s ease;
  text-decoration: none;
}
.btn-ghost:hover { border-color: #f2efe8; color: #f2efe8; }
.btn-ghost:active { transform: scale(0.98); }
.btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Typography utility classes ────────────────────────────────────────── */
.label-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--font-size-label);
  font-weight: 500;
  letter-spacing: var(--letter-wide-lg);
  text-transform: uppercase;
}

.label-micro {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--font-size-micro);
  font-weight: 500;
  letter-spacing: var(--letter-extra-wide);
  text-transform: uppercase;
}

.label-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
}

/* ─── Section label (micro HUD label) ───────────────────────────────────── */
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ─── Product form ───────────────────────────────────────────────────────── */
.size-btn-active {
  border-color: #f2efe8 !important;
  background: rgba(242, 239, 232, 0.08);
  color: #f2efe8;
}
.color-btn-active {
  outline: 1px solid #f2efe8;
  outline-offset: 3px;
}

/* ─── Product form variant buttons focus ────────────────────────────────── */
button[data-size]:focus-visible,
button[data-color]:focus-visible,
button[data-value]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Accordion ──────────────────────────────────────────────────────────── */
details.accordion-item[open] .accordion-icon { transform: rotate(180deg); }
.accordion-icon { transition: transform 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
  .accordion-icon { transition: none; }
}

/* ─── Sticky Add-to-Cart bar (mobile) ───────────────────────────────────── */
#sticky-atc {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(19, 17, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
#sticky-atc.visible { transform: translateY(0); pointer-events: auto; }
#sticky-atc-btn {
  flex: 1;
  background: #f2efe8;
  color: #131110;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px;
  min-height: 44px;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s;
}
#sticky-atc-btn:hover { background: var(--accent); }
#sticky-atc-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 2px;
}
@media (min-width: 768px) { #sticky-atc { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  #sticky-atc { transition: none; }
  #sticky-atc-btn { transition: none; }
}

/* ─── Gallery prev/next nav ─────────────────────────────────────────────── */
.cc-gallery { position: relative; }

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 12, 10, 0.72);
  border: 1px solid rgba(196, 181, 138, 0.18);
  color: var(--accent, #c4b58a);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s cubic-bezier(0.32,0.72,0,1),
              background 0.2s cubic-bezier(0.32,0.72,0,1),
              transform 0.2s cubic-bezier(0.32,0.72,0,1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.cc-gallery:hover .gallery-nav-btn { opacity: 1; }
.gallery-nav-btn:hover {
  background: rgba(196, 181, 138, 0.18);
  transform: translateY(-50%) scale(1.08);
}
.gallery-nav-btn:active { transform: translateY(-50%) scale(0.96); }
.gallery-nav-btn:focus-visible {
  outline: 2px solid var(--accent, #c4b58a);
  outline-offset: 2px;
  opacity: 1;
}

/* full opacity on touch devices */
@media (hover: none) {
  .gallery-nav-btn { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-nav-btn { transition: none; }
}

/* ─── Gallery counter ────────────────────────────────────────────────────── */
#gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 10;
  pointer-events: none;
  border-radius: 100px;
  user-select: none;
}

/* ─── Size & color variant selection ────────────────────────────────────── */
.size-btn-active {
  border-color: var(--accent, #c4b58a) !important;
  color: var(--accent, #c4b58a) !important;
}
.color-btn-active {
  outline: 2px solid var(--accent, #c4b58a);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  [data-size-group] button, [data-color-group] button { transition: none; }
}

/* ─── Thumbnail strip ────────────────────────────────────────────────────── */
.thumb-btn {
  opacity: 0.4;
  transition: opacity 0.25s ease;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.thumb-btn:hover { opacity: 0.7; }
.thumb-btn.active { opacity: 1; border-color: rgba(242, 239, 232, 0.5); }
.thumb-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .thumb-btn { transition: none; }
}

/* ─── Hero parallax ──────────────────────────────────────────────────────── */
.hero-parallax-img { will-change: transform; }

/* ─── Section divider ────────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ─── Category card ──────────────────────────────────────────────────────── */
.category-card {
  position: relative;
  overflow: hidden;
  display: block;
}
.category-card img {
  transition: transform 0.9s var(--ease-out-quart);
}
.category-card:hover img { transform: scale(1.07); }
.category-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 12, 10, 0.75) 0%, rgba(13, 12, 10, 0.1) 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

/* ─── Testimonial card ───────────────────────────────────────────────────── */
.testimonial-card {
  background: #1f1d1a;
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.3s ease;
}
.testimonial-card:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .testimonial-card { transition: none; }
}

/* ─── Newsletter input ───────────────────────────────────────────────────── */
.newsletter-input {
  background: transparent;
  border: 1px solid var(--border);
  border-right: none;
  color: #f2efe8;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color 0.25s;
}
.newsletter-input::placeholder { color: var(--text-faint); }
.newsletter-input:focus:not(:focus-visible) { outline: none; border-color: var(--accent); }
.newsletter-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .newsletter-input { transition: none; }
}

/* ─── Star rating ────────────────────────────────────────────────────────── */
.star-filled { color: var(--accent); }
.star-empty  { color: var(--border); }

/* ─── HUD crosshair corner decoration ───────────────────────────────────── */
.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.hud-corner-tl { top: 0; left: 0; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.hud-corner-tr { top: 0; right: 0; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.hud-corner-bl { bottom: 0; left: 0; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.hud-corner-br { bottom: 0; right: 0; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

/* ─── Cursor glow (desktop only) ────────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 181, 138, 0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s;
  will-change: transform;
}
@media (max-width: 768px) { #cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #cursor-glow { transition: none; }
}

/* ─── Asymmetric product grid helpers ────────────────────────────────────── */
.product-grid-featured { aspect-ratio: 3 / 4; }
.product-grid-standard { aspect-ratio: 3 / 4; }
@media (min-width: 768px) {
  .product-grid-large   { aspect-ratio: 2 / 3; }
  .product-grid-small   { aspect-ratio: 3 / 4; }
}

/* ─── Gallery card effects ───────────────────────────────────────────────── */
.perspective-container { perspective: 1000px; }
.card-3d-stack {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.card-3d-stack:hover { transform: rotateY(-4deg) rotateX(2deg) scale(1.02); }
@media (prefers-reduced-motion: reduce) {
  .card-3d-stack { transition: none; }
  .card-3d-stack:hover { transform: none; }
}
.soft-shadow-lift {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.soft-shadow-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.38);
}
@media (prefers-reduced-motion: reduce) {
  .soft-shadow-lift { transition: box-shadow 0.4s; }
  .soft-shadow-lift:hover { transform: none; }
}
.glass-card {
  background: rgba(13, 12, 10, 0.72);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ─── Gallery item hover overlay ────────────────────────────────────────── */
.gallery-item-img {
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.gallery-item:hover .gallery-item-img { transform: scale(1.05); }

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.gallery-item:hover .gallery-item-overlay { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .gallery-item-img    { transition: none; }
  .gallery-item-overlay{ transition: none; }
  .gallery-item:hover .gallery-item-overlay { transform: translateY(0); }
}

/* ─── Homepage hero CTAs ─────────────────────────────────────────────────── */
.cc-btn-primary:hover  { background: #d4c89a; }
.cc-btn-primary:active { transform: scale(0.97); }
.cc-btn-primary:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.cc-btn-ghost:hover        { border-color: rgba(255, 255, 255, 0.35); color: #f2efe8; }
.cc-btn-ghost:active       { transform: scale(0.97); }
.cc-btn-ghost:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.cc-link-arrow:hover { color: #f2efe8; }
.cc-link-arrow:hover svg { transform: translate(2px, -2px); }
.cc-link-arrow svg { transition: transform 0.2s var(--ease-out-quart); }
.cc-link-arrow:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  .cc-btn-primary:active,
  .cc-btn-ghost:active   { transform: none; }
  .cc-link-arrow svg     { transition: none; }
}

/* ─── WooCommerce overrides ──────────────────────────────────────────────── */
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #1f1d1a;
  border: 1px solid var(--border);
  color: #f2efe8;
  padding: 14px 20px;
  margin-bottom: 20px;
  list-style: none;
}
.woocommerce-message { background: oklch(11% 0.008 60); border-color: oklch(55% 0.03 85 / 0.4); }
.woocommerce-error   { background: oklch(11% 0.006 25); border-color: oklch(55% 0.12 25 / 0.5); }

.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce-checkout {
  font-family: 'DM Sans', sans-serif;
  color: #f2efe8;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
  border-color: var(--border);
}

.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
  background: #f2efe8;
  color: #131110;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
  background: var(--accent);
  color: #131110;
}
@media (prefers-reduced-motion: reduce) {
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce a.button {
    transition: none;
  }
}

.woocommerce-checkout #payment {
  background: #1f1d1a;
  border-radius: 0;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: transparent;
  border: 1px solid var(--border);
  color: #f2efe8;
  font-family: 'DM Sans', sans-serif;
  border-radius: 0;
  padding: 12px 14px;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: none;
  outline: none;
}
.woocommerce form .form-row label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ─── Blog card image hover ──────────────────────────────────────────────── */
.blog-card-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.blog-card-img-link:hover .blog-card-img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .blog-card-img { transition: none; }
  .blog-card-img-link:hover .blog-card-img { transform: none; }
}

/* ─── Homepage newsletter submit button ──────────────────────────────────── */
.cc-nl-submit {
  padding: 0.9rem 1.625rem;
  background: #c4b58a;
  color: #131110;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.1s cubic-bezier(0.23, 1, 0.32, 1);
}
.cc-nl-submit:hover { background: #d4c89a; }
.cc-nl-submit:active { transform: scale(0.97); }
.cc-nl-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .cc-nl-submit { transition: background 0.18s ease; }
  .cc-nl-submit:active { transform: none; }
}

/* ─── Footer full-bleed wordmark ────────────────────────────────────────── */
.cc-footer-wordmark {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4.5rem, 19vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-decoration: none;
  white-space: nowrap;
  padding: clamp(2rem, 5vh, 4rem) clamp(1.5rem, 5vw, 5rem) clamp(1.75rem, 4vh, 3.5rem);
  transition: opacity 0.2s ease;
}
.cc-footer-wordmark:hover { opacity: 0.65; }
.cc-footer-wordmark:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -4px;
}
@media (prefers-reduced-motion: reduce) { .cc-footer-wordmark { transition: none; } }

/* ─── Footer collapsible nav (mobile) ───────────────────────────────────── */
.footer-nav-group { list-style: none; }
.footer-nav-group > summary { list-style: none; }
.footer-nav-group > summary::-webkit-details-marker { display: none; }

.footer-nav-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  min-height: 44px;
}
@media (min-width: 768px) {
  .footer-nav-summary { cursor: default; pointer-events: none; }
}

.footer-nav-chevron {
  color: var(--text-faint);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  flex-shrink: 0;
}
.footer-nav-group[open] .footer-nav-chevron { transform: rotate(180deg); }
@media (min-width: 768px) {
  .footer-nav-chevron { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-nav-chevron { transition: none; }
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
  overflow: hidden;
}

/* Desktop: always open -- force content visible regardless of open attribute */
@media (min-width: 768px) {
  .footer-nav-group { display: flex; flex-direction: column; gap: 1rem; }
  .footer-nav-links { display: flex !important; margin-top: 0 !important; }
}

/* ─── Product review star picker ─────────────────────────────────────────── */
.cc-star-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.23,1,0.32,1);
  touch-action: manipulation;
}
.cc-star-btn:hover { transform: scale(1.2); }
.cc-star-btn:active { transform: scale(0.92); }
@media (prefers-reduced-motion: reduce) {
  .cc-star-btn { transition: none; }
}

/* ─── Newsletter input focus via CSS ─────────────────────────────────────── */
.newsletter-input-field {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  padding: 0.9rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: #f2efe8;
  outline: none;
  min-height: 44px;
  transition: border-color 0.2s;
}
.newsletter-input-field::placeholder { color: rgba(242, 239, 232, 0.35); }
.newsletter-input-field:focus { border-color: rgba(196, 181, 138, 0.5); }
.newsletter-input-field:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .newsletter-input-field { transition: none; }
}

/* ─── Content visibility -- defer off-screen rendering ────────────────────── */
#cc-arrivals,
#cc-categories,
#cc-testimonials,
#cc-newsletter {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ─── Image size containment -- prevent CLS ───────────────────────────────── */
.cc-card-img,
.product-img-wrap img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ─── Scroll lock (iOS-safe) ─────────────────────────────────────────────── */
body.scroll-locked {
  overflow: hidden;
  touch-action: none;
  /* Prevent layout shift on desktop when scrollbar disappears */
  padding-right: var(--scrollbar-width, 0px);
}

/* ─── Anchor scroll offset (fixed nav) ──────────────────────────────────── */
#cc-arrivals,
#cc-categories,
#cc-philosophy,
#cc-testimonials,
#cc-newsletter {
  scroll-margin-top: 80px;
}

/* ─── Newsletter input -- enhanced focus ring ─────────────────────────────── */
.newsletter-input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.newsletter-input-field::placeholder { color: rgba(242,239,232,.28); }

/* ─── Quick-add btn active press ─────────────────────────────────────────── */
.quick-add-btn:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .quick-add-btn:active { transform: none; }
}

/* ─── Card bento: consistent gap and min-width safeguard ─────────────────── */
.cc-bento { gap: clamp(0.5rem, 1.5vw, 1rem); }
.cc-card  { min-width: 0; }

/* Bento layout variants by product count */
@media (min-width: 768px) {
  /* 1 product: single full-width card */
  .cc-bento--one { grid-template-columns: 1fr !important; }

  /* 2 products: equal side-by-side, no featured span */
  .cc-bento--two { grid-template-columns: repeat(2, 1fr) !important; }
  .cc-bento--two .cc-card-featured {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* 3-4 products: standard featured layout */
  .cc-bento--many { grid-template-columns: repeat(3, 1fr) !important; }
  .cc-bento--many .cc-card-featured {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
  }
}

/* ─── Testimonial blockquote cite hover ──────────────────────────────────── */
blockquote footer cite {
  transition: color 0.18s;
}
@media (prefers-reduced-motion: reduce) {
  blockquote footer cite { transition: none; }
}

/* ─── Footer wordmark hover ──────────────────────────────────────────────── */
footer .font-display:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ─── Mobile newsletter form stacking (<360px) ──────────────────────────── */
@media (max-width: 360px) {
  #newsletter-form {
    flex-wrap: wrap;
  }
  #newsletter-form .newsletter-input {
    border-right: 1px solid var(--border) !important;
  }
  #newsletter-form .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Mobile size button minimum width safeguard ─────────────────────────── */
@media (max-width: 360px) {
  [data-size-group] {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ─── Category accordion: no-image fallback ─────────────────────────────── */
.cc-cat-panel--no-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(196,181,138,.07) 0%, transparent 65%),
    linear-gradient(to top, rgba(13,12,10,.85) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.cc-cat-panel--no-img .cc-cat-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,181,138,.2) 50%, transparent);
}

/* ─── WooCommerce My Account – full dark theme ───────────────────────────── */
.woocommerce-account .woocommerce,
.woocommerce-account .entry-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Account wrapper */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  font-family: 'DM Sans', sans-serif;
  color: #f2efe8;
}

/* Nav list */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,239,232,.5);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color 0.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: #c4b58a;
}

/* Heading: remove the PAGE / MY ACCOUNT breadcrumb-looking block */
.woocommerce-account .entry-header,
.woocommerce-account .entry-title,
.page-title { display: none; }

/* Account grid layout */
@media (min-width: 768px) {
  .woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* Content headings */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #f2efe8;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-bottom: 1rem;
}

/* Tables (orders, etc.) */
.woocommerce-account table.woocommerce-orders-table,
.woocommerce-account table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: rgba(242,239,232,.7);
}
.woocommerce-account table.woocommerce-orders-table th,
.woocommerce-account table.shop_table th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,239,232,.38);
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
}
.woocommerce-account table.woocommerce-orders-table td,
.woocommerce-account table.shop_table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: middle;
}
.woocommerce-account table a {
  color: #c4b58a;
  text-decoration: none;
}
.woocommerce-account table a:hover { color: #d4c89a; }

/* Address blocks */
.woocommerce-account address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(242,239,232,.6);
}

/* Form fields */
.woocommerce-account .woocommerce-EditAccountForm input,
.woocommerce-account .woocommerce-address-fields input,
.woocommerce-account .woocommerce-address-fields select {
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  color: #f2efe8;
  font-family: 'DM Sans', sans-serif;
  padding: 12px 14px;
  width: 100%;
  border-radius: 0;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}
.woocommerce-account .woocommerce-EditAccountForm input:focus,
.woocommerce-account .woocommerce-address-fields input:focus {
  outline: none;
  border-color: #c4b58a;
}

/* Paragraph copy inside account */
.woocommerce-account .woocommerce-MyAccount-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(242,239,232,.58);
}

/* Main account page container: match site padding */
.woocommerce-account .hentry,
.woocommerce-account .type-page {
  padding: 7rem clamp(1.5rem,5vw,5rem) 8rem;
  max-width: 1400px;
  margin: 0 auto;
  background: transparent;
}

/* ─── Cookie consent: neutralize third-party widget ─────────────────────── */
/* Handles common cookie plugin wrappers without breaking them */
#cookie-law-info-bar,
#cookie_action_close_header,
.cc-nb-main-container,
.cookieconsent-optout,
#wpadminbar ~ .cc-window,
.cc-window,
#CookieInformationConsentDialog {
  background: rgba(19,17,16,0.97) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(242,239,232,.7) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* The CookieAdmin floating circle / badge */
[class*="cookie-admin"],
[id*="cookieadmin"],
[class*="CookieAdmin"],
.cookie-admin-float,
#cookie-admin-btn,
.cookieadmin-btn {
  background: rgba(19,17,16,0.95) !important;
  border: 1px solid rgba(196,181,138,.25) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #c4b58a !important;
  width: 40px !important;
  height: 40px !important;
}

/* Ninja cookie / CookieYes / generic circular badge */
#cookie-law-info-bar .cookie-adm-button,
.cookie-notice-container .btn,
.cli-plugin-main-link,
.cookie-btn,
#cn-accept-cookie {
  background: #c4b58a !important;
  color: #131110 !important;
  border-radius: 0 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  border: none !important;
  padding: 10px 20px !important;
  box-shadow: none !important;
}

/* ─── UX: Quantity input — hide browser spinners ────────────────────────── */
#qty-input::-webkit-outer-spin-button,
#qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#qty-input { -moz-appearance: textfield; }

/* ─── UX: Accordion — smooth open/close with height animation ───────────── */
details.accordion-item summary { transition: color 0.2s cubic-bezier(0.23,1,0.32,1); }
details.accordion-item > div {
  overflow: hidden;
  animation: accordionOpen 0.28s cubic-bezier(0.23,1,0.32,1) both;
}
@keyframes accordionOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  details.accordion-item > div { animation: none; }
}

/* ─── UX: Related products — horizontal scroll on mobile ─────────────────── */
@media (max-width: 767px) {
  .cc-related-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .cc-related-grid > * {
    flex: 0 0 60vw;
    max-width: 220px;
    scroll-snap-align: start;
  }
}

/* ─── UX: Cart drawer empty state CTA ───────────────────────────────────── */
#cart-drawer-items a[href*="shop"] {
  touch-action: manipulation;
}

/* ─── Quantity stepper touch fix ─────────────────────────────────────────── */
#qty-minus, #qty-plus {
  touch-action: manipulation;
}

/* ─── My Account nav focus-visible ──────────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* ─── WooCommerce form inputs focus-visible ──────────────────────────────── */
.woocommerce-account .woocommerce-EditAccountForm input:focus-visible,
.woocommerce-account .woocommerce-address-fields input:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 0;
}

/* ─── Page about: hero image CLS fix ────────────────────────────────────── */
.page-about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── text-wrap balance on testimonials heading ──────────────────────────── */
.testimonial-card blockquote {
  text-wrap: pretty;
}

/* ─── Scroll margin for anchor targets (nav height clearance) ────────────── */
[id] { scroll-margin-top: 80px; }

/* ─── Long product/brand names: allow hyphenation in meta ───────────────── */
.cc-cart-name,
.cc-pcard-name,
.cc-cart-variant {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ─── Gallery: prevent body scroll bleed on iOS when lightbox open ───────── */
body.lightbox-open { overflow: hidden; touch-action: none; }

/* ─── Checkout form: select dark mode on all OS ──────────────────────────── */
.woocommerce-checkout .form-row select {
  color-scheme: dark;
}

/* ─── Focus-visible: qty input in cart ──────────────────────────────────── */
.cc-qty-input:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

/* ─── Print: hide animations and sticky nav ─────────────────────────────── */
@media print {
  #site-nav, #back-to-top, #scroll-progress,
  #cart-drawer, #cart-overlay, #search-overlay,
  #mobile-menu-overlay, #cc-announcement { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ─── Improve footer nav link min touch target ───────────────────────────── */
.footer-nav-links a {
  min-height: 36px;
  display: flex;
  align-items: center;
}

/* ─── Stripe payment gateway ─────────────────────────────────────────────── */

/* Payment method tab: Stripe option */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:last-child {
  border-bottom: none;
}
.woocommerce-checkout #payment ul.payment_methods li label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
}
.woocommerce-checkout #payment ul.payment_methods li label:hover {
  color: var(--text);
}
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked + label,
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]:checked ~ label {
  color: var(--accent);
}
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  accent-color: var(--accent);
}
/* Stripe logo beside payment label */
.woocommerce-checkout #payment ul.payment_methods li label img {
  max-height: 22px;
  width: auto;
  opacity: 0.75;
  filter: brightness(0) invert(1);
}

/* Stripe card element container */
.woocommerce-checkout #payment .payment_box {
  background: transparent;
  padding: 0 20px 20px;
}
#wc-stripe-card-element,
#stripe-card-element,
.wc-stripe-elements-field {
  background: oklch(8% 0.008 60);
  border: 1px solid var(--border);
  padding: 14px 14px;
  border-radius: 0;
  transition: border-color 0.2s;
}
#wc-stripe-card-element:focus-within,
#stripe-card-element:focus-within,
.wc-stripe-elements-field:focus-within {
  border-color: var(--accent);
}
.wc-stripe-elements-field--error,
#wc-stripe-card-element.wc-stripe-elements-field--error {
  border-color: oklch(55% 0.18 25);
}

/* Stripe new Payment Element wrapper */
#wc-stripe-payment-element,
.wc-stripe-payment-element-form {
  background: transparent;
}

/* Stripe error messages */
.woocommerce-checkout .stripe-source-errors,
.woocommerce-checkout #wc-stripe-error,
.woocommerce-checkout .woocommerce-error li {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: oklch(70% 0.14 25);
  margin-top: 8px;
}

/* Save card checkbox */
.woocommerce-checkout #wc-stripe-new-payment-method-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-dim);
}
.woocommerce-checkout #wc-stripe-new-payment-method-checkbox input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
}


/* ─── WooCommerce account: button theming ────────────────────────────────── */
.woocommerce-account .button,
.woocommerce-account .woocommerce-Button {
  background: var(--color-text-primary) !important;
  color: var(--color-surface-primary) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 14px 20px !important;
  cursor: pointer;
  transition: background 0.2s cubic-bezier(0.23,1,0.32,1);
  min-height: 44px;
}
.woocommerce-account .button:hover,
.woocommerce-account .woocommerce-Button:hover {
  background: var(--color-accent-primary) !important;
}
.woocommerce-account .button:focus-visible,
.woocommerce-account .woocommerce-Button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Prose content: policy / info / support pages ───────────────────────── */

/* Two-column layout: sidebar TOC + content */
.cc-page-layout {
  display: block;
}
@media (min-width: 900px) {
  .cc-page-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

/* ── Sticky sidebar TOC ── */
.cc-toc-sidebar {
  display: none;
}
@media (min-width: 900px) {
  .cc-toc-sidebar {
    display: block;
    position: sticky;
    top: 6.5rem;
  }
}
.cc-toc-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(242,239,232,.28);
  margin: 0 0 1.25rem;
}
.cc-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .125rem;
}
.cc-toc-link {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: .01em;
  color: rgba(242,239,232,.3);
  text-decoration: none;
  padding: .5rem 0 .5rem .875rem;
  border-left: 1px solid rgba(255,255,255,.07);
  transition: color .15s ease, border-color .15s ease;
  line-height: 1.4;
}
.cc-toc-link:hover { color: rgba(242,239,232,.65); border-left-color: rgba(255,255,255,.2); }
.cc-toc-link.cc-toc-active {
  color: var(--color-accent-primary);
  border-left-color: var(--color-accent-primary);
}

/* ── Mobile TOC ── */
.cc-toc-mobile {
  display: block;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255,255,255,.07);
}
@media (min-width: 900px) {
  .cc-toc-mobile { display: none; }
}
.cc-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  cursor: pointer;
  color: rgba(242,239,232,.45);
  touch-action: manipulation;
}
.cc-toc-toggle svg { transition: transform .2s ease; }
.cc-toc-mobile .cc-toc-list { padding: 0 1.25rem 1rem; gap: 0; }
.cc-toc-mobile .cc-toc-link { font-size: 11px; padding: .5rem 0 .5rem .75rem; }

/* ── Prose typography ── */
.cc-prose {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.0625rem, 1.5vw, 1.175rem);
  line-height: 1.9;
  color: rgba(242,239,232,.65);
  min-width: 0;
}
.cc-page-content { display: contents; }

.cc-prose h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--color-text-primary);
  margin: 0 0 2.25rem;
}
.cc-prose h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin: 4rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  scroll-margin-top: 7rem;
}
.cc-prose h3:first-child { margin-top: 0; }
.cc-prose h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--color-text-primary);
  margin: 2.25rem 0 .6rem;
}
.cc-prose p { margin: 0 0 1.15rem; }
.cc-prose p:last-child { margin-bottom: 0; }
.cc-prose em { font-style: italic; color: rgba(242,239,232,.45); }
.cc-prose strong { font-weight: 600; color: rgba(242,239,232,.88); font-style: normal; }

.cc-prose a {
  color: var(--color-accent-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,181,138,.28);
  transition: border-color .15s ease;
}
.cc-prose a:hover { border-bottom-color: var(--color-accent-primary); }
.cc-prose a:focus-visible { outline: 1px solid var(--color-accent-primary); outline-offset: 3px; }

.cc-prose ul, .cc-prose ol {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}
.cc-prose li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .6rem;
}
.cc-prose ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .82em;
  width: 4px;
  height: 4px;
  background: var(--color-accent-primary);
  border-radius: 50%;
  opacity: .65;
}
.cc-prose ol { counter-reset: cc-ol; }
.cc-prose ol > li { counter-increment: cc-ol; }
.cc-prose ol > li::before {
  content: counter(cc-ol) '.';
  position: absolute;
  left: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--color-accent-primary);
  line-height: 1.9;
}

.cc-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: .9375rem;
}
.cc-prose thead th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  padding: .6rem 1rem .6rem 0;
  text-align: left;
  border-bottom: 1px solid rgba(196,181,138,.2);
}
.cc-prose tbody td {
  padding: .9rem 1rem .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: top;
  transition: color .12s;
}
.cc-prose tbody tr:last-child td { border-bottom: none; }
.cc-prose tbody tr:hover td { color: rgba(242,239,232,.8); }

/* ── Accordion (FAQ / Shipping) ── */
.cc-accordion-item {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cc-accordion-item:first-of-type { border-top: 1px solid rgba(255,255,255,.06); }
.cc-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  transition: opacity .15s ease;
}
.cc-accordion-btn:hover { opacity: .8; }
.cc-accordion-btn:focus-visible { outline: 1px solid var(--color-accent-primary); outline-offset: 4px; }
.cc-accordion-q {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--color-text-primary);
  line-height: 1.4;
  font-weight: 500;
}
.cc-accordion-icon {
  flex-shrink: 0;
  color: var(--color-accent-primary);
  display: grid;
  place-items: center;
}
/* show plus icon when closed, minus when open */
.cc-accordion-btn[aria-expanded="false"] .cc-accordion-icon svg:last-child { display: none; }
.cc-accordion-btn[aria-expanded="true"]  .cc-accordion-icon svg:first-child { display: none; }
.cc-accordion-panel {
  padding: 0 0 1.25rem;
  animation: ccAccordionIn .22s cubic-bezier(0.23,1,0.32,1);
}
@keyframes ccAccordionIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll reveal ── */
.cc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(0.23,1,0.32,1), transform .55s cubic-bezier(0.23,1,0.32,1);
}
.cc-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cc-prose a, .cc-toc-link, .cc-accordion-btn { transition: none; }
  .cc-reveal { opacity: 1; transform: none; transition: none; }
}

/* Headings */
.cc-prose h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--color-text-primary);
  margin: 0 0 2rem;
}
.cc-prose h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin: 3.5rem 0 1.25rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cc-prose h3:first-child { margin-top: 0; }
.cc-prose h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--color-text-primary);
  margin: 2rem 0 .5rem;
}

/* Body text */
.cc-prose p { margin: 0 0 1.1rem; }
.cc-prose p:last-child { margin-bottom: 0; }
.cc-prose em { color: var(--color-text-faint); font-style: italic; }
.cc-prose strong { font-weight: 600; color: var(--color-text-primary); }

/* Links */
.cc-prose a {
  color: var(--color-accent-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,181,138,.28);
  transition: border-color .15s ease;
}
.cc-prose a:hover { border-bottom-color: var(--color-accent-primary); }
.cc-prose a:focus-visible { outline: 1px solid var(--color-accent-primary); outline-offset: 3px; border-radius: 1px; }

/* Lists */
.cc-prose ul,
.cc-prose ol {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}
.cc-prose li {
  position: relative;
  padding-left: 1.375rem;
  margin-bottom: .55rem;
  color: var(--color-text-dim);
}
.cc-prose ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .8em;
  width: 4px;
  height: 4px;
  background: var(--color-accent-primary);
  border-radius: 50%;
  opacity: .7;
}
.cc-prose ol { counter-reset: cc-prose-ol; }
.cc-prose ol > li { counter-increment: cc-prose-ol; }
.cc-prose ol > li::before {
  content: counter(cc-prose-ol);
  position: absolute;
  left: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.85;
  color: var(--color-accent-primary);
}

/* Table */
.cc-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: .875rem;
}
.cc-prose thead th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  padding: .625rem 1.25rem .625rem 0;
  text-align: left;
  border-bottom: 1px solid rgba(196,181,138,.2);
}
.cc-prose tbody td {
  padding: .875rem 1.25rem .875rem 0;
  color: var(--color-text-dim);
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: top;
}
.cc-prose tbody tr:last-child td { border-bottom: none; }
.cc-prose tbody tr:hover td { color: rgba(242,239,232,.72); }

/* Horizontal rule */
.cc-prose hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  margin: 2.5rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .cc-prose a { transition: none; }
}

/* ─── Pagination (shop / archive) ───────────────────────────────────────── */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.page-numbers:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}
.page-numbers.current {
  background: var(--color-text-primary);
  color: var(--color-surface-primary);
  border-color: var(--color-text-primary);
}

/* ─── WooCommerce Blocks checkout — dark theme ──────────────────────────── */
/* Block-based checkout/cart ships white inputs with pale floating labels.
   Re-skin every form component to the dark palette. */

/* Text inputs, comboboxes, native selects, textareas */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="url"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-select .components-custom-select-control__button,
.wc-block-components-select__select,
.wc-block-components-textarea,
.wc-block-components-form .wc-block-components-text-input input {
  background: var(--color-surface-card) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-border-medium) !important;
  border-radius: 0 !important;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px !important;
  transition: border-color .2s ease;
}

/* Floating labels — both resting (inside input) and raised states */
.wc-block-components-text-input label,
.wc-block-components-combobox .components-base-control__label,
.wc-block-components-combobox label,
.wc-block-components-select label,
.wc-block-components-country-input label,
.wc-block-components-state-input label {
  color: var(--color-text-dim) !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px !important;
  letter-spacing: 0.04em;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input:focus-within label {
  color: var(--color-accent-primary) !important;
}

/* Focus state */
.wc-block-components-text-input input:focus,
.wc-block-components-combobox .components-combobox-control__input:focus,
.wc-block-components-select__select:focus,
.wc-block-components-textarea:focus {
  border-color: var(--color-accent-primary) !important;
  box-shadow: 0 0 0 1px var(--color-accent-primary) !important;
  outline: none !important;
}

/* Chrome/Safari autofill — keeps fields dark instead of white/yellow */
.wc-block-components-text-input input:-webkit-autofill,
.wc-block-components-text-input input:-webkit-autofill:hover,
.wc-block-components-text-input input:-webkit-autofill:focus,
.wc-block-components-combobox .components-combobox-control__input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--color-surface-card) inset !important;
  -webkit-text-fill-color: var(--color-text-primary) !important;
  caret-color: var(--color-text-primary);
}

/* Combobox dropdown suggestions (country / state lists) */
.components-form-token-field__suggestions-list {
  background: var(--color-surface-elevated) !important;
  border: 1px solid var(--color-border-medium) !important;
  color: var(--color-text-primary) !important;
}
.components-form-token-field__suggestions-list li {
  color: var(--color-text-dim) !important;
}
.components-form-token-field__suggestions-list li.is-selected,
.components-form-token-field__suggestions-list li:hover {
  background: rgba(196,181,138,0.16) !important;
  color: var(--color-text-primary) !important;
}

/* Select chevron + combobox icons */
.wc-block-components-combobox svg,
.wc-block-components-select svg {
  fill: var(--color-text-dim) !important;
}

/* Checkbox ("Use same address for billing") */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
  background: var(--color-surface-card) !important;
  border: 1px solid var(--color-border-medium) !important;
  border-radius: 0 !important;
}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
  background: var(--color-accent-primary) !important;
  border-color: var(--color-accent-primary) !important;
}
.wc-block-components-checkbox .wc-block-components-checkbox__mark {
  fill: #131110 !important;
}
.wc-block-components-checkbox__label {
  color: var(--color-text-dim) !important;
  font-size: 13px !important;
}

/* Saved address card */
.wc-block-components-address-card {
  background: var(--color-surface-card) !important;
  border: 1px solid var(--color-border-subtle) !important;
  border-radius: 0 !important;
  color: var(--color-text-dim) !important;
}
.wc-block-components-address-card address,
.wc-block-components-address-card .wc-block-components-address-card__address-section {
  color: var(--color-text-dim) !important;
}
.wc-block-components-address-card-list-item-actions button,
.wc-block-components-address-card__edit {
  color: var(--color-accent-primary) !important;
}

/* Radio controls (shipping options) */
.wc-block-components-radio-control__option {
  color: var(--color-text-primary) !important;
}
.wc-block-components-radio-control__input {
  border-color: var(--color-border-medium) !important;
  background: var(--color-surface-card) !important;
}
.wc-block-components-radio-control__input:checked {
  border-color: var(--color-accent-primary) !important;
}
.wc-block-components-radio-control__input:checked::before {
  background: var(--color-accent-primary) !important;
}

/* Panels (Add coupons / order notes accordions) */
.wc-block-components-panel__button {
  color: var(--color-text-primary) !important;
}
.wc-block-components-panel__content {
  border-color: var(--color-border-subtle) !important;
}

/* Validation errors */
.wc-block-components-validation-error p {
  color: #e0a3a3 !important;
  font-size: 12px !important;
}
.has-error .wc-block-components-text-input input,
.wc-block-components-text-input.has-error input {
  border-color: #b05c5c !important;
}

/* Step headings + form text */
.wc-block-components-checkout-step__heading .wc-block-components-title,
.wc-block-components-checkout-step__title {
  color: var(--color-text-primary) !important;
}
.wc-block-components-checkout-step__description {
  color: var(--color-text-faint) !important;
}

/* Place Order button */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
  background: var(--color-accent-primary) !important;
  color: #131110 !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  transition: opacity .2s ease;
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover {
  opacity: 0.88;
}

/* Order summary sidebar */
.wc-block-components-totals-item,
.wc-block-components-totals-coupon,
.wc-block-components-order-summary,
.wc-block-components-checkout-order-summary__title {
  color: var(--color-text-primary) !important;
}
.wc-block-components-totals-coupon__input input {
  background: var(--color-surface-card) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-border-medium) !important;
  border-radius: 0 !important;
}
.wc-block-components-totals-coupon__button {
  background: transparent !important;
  color: var(--color-accent-primary) !important;
  border: 1px solid var(--color-accent-primary) !important;
  border-radius: 0 !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

/* "Or continue below" express-checkout separator */
.wc-block-components-express-payment-continue-rule {
  color: var(--color-text-faint) !important;
}
.wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment-continue-rule::after {
  border-color: var(--color-border-subtle) !important;
}

/* ─── Wishlist heart toggle ──────────────────────────────────────────────── */
.cc-wish-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,12,10,0.55);
  border: none;
  border-radius: 50%;
  color: rgba(242,239,232,0.75);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .15s cubic-bezier(0.23,1,0.32,1), color .15s ease, background .15s ease;
}
.cc-wish-btn svg {
  fill: none;
  stroke: currentColor;
  transition: fill .15s ease, stroke .15s ease;
}
.cc-wish-btn:hover {
  color: var(--color-accent-primary);
  background: rgba(13,12,10,0.78);
}
.cc-wish-btn:active { transform: scale(0.92); }
.cc-wish-btn:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}
.cc-wish-btn.is-saved { color: var(--color-accent-primary); }
.cc-wish-btn.is-saved svg {
  fill: #c4b58a;
  stroke: #c4b58a;
}

/* PDP variant: bordered square beside Add to Bag */
.cc-wish-btn--pdp {
  position: static;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border: 1px solid var(--color-border-medium);
  border-radius: 0;
  background: transparent;
}
.cc-wish-btn--pdp:hover {
  background: rgba(196,181,138,0.07);
  border-color: var(--color-accent-dim);
}

/* ─── Wishlist page grid ─────────────────────────────────────────────────── */
.cc-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(.75rem, 1.5vw, 1.25rem);
  row-gap: clamp(3rem, 5vw, 5rem);
}
@media (min-width: 768px) {
  .cc-wishlist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .cc-wishlist-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1.5rem;
  }
}

/* ─── Recently viewed strip ──────────────────────────────────────────────── */
.cc-recent-strip {
  display: flex;
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cc-recent-strip::-webkit-scrollbar { display: none; }
.cc-recent-strip > * { flex: 0 0 42vw; }
@media (min-width: 768px) {
  .cc-recent-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
  .cc-recent-strip > * { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-wish-btn { transition: none; }
  .cc-wish-btn svg { transition: none; }
}

/* ─── Lenis smooth scroll ─────────────────────────────────────────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html.scroll-smooth { scroll-behavior: auto; }
}
