/* =========================================================================
   Mia Jewelry — theme.css
   Author: The Free Website Guys
   ========================================================================= */

:root {
  --color-cream-bg: #F9F6F0;
  --color-ivory-bg: #FDFAF6;
  --color-card-bg: #FFFDFA;
  --color-dark-bg: #2B2622;
  --color-espresso-text: #371E0C;
  --color-cream-text: #F9F6F0;
  --color-primary: #CA9F49;
  --color-caramel-deep: #8C6C45;
  --color-muted-text: #8A7666;
  --color-border: #E0D3C2;
  --color-champagne-text: #F0E4D3;
  --color-dark-body: #EFE4D2;
  --color-button-text: var(--color-espresso-text);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-hero: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-label: 'Inter', system-ui, sans-serif;

  --radius-md: 0.5rem;
  --card-radius: 0.5rem;
  --logo-height: 80px;
  --header-height: 96px;

  --btn-radius: 999px;
  --btn-height: 48px;
  --btn-padding: 0 2rem;
  --btn-font-size: 12px;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.15em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0;

  --shadow-soft: 0 4px 18px rgba(53, 30, 11, 0.08), 0 1px 3px rgba(53, 30, 11, 0.05);
  --shadow-elevated: 0 20px 44px rgba(53, 30, 11, 0.18);
  --checkout-gap: 2.5rem;
}

/* -------------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--color-cream-bg);
  color: var(--color-espresso-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
p, span, a, button, li, label, input, textarea, select, small, time, figcaption, blockquote, cite {
  font-size: max(0.875rem, 14px);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: inherit;
  letter-spacing: -0.01em;
  color: var(--color-espresso-text);
  margin: 0;
}
img { max-width: 100%; display: block; }
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img) {
  height: auto;
}
.cover-img, .hero-bg-img, .product-card-img,
.theme-product-card__image, #product-main-img, .theme-product-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container-wide {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

/* -------------------------------------------------------------------------
   Typography helpers
   ------------------------------------------------------------------------- */
.cs-label, .cs-flourish-line {
  font-family: var(--font-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  line-height: 1.2;
  color: var(--color-caramel-deep);
}
.hero-eyebrow, .newsletter-eyebrow, .handmade-eyebrow, .semifine-eyebrow { color: var(--color-primary); }
.cs-flourish-line { display: inline-flex; align-items: center; gap: 12px; }
.cs-flourish-line::before { content: ''; width: 28px; height: 1px; background-color: currentColor; opacity: 0.7; }

.font-hero { font-family: var(--font-hero); font-weight: 600; letter-spacing: -0.02em; }

/* Section headings — per-section scale (Section 2.2.5) */
.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 1.25rem;
  color: var(--color-espresso-text);
}
.about-section__heading, .collections-heading, .semifine-section__heading,
.design-section__heading, .whymia-section__heading, .shop-heading, .faq-heading {
  font-size: 2.25rem;
}
@media (min-width: 768px) {
  .about-section__heading, .collections-heading, .semifine-section__heading,
  .design-section__heading, .whymia-section__heading, .shop-heading, .faq-heading {
    font-size: 3.75rem;
  }
}
@media (min-width: 1024px) {
  .about-section__heading, .collections-heading, .semifine-section__heading,
  .design-section__heading, .whymia-section__heading, .shop-heading, .faq-heading {
    font-size: 4.5rem;
  }
}
.handmade-section__heading { font-size: 2.25rem; color: var(--color-cream-text); }
@media (min-width: 768px) { .handmade-section__heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .handmade-section__heading { font-size: 4.5rem; } }
.newsletter-section__heading { font-size: 2.25rem; color: var(--color-cream-text); }
@media (min-width: 768px) { .newsletter-section__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .newsletter-section__heading { font-size: 3.75rem; } }
.quote-band__text { font-size: 1.875rem; font-style: italic; }
@media (min-width: 768px) { .quote-band__text { font-size: 3rem; } }
@media (min-width: 1024px) { .quote-band__text { font-size: 3.75rem; } }
.hero-title { font-size: 3rem; }
@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: 6rem; } }

em { font-style: italic; color: var(--color-caramel-deep); }
.hero-title em, .handmade-section__heading em, .newsletter-section__heading em, .quote-band__text em { color: var(--color-primary); }
.title-break-desktop { display: none; }
@media (min-width: 768px) { .title-break-desktop { display: inline; } }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.theme-btn-primary, .theme-btn-outline, .theme-btn-dark, .theme-btn-inverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.theme-btn-primary { background-color: var(--color-primary); color: var(--color-espresso-text); border-color: var(--color-primary); }
.theme-btn-primary:hover { background-color: var(--color-cream-bg); color: var(--color-espresso-text); }
.theme-btn-outline { background-color: transparent; color: var(--color-cream-text); border-color: color-mix(in srgb, var(--color-cream-text) 60%, transparent); }
.theme-btn-outline:hover { background-color: var(--color-cream-text); color: var(--color-espresso-text); }
.single-product .theme-btn-outline,
.theme-modal .theme-btn-outline,
#theme-cart-drawer .theme-btn-outline {
  color: var(--color-espresso-text);
  border-color: var(--color-espresso-text);
}
.single-product .theme-btn-outline:hover,
.theme-modal .theme-btn-outline:hover,
#theme-cart-drawer .theme-btn-outline:hover {
  background-color: var(--color-espresso-text);
  color: var(--color-cream-text);
}
.theme-btn-dark { background-color: var(--color-dark-bg); color: var(--color-cream-text); border-color: var(--color-dark-bg); }
.theme-btn-dark:hover { background-color: var(--color-primary); color: var(--color-espresso-text); }
.theme-btn-lg { padding: 0 2.5rem; }
.theme-btn-full { width: 100%; }
.theme-btn-primary:disabled, .theme-btn-dark:disabled { opacity: 0.5; cursor: not-allowed; }

/* Gold shimmer sweep */
.btn-shimmer { position: relative; overflow: hidden; isolation: isolate; }
.btn-shimmer::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none; z-index: 1;
}
.btn-shimmer:hover::before { transform: translateX(120%); }
.btn-shimmer > * { position: relative; z-index: 2; }
.theme-btn-icon, .theme-btn-label { position: relative; z-index: 2; display: inline-flex; align-items: center; }

/* -------------------------------------------------------------------------
   Motion / animation utility layer (ported verbatim)
   ------------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.6s cubic-bezier(0.4,0,0.2,1) forwards; }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.4,0,0.2,1) forwards; }

[data-cs-fade] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--cs-fade-delay, 0ms);
}
[data-cs-fade].is-visible { opacity: 1; transform: translateY(0); }

.reveal-blur { filter: blur(8px); opacity: 0; transition: filter 900ms cubic-bezier(0.22,1,0.36,1), opacity 900ms cubic-bezier(0.22,1,0.36,1); }
.reveal-blur.is-visible { filter: blur(0); opacity: 1; }

.reveal-item { opacity: 0; transform: translateY(16px); transition: opacity 700ms cubic-bezier(0.22,1,0.36,1), transform 700ms cubic-bezier(0.22,1,0.36,1); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

/* Customizer preview fallback (Section 2.1.5) — never hide content in editor */
body.is-customizer [data-cs-fade],
body.is-customizer .reveal-blur,
body.is-customizer .reveal-item {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

@keyframes mia-flutter { 0%, 100% { transform: rotateY(0deg); } 50% { transform: rotateY(65deg); } }
@keyframes mia-flutter-right { 0%, 100% { transform: rotateY(0deg); } 50% { transform: rotateY(-65deg); } }
@keyframes mia-drift {
  0% { transform: translate3d(0,0,0); }
  25% { transform: translate3d(20px,-18px,0); }
  50% { transform: translate3d(-12px,-30px,0); }
  75% { transform: translate3d(-24px,-12px,0); }
  100% { transform: translate3d(0,0,0); }
}
.mia-wing-l { transform-origin: 100% 50%; animation: mia-flutter 2.4s ease-in-out infinite; will-change: transform; }
.mia-wing-r { transform-origin: 0% 50%; animation: mia-flutter-right 2.4s ease-in-out infinite; will-change: transform; }
.mia-drift { position: absolute; pointer-events: none; user-select: none; animation: mia-drift 12s ease-in-out infinite; will-change: transform; }

@keyframes sparkle-pop { 0%, 100% { opacity: 0.25; transform: scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(90deg); } }
.sparkle-accent { display: inline-block; animation: sparkle-pop 2.4s ease-in-out infinite; will-change: transform, opacity; }

@keyframes preview-fade-in { 0% { opacity: 0; transform: translateY(4px); filter: blur(3px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }
.preview-fade { animation: preview-fade-in 550ms cubic-bezier(0.22,1,0.36,1); }

@keyframes mia-ken { 0% { transform: scale(1) translate3d(0,0,0); } 50% { transform: scale(1.06) translate3d(-1%,-1%,0); } 100% { transform: scale(1) translate3d(0,0,0); } }
.mia-ken { animation: mia-ken 24s ease-in-out infinite; will-change: transform; }

@keyframes mia-gold-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.mia-gold-gradient {
  background: linear-gradient(135deg, #C9A24B, #B8935A, #E8C578, #B8935A, #C9A24B);
  background-size: 300% 300%;
  animation: mia-gold-flow 9s ease-in-out infinite;
}

.pill-shimmer { position: relative; overflow: hidden; isolation: isolate; }
.pill-shimmer::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(201,162,75,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 800ms cubic-bezier(0.22,1,0.36,1);
  pointer-events: none; z-index: 1; border-radius: inherit;
}
.pill-shimmer:hover::before { transform: translateX(120%); }
.pill-shimmer > * { position: relative; z-index: 2; }

.pill-selected { background: transparent; border: 1.5px solid var(--color-primary) !important; color: var(--color-espresso-text); }
.swatch-selected { background: transparent !important; border: 1.5px solid var(--color-primary) !important; }

.cs-card-hover-aggressive { position: relative; z-index: 1; transition: transform 500ms cubic-bezier(0.22,1,0.36,1), box-shadow 500ms cubic-bezier(0.22,1,0.36,1), border-color 300ms ease-out; will-change: transform; }
.cs-card-hover-aggressive:hover { z-index: 10; transform: translateY(-8px); box-shadow: 0 30px 60px rgba(53,30,11,0.16), 0 0 0 1px color-mix(in srgb, var(--color-primary) 50%, transparent); }

@media (prefers-reduced-motion: reduce) {
  [data-cs-fade], .reveal-blur, .reveal-item { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .mia-wing-l, .mia-wing-r, .mia-drift, .sparkle-accent, .preview-fade, .mia-ken, .mia-gold-gradient, .btn-shimmer::before, .pill-shimmer::before { animation: none !important; }
  .cs-card-hover-aggressive, .cs-card-hover-aggressive:hover { transition: none !important; transform: none !important; }
  .site-header__mobile-menu, .theme-mobile-toggle > span, .theme-nav-list--mobile li { transition: none !important; }
}
@media (max-width: 767px) { .mia-drift { animation-duration: 8s; } }

/* -------------------------------------------------------------------------
   Announcement bar
   ------------------------------------------------------------------------- */
.theme-announcement-bar { position: relative; background-color: var(--color-dark-bg); border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent); }
.theme-announcement-bar__inner { padding: 0.5rem 0; text-align: center; }
.theme-announcement-bar__text { color: var(--color-champagne-text); font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; margin: 0; }
@media (min-width: 768px) { .theme-announcement-bar__text { font-size: 13px; } }
.theme-announcement-bar__dismiss { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); padding: 0.25rem; color: color-mix(in srgb, var(--color-champagne-text) 70%, transparent); transition: color 0.2s ease; }
.theme-announcement-bar__dismiss:hover { color: var(--color-primary); }
.theme-announcement-bar.is-dismissed { display: none; }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; left: 0; right: 0; z-index: 50; width: 100%; background-color: var(--color-dark-bg); border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent); isolation: isolate; }
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 6rem; gap: 1rem; }
@media (min-width: 768px) { .site-header__nav { height: 7rem; } }
.site-header__brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; cursor: pointer; padding: 0.75rem 0; }
.site-logo-img { height: calc(var(--logo-height) * 0.8) !important; width: auto !important; display: block; transition: transform 0.5s ease; }
@media (min-width: 768px) { .site-logo-img { height: var(--logo-height) !important; } }
.site-logo-text { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-champagne-text); line-height: var(--logo-height); display: block; }
.site-header__brand:hover .site-logo-img { transform: scale(1.03); }
.site-header__brand-name { font-family: var(--font-display); color: var(--color-champagne-text); font-size: 1.25rem; }

.site-header__links { display: none; align-items: center; gap: 1.5rem; margin-left: auto; }
@media (min-width: 1024px) { .site-header__links { display: flex; } }
.theme-nav-list { display: flex; align-items: center; gap: 1.5rem; }
.theme-nav-list a { font-family: var(--font-body); font-size: 14px; color: var(--color-champagne-text); letter-spacing: 0.02em; transition: color 0.3s ease; cursor: pointer; }
.theme-nav-list a:hover { color: var(--color-primary); }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-cart-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-primary) 60%, transparent);
  color: var(--color-champagne-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.theme-cart-toggle:hover { background-color: var(--color-primary); color: var(--color-espresso-text); }
.theme-cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 50%; background-color: var(--color-primary); color: var(--color-espresso-text);
  font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.theme-cart-count:empty { display: none; }

.theme-mobile-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0.5rem; color: var(--color-champagne-text); }
.theme-mobile-toggle > span { position: absolute; display: inline-flex; transition: opacity 280ms ease, transform 450ms cubic-bezier(0.22, 1, 0.36, 1); }
.theme-mobile-toggle__icon-open { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-mobile-toggle__icon-close { opacity: 0; transform: rotate(-90deg) scale(0.65); }
.theme-mobile-toggle.is-open .theme-mobile-toggle__icon-open { opacity: 0; transform: rotate(90deg) scale(0.65); }
.theme-mobile-toggle.is-open .theme-mobile-toggle__icon-close { opacity: 1; transform: rotate(0deg) scale(1); }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }

.site-header__mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  border-top: 1px solid transparent;
  transition:
    grid-template-rows 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms ease,
    visibility 0s linear 500ms,
    border-color 300ms ease;
}
.site-header__mobile-menu-inner { min-height: 0; overflow: hidden; }
.site-header__mobile-menu.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  border-color: color-mix(in srgb, var(--color-primary) 15%, transparent);
  transition-delay: 0s;
}
.theme-nav-list--mobile { flex-direction: column; align-items: stretch; gap: 0.25rem; }
.theme-nav-list--mobile { padding: 1rem 0; }
.theme-nav-list--mobile li {
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity 300ms ease, transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header__mobile-menu.is-open .theme-nav-list--mobile li {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--menu-item-index, 0) * 45ms + 80ms);
}
.theme-nav-list--mobile li:nth-child(1) { --menu-item-index: 0; }
.theme-nav-list--mobile li:nth-child(2) { --menu-item-index: 1; }
.theme-nav-list--mobile li:nth-child(3) { --menu-item-index: 2; }
.theme-nav-list--mobile li:nth-child(4) { --menu-item-index: 3; }
.theme-nav-list--mobile li:nth-child(5) { --menu-item-index: 4; }
.theme-nav-list--mobile li:nth-child(6) { --menu-item-index: 5; }
.theme-nav-list--mobile li:nth-child(7) { --menu-item-index: 6; }
.theme-nav-list--mobile a { display: block; padding: 0.75rem 0.5rem; border-radius: var(--radius-md); font-size: 15px; transition: color 300ms ease, background-color 300ms ease, padding-left 300ms ease; }
.theme-nav-list--mobile a:hover { background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.theme-nav-list--mobile a:hover { padding-left: 0.9rem; }
@media (min-width: 1024px) { .site-header__mobile-menu { display: none !important; } }

/* -------------------------------------------------------------------------
   Sections generic
   ------------------------------------------------------------------------- */
.theme-section { position: relative; padding: 5rem 0; }
@media (min-width: 1024px) { .theme-section { padding: 7rem 0; } }
.theme-section--cream { background-color: var(--color-cream-bg); color: var(--color-espresso-text); }
.theme-section--ivory { background-color: var(--color-ivory-bg); color: var(--color-espresso-text); }
.theme-section-header { text-align: center; max-width: 48rem; margin: 0 auto 3.5rem; }
.theme-section-subtitle { font-family: var(--font-body); color: var(--color-muted-text); font-size: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .theme-section-subtitle { font-size: 1.125rem; } }

.mia-butterfly-field { pointer-events: none; position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.hero-section, .handmade-section, .newsletter-section { overflow: hidden; }
.hero-section, .quote-band, .theme-section { position: relative; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: calc(100vh - 7rem);
  display: flex; align-items: center; justify-content: center;
  background-color: var(--color-espresso-text);
}
.hero-section__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; background-color: var(--color-espresso-text); }
.hero-section__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-section__gradient { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%); }
.hero-section__content { position: relative; z-index: 10; padding: 4rem 0 6rem; text-align: center; }
@media (min-width: 1024px) { .hero-section__content { padding: 6rem 0; } }
.hero-section__inner { max-width: 56rem; margin: 0 auto; }
.hero-title { font-family: var(--font-hero); font-weight: 600; letter-spacing: -0.02em; color: var(--color-cream-text); line-height: 1.02; margin-top: 1.5rem; }
.hero-subtitle { font-family: var(--font-body); color: color-mix(in srgb, var(--color-cream-text) 88%, transparent); font-size: 1rem; margin-top: 2rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.125rem; } }
@media (min-width: 1024px) { .hero-subtitle { font-size: 1.25rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }

/* -------------------------------------------------------------------------
   Product grid & cards
   ------------------------------------------------------------------------- */
.theme-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-product-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) { .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.related-products-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) { .related-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

.theme-product-card-wrap.theme-product-card {
  display: flex; flex-direction: column; height: 100%;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 4/5; width: 100%; overflow: hidden; background-color: var(--color-border); }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.06); }
.theme-product-card__image { transition: transform 900ms ease-out; }
.theme-product-card__image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-espresso-text) 25%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.5s ease;
}
.theme-product-card:hover .theme-product-card__image-overlay { opacity: 1; }
.theme-product-card__badge {
  position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3;
  background-color: var(--color-dark-bg); color: var(--color-cream-text);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  padding: 0.35rem 0.75rem; border-radius: 999px;
}
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; min-width: 0; }
.theme-product-card__cat { font-family: var(--font-label); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-caramel-deep); }
.theme-product-card__title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.3; color: var(--color-espresso-text); }
.theme-product-card__desc { font-size: 14px; color: var(--color-muted-text); margin-top: 0.25rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); min-width: 0; }
.theme-product-card__price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--color-espresso-text); }
.theme-product-card__price .woocommerce-Price-amount { font-family: var(--font-display); }
.theme-product-card__view { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-label); font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-caramel-deep); white-space: nowrap; flex-shrink: 0; transition: color 0.3s ease; }
.theme-product-card:hover .theme-product-card__view { color: var(--color-primary); }
.theme-product-card__view-icon { transition: transform 0.5s ease; }
.theme-product-card:hover .theme-product-card__view-icon { transform: translateX(3px); }

/* Mobile: compact 2-column collection cards */
@media (max-width: 767px) {
	.theme-product-grid:not(.shop-product-grid):not(.related-products-grid) {
		align-items: start;
	}
	.theme-product-grid:not(.shop-product-grid):not(.related-products-grid) .theme-product-card__info {
		padding: 0.75rem;
		gap: 0.25rem;
	}
	.theme-product-grid:not(.shop-product-grid):not(.related-products-grid) .theme-product-card__cat {
		font-size: 10px;
		letter-spacing: 0.14em;
		line-height: 1.2;
	}
	.theme-product-grid:not(.shop-product-grid):not(.related-products-grid) .theme-product-card__title {
		font-size: 1rem;
		line-height: 1.25;
	}
	.theme-product-grid:not(.shop-product-grid):not(.related-products-grid) .theme-product-card__desc {
		font-size: 12px;
		line-height: 1.35;
		margin-top: 0;
		flex: 0 1 auto;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
	.theme-product-grid:not(.shop-product-grid):not(.related-products-grid) .theme-product-card__footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.375rem;
		width: 100%;
		margin-top: 0.5rem;
		padding-top: 0.5rem;
	}
	.theme-product-grid:not(.shop-product-grid):not(.related-products-grid) .theme-product-card__price {
		font-size: 1.125rem;
		line-height: 1.2;
	}
	.theme-product-grid:not(.shop-product-grid):not(.related-products-grid) .theme-product-card__view {
		font-size: 10px;
		letter-spacing: 0.14em;
	}
}

/* -------------------------------------------------------------------------
   Handmade band
   ------------------------------------------------------------------------- */
.handmade-section { position: relative; padding: 6rem 0; }
@media (min-width: 1024px) { .handmade-section { padding: 8rem 0; } }
.handmade-section__bg { position: absolute; inset: 0; overflow: hidden; }
.handmade-section__image { }
.handmade-section__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(53,30,11,0.72) 0%, rgba(53,30,11,0.45) 60%, rgba(53,30,11,0.15) 100%); }
.handmade-section__content { position: relative; z-index: 10; }
.handmade-section__inner { max-width: 42rem; }
.handmade-section__text { font-family: var(--font-body); color: color-mix(in srgb, var(--color-cream-text) 85%, transparent); font-size: 1rem; margin-top: 1.5rem; max-width: 38rem; }
@media (min-width: 768px) { .handmade-section__text { font-size: 1.125rem; } }
.handmade-section .btn-shimmer { margin-top: 2rem; }

/* -------------------------------------------------------------------------
   Semi-fine
   ------------------------------------------------------------------------- */
.semifine-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .semifine-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.semifine-section__text { font-family: var(--font-body); color: color-mix(in srgb, var(--color-espresso-text) 85%, transparent); font-size: 1rem; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 768px) { .semifine-section__text { font-size: 1.125rem; } }
.semifine-section .btn-shimmer { margin-top: 2rem; }
.semifine-section__frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); position: relative; aspect-ratio: 1/1; }
.semifine-section__img { transition: transform 900ms ease-out; }
.semifine-section__frame:hover .semifine-section__img { transform: scale(1.06); }

/* -------------------------------------------------------------------------
   Design Your Own
   ------------------------------------------------------------------------- */
.design-your-own__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .design-your-own__grid { grid-template-columns: 7fr 5fr; gap: 3rem; } }
.design-your-own__preview { position: relative; min-height: 420px; }
@media (min-width: 1024px) { .design-your-own__preview { min-height: 0; } }
.design-your-own__preview-frame {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
  background-color: var(--color-card-bg);
}
.design-your-own__preview-img { transition: transform 900ms ease-out; }
.design-your-own__preview-frame:hover .design-your-own__preview-img { transform: scale(1.06); }
.design-your-own__preview-scrim { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-espresso-text) 50%, transparent), transparent 60%); }
.design-your-own__preview-copy { position: absolute; inset-inline: 0; bottom: 0; padding: 1.5rem; }
@media (min-width: 1024px) { .design-your-own__preview-copy { padding: 2rem; } }
.design-your-own__preview-label { font-family: var(--font-label); font-size: 11px; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.22em; display: inline-flex; align-items: center; gap: 0.5rem; }
.design-your-own__preview-text { font-family: var(--font-display); color: var(--color-cream-text); font-size: 1.5rem; line-height: 2rem; margin-top: 0.25rem; }
@media (min-width: 768px) { .design-your-own__preview-text { font-size: 1.875rem; line-height: 2.25rem; } }
.design-your-own__preview-text span,
.design-your-own__preview-text em {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  line-height: inherit;
}
.design-your-own__controls { display: flex; flex-direction: column; gap: 1.5rem; }
.theme-selector__label { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-caramel-deep); margin-bottom: 0.75rem; }
.theme-selector__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-pill {
  padding: 0.625rem 1rem; border-radius: 999px; font-size: 13px; font-family: var(--font-body);
  border: 1px solid var(--color-border); background-color: var(--color-card-bg); color: var(--color-espresso-text);
  transition: all 0.5s ease;
}
.theme-pill:hover { border-color: var(--color-primary); color: var(--color-caramel-deep); }
.theme-finish-swatches { display: flex; gap: 0.75rem; }
.theme-finish-swatch { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 1.25rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); background-color: color-mix(in srgb, var(--color-card-bg) 60%, transparent); transition: all 0.5s ease; }
.theme-finish-swatch:hover { border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); }
.theme-finish-swatch__dot { width: 2.5rem; height: 2.5rem; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary) 30%, transparent); transition: all 0.5s ease; }
.theme-finish-swatch__dot.is-active { box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-primary) 70%, transparent); transform: scale(1.1); }
.theme-finish-swatch__label { font-size: 12px; font-family: var(--font-body); color: var(--color-espresso-text); text-align: center; }

/* -------------------------------------------------------------------------
   Why Mia
   ------------------------------------------------------------------------- */
.whymia-section { overflow: hidden; }
.whymia-section__bg { position: absolute; inset: 0; z-index: -1; }
.whymia-section__scrim { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-cream-bg) 80%, transparent); }
.whymia-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (min-width: 640px) { .whymia-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .whymia-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.whymia-card {
  background-color: color-mix(in srgb, var(--color-ivory-bg) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  border-radius: var(--radius-md); padding: 1.75rem;
  display: flex; flex-direction: column; height: 100%;
  transition: all 0.5s ease;
}
.whymia-card:hover { transform: translateY(-1rem); box-shadow: 0 24px 60px rgba(201,162,75,0.28); border-color: var(--color-primary); }
.whymia-card__icon {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--color-card-bg); color: var(--color-espresso-text);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  margin-bottom: 1.25rem; transition: all 0.5s ease;
}
.whymia-card:hover .whymia-card__icon { transform: rotate(6deg) scale(1.1); }
.whymia-card__title { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.5rem; }
.whymia-card__body { font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--color-espresso-text) 80%, transparent); flex: 1; }

/* -------------------------------------------------------------------------
   Quote band
   ------------------------------------------------------------------------- */
.quote-band { padding: 4rem 0 5rem; overflow: hidden; }
@media (min-width: 1024px) { .quote-band { padding: 5rem 0; } }
.quote-band__inner { text-align: center; max-width: 56rem; margin: 0 auto; }
.quote-band__icon { display: inline-flex; margin-bottom: 1.5rem; color: var(--color-espresso-text); }
.quote-band__text { color: var(--color-espresso-text); }
.quote-band__divider { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 2rem 0; color: var(--color-espresso-text); }
.quote-band__divider span { display: block; width: 4rem; height: 1px; background-color: currentColor; opacity: 0.4; }
.quote-band__author { color: color-mix(in srgb, var(--color-espresso-text) 75%, transparent); font-size: 1rem; }
@media (min-width: 768px) { .quote-band__author { font-size: 1.125rem; } }

/* -------------------------------------------------------------------------
   Shop
   ------------------------------------------------------------------------- */
.shop-filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.shop-filter-pill {
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  padding: 0.625rem 1.5rem; border-radius: 999px; border: 1px solid var(--color-border);
  color: var(--color-espresso-text); background-color: var(--color-card-bg);
  letter-spacing: 0.02em; transition: all 0.5s ease;
}
.shop-filter-pill.is-active { background-color: var(--color-dark-bg); color: var(--color-cream-text); border-color: var(--color-dark-bg); }
.shop-filter-pill:not(.is-active):hover { border-color: var(--color-primary); color: var(--color-caramel-deep); }
.shop-empty-message { text-align: center; color: var(--color-muted-text); padding: 2rem 0; }
.shop-show-more-wrap { display: flex; justify-content: center; margin-top: 2.5rem; }
.shop-show-more { min-width: 12rem; }

/* -------------------------------------------------------------------------
   About Joice
   ------------------------------------------------------------------------- */
.about-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.about-section__media { position: relative; }
.about-section__media-inner { position: relative; width: 100%; max-width: 28rem; margin: 0 auto; }
@media (min-width: 1024px) { .about-section__media-inner { margin: 0; } }
.about-section__frame { border-radius: 28px; border: 1px solid color-mix(in srgb, var(--color-primary) 50%, transparent); padding: 6px; background-color: var(--color-ivory-bg); }
.about-section__frame-inner { border-radius: 22px; overflow: hidden; }
.about-section__img { width: 100%; height: auto; transition: transform 900ms ease-out; }
.about-section__media:hover .about-section__img { transform: scale(1.04); }
.about-section__badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background-color: var(--color-primary); color: var(--color-espresso-text);
  border-radius: 999px; padding: 0.75rem 1.25rem; box-shadow: var(--shadow-soft);
  border: 1px solid color-mix(in srgb, var(--color-primary) 60%, transparent);
}
@media (min-width: 1024px) { .about-section__badge { bottom: 1.5rem; right: -1rem; } }
.about-section__badge p { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin: 0; line-height: 1; }
.about-section__text { font-family: var(--font-body); color: color-mix(in srgb, var(--color-espresso-text) 85%, transparent); font-size: 1rem; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 768px) { .about-section__text { font-size: 1.125rem; } }
.about-section__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.about-feature { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; background-color: var(--color-ivory-bg); border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); border-radius: var(--radius-md); transition: all 0.5s ease; min-width: 0; }
.about-feature:hover { transform: translateY(-0.5rem); box-shadow: 0 16px 40px rgba(201,162,75,0.22); border-color: var(--color-primary); }
.about-feature__icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background-color: color-mix(in srgb, var(--color-primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); display: inline-flex; align-items: center; justify-content: center; color: var(--color-caramel-deep); flex-shrink: 0; transition: all 0.5s ease; }
.about-feature:hover .about-feature__icon { transform: rotate(6deg) scale(1.1); }
.about-feature__label { font-family: var(--font-display); font-size: 13px; color: var(--color-espresso-text); margin: 0; }
.about-feature__desc { font-family: var(--font-body); font-size: 12px; color: color-mix(in srgb, var(--color-espresso-text) 70%, transparent); margin: 0.15rem 0 0; line-height: 1.4; }
.about-section__cta { margin-top: 2rem; }

@media (max-width: 767px) {
	.about-section__features {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		margin-top: 1.5rem;
	}
	.about-feature {
		gap: 0.875rem;
		padding: 0.875rem 1rem;
	}
	.about-feature:hover {
		transform: none;
		box-shadow: none;
	}
	.about-feature__icon {
		width: 2.25rem;
		height: 2.25rem;
	}
	.about-feature > div {
		min-width: 0;
		flex: 1;
	}
	.about-feature__label {
		font-size: 14px;
		line-height: 1.3;
	}
	.about-feature__desc {
		font-size: 13px;
		line-height: 1.45;
		margin-top: 0.25rem;
	}
}

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 7fr 5fr; gap: 3rem; } }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background-color: var(--color-ivory-bg); border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.5s ease; }
.faq-item:hover { border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); }
.faq-item__question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.25rem 1.5rem; }
.faq-item__question span { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-espresso-text); }
@media (min-width: 768px) { .faq-item__question span { font-size: 1.5rem; } }
.faq-item__chevron { flex-shrink: 0; color: var(--color-primary); transition: transform 0.5s ease; }
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.is-open .faq-item__answer { max-height: 60rem; }
.faq-item__answer-inner { padding: 0 1.5rem 1.5rem; margin-top: -0.25rem; font-size: 15px; color: var(--color-muted-text); line-height: 1.7; }
.faq-media { position: relative; min-height: 420px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); }
.faq-media img { transition: transform 900ms ease-out; }
.faq-media:hover img { transform: scale(1.06); }

/* -------------------------------------------------------------------------
   Newsletter + contact band
   ------------------------------------------------------------------------- */
.newsletter-section { overflow: hidden; }
.newsletter-section__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.newsletter-section__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(43,38,34,0.75) 0%, rgba(43,38,34,0.55) 100%); }
.newsletter-section__grid { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: stretch; }
@media (min-width: 1024px) { .newsletter-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.newsletter-section__copy { display: flex; flex-direction: column; justify-content: center; }
.newsletter-section__text { font-family: var(--font-body); color: color-mix(in srgb, var(--color-cream-text) 80%, transparent); font-size: 1rem; max-width: 32rem; margin: 1rem 0 1.5rem; }
@media (min-width: 768px) { .newsletter-section__text { font-size: 1.125rem; } }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 32rem; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-form__input { flex: 1; padding: 0.75rem 1rem; background-color: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 1rem; color: var(--color-espresso-text); }
.newsletter-form__input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 40%, transparent); }
.newsletter-form__submit { font-size: 12px; letter-spacing: 0.15em; }
.newsletter-section__card { background-color: var(--color-card-bg); border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .newsletter-section__card { padding: 2.5rem; } }
.newsletter-section__card-title { font-size: 1.875rem; margin: 1rem 0 0.75rem; }
@media (min-width: 768px) { .newsletter-section__card-title { font-size: 2.25rem; } }
.newsletter-section__card-text { font-size: 15px; color: var(--color-muted-text); margin-bottom: 1.5rem; }
.newsletter-section__card-email { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-caramel-deep); font-size: 15px; word-break: break-all; margin-bottom: 1.5rem; transition: color 0.3s ease; }
.newsletter-section__card-email:hover { color: var(--color-primary); }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background-color: var(--color-dark-bg); border-top: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent); }
.site-footer__inner { position: relative; z-index: 10; width: 100%; max-width: 100%; padding: 4rem 1.5rem 5rem; }
@media (min-width: 1024px) { .site-footer__inner { padding: 5rem 2rem; } }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem 4rem; } }
@media (min-width: 1024px) { .site-footer__grid { gap: 64px; } }
.site-footer__col { min-width: 0; max-width: 100%; }
.site-footer__col--brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .site-footer__col--brand { grid-column: span 5; } }
.site-footer__col--nav { grid-column: 1 / -1; }
@media (min-width: 768px) { .site-footer__col--nav { grid-column: span 3; } }
@media (min-width: 1024px) { .site-footer__col--nav { min-height: 253px; } }
.site-footer__col--contact { grid-column: 1 / -1; }
@media (min-width: 768px) { .site-footer__col--contact { grid-column: span 4; } }
.site-footer__brand { display: inline-flex; }
.site-footer__logo { height: var(--logo-height) !important; }
@media (min-width: 768px) { .site-footer__logo { height: calc(var(--logo-height) * 1.2) !important; } }
.site-footer__tagline { color: var(--color-dark-body); font-size: 15px; width: 100%; max-width: 26rem; margin-top: 1.5rem; line-height: 1.7; overflow-wrap: break-word; }
.site-footer__col-title { color: var(--color-primary); margin-bottom: 1.25rem; font-family: var(--font-label); font-size: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.22em; }
.site-footer .theme-nav-list,
.theme-nav-list--footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.site-footer .theme-nav-list li,
.theme-nav-list--footer li { width: 100%; min-height: 1.25rem; }
.site-footer .theme-nav-list a,
.theme-nav-list--footer a { display: block; color: color-mix(in srgb, var(--color-champagne-text) 80%, transparent); font-size: 14px; line-height: 1.25rem; text-align: left; }
.site-footer__contact-list { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; max-width: 100%; }
.site-footer__contact-link { display: inline-flex; align-items: center; gap: 0.5rem; color: color-mix(in srgb, var(--color-champagne-text) 80%, transparent); font-size: 14px; line-height: 1.25rem; word-break: break-all; transition: color 0.3s ease; max-width: 100%; }
.site-footer__contact-link:hover { color: var(--color-primary); }
.site-footer__contact-note { color: color-mix(in srgb, var(--color-champagne-text) 70%, transparent); font-size: 14px; line-height: 1.25rem; max-width: 100%; overflow-wrap: break-word; }
.site-footer__bottom { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--color-primary) 15%, transparent); display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; justify-content: space-between; }
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; align-items: center; } }
.site-footer__copyright { color: var(--color-dark-body); font-size: 14px; line-height: 1.7; margin: 0; }
.site-footer__totop { display: inline-flex; align-items: center; gap: 0.4rem; color: color-mix(in srgb, var(--color-champagne-text) 80%, transparent); font-size: 14px; line-height: 1.25rem; transition: color 0.3s ease; }
.site-footer__totop:hover { color: var(--color-primary); }

.theme-back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background-color: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (min-width: 768px) { .theme-back-to-top { width: 3rem; height: 3rem; } }
.theme-back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.theme-back-to-top:hover { transform: scale(1.1); }

/* =========================================================================
   Single product page
   ========================================================================= */
.single-product-main { padding: 2.5rem 0 6rem; }
@media (min-width: 1024px) { .single-product-main { padding: 3.5rem 0 6rem; } }
.single-product-breadcrumb { padding: 1.5rem 0; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-muted-text); }
.single-product-breadcrumb a { transition: color 0.3s ease; }
.single-product-breadcrumb a:hover { color: var(--color-espresso-text); }
.single-product-breadcrumb__sep { margin: 0 0.5rem; opacity: 0.5; }
.single-product-breadcrumb__current { color: var(--color-espresso-text); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-top: 1rem; align-items: flex-start; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-gallery__main { position: relative; aspect-ratio: 4/5; background-color: var(--color-border); overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb { position: relative; width: 4.5rem; height: 5.625rem; border-radius: var(--radius-md); overflow: hidden; border: 2px solid transparent; opacity: 0.7; transition: all 0.3s ease; flex-shrink: 0; }
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; border-color: var(--color-primary); }

.theme-product-info { position: static; }
@media (min-width: 1024px) { .theme-product-info { position: sticky; top: 7rem; } }
.single-product__cat { font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-caramel-deep); }
.product-title { font-family: var(--font-display); font-weight: 500; font-size: 2.25rem; line-height: 1.05; margin-top: 0.75rem; margin-bottom: 1.25rem; color: var(--color-espresso-text); }
@media (min-width: 768px) { .product-title { font-size: 3rem; } }
@media (min-width: 1024px) { .product-title { font-size: 3.5rem; } }
.single-product__price { font-family: var(--font-display); font-size: 1.875rem; font-weight: 500; color: var(--color-espresso-text); margin-bottom: 1.5rem; }
.single-product__price .woocommerce-Price-amount { font-family: var(--font-display); }
.single-product__stock.is-out-of-stock { display: inline-block; margin-bottom: 1rem; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #a04b3a; font-weight: 600; }
.single-product__description { color: var(--color-muted-text); line-height: 1.7; margin-bottom: 2rem; font-size: 1rem; overflow-wrap: break-word; word-break: break-word; }

.theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-md); background-color: var(--color-card-bg); }
.theme-qty-minus, .theme-qty-plus { padding: 0 0.9rem; height: 100%; min-height: var(--btn-height); display: inline-flex; align-items: center; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-border); }
.theme-qty-input { width: 3.5rem; text-align: center; border: none; background: transparent; font-family: var(--font-body); font-size: 14px; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single-product .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}
.single-product__secondary-actions { margin-bottom: 2rem; }

.single-product__details { border-top: 1px solid var(--color-border); margin-top: 1rem; }
.single-product__details-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.single-product__details-toggle span { font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--color-espresso-text); }
.single-product__details-chevron { transition: transform 0.3s ease; }
.single-product__details-toggle[aria-expanded="false"] .single-product__details-chevron { transform: rotate(180deg); }
.single-product__details-body { padding-bottom: 1.5rem; color: var(--color-muted-text); font-size: 15px; line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }
.single-product__details-toggle[aria-expanded="false"] + .single-product__details-body { display: none; }

/* Variations table layout — stacked label/control */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-family: var(--font-body); font-weight: 600; font-style: normal; }
.single-product .variations tbody td.value { padding-top: 0; }
.single-product .variations { margin-bottom: 1.5rem; }
.theme-attr-select-hidden { display: none !important; }
.theme-variation-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0.5rem 0 1.25rem;
}
.theme-variation-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-width: 3rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--color-card-bg);
  color: var(--color-espresso-text);
  box-shadow: 0 1px 2px rgba(53, 30, 11, 0.04);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: border-color 250ms ease, background-color 250ms ease, color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}
.theme-variation-swatch:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 7px 18px rgba(53, 30, 11, 0.1);
}
.theme-variation-swatch:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.theme-variation-swatch.is-active {
  border-color: var(--color-espresso-text);
  background-color: var(--color-espresso-text);
  color: var(--color-cream-text);
  box-shadow: 0 8px 20px rgba(53, 30, 11, 0.16);
}
.theme-variation-swatch.is-active::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background-color: var(--color-primary);
}
.theme-variation-swatch:disabled,
.theme-variation-swatch.is-disabled {
  cursor: not-allowed;
  opacity: 0.38;
  text-decoration: line-through;
  transform: none;
  box-shadow: none;
}
.theme-variation-swatch__color {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  border: 2px solid var(--color-card-bg);
  border-radius: 50%;
  background-color: var(--swatch-color);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-espresso-text) 22%, transparent);
}
.theme-variation-swatch.is-active .theme-variation-swatch__color {
  border-color: var(--color-cream-text);
}
.theme-variation-swatch__label {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.related-products-section { padding: 5rem 0 0; border-top: 1px solid var(--color-border); margin-top: 4rem; }
.related-products-section__header { text-align: center; margin-bottom: 3rem; }
.related-products-section__title { font-size: 2.25rem; margin-top: 0.75rem; }
@media (min-width: 768px) { .related-products-section__title { font-size: 3rem; } }

/* Add-to-cart button style overrides (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}
.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; }

.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* =========================================================================
   Shop archive
   ========================================================================= */
.shop-archive-main { padding: 3rem 0 6rem; }
.shop-archive-header { text-align: center; margin-bottom: 3rem; }
.shop-archive-header .page-title { font-size: 2.5rem; }
@media (min-width: 768px) { .shop-archive-header .page-title { font-size: 3.5rem; } }
.woocommerce-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.woocommerce-pagination .page-numbers { padding: 0.5rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-espresso-text); }
.woocommerce-pagination .page-numbers.current { background-color: var(--color-dark-bg); color: var(--color-cream-text); border-color: var(--color-dark-bg); }

/* =========================================================================
   Side cart drawer
   ========================================================================= */
#theme-cart-overlay { position: fixed; inset: 0; background-color: color-mix(in srgb, var(--color-espresso-text) 40%, transparent); 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; top: 0; right: 0; height: 100%; width: 100%; max-width: 28rem;
  background-color: var(--color-cream-bg); z-index: 61;
  box-shadow: var(--shadow-elevated);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-size: 1.5rem; }
.theme-cart-drawer__close { padding: 0.25rem; opacity: 0.7; transition: opacity 0.2s ease; }
.theme-cart-drawer__close:hover { opacity: 1; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty-icon { color: var(--color-muted-text); }
.theme-cart-drawer__empty p { color: var(--color-muted-text); margin: 0; }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item__image { width: 5rem; height: 6rem; flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden; background-color: var(--color-border); display: block; }
.theme-cart-item__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name { display: block; font-size: 14px; font-weight: 500; font-family: var(--font-body); color: var(--color-espresso-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s ease; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price { font-size: 14px; font-weight: 600; color: var(--color-caramel-deep); margin: 0.15rem 0 0; }
.theme-cart-item__variation { font-size: 12px; color: var(--color-muted-text); margin-top: 0.25rem; }
.theme-cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item__qty-btn { padding: 0.25rem; border-radius: var(--radius-md); transition: background-color 0.2s ease; }
.theme-cart-item__qty-btn:hover { background-color: var(--color-border); }
.theme-cart-item__qty { font-size: 14px; width: 1.5rem; text-align: center; }
.theme-cart-item__remove { margin-left: auto; font-size: 14px; color: var(--color-muted-text); transition: color 0.2s ease; }
.theme-cart-item__remove:hover { color: var(--color-espresso-text); }
.theme-cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.theme-cart-drawer__subtotal span:first-child { font-family: var(--font-body); font-weight: 500; color: var(--color-espresso-text); }
.theme-cart-drawer__subtotal-value { font-family: var(--font-display); font-size: 1.875rem; font-weight: 500; color: var(--color-espresso-text); }

/* =========================================================================
   Contact modal
   ========================================================================= */
.theme-modal { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.theme-modal.is-open { visibility: visible; pointer-events: auto; }
.theme-modal__overlay { position: absolute; inset: 0; background-color: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.3s ease; }
.theme-modal.is-open .theme-modal__overlay { opacity: 1; }
.theme-modal__panel {
  position: absolute; top: 50%; left: 50%;
  width: min(calc(100% - 2rem), 32rem);
  max-width: 100%;
  overflow: visible;
  background-color: var(--color-cream-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-elevated);
  padding: 2rem;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
}
.theme-modal.is-open .theme-modal__panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.theme-modal__close { position: absolute; top: 1.25rem; right: 1.25rem; padding: 0.25rem; opacity: 0.7; transition: opacity 0.2s ease; }
.theme-modal__close:hover { opacity: 1; }
.theme-modal__title { font-size: 1.875rem; margin-bottom: 0.5rem; }
.theme-modal__description { color: var(--color-muted-text); font-size: 15px; margin-bottom: 1rem; }
.theme-modal__contact-row { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 14px; color: var(--color-muted-text); margin-bottom: 1.5rem; }
.theme-modal__contact-link { display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; overflow-wrap: anywhere; transition: color 0.3s ease; }
.theme-modal__contact-link:hover { color: var(--color-caramel-deep); }
.theme-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
.theme-form-row--split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .theme-form-row--split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-form-field { display: flex; flex-direction: column; min-width: 0; gap: 0.375rem; margin-bottom: 1rem; }
.theme-form-field label { font-size: 14px; font-weight: 500; color: var(--color-espresso-text); }
.theme-form-field input, .theme-form-field textarea, .newsletter-form__input, .theme-form-field select {
  width: 100%; max-width: 100%; min-width: 0;
  padding: 0.625rem 0.75rem; background-color: color-mix(in srgb, var(--color-border) 40%, var(--color-card-bg));
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 1rem; color: var(--color-espresso-text);
}
.theme-modal .theme-form-field textarea { resize: none; }
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent); }
.theme-modal__form-footer { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
.theme-modal__success { text-align: center; padding: 2rem 0; }
.theme-modal__success-icon { width: 3.5rem; height: 3.5rem; background-color: var(--color-primary); color: var(--color-espresso-text); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-modal__success h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-modal__success p { color: var(--color-muted-text); font-size: 14px; }

body.has-contact-modal-open { overflow: hidden; }
body.has-contact-modal-open .site-header {
  background-color: var(--color-dark-bg);
  border-bottom-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
}

/* =========================================================================
   404
   ========================================================================= */
.theme-404 { padding: 5rem 0; }
.theme-404__inner { max-width: 32rem; margin: 0 auto; text-align: center; }
.theme-404__title { font-size: 2.5rem; margin-bottom: 1rem; }
.theme-404__text { color: var(--color-muted-text); margin-bottom: 2rem; }

/* =========================================================================
   Checkout Block override (Section 13)
   ========================================================================= */
body.woocommerce-checkout .site-main { padding-top: 2.5rem; padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .page-title { font-size: 2.5rem; margin-bottom: 2rem; }

body.woocommerce-checkout .wc-block-checkout { display: block; }
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--checkout-gap);
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}
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);
  color: var(--color-espresso-text);
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  background-color: var(--color-card-bg);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 50%, transparent);
}
body.woocommerce-checkout .wc-block-components-text-input input {
  padding: revert;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-espresso-text) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
  border-radius: var(--radius-md);
  font-family: var(--font-body);
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-ivory-bg);
  border-radius: var(--card-radius);
  padding: 2rem;
}
body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-panel {
  font-family: var(--font-body);
}
body.woocommerce-checkout h2,
body.woocommerce-checkout h3 {
  font-family: var(--font-display);
}

/* =========================================================================
   Cart / Account / Thank-you width parity (Section 13.7)
   ========================================================================= */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
  padding-top: 2.5rem; padding-bottom: 4rem;
}
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
  font-size: 2.5rem; margin-bottom: 2rem;
}

/* =========================================================================
   Thank-you page (Section 22.8)
   ========================================================================= */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display); padding: 0 0 1rem 0; font-size: 1.75rem;
}
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
body.theme-thankyou-page .woocommerce-order-overview li { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details {
  display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px; overflow-wrap: break-word;
  background-color: var(--color-ivory-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.25rem; font-style: normal;
}

/* =========================================================================
   Customizer preview stability
   ========================================================================= */
body.is-customizer .shop-empty-message,
body.is-customizer .theme-cart-drawer__empty { display: block; }
