/* =============================================================================
   Taste Of Thyme — theme.css
   ============================================================================= */

/* ── CSS Variables (defaults — overridden by inline style from Customizer) ── */
:root {
  --color-primary:          #b35a2a;
  --color-background:       #f9f6f2;
  --color-foreground:       #1e1410;
  --color-card:             #f0ece6;
  --color-secondary:        #e8e0d4;
  --color-muted:            #d4ccc0;
  --color-muted-foreground: #6b6055;
  --color-accent:           #4a6633;
  --color-border:           #d6cdbf;
  --color-button-text:      #f9f6f2;
  --color-white:            #ffffff;

  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:       0.5rem;
  --radius-md:    calc(0.5rem - 2px);
  --radius-sm:    calc(0.5rem - 4px);
  --radius-xl:    1rem;
  --radius-2xl:   1.5rem;

  --shadow-soft:     0 4px 20px -4px rgba(30, 20, 16, 0.06);
  --shadow-elevated: 0 8px 40px -8px rgba(30, 20, 16, 0.10);

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --btn-height:         2.75rem;
  --btn-radius:         var(--radius-md);
  --btn-padding:        0 2rem;
  --btn-font-size:      0.9375rem;
  --btn-font-weight:    500;
  --btn-letter-spacing: 0.01em;
  --btn-text-transform: none;

  --logo-height: 60px;

  --checkout-gap: 2rem;
  --card-radius:  var(--radius-xl);
  --section-padding: 2rem;
}

/* ── Reset / Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

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

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

button, input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
}

ul { list-style: none; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.text-center   { text-align: center; }
.text-primary  { color: var(--color-primary); }
.text-muted    { color: var(--color-muted-foreground); }
.display-font  { font-family: var(--font-display); }
.uppercase     { text-transform: uppercase; }
.hidden-mobile { display: none; }
@media (min-width: 1024px) { .hidden-mobile { display: flex; } }
.scroll-mt-24  { scroll-margin-top: 6rem; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: var(--btn-font-weight);
  font-size: var(--btn-font-size);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
  min-height: var(--btn-height);
  padding: var(--btn-padding);
}
.btn-lg  { min-height: 3rem; padding: 0 2rem; font-size: 1rem; }
.btn-sm  { min-height: 2.25rem; padding: 0 1rem; font-size: 0.875rem; }

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border-color: var(--color-primary);
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-foreground);
  border-color: var(--color-secondary);
}
.btn-secondary:hover { opacity: 0.85; }

.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}
.btn-outline:hover { background-color: var(--color-card); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── 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(-33.333%); }
}
@keyframes truckDrive {
  0%   { transform: translateX(-60px); }
  100% { transform: translateX(calc(100vw + 60px)); }
}

.animate-fade-in  { animation: fadeIn  0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }
.animate-marquee  { animation: marquee 25s linear infinite; }
.animate-truck-drive { animation: truckDrive 8s linear infinite; }

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

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

.image-zoom { transition: transform 0.7s ease-out; }
.image-zoom:hover { transform: scale(1.05); }

/* ═════════════════════════════════════════════════════════════════════════════
   HEADER
   ═════════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.5s var(--transition-smooth);
}

/* Transparent on hero pages before scroll */
body:not(.theme-no-hero) .site-header:not(.scrolled) {
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

/* Scrolled or non-hero */
.site-header.scrolled,
body.theme-no-hero .site-header {
  background-color: rgba(249, 246, 242, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

/* Nav layout */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  transition: height 0.5s var(--transition-smooth);
}
.site-header.scrolled .site-nav { height: 4rem; }
body.theme-no-hero .site-header .site-nav { height: 4rem; }

@media (min-width: 1024px) {
  .site-nav {
    height: 6rem;
    justify-content: center;
  }
  .site-header.scrolled .site-nav { height: 4.5rem; }
}

.nav-left, .nav-right-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
}
.nav-left    { justify-content: flex-end; }
.nav-right-links { justify-content: flex-start; }

.nav-link {
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

/* White links on hero pages before scroll */
body:not(.theme-no-hero) .site-header:not(.scrolled) .nav-link,
body:not(.theme-no-hero) .site-header:not(.scrolled) .cart-btn,
body:not(.theme-no-hero) .site-header:not(.scrolled) .hamburger-btn {
  color: rgba(255,255,255,0.9);
}

.nav-logo { margin: 0 4rem; flex-shrink: 0; }
.logo-link { display: block; }

/* Logo images */
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
  transition: all 0.5s var(--transition-smooth);
}
.site-header .site-logo-img {
  filter: brightness(0) sepia(1) saturate(3) hue-rotate(350deg);
}
body:not(.theme-no-hero) .site-header:not(.scrolled) .site-logo-img {
  filter: none;
  height: calc(var(--logo-height) * 1.3) !important;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  line-height: var(--logo-height);
}

.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 1024px) { .nav-right { flex: 1; } }

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-btn:hover { opacity: 0.6; }

.theme-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-button-text);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.theme-cart-count:empty { display: none; }

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: opacity 0.2s;
}
.hamburger-btn:hover { opacity: 0.6; }
@media (min-width: 1024px) { .hamburger-btn { display: none; } }

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0.5rem;
  animation: fadeIn 0.2s ease-out;
}
body:not(.theme-no-hero) .site-header:not(.scrolled) .mobile-menu {
  border-top-color: rgba(255,255,255,0.2);
  background-color: rgba(30, 20, 16, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 0 0 0.5rem 0.5rem;
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.mobile-nav-link:hover { opacity: 0.7; }
body:not(.theme-no-hero) .site-header:not(.scrolled) .mobile-nav-link { color: rgba(255,255,255,0.9); }

/* ═════════════════════════════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 20, 16, 0.5);
}
.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 5rem;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .hero-content { padding-top: 6rem; padding-bottom: 5rem; }
}
.hero-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

/* ═════════════════════════════════════════════════════════════════════════════
   MARQUEE
   ═════════════════════════════════════════════════════════════════════════════ */
.marquee-section {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  overflow: hidden;
  padding: 0.75rem 0;
}
.marquee-track { display: flex; white-space: nowrap; gap: 3rem; }
.marquee-inner { display: flex; align-items: center; gap: 3rem; flex-shrink: 0; }
.marquee-item  { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.marquee-truck { flex-shrink: 0; }
.marquee-sep   { opacity: 0.4; }

/* ═════════════════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═════════════════════════════════════════════════════════════════════════════ */
.section-header  { margin-bottom: 3rem; }
.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
}
.section-rule {
  width: 4rem;
  height: 2px;
  background-color: var(--color-primary);
  margin: 1rem auto 0;
}

/* ═════════════════════════════════════════════════════════════════════════════
   SIGNATURE DISHES
   ═════════════════════════════════════════════════════════════════════════════ */
.signature-section { padding: 4rem 0 5rem; }
.signature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .signature-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.signature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s var(--transition-smooth);
}
.signature-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}
@media (min-width: 1024px) { .signature-card { padding: 2rem; } }

.signature-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid var(--color-border);
  transition: border-color 0.5s;
}
.signature-card:hover .signature-card-image { border-color: var(--color-primary); }
.signature-card-image img { width: 100%; height: 100%; object-fit: cover; }

.signature-card-title { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; }
@media (min-width: 1024px) { .signature-card-title { font-size: 1.5rem; } }

.signature-card-desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
  max-width: 20rem;
}

/* ═════════════════════════════════════════════════════════════════════════════
   ABOUT PREVIEW
   ═════════════════════════════════════════════════════════════════════════════ */
.about-preview-section { padding: 3rem 0 4rem; }
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-preview-grid { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
}
.about-preview-image-wrap {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-preview-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.about-preview-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; margin-top: 0.5rem; margin-bottom: 1.5rem; }
.about-preview-para  { color: var(--color-muted-foreground); line-height: 1.75; margin-bottom: 1rem; }
.about-preview-para:last-of-type { margin-bottom: 2rem; }

/* ═════════════════════════════════════════════════════════════════════════════
   TRUCK DIVIDER
   ═════════════════════════════════════════════════════════════════════════════ */
.truck-divider { padding: 0.5rem 0; overflow: hidden; }
.truck-divider-inner { position: relative; display: flex; align-items: center; }
.truck-line {
  position: absolute;
  inset-x: 0;
  top: 50%;
  height: 1px;
  background-color: var(--color-border);
}
.truck-svg-wrap { position: relative; z-index: 1; }
.truck-svg { color: var(--color-primary); filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)); }

/* ═════════════════════════════════════════════════════════════════════════════
   LOCATION SECTION
   ═════════════════════════════════════════════════════════════════════════════ */
.location-section { padding: 4rem 0; }
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .location-grid { grid-template-columns: repeat(2, 1fr); } }

.location-card {
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.location-card--secondary {
  background-color: var(--color-secondary);
  color: var(--color-foreground);
}
.location-card--primary {
  background-color: var(--color-primary);
  color: var(--color-button-text);
}
.location-icon { margin-bottom: 1rem; }
.location-card--primary .location-icon { opacity: 0.8; }

.location-card-title { font-size: clamp(1.25rem, 2.5vw, 1.875rem); font-weight: 500; margin-bottom: 1rem; }
.location-card-address { color: var(--color-muted-foreground); max-width: 20rem; line-height: 1.8; margin-bottom: 1rem; flex: 1; }
.location-card--primary .location-card-address { color: rgba(249,246,242,0.9); }
.location-card-desc { max-width: 20rem; line-height: 1.6; opacity: 0.9; margin-bottom: 1rem; flex: 1; }

/* ═════════════════════════════════════════════════════════════════════════════
   MENU / PRODUCT GRID
   ═════════════════════════════════════════════════════════════════════════════ */
.menu-section { padding: 5rem 0; }
.menu-header { margin-bottom: 3rem; }
.menu-header .section-title { margin-bottom: 2rem; }

.menu-search-wrap {
  position: relative;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-foreground);
  pointer-events: none;
}
.menu-search-input {
  width: 100%;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  padding: 0 2.5rem;
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 0.2s;
}
.menu-search-input:focus { box-shadow: 0 0 0 2px var(--color-primary); }
.menu-search-input::placeholder { color: var(--color-muted-foreground); }

.menu-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
}
.menu-search-clear:hover { color: var(--color-foreground); }

.menu-category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.category-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}
.category-filter-btn.active,
.category-filter-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border-color: var(--color-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 768px)  { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.product-card-wrapper {
  display: flex;
  min-width: 0;
  animation: fadeIn 0.6s var(--transition-smooth) both;
}
.product-card-wrapper.hidden { display: none; }
.product-card-wrapper > .wc-product-card {
  flex: 1;
  min-width: 0;
}

.menu-show-more,
.menu-no-results { text-align: center; margin-top: 2rem; }
.menu-no-results p { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.no-products { text-align: center; color: var(--color-muted-foreground); padding: 3rem 0; }

/* ─── WooCommerce Product Cards ─── */
.wc-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  background-color: var(--color-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.5s var(--transition-smooth);
}
.wc-product-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}
.wc-product-card a { text-decoration: none; color: inherit; }

.product-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.product-card-image {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 4/5;
  width: 100%;
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease-out;
}
.wc-product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-image .product-img-sold-out { opacity: 0.6; }

.badge-sold-out,
.badge-new {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}
.badge-sold-out {
  background-color: var(--color-foreground);
  color: var(--color-background);
}
.badge-new {
  background-color: var(--color-primary);
  color: var(--color-button-text);
}

.product-card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  min-height: 4.25rem;
  min-width: 0;
  overflow: hidden;
}
.product-card-info-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.product-card-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
  line-height: 1.3;
  max-width: 100%;
}
.wc-product-card:hover .product-card-name { color: var(--color-primary); }
.product-card-price { font-size: 0.875rem; color: var(--color-muted-foreground); }

.product-card-add-btn {
  margin-left: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  color: var(--color-foreground);
  text-decoration: none;
  cursor: pointer;
}
.product-card-add-btn:hover,
.product-card-add-btn.added {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border-color: var(--color-primary);
}

/* ═════════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═════════════════════════════════════════════════════════════════════════════ */
.testimonials-section {
  background-color: var(--color-secondary);
  padding: 5rem 0;
}
.testimonials-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(179, 90, 42, 0.3);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  min-height: 260px;
}
@media (min-width: 768px) { .testimonials-carousel { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background-color: var(--color-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-card.hidden { display: none; }

.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.star-icon { color: #fbbf24; }
.star-rating { font-size: 0.875rem; font-weight: 600; color: var(--color-primary); margin-left: 0.25rem; }

.testimonial-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(30, 20, 16, 0.8);
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-size: 0.875rem; font-weight: 500; }
.testimonial-role { font-size: 0.75rem; color: var(--color-muted-foreground); }
.testimonial-quote { font-size: 1.875rem; color: rgba(212, 204, 192, 0.5); font-family: serif; line-height: 1; }

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}
.testimonials-dots { display: flex; gap: 0.5rem; }
.dot {
  height: 4px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  width: 1rem;
  background-color: var(--color-border);
  padding: 0;
}
.dot--active { width: 2rem; background-color: var(--color-primary); }

.testimonials-arrows { display: flex; gap: 0.5rem; }
.arrow-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.arrow-btn--prev:hover { background-color: var(--color-card); }
.arrow-btn--next {
  background-color: var(--color-foreground);
  color: var(--color-background);
  border-color: var(--color-foreground);
}
.arrow-btn--next:hover { opacity: 0.8; }

/* ═════════════════════════════════════════════════════════════════════════════
   CTA BANNER
   ═════════════════════════════════════════════════════════════════════════════ */
.cta-banner-section {
  position: relative;
  padding: 10rem 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,20,16,0.8), rgba(30,20,16,0.5), rgba(30,20,16,0.3));
}
.cta-content { position: relative; z-index: 10; text-align: center; }
.cta-inner { max-width: 32rem; margin: 0 auto; }
.cta-title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 500; color: var(--color-white); margin-bottom: 1rem; }
.cta-desc  { color: rgba(255,255,255,0.8); margin-bottom: 2rem; line-height: 1.7; }

/* ═════════════════════════════════════════════════════════════════════════════
   INNER HERO (About, Contact)
   ═════════════════════════════════════════════════════════════════════════════ */
.inner-hero-section {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
@media (min-width: 768px) { .inner-hero-section { height: 60vh; } }

.inner-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,20,16,0.9), rgba(30,20,16,0.5), rgba(30,20,16,0.3));
}
.inner-hero-overlay--primary {
  background-color: rgba(179, 90, 42, 0.15);
  mix-blend-mode: multiply;
}
.inner-hero-content {
  position: relative;
  z-index: 10;
  padding-bottom: 3rem;
}
.inner-hero-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.inner-hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--color-white);
}

/* ═════════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═════════════════════════════════════════════════════════════════════════════ */
.about-story-section { padding: 4rem 0; }
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) { .about-story-grid { grid-template-columns: repeat(2, 1fr); gap: 5rem; } }

.about-story-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-muted-foreground);
  line-height: 1.75;
  font-size: 1.0625rem;
  text-align: justify;
}

.about-blockquote {
  margin-top: 2rem;
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.about-blockquote-text {
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(30, 20, 16, 0.8);
  line-height: 1.7;
}
.about-blockquote-cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  font-style: normal;
}

.why-section { margin-top: 6rem; margin-bottom: 5rem; }
.why-title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 600; margin-bottom: 0.75rem; }
.why-desc  { color: var(--color-muted-foreground); max-width: 36rem; margin: 0 auto 3rem; }

.why-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .why-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all 0.5s var(--transition-smooth);
  cursor: default;
}
.why-card:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}
.why-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  background-color: rgba(179, 90, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-primary);
  transition: all 0.5s;
}
.why-card:hover .why-card-icon {
  background-color: rgba(249, 246, 242, 0.2);
  color: var(--color-button-text);
}
.why-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: color 0.5s;
}
.why-card:hover .why-card-title { color: var(--color-button-text); }
.why-card-desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
  transition: color 0.5s;
}
.why-card:hover .why-card-desc { color: rgba(249, 246, 242, 0.8); }

/* ═════════════════════════════════════════════════════════════════════════════
   CONTACT PAGE
   ═════════════════════════════════════════════════════════════════════════════ */
.contact-section { padding: 5rem 0 7rem; }
.contact-intro { color: var(--color-muted-foreground); margin-bottom: 3rem; max-width: 40rem; margin-left: auto; margin-right: auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; } }

.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-box,
.contact-social-box {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-info-title { font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; }

.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-list li,
.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.contact-info-list li svg { flex-shrink: 0; color: var(--color-primary); margin-top: 2px; }
.contact-info-list li a:hover { color: var(--color-primary); }

.contact-social-desc { font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.contact-social-links { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  transition: text-decoration 0.2s;
}
.contact-social-link:hover { text-decoration: underline; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-muted-foreground); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(179, 90, 42, 0.15);
}
.form-group textarea { resize: none; }

.contact-success-message { padding: 3rem 1rem; }
.contact-success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-button-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.contact-success-message h3 { font-size: 1.875rem; margin-bottom: 1rem; }
.contact-success-message p { color: var(--color-muted-foreground); margin-bottom: 2rem; }

.contact-map-section { width: 100%; }
.contact-map-iframe { display: block; }

/* ═════════════════════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-secondary);
}
.footer-inner { padding: 3rem 0 4rem; }
@media (min-width: 1024px) { .footer-inner { padding: 4rem 0; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; }
  .footer-brand { grid-column: span 2; }
}

.footer-logo-link { display: inline-block; }
.footer-logo {
  filter: brightness(0) sepia(1) saturate(3) hue-rotate(350deg);
  height: 4rem;
  width: auto;
}
.footer-blurb {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  max-width: 22rem;
  line-height: 1.75;
}
.footer-socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-link {
  padding: 0.5rem;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-link:hover { opacity: 0.6; }

.footer-col-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; font-family: var(--font-body); }

.footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-list a {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: var(--color-foreground); }

.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.footer-contact-list li svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact-link { color: var(--color-muted-foreground); transition: color 0.2s; }
.footer-contact-link:hover { color: var(--color-foreground); }
.footer-address svg { margin-top: 4px; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-copy { font-size: 0.75rem; color: var(--color-muted-foreground); }
.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 640px) { .footer-bottom-right { flex-direction: row; gap: 1rem; } }
.footer-usd, .footer-credit { font-size: 0.75rem; color: var(--color-muted-foreground); }
.footer-credit a { text-decoration: underline; transition: color 0.2s; }
.footer-credit a:hover { color: var(--color-foreground); }

/* ═════════════════════════════════════════════════════════════════════════════
   CART DRAWER
   ═════════════════════════════════════════════════════════════════════════════ */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(30, 20, 16, 0.2);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
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: 150;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.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-drawer-title-wrap { display: flex; align-items: center; gap: 0.75rem; }
.cart-drawer-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.cart-empty-btn {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.cart-empty-btn:hover { color: #dc2626; }
.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: opacity 0.2s;
}
.cart-close-btn:hover { opacity: 0.6; }

.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 { color: var(--color-muted-foreground); margin-bottom: 1rem; }
.cart-drawer-empty p { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

.cart-drawer-items { 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 {
  width: 5rem;
  height: 6rem;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-secondary);
  flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.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;
  transition: opacity 0.2s;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 2px; }
.cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 4px; }
.cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }
.cart-qty-display { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.cart-remove-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-drawer-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;
}
.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); }

/* ═════════════════════════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE
   ═════════════════════════════════════════════════════════════════════════════ */
.single-product-page { padding-top: 6rem; }
@media (min-width: 1024px) { .single-product-page { padding-top: 8rem; } }

.back-to-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
  padding: 1.5rem 0;
}
.back-to-shop:hover { color: var(--color-foreground); }

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) { .product-layout { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }

/* Product gallery */
.product-gallery { display: flex; flex-direction: column; gap: 1rem; }
.product-main-img-wrap {
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-card);
}
#product-main-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }

.product-thumbnails {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.product-thumbnail {
  width: 4rem;
  height: 5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  background: none;
  padding: 0;
}
.product-thumbnail.is-active { border-color: var(--color-primary); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-info { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .product-info { padding-top: 2.5rem; } }

.product-category {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}
.product-title {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.product-price { font-size: 1.25rem; margin-bottom: 1.5rem; font-weight: 500; }
.product-sold-out-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-muted);
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.product-description {
  color: var(--color-muted-foreground);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Quantity control */
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: fit-content;
  overflow: hidden;
}
.theme-qty-minus,
.theme-qty-plus {
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
  width: 2.5rem;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  -moz-appearance: textfield;
  appearance: textfield;
  background: transparent;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Theme add-to-cart area */
.theme-add-to-cart-area { display: flex; flex-direction: column; gap: 1rem; }
.theme-add-to-cart-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Vegan option block (product page) */
.product-vegan-option {
  padding: 1rem;
  background-color: var(--color-secondary);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.product-vegan-option-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.product-vegan-icon {
  display: inline-flex;
  color: var(--color-primary);
}
.product-vegan-icon svg { display: block; }
.product-vegan-label {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}
.product-vegan-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.product-vegan-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.product-vegan-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-muted);
  border-radius: 24px;
  transition: 0.2s;
}
.product-vegan-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.product-vegan-switch input:checked + .product-vegan-slider {
  background-color: var(--color-primary);
}
.product-vegan-switch input:checked + .product-vegan-slider::before {
  transform: translateX(20px);
}

/* Cart item vegan badge */
.cart-item-vegan-badge {
  display: inline-flex;
  font-size: 10px;
  background-color: var(--color-secondary);
  color: var(--color-muted-foreground);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  margin-top: 0.375rem;
}

.product-dispatch-note {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  text-align: center;
  margin-top: 0.5rem;
}

/* Product details section */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 2rem;
}
.product-details-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; font-family: var(--font-body); }
.product-details-list { display: flex; flex-direction: column; gap: 0.5rem; }
.product-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.product-details-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Related products */
.related-products-section {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
}
.related-products-title { font-size: clamp(1.125rem, 2.5vw, 1.5rem); font-weight: 500; margin-bottom: 2.5rem; }
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.related-products-grid .product-card-wrapper {
  display: flex;
}
@media (min-width: 1024px) { .related-products-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* ═════════════════════════════════════════════════════════════════════════════
   WOOCOMMERCE ADD-TO-CART BUTTON OVERRIDES (mandatory per spec §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;
}

/* Product card compact add-to-cart button: transparent bg, black icon, border; hover primary */
a.product-card-add-btn.add_to_cart_button {
  min-height: unset !important;
  padding: 0 !important;
  background-color: transparent !important;
  color: #1a1a1a !important;
  border: 1px solid var(--color-border) !important;
}
a.product-card-add-btn.add_to_cart_button:hover {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border-color: var(--color-primary) !important;
}

/* Disabled state (§11.4.1) */
.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;
}

/* Hide "View cart" (§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;
}

/* Hide "product added to cart" notices on single product page */
.single-product .woocommerce-message {
  display: none !important;
}

/* ── Hidden attribute selects (§11.5.2) ─── */
.theme-attr-select-hidden { display: none !important; }

/* ═════════════════════════════════════════════════════════════════════════════
   WOOCOMMERCE ARCHIVE / SHOP
   ═════════════════════════════════════════════════════════════════════════════ */
.shop-archive-page { padding-top: 6rem; }
@media (min-width: 1024px) { .shop-archive-page { padding-top: 8rem; } }

.shop-header {
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.shop-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; }

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop-products-grid > li {
  display: flex;
  min-height: 0;
  min-width: 0;
}
.shop-products-grid .wc-product-card {
  flex: 1;
  min-width: 0;
}
@media (min-width: 768px)  { .shop-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .shop-products-grid { grid-template-columns: repeat(4, 1fr); } }

.shop-no-products { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); }

/* ═════════════════════════════════════════════════════════════════════════════
   WOOCOMMERCE CHECKOUT (§13)
   ═════════════════════════════════════════════════════════════════════════════ */
/* Evitar grid anidada y ancho estrecho: checkout usa .checkout-layout (sin page-body) */
body.woocommerce-checkout .page-content,
body.woocommerce-checkout .entry-content {
  display: block !important;
  max-width: 100% !important;
}
.checkout-layout {
  max-width: 90rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: block;
}

body.woocommerce-checkout article,
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .alignwide {
  max-width: none !important;
  width: 100% !important;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout {
  width: 100% !important;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Forzar layout de 2 columnas en desktop (formulario izq, resumen der) aunque JS añada is-small */
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-small {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 2rem !important;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main {
    order: -1; /* formulario a la izquierda */
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main {
    max-width: none !important;
  }
}

body.woocommerce-checkout .wc-block-checkout {
  font-family: var(--font-body) !important;
  color: var(--color-foreground) !important;
  width: 100%;
  max-width: 100%;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary, #e8e0d4);
  border-radius: var(--card-radius);
  padding: var(--section-padding, 2rem);
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  background-color: var(--color-background) !important;
  outline: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(179, 90, 42, 0.15) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: opacity 0.2s !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
  border-color: var(--color-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
}

body.woocommerce-checkout h1,
body.woocommerce-checkout h2,
body.woocommerce-checkout h3 {
  font-family: var(--font-display) !important;
}

/* ═════════════════════════════════════════════════════════════════════════════
   THANK YOU PAGE
   ═════════════════════════════════════════════════════════════════════════════ */
/* Evitar overflow horizontal (100vw puede exceder viewport con scrollbar) */
body.theme-thankyou-page {
  overflow-x: hidden !important;
}
/* Force footer full-width (override WooCommerce/theme containers) */
body.theme-thankyou-page .site-footer {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
}

/* Contenedor principal del pedido */
.theme-thankyou-page .woocommerce-order {
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Títulos de sección */
.theme-thankyou-page .woocommerce-order h2,
.theme-thankyou-page .woocommerce-order h3 {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
  color: var(--color-foreground);
}

/* Resumen del pedido (order number, date, email, total, payment) */
.theme-thankyou-page .woocommerce-order-overview,
.theme-thankyou-page .woocommerce-thankyou-order-details.order_details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}
.theme-thankyou-page .woocommerce-order-overview li,
.theme-thankyou-page .woocommerce-thankyou-order-details.order_details li {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
}
.theme-thankyou-page .woocommerce-order-overview strong,
.theme-thankyou-page .woocommerce-thankyou-order-details.order_details strong {
  font-weight: 600;
}

/* Sección Order details (tabla de productos) */
.theme-thankyou-page .woocommerce-order-details {
  background-color: var(--color-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  overflow: hidden;
}
.theme-thankyou-page .woocommerce-order-details .shop_table {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-collapse: separate;
  overflow: hidden;
}
.theme-thankyou-page .woocommerce-order-details .shop_table th {
  font-family: var(--font-body);
  font-weight: 600;
  background-color: var(--color-secondary);
  padding: 0.75rem 1rem;
}
.theme-thankyou-page .woocommerce-order-details .shop_table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
}

/* Direcciones (billing / shipping) - uno al lado del otro */
.theme-thankyou-page .woocommerce-columns.woocommerce-columns--2.woocommerce-columns--addresses.col2-set.addresses {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
}
@media (max-width: 639px) {
  .theme-thankyou-page .woocommerce-columns.woocommerce-columns--2.woocommerce-columns--addresses.col2-set.addresses {
    grid-template-columns: 1fr !important;
  }
}
.theme-thankyou-page .woocommerce-column--billing-address,
.theme-thankyou-page .woocommerce-column--shipping-address {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}
.theme-thankyou-page .woocommerce-customer-details address {
  font-style: normal;
  color: var(--color-muted-foreground);
  line-height: 1.8;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}
.theme-thankyou-page .woocommerce-customer-details .woocommerce-column__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ═════════════════════════════════════════════════════════════════════════════
   404 PAGE
   ═════════════════════════════════════════════════════════════════════════════ */
.error-404-page {
  padding: 8rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.error-404-inner { max-width: 32rem; margin: 0 auto; }
.error-404-number {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-404-title { font-size: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1rem; }
.error-404-desc { color: var(--color-muted-foreground); margin-bottom: 2rem; line-height: 1.7; }

/* ═════════════════════════════════════════════════════════════════════════════
   PAGE CONTENT (generic page.php)
   ═════════════════════════════════════════════════════════════════════════════ */
.page-content { padding-top: 5rem; min-height: 60vh; }
.page-body { max-width: 48rem; margin: 0 auto; padding: 2rem 1.5rem; }

/* ═════════════════════════════════════════════════════════════════════════════
   WooCommerce: override all default styles
   ═════════════════════════════════════════════════════════════════════════════ */
.woocommerce table.shop_table { border: 1px solid var(--color-border); border-radius: var(--radius); border-collapse: separate; }
.woocommerce table.shop_table th { font-family: var(--font-body); font-weight: 600; background: var(--color-secondary); padding: 0.75rem 1rem; }
.woocommerce table.shop_table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
.woocommerce .button { background-color: var(--color-primary) !important; color: var(--color-button-text) !important; border-radius: var(--btn-radius) !important; font-family: var(--font-body) !important; }
.woocommerce .button:hover { opacity: 0.85 !important; }
.woocommerce-message, .woocommerce-info { border-color: var(--color-primary) !important; }
.woocommerce-error { border-color: #dc2626 !important; }

/* ═════════════════════════════════════════════════════════════════════════════
   Variable products - variations table
   ═════════════════════════════════════════════════════════════════════════════ */
table.variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
table.variations td.label { padding-right: 1rem; font-size: 0.875rem; font-weight: 500; vertical-align: top; padding-top: 0.5rem; white-space: nowrap; }
table.variations td.value { width: 100%; }
table.variations select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  cursor: pointer;
}
table.variations select:focus { border-color: var(--color-primary); }

.single_variation_wrap { margin-top: 1rem; }

/* ═════════════════════════════════════════════════════════════════════════════
   MOBILE OVERRIDES (max-width: 1023px) — Match React project exactly
   ═════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  /* ─── Header: hide desktop nav, show only hamburger + cart + identity ─── */
  .nav-left,
  .nav-right-links {
    display: none !important;
  }
  .nav-logo { margin: 0; }
  .site-header .site-logo-img {
    height: 4rem !important;
  }
  .site-header.scrolled .site-logo-img,
  body.theme-no-hero .site-header .site-logo-img {
    height: 2.5rem !important;
  }
  body:not(.theme-no-hero) .site-header:not(.scrolled) .site-logo-img {
    height: 4rem !important;
  }
  .mobile-menu {
    padding: 1rem 0.5rem;
  }
  .mobile-nav-link {
    padding: 0.5rem 0.5rem;
    margin-bottom: 1rem;
  }
  .mobile-nav-link:last-child {
    margin-bottom: 0;
  }

  /* ─── Footer (side paddings on all pages) ─── */
  .footer-inner {
    padding: 3rem 1.5rem;
  }
  .footer-grid {
    gap: 2rem;
  }
  .footer-bottom {
    gap: 1rem;
  }

  /* ─── Hero (Home): buttons full width like React ─── */
  .hero-title {
    font-size: clamp(3rem, 7vw, 4.5rem);
  }
  .hero-buttons {
    gap: 1rem;
  }
  .hero-buttons .btn,
  .hero-buttons a {
    width: 100%;
  }

  /* ─── Marquee ─── */
  .marquee-inner {
    gap: 3rem;
  }

  /* ─── Signature Dishes (side paddings) ─── */
  .signature-section {
    padding: 4rem 1.5rem 5rem;
  }
  .signature-grid {
    gap: 2rem;
  }
  .signature-card {
    padding: 1.5rem;
  }

  /* ─── About Preview (side paddings) ─── */
  .about-preview-section {
    padding: 3rem 1.5rem 4rem;
  }
  .about-preview-grid {
    gap: 1.5rem;
  }

  /* ─── Location Section (side paddings) ─── */
  .location-section {
    padding: 4rem 1.5rem;
  }
  .location-grid {
    gap: 1.5rem;
  }
  .location-card {
    padding: 2.5rem;
  }

  /* ─── Menu Section / Shop (side paddings) ─── */
  .menu-section {
    padding: 5rem 1.5rem;
  }
  .products-grid {
    gap: 1.5rem;
  }

  /* ─── Testimonials ─── */
  .testimonials-section {
    padding: 5rem 0;
  }
  .testimonials-carousel {
    gap: 1.5rem;
    min-height: 260px;
  }

  /* ─── CTA Banner ─── */
  .cta-banner-section {
    padding: 10rem 0;
  }

  /* ─── Inner Hero (About, Contact) ─── */
  .inner-hero-content {
    padding-bottom: 3rem;
  }

  /* ─── About Page (side paddings) ─── */
  .about-story-section {
    padding: 4rem 1.5rem;
  }
  .about-story-grid {
    gap: 3rem;
  }
  .why-section {
    margin-top: 6rem;
    margin-bottom: 5rem;
  }
  .why-cards-grid {
    gap: 2rem;
  }
  .why-card {
    padding: 2rem;
  }

  /* ─── Contact Page (side paddings) ─── */
  .contact-section {
    padding: 5rem 1.5rem 7rem;
  }
  .contact-grid {
    gap: 2.5rem;
  }
  .contact-sidebar {
    gap: 1.5rem;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
   RESPONSIVE HELPERS (max-width: 640px — extra small)
   ═════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero-buttons {
    gap: 1rem;
    flex-direction: column;
  }
  .location-card {
    padding: 2rem 1.5rem;
  }
  .testimonials-carousel {
    gap: 1rem;
  }
  .cart-drawer-items {
    padding: 1rem;
  }
  .cart-drawer-footer {
    padding: 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
  .footer-bottom-right {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}
