/*
 * Elevation 151 — Main Stylesheet
 * All visual styling lives here. No styling in PHP templates.
 */

/* ============================================================
   CSS CUSTOM PROPERTIES (DEFAULTS — overridden by Customizer inline style)
============================================================ */
:root {
  /* Brand colors */
  --color-primary:          #e05c1e;
  --color-primary-fg:       #fdf8f3;
  --color-background:       #f2ebe0;
  --color-foreground:       #233347;
  --color-secondary:        #e6dccb;
  --color-muted:            #dbd4c8;
  --color-muted-foreground: #535f6e;
  --color-accent:           #3d8a90;
  --color-card:             #f7f2ec;
  --color-border:           #cdc4b6;
  --color-button-text:      #fdf8f3;

  /* Computed accent tokens */
  --color-sunset:           #e05c1e;
  --color-sunset-deep:      #c44c14;
  --color-surf:             #3d8a90;
  --color-sand:             #e8dece;
  --color-navy:             #233347;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* Radius */
  --radius:      0.125rem;
  --card-radius: 0.125rem;
  --btn-radius:  0.125rem;

  /* Button */
  --btn-height:         44px;
  --btn-padding:        0.625rem 2rem;
  --btn-padding-lg:     0.875rem 2.5rem;
  --btn-font-size:      0.875rem;
  --btn-font-weight:    500;
  --btn-letter-spacing: 0.05em;
  --btn-text-transform: none;
  --btn-icon-padding:   0.5rem;

  /* Shadows */
  --shadow-soft:     0 4px 20px -4px hsl(211 38% 14% / 0.08);
  --shadow-elevated: 0 8px 40px -8px hsl(211 38% 14% / 0.18);

  /* Layout */
  --header-height:     80px;
  --logo-height:       48px;
  --container-max:     80rem;
  --container-px:      1.5rem;

  /* WooCommerce layout */
  --woo-layout-gap:    1.5rem;
  --woo-content-max:   80rem;
  --checkout-gap:      var(--woo-layout-gap);
  --checkout-max:      var(--woo-content-max);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-background);
  overflow-x: hidden;
}

img:not(.product-main-img):not(.cart-item-img):not(.contact-bg-img), video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ============================================================
   UTILITY
============================================================ */
.container-wide {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

@media (min-width: 1024px) {
  .container-wide { --container-px: 2rem; }
}

.text-primary { color: var(--color-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Section animation helper */
.section-anim { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.section-anim.is-visible { opacity: 1; transform: none; }

/* ============================================================
   BUTTONS
============================================================ */
.theme-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border: none;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-lg);
  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);
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.theme-btn-primary:hover  { opacity: 0.85; }
.theme-btn-primary:active { opacity: 0.7; }
.theme-btn-primary:disabled,
.theme-btn-primary.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}

.theme-btn-lg {
  min-height: 2.75rem;
  padding: 0.875rem 2rem;
  flex: 1 1 auto;
}

.theme-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-lg);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}
.theme-btn-ghost:hover { background-color: rgba(255,255,255,0.2); }

.theme-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-lg);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  text-decoration: none;
}
.theme-btn-outline:hover { border-color: var(--color-primary); background-color: var(--color-secondary); }

/* ============================================================
   WOOCOMMERCE ADD-TO-CART 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;
  text-decoration: none !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;
}

/* Button lock state (Section 31.8) */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* Hide "View cart" injected after AJAX add (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
  display: none !important;
}

/* ============================================================
   SECTION COMMON ELEMENTS
============================================================ */
.section-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.section-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: hsl(211 15% 38% / 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-index-num { color: var(--color-primary); }
.section-index-divider {
  width: 1.5rem;
  height: 1px;
  background: hsl(211 15% 38% / 0.3);
  display: block;
}

.section-coords-right {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(211 15% 38% / 0.7);
  display: none;
}
@media (min-width: 768px) { .section-coords-right { display: block; } }

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-eyebrow-center { justify-content: center; }

.eyebrow-line {
  width: 2.25rem;
  height: 1px;
  background-color: var(--color-primary);
  display: block;
  flex-shrink: 0;
}

.eyebrow-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Wave decorations */
.wave-circle-wrap {
  position: absolute;
  pointer-events: none;
  color: hsl(19 78% 52% / 0.15);
}
.wave-circle-svg { width: 100%; height: 100%; }

.wave-divider {
  pointer-events: none;
  overflow: hidden;
  color: hsl(19 78% 52% / 0.25);
}
.wave-divider-flip { transform: scaleX(-1); color: hsl(19 78% 52% / 0.2); }
.wave-divider-svg { width: 100%; height: 3rem; display: block; }
@media (min-width: 768px) { .wave-divider-svg { height: 4rem; } }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

/* WordPress admin bar — keep fixed header below toolbar */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header.is-solid {
  background-color: hsl(36 40% 94% / 0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
@media (min-width: 1024px) { .site-nav { height: var(--header-height); } }

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block !important;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid hsl(211 38% 22% / 0.15);
  background-color: var(--color-card);
  transition: opacity 0.3s ease;
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  line-height: var(--logo-height);
  display: block;
}

.site-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
@media (min-width: 1024px) { .site-brand-name { font-size: 1.875rem; } }

/* Transparent header: white text */
.site-header:not(.is-solid) .site-brand-name { color: #fff; }
.site-header:not(.is-solid) .site-logo-img { border-color: rgba(255,255,255,0.3); }

.site-nav-desktop {
  display: none;
}
@media (min-width: 768px) { .site-nav-desktop { display: flex; align-items: center; gap: 2rem; } }

.theme-nav-list { display: flex; align-items: center; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 1024px) { .theme-nav-list { gap: 2rem; } }

.theme-nav-list a,
.theme-nav-list li > a,
.theme-nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.3s ease;
  background: none;
  border: none;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.theme-nav-list a::after,
.theme-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-smooth);
}
.theme-nav-list a:hover::after,
.theme-nav-link:hover::after { width: 100%; }

.site-header:not(.is-solid) .theme-nav-list a,
.site-header:not(.is-solid) .theme-nav-link { color: rgba(255,255,255,0.9); }
.site-header:not(.is-solid) .theme-nav-list a:hover,
.site-header:not(.is-solid) .theme-nav-link:hover { color: #fff; }

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-left: auto;
}

.cart-btn {
  position: relative;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
}
.cart-btn:hover { opacity: 0.6; }
.site-header:not(.is-solid) .cart-btn { color: #fff; }

.theme-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-button-text);
  font-size: 0.625rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  pointer-events: none;
}
.theme-cart-count:empty { display: none; }

.hamburger-btn {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
@media (min-width: 768px) { .hamburger-btn { display: none; } }
.site-header:not(.is-solid) .hamburger-btn { color: #fff; }
.hamburger-btn:hover { opacity: 0.6; }

.mobile-menu {
  width: 100%;
  border-top: 1px solid var(--color-border);
  padding: 0;
  animation: fadeIn 0.2s ease;
  background-color: hsl(36 40% 94% / 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mobile-menu .mobile-nav-list,
.mobile-menu .theme-nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.mobile-menu .mobile-nav-list > li,
.mobile-menu .theme-nav-list > li,
.mobile-menu .menu-item {
  display: block;
  width: 100%;
}

.mobile-menu .mobile-nav-list a,
.mobile-menu .mobile-nav-list li > a,
.mobile-menu .theme-nav-list a,
.mobile-menu .theme-nav-list li > a {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 0;
  transition: color 0.2s ease;
  color: var(--color-foreground);
  text-decoration: none;
}

.mobile-menu .mobile-nav-list a::after,
.mobile-menu .theme-nav-list a::after,
.mobile-menu .theme-nav-link::after {
  display: none;
}

.mobile-menu .mobile-nav-list a:hover,
.mobile-menu .theme-nav-list a:hover {
  color: var(--color-muted-foreground);
}

.mobile-menu .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0;
  width: 100%;
}

.mobile-menu .sub-menu li {
  display: block;
  width: 100%;
}

.mobile-menu .sub-menu a {
  color: var(--color-muted-foreground);
}

.mobile-menu .sub-menu a:hover {
  color: var(--color-foreground);
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-foreground);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-foreground);
  opacity: 0.6;
  pointer-events: none;
  will-change: opacity;
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .hero-content-wrap { padding-top: 7rem; padding-bottom: 5rem; }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hero-inner { flex-direction: row; align-items: stretch; gap: 3rem; }
}

/* Left metadata rail */
.hero-meta-rail {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  flex-shrink: 0;
  animation: fadeInLeft 0.9s 0.6s both;
}
@media (min-width: 768px) { .hero-meta-rail { display: flex; } }

.hero-meta-top { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-meta-est {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: 0.3em;
  font-size: 0.875rem;
}
.hero-meta-location {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-meta-vertical {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.hero-meta-founder {
  font-family: var(--font-body);
  font-style: italic;
  color: rgba(255,255,255,0.5);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  white-space: nowrap;
}
.hero-meta-divider {
  width: 1px;
  height: 4rem;
  background: rgba(255,255,255,0.2);
  display: block;
}
.hero-meta-elevation {
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  text-transform: uppercase;
}

/* Main headline */
.hero-headline-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 42rem;
}

.hero-tagline-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s 0.5s both;
}
.hero-tagline-line {
  width: 3rem;
  height: 1px;
  background: var(--color-primary);
  display: block;
  flex-shrink: 0;
}
.hero-tagline-text {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
@media (min-width: 768px) { .hero-tagline-text { font-size: 1.25rem; } }

.hero-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(3.75rem, 10vw, 10rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.hero-title-line1 { display: block; animation: heroReveal 1s 0.6s both; }
.hero-title-line2 { display: block; color: var(--color-primary); animation: heroReveal 1s 0.75s both; }

.hero-description {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 32rem;
  animation: fadeInBlur 0.8s 1s both;
}
@media (min-width: 768px) { .hero-description { font-size: 1.125rem; } }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.7s 1.2s both;
}

/* Decorative coordinates */
.hero-coords {
  position: absolute;
  bottom: 4rem;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.2;
  display: none;
  animation: fadeIn 1.2s 1.4s both;
  will-change: opacity;
}
@media (min-width: 1024px) { .hero-coords { display: block; } }
.hero-coords-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.hero-coord-n, .hero-coord-w {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-section {
  background-color: var(--color-secondary);
  scroll-margin-top: 6rem;
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}
.about-section .container-wide { padding-top: 4rem; padding-bottom: 4rem; position: relative; }
@media (min-width: 768px) { .about-section .container-wide { padding-top: 6rem; padding-bottom: 6rem; } }

.wave-circle-about {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: -4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.about-image-col { display: flex; align-items: center; justify-content: center; padding: 0; }
@media (min-width: 768px) { .about-image-col { padding: 2rem; } }

.about-image {
  width: 100%;
  height: 100%;
  max-height: 26rem;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}
.about-image:hover { transform: scale(1.05); }

.about-content-col { display: flex; flex-direction: column; justify-content: center; }

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.about-body { display: flex; flex-direction: column; gap: 1rem; color: var(--color-muted-foreground); font-family: var(--font-body); }
.about-body p { font-size: 1rem; line-height: 1.65; }
@media (min-width: 768px) { .about-body p:first-child { font-size: 1.125rem; } }

.about-signature { font-size: 1.125rem !important; font-weight: 500; color: var(--color-foreground) !important; }

/* ============================================================
   SHOP SECTION
============================================================ */
.shop-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
  scroll-margin-top: 6rem;
}
@media (min-width: 768px) { .shop-section { padding-top: 5rem; } }

.shop-header { text-align: center; margin-bottom: 3rem; }

.shop-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Filter bar */
.shop-filters { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.shop-category-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.shop-cat-btn {
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background-color: var(--color-secondary);
  color: var(--color-foreground);
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}
.shop-cat-btn:hover { background-color: var(--color-muted); }
.shop-cat-btn.is-active { background-color: var(--color-primary); color: var(--color-primary-fg); }

.shop-price-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background-color: var(--color-secondary);
  color: var(--color-foreground);
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background-color 0.2s;
}
.shop-price-toggle:hover { background-color: var(--color-muted); }
.price-chevron { transition: transform 0.3s var(--ease-smooth); flex-shrink: 0; }
.shop-price-toggle.is-open .price-chevron { transform: rotate(180deg); }
.price-filter-active-label { font-size: 0.75rem; opacity: 0.7; }

/* Price filter panel (matches Lovable Slider) */
.price-filter-panel {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  padding: 0.5rem 0;
  overflow: hidden;
}

.price-range-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 1.25rem;
  margin-bottom: 0.75rem;
}

.range-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.5rem;
  transform: translateY(-50%);
  border-radius: 9999px;
  background-color: var(--color-secondary);
  pointer-events: none;
}

.range-track-fill {
  position: absolute;
  top: 50%;
  height: 0.5rem;
  transform: translateY(-50%);
  background-color: var(--color-primary);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 1;
}

.range-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  width: 100%;
  height: 1.25rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  pointer-events: none;
  z-index: 2;
}
.range-input--max { z-index: 3; }

.range-input::-webkit-slider-runnable-track {
  height: 0.5rem;
  background: transparent;
  border: none;
}
.range-input::-moz-range-track {
  height: 0.5rem;
  background: transparent;
  border: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--color-background);
  border: 2px solid var(--color-primary);
  margin-top: -0.375rem;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: none;
}
.range-input::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--color-background);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: none;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

/* Product grid (matches Lovable: grid-cols-1 md:grid-cols-3 gap-6 lg:gap-8) */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .product-grid { gap: 2rem; }
}

.no-products-message {
  text-align: center;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
  padding: 5rem 0;
}

.shop-show-more-wrap { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   PRODUCT CARDS (Section 31.3, 31.9, 31.13)
============================================================ */
.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.theme-product-card-wrap.beyond-initial { display: none; }
.theme-product-card-wrap.beyond-initial.show { display: flex; }

.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-product-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 40px -12px hsl(30 15% 15% / 0.15);
}

/* Hit-area overlay (Pattern A — Section 31.3) */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}
.theme-product-card * { pointer-events: none; }
.theme-product-card .theme-card-link { pointer-events: auto; }

.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-secondary);
  border: 1px solid hsl(19 78% 52% / 0.2);
  margin-bottom: 1rem;
}
.theme-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.08); }
.theme-product-card__image.is-soldout { opacity: 0.6; }

.card-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: transparent;
  transition: background-color 0.5s ease;
  pointer-events: none;
}
.theme-product-card:hover .card-hover-overlay { background-color: hsl(211 38% 22% / 0.05); }

.sold-out-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-foreground);
  color: var(--color-background);
  z-index: 2;
}

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }

.card-brand-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow-tick {
  width: 1rem;
  height: 1px;
  background: var(--color-primary);
  display: block;
  flex-shrink: 0;
}
.eyebrow-brand {
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.card-product-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  overflow-wrap: break-word;
}
.theme-product-card:hover .card-product-name { color: var(--color-primary); }

.card-product-price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted-foreground);
}
.card-product-price .woocommerce-Price-amount { color: var(--color-muted-foreground); }

/* ============================================================
   FOUNDER SECTION
============================================================ */
.founder-section {
  background-color: var(--color-foreground);
  color: var(--color-background);
  scroll-margin-top: 6rem;
  position: relative;
  overflow: hidden;
}
.founder-section .container-wide { padding-top: 5rem; padding-bottom: 7rem; position: relative; }
@media (min-width: 768px) { .founder-section .container-wide { padding-top: 7rem; } }

.founder-section .section-index { color: rgba(255,255,255,0.6); }
.founder-section .section-index-num { color: var(--color-primary); }
.founder-section .section-index-divider { background: rgba(255,255,255,0.3); }
.founder-section .section-coords-right { color: rgba(255,255,255,0.6); }
.founder-section .eyebrow-text { color: var(--color-primary); }

.wave-circle-founder-left { width: 20rem; height: 20rem; left: -6rem; bottom: 2rem; color: hsl(19 78% 52% / 0.2); }
.wave-circle-founder-right { width: 18rem; height: 18rem; right: -5rem; top: -5rem; color: rgba(255,255,255,0.1); }

.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .founder-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.founder-image-col { position: relative; }
.founder-image-frame {
  position: relative;
  overflow: hidden;
}
.founder-image-frame::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 100%;
  height: 100%;
  border: 1px solid hsl(19 78% 52% / 0.6);
  pointer-events: none;
  z-index: 0;
  display: none;
}
@media (min-width: 768px) { .founder-image-frame::before { display: block; } }

.founder-photo {
  width: 100%;
  height: 31rem;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.8s var(--ease-smooth);
}
@media (min-width: 768px) { .founder-photo { height: 37.5rem; } }
.founder-image-frame:hover .founder-photo { transform: scale(1.04); }

.founder-heading {
  font-family: var(--font-display);
  color: var(--color-background);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.founder-divider {
  width: 4rem;
  height: 1px;
  background: var(--color-primary);
  margin-bottom: 2rem;
}

.founder-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
}
.founder-body p { font-size: 1rem; line-height: 1.7; }

/* ============================================================
   FAQ SECTION
============================================================ */
.faq-section {
  background-color: hsl(36 30% 88% / 0.4);
  scroll-margin-top: 6rem;
  padding-top: 5rem;
  padding-bottom: 7rem;
}
@media (min-width: 768px) { .faq-section { padding-top: 7rem; } }

.faq-inner { max-width: 48rem; margin: 0 auto; }

.faq-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background: none;
  border: none;
}
@media (min-width: 768px) { .faq-question { padding: 1.5rem; } }
.faq-question:hover { background-color: hsl(36 30% 88% / 0.5); }

.faq-question span:first-child {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-foreground);
}
@media (min-width: 768px) { .faq-question span:first-child { font-size: 1.125rem; } }

.faq-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.3s var(--ease-smooth);
  display: flex;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  overflow: hidden;
  transition: max-height 0.35s var(--ease-smooth), opacity 0.35s var(--ease-smooth);
  max-height: 0;
  opacity: 0;
}
.faq-item.is-open .faq-answer,
.faq-answer:not([hidden]) {
  max-height: 500px;
  opacity: 1;
}
.faq-answer[hidden] { display: block !important; max-height: 0; opacity: 0; }
.faq-answer p {
  padding: 0 1.25rem 1.5rem;
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  line-height: 1.7;
  font-size: 0.9375rem;
}
@media (min-width: 768px) { .faq-answer p { padding: 0 1.5rem 1.5rem; } }

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-section {
  position: relative;
  scroll-margin-top: 6rem;
  isolation: isolate;
  overflow: hidden;
}
.contact-section .container-wide { position: relative; padding-top: 7rem; padding-bottom: 9rem; }
@media (min-width: 768px) { .contact-section .container-wide { padding-top: 9rem; padding-bottom: 11rem; } }

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.contact-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    hsl(36 40% 94% / 0.85),
    hsl(36 40% 94% / 0.70),
    hsl(36 40% 94% / 0.95));
}
.contact-bg-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, hsl(36 40% 94% / 0.7) 100%);
}

.contact-inner { max-width: 48rem; margin: 0 auto; text-align: center; }

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .contact-heading { font-size: clamp(2.5rem, 6vw, 4.5rem); } }

.contact-description {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  font-size: 1rem;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}
@media (min-width: 768px) { .contact-description { font-size: 1.125rem; } }

.contact-cta-btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 32px hsl(19 78% 52% / 0.3);
  margin-bottom: 3.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: hsl(211 38% 22% / 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-link:hover { color: var(--color-primary); }
.contact-link-icon { color: var(--color-primary); flex-shrink: 0; }

/* ============================================================
   MARQUEE STRIP
============================================================ */
.marquee-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid hsl(19 78% 52% / 0.2);
  border-bottom: 1px solid hsl(19 78% 52% / 0.2);
  background-color: hsl(36 30% 88% / 0.4);
  padding: 1.5rem 0;
  user-select: none;
}
@media (min-width: 768px) { .marquee-strip { padding: 2rem 0; } }

.marquee-track {
  display: flex;
  align-items: center;
  will-change: transform;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 1.5rem;
  flex-shrink: 0;
}

.marquee-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(19 78% 52% / 0.6);
  display: inline-block;
  flex-shrink: 0;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.05em;
  color: var(--color-foreground);
  white-space: nowrap;
}
@media (min-width: 768px) { .marquee-text { font-size: 3rem; } }
@media (min-width: 1024px) { .marquee-text { font-size: 3.75rem; } }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   CONTACT MODAL
============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}
.modal-backdrop[hidden] { display: none; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: hsl(36 40% 94% / 0.6);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background: linear-gradient(135deg, hsl(36 40% 94% / 0.55), hsl(36 40% 94% / 0.25));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(24px);
  animation: modalScale 0.4s var(--ease-smooth);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  border: none;
  background: none;
  cursor: pointer;
}
.modal-close:hover { color: var(--color-foreground); }

.modal-header { margin-bottom: 1.5rem; }
.modal-eyebrow {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.5rem;
}
.modal-header h3,
#modal-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--color-foreground);
}

.modal-content > div { padding: 2rem; }
@media (min-width: 640px) { .modal-content > div { padding: 2.5rem; } }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted-foreground);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: hsl(36 40% 94% / 0.4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input::placeholder { color: hsl(211 15% 38% / 0.6); }
.form-input:focus { border-color: hsl(19 78% 52% / 0.6); background: hsl(36 40% 94% / 0.6); }

.form-textarea { resize: none; }

.form-submit-btn { width: 100%; margin-top: 0.5rem; }

/* Modal success state */
.modal-success-icon {
  width: 4rem;
  height: 4rem;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary-fg);
}
#modal-success { text-align: center; padding: 2rem 0; }
#modal-success h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
#modal-success p { color: var(--color-muted-foreground); font-family: var(--font-body); font-size: 0.875rem; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.wave-lines-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  color: hsl(19 78% 52% / 0.1);
}
.wave-lines-svg { width: 100%; height: 6rem; display: block; }

.site-footer .container-wide { padding-top: 3rem; padding-bottom: 3rem; position: relative; }
@media (min-width: 1024px) { .site-footer .container-wide { padding-top: 4rem; padding-bottom: 4rem; } }

.footer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid hsl(36 18% 78% / 0.6);
}
.footer-coord { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: hsl(211 15% 38% / 0.7); display: none; }
@media (min-width: 768px) { .footer-coord { display: block; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.footer-logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.05em; }

.footer-description {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  max-width: 20rem;
  line-height: 1.6;
  font-family: var(--font-body);
}

.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.social-link { color: var(--color-muted-foreground); transition: color 0.2s; display: flex; }
.social-link:hover { color: var(--color-primary); }

.footer-col-heading { font-size: 0.875rem; font-weight: 600; font-family: var(--font-body); margin-bottom: 1rem; }

.theme-footer-nav { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.theme-footer-nav a,
.theme-footer-nav li > a {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  font-family: var(--font-body);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
}
.theme-footer-nav a:hover { color: var(--color-foreground); }

.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-email-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); font-family: var(--font-body); }
.footer-email-link { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-email-link:hover { color: var(--color-foreground); }
.footer-location { font-size: 0.875rem; color: var(--color-muted-foreground); font-family: var(--font-body); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.footer-copyright, .footer-credit { font-size: 0.75rem; color: var(--color-muted-foreground); font-family: var(--font-body); }
.footer-credit { transition: color 0.2s; }
.footer-credit:hover { color: var(--color-foreground); }

/* ============================================================
   CART DRAWER (Section 12)
============================================================ */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: hsl(211 38% 22% / 0.2);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

#theme-cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background-color: var(--color-background);
  z-index: 70;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-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);
  flex-shrink: 0;
}
.cart-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: 0.05em; }

.cart-close-btn {
  padding: 0.25rem;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-foreground);
}
.cart-close-btn:hover { opacity: 0.6; }

/* Empty state */
.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.cart-empty-icon { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.cart-empty-msg { color: var(--color-muted-foreground); font-family: var(--font-body); margin-bottom: 1.5rem; }
.cart-continue-btn { pointer-events: auto !important; }

/* Cart items */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
}

.cart-item-image-link {
  position: relative;
  width: 5rem;
  height: 6rem;
  background-color: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  pointer-events: auto !important;
}
.cart-item-image-link > .cart-item-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cart-item-details { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-body);
  transition: opacity 0.2s;
  color: inherit;
  text-decoration: none;
  pointer-events: auto !important;
}
.cart-item-name:hover { opacity: 0.7; }

.cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; font-family: var(--font-body); }
.cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); font-family: var(--font-body); margin-top: 0.125rem; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cart-qty-btn {
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  pointer-events: auto !important;
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }

.cart-qty-display { font-size: 0.875rem; width: 1.5rem; text-align: center; font-family: var(--font-body); }

.cart-remove-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.2s;
  pointer-events: auto !important;
}
.cart-remove-btn:hover { color: var(--color-foreground); }

/* Cart footer */
.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-family: var(--font-body);
}
.cart-subtotal-label { color: var(--color-muted-foreground); }
.cart-subtotal-value { font-weight: 500; }

.cart-shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); font-family: var(--font-body); }

.cart-checkout-btn { width: 100%; display: flex; pointer-events: auto !important; }

/* ============================================================
   SINGLE PRODUCT PAGE (matches Lovable ProductDetail)
============================================================ */
.single-product.site-main {
  padding-top: 6rem;
}
@media (min-width: 1024px) {
  .single-product.site-main { padding-top: 7rem; }
}

.single-product .container-wide {
  padding-top: 0;
  padding-bottom: 0;
}

.single-product-back-wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.back-to-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  font-family: var(--font-body);
  transition: color 0.2s ease;
}
.back-to-shop-link svg { flex-shrink: 0; }
.back-to-shop-link:hover { color: var(--color-foreground); }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .theme-product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.theme-product-gallery { min-width: 0; max-width: 100%; }

.theme-product-info {
  min-width: 0;
  max-width: 100%;
  padding-top: 0;
}
@media (min-width: 1024px) {
  .theme-product-info { padding-top: 2.5rem; }
}

.product-main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-secondary);
  margin-bottom: 1rem;
}
.product-main-image-wrap > .product-main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.3s ease;
}

.single-product .variations.shop_attributes,
.single-product table.variations {
  display: none !important;
}

.product-size-selector {
  display: block;
  margin-bottom: 1.5rem;
}
.product-size-selector .variation-label {
  display: block;
  margin-bottom: 0.75rem;
}
.product-size-selector .attr-buttons-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-size-selector .attr-option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 100%;
}

.product-thumb-btn {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  background: var(--color-secondary);
  cursor: pointer;
  padding: 0;
}
.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-thumb-btn.is-active { border-color: var(--color-primary); }
.product-thumb-btn:not(.is-active) { opacity: 0.6; }
.product-thumb-btn:hover:not(.is-active) { opacity: 1; }

.product-categories {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
  margin: 0 0 0.5rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .product-title { font-size: 1.875rem; }
}

.product-price {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.product-description {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  line-height: 1.625;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
}
.product-description p { margin: 0; }

.variations.shop_attributes {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  width: 100%;
}
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
  display: block;
  width: 100%;
}
.single-product .variations tbody tr.variation-row { margin-bottom: 1.5rem; }
.single-product .variations tbody tr.variation-row:last-child { margin-bottom: 0; }
.single-product .variations tbody td.label { padding: 0 0 0.75rem; }
.single-product .variations tbody td.value { padding: 0; }
.single-product .variation-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
}

.theme-attr-select-hidden { display: none !important; }

.attr-buttons-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.attr-option-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  color: var(--color-foreground);
}
.attr-option-btn:hover { border-color: hsl(19 78% 52% / 0.5); }
.attr-option-btn.is-selected {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}

.theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
}
@media (max-width: 479px) {
  .theme-add-to-cart-area { flex-wrap: wrap; }
}

.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  background: transparent;
}

.theme-qty-minus,
.theme-qty-plus {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background: none;
  border: none;
  color: var(--color-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }

.theme-qty-input {
  padding: 0.75rem 1rem;
  min-width: 3rem;
  width: 3rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-foreground);
  outline: none;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.single-product .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.single_variation_wrap,
.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability,
.single-product .woocommerce-variation-description {
  display: none !important;
}

.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}
.details-heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.product-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.product-details-list li {
  display: flex;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
  line-height: 1.5;
}
.product-details-list li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-primary);
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.related-products-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--color-border);
}
.related-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 2.5rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .related-heading { font-size: 1.5rem; }
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .related-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* ============================================================
   PAGE TEMPLATE
============================================================ */
.site-main { padding-top: var(--header-height); }
.site-main .container-wide { padding-top: 3rem; padding-bottom: 5rem; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  padding-top: 2rem;
}
.entry-content { font-family: var(--font-body); line-height: 1.7; }
.entry-content:not(:has(.wc-block-checkout)):not(:has(.wc-block-cart)):not(:has(.wp-block-woocommerce-cart)):not(:has(.woocommerce)) {
  max-width: 48rem;
}
.entry-content h1, .entry-content h2, .entry-content h3 { font-family: var(--font-display); letter-spacing: 0.02em; margin: 1.5rem 0 0.75rem; }
.entry-content p { margin-bottom: 1rem; color: var(--color-muted-foreground); }
.entry-content a { color: var(--color-primary); text-decoration: underline; }

/* ============================================================
   404 PAGE
============================================================ */
.not-found-main { background-color: var(--color-muted); min-height: 80vh; display: flex; align-items: center; }
.not-found-content { text-align: center; padding: 5rem 1rem; }
.not-found-code { font-family: var(--font-display); font-size: 8rem; color: var(--color-muted-foreground); opacity: 0.3; line-height: 1; margin-bottom: 1rem; }
.not-found-heading { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1rem; letter-spacing: 0.02em; }
.not-found-body { font-family: var(--font-body); color: var(--color-muted-foreground); margin-bottom: 2rem; }

/* ============================================================
   WOOCOMMERCE — Blocks & classic pages (cart, checkout, account)
============================================================ */

/* Parent containers: never compress WooCommerce content */
body.theme-woo-page .site-main,
body.woocommerce-page .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-account .site-main,
body.theme-woo-page .entry-content,
body.woocommerce-page .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-account .entry-content,
body.theme-woo-page .entry-content.container-wide,
body.woocommerce-page .entry-content.container-wide,
.entry-content:has(.wc-block-checkout),
.entry-content:has(.wc-block-cart),
.entry-content:has(.wp-block-woocommerce-cart),
.entry-content:has(.woocommerce),
.entry-content.container-wide:has(.wc-block-checkout),
.entry-content.container-wide:has(.wc-block-cart),
.entry-content.container-wide:has(.wp-block-woocommerce-cart),
.entry-content.container-wide:has(.woocommerce) {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body.theme-woo-page .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main,
body.woocommerce-account .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}

body.theme-woo-page .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-checkout .page-title,
body.woocommerce-account .page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  color: var(--color-foreground);
}

/* Block wrappers — cart & checkout */
body.theme-woo-page .entry-content .wp-block-woocommerce-cart,
body.theme-woo-page .entry-content .wp-block-woocommerce-checkout,
body.woocommerce-cart .entry-content .wp-block-woocommerce-cart,
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-cart,
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-cart.wc-block-cart,
.entry-content .wp-block-woocommerce-checkout.wc-block-checkout,
.entry-content > .wc-block-cart,
.entry-content > .wc-block-checkout {
  display: block;
  max-width: var(--woo-content-max, 80rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

body.theme-woo-page .entry-content .alignwide.wc-block-cart,
body.theme-woo-page .entry-content .alignwide.wc-block-checkout,
.entry-content .alignwide.wc-block-cart,
.entry-content .alignwide.wc-block-checkout {
  max-width: var(--woo-content-max, 80rem);
  width: 100%;
}

/* Classic shortcode pages — cart, account */
body.woocommerce-cart .entry-content > .woocommerce,
body.woocommerce-account .entry-content > .woocommerce,
.entry-content > .woocommerce:has(.woocommerce-cart-form),
.entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
  max-width: var(--woo-content-max, 80rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Notices — full content width (class uses "notices") */
body.theme-woo-page .wc-block-components-notices,
.entry-content .wc-block-cart .wc-block-components-notices,
.entry-content .wc-block-checkout .wc-block-components-notices,
.entry-content .wp-block-woocommerce-cart > .wc-block-components-notices,
.entry-content .wp-block-woocommerce-checkout > .wc-block-components-notices {
  max-width: var(--woo-content-max, 80rem);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Two-column block layout — cart & checkout sidebar-layout */
body.theme-woo-page .wc-block-components-sidebar-layout.wc-block-cart,
body.theme-woo-page .wc-block-components-sidebar-layout.wc-block-checkout,
body.theme-woo-page .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-components-sidebar-layout.wc-block-cart,
.entry-content .wc-block-components-sidebar-layout.wc-block-checkout,
.entry-content .wc-block-checkout-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--woo-layout-gap, 1.5rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: start;
}

@media (min-width: 768px) {
  body.theme-woo-page .wc-block-components-sidebar-layout.wc-block-cart,
  .entry-content .wc-block-components-sidebar-layout.wc-block-cart {
    grid-template-columns: 1fr minmax(360px, 400px);
  }

  body.theme-woo-page .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
  body.theme-woo-page .wc-block-checkout-sidebar-layout.is-large,
  .entry-content .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
  .entry-content .wc-block-checkout-sidebar-layout.is-large {
    grid-template-columns: 1fr minmax(360px, 400px);
  }
}

/* Notices as first grid row */
body.theme-woo-page .wc-block-components-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-notices,
.entry-content .wc-block-components-sidebar-layout.wc-block-checkout > .wc-block-components-notices,
.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices {
  grid-column: 1 / -1;
  order: 1;
}

/* Cart block columns */
body.theme-woo-page .wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-main,
.entry-content .wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-main {
  order: 2;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body.theme-woo-page .wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-sidebar,
.entry-content .wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-sidebar,
body.theme-woo-page .wc-block-cart__sidebar,
.entry-content .wc-block-cart__sidebar {
  order: 3;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  body.theme-woo-page .wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-sidebar,
  .entry-content .wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-sidebar {
    min-width: 360px;
  }
}

body.theme-woo-page .wp-block-woocommerce-cart-order-summary-block,
.entry-content .wp-block-woocommerce-cart-order-summary-block {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Checkout block columns */
body.theme-woo-page .wc-block-checkout__main,
.entry-content .wc-block-checkout__main {
  order: 2;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.theme-woo-page .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout__sidebar {
  order: 3;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.theme-woo-page .wc-block-checkout__sidebar,
  .entry-content .wc-block-checkout__sidebar {
    min-width: 360px;
  }
}

body.theme-woo-page .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Shared sidebar panel styling — cart & checkout */
body.theme-woo-page .wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-sidebar,
body.theme-woo-page .wc-block-cart__sidebar,
.entry-content .wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-sidebar,
body.theme-woo-page .wc-block-checkout__sidebar,
.entry-content .wc-block-checkout__sidebar {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: 2rem;
}

/* Classic cart — two columns (shortcode fallback) */
@media (min-width: 768px) {
  body.woocommerce-cart .entry-content > .woocommerce,
  .entry-content > .woocommerce:has(.woocommerce-cart-form) {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 400px);
    gap: var(--woo-layout-gap, 1.5rem);
    align-items: start;
  }

  body.woocommerce-cart .woocommerce-notices-wrapper,
  .entry-content > .woocommerce:has(.woocommerce-cart-form) .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
  }

  body.woocommerce-cart .woocommerce-cart-form,
  .entry-content > .woocommerce:has(.woocommerce-cart-form) .woocommerce-cart-form {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.woocommerce-cart .cart-collaterals,
  .entry-content > .woocommerce:has(.woocommerce-cart-form) .cart-collaterals {
    grid-column: 2;
    min-width: 360px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

body.woocommerce-cart .cart-collaterals .cart_totals,
.entry-content > .woocommerce:has(.woocommerce-cart-form) .cart-collaterals .cart_totals {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Classic my account — navigation + content */
body.woocommerce-account .entry-content > .woocommerce,
.entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--woo-layout-gap, 1.5rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.woocommerce-account .entry-content > .woocommerce,
  .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
    grid-template-columns: minmax(200px, 260px) 1fr;
  }
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
.entry-content .woocommerce-MyAccount-navigation {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-content,
.entry-content .woocommerce-MyAccount-content {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: 1rem;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin-bottom: 0.25rem;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-foreground);
  transition: background-color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background-color: var(--color-secondary);
}

/* Block form fields — cart & checkout */
body.theme-woo-page .wc-block-components-text-input input,
body.theme-woo-page .wc-block-components-select select,
.entry-content .wc-block-cart .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-cart .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  border: 1px solid var(--color-border) !important;
  background-color: var(--color-card) !important;
  border-radius: var(--radius) !important;
  outline: none;
  transition: border-color 0.2s !important;
}

body.theme-woo-page .wc-block-components-text-input input:focus,
body.theme-woo-page .wc-block-components-select select:focus,
.entry-content .wc-block-cart .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-cart .wc-block-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary) !important;
}

/* Block buttons */
body.theme-woo-page .wc-block-components-button:not(.is-link),
body.theme-woo-page .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-cart .wc-block-components-button:not(.is-link),
.entry-content .wc-block-checkout .wc-block-components-button:not(.is-link),
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  border-radius: var(--btn-radius) !important;
  transition: opacity 0.2s !important;
}

body.theme-woo-page .wc-block-components-button:not(.is-link):hover,
body.theme-woo-page .wc-block-components-checkout-place-order-button:hover,
.entry-content .wc-block-cart .wc-block-components-button:not(.is-link):hover,
.entry-content .wc-block-checkout .wc-block-components-button:not(.is-link):hover,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
}

body.theme-woo-page .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button {
  width: 100% !important;
}

/* Block notices */
body.theme-woo-page .wc-block-components-notice-banner,
.entry-content .wc-block-cart .wc-block-components-notice-banner,
.entry-content .wc-block-checkout .wc-block-components-notice-banner {
  border-left: 3px solid var(--color-primary);
  background-color: var(--color-secondary);
  border-radius: var(--card-radius);
  font-family: var(--font-body);
}

body.theme-woo-page .wc-block-cart h2,
body.theme-woo-page .wc-block-checkout h2,
body.theme-woo-page .wc-block-checkout__main h2,
body.theme-woo-page .wc-block-checkout__sidebar h2,
.entry-content .wc-block-cart h2,
.entry-content .wc-block-checkout h2,
.entry-content .wc-block-checkout__main h2,
.entry-content .wc-block-checkout__sidebar h2 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-size: 1.25rem;
}

/* Standalone notice banners inside block grids span full width */
@media (min-width: 768px) {
  body.theme-woo-page .wc-block-components-sidebar-layout > .wc-block-components-notice-banner,
  .entry-content .wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-notice-banner,
  .entry-content .wc-block-components-sidebar-layout.wc-block-checkout.is-large > .wc-block-components-notice-banner,
  .entry-content .wc-block-checkout-sidebar-layout.is-large > .wc-block-components-notice-banner {
    grid-column: 1 / -1;
    order: 1;
  }
}

/* ============================================================
   THANK YOU PAGE (Section 22.8)
============================================================ */
body.theme-thankyou-page { overflow-x: hidden; }

body.theme-thankyou-page .thankyou-wrap {
  max-width: var(--woo-content-max, 80rem);
  margin: 0 auto;
  padding: 2rem 0;
  width: 100%;
  box-sizing: border-box;
}

body.theme-thankyou-page .woocommerce-order { font-family: var(--font-body); }

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  letter-spacing: 0.02em;
  padding: 0 0 1rem 0;
  color: var(--color-foreground);
}

body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--color-secondary);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview strong {
  display: block;
  color: var(--color-foreground);
  font-weight: 600;
}

body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-style: normal;
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
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);
  color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

/* ============================================================
   ARCHIVE PRODUCT PAGE
============================================================ */
.archive-main { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 5rem; }
.archive-main .container-wide .product-grid { margin-top: 2rem; }

/* ============================================================
   WOOCOMMERCE GLOBAL OVERRIDES
============================================================ */
/* WC notices — visible on non-product pages */
.woocommerce-message,
.woocommerce-info {
  font-family: var(--font-body);
  border-left: 3px solid var(--color-primary);
  background-color: var(--color-secondary);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-foreground);
}
.woocommerce-error {
  font-family: var(--font-body);
  border-left: 3px solid #c0392b;
  background-color: hsl(0 70% 95%);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-1.25rem); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInBlur {
  from { opacity: 0; transform: translateY(1.25rem); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(5rem); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92) translateY(1.25rem); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 767px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas a { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .hero-video { display: none; }
}
