/* ==========================================================================
   Bloom & Veil — theme.css
   Single source of truth for all visual styling (Section 10).
   ========================================================================== */

:root {
  /* Editable brand tokens are re-emitted at runtime by inc/enqueue.php
     (Section 22.9) using the same "H S% L%" format as these fallbacks
     (Section 6.1). These literal values match the brand's source palette
     and act as the pre-Customizer defaults. */
  --background: 18 52% 94%;
  --foreground: 20 26% 17%;
  --card: 32 46% 97%;
  --primary: 42 58% 38%;
  --primary-foreground: 36 50% 97%;
  --secondary: 18 38% 89%;
  --muted-foreground: 20 14% 40%;
  --accent: 140 13% 50%;
  --border: 22 24% 83%;
  --destructive: 4 52% 44%;

  /* Non-editable derived / structural tokens — kept literal like the source. */
  --card-foreground: 20 26% 17%;
  --popover: 32 46% 97%;
  --secondary-foreground: 20 26% 17%;
  --muted: 18 32% 90%;
  --accent-foreground: 36 50% 97%;
  --input: 22 24% 83%;
  --ring: 42 58% 38%;

  --radius: 0.125rem;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;

  --shadow-soft: 0 6px 24px -12px hsl(20 26% 17% / 0.14);
  --shadow-elevated: 0 30px 70px -28px hsl(20 26% 17% / 0.24);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --logo-height: 60px;

  /* Button design tokens (Section 11.4.1) */
  --color-primary: hsl(var(--primary));
  --color-button-text: hsl(var(--primary-foreground));
  --btn-radius: 2px;
  --btn-height: 2.75rem;
  --btn-padding: 0 2rem;
  --btn-font-size: 11px;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.24em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.5rem;
  --header-height: 84px;
  --checkout-gap: 2.5rem;
  --card-radius: 2px;
  --section-padding: 2.5rem;
}

/* --------------------------------------------------------------------------
   RESET / BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
* { margin: 0; }

html, body { max-width: 100%; overflow-x: clip; }

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

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-weight: 400;
  font-size: inherit;
  line-height: 1.15;
}

.font-display { font-family: var(--font-display); font-weight: inherit; font-size: inherit; }

p { line-height: inherit; }

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

button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

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

img:not(.cover-img):not(.hero-section__video):not(.theme-product-card-img):not(.theme-product-gallery__main-img):not(.theme-cart-drawer__item-image img) {
  max-width: 100%;
  height: auto;
}
.cover-img,
.theme-product-card-img,
.theme-product-gallery__main-img,
.theme-cart-drawer__item-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
.theme-cart-drawer__item-image { position: relative; }

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

input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   LAYOUT HELPERS
   -------------------------------------------------------------------------- */

.container-wide { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; box-sizing: border-box; }
@media (min-width: 1024px) { .container-wide { padding-inline: 2rem; } }

.site-container-wide { width: 100%; }

.section-padding { padding-block: 5rem; }
@media (min-width: 640px) { .section-padding { padding-block: 6rem; } }
@media (min-width: 1024px) { .section-padding { padding-block: 8rem; } }

.scroll-mt-24 { scroll-margin-top: 6rem; }

.eyebrow {
  font-size: 12px;
  font-family: var(--font-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.section-padding .eyebrow,
.faq-section__head .eyebrow,
.how-section__eyebrow { margin-bottom: 1rem; }

.theme-link-underline { position: relative; display: inline-block; }
.theme-link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; width: 100%; height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}
.theme-link-underline:hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   BUTTONS (Section 11.4.1 design tokens carried through to all theme buttons)
   -------------------------------------------------------------------------- */

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  transition: all 0.3s var(--transition-smooth);
  height: 2.75rem;
  padding: 0 2rem;
  border: 1px solid transparent;
}
.theme-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; pointer-events: none; }
.theme-btn-lg { height: 3rem; padding: 0 2.5rem; }
.theme-btn-sm { height: 2.25rem; padding: 0 1.25rem; font-size: 10px; }
.theme-btn-block { width: 100%; }

.theme-btn-primary,
.theme-btn.theme-btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.theme-btn-primary:hover { background-color: transparent; color: hsl(var(--primary)); }

.theme-btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--foreground) / 0.25);
}
.theme-btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }

.theme-btn-ink { background-color: hsl(var(--foreground)); color: hsl(var(--background)); border-color: hsl(var(--foreground)); }
.theme-btn-ink:hover { background-color: transparent; color: hsl(var(--foreground)); }

.theme-btn-inverse { background-color: hsl(var(--background)); color: hsl(var(--foreground)); border-color: hsl(var(--background)); text-transform: uppercase; }
.theme-btn-inverse:hover { background-color: transparent; color: hsl(var(--background)); }

.theme-btn-hero-outline { background: transparent; color: hsl(var(--background)); border-color: hsl(var(--background) / 0.6); text-transform: uppercase; }
.theme-btn-hero-outline:hover { background-color: hsl(var(--background)); color: hsl(var(--foreground)); }

.theme-btn-ghost { background: transparent; border-color: transparent; color: hsl(var(--foreground)); }
.theme-btn-ghost:hover { background-color: hsl(var(--secondary)); }

.theme-btn-hero-primary,
.theme-btn-hero-outline,
.single-product .single_add_to_cart_button,
.theme-product-card__add {
  text-transform: uppercase;
}
.theme-product-info__title,
h1.product-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
}
.variations label,
.single-product .variations td.label label {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   REVEAL / SCROLL ANIMATIONS (Section 2.1)
   -------------------------------------------------------------------------- */

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger .reveal-item { transition-delay: 0s; }
.reveal-stagger .reveal-item:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal-item:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger .reveal-item:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger .reveal-item:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger .reveal-item:nth-child(5) { transition-delay: 0.48s; }

/* Customizer preview / no-JS fallback — never leave content stuck at opacity:0. */
body.is-customizer .reveal-item,
body.no-js .reveal-item {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item { transition: none; opacity: 1; transform: none; }
  .hero-section__video, * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

@keyframes theme-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.theme-animate-fade-in { animation: theme-fade-in 0.6s var(--transition-smooth) forwards; }
.theme-animate-slide-up { animation: theme-slide-up 0.6s var(--transition-smooth) forwards; }

/* --------------------------------------------------------------------------
   ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */

.theme-announcement-bar {
  position: relative;
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
}
.theme-announcement-bar__inner { padding-block: 0.625rem; padding-right: 2rem; text-align: center; }
.theme-announcement-bar__text { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-family: var(--font-body); }
@media (min-width: 640px) { .theme-announcement-bar__text { font-size: 11px; } }
.theme-announcement-bar__close {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center;
  opacity: 0.6; transition: opacity 0.2s; color: hsl(var(--background));
}
.theme-announcement-bar__close:hover { opacity: 1; }
.theme-announcement-bar__close svg { width: 14px; height: 14px; }
body.theme-announcement-dismissed .theme-announcement-bar { display: none; }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: hsl(var(--background));
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.is-scrolled {
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom-color: hsl(var(--border));
}
.site-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
}
@media (min-width: 1024px) { .site-header__row { padding-block: 1.25rem; } }

.site-header__brand { display: block; justify-self: start; }

.theme-wordmark { display: flex; align-items: center; gap: 0.625rem; }
@media (min-width: 640px) { .theme-wordmark { gap: 0.75rem; } }
.theme-wordmark__mark svg { width: 2rem; height: 2rem; flex-shrink: 0; }
.theme-wordmark--lg .theme-wordmark__mark svg { width: 2.5rem; height: 2.5rem; }
.theme-wordmark__arch,
.theme-wordmark__bud { color: hsl(var(--primary)); }
.theme-wordmark__stem,
.theme-wordmark__leaf { color: hsl(var(--accent)); }
.theme-wordmark__bud-sm { color: hsl(var(--primary) / 0.7); }
.theme-wordmark__text { display: flex; flex-direction: column; line-height: 1; }
.theme-wordmark__name {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: hsl(var(--foreground));
  font-size: 19px;
}
.theme-wordmark--lg .theme-wordmark__name { font-size: 24px; }
.theme-wordmark__amp { color: hsl(var(--primary)); }
.theme-wordmark__sub {
  font-size: 8px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
  display: none;
}
.theme-wordmark--lg .theme-wordmark__sub { font-size: 9px; }
@media (min-width: 640px) { .theme-wordmark__sub { display: block; } }

.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }

.site-header__nav { display: none; min-width: 0; align-items: center; justify-content: center; gap: 2rem; }
@media (min-width: 1280px) { .site-header__nav { display: flex; } }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link, .theme-nav-list a {
  font-size: 11px; font-family: var(--font-body); font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: hsl(var(--foreground) / 0.75);
  transition: color 0.3s;
  position: relative;
}
.theme-nav-link::after, .theme-nav-list a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: currentColor;
  transform-origin: left; transform: scaleX(0); transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover, .theme-nav-list a:hover { color: hsl(var(--primary)); }
.theme-nav-link:hover::after, .theme-nav-list a:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; justify-self: end; }
.site-header__cart-btn {
  position: relative; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  color: hsl(var(--foreground)); transition: color 0.3s;
}
.site-header__cart-btn:hover { color: hsl(var(--primary)); }
.site-header__cart-btn svg { width: 1.25rem; height: 1.25rem; }
.theme-cart-count {
  position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-size: 9px; font-family: var(--font-body); font-weight: 500;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.theme-cart-count:empty { display: none; }

.site-header__menu-toggle { display: flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; color: hsl(var(--foreground)); }
@media (min-width: 1280px) { .site-header__menu-toggle { display: none; } }
.site-header__menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.icon-menu-close { display: none; }
.site-header__menu-toggle[aria-expanded="true"] .icon-menu-open { display: none; }
.site-header__menu-toggle[aria-expanded="true"] .icon-menu-close { display: block; }

.site-header__mobile-nav { display: none; padding-block: 0.5rem 2rem; }
.site-header__mobile-nav.is-open { display: block; animation: theme-fade-in 0.6s var(--transition-smooth) forwards; }
.site-header__mobile-nav ul,
.site-header__mobile-nav .theme-nav-list,
.site-header__mobile-nav .theme-mobile-nav-list {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100%;
  gap: 0.25rem;
}
.theme-mobile-nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.site-header__mobile-nav a,
.theme-mobile-nav-list a,
.theme-mobile-nav-list li a,
.site-header__mobile-nav .theme-nav-list a {
  display: block; padding-block: 0.875rem; text-align: left;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-body); font-weight: 400;
  color: hsl(var(--foreground) / 0.8); border-bottom: 1px solid hsl(var(--border));
}
.site-header__mobile-nav a:hover { color: hsl(var(--primary)); }
@media (min-width: 1280px) { .site-header__mobile-nav { display: none !important; } }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.theme-no-hero .site-main,
body:not(.theme-no-hero) main { }

.hero-section { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-section__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-section__overlay-1 { position: absolute; inset: 0; background: hsl(var(--foreground) / 0.55); }
.hero-section__overlay-2 { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--foreground) / 0.85), hsl(var(--foreground) / 0.25) 55%, hsl(var(--foreground) / 0.45)); }
.hero-section__inner { position: relative; padding-block: 7rem; }
.hero-section__content { max-width: 42rem; color: hsl(var(--background)); }
.hero-section__eyebrow { font-size: 12px; font-family: var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; color: hsl(var(--background) / 0.85); margin-bottom: 1.5rem; }
.hero-section__title { font-family: var(--font-display); font-size: 2.75rem; line-height: 1.04; margin-bottom: 1.75rem; font-weight: 400; }
@media (min-width: 640px) { .hero-section__title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-section__title { font-size: 4.5rem; } }
.hero-section__subtitle { font-size: 1rem; font-family: var(--font-body); color: hsl(var(--background) / 0.9); line-height: 1.625; max-width: 36rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .hero-section__subtitle { font-size: 1.125rem; } }
.hero-section__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-section__note { margin-top: 2.5rem; font-size: 0.875rem; font-family: var(--font-body); color: hsl(var(--background) / 0.75); }

/* --------------------------------------------------------------------------
   SECTION HEADINGS (Section 2.2.5 — per-section scales, not one global clamp)
   -------------------------------------------------------------------------- */

.intro-section__heading { font-size: 1.875rem; line-height: 1.14; }
@media (min-width: 640px) { .intro-section__heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .intro-section__heading { font-size: 2.6rem; } }

.collections-section__heading,
.how-section__heading,
.gallery-section__heading,
.terms-section__heading,
.about-section__heading,
.inquiry-section__heading,
.faq-section__heading,
.contact-section__heading {
  font-size: 2.25rem;
  line-height: 1.1;
}
@media (min-width: 640px) { .collections-section__heading, .how-section__heading, .gallery-section__heading, .terms-section__heading, .about-section__heading, .inquiry-section__heading, .faq-section__heading, .contact-section__heading { font-size: 3rem; } }

.theme-shop-archive__heading { font-size: 2.5rem; line-height: 1.1; }
@media (min-width: 640px) { .theme-shop-archive__heading { font-size: 3.5rem; } }

/* --------------------------------------------------------------------------
   INTRO SECTION
   -------------------------------------------------------------------------- */

.intro-section { border-bottom: 1px solid hsl(var(--border)); }
.intro-section__grid { display: grid; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .intro-section__grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.intro-section__image-wrap { position: relative; min-height: 380px; }
@media (min-width: 1024px) { .intro-section__image-wrap { min-height: 0; } }
.intro-section__image-gradient { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--foreground) / 0.7), transparent 60%); }
.intro-section__image-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; }
@media (min-width: 640px) { .intro-section__image-caption { padding: 2rem; } }
.intro-section__image-caption-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: hsl(var(--background) / 0.8); margin-bottom: 0.25rem; }
.intro-section__image-caption-title { font-family: var(--font-display); font-size: 1.5rem; color: hsl(var(--background)); }
.intro-section__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.intro-section__list { margin-top: 2rem; border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.intro-section__list-item { display: flex; gap: 1.25rem; padding-block: 1.25rem; border-bottom: 1px solid hsl(var(--border)); }
.intro-section__list-item:last-child { border-bottom: none; }
.intro-section__list-index { font-family: var(--font-display); font-size: 1.125rem; color: hsl(var(--primary)); flex-shrink: 0; width: 2rem; padding-top: 0.125rem; }
.intro-section__list-item dt { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 0.375rem; }
.intro-section__list-item dd { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.intro-section__stats { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
@media (min-width: 640px) { .intro-section__stats { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2rem; } }
.intro-section__stat-value { font-family: var(--font-display); font-size: 1.875rem; line-height: 1; }
.intro-section__stat-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-top: 0.5rem; }
@media (min-width: 640px) { .intro-section__cta { margin-left: auto; } }

/* --------------------------------------------------------------------------
   COLLECTIONS / PRODUCT GRID / PRODUCT CARD
   -------------------------------------------------------------------------- */

.collections-section__head { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 1024px) { .collections-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.collections-section__head-copy { max-width: 36rem; }
.collections-section__desc { font-size: 1rem; color: hsl(var(--muted-foreground)); line-height: 1.625; margin-top: 1.25rem; }

.theme-cat-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-cat-filter {
  padding: 0.625rem 1rem; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); transition: all 0.2s;
}
.theme-cat-filter:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.theme-cat-filter.is-active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }

.theme-product-grid,
.theme-product-grid .products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 2.5rem;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) { .theme-product-grid, .theme-product-grid .products { column-gap: 1.5rem; row-gap: 3.5rem; } }
@media (min-width: 1024px) { .theme-product-grid, .theme-product-grid .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; list-style: none; }
.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: hsl(var(--muted)); margin-bottom: 1rem; }
.theme-product-card__image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.theme-product-card__image-link .theme-product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-product-card__info-link {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.theme-product-card-wrap.is-out-of-stock .theme-product-card-img { opacity: 0.6; }
.theme-product-card-img { transition: transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1); height: 100% !important; }
.theme-product-card:hover .theme-product-card-img { transform: scale(1.04); }
.theme-product-card__badge {
  position: absolute; top: 0.75rem; z-index: 3; padding: 0.25rem 0.625rem; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; pointer-events: none;
}
.theme-product-card__badge--soldout { right: 0.75rem; background: hsl(var(--foreground)); color: hsl(var(--background)); }
.theme-product-card__add {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 5;
  padding-block: 0.875rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; text-align: center;
  font-family: var(--font-body); font-weight: 400;
  opacity: 0; transform: translateY(0.5rem); transition: all 0.3s;
  pointer-events: auto;
}
.theme-product-card:hover .theme-product-card__add,
.theme-product-card__add:hover,
.theme-product-card__add:focus-visible {
  opacity: 1;
  transform: translateY(0);
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.theme-product-card__info { display: contents; }
.theme-product-card__category { font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: hsl(var(--muted-foreground)); }
.theme-product-card__title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.375; font-weight: 400; color: hsl(var(--foreground)); transition: color 0.3s; }
.theme-product-card:hover .theme-product-card__title { color: hsl(var(--primary)); }
.theme-product-card__price { font-size: 0.875rem; color: hsl(var(--foreground) / 0.85); }
.theme-product-card__price .woocommerce-Price-amount { font-weight: inherit; }
.theme-product-card__price span { color: hsl(var(--muted-foreground)); }
.theme-product-card__deposit { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.theme-shop-archive__empty { text-align: center; padding-block: 3rem; color: hsl(var(--muted-foreground)); }
.theme-shop-archive__head { max-width: 40rem; margin-bottom: 3rem; }

/* --------------------------------------------------------------------------
   HOW IT WORKS
   -------------------------------------------------------------------------- */

.how-section { position: relative; border-top: 1px solid hsl(var(--border)); overflow: hidden; }
.how-section__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.how-section__overlay-1 { position: absolute; inset: 0; background: hsl(var(--foreground) / 0.75); }
.how-section__overlay-2 { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--foreground) / 0.9), hsl(var(--foreground) / 0.4) 55%, hsl(var(--foreground) / 0.75)); }
.how-section__inner { position: relative; }
.how-section__head { max-width: 36rem; margin-bottom: 3.5rem; }
.how-section__eyebrow { color: hsl(var(--background) / 0.85); }
.how-section__heading { color: hsl(var(--background)); }
.how-section__grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .how-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .how-section__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.how-section__step { background: hsl(var(--background) / 0.1); backdrop-filter: blur(4px); border: 1px solid hsl(var(--background) / 0.2); padding: 1.5rem; }
.how-section__step-number { display: block; font-family: var(--font-display); font-size: 1.875rem; color: hsl(var(--primary)); margin-bottom: 0.75rem; }
.how-section__step-title { font-size: 1.25rem; margin-bottom: 0.625rem; line-height: 1.375; color: hsl(var(--background)); }
.how-section__step-body { font-size: 0.875rem; color: hsl(var(--background) / 0.8); line-height: 1.6; }

/* --------------------------------------------------------------------------
   GALLERY
   -------------------------------------------------------------------------- */

.gallery-section { border-top: 1px solid hsl(var(--border)); background: hsl(var(--secondary) / 0.4); }
.gallery-section__head { max-width: 40rem; margin-bottom: 3.5rem; }
.gallery-section__desc { font-size: 1rem; color: hsl(var(--muted-foreground)); line-height: 1.625; margin-top: 1.25rem; }
.gallery-section__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; grid-auto-flow: dense; }
@media (min-width: 640px) { .gallery-section__grid { gap: 1rem; } }
@media (min-width: 768px) { .gallery-section__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gallery-section__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-section__item { position: relative; overflow: hidden; background: hsl(var(--muted)); aspect-ratio: 1 / 1; display: block; padding: 0; }
.gallery-section__item--tall { aspect-ratio: 3 / 4; }
@media (min-width: 640px) { .gallery-section__item--tall { grid-row: span 2 / span 2; aspect-ratio: auto; } }
.gallery-section__img { transition: transform 0.7s; }
.gallery-section__item:hover .gallery-section__img { transform: scale(1.05); }

.theme-lightbox {
  position: fixed; inset: 0; z-index: 60; background: hsl(var(--foreground) / 0.9);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.theme-lightbox.is-open { display: flex; }
.theme-lightbox__close { position: absolute; top: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; color: hsl(var(--background) / 0.8); }
.theme-lightbox__close:hover { color: hsl(var(--background)); }
.theme-lightbox img { max-height: 85vh; max-width: 100%; object-fit: contain; }

/* --------------------------------------------------------------------------
   RENTAL TERMS
   -------------------------------------------------------------------------- */

.terms-section { border-top: 1px solid hsl(var(--border)); background: hsl(var(--secondary) / 0.3); }
.terms-section__head { max-width: 42rem; margin-inline: auto; text-align: center; margin-bottom: 3.5rem; }
@media (min-width: 1024px) { .terms-section__head { margin-bottom: 5rem; } }
.terms-section__desc { font-size: 1rem; color: hsl(var(--muted-foreground)); line-height: 1.625; margin-top: 1.25rem; }
.terms-section__grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .terms-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .terms-section__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.terms-section__card { background: hsl(var(--background)); border: 1px solid hsl(var(--border)); padding: 1.75rem; transition: box-shadow 0.3s; }
@media (min-width: 640px) { .terms-section__card { padding: 2rem; } }
.terms-section__card:hover { box-shadow: var(--shadow-elevated); }
.terms-section__icon { width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; background: hsl(var(--primary) / 10%); color: hsl(var(--primary)); margin-bottom: 1.5rem; }
.terms-section__icon svg { width: 1.25rem; height: 1.25rem; }
.terms-section__card-title { font-size: 1.25rem; margin-bottom: 0.75rem; line-height: 1.375; }
.terms-section__card-body { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.terms-section__footer { margin-top: 3rem; text-align: center; }
@media (min-width: 1024px) { .terms-section__footer { margin-top: 4rem; } }
.terms-section__footer p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.terms-section__footer a { color: hsl(var(--primary)); text-underline-offset: 4px; }
.terms-section__footer a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   ABOUT
   -------------------------------------------------------------------------- */

.about-section { border-top: 1px solid hsl(var(--border)); background: hsl(var(--secondary) / 0.4); }
.about-section__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; } }
.about-section__images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.about-section__image { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-section__image-2 { margin-top: 2rem; }
.about-section__body { display: flex; flex-direction: column; gap: 1rem; font-size: 1rem; color: hsl(var(--muted-foreground)); line-height: 1.625; margin-block: 1.5rem; }
.about-section__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   INQUIRY
   -------------------------------------------------------------------------- */

.inquiry-section { position: relative; border-top: 1px solid hsl(var(--border)); overflow: hidden; }
.inquiry-section__bg { position: absolute; inset: -10% 0 0 0; width: 100%; height: 120%; will-change: transform; }
.inquiry-section__overlay-1 { position: absolute; inset: 0; background: hsl(var(--foreground) / 0.65); }
.inquiry-section__overlay-2 { position: absolute; inset: 0; background: linear-gradient(to right, hsl(var(--foreground) / 0.8), hsl(var(--foreground) / 0.5) 55%, hsl(var(--foreground) / 0.3)); }
.inquiry-section__grid { position: relative; display: grid; gap: 3rem; align-items: flex-start; }
@media (min-width: 1024px) { .inquiry-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6rem; } }
.inquiry-section__copy { color: hsl(var(--background)); }
@media (min-width: 1024px) { .inquiry-section__copy { position: sticky; top: 7rem; } }
.inquiry-section__body { font-size: 1rem; color: hsl(var(--background) / 0.85); line-height: 1.625; margin-block: 1.5rem; }
.inquiry-section__bullets { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: hsl(var(--background) / 0.8); }
.inquiry-section__bullets li { display: flex; gap: 0.75rem; align-items: flex-start; }
.inquiry-section__bullets svg { margin-top: 0.125rem; color: hsl(var(--primary)); flex-shrink: 0; }
.inquiry-section__form-card { position: relative; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 1.5rem; }
@media (min-width: 640px) { .inquiry-section__form-card { padding: 2.5rem; } }
.inquiry-section__footer-note { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-align: center; }
.inquiry-section__success { padding-block: 2.5rem; text-align: center; }
.inquiry-section__success-icon { width: 3rem; height: 3rem; margin-inline: auto; margin-bottom: 1.25rem; border-radius: 999px; border: 1px solid hsl(var(--primary)); display: flex; align-items: center; justify-content: center; color: hsl(var(--primary)); }
.inquiry-section__success h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.inquiry-section__success p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; max-width: 26rem; margin-inline: auto; }
.inquiry-section__success .theme-btn { margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   FORMS (shared: inquiry form + WooCommerce checkout inputs, Section 13.4)
   -------------------------------------------------------------------------- */

.form-label { display: block; font-size: 12px; font-family: var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }
.form-error { margin-top: 0.375rem; font-size: 0.75rem; color: hsl(var(--destructive)); }
.theme-form { display: flex; flex-direction: column; gap: 1.25rem; }
.theme-form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .theme-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-form__field input,
.theme-form__field textarea,
.theme-form input[type="text"],
.theme-form input[type="email"],
.theme-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-form__field input::placeholder,
.theme-form__field textarea::placeholder { color: hsl(var(--muted-foreground) / 0.7); }
.theme-form__field input:focus,
.theme-form__field textarea:focus,
.theme-form__field input:focus-visible,
.theme-form__field textarea:focus-visible {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--ring));
}
.theme-form__field.has-error input,
.theme-form__field.has-error textarea { border-color: hsl(var(--destructive)); }

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

.faq-section { border-top: 1px solid hsl(var(--border)); }
.faq-section__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .faq-section__grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; } }
.faq-section__list { border-top: 1px solid hsl(var(--border)); }
.faq-section__item { border-bottom: 1px solid hsl(var(--border)); }
.faq-section__trigger { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; width: 100%; padding-block: 1.5rem; text-align: left; }
.faq-section__question { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: hsl(var(--foreground)); transition: color 0.3s; }
@media (min-width: 640px) { .faq-section__question { font-size: 1.5rem; } }
.faq-section__trigger:hover .faq-section__question { color: hsl(var(--primary)); }
.faq-section__icon { margin-top: 0.375rem; flex-shrink: 0; color: hsl(var(--primary)); }
.faq-section__icon-minus { display: none; }
.faq-section__trigger[aria-expanded="true"] .faq-section__icon-plus { display: none; }
.faq-section__trigger[aria-expanded="true"] .faq-section__icon-minus { display: block; }
.faq-section__answer { padding-bottom: 1.75rem; padding-right: 2.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.625; }
@media (min-width: 640px) { .faq-section__answer { font-size: 1rem; } }

/* --------------------------------------------------------------------------
   CLOSING CTA / CONTACT
   -------------------------------------------------------------------------- */

.contact-section { position: relative; border-top: 1px solid hsl(var(--border)); overflow: hidden; }
.contact-section__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-section__overlay-1 { position: absolute; inset: 0; background: color-mix(in srgb, #6B4E3D 60%, transparent); }
.contact-section__overlay-2 { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, #6B4E3D 85%, transparent), color-mix(in srgb, #6B4E3D 35%, transparent) 55%, color-mix(in srgb, #6B4E3D 70%, transparent)); }
.contact-section__inner { position: relative; text-align: center; max-width: 42rem; margin-inline: auto; color: hsl(var(--background)); }
.contact-section__icon { display: block; margin-inline: auto; margin-bottom: 1.5rem; color: hsl(var(--primary)); }
.contact-section__body { font-size: 1rem; color: hsl(var(--background) / 0.85); line-height: 1.625; margin-block: 1.5rem 2.5rem; }
.contact-section__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 3rem; }
.contact-section__reach { padding-top: 2.5rem; border-top: 1px solid hsl(var(--background) / 0.2); }
.contact-section__reach-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: hsl(var(--background) / 0.7); margin-bottom: 1.25rem; }
.contact-section__reach-links { display: flex; flex-direction: column; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.5rem; }
@media (min-width: 640px) { .contact-section__reach-links { flex-direction: row; } }
.contact-section__reach-links a { display: inline-flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: hsl(var(--background) / 0.9); transition: color 0.3s; }
.contact-section__reach-links a:hover { color: hsl(var(--background)); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.site-footer__top { display: flex; flex-direction: column; gap: 2rem; padding-block: 5rem 3rem; margin-bottom: 4rem; border-bottom: 1px solid hsl(var(--border)); }
@media (min-width: 768px) { .site-footer__top { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.site-footer__tagline { max-width: 28rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }
@media (min-width: 768px) { .site-footer__tagline { text-align: right; } }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { gap: 4rem; } }
.site-footer__col-title { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: hsl(var(--foreground)); margin-bottom: 1.5rem; }
.site-footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__links a { font-size: 0.875rem; color: hsl(var(--muted-foreground)); transition: color 0.3s; }
.site-footer__links a:hover { color: hsl(var(--primary)); }
.site-footer__links--icons a { display: inline-flex; align-items: center; gap: 0.5rem; word-break: break-all; }
.site-footer__links--icons svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.site-footer__col--reach { grid-column: span 2 / span 2; }
@media (min-width: 768px) { .site-footer__col--reach { grid-column: span 1 / span 1; } }
.site-footer__bottom { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; text-align: center; padding-bottom: 2rem; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; text-align: left; } }
.site-footer__copyright, .site-footer__credit { font-size: 0.75rem; color: hsl(var(--muted-foreground)); letter-spacing: 0.02em; }
.site-footer__credit a { text-decoration: underline; transition: color 0.3s; }
.site-footer__credit a:hover { color: hsl(var(--primary)); }

/* --------------------------------------------------------------------------
   CART DRAWER (Section 12)
   -------------------------------------------------------------------------- */

#theme-cart-overlay {
  position: fixed; inset: 0; background: hsl(var(--foreground) / 0.3); z-index: 50;
  opacity: 0; pointer-events: none;
}
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; animation: theme-fade-in 0.6s var(--transition-smooth) forwards; }

#theme-cart-drawer {
  position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem;
  background: hsl(var(--background)); z-index: 51; box-shadow: var(--shadow-elevated);
  display: none; flex-direction: column;
}
body.cart-open #theme-cart-drawer { display: flex; animation: theme-slide-up 0.6s var(--transition-smooth) forwards; }
body.cart-open #theme-cart-drawer.is-updating { animation: none; }
#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 hsl(var(--border)); }
.theme-cart-drawer__title { font-family: var(--font-display); font-size: 1.5rem; }
.theme-cart-drawer__subtitle { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.theme-cart-drawer__close { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; color: hsl(var(--foreground)); }
.theme-cart-drawer__close:hover { color: hsl(var(--primary)); }
.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 svg { color: hsl(var(--primary) / 0.5); }
.theme-cart-drawer__empty p { color: hsl(var(--muted-foreground)); }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-drawer__item { display: flex; gap: 1rem; }
.theme-cart-drawer__item-image { position: relative; width: 5rem; height: 6rem; flex-shrink: 0; background: hsl(var(--secondary)); overflow: hidden; display: block; }
.theme-cart-drawer__item-image img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-height: none; object-fit: cover; }
.theme-cart-drawer__item-body { flex: 1; min-width: 0; }
.theme-cart-drawer__item-name { font-size: 0.875rem; font-weight: 500; display: block; }
.theme-cart-drawer__item-name:hover { color: hsl(var(--primary)); }
.theme-cart-drawer__item-price { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }
.theme-cart-drawer__item-variation { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.theme-cart-drawer__item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
.theme-cart-qty-btn:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.theme-cart-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-remove-btn { margin-left: auto; width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; color: hsl(var(--muted-foreground)); }
.theme-cart-remove-btn:hover { color: hsl(var(--destructive)); }
.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid hsl(var(--border)); display: flex; flex-direction: column; gap: 0.75rem; }
.theme-cart-drawer__totals { display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; }
.theme-cart-drawer__total-row { display: flex; justify-content: space-between; }
.theme-cart-drawer__total-row span:first-child { color: hsl(var(--muted-foreground)); }
.theme-cart-drawer__note { font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* --------------------------------------------------------------------------
   SINGLE PRODUCT PAGE
   -------------------------------------------------------------------------- */

.single-product-main { background: hsl(var(--background)); }
.theme-breadcrumb { padding-block: 1.5rem; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: hsl(var(--muted-foreground)); font-family: var(--font-body); }
.theme-breadcrumb a:hover { color: hsl(var(--primary)); }
.theme-breadcrumb__sep { margin-inline: 0.5rem; opacity: 0.5; }
.theme-breadcrumb__current { color: hsl(var(--foreground)); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 6rem; padding-top: 0.5rem; align-items: flex-start; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }

.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-gallery__mobile { display: block; }
.theme-product-gallery__desktop { display: none; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) {
  .theme-product-gallery__mobile { display: none; }
  .theme-product-gallery__desktop { display: flex; }
  .theme-product-info { position: sticky; top: 7rem; align-self: flex-start; }
}
.theme-product-gallery__stack-item { aspect-ratio: 4 / 5; background: hsl(var(--muted)); overflow: hidden; position: relative; }
.theme-product-gallery__main { aspect-ratio: 4 / 5; background: hsl(var(--muted)); overflow: hidden; position: relative; }
.theme-product-gallery__main-img { height: 100% !important; }
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; padding-bottom: 0.25rem; }
.theme-product-thumb { position: relative; width: 5rem; height: 6rem; flex-shrink: 0; overflow: hidden; background: hsl(var(--muted)); opacity: 0.55; transition: opacity 0.3s; }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; }

.theme-product-info__category { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.theme-product-info__title { font-size: 1.875rem; line-height: 1.1; margin-top: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .theme-product-info__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-info__title { font-size: 2.75rem; } }
.theme-product-info__price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; margin-bottom: 0.5rem; }
.theme-product-info__price { font-family: var(--font-display); font-size: 1.875rem; }
.theme-product-info__price-suffix { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.theme-product-info__deposit { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }
.theme-product-info__description,
.woocommerce-product-details__short-description,
.woocommerce-variation-description,
.single-product .posted_in {
  overflow-wrap: break-word;
  word-break: break-word;
}
.theme-product-info__description p { font-size: 1rem; color: hsl(var(--muted-foreground)); line-height: 1.625; margin-bottom: 1rem; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid hsl(var(--border)); }
.theme-qty-minus, .theme-qty-plus { padding: 0.625rem 0.875rem; color: hsl(var(--foreground)); transition: color 0.3s; }
.theme-qty-minus:hover, .theme-qty-plus:hover { color: hsl(var(--primary)); }
.theme-qty-input { width: 3rem; text-align: center; border: none; background: transparent; padding: 0.625rem 0; font-size: 0.875rem; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-product-quantity-block { margin-top: 2rem; margin-bottom: 1.25rem; }
.theme-product-info__quantity-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 0.75rem; font-family: var(--font-body); font-weight: 400; }
.theme-product-purchase { margin-top: 2rem; }
.single-product .theme-add-to-cart-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
}
.single-product .theme-add-to-cart-area .single_add_to_cart_button,
.single-product .theme-product-purchase > .single_add_to_cart_button { width: 100%; margin-top: 0; }
.single-product .single_variation_wrap .theme-quantity-wrapper { margin-bottom: 1.25rem; }

.theme-product-info__no-charge { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-align: center; margin-bottom: 2rem; }

.theme-accordion { border-top: 1px solid hsl(var(--border)); }
.theme-accordion:last-of-type { border-bottom: 1px solid hsl(var(--border)); }
.theme-accordion__trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-block: 1.25rem; text-align: left; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.theme-accordion__trigger svg { transition: transform 0.3s; }
.theme-accordion__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.theme-accordion__panel { padding-bottom: 1.5rem; }
.theme-details-list ul { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-details-list li { display: flex; gap: 0.75rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.theme-details-list li::before { content: ''; margin-top: 0.5rem; width: 4px; height: 4px; border-radius: 999px; background: hsl(var(--primary)); flex-shrink: 0; }
.theme-accordion__term { margin-bottom: 1.25rem; }
.theme-accordion__term h3 { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.theme-accordion__term p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

.theme-related-products { border-top: 1px solid hsl(var(--border)); padding-block: 5rem; }
.theme-related-products__heading { font-size: 1.875rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .theme-related-products__heading { font-size: 2.25rem; } }

/* Variations table layout (Section 11.5.1) */
.single-product .variations { margin-bottom: 1.5rem; border: 0; }
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.75rem; }
.single-product .variations tbody td.value { padding-top: 0; position: relative; }
.single-product .variations tbody tr + tr td.label { padding-top: 1.25rem; }
.theme-attr-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill {
  padding: 0.625rem 1rem;
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.theme-attr-pill:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.theme-attr-pill.is-selected {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* --------------------------------------------------------------------------
   WOOCOMMERCE: BUTTON OVERRIDES (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: var(--btn-text-transform) !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 button — overrides global rules for the product-card variant. */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card .theme-product-card__add {
  min-height: unset !important;
  padding: 0.875rem 0 !important;
  border-radius: 0 !important;
  border: none !important;
  transition: all 0.3s !important;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart:hover,
.theme-product-card .theme-product-card__add:hover {
  opacity: 1 !important;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
}

.single-product .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;
}

.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;
}

/* WooCommerce notices — scoped visibility (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  font-family: var(--font-body);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 1rem 1.25rem;
  border-radius: var(--card-radius);
  list-style: none;
  margin-bottom: 1.5rem;
}
.woocommerce-error { border-color: hsl(var(--destructive)); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.theme-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; background: hsl(var(--background)); }
.theme-404__inner { text-align: center; padding-block: 6rem; max-width: 32rem; margin-inline: auto; }
.theme-404__heading { font-size: 2.25rem; line-height: 1.1; margin-block: 1.25rem; }
@media (min-width: 640px) { .theme-404__heading { font-size: 3rem; } }
.theme-404__body { font-size: 1rem; color: hsl(var(--muted-foreground)); line-height: 1.625; margin-bottom: 2.25rem; }

.theme-page { padding-block: 4rem; }
.page-title { font-size: 2.25rem; margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   WOOCOMMERCE CHECKOUT BLOCK (Section 13)
   -------------------------------------------------------------------------- */

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
  padding-top: var(--header-height, 80px);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wp-block-woocommerce-cart {
  font-family: var(--font-body);
  color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input input[type="text"],
body.woocommerce-checkout .wc-block-components-text-input input[type="email"],
body.woocommerce-checkout .wc-block-components-text-input input[type="tel"],
body.woocommerce-checkout .wc-block-components-text-input input[type="number"],
body.woocommerce-checkout .wc-block-components-combobox input,
body.woocommerce-checkout .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout select,
body.woocommerce-checkout .wc-block-components-country-input select,
body.woocommerce-checkout .wc-block-components-state-input select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-cart .wc-block-components-text-input input {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: hsl(var(--foreground)) !important;
  background-color: hsl(var(--background)) !important;
  border: 1px solid hsl(var(--input)) !important;
  border-radius: calc(var(--radius) + 0.25rem) !important;
  width: 100% !important;
  box-shadow: none !important;
  outline: none !important;
}
body.woocommerce-checkout .wc-block-components-textarea textarea {
  height: auto !important;
  min-height: 6rem !important;
}
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-text-input input,
  body.woocommerce-checkout .wc-block-components-combobox input,
  body.woocommerce-checkout .wc-block-components-select select,
  body.woocommerce-checkout select,
  body.woocommerce-checkout .wc-blocks-components-select__select {
    font-size: 0.875rem !important;
  }
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible,
body.woocommerce-checkout .wc-block-components-combobox input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
  border-color: hsl(var(--ring)) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring)) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder { color: hsl(var(--muted-foreground)) !important; }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  font-weight: var(--btn-font-weight) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
  border-radius: var(--card-radius);
  font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block {
  background-color: hsl(var(--card));
  border-radius: var(--card-radius);
  padding: var(--section-padding);
}

/* Single 50/50 grid: the sidebar-layout that holds form + summary.
   Outer wrappers stay block so grids are not nested. */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout:not(.wc-block-components-sidebar-layout) {
  display: block !important;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout {
  display: block !important;
  width: 100%;
}
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: var(--checkout-gap) !important;
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar-layout {
  display: contents !important;
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-store-notice-container {
  grid-column: 1 / -1;
}

body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content {
  max-width: 100%;
}

/* Thank-you page */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-details,
body.theme-thankyou-page .woocommerce-customer-details {
  font-family: var(--font-body);
}
body.theme-thankyou-page h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-size: 1.75rem;
  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 0;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  border-right: 1px solid hsl(var(--border));
  padding-right: 1.5rem;
  font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}
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-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-style: normal;
  line-height: 1.6;
}
@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; }
}

/* --------------------------------------------------------------------------
   CUSTOMIZER CONTROL STYLES (loaded separately for the admin panel).
   -------------------------------------------------------------------------- */
