/* =========================================================================
   Barkside Bakery — theme.css
   All visual styling for the theme lives in this single stylesheet.
   ========================================================================= */

:root {
  /* Editable brand tokens are injected as hex vars via wp_add_inline_style
     (see inc/customizer.php): --color-background, --color-foreground,
     --color-primary, --color-primary-fg, --color-accent, --color-border,
     --color-butter, --color-card, --color-muted-fg, --logo-height. */

  /* Non-editable derived / decorative tokens (Section 6 — not exposed as
     controls because they are not independently visible in the source). */
  --color-secondary: #EEE6DA;
  --color-ring: var(--color-primary);
  --color-rosa: #cfa377;
  --color-marigold: #dcbd8d;
  --color-nopal: #2b1e14;
  --color-muted: #ebe5db;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 0.75rem;
  --shadow-soft: 0 4px 20px -4px rgba(43, 30, 20, 0.08);
  --shadow-elevated: 0 8px 40px -8px rgba(43, 30, 20, 0.14);
  --transition-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);

  --header-height: 80px;

  /* Button system tokens (Section 11.4.1) */
  --btn-radius: 999px;
  --btn-height: 44px;
  --btn-padding: 0 2rem;
  --btn-font-size: 12px;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.22em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.5rem;
  --color-button-text: var(--color-primary-fg);
  --checkout-gap: 2.5rem;
}

/* -------------------------------------------------------------------------
   RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
/* Element-level reset only: any class that sets an explicit height (logo,
   covers, cart thumbs) must win without needing extra specificity. */
img { height: auto; }
.cover-img, .hero-media, .theme-product-card__image, .theme-product-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; padding: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: inherit;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
h1, h2 { font-weight: 600; }

/* Marker highlight behind italic <em> words (source: .chaos-marker-pink) */
.about-heading em, .shop-heading:not(.page-title) em, .training-heading em, .faq-heading em {
  background-image: linear-gradient(120deg, color-mix(in srgb, var(--color-rosa) 55%, transparent) 0%, color-mix(in srgb, var(--color-rosa) 55%, transparent) 100%);
  background-repeat: no-repeat;
  background-size: 100% 38%;
  background-position: 0 82%;
  padding: 0 0.12em;
}
.tiles-heading em { color: var(--color-primary); }

.container-wide { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.container-narrow { width: 100%; max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.container-wide-narrow { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) {
  .container-wide, .container-narrow, .container-wide-narrow { padding: 0 1.5rem; }
}

/* -------------------------------------------------------------------------
   ANIMATIONS (Section 2.1)
   ------------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mobileNavItemIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mobileMenuIconIn { from { opacity: 0; transform: rotate(-45deg) scale(0.85); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes kenBurns { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes reelsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }
.animate-ken-burns { animation: kenBurns 15s ease-in-out infinite; }

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

/* Customizer preview fallback — reveal content must never stay hidden while editing. */
body.is-customizer .reveal-item { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-item { opacity: 1 !important; transform: none !important; }
  .mobile-menu,
  .mobile-menu__panel,
  .theme-mobile-nav-list li,
  .mobile-menu__cta,
  .mobile-menu-toggle__icon { transition: none !important; animation: none !important; }
}

/* -------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------- */
.btn-primary-pill, .btn-outline-pill, .btn-outline-pill-inverse, .btn-hero-primary, .btn-hero-outline, .btn-shop-header, .btn-shop-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--btn-radius);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: all 0.3s var(--transition-smooth);
  white-space: nowrap;
}
.btn-primary-pill {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  box-shadow: var(--shadow-soft);
}
.btn-primary-pill:hover { background-color: var(--color-primary); opacity: 0.9; transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.btn-outline-pill {
  background: transparent;
  color: var(--color-foreground);
  border: 1px solid rgba(0,0,0,0.25);
}
.btn-outline-pill:hover { background-color: var(--color-foreground); color: var(--color-background); }
.btn-outline-pill-inverse, .btn-hero-outline {
  background: transparent;
  color: var(--color-background);
  border: 1px solid rgba(255,255,255,0.7);
}
.btn-outline-pill-inverse:hover, .btn-hero-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-hero-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  box-shadow: var(--shadow-elevated);
}
.btn-hero-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-shop-header {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  padding: 0.625rem 1.25rem;
  letter-spacing: 0.025em;
}
.btn-shop-header:hover { opacity: 0.9; box-shadow: var(--shadow-elevated); transform: translateY(-2px); }
.btn-shop-mobile {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  width: fit-content;
  margin-top: 0.5rem;
  padding: 0.625rem 1.25rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.btn-shop-mobile:hover { opacity: 0.9; }
@media (max-width: 767px) { .btn-shop-header { display: none; } }

.icon { display: inline-block; flex-shrink: 0; }
.icon-xs { width: 0.875rem; height: 0.875rem; }
.icon-sm { width: 1.1rem; height: 1.1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  width: 100%;
  transition: all 0.5s ease-out;
  background-color: rgba(var(--color-background-rgb, 251,247,240), 0.95);
  border-bottom: 1px solid transparent;
}
body.theme-no-hero .site-header { position: sticky; }
/* Logged-in admin bar compensation for the fixed header. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.site-header.is-solid,
.site-header.is-scrolled,
.site-header.is-menu-open {
  background-color: color-mix(in srgb, var(--color-background) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 24px -12px rgba(43,30,20,0.18);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; position: relative; }
@media (min-width: 768px) { .site-nav { height: 5rem; } }

.site-logo-link { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; transition: transform 0.3s ease; }
.site-logo-link:hover { transform: scale(1.03); }
.site-logo-img { height: var(--logo-height, 64px); width: auto; object-fit: contain; display: block; }
@media (max-width: 767px) {
  /* Source: logo is h-12 mobile / h-16 desktop (0.75 ratio). */
  .site-nav .site-logo-img { height: calc(var(--logo-height, 64px) * 0.75); }
}
.site-logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-foreground); }
.site-logo-text--with-image { font-size: 1.1rem; }

.site-nav__desktop { display: none; }
@media (min-width: 1024px) { .site-nav__desktop { display: flex; align-items: center; gap: 2rem; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
/* Assigned WP menus don't carry .theme-nav-link/.nav-underline — style anchors directly. */
.theme-nav-list a,
.theme-nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  transition: color 0.3s ease;
}
.theme-nav-list a:hover,
.theme-nav-link:hover { color: var(--color-foreground); }
.theme-nav-list a,
.nav-underline { position: relative; }
.theme-nav-list a::after,
.nav-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.5px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--transition-smooth);
}
.theme-nav-list a:hover::after, .theme-nav-list a:focus-visible::after,
.nav-underline:hover::after, .nav-underline:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

.site-nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.cart-toggle-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent);
  transition: all 0.3s ease;
}
.cart-toggle-btn:hover { border-color: var(--color-foreground); background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent); transform: scale(1.05); }
.theme-cart-count {
  position: absolute; top: -0.25rem; right: -0.25rem;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-right: -0.5rem;
  transition: opacity 0.3s ease;
}
.mobile-menu-toggle:hover { opacity: 0.6; }
.mobile-menu-toggle__icon {
  position: relative;
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
}
.mobile-menu-toggle .icon {
  position: absolute;
  inset: 0;
  width: 1.25rem;
  height: 1.25rem;
  transition: opacity 0.25s ease, transform 0.35s var(--transition-smooth);
}
.mobile-menu-toggle .icon-menu-open {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.mobile-menu-toggle .icon-menu-close {
  opacity: 0;
  transform: rotate(-45deg) scale(0.85);
}
.mobile-menu-toggle.is-open .icon-menu-open {
  opacity: 0;
  transform: rotate(45deg) scale(0.85);
}
.mobile-menu-toggle.is-open .icon-menu-close {
  display: inline-block;
  opacity: 1;
  transform: rotate(0) scale(1);
  animation: mobileMenuIconIn 0.35s var(--transition-smooth) forwards;
}
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition:
    grid-template-rows 0.45s var(--transition-smooth),
    border-color 0.35s ease;
}
.mobile-menu.is-open {
  grid-template-rows: 1fr;
  border-top-color: var(--color-border);
}
.mobile-menu__panel {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition:
    opacity 0.35s var(--transition-smooth),
    transform 0.45s var(--transition-smooth),
    padding 0.45s var(--transition-smooth);
}
.mobile-menu.is-open .mobile-menu__panel {
  padding: 1rem 0;
  opacity: 1;
  transform: translateY(0);
}
.theme-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.theme-mobile-nav-list li {
  opacity: 0;
  transform: translateY(10px);
}
.mobile-menu.is-open .theme-mobile-nav-list li {
  animation: mobileNavItemIn 0.45s var(--transition-smooth) forwards;
}
.mobile-menu.is-open .theme-mobile-nav-list li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.is-open .theme-mobile-nav-list li:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.is-open .theme-mobile-nav-list li:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.is-open .theme-mobile-nav-list li:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.is-open .theme-mobile-nav-list li:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.is-open .theme-mobile-nav-list li:nth-child(6) { animation-delay: 0.3s; }
.theme-mobile-nav-list a {
  position: relative;
  display: block;
  text-align: left;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-foreground);
  transition: color 0.3s ease;
}
.theme-mobile-nav-list a::after { display: none; }
.theme-mobile-nav-list a:hover,
.theme-mobile-nav-list a:focus-visible { color: var(--color-primary); }
.mobile-menu__cta {
  opacity: 0;
  transform: translateY(10px);
}
.mobile-menu.is-open .mobile-menu__cta {
  animation: mobileNavItemIn 0.45s var(--transition-smooth) 0.35s forwards;
}
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* =========================================================================
   HOME MAIN / HERO
   ========================================================================= */
body.theme-no-hero .site-main:not(.home-main) { padding-top: var(--header-height); }
.not-home-main { padding-top: var(--header-height); padding-bottom: 4rem; min-height: 50vh; }

.hero-section { position: relative; background-color: var(--color-background); }
.hero-media-wrap { position: relative; width: 100%; height: 100vh; overflow: hidden; background-color: var(--color-foreground); }
.hero-overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-foreground) 55%, transparent); pointer-events: none; }
.hero-content-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-top: 3.5rem;
  text-align: center;
}
@media (min-width: 768px) { .hero-content-wrap { padding-top: 4rem; } }
.hero-content { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-background) 90%, transparent);
  margin-bottom: 1.25rem;
}
.hero-title {
  color: var(--color-background);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: clamp(3.5rem, 10vw, 5.5rem);
}
.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: color-mix(in srgb, var(--color-background) 90%, transparent);
  font-size: 1.125rem;
  line-height: 1.625;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.hero-actions .btn-hero-primary, .hero-actions .btn-hero-outline { width: 100%; }
@media (min-width: 768px) { .hero-actions .btn-hero-primary, .hero-actions .btn-hero-outline { width: auto; } }

/* =========================================================================
   SECTION HEADINGS (per-section scales — Section 2.2 point 5)
   ========================================================================= */
.section-heading-wrap { text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .section-heading-wrap { margin-bottom: 4rem; } }

.about-eyebrow, .tiles-eyebrow, .shop-eyebrow, .training-eyebrow, .faq-eyebrow, .contact-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.contact-eyebrow { color: var(--color-accent); }

.about-heading, .tiles-heading, .shop-heading:not(.page-title), .training-heading, .faq-heading {
  font-size: 2.25rem; line-height: 1.2; letter-spacing: -0.01em;
}
@media (min-width: 768px) { .about-heading, .tiles-heading, .shop-heading:not(.page-title), .training-heading, .faq-heading { font-size: 3rem; } }
.cta-band__title { font-size: 2.25rem; line-height: 1.1; }
@media (min-width: 768px) { .cta-band__title { font-size: 3rem; } }
@media (min-width: 1024px) { .cta-band__title { font-size: 3.75rem; } }
.contact-band__title { font-size: 1.875rem; line-height: 1.2; }
@media (min-width: 640px) { .contact-band__title { font-size: 2.25rem; } }
@media (min-width: 768px) { .contact-band__title { font-size: 3rem; } }

.section-heading em, h1 em, h2 em { font-style: italic; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-section { background-color: var(--color-butter); scroll-margin-top: 6rem; padding: 5rem 0; }
@media (min-width: 768px) { .about-section { padding: 7rem 0; } }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.about-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  min-height: 26.25rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: var(--color-card);
}
@media (min-width: 1024px) { .about-image-wrap { aspect-ratio: auto; height: 100%; } }
.about-image-wrap img { transition: transform 1.2s ease-out; }
.about-image-wrap:hover img { transform: scale(1.04); }
.about-image-wrap::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 1.5rem;
  border: 2px solid color-mix(in srgb, var(--color-primary) 85%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--color-primary) 30%, transparent), inset 0 0 20px color-mix(in srgb, var(--color-primary) 8%, transparent);
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.about-image-wrap:hover::after { opacity: 1; transform: scale(1); }
.about-copy { display: flex; flex-direction: column; justify-content: center; text-align: center; }
@media (min-width: 1024px) { .about-copy { text-align: left; } }
.about-heading { margin-bottom: 1.5rem; }
.about-body { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); font-size: 1.125rem; line-height: 1.625; margin: 0 0 1.25rem; }
.about-body--secondary { font-size: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .about-body--secondary { font-size: 1.125rem; } }
.about-cta { align-self: center; padding: 0.75rem 1.75rem; }
@media (min-width: 1024px) { .about-cta { align-self: flex-start; } }

/* =========================================================================
   TILES (What We Make)
   ========================================================================= */
.tiles-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-butter);
  background-image: repeating-linear-gradient(90deg, transparent 0 56px, color-mix(in srgb, var(--color-accent) 18%, transparent) 56px 88px);
  padding: 4rem 0;
}
@media (min-width: 768px) { .tiles-section { padding: 6rem 0; } }
/* Radial vignette fading the stripes toward the edges (source overlay div). */
.tiles-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--color-butter) 95%);
  pointer-events: none;
}
.tiles-section > .container-wide { position: relative; }
.tiles-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .tiles-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .tiles-grid { gap: 1.5rem; } }
@media (min-width: 1024px) { .tiles-grid { grid-template-columns: repeat(4, 1fr); } }
.tile-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 240px;
  padding: 1.75rem;
  border-radius: 28px;
  background-color: var(--color-background);
  border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  box-shadow: 0 8px 24px -12px rgba(67,38,20,0.18);
  transition: all 0.3s ease;
  overflow: hidden;
}
.tile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); }
.tile-card__ribbon {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2rem;
  opacity: 0.7;
  background-image: repeating-linear-gradient(180deg, color-mix(in srgb, var(--color-accent) 70%, white) 0 14px, transparent 14px 28px);
  transition: opacity 0.3s ease;
}
.tile-card:hover .tile-card__ribbon { opacity: 1; }
.tile-card__flower {
  position: absolute; top: 0.75rem; right: 1rem;
  font-family: var(--font-display);
  font-size: 1rem; color: color-mix(in srgb, var(--color-primary) 70%, transparent);
  transition: transform 0.3s ease;
}
.tile-card:hover .tile-card__flower { transform: rotate(12deg); }
.tile-card__icon-wrap {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background-color: var(--color-butter);
  border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.tile-card:hover .tile-card__icon-wrap { transform: scale(1.1) rotate(-6deg); }
.tile-card__label { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; padding: 0 0.5rem; word-break: break-word; }
@media (min-width: 768px) { .tile-card__label { font-size: 1.5rem; } }
.tile-card__explore {
  margin-top: 1rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
  color: var(--color-primary);
}
.tile-card__explore span { display: inline-block; transition: transform 0.3s ease; }
.tile-card:hover .tile-card__explore span { transform: translateX(4px); }

/* =========================================================================
   SHOP
   ========================================================================= */
.shop-section { background-color: var(--color-butter); scroll-margin-top: 6rem; padding: 4rem 0; }
@media (min-width: 768px) { .shop-section { padding: 6rem 0; } }
/* Source shop heading: wrapper mb-12 (no md bump) + h2 own mb-10. */
.shop-heading-wrap { margin-bottom: 3rem; }
@media (min-width: 768px) { .shop-heading-wrap { margin-bottom: 3rem; } }
.shop-heading-wrap .shop-heading { margin-bottom: 2.5rem; }
.theme-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
.theme-product-grid--related { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }

.theme-product-card-wrap { display: flex; }
.theme-product-card { position: relative; display: flex; flex-direction: column; width: 100%; }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card .add_to_cart_button,
.theme-product-card .theme-card-add-btn { pointer-events: auto; position: relative; z-index: 3; }

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background-color: var(--color-card);
  box-shadow: 0 4px 18px -10px rgba(67,38,20,0.18);
  transition: box-shadow 0.5s ease, transform 0.3s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-card__image-wrapper { box-shadow: 0 18px 40px -18px rgba(67,38,20,0.35); transform: translateY(-4px); }
.theme-product-card__image { transition: all 0.7s ease-out; }
.theme-product-card:hover .theme-product-card__image--main.has-hover { opacity: 0; }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.06); }
.theme-product-card__image--hover { opacity: 0; }
.theme-product-card:hover .theme-product-card__image--hover { opacity: 1; }
.theme-product-card__image.is-soldout { opacity: 0.6; }

.theme-badge {
  position: absolute; z-index: 4;
  top: 1rem; padding: 0.35rem 1rem;
  border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
}
.theme-badge--soldout { right: 1rem; background-color: var(--color-foreground); color: var(--color-background); }

.theme-product-card__info { padding: 0 0.25rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.theme-product-card__name {
  font-size: 1.25rem; line-height: 1.25; color: var(--color-foreground);
  transition: color 0.3s ease;
  overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 768px) { .theme-product-card__name { font-size: 1.5rem; } }
.theme-product-card:hover .theme-product-card__name { color: var(--color-primary); }
.theme-product-card__subtitle { margin: 0.5rem 0 1rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-muted-fg, color-mix(in srgb, var(--color-foreground) 55%, transparent)); }
.theme-product-card__cat::after { content: ''; }

.theme-card-add-btn, .add_to_cart_button.theme-card-add-btn {
  margin-top: auto;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 70%, transparent);
  background-color: transparent !important;
  color: var(--color-foreground) !important;
  font-size: 13px;
  letter-spacing: 0.025em;
  text-transform: none !important;
  text-align: center;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.theme-card-add-btn:hover, .add_to_cart_button.theme-card-add-btn:hover {
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
}
.theme-card-add-btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.theme-empty-state { text-align: center; padding: 5rem 0; }
.theme-empty-state p { color: var(--color-muted-fg, color-mix(in srgb, var(--color-foreground) 60%, transparent)); margin-bottom: 1rem; }
.theme-empty-state .btn-primary-pill { padding: 0.75rem 1.5rem; }

/* =========================================================================
   TRAINING
   ========================================================================= */
.training-section { background-color: var(--color-background); scroll-margin-top: 6rem; padding: 5rem 0; }
@media (min-width: 768px) { .training-section { padding: 7rem 0; } }
.training-heading-wrap { margin: 0 auto 3rem; }
@media (min-width: 768px) { .training-heading-wrap { margin-bottom: 4rem; } }
.training-heading { margin-bottom: 1.25rem; }
.training-intro { max-width: 42rem; margin: 0 auto; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); font-size: 1rem; line-height: 1.625; }
@media (min-width: 768px) { .training-intro { font-size: 1.125rem; } }
.training-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .training-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; } }
.focus-card {
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  background-color: var(--color-card);
  padding: 1.5rem;
  box-shadow: 0 6px 20px -12px rgba(67,38,20,0.18);
  transition: all 0.3s ease;
}
@media (min-width: 768px) { .focus-card { padding: 1.75rem; } }
.focus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.focus-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background-color: var(--color-butter);
  border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.focus-card__title { font-size: 1.25rem; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .focus-card__title { font-size: 1.5rem; } }
.focus-card__body { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); font-size: 0.95rem; line-height: 1.6; margin: 0; }
@media (min-width: 768px) { .focus-card__body { font-size: 1rem; } }
.training-cta-wrap { margin-top: 3rem; text-align: center; }

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta-band { position: relative; overflow: hidden; }
.cta-band__bg {
  position: absolute; inset: -15% 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.cta-band__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(31,20,13,0.55) 0%, rgba(20,13,8,0.65) 100%);
}
.cta-band__content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 60vh;
  padding: 5rem 1rem;
}
@media (min-width: 768px) { .cta-band__content { min-height: 68vh; padding: 7rem 1rem; } }
.cta-band__title { color: var(--color-background); }
.cta-band__body { margin-top: 1.5rem; color: color-mix(in srgb, var(--color-background) 90%, transparent); font-size: 1.125rem; line-height: 1.7; max-width: 36rem; }
@media (min-width: 768px) { .cta-band__body { font-size: 1.25rem; } }
.cta-band__actions { margin-top: 2.25rem; display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; width: 100%; }
@media (min-width: 640px) { .cta-band__actions { flex-direction: row; align-items: center; width: auto; gap: 1rem; } }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-section { background-color: var(--color-background); scroll-margin-top: 6rem; padding: 5rem 0; }
@media (min-width: 768px) { .faq-section { padding: 7rem 0; } }
/* Source FAQ container is max-w-4xl (56rem), wider than the shared narrow container. */
.faq-section .container-narrow { max-width: 56rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover { background-color: var(--color-butter); border-color: color-mix(in srgb, var(--color-primary) 35%, transparent); }
.faq-item__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; list-style: none;
  padding: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  transition: color 0.3s ease;
}
@media (min-width: 768px) { .faq-item__summary { font-size: 1.25rem; padding: 1.25rem 1.75rem; } }
.faq-item:hover .faq-item__summary { color: var(--color-primary); }
.faq-item__summary::-webkit-details-marker { display: none; }
.faq-item__chevron { transition: transform 0.5s ease-out; color: var(--color-primary); }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer {
  padding: 0 1.25rem 1.5rem;
  margin-top: -0.25rem;
  color: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  font-size: 0.9375rem; line-height: 1.625;
  animation: fadeIn 0.6s var(--transition-smooth) forwards;
}
@media (min-width: 768px) { .faq-item__answer { padding: 0 1.75rem 1.5rem; font-size: 1rem; } }
.faq-note { margin-top: 2.5rem; text-align: center; font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

/* =========================================================================
   CONTACT BAND
   ========================================================================= */
.contact-band {
  position: relative;
  color: var(--color-background);
  scroll-margin-top: 6rem;
  overflow: hidden;
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .contact-band { min-height: 70vh; } }
.contact-band__bg { object-position: center 40%; }
@media (min-width: 768px) { .contact-band__bg { object-position: center 35%; } }
.contact-band__overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(31,20,13,0.55) 0%, rgba(20,13,8,0.65) 100%); }
.contact-band__content { position: relative; padding: 5rem 1rem; width: 100%; text-align: center; }
@media (min-width: 768px) { .contact-band__content { padding: 7rem 1rem; } }
.contact-band__body { margin-top: 1.25rem; color: color-mix(in srgb, var(--color-background) 85%, transparent); font-size: 1rem; line-height: 1.7; max-width: 36rem; margin-left: auto; margin-right: auto; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .contact-band__body { font-size: 1.125rem; } }
.contact-band__actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; }
@media (min-width: 640px) { .contact-band__actions { flex-direction: row; align-items: center; justify-content: center; gap: 1rem; } }
.contact-band__links { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; font-size: 14px; color: color-mix(in srgb, var(--color-background) 80%, transparent); }
@media (min-width: 640px) { .contact-band__links { flex-direction: row; gap: 2rem; } }
.contact-band__links a { transition: color 0.3s ease; text-underline-offset: 4px; }
.contact-band__links a:hover { color: var(--color-background); text-decoration: underline; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { border-top: 1px solid var(--color-border); background-color: var(--color-butter); }
.site-footer__inner { padding: 3.5rem 1rem 2rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-top: 4rem; padding-bottom: 2.5rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { gap: 3rem; } }
.footer-col--brand { text-align: center; }
@media (min-width: 768px) { .footer-col--brand { text-align: left; } }
.footer-logo-link { display: inline-block; transition: transform 0.3s ease; }
.footer-logo-link:hover { transform: scale(1.03); }
.footer-logo-img { height: 5rem; margin: 0 auto; }
@media (min-width: 768px) { .footer-logo-img { margin: 0; } }
.footer-tagline { margin-top: 1rem; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); max-width: 24rem; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .footer-tagline { margin-left: 0; margin-right: 0; } }
.footer-col h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.theme-footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-nav-list li { align-self: flex-start; }
.theme-footer-nav-list a { position: relative; display: inline-block; font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 75%, transparent); transition: color 0.3s ease; }
.theme-footer-nav-list a:hover { color: var(--color-foreground); }
/* Source footer links carry the animated nav underline. */
.theme-footer-nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.5px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--transition-smooth);
}
.theme-footer-nav-list a:hover::after, .theme-footer-nav-list a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; font-size: 15px; }
.footer-contact-link { display: inline-flex; align-items: center; gap: 0.5rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); transition: color 0.3s ease; word-break: break-all; }
.footer-contact-link:hover { color: var(--color-foreground); }
.footer-contact-link .icon { transition: transform 0.3s ease; }
.footer-contact-link:hover .icon { transform: scale(1.1); }
.footer-note { margin-top: 1.25rem; font-size: 13px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column-reverse; gap: 0.75rem;
  font-size: 13px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-copyright { margin: 0; text-align: center; }
@media (min-width: 768px) { .footer-copyright { text-align: left; } }
.footer-credit { text-align: center; transition: opacity 0.3s ease; }
@media (min-width: 768px) { .footer-credit { text-align: right; } }
.footer-credit:hover { opacity: 0.8; }
.footer-credit__name { color: var(--color-foreground); font-weight: 500; }
.footer-credit__name:hover { text-decoration: underline; }

/* =========================================================================
   404
   ========================================================================= */
.theme-404 { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - var(--header-height)); background-color: var(--color-muted); padding-bottom: 0; }
.theme-404__inner { text-align: center; }
.theme-404__code { font-size: 2.25rem; margin-bottom: 1rem; }
.theme-404__body { font-size: 1.25rem; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-bottom: 1.5rem; }
.theme-404__link { color: var(--color-primary); text-decoration: underline; }
.theme-404__link:hover { opacity: 0.9; }

/* =========================================================================
   GENERIC PAGE CONTENT
   ========================================================================= */
.theme-generic-content { padding: 2rem 0 4rem; }
.page-title { font-size: 2.25rem; margin-bottom: 1.5rem; }
.entry-content { font-size: 1rem; line-height: 1.75; }
.entry-content p { margin: 0 0 1.25rem; }

/* =========================================================================
   CONTACT MODAL
   ========================================================================= */
#theme-contact-overlay {
  position: fixed; inset: 0; z-index: 60;
  background-color: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
}
body.contact-open #theme-contact-overlay { opacity: 1; visibility: visible; }
#theme-contact-modal {
  position: fixed; left: 50%; top: 50%; z-index: 61;
  width: calc(100% - 2rem); max-width: 32rem; max-height: 90vh; overflow-y: auto;
  transform: translate(-50%, -48%) scale(0.96);
  background-color: var(--color-background);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-elevated);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
body.contact-open #theme-contact-modal { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.theme-contact-modal__close { position: absolute; top: 1rem; right: 1rem; opacity: 0.7; }
.theme-contact-modal__close:hover { opacity: 1; }
.theme-contact-modal__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-contact-modal__body { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); font-size: 0.95rem; margin-bottom: 1rem; }
.theme-contact-modal__links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: color-mix(in srgb, var(--color-foreground) 65%, transparent); margin-bottom: 1.25rem; }
.theme-contact-modal__links a { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.3s ease; word-break: break-all; }
.theme-contact-modal__links a:hover { color: var(--color-foreground); }
.theme-contact-modal__success { text-align: center; padding: 2rem 0; }
.theme-contact-modal__success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background-color: var(--color-primary); color: var(--color-primary-fg);
  margin: 0 auto 1rem;
}
.theme-contact-modal__success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.theme-contact-modal__success p { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); font-size: 0.9rem; }

.theme-form-row--split { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-row--split { grid-template-columns: 1fr 1fr; } }
.theme-form-field { margin-bottom: 1rem; }
.theme-form-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }
.theme-form-field input, .theme-form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 1rem; font-family: var(--font-body); color: var(--color-foreground);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.theme-form-field input::placeholder, .theme-form-field textarea::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.theme-form-field input:focus, .theme-form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.theme-form-field textarea { resize: none; }
.theme-form-actions { display: flex; justify-content: flex-end; }
.theme-form-actions button { text-transform: none; letter-spacing: normal; font-size: 0.95rem; }
.theme-form-error { color: #b91c1c; font-size: 0.85rem; margin-top: 0.75rem; text-align: center; }

/* =========================================================================
   SIDE CART DRAWER
   ========================================================================= */
#theme-cart-overlay {
  position: fixed; inset: 0; z-index: 55;
  background-color: color-mix(in srgb, var(--color-foreground) 20%, transparent);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }
#theme-cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 56;
  width: 100%; max-width: 28rem;
  background-color: var(--color-background);
  box-shadow: var(--shadow-elevated);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-size: 1.125rem; }
.theme-cart-drawer__close { padding: 0.25rem; opacity: 0.7; }
.theme-cart-drawer__close:hover { opacity: 1; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty-icon { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.theme-cart-drawer__empty p { color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin: 0; }
.theme-cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image { position: relative; width: 5rem; height: 6rem; flex-shrink: 0; overflow: hidden; background-color: var(--color-secondary); }
.theme-cart-item__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name { display: block; font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price { font-size: 0.85rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin: 0.15rem 0 0; }
.theme-cart-item__variation { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); margin: 0.25rem 0 0; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-qty-btn { padding: 0.3rem; border-radius: 0.35rem; transition: background-color 0.2s ease; }
.theme-qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-item__qty { font-size: 0.85rem; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 0.85rem; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); transition: color 0.2s ease; }
.theme-cart-item__remove:hover { color: var(--color-foreground); }
.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.9rem; }
.theme-cart-drawer__shipping { font-size: 0.85rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin: 0; }
.theme-cart-drawer__checkout { width: 100%; }
.theme-cart-drawer__empty-btn { width: 100%; padding: 0.6rem; }

/* -------------------------------------------------------------------------
   WooCommerce "View cart" hide (Section 11.4.2)
   ------------------------------------------------------------------------- */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* -------------------------------------------------------------------------
   Add-to-cart button style override (Section 11.4.1)
   ------------------------------------------------------------------------- */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: none !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}
/* Card compact override — theme-card-add-btn intentionally overridden above (transparent pill). */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-card-add-btn {
  min-height: unset !important;
  padding: 0.75rem 1rem !important;
}
.single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* -------------------------------------------------------------------------
   Notices (Section 14.1)
   ------------------------------------------------------------------------- */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background-color: var(--color-card);
  border-top: 3px solid var(--color-primary);
  list-style: none;
  margin: 0 0 1.5rem;
}
.woocommerce-error { border-top-color: #b91c1c; }

/* =========================================================================
   SINGLE PRODUCT PAGE (Section 11.13)
   ========================================================================= */
.single-product-main { padding-top: calc(var(--header-height) + 1rem); }
.theme-breadcrumb { padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.theme-breadcrumb a { transition: color 0.3s ease; }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb__current { color: var(--color-foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 1rem 0 6rem; min-width: 0; }
@media (min-width: 1024px) {
  .theme-product-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; align-items: start; }
  .theme-product-gallery { grid-column: span 7; }
  .theme-product-info { grid-column: span 5; position: sticky; top: 7rem; align-self: start; padding-left: 1rem; }
}
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-gallery__placeholder { position: relative; aspect-ratio: 1/1; border-radius: 1rem; background-color: var(--color-card); overflow: hidden; }
.theme-product-gallery__main { position: relative; aspect-ratio: 1/1; overflow: hidden; background-color: var(--color-secondary); }
/* Extra gallery images: hidden on mobile (thumbnails switch the main image), stacked on desktop. */
.theme-product-gallery__extra { display: none; }
@media (min-width: 1024px) {
  .theme-product-gallery__extra { display: block; }
  .theme-product-gallery__main + .theme-product-gallery__main { margin-top: 1rem; }
}
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; overflow-x: auto; flex-wrap: wrap; max-width: 100%; padding-bottom: 0.25rem; }
@media (min-width: 1024px) { .theme-product-thumbnails { display: none; } }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background-color: var(--color-secondary); }
.theme-product-thumb img { opacity: 0.6; transition: opacity 0.3s ease; }
.theme-product-thumb:hover img, .theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background-color: var(--color-foreground); opacity: 0; transition: opacity 0.3s ease; }
.theme-product-thumb.is-active::after { opacity: 1; }

.product-title { font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .product-title { font-size: 3rem; } }
.theme-product-subtitle { margin-top: 0.75rem; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }

/* Source layout: "quantity" label block (mt-8 mb-6), then a full-width dark CTA. */
.theme-add-to-cart-area { display: block; margin: 2rem 0 0; }
.theme-option-heading { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; margin-bottom: 0.75rem; }
.theme-quantity-block { margin: 2rem 0 1.5rem; }
.theme-add-to-cart-area .theme-quantity-block { margin-top: 0; }
.theme-quantity-wrapper { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 1rem; transition: background-color 0.3s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-qty-minus { border-radius: 999px 0 0 999px; }
.theme-qty-plus { border-radius: 0 999px 999px 0; }
.theme-qty-input {
  width: 44px; min-width: 44px; text-align: center;
  border: none; background: transparent; font-family: var(--font-body); font-size: 0.875rem; color: var(--color-foreground);
  padding: 0.5rem 0;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Source detail CTA: full-width dark pill (bg-foreground), not the primary caramel. */
.single-product .single_add_to_cart_button,
.single-product .single_add_to_cart_button.button,
.single-product a.single_add_to_cart_button {
  display: flex !important;
  width: 100%;
  background-color: var(--color-foreground) !important;
  color: var(--color-background) !important;
  padding: 1rem 2rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  border-radius: 999px !important;
  transition: background-color 0.3s ease, opacity 0.2s ease !important;
}
.single-product .single_add_to_cart_button.button:hover,
.single-product a.single_add_to_cart_button:hover {
  opacity: 1 !important;
  background-color: color-mix(in srgb, var(--color-foreground) 90%, transparent) !important;
  color: var(--color-background) !important;
}
.single-product .single_add_to_cart_button.button:disabled,
.single-product .single_add_to_cart_button.button.disabled,
.single-product .single_add_to_cart_button.disabled {
  opacity: 0.6 !important;
  background-color: var(--color-foreground) !important;
}

/* Variation option chips (source: color chip buttons — rounded pills w/ selected state) */
.theme-attr-group { margin-top: 2rem; }
.theme-attr-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-foreground);
  transition: all 0.2s ease;
}
.theme-attr-btn:hover { border-color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.theme-attr-btn.is-selected {
  border-color: var(--color-foreground);
  background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent);
}

.theme-desc-heading { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent); }
.theme-desc-body { font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }
.theme-desc-body p { margin: 0 0 1.25rem; }
.theme-product-description { margin-top: 2.5rem; }
.theme-product-details { margin-top: 1.5rem; }
.posted_in, .woocommerce-variation-description, .woocommerce-product-details__short-description { overflow-wrap: break-word; word-break: break-word; }

.theme-attr-select-hidden { display: none !important; }
/* Hide WC's default variation price/availability block — the CTA already shows the price. */
.single_variation_wrap .woocommerce-variation.single_variation { display: none; }

.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-heading { text-align: center; margin-bottom: 3rem; }
.related-products-heading__pre { font-family: var(--font-display); font-size: 1rem; color: var(--color-muted-fg, color-mix(in srgb, var(--color-foreground) 55%, transparent)); margin: 0 0 0.5rem; }
.related-products-heading__main { font-size: 1.875rem; }
@media (min-width: 768px) { .related-products-heading__main { font-size: 2.25rem; } }

/* =========================================================================
   ARCHIVE / SHOP PAGE
   ========================================================================= */
/* Parent main.not-home-main already offsets the fixed header — only add local spacing here. */
.theme-archive { padding-top: 1rem; padding-bottom: 0; }
.shop-heading.page-title { font-size: 2.25rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .shop-heading.page-title { font-size: 3rem; } }

/* =========================================================================
   CHECKOUT / CART / ACCOUNT / THANK-YOU (Section 13)
   ========================================================================= */
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
  max-width: 100%;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--checkout-gap);
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-components-notice-banner { grid-column: 1 / -1; }

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-background);
  color: var(--color-foreground);
  padding: revert;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary);
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-card);
  border-radius: var(--radius);
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

.page-title { font-size: 2.25rem; margin-bottom: 1.5rem; }
body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
  max-width: 80rem; margin-left: auto; margin-right: auto;
}

/* Thank you page (Section 22.8) */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-size: 1.5rem; padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.9rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td { padding: 0.6rem; border-bottom: 1px solid var(--color-border); }
@media (min-width: 768px) {
  body.theme-thankyou-page .woocommerce-customer-details {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
  }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; border: 1px solid var(--color-border); border-radius: 0.5rem; padding: 1rem; }
