/* =========================================================================
   Duval Publishing — theme.css
   Design tokens, typography, layout, animations, WooCommerce overrides.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. CSS VARIABLES (fallback defaults; live values injected inline by PHP)
   ---------------------------------------------------------------------- */
:root {
  --color-background: #f4f3eb;
  --color-foreground: #141a29;
  --color-primary: #192c57;
  --color-primary-foreground: #f7f6ed;
  --color-accent: #e0ac29;
  --color-accent-foreground: #11192c;
  --color-muted: #e3e1d3;
  --color-muted-foreground: #394256;
  --color-border: #bcc2d2;
  --color-destructive: #d94426;
  --color-destructive-foreground: #f6f5ee;
  --color-card: var(--color-background);

  --logo-height: 80px;
  --header-logo-height-mobile: 60px;
  --header-logo-height-desktop: 80px;
  --footer-logo-height-mobile: 64px;
  --footer-logo-height-desktop: 80px;

  --radius: 0.75rem;
  --shadow-soft: 0 2px 6px rgba(20, 26, 41, 0.10);
  --shadow-elevated: 0 14px 34px rgba(20, 26, 41, 0.24);
  --transition-smooth: cubic-bezier(0.33, 0, 0.67, 1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;

  --header-height: 80px;

  --btn-radius: 9999px;
  --btn-height: 3rem;
  --btn-padding: 0 2rem;
  --btn-font-size: 11px;
  --btn-font-weight: 700;
  --btn-letter-spacing: 0.18em;
  --btn-text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { background-color: var(--color-background); }
body {
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-product-main-img):not(.theme-product-thumb-img):not(.bento-card-img):not(.site-logo-img):not(.footer-logo-img):not(.hero-badge img):not(.resources-image):not(.hero-video):not(.theme-product-card-img) {
  max-width: 100%;
  height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .theme-product-main-img, .theme-product-thumb-img, .bento-card-img, .resources-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bento-card-img {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  align-self: stretch;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: -0.005em;
  margin: 0;
}
.font-display { font-family: var(--font-display) !important; font-weight: 500 !important; }
.font-body { font-family: var(--font-body) !important; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-accent);
}

.bg-linen {
  background-color: var(--color-background);
  background-image:
    repeating-linear-gradient(0deg, rgba(60,70,80,0.055) 0px, rgba(60,70,80,0.055) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(60,70,80,0.055) 0px, rgba(60,70,80,0.055) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(45deg, rgba(70,90,110,0.03) 0px, rgba(70,90,110,0.03) 1px, transparent 1px, transparent 6px);
}

.bg-muted {
  background-color: var(--color-muted);
}
.resources-section.bg-muted {
  color: var(--color-muted-foreground);
}

/* Section vertical padding — top/bottom only so container-wide side padding is preserved */
.section-pad-categories { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .section-pad-categories { padding-top: 5rem; padding-bottom: 5rem; } }
.section-pad-about,
.section-pad-contact { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .section-pad-about, .section-pad-contact { padding-top: 8rem; padding-bottom: 8rem; } }
.section-pad-excerpt { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .section-pad-excerpt { padding-top: 7rem; padding-bottom: 7rem; } }
.section-pad-resources,
.section-pad-shop,
.section-pad-faq { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section-pad-resources, .section-pad-shop, .section-pad-faq { padding-top: 7rem; padding-bottom: 7rem; } }

/* -------------------------------------------------------------------------
   3. ANIMATIONS
   ---------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-reverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes accordion-down { from { max-height: 0; opacity: 0.4; } to { max-height: var(--accordion-content-height, 500px); opacity: 1; } }
@keyframes accordion-up { from { max-height: var(--accordion-content-height, 500px); opacity: 1; } to { max-height: 0; opacity: 0.4; } }

.animate-fade-in { animation: fadeIn 0.4s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.4s var(--transition-smooth) forwards; }

.animate-marquee { animation: marquee 32s linear infinite; will-change: transform; }
.animate-marquee-reverse { animation: marquee-reverse 32s linear infinite; will-change: transform; }
.animate-marquee:hover, .animate-marquee-reverse:hover { animation-play-state: paused; }

/* Scroll-reveal (replicates framer-motion initial opacity:0,y:24 -> animate opacity:1,y:0, duration 0.6s) */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}
.reveal-section.is-visible,
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

/* Customizer preview + reduced-motion fallback: never hide content */
body.is-customizer .reveal-section,
body.is-customizer .reveal-item {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-section, .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .animate-marquee, .animate-marquee-reverse { animation: none; }
}

.card-hover { transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }

/* -------------------------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--btn-radius);
  height: var(--btn-height);
  padding: var(--btn-padding);
  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);
  white-space: nowrap;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.btn-primary { background-color: var(--color-primary); color: var(--color-primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-accent { background-color: var(--color-accent); color: var(--color-accent-foreground); }
.btn-accent:hover { opacity: 0.9; }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-square { border-radius: 0; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* -------------------------------------------------------------------------
   5. HEADER
   ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background-color: var(--color-background);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}
.site-header .header-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 5rem;
  gap: 0.75rem;
}
@media (min-width: 768px) { .site-header .header-nav { height: 6rem; } }

.header-left, .header-right { display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.header-right { justify-self: end; }
.header-mobile-toggle {
  display: inline-flex; padding: 0.5rem; border-radius: 0.375rem;
}
.header-mobile-toggle:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
@media (min-width: 1024px) { .header-mobile-toggle { display: none; } }

.theme-nav-list { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .theme-nav-list { display: flex; } }
.mobile-nav-drawer .theme-nav-list li { display: block !important; }
.theme-nav-link {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease;
  display: block;
}
.theme-nav-link:hover { color: var(--color-accent); }

.site-logo-link {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  flex-shrink: 0;
}
.site-logo-img {
  height: var(--header-logo-height-mobile);
  max-height: var(--header-logo-height-mobile);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
  .site-logo-img {
    height: min(var(--logo-height), var(--header-logo-height-desktop));
    max-height: min(var(--logo-height), var(--header-logo-height-desktop));
  }
}
.site-logo-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-foreground);
  line-height: 1.2;
}
.site-logo-link--has-text {
  flex-direction: column;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .site-logo-link--has-text {
    flex-direction: row;
    gap: 0.75rem;
  }
}

.theme-cart-btn { position: relative; padding: 0.5rem; border-radius: 0.375rem; }
.theme-cart-btn:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.theme-cart-btn svg { width: 1.25rem; height: 1.25rem; }
.theme-cart-count {
  position: absolute; top: -0.15rem; right: -0.15rem;
  width: 1.25rem; height: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  background: var(--color-accent); color: var(--color-accent-foreground);
  border-radius: 9999px;
}
.theme-cart-count:empty { display: none; }

.mobile-nav-drawer {
  position: fixed; inset-inline: 0; top: 5rem; z-index: 40;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border);
  display: none;
}
@media (min-width: 768px) { .mobile-nav-drawer { top: 6rem; } }
.mobile-nav-drawer.is-open { display: block; animation: slideUp 0.2s var(--transition-smooth) forwards; }
@media (min-width: 1024px) { .mobile-nav-drawer { display: none !important; } }
.mobile-nav-drawer .theme-nav-list { display: block; padding: 1.5rem 0; }
.mobile-nav-drawer .theme-nav-link {
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem;
  text-transform: none; letter-spacing: normal; font-weight: 500;
  padding: 0.75rem 0.75rem;
  color: var(--color-foreground);
}
.mobile-nav-drawer .theme-nav-link:hover { color: var(--color-accent); }

/* -------------------------------------------------------------------------
   6. HERO
   ---------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--color-background);
  color: var(--color-foreground);
}
.hero-video-wrap { position: absolute; inset: 0; width: 100%; height: 115%; overflow: hidden; will-change: transform; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.70), rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.20));
}
.hero-inner {
  position: relative; z-index: 10; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
@media (min-width: 1024px) { .hero-inner { justify-content: flex-start; text-align: left; } }
.hero-content {
  max-width: 42rem; color: #fff;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(20px);
  animation: heroIn 0.6s var(--transition-smooth) forwards;
}
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1024px) { .hero-content { align-items: flex-start; } }
.hero-eyebrow {
  font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.28em; color: var(--color-accent); margin-bottom: 1.5rem; display: block;
}
.hero-title {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 3rem; line-height: 1.02; color: #fff;
}
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }
.hero-subtitle {
  font-family: var(--font-body); font-size: 1rem; color: rgba(255,255,255,0.85);
  margin-top: 1.5rem; max-width: 28rem; line-height: 1.6;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 17px; } }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 1024px) { .hero-ctas { justify-content: flex-start; } }
.hero-badge {
  display: none;
  position: absolute; bottom: 2rem; right: 2rem; z-index: 10;
  width: 7rem; height: 9rem;
  background: var(--color-accent); border-radius: 0.5rem; box-shadow: var(--shadow-elevated);
  align-items: center; justify-content: center;
  padding: 1rem 0.75rem;
}
@media (min-width: 768px) { .hero-badge { display: flex; } }
.hero-badge img { width: 4rem; height: auto; filter: brightness(0) invert(1); }

/* -------------------------------------------------------------------------
   7. CATEGORIES BENTO
   ---------------------------------------------------------------------- */
.categories-section { scroll-margin-top: 6rem; }
.section-heading-wrap { max-width: 48rem; margin: 0 auto 2.5rem; text-align: center; }
.categories-section .section-heading {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.875rem; margin-top: 1rem; color: var(--color-foreground);
}
@media (min-width: 768px) { .categories-section .section-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .categories-section .section-heading { font-size: 3rem; } }

.bento-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 1024px) { .bento-grid { grid-template-columns: 1fr 1fr; } }
.bento-card {
  position: relative; text-align: left; background: var(--color-card);
  border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease;
  min-height: 220px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  width: 100%; border: none;
}
.bento-card > * { min-width: 0; }
.bento-card:hover { box-shadow: var(--shadow-elevated); }
.bento-card:hover .bento-cta { color: var(--color-accent); }
.bento-bundle { min-height: 220px; }
@media (min-width: 1024px) { .bento-bundle { min-height: 420px; } }
.bento-sub-grid { display: grid; grid-template-rows: 1fr 1fr; gap: 1.25rem; }
.bento-sub-card { min-height: 220px; }
@media (min-width: 1024px) { .bento-sub-card { min-height: 190px; grid-template-columns: 1fr 40%; } }
.bento-card-body { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .bento-bundle .bento-card-body { padding: 2.5rem; } .bento-sub-card .bento-card-body { padding: 2rem; } }
.bento-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-accent); margin-bottom: 0.5rem; display: block; }
.bento-title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.5rem; color: var(--color-foreground); line-height: 1.2; }
.bento-bundle .bento-title { font-size: 1.5rem; }
@media (min-width: 1024px) { .bento-bundle .bento-title { font-size: 3rem; } .bento-sub-card .bento-title { font-size: 1.875rem; } }
.bento-desc { font-family: var(--font-body); font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.5rem; line-height: 1.5; }
@media (min-width: 1024px) { .bento-desc { font-size: 0.875rem; margin-top: 0.75rem; } }
.bento-cta {
  display: inline-block; margin-top: 0.75rem; font-family: var(--font-body); font-size: 0.875rem;
  color: var(--color-foreground); text-decoration: underline; text-underline-offset: 4px;
  transition: color 0.2s ease; width: fit-content;
}
@media (min-width: 1024px) { .bento-cta { margin-top: 1.5rem; } }

/* -------------------------------------------------------------------------
   8. ABOUT
   ---------------------------------------------------------------------- */
.about-section { border-top: 1px solid var(--color-border); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.about-image-col { grid-column: 1 / -1; }
@media (min-width: 1024px) { .about-image-col { grid-column: span 5; } }
.about-image-wrap { overflow: hidden; aspect-ratio: 4/5; background: var(--color-muted); min-height: 420px; }
.about-content-col { grid-column: 1 / -1; }
@media (min-width: 1024px) { .about-content-col { grid-column: span 7; padding-left: 1.5rem; } }
.about-label { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.28em; text-transform: lowercase; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.about-section .section-heading {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 2.25rem; margin-top: 1.25rem; margin-bottom: 2rem; line-height: 1.05; color: var(--color-foreground);
}
@media (min-width: 768px) { .about-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-section .section-heading { font-size: 3.75rem; } }
.about-heading-em { font-style: normal; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.about-paragraphs { display: flex; flex-direction: column; gap: 1.25rem; font-family: var(--font-body); font-size: 17px; line-height: 1.75; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); max-width: 36rem; }
.about-quote {
  margin-top: 2.5rem; border-left: 2px solid var(--color-accent); padding-left: 1.25rem;
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.5rem; line-height: 1.3;
  color: color-mix(in srgb, var(--color-foreground) 90%, transparent); max-width: 36rem;
}
@media (min-width: 768px) { .about-quote { font-size: 1.625rem; } }
.about-cta-wrap { margin-top: 2.5rem; }
.about-cta-wrap .btn { letter-spacing: 0.22em; }

/* -------------------------------------------------------------------------
   9. EXCERPT / QUOTE BAND
   ---------------------------------------------------------------------- */
.excerpt-section { border-top: 1px solid var(--color-border); }
.excerpt-figure { max-width: 42rem; margin: 0 auto; text-align: center; }
.excerpt-quote { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.5rem; line-height: 1.4; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); }
@media (min-width: 768px) { .excerpt-quote { font-size: 1.875rem; } }
.excerpt-caption { margin-top: 1.5rem; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }

/* -------------------------------------------------------------------------
   10. SIGNUP BANNER
   ---------------------------------------------------------------------- */
.signup-section { position: relative; width: 100%; min-height: 70vh; overflow: hidden; scroll-margin-top: 6rem; }
.signup-bg-wrap { position: absolute; inset: 0; will-change: transform; }
.signup-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-background) 30%, transparent); }
.signup-inner { position: relative; z-index: 10; display: flex; align-items: center; min-height: 70vh; padding: 6rem 0; }
.signup-card {
  max-width: 36rem; width: 100%;
  background: color-mix(in srgb, var(--color-background) 95%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
  border-radius: 1rem; padding: 2rem; box-shadow: var(--shadow-elevated);
}
@media (min-width: 768px) { .signup-card { padding: 2.5rem; } }
.signup-section .section-heading { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 2.25rem; line-height: 1.05; margin-top: 1rem; color: var(--color-foreground); }
@media (min-width: 768px) { .signup-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .signup-section .section-heading { font-size: 3.75rem; } }
.signup-paragraph { color: var(--color-foreground); font-family: var(--font-body); line-height: 1.6; font-size: 1rem; margin-top: 1.5rem; max-width: 28rem; }
@media (min-width: 768px) { .signup-paragraph { font-size: 17px; } }
.signup-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; max-width: 28rem; }
.signup-embed { margin-top: 2rem; max-width: 28rem; width: 100%; }
.signup-embed iframe { max-width: 100%; }
.signup-input {
  width: 100%; height: 3rem; padding: 0 1rem; border-radius: 9999px;
  background: var(--color-background); border: 1px solid var(--color-border);
  font-family: var(--font-body); font-size: 1rem; color: var(--color-foreground);
  box-shadow: var(--shadow-soft);
}
.signup-input::placeholder { color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.signup-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 20%, transparent); }
.signup-row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .signup-row { flex-direction: row; } }
.signup-row .signup-input { flex: 1; }
.signup-note { font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); font-family: var(--font-body); padding-left: 0.25rem; }
.signup-submit-btn { box-shadow: var(--shadow-soft); }
.signup-btn-icon { display: inline-flex; align-items: center; }
.signup-btn-icon svg { width: 1rem; height: 1rem; }
.signup-btn-icon--check { margin-right: 0.5rem; }
.signup-btn-icon--arrow { margin-left: 0.25rem; }

/* -------------------------------------------------------------------------
   11. RESOURCES ("What's Inside")
   ---------------------------------------------------------------------- */
.resources-section { scroll-margin-top: 6rem; }
.resources-section .section-heading { color: var(--color-muted-foreground); }
.resources-header { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; margin-bottom: 3rem; }
.resources-header-col { grid-column: 1 / -1; }
@media (min-width: 1024px) { .resources-header-col { grid-column: span 8; } .resources-header { margin-bottom: 4rem; } }
.resources-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-accent); display: flex; align-items: center; gap: 0.75rem; }
.resources-kicker-line { display: block; width: 2rem; height: 1px; background: var(--color-accent); }
.resources-section .section-heading { font-family: var(--font-display); font-style: italic; font-weight: 500; margin-top: 1.25rem; font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 768px) { .resources-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .resources-section .section-heading { font-size: 3.75rem; } }

.resources-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: stretch; }
@media (min-width: 1024px) { .resources-grid { gap: 3rem; } }
.resources-list { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--color-muted-foreground) 25%, transparent); order: 2; }
@media (min-width: 1024px) { .resources-list { grid-column: span 7; order: 1; } }
.resources-item-btn {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted-foreground) 25%, transparent);
  padding: 1.25rem 0.75rem; text-align: left; transition: background-color 0.5s ease, color 0.5s ease;
  color: var(--color-muted-foreground);
}
@media (min-width: 768px) { .resources-item-btn { gap: 1.5rem; padding: 1.5rem 1.25rem; } }
.resources-item-btn:hover { background: color-mix(in srgb, var(--color-muted-foreground) 10%, transparent); }
.resources-item-btn.is-active { background: var(--color-accent); color: var(--color-accent-foreground); }
.resources-item-index { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-accent); }
.resources-item-btn.is-active .resources-item-index { color: color-mix(in srgb, var(--color-accent-foreground) 70%, transparent); }
.resources-item-title { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.3; }
@media (min-width: 768px) { .resources-item-title { font-size: 1.5rem; } }
@media (min-width: 1024px) { .resources-item-title { font-size: 1.875rem; } }
.resources-item-icon {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--color-muted-foreground) 40%, transparent); color: var(--color-muted-foreground);
  transition: background-color 0.5s ease, color 0.5s ease;
}
@media (min-width: 768px) { .resources-item-icon { width: 2.5rem; height: 2.5rem; } }
.resources-item-btn.is-active .resources-item-icon { background: var(--color-accent-foreground); color: var(--color-accent); border-color: transparent; }
.resources-item-icon svg { width: 1rem; height: 1rem; }

.resources-visual { grid-column: 1 / -1; display: flex; flex-direction: column; order: 1; }
@media (min-width: 1024px) { .resources-visual { grid-column: span 5; order: 2; } }
.resources-image-wrap { position: relative; overflow: hidden; border-radius: 1rem; aspect-ratio: 4/3; background: color-mix(in srgb, var(--color-muted-foreground) 10%, transparent); }
@media (min-width: 1024px) { .resources-image-wrap { aspect-ratio: auto; flex: 1; min-height: 380px; } }
.resources-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.resources-image.is-active { opacity: 1; }
.resources-desc { margin-top: 1.5rem; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: color-mix(in srgb, var(--color-muted-foreground) 90%, transparent); }
@media (min-width: 768px) { .resources-desc { font-size: 17px; } }
.resources-desc-index { margin-top: 1rem; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-accent); }

/* -------------------------------------------------------------------------
   12. SHOP + PRODUCT GRID/CARD
   ---------------------------------------------------------------------- */
.shop-section { scroll-margin-top: 6rem; }
.shop-section .section-heading {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 2.25rem; margin-top: 1rem; margin-bottom: 1.25rem; color: var(--color-foreground);
}
@media (min-width: 768px) { .shop-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .shop-section .section-heading { font-size: 3.75rem; } }
.shop-subheading { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; max-width: 36rem; margin: 0 auto; }
@media (min-width: 768px) { .shop-subheading { font-size: 1.125rem; } }

.shop-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 2.5rem 0 3rem; }
@media (min-width: 768px) { .shop-filters { gap: 0.75rem; } }
.shop-filter-btn {
  border-radius: 9999px; padding: 0 1.25rem; height: 2.5rem;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent);
  background: transparent; color: var(--color-foreground);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
@media (min-width: 768px) { .shop-filter-btn { padding: 0 1.5rem; } }
.shop-filter-btn:hover { border-color: var(--color-foreground); background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.shop-filter-btn.is-active { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }

.theme-product-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: 72rem; margin: 0 auto;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.theme-product-grid.is-filtering .theme-product-card-wrap[hidden] { display: none; }

.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card {
  position: relative; background: var(--color-card);
  border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-foreground) 10%, transparent);
  overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; display: flex; flex-direction: column;
}
.theme-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.theme-card-link { position: absolute; inset: 0; z-index: 2; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card .theme-product-card__add-to-cart-wrap,
.theme-product-card .add_to_cart_button,
.theme-product-card .theme-product-card-select-options { pointer-events: auto; }

.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1/1; background: var(--color-muted); overflow: hidden; }
.theme-product-card__image-wrapper img,
.theme-product-card__image-wrapper .theme-product-card-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.5s ease;
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.05); }

.theme-card-badges { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; pointer-events: none; }
.theme-badge { padding: 0.25rem 0.625rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; border-radius: 9999px; }
.theme-badge-new { background: var(--color-primary); color: var(--color-primary-foreground); }
.theme-badge-category { background: var(--color-accent); color: var(--color-accent-foreground); }
.theme-badge-soldout { background: var(--color-destructive); color: var(--color-destructive-foreground); }

.theme-product-card__add-to-cart-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem; z-index: 3;
  background: transparent;
  opacity: 0; transition: opacity 0.3s ease, background-color 0.3s ease;
}
.theme-product-card:hover .theme-product-card__add-to-cart-wrap {
  opacity: 1;
  background: color-mix(in srgb, var(--color-foreground) 10%, transparent);
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card .theme-product-card-select-options {
  width: 100%;
  box-shadow: var(--shadow-elevated);
  letter-spacing: 0.16em !important;
}
.product-card-cart-icon { width: 0.875rem; height: 0.875rem; margin-right: 0.375rem; flex-shrink: 0; }

.theme-product-card__info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; text-align: center; }
.theme-product-card__title {
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.5rem;
  color: var(--color-foreground); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s ease;
}
.theme-product-card:hover .theme-product-card__title { color: var(--color-accent); }
.theme-product-card__format { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); font-weight: 700; margin-top: 0.5rem; }
.theme-product-card__price-row { margin-top: auto; padding-top: 1rem; }
.theme-product-card__price { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--color-foreground); }
.theme-product-card__price .theme-price-currency { font-size: 0.75rem; font-weight: 400; color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }

/* -------------------------------------------------------------------------
   13. FAQ ACCORDION
   ---------------------------------------------------------------------- */
.faq-section .section-heading { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 2.25rem; margin-top: 1rem; color: var(--color-foreground); }
@media (min-width: 768px) { .faq-section .section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .faq-section .section-heading { font-size: 3.75rem; } }
.faq-list { max-width: 48rem; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); padding: 0.25rem 0; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; gap: 0.75rem;
  padding: 1.25rem 0; text-align: left;
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--color-foreground);
}
@media (min-width: 768px) { .faq-trigger { font-size: 1.5rem; } }
.faq-trigger svg { flex-shrink: 0; width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.faq-item.is-open .faq-trigger svg { transform: rotate(90deg); }
.faq-trigger span { flex: 1; min-width: 0; }
.faq-panel { overflow: hidden; max-height: 0; transition: max-height 0.2s ease-out; }
.faq-item.is-open .faq-panel { max-height: 800px; }
.faq-panel-inner { font-family: var(--font-body); font-size: 1rem; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); line-height: 1.6; padding-bottom: 1.25rem; }

/* -------------------------------------------------------------------------
   14. MARQUEE DIVIDER
   ---------------------------------------------------------------------- */
.marquee-section { position: relative; width: 100%; overflow: hidden; padding: 2rem 0; }
@media (min-width: 768px) { .marquee-section { padding: 2.5rem 0; } }
.marquee-track {
  display: flex; width: 100%; white-space: nowrap;
  font-family: var(--font-display); font-style: italic; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-foreground); font-size: 1.125rem;
}
@media (min-width: 768px) { .marquee-track { font-size: 1.5rem; } }
.marquee-row { display: flex; flex-shrink: 0; }
.marquee-item { display: inline-flex; align-items: center; }
.marquee-dot { margin: 0 1.5rem; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: currentColor; opacity: 0.7; vertical-align: middle; }

/* -------------------------------------------------------------------------
   15. CONTACT
   ---------------------------------------------------------------------- */
.contact-section { border-top: 1px solid var(--color-border); scroll-margin-top: 6rem; }
.contact-inner { max-width: 64rem; margin: 0 auto; }
.contact-header { max-width: 48rem; margin-bottom: 3.5rem; }
.contact-label { text-transform: lowercase; letter-spacing: 0.35em; font-size: 0.75rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-bottom: 1.25rem; display: block; }
.contact-heading { font-family: var(--font-display); font-weight: 500; font-size: 2.25rem; color: var(--color-foreground); line-height: 1.05; }
.contact-heading em { font-style: italic; }
@media (min-width: 768px) { .contact-heading { font-size: 3.75rem; } }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem; }
  .contact-card-col { grid-column: span 5; }
  .contact-form-col { grid-column: span 7; }
}
.contact-card {
  background: var(--color-background); border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px 0 rgba(20, 26, 41, 0.06);
  height: 100%; display: flex; flex-direction: column;
  padding: 2rem;
}
@media (min-width: 768px) { .contact-card { padding: 2.5rem; } }
.contact-card-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-foreground); line-height: 1.25; }
.contact-card-role { text-transform: lowercase; letter-spacing: 0.25em; font-size: 0.7rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.5rem; }
.contact-card-blurb { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); line-height: 1.6; font-size: 0.95rem; margin-top: 1.25rem; }
.contact-card-links { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--color-border); }
.contact-card-link { display: flex; align-items: center; gap: 0.75rem; }
.contact-card-link svg { width: 1.25rem; height: 1.25rem; color: var(--color-accent); }
.contact-card-link-label { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-foreground); transition: color 0.2s ease; }
.contact-card-link:hover .contact-card-link-label { color: var(--color-accent); }

.contact-form-wrap { height: 100%; }
.contact-form { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; }
.contact-form[hidden] { display: none !important; }
.contact-form-row {
  border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
  background: color-mix(in srgb, var(--color-background) 60%, transparent);
  min-width: 0;
}
.contact-form-input {
  width: 100%; background: transparent; border: 0; height: 2.75rem; padding: 0 1.5rem;
  font-family: var(--font-display); font-size: 17px; text-align: center; color: var(--color-foreground);
  box-sizing: border-box;
}
.contact-form-input:focus { outline: none; }
.contact-form-input::placeholder { color: color-mix(in srgb, var(--color-foreground) 55%, transparent); font-style: italic; }
.contact-form-row.is-textarea { flex: 1; display: flex; flex-direction: column; min-height: 140px; }
.contact-form-textarea {
  width: 100%; flex: 1; background: transparent; border: 0; resize: none;
  font-family: var(--font-display); font-size: 17px; text-align: center; color: var(--color-foreground);
  padding: 0.75rem 1.5rem;
}
.contact-form-textarea:focus { outline: none; }
.contact-form-textarea::placeholder { color: color-mix(in srgb, var(--color-foreground) 55%, transparent); font-style: italic; }
.contact-submit-btn {
  width: 100%; border: 1px solid color-mix(in srgb, var(--color-foreground) 20%, transparent);
  background: color-mix(in srgb, var(--color-background) 60%, transparent);
  font-family: var(--font-display); letter-spacing: 0.32em; text-transform: uppercase; font-size: 13px;
  color: var(--color-foreground); padding: 0.75rem 0; transition: background-color 0.2s ease;
  cursor: pointer;
}
.contact-submit-btn:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }

.contact-success {
  height: 100%; min-height: 26.25rem; border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-background) 60%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 1.5rem;
}
.contact-success[hidden] { display: none !important; }
.contact-success-icon { width: 3.5rem; height: 3.5rem; background: var(--color-primary); border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--color-primary-foreground); font-size: 1.25rem; line-height: 1; }
.contact-success-title { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--color-foreground); margin: 0; }
.contact-success-subtitle { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); margin-top: 0.5rem; }

/* -------------------------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------------------- */
.site-footer { background: var(--color-primary); color: var(--color-primary-foreground); }
.site-footer .container-wide { padding-top: 4rem; padding-bottom: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 2.5rem 4rem;
  }
}
.footer-logo-link {
  display: inline-block;
  background: var(--color-background);
  border-radius: 0.375rem;
  padding: 0.75rem;
  line-height: 0;
}
.footer-logo-img {
  height: var(--footer-logo-height-mobile);
  max-height: var(--footer-logo-height-mobile);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
  .footer-logo-img {
    height: var(--footer-logo-height-desktop);
    max-height: var(--footer-logo-height-desktop);
  }
}
.footer-tagline { font-size: 0.875rem; color: color-mix(in srgb, var(--color-primary-foreground) 70%, transparent); margin-top: 1.25rem; max-width: 20rem; line-height: 1.6; }
.footer-social { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--color-primary-foreground) 25%, transparent);
  transition: background-color 0.2s ease;
  color: var(--color-primary-foreground);
}
.footer-social-link:hover { background: color-mix(in srgb, var(--color-primary-foreground) 10%, transparent); }
.footer-social-link svg { width: 1rem; height: 1rem; flex-shrink: 0; display: block; }
.footer-col-heading { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-primary-foreground) 70%, transparent); margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-link { font-size: 0.875rem; color: color-mix(in srgb, var(--color-primary-foreground) 60%, transparent); transition: color 0.2s ease; font-family: var(--font-body); display: inline-block; }
.footer-link:hover { color: var(--color-primary-foreground); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-primary-foreground) 60%, transparent); font-family: var(--font-body); }
.footer-contact-item svg { width: 1rem; height: 1rem; margin-top: 0.125rem; flex-shrink: 0; }
.footer-contact-item a { transition: color 0.2s ease; word-break: break-all; }
.footer-contact-item a:hover { color: var(--color-primary-foreground); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--color-primary-foreground) 15%, transparent);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-copyright { font-size: 0.75rem; color: color-mix(in srgb, var(--color-primary-foreground) 50%, transparent); letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-body); }
.footer-credit { font-size: 0.75rem; color: color-mix(in srgb, var(--color-primary-foreground) 60%, transparent); font-family: var(--font-body); }
.footer-credit a { text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s ease; }
.footer-credit a:hover { color: var(--color-primary-foreground); }

/* -------------------------------------------------------------------------
   17. CART DRAWER + OVERLAY
   ---------------------------------------------------------------------- */
#theme-cart-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-foreground) 20%, transparent);
  backdrop-filter: blur(4px);
  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; height: 100%; width: 100%; max-width: 28rem;
  background: color-mix(in srgb, var(--color-background) 95%, transparent);
  backdrop-filter: blur(20px);
  z-index: 51; box-shadow: var(--shadow-elevated);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.cart-drawer-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.cart-drawer-close { padding: 0.375rem; border-radius: 0.375rem; }
.cart-drawer-close:hover { background: var(--color-accent); }
.cart-drawer-close svg { width: 1.25rem; height: 1.25rem; }

.cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.cart-drawer-empty svg { width: 3rem; height: 3rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.cart-drawer-empty p { color: var(--color-muted-foreground); margin-bottom: 1.5rem; font-family: var(--font-body); }

.cart-drawer-items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cart-drawer-item { display: flex; gap: 1rem; }
.cart-drawer-item-img { width: 5rem; height: 6rem; background: var(--color-muted); overflow: hidden; flex-shrink: 0; border-radius: 0.375rem; position: relative; }
.cart-drawer-item-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block;
}
.cart-drawer-item-info { flex: 1; min-width: 0; }
.cart-drawer-item-name { font-size: 0.875rem; font-weight: 500; font-family: var(--font-body); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s ease; }
.cart-drawer-item-name:hover { color: var(--color-primary); }
.cart-drawer-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; font-family: var(--font-body); }
.cart-drawer-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-qty-btn { padding: 0.25rem; border-radius: 0.375rem; }
.cart-qty-btn:hover { background: var(--color-accent); }
.cart-qty-btn svg { width: 0.75rem; height: 0.75rem; }
.cart-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; font-family: var(--font-body); }
.cart-item-remove { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); font-family: var(--font-body); transition: color 0.2s ease; }
.cart-item-remove:hover { color: var(--color-foreground); }

.cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.cart-drawer-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; font-family: var(--font-body); }
.cart-drawer-subtotal-row .label { color: var(--color-muted-foreground); }
.cart-drawer-subtotal-row .value { font-weight: 500; }
.cart-drawer-delivery-note { font-size: 0.75rem; color: var(--color-muted-foreground); font-family: var(--font-body); }
.cart-drawer-checkout-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; height: 2.75rem;
  border-radius: 0.375rem; background: var(--color-primary); color: var(--color-primary-foreground);
  font-family: var(--font-body); font-weight: 500; font-size: 0.875rem;
  transition: opacity 0.2s ease;
}
.cart-drawer-checkout-btn:hover { opacity: 0.9; }
.cart-drawer-empty-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.25rem;
  border: 1px solid var(--color-border); border-radius: 0.375rem; background: transparent; color: var(--color-foreground);
  font-family: var(--font-body); font-size: 0.875rem;
}
.cart-drawer-empty-btn:hover { background: color-mix(in srgb, var(--color-foreground) 5%, transparent); }
.cart-drawer-empty-btn svg { width: 1rem; height: 1rem; }

/* -------------------------------------------------------------------------
   18. ADD TO CART BUTTON OVERRIDES (Section 11.4.1)
   ---------------------------------------------------------------------- */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
.theme-product-card-select-options.button,
a.single_add_to_cart_button,
a.add_to_cart_button,
a.theme-product-card-select-options {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !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,
.theme-product-card-select-options.button:hover,
a.theme-product-card-select-options:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !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 variant (circular icon-free but full-width small button) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card .theme-product-card-select-options {
  min-height: 2.5rem !important;
  font-size: 11px !important;
}
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !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; }

/* -------------------------------------------------------------------------
   19. WOOCOMMERCE NOTICES (scoped)
   ---------------------------------------------------------------------- */
.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-radius: 0.5rem; padding: 1rem 1.5rem; margin: 0 auto 1.5rem;
  max-width: 72rem; list-style: none; border: 1px solid var(--color-border); background: var(--color-muted); color: var(--color-foreground);
}
.woocommerce-error { border-color: var(--color-destructive); background: color-mix(in srgb, var(--color-destructive) 10%, transparent); color: var(--color-destructive); }

/* -------------------------------------------------------------------------
   20. SINGLE PRODUCT PAGE
   ---------------------------------------------------------------------- */
.single-product-main { padding: 1rem 0 5rem; }
.single-product-backlink { display: inline-flex; align-items: center; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-family: var(--font-body); padding: 1.5rem 0; transition: color 0.2s ease; }
.single-product-backlink:hover { color: var(--color-primary); }
.single-product-backlink svg { width: 1rem; height: 1rem; margin-right: 0.5rem; }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }

.theme-product-main-wrap { background: var(--color-muted); overflow: hidden; border-radius: 1rem; position: relative; aspect-ratio: 1/1; }
#product-main-img,
.theme-product-main-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block;
}

.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; max-width: 100%; }
.theme-product-thumb { width: 4.5rem; height: 4.5rem; border-radius: 0.5rem; overflow: hidden; border: 2px solid transparent; padding: 0; flex-shrink: 0; }
.theme-product-thumb.is-active { border-color: var(--color-primary); }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.theme-product-category { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-primary); }
.theme-product-format-badge { margin-left: 0.75rem; font-size: 0.75rem; font-family: var(--font-body); color: color-mix(in srgb, var(--color-foreground) 70%, transparent); border: 1px solid var(--color-border); padding: 0.125rem 0.5rem; border-radius: 0.375rem; }
.theme-product-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-top: 0.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .theme-product-title { font-size: 1.875rem; } }
.theme-product-price { font-size: 1.875rem; margin-bottom: 1.5rem; font-family: var(--font-display); font-weight: 700; color: var(--color-foreground); }
.theme-product-price .woocommerce-Price-currencySymbol { font-size: 0.875rem; font-family: var(--font-body); font-weight: 400; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.theme-stock-status { font-size: 0.875rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; display: inline-block; color: var(--color-destructive); }
.theme-product-description { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); line-height: 1.6; margin-bottom: 2rem; font-family: var(--font-body); overflow-wrap: break-word; word-break: break-word; }

.single-product .theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 0.375rem; overflow: hidden; }
.theme-qty-minus, .theme-qty-plus { padding: 0.75rem 1rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-accent); }
.theme-qty-input { width: 3.5rem; text-align: center; border: none; background: transparent; font-family: var(--font-body); padding: 0.75rem 0; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; font-family: var(--font-display) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: normal !important; border-radius: 0.375rem !important; }

.theme-digital-delivery-box { background: color-mix(in srgb, var(--color-accent) 40%, transparent); border: 1px solid var(--color-border); border-radius: 0.375rem; padding: 1rem; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-digital-delivery-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-family: var(--font-display); font-weight: 600; color: var(--color-foreground); }
.theme-digital-delivery-title svg { width: 1rem; height: 1rem; color: var(--color-primary); }
.theme-digital-delivery-text { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); font-family: var(--font-body); }
.theme-digital-delivery-text svg { width: 1rem; height: 1rem; margin-top: 0.125rem; flex-shrink: 0; }

.theme-product-details { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.theme-product-details-heading { font-size: 0.875rem; font-family: var(--font-display); font-weight: 600; margin-bottom: 1rem; }
.theme-product-details-list { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-details-list li { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); display: flex; align-items: flex-start; font-family: var(--font-body); }
.theme-product-details-bullet { width: 0.375rem; height: 0.375rem; background: var(--color-primary); border-radius: 9999px; margin-top: 0.5rem; margin-right: 0.75rem; flex-shrink: 0; }

.variations.shop_attributes { width: 100%; margin-bottom: 1.5rem; border: none; }
.single-product .variations tbody, .single-product .variations tbody tr, .single-product .variations tbody td { display: block; width: 100%; border: none; }
.single-product .variations tbody td.label {
  padding-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-foreground);
}
.single-product .variations tbody td.label label { font-weight: 600; }
.single-product .variations tbody td.value { padding-top: 0; padding-bottom: 1.25rem; }
.theme-attr-select-hidden { display: none !important; }
.theme-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-variation-pill {
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-foreground);
  background: var(--color-background);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.theme-variation-pill:hover { border-color: var(--color-primary); }
.theme-variation-pill.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.theme-variation-pill.is-unavailable {
  opacity: 0.4;
  text-decoration: line-through;
  pointer-events: none;
}
.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* -------------------------------------------------------------------------
   21. ARCHIVE / SHOP PAGE (WooCommerce native archive)
   ---------------------------------------------------------------------- */
.woocommerce-archive-main { padding: 3rem 0 5rem; }
.woocommerce-archive-header { max-width: 48rem; margin: 0 auto 3rem; text-align: center; }
.woocommerce-archive-title { font-family: var(--font-display); font-style: italic; font-size: 2.5rem; color: var(--color-foreground); }
.theme-empty-state { text-align: center; padding: 4rem 0; font-family: var(--font-body); color: var(--color-muted-foreground); }

/* -------------------------------------------------------------------------
   22. THANK YOU PAGE
   ---------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding: 2rem 0 4rem; }
body.theme-thankyou-page .container-wide { max-width: 48rem; text-align: center; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; padding: 1.5rem 0 1rem; text-align: left;
}
body.theme-thankyou-page .woocommerce-thankyou-order-received {
  font-family: var(--font-display); font-size: 1.5rem; text-align: center; display: block; margin-bottom: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body); font-size: 0.875rem; border-right: 1px solid var(--color-border); padding-right: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-overview li:last-child { border-right: none; }
body.theme-thankyou-page .woocommerce-order-overview li strong { display: block; font-family: var(--font-display); font-size: 1.125rem; margin-top: 0.25rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; font-family: var(--font-body); border-collapse: collapse; margin-bottom: 2rem; text-align: left; }
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 var(--color-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; text-align: left; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; font-family: var(--font-body); font-style: normal; }

/* -------------------------------------------------------------------------
   23. CHECKOUT BLOCK OVERRIDES (Section 13) — Lovable input parity
   ---------------------------------------------------------------------- */
body.woocommerce-checkout .site-main { padding-top: 2rem; padding-bottom: 4rem; }
body.woocommerce-checkout .page-content-wrap,
body.woocommerce-checkout .site-main > .container-wide {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  body.woocommerce-checkout .page-content-wrap,
  body.woocommerce-checkout .site-main > .container-wide {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
body.woocommerce-checkout .page-title {
  font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; margin-bottom: 2rem;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
body.woocommerce-checkout .wc-block-checkout {
  display: block;
}
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--checkout-gap, 2rem);
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar { min-width: 0; width: 100%; max-width: none; }

/* Lovable: bg-background, border-border, rounded-md, text-sm, font-body, focus ring-primary/30 */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input textarea,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-combobox-control input.components-combobox-control__input,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-address-form input[type="text"],
body.woocommerce-checkout .wc-block-components-address-form input[type="email"],
body.woocommerce-checkout .wc-block-components-address-form input[type="tel"],
body.woocommerce-checkout .wc-block-components-address-form select,
body.woocommerce-checkout form.checkout input.input-text,
body.woocommerce-checkout form.checkout select,
body.woocommerce-checkout form.checkout textarea {
  width: 100% !important;
  max-width: none !important;
  background-color: var(--color-background) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0.375rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-text-input textarea::placeholder,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input::placeholder,
body.woocommerce-checkout form.checkout input.input-text::placeholder,
body.woocommerce-checkout form.checkout textarea::placeholder {
  color: color-mix(in srgb, var(--color-foreground) 50%, transparent) !important;
  opacity: 1 !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-text-input textarea:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout form.checkout input.input-text:focus,
body.woocommerce-checkout form.checkout select:focus,
body.woocommerce-checkout form.checkout textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 30%, transparent) !important;
  outline: none !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar { background-color: var(--color-muted); 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-foreground) !important;
  border-radius: 0.375rem !important; font-family: var(--font-display) !important; font-weight: 700 !important;
  text-transform: none !important; letter-spacing: normal !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner { border-radius: 0.5rem; font-family: var(--font-body); grid-column: 1 / -1; }

/* -------------------------------------------------------------------------
   24. CART / ACCOUNT PAGE WIDTH PARITY
   ---------------------------------------------------------------------- */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding: 3rem 0; }

/* -------------------------------------------------------------------------
   25. 404
   ---------------------------------------------------------------------- */
.theme-404 { display: flex; min-height: 70vh; align-items: center; justify-content: center; background: var(--color-muted); text-align: center; }
.theme-404 h1 { font-size: 3rem; font-family: var(--font-display); margin-bottom: 1rem; }
.theme-404 p { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; font-family: var(--font-body); }
.theme-404 a { color: var(--color-primary); text-decoration: underline; }

/* -------------------------------------------------------------------------
   26. HOME HERO NO TOP PADDING / INNER PAGES KEEP OFFSET
   ---------------------------------------------------------------------- */
.site-main { padding-top: 0; }
body.theme-no-hero .site-main { padding-top: 0; }

.page-content-wrap {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account) .page-content-wrap {
  padding-top: 4rem;
}
