/* =========================================================
   Linked In Love Collective — Theme Stylesheet
   Theme by The Free Website Guys
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --color-background: #ffffff;
  --color-foreground: #141414;
  --color-card: #fbfaf9;
  --color-primary: #141414;
  --color-button-text: #ffffff;
  --color-secondary: #f8f7f6;
  --color-muted: #f1f0ee;
  --color-muted-foreground: #6b6b6b;
  --color-accent: #e42538;
  --color-border: #e8e6e3;

  --color-love: #e42538;
  --color-happy: #fbc823;
  --color-peace: #30c0b1;
  --color-growth: #36a15d;
  --color-love-soft: #faeae5;
  --color-happy-soft: #fbf3da;
  --color-peace-soft: #def2f0;
  --color-growth-soft: #e8f2e3;
  --color-cream: #f5f5f5;
  --color-sand: #eae0d7;

  --font-display: 'DM Sans', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Caveat', cursive;

  --radius: 1.25rem;
  --card-radius: 2rem;

  --shadow-soft: 0 2px 16px -4px rgba(0,0,0,0.06);
  --shadow-elevated: 0 8px 30px -8px rgba(0,0,0,0.1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --logo-height: 44px;

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

  --header-height: 64px;
  --checkout-gap: 2.5rem;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.gallery-cover-img) {
  max-width: 100%;
  height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .gallery-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: -0.02em;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.font-script { font-family: var(--font-script); }
.font-serif-accent { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; font-style: italic; }

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

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Reveal / motion ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blurUp { from { opacity: 0; transform: translateY(48px); filter: blur(8px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

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

.reveal-item {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(8px);
  transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth), filter 0.9s var(--transition-smooth);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

.scale-in-item {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}
.scale-in-item.is-visible { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal-item, .scale-in-item { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Customizer preview fallback — never hide content in the editor */
body.is-customizer .reveal-item,
body.is-customizer .scale-in-item {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* No-JS fallback so content is never permanently hidden */
.no-js .reveal-item, .no-js .scale-in-item { opacity: 1 !important; transform: none !important; filter: none !important; }

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

.blob { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
.blob-alt { border-radius: 41% 59% 70% 30% / 50% 60% 40% 50%; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: var(--btn-height);
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--color-foreground); color: var(--color-background); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-foreground); }
.btn-outline:hover { background: var(--color-cream); }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-light { background: #fff; color: var(--color-foreground); }
.btn-light:hover { background: rgba(255,255,255,0.9); }
.btn-ghost { background: transparent; border: none; color: var(--color-muted-foreground); }
.btn-ghost:hover { color: var(--color-foreground); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* CTAs that must stay sentence case regardless of the global uppercase rule */
.single-product .single_add_to_cart_button,
.btn-hero-primary-sentence { text-transform: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.site-header__bar {
  width: 100%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid .site-header__bar,
.site-header.is-scrolled .site-header__bar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-elevated);
}
.site-header__nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 3.5rem; color: #fff;
}
@media (min-width: 768px) { .site-header__nav { height: 4rem; } }
.site-header.is-solid .site-header__nav,
.site-header.is-scrolled .site-header__nav { color: var(--color-foreground); }

.site-logo-link { display: flex; align-items: center; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; transition: filter 0.3s ease; }
.site-logo-text { line-height: var(--logo-height); display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.site-header:not(.is-solid):not(.is-scrolled) .site-logo-img { filter: brightness(0) invert(1); }

.site-nav-list { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .site-nav-list { display: flex; } }
@media (min-width: 768px) {
  .site-header__nav .site-nav-list > .theme-nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-header__nav .site-nav-list > .theme-nav-list > li {
    margin: 0;
    display: list-item;
  }
}
.mobile-nav-list > .theme-nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-list a, .site-nav-list button, .theme-nav-list a, .theme-nav-list button {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer;
  background: none; border: none; color: inherit;
  transition: color 0.3s ease; display: inline-block;
}
.site-header:not(.is-solid):not(.is-scrolled) .site-nav-list a:hover,
.site-header:not(.is-solid):not(.is-scrolled) .theme-nav-list a:hover,
.site-header:not(.is-solid):not(.is-scrolled) .theme-nav-list button:hover { color: rgba(255,255,255,0.8); }
.site-header.is-solid .site-nav-list a:hover,
.site-header.is-scrolled .site-nav-list a:hover,
.site-header.is-solid .theme-nav-list a:hover,
.site-header.is-scrolled .theme-nav-list a:hover,
.site-header.is-solid .theme-nav-list button:hover,
.site-header.is-scrolled .theme-nav-list button:hover { color: var(--color-muted-foreground); }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.header-cart-btn { position: relative; padding: 0.5rem; background: none; border: none; color: inherit; transition: opacity 0.2s ease; }
.header-cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
  position: absolute; top: -0.125rem; right: -0.125rem;
  width: 1.25rem; height: 1.25rem; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; background: var(--color-accent); color: #fff; border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle { display: inline-flex; padding: 0.5rem; background: none; border: none; color: inherit; }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.is-open .icon-menu { display: none; }
.mobile-menu-toggle.is-open .icon-close { display: inline; }

.mobile-nav { display: none; border-top: 1px solid var(--color-border); padding: 0.75rem 1.5rem; background: var(--color-background); animation: fadeIn 220ms var(--transition-smooth) forwards; }
.mobile-nav.is-open { display: block; }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-list a, .mobile-nav-list button {
  text-align: left; font-size: 0.875rem; font-family: var(--font-body);
  letter-spacing: 0.02em; padding: 0.75rem 0; background: none; border: none; color: var(--color-foreground);
}
.mobile-nav-list a:hover, .mobile-nav-list button:hover { color: var(--color-muted-foreground); }

/* ---------- Hero ---------- */
.hero-section { position: relative; width: 100%; overflow: hidden; background: #f4efe8; }
.hero-viewport { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.hero-video-wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(10,14,24,0.92) 0%, rgba(10,14,24,0.78) 40%, rgba(10,14,24,0.45) 75%, rgba(10,14,24,0.25) 100%);
}
.hero-content { position: relative; z-index: 10; height: 100%; display: flex; align-items: center; }
.hero-content-inner { max-width: 42rem; }
.hero-eyebrow { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 1.25rem; color: var(--color-love); }
.hero-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 0.95;
  color: #fff; font-size: 3rem; text-shadow: 0 2px 24px rgba(0,0,0,0.55);
}
@media (min-width: 640px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 5.5rem; } }
.hero-title .dot { color: var(--color-love); }
.hero-subtitle { color: #fff; max-width: 28rem; margin-top: 1.5rem; font-size: 1rem; font-weight: 500; line-height: 1.6; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.125rem; } }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.hero-social-rail {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; gap: 1.25rem; color: rgba(255,255,255,0.85);
}
@media (min-width: 768px) { .hero-social-rail { right: 1.5rem; } }
.hero-social-rail a { transition: color 0.2s ease; }
.hero-social-rail a:hover { color: #fff; }

/* ---------- Values strip ---------- */
.values-section { background: var(--color-background); }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 3.5rem 0; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2.5rem; padding: 4rem 0; } }
.value-card {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.5rem;
  border-radius: 1.5rem; text-align: center; overflow: hidden;
  transition: transform 0.3s var(--transition-smooth);
}
.value-card:hover { transform: translateY(-6px) scale(1.03); }
.value-icon-wrap { width: 6rem; height: 6rem; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
@media (min-width: 768px) { .value-icon-wrap { width: 7rem; height: 7rem; } }
.value-card:hover .value-icon-wrap { transform: rotate(-4deg) scale(1.06); }
.value-icon-wrap svg { width: 3.5rem; height: 3.5rem; }
@media (min-width: 768px) { .value-icon-wrap svg { width: 4rem; height: 4rem; } }
.value-eyebrow { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted-foreground); }
.value-label { font-family: var(--font-display); font-size: 1.5rem; margin-top: 0.25rem; }
.value-copy { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.5rem; line-height: 1.5; }

/* ---------- Section heading scales (per section) ---------- */
.section-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted-foreground); display: block; }

.about-section .section-heading { font-size: 2.25rem; line-height: 1.05; margin-top: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .about-section .section-heading { font-size: 3.75rem; } }

.shop-heading { font-size: 2.25rem; line-height: 1.05; margin-top: 0.75rem; max-width: 42rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3.75rem; } }

.vendors-heading { font-size: 2.25rem; line-height: 1.05; margin-top: 0.75rem; }
@media (min-width: 768px) { .vendors-heading { font-size: 3.75rem; } }

.faq-heading { font-size: 2.25rem; line-height: 1.2; margin-top: 0.75rem; }
@media (min-width: 768px) { .faq-heading { font-size: 3.75rem; } }

.contact-title { font-size: 3rem; line-height: 1.02; margin-top: 1rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .contact-title { font-size: 4.5rem; } }

/* ---------- About section ---------- */
.about-section { background: var(--color-cream); position: relative; overflow: hidden; scroll-margin-top: 6rem; }
.about-blob-1 { position: absolute; top: -6rem; right: -6rem; width: 24rem; height: 24rem; opacity: 0.6; background: var(--color-growth-soft); }
.about-blob-2 { position: absolute; bottom: -6rem; left: 25%; width: 26rem; height: 26rem; opacity: 0.3; background: var(--color-happy-soft); }
.about-inner { padding: 6rem 0; position: relative; }
@media (min-width: 768px) { .about-inner { padding: 8rem 0; } }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(12, 1fr); gap: 4rem; } }
.about-photos { position: relative; aspect-ratio: 5/4; max-width: 28rem; margin: 0 auto; width: 100%; }
@media (min-width: 640px) { .about-photos { aspect-ratio: 3/2; } }
@media (min-width: 1024px) { .about-photos { grid-column: span 6; aspect-ratio: auto; min-height: 28rem; max-width: none; margin: 0; } }
.about-photo-a, .about-photo-b { position: absolute; overflow: hidden; border-radius: 1.5rem; background: var(--color-secondary); box-shadow: var(--shadow-elevated); }
.about-photo-a { left: 0; top: 1.5rem; width: 48%; aspect-ratio: 3/4; transform: rotate(-8deg); transform-origin: bottom left; }
@media (min-width: 640px) { .about-photo-a { left: 0.5rem; top: 2rem; } }
.about-photo-b { right: 0; top: 0; width: 54%; aspect-ratio: 4/5; transform: rotate(4deg); }
@media (min-width: 640px) { .about-photo-b { right: 0.5rem; } }
.about-photo-a img, .about-photo-b img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: top; }
.about-copy { }
@media (min-width: 1024px) { .about-copy { grid-column: span 6; } }
.about-text { color: var(--color-muted-foreground); font-size: 1rem; line-height: 1.7; margin-top: 1.5rem; }
.about-text p { margin-bottom: 1rem; }
.about-more-wrap { overflow: hidden; transition: max-height 0.45s var(--transition-smooth), opacity 0.45s var(--transition-smooth); max-height: 0; opacity: 0; }
.about-more-wrap.is-open { max-height: 40rem; opacity: 1; }
.about-more-wrap p { margin-bottom: 1rem; }
.about-toggle { margin-top: 2rem; }
.about-toggle svg { transition: transform 0.3s ease; }
.about-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.about-stats { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 28rem; }
.about-stat { }
.about-stat.has-border { padding-left: 1rem; border-left: 1px solid rgba(20,20,20,0.15); }
.about-stat-num { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em; }
@media (min-width: 768px) { .about-stat-num { font-size: 1.875rem; } }
.about-stat-label { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.5rem; line-height: 1.4; }
.about-values-list { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(20,20,20,0.1); }
@media (min-width: 640px) { .about-values-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .about-values-list { grid-template-columns: repeat(4, 1fr); } }
.about-values-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.about-check { flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; margin-top: 0.125rem; background: var(--color-love); }
.about-check svg { width: 1rem; height: 1rem; color: #fff; }
.about-values-list span.item-text { font-size: 0.875rem; line-height: 1.5; }
@media (min-width: 768px) { .about-values-list span.item-text { font-size: 1rem; } }

/* ---------- Shop section ---------- */
.shop-section { padding: 6rem 0; scroll-margin-top: 6rem; }
@media (min-width: 768px) { .shop-section { padding: 8rem 0; } }
.shop-head-row { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .shop-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.shop-search { position: relative; width: 100%; }
@media (min-width: 768px) { .shop-search { max-width: 20rem; } }
.shop-search svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--color-muted-foreground); pointer-events: none; }
.shop-search input {
  width: 100%; height: 3rem; padding-left: 2.5rem; padding-right: 1rem; border-radius: 9999px;
  background: var(--color-cream); border: 1px solid var(--color-border); font-family: var(--font-body); font-size: 0.875rem;
}
.shop-search input:focus { outline: none; box-shadow: 0 0 0 2px rgba(20,20,20,0.2); }

.shop-filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; font-family: var(--font-body);
  border: 1px solid var(--color-border); border-radius: 9999px; background: var(--color-background); color: var(--color-foreground);
  transition: all 0.3s ease;
}
.filter-chip svg { width: 1rem; height: 1rem; }
.filter-chip:hover { border-color: rgba(20,20,20,0.4); background: var(--color-cream); }
.filter-chip.is-active { background: var(--color-primary); color: var(--color-button-text); border-color: var(--color-primary); }
.filter-chip:hover, .filter-chip.is-active { transform: scale(1.03); }

.occasion-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.occasion-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.occasion-chip {
  display: inline-flex; align-items: center; padding: 0.5rem 1rem; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  font-family: var(--font-body); border: 1px solid var(--color-border); border-radius: 9999px; background: var(--color-background); color: var(--color-foreground);
  transition: all 0.3s ease;
}
.occasion-chip:hover { border-color: rgba(20,20,20,0.4); background: var(--color-cream); transform: scale(1.03); }
.occasion-chip.is-active { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }
.occasion-clear { padding: 0.5rem 0.75rem; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-muted-foreground); background: none; border: none; }
.occasion-clear:hover { color: var(--color-foreground); }

.theme-product-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch;
}
@media (min-width: 640px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.5rem; } }

.shop-empty { text-align: center; padding: 5rem 0; color: var(--color-muted-foreground); font-family: var(--font-body); }

/* ---------- Product card ---------- */
.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card { display: block; }
.theme-product-card__media { position: relative; margin-bottom: 1.25rem; padding-bottom: 0.75rem; }
.theme-product-card__image-wrapper {
  position: relative; border-radius: 2rem; overflow: hidden; aspect-ratio: 4/5;
  background: var(--color-love-soft); transition: transform 0.4s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-card__image-wrapper { transform: translateY(-8px); }
.theme-product-card__image-link { position: absolute; inset: 0; z-index: 2; display: block; }
.theme-product-card__image-wrapper img.product-card-img {
  transition: transform 1.1s cubic-bezier(0.25,0.4,0.25,1), opacity 0.5s ease;
}
.theme-product-card:hover .theme-product-card__image-wrapper img.theme-product-card__image-primary { transform: scale(1.08); }
.theme-product-card__image-secondary { opacity: 0; }
.theme-product-card:hover .theme-product-card__image-secondary { opacity: 1; }
.theme-product-card__gradient {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s ease;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.18) 100%);
}
.theme-product-card:hover .theme-product-card__gradient { opacity: 1; }
.theme-product-card__category {
  position: absolute; top: 1rem; left: 1rem; z-index: 3; padding: 0.25rem 0.75rem; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; border-radius: 9999px; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px); transition: opacity 0.5s ease; pointer-events: none;
}
.theme-product-card:hover .theme-product-card__category { opacity: 0; }
.theme-product-card__badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 3; padding: 0.375rem 0.75rem; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; background: var(--color-foreground); color: var(--color-background); border-radius: 9999px;
}
.theme-product-card__quick-add {
  position: absolute !important; z-index: 4; bottom: 0; right: 0; width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center; background: var(--color-primary); color: var(--color-button-text);
  border-radius: 50%; box-shadow: var(--shadow-elevated); border: none; opacity: 1; transition: transform 0.2s ease;
  pointer-events: auto;
}
.theme-product-card__quick-add:hover { transform: scale(1.12) rotate(90deg); }
.theme-product-card__quick-add svg { width: 1.25rem; height: 1.25rem; }

.theme-product-card__info { padding: 0 0.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.theme-product-card__title-link { display: block; }
.theme-product-card__title { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.3; font-weight: 700; }
.theme-product-card__price { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-product-card__desc {
  font-size: 0.875rem; color: rgba(107,107,107,0.9); padding-top: 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.theme-product-card.is-sold-out .theme-product-card__image-wrapper img.product-card-primary { opacity: 0.6; }

/* ---------- Vendors ---------- */
.vendors-section { background: var(--color-love-soft); position: relative; overflow: hidden; scroll-margin-top: 6rem; }
.vendors-blob { position: absolute; top: -6rem; left: 33%; width: 26rem; height: 26rem; opacity: 0.4; background: var(--color-happy-soft); }
.vendors-inner { padding: 6rem 0; position: relative; }
@media (min-width: 768px) { .vendors-inner { padding: 8rem 0; } }
.vendors-intro { max-width: 48rem; margin-bottom: 3.5rem; }
.vendors-copy { color: var(--color-muted-foreground); font-size: 1rem; line-height: 1.7; margin-top: 1.25rem; max-width: 36rem; }
@media (min-width: 768px) { .vendors-copy { font-size: 1.125rem; } }
.vendors-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .vendors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vendors-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }
.vendor-card { background: var(--color-background); border-radius: 1.75rem; overflow: hidden; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; transition: transform 0.35s var(--transition-smooth); }
.vendor-card:hover { transform: translateY(-6px); }
.vendor-photo { aspect-ratio: 4/5; overflow: hidden; background: var(--color-cream); }
.vendor-photo img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform 0.7s ease; }
.vendor-card:hover .vendor-photo img { transform: scale(1.05); }
.vendor-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.vendor-craft { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted-foreground); }
.vendor-name { font-family: var(--font-display); font-size: 1.25rem; margin-top: 0.5rem; line-height: 1.3; }
.vendor-bio { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; margin-top: 0.75rem; }
.vendors-footer-copy { margin-top: 3rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 36rem; }
.vendors-footer-copy button { text-decoration: underline; text-underline-offset: 4px; color: var(--color-foreground); background: none; border: none; padding: 0; font: inherit; }
.vendors-footer-copy button:hover { color: rgba(20,20,20,0.7); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--color-cream); scroll-margin-top: 6rem; }
.faq-inner { padding: 6rem 0; }
@media (min-width: 768px) { .faq-inner { padding: 8rem 0; } }
.faq-wrap { max-width: 48rem; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 3rem; }
.faq-panel { background: var(--color-background); border-radius: 1.5rem; padding: 1.5rem; }
@media (min-width: 768px) { .faq-panel { padding: 2.5rem; } }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; background: none; border: none; text-align: left; font-family: var(--font-display);
  font-size: 1.125rem; color: var(--color-foreground); cursor: pointer;
}
@media (min-width: 768px) { .faq-trigger { font-size: 1.25rem; } }
.faq-trigger:hover { text-decoration: underline; }
.faq-trigger svg { flex-shrink: 0; width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.faq-item.is-open .faq-trigger svg { transform: rotate(180deg); }
.faq-panel-content { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.faq-item.is-open .faq-panel-content { max-height: 32rem; }
.faq-answer { padding: 0 0 1rem 0; color: var(--color-muted-foreground); font-family: var(--font-body); line-height: 1.6; }

/* ---------- Contact CTA ---------- */
.contact-cta-section { scroll-margin-top: 6rem; }
.contact-cta-inner { padding: 6rem 0; }
@media (min-width: 768px) { .contact-cta-inner { padding: 8rem 0; } }
.contact-cta-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .contact-cta-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.contact-copy { color: var(--color-muted-foreground); max-width: 28rem; margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.7; }
@media (min-width: 768px) { .contact-copy { font-size: 1.125rem; } }
.contact-actions { display: flex; flex-direction: column; gap: 0.75rem; max-width: 28rem; }
.contact-links { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
@media (min-width: 640px) { .contact-links { grid-template-columns: repeat(2, 1fr); } }
.contact-links a:hover { color: var(--color-foreground); }
.contact-visual { position: relative; }
.contact-script { font-family: var(--font-script); font-size: 1.875rem; margin-bottom: 1.25rem; text-align: center; color: var(--color-love); }
@media (min-width: 768px) { .contact-script { font-size: 2.25rem; } }
.contact-photo { position: relative; max-width: 28rem; margin: 0 auto; border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-elevated); aspect-ratio: 1/1; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-cream); color: var(--color-foreground); border-top: 1px solid var(--color-border); }
.site-footer-inner { padding: 3rem 0; }
@media (min-width: 1024px) { .site-footer-inner { padding: 4rem 0; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; } }
.footer-blurb { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.6; }
.footer-col-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links button, .footer-links a { font-size: 0.875rem; color: var(--color-muted-foreground); background: none; border: none; padding: 0; text-align: left; }
.footer-links button:hover, .footer-links a:hover { color: var(--color-foreground); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact-list svg { width: 1rem; height: 1rem; margin-top: 0.125rem; flex-shrink: 0; }
.footer-contact-list a:hover { color: var(--color-foreground); }
.footer-social { margin-top: 1.25rem; display: flex; align-items: center; gap: 1rem; color: var(--color-muted-foreground); }
.footer-social a:hover { color: var(--color-foreground); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); display: flex; justify-content: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--color-muted-foreground); text-align: center; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); transition: transform 80ms linear; }
.scroll-progress__bar { height: 100%; width: 100%; background: var(--color-love); }

/* ============================================================
   WooCommerce overrides
   ============================================================ */
.woocommerce-breadcrumb { display: none; }

/* Add to cart button — style override (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: none !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

.theme-product-card .add_to_cart_button.ajax_add_to_cart {
  min-height: unset !important;
  padding: var(--btn-icon-padding) !important;
  border-radius: 50% !important;
  width: 3rem;
  height: 3rem;
}

/* WC notices — scoped visibility */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-error {
  background: #fff5f5; border: 1px solid #f7c9c9; color: #a12727; border-radius: 0.75rem;
  padding: 1rem 1.25rem; font-family: var(--font-body); font-size: 0.875rem; list-style: none;
}

/* ---------- Generic inner-page main offset (home hero stays flush under the transparent header) ---------- */
.site-main { padding-top: var(--header-height, 64px); }
.theme-no-hero .site-main { padding-top: var(--header-height, 64px); }
.error-404-wrap { margin-top: var(--header-height, 64px); }

/* ---------- Single product page ---------- */
.single-product .site-main { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .single-product .site-main { padding-top: 8rem; padding-bottom: 8rem; } }
.single-product-wrap { padding: 0; }
.back-to-shop { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 2.5rem; }
.back-to-shop:hover { color: var(--color-foreground); }
.back-to-shop svg { width: 1rem; height: 1rem; }

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

.theme-product-gallery__main { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 2rem; background: var(--color-cream); }
.theme-product-gallery__main img { width: 100% !important; height: 100% !important; object-fit: cover; }
.theme-product-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb {
  aspect-ratio: 1/1; overflow: hidden; border-radius: 0.75rem; background: var(--color-cream);
  border: 2px solid transparent; padding: 0; transition: border-color 0.2s ease;
}
.theme-product-thumb.is-active { border-color: var(--color-foreground); }
.theme-product-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; }

.product-category { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted-foreground); }
.product-title { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; margin-top: 0.75rem; line-height: 1.2; }
@media (min-width: 768px) { .product-title { font-size: 3rem; } }
.product-price { font-family: var(--font-display); font-size: 1.5rem; margin-top: 1rem; color: var(--color-love); }
.product-price .woocommerce-Price-amount { font-family: var(--font-display); }

.product-description { color: var(--color-muted-foreground); font-size: 1rem; line-height: 1.7; margin-top: 1.5rem; overflow-wrap: break-word; word-break: break-word; }
@media (min-width: 768px) { .product-description { font-size: 1.125rem; } }
.product-description p { margin-bottom: 1rem; }

.product-details-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; list-style: none; padding: 0; }
.product-details-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-family: var(--font-body); }
.product-details-check { flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 0.375rem; display: flex; align-items: center; justify-content: center; margin-top: 0.125rem; background: var(--color-love); }
.product-details-check svg { width: 0.875rem; height: 0.875rem; color: #fff; }

.theme-add-to-cart-area { display: flex; flex-direction: column; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .theme-add-to-cart-area { flex-direction: row; align-items: center; } }
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 9999px; padding: 0.375rem 0.5rem; }
.theme-qty-minus, .theme-qty-plus {
  width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: none; border: none; transition: background-color 0.2s ease;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-cream); }
.theme-qty-input {
  width: 2.5rem; text-align: center; border: none; background: none; font-family: var(--font-body); font-size: 1rem;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.single_add_to_cart_button.disabled,
.single_add_to_cart_button.wc-variation-selection-needed { opacity: 0.4; pointer-events: none; cursor: not-allowed; }
.single-checkout-btn { flex: 1 1 auto; min-width: 160px; text-transform: none; }
@media (max-width: 639px) {
  .single_add_to_cart_button,
  .single-checkout-btn { width: 100%; }
}

.theme-variations { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.theme-variation-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.theme-variation-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variation-pill {
  display: inline-flex; align-items: center; padding: 0.5rem 1rem; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  font-family: var(--font-body); border: 1px solid var(--color-border); border-radius: 9999px; background: var(--color-background); color: var(--color-foreground);
  transition: all 0.3s ease; cursor: pointer;
}
.variation-pill:hover { border-color: rgba(20,20,20,0.4); background: var(--color-cream); transform: scale(1.03); }
.variation-pill.is-active { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }
.variation-pill.is-disabled { opacity: 0.35; pointer-events: none; cursor: not-allowed; }
.theme-variation-select {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.theme-variation-value { position: relative; }
.variations_form .reset_variations { display: inline-block; margin-top: 0.75rem; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-muted-foreground); }
.variations_form .reset_variations:hover { color: var(--color-foreground); }
.variations_form table.variations { display: none; }

.product-footnote { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.product-footnote svg { width: 0.875rem; height: 0.875rem; color: var(--color-love); }

.posted_in { overflow-wrap: break-word; word-break: break-word; }

.related-products-section { margin-top: 6rem; }
@media (min-width: 768px) { .related-products-section { margin-top: 8rem; } }
.related-products-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.related-products-title { font-family: var(--font-display); font-size: 1.875rem; margin-top: 0.5rem; }
@media (min-width: 768px) { .related-products-title { font-size: 2.25rem; } }

/* ---------- Shop archive ---------- */
.shop-archive-wrap { padding: 8rem 0 6rem; }
.shop-archive-title { font-family: var(--font-display); font-size: 2.25rem; margin-bottom: 2.5rem; }
.shop-empty-state { text-align: center; padding: 4rem 0; color: var(--color-muted-foreground); }

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

.cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.cart-drawer__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.cart-drawer__close { padding: 0.25rem; background: none; border: none; transition: opacity 0.2s ease; }
.cart-drawer__close: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 { width: 3rem; height: 3rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.cart-drawer__empty p { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

.cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cart-drawer__item { display: flex; gap: 1rem; }
.cart-drawer__item-image { width: 5rem; height: 6rem; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; border-radius: 0.5rem; }
.cart-drawer__item-image img { width: 100% !important; height: 100% !important; object-fit: cover; }
.cart-drawer__item-body { flex: 1; min-width: 0; }
.cart-drawer__item-name { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-drawer__item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.cart-drawer__item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-drawer__qty-btn { padding: 0.25rem; background: none; border: none; border-radius: 0.25rem; transition: background-color 0.2s ease; }
.cart-drawer__qty-btn:hover { background: var(--color-secondary); }
.cart-drawer__qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.cart-drawer__remove { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); background: none; border: none; }
.cart-drawer__remove:hover { color: var(--color-foreground); }
.cart-drawer__item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }

.cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; }
.cart-drawer__subtotal-label { color: var(--color-muted-foreground); }
.cart-drawer__subtotal-value { font-weight: 500; }
.cart-drawer__note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-drawer__btn { width: 100%; }

/* ---------- Contact modal ---------- */
#theme-contact-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
#theme-contact-modal.is-open { display: flex; }
.contact-modal__overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); animation: fadeIn 0.2s ease forwards; }
.contact-modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 32rem; max-height: 90vh; overflow-y: auto;
  background: var(--color-background); border: 1px solid var(--color-border); border-radius: 0.75rem; padding: 1.5rem;
  animation: scaleIn 0.2s ease forwards;
}
.contact-modal__close { position: absolute; right: 1rem; top: 1rem; background: none; border: none; opacity: 0.7; }
.contact-modal__close:hover { opacity: 1; }
.contact-modal__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.375rem; }
.contact-modal__desc { color: var(--color-muted-foreground); font-size: 0.875rem; margin-bottom: 1rem; }
.contact-modal__info { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.contact-modal__info div { display: flex; align-items: center; gap: 0.5rem; }
.contact-modal__info svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .contact-form__row { grid-template-columns: repeat(2, 1fr); } }
.contact-form label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.625rem 0.75rem; background: var(--color-background); border: 1px solid var(--color-border);
  font-size: 0.875rem; border-radius: 0.5rem; font-family: var(--font-body); transition: box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; box-shadow: 0 0 0 2px rgba(20,20,20,0.15); }
.contact-form textarea { resize: none; }
.contact-form__actions { display: flex; justify-content: flex-end; }
.contact-modal__success { text-align: center; padding: 2rem 0; }
.contact-modal__success-icon { width: 3.5rem; height: 3.5rem; background: var(--color-primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border-radius: 50%; }
.contact-modal__success-icon svg { width: 1.75rem; height: 1.75rem; color: var(--color-button-text); }
.contact-modal__success h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.contact-modal__success p { color: var(--color-muted-foreground); font-size: 0.875rem; }

/* ---------- 404 page ---------- */
.error-404-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem; }
.error-404-wrap h1 { font-size: 4rem; margin-bottom: 1rem; }
.error-404-wrap p { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.error-404-wrap a { color: var(--color-love); text-decoration: underline; }

/* ============================================================
   Checkout Block overrides
   ============================================================ */
body.woocommerce-checkout .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }
body.woocommerce-checkout .page-title {
  font-family: var(--font-display); font-size: 2.25rem; margin: 3rem 0 2rem; letter-spacing: -0.02em;
}
body.woocommerce-checkout .entry-content { width: 100%; min-width: 0; max-width: none; }
body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout { width: 100%; min-width: 0; max-width: none; }

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-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important; max-width: none !important;
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--color-foreground);
  border: 1px solid var(--color-border); border-radius: 0.75rem; background: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { outline: none; box-shadow: 0 0 0 2px rgba(20,20,20,0.15); }
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }

@media (min-width: 1024px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--checkout-gap, 2.5rem);
    align-items: start;
  }
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    position: sticky;
    top: 7rem;
  }
}
body.woocommerce-checkout .wc-block-components-notice-banner { grid-column: 1 / -1; border-radius: 0.75rem; }

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-cream);
  border-radius: var(--card-radius);
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-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;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

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

/* ---------- Thank you page ---------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { 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: 1.5rem; padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 1.5rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview li { border-radius: 0.75rem; background: var(--color-cream); padding: 1rem 1.5rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
  body.theme-thankyou-page .woocommerce-customer-details {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
  }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; }
