/* =========================================================================
   Cowgirl Baby Boutique — theme stylesheet
   Color tokens are injected as CSS custom properties on :root by PHP
   (see inc/customizer.php) from the Customizer color settings. The hex
   values below are fallbacks matching theme_get_color_defaults().
   ========================================================================= */

:root {
  --background: #f9f6f0;
  --foreground: #402f26;
  --primary: #426180;
  --primary-fg: #fbf8f4;
  --secondary: #eee6dd;
  --muted: #e0d9d1;
  --muted-fg: #6d5e55;
  --border: #dcd4cb;
  --rosa: #c05466;
  --marigold: #ce8327;
  --teal: #406182;
  --butter: #f1e9df;
  --surface-deep: #372820;
  --surface-deep-fg: #f4efe6;

  --font-display: 'Bitter', serif;
  --font-body: 'Nunito Sans', sans-serif;

  --shadow-soft: 0 4px 20px -4px rgba(56, 40, 27, 0.10);
  --shadow-elevated: 0 8px 40px -8px rgba(56, 40, 27, 0.22);
  --ease-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);
  --logo-height: 64px;
  --header-height: 80px;

  --btn-radius: 999px;
  --btn-height: 52px;
  --btn-padding: 0 2.25rem;
  --btn-font-size: 11px;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.28em;
  --btn-text-transform: uppercase;
  --color-button-text: var(--primary-fg);
  --color-primary: var(--primary);
  --color-border: var(--border);
  --color-surface: var(--secondary);
  --card-radius: 0.75rem;
  --section-padding: 2rem;
  --checkout-gap: 2rem;
}

/* -------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
img.cover-img,
.theme-product-card-img,
.theme-product-main-img-el,
.theme-product-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  max-width: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

.theme-section-pad { padding: 4rem 0; }
.theme-section-pad-lg { padding: 4rem 0; }
.theme-section-pad-xl { padding: 6rem 0; }
@media (min-width: 768px) {
  .theme-section-pad { padding: 5rem 0; }
  .theme-section-pad-lg { padding: 6rem 0; }
  .theme-section-pad-xl { padding: 8rem 0; }
}

.theme-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  color: var(--foreground);
}
.theme-eyebrow-teal { color: var(--teal); }
.theme-eyebrow-rosa { color: var(--rosa); }
.theme-eyebrow-marigold { color: var(--marigold); }

.theme-section-heading-center { text-align: center; margin-bottom: 3rem; }

.theme-link-underline { position: relative; display: inline-block; }
.theme-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(--ease-smooth);
}
.theme-link-underline:hover::after { transform: scaleX(1); }

/* Buttons */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1.1rem 2.5rem;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 500;
  transition: background-color 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  border: none; text-transform: none;
}
.theme-btn-hero-primary { background: var(--background); color: var(--foreground); text-transform: uppercase; }
.theme-btn-hero-primary:hover { background: color-mix(in srgb, var(--background) 90%, transparent); }
.theme-btn-primary { background: var(--primary); color: var(--primary-fg); text-transform: none; border-radius: 999px; }
.theme-btn-primary:hover { opacity: 0.9; }
.theme-btn-rosa { background: var(--rosa); color: var(--background); text-transform: uppercase; }
.theme-btn-rosa:hover { background: color-mix(in srgb, var(--rosa) 90%, transparent); }
.theme-btn-foreground { background: var(--foreground); color: var(--background); text-transform: uppercase; }
.theme-btn-foreground:hover { background: color-mix(in srgb, var(--foreground) 90%, transparent); }
.theme-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--foreground); text-transform: none; border-radius: 0.5rem; padding: 0.75rem 1.5rem; }
.theme-btn-outline:hover { background: var(--secondary); }
.theme-btn-block { width: 100%; }

.theme-icon { display: block; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; }
.icon-lg { width: 32px; height: 32px; }
.theme-icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem; position: relative; transition: opacity 0.2s ease; }
.theme-icon-btn:hover { opacity: 0.6; }
.theme-icon-btn-sm { padding: 0.25rem; }

/* -------------------------------------------------------------------
   Scroll reveal animation
   ------------------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
  transition-delay: calc(var(--reveal-order, 0) * 0.1s);
}
.reveal-section.is-inview .reveal-up,
.is-customizer .reveal-up,
.reveal-item.is-visible,
.is-customizer .reveal-item {
  opacity: 1;
  transform: translateY(0);
}
.reveal-item {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.reveal-item.is-visible { transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-item { transition: none; opacity: 1; transform: none; }
}

.theme-scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--primary); transform-origin: left; transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* -------------------------------------------------------------------
   Announcement bar
   ------------------------------------------------------------------- */
.theme-announcement-bar { position: relative; background: var(--foreground); color: var(--background); }
.theme-announcement-inner { padding: 0.5rem 0; text-align: center; }
.theme-announcement-text { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.theme-announcement-close {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  padding: 0.25rem; opacity: 0.7; transition: opacity 0.2s ease;
}
.theme-announcement-close:hover { opacity: 1; }
.theme-announcement-close .theme-icon { width: 14px; height: 14px; }
body.theme-announcement-hidden .theme-announcement-bar { display: none; }

/* -------------------------------------------------------------------
   Header
   ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--background);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled,
.site-header.is-mobile-open {
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(4px);
  border-bottom-color: var(--border);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 80px; position: relative; }
.site-logo-link { display: flex; align-items: center; flex-shrink: 0; position: relative; z-index: 10; }
.site-logo-frame {
  display: block; background: var(--background); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft); border-radius: 2px; padding: 3px;
  transition: transform 0.3s ease;
}
@media (min-width: 768px) { .site-logo-frame { transform: translateY(1rem); } }
.site-logo-link:hover .site-logo-frame { transform: translateY(1.25rem); }
.site-logo-frame-inner { display: block; border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: 2px; padding: 0.375rem 0.75rem; }
@media (min-width: 768px) { .site-logo-frame-inner { padding: 0.5rem 1rem; } }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; object-fit: contain; }
.site-logo-text { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.05em; }

.site-nav-center { display: none; }
@media (min-width: 1024px) {
  .site-nav-center { display: flex; align-items: center; gap: 2rem; position: absolute; left: 50%; transform: translateX(-50%); }
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; }
.theme-nav-link {
  font-size: 12px; font-family: var(--font-display); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; position: relative;
  transition: color 0.3s ease;
}
.theme-nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .site-nav-actions { gap: 0.75rem; } }
.theme-shop-link { display: none; }
@media (min-width: 768px) { .theme-shop-link { display: inline-flex; } }
.theme-cart-btn { position: relative; }
.theme-cart-count {
  position: absolute; top: -2px; right: -2px; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; background: var(--primary); color: var(--primary-fg);
  border-radius: 999px;
}
.theme-cart-count:empty { display: none; }
.theme-mobile-toggle { display: inline-flex; }
@media (min-width: 1024px) { .theme-mobile-toggle { display: none; } }
.icon-menu-close { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .icon-menu-open { display: none; }
.theme-mobile-toggle[aria-expanded="true"] .icon-menu-close { display: block; }

.theme-mobile-menu { display: none; border-top: 1px solid var(--border); padding: 1rem 0; }
.theme-mobile-menu.is-open { display: block; }
.theme-mobile-nav-list { display: flex; flex-direction: column; gap: 1rem; }
.theme-mobile-nav-list a {
  display: block; text-align: left; font-size: 0.875rem; font-family: var(--font-display);
  letter-spacing: 0.18em; text-transform: uppercase; padding: 0.5rem 0;
  transition: color 0.2s ease;
}
.theme-mobile-nav-list a:hover { color: var(--muted-fg); }
@media (min-width: 1024px) { .theme-mobile-menu { display: none !important; } }

/* -------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------- */
.hero-section { background: var(--background); }
.hero-media-wrap { position: relative; width: 100%; height: 78vh; min-height: 560px; overflow: hidden; }
@media (min-width: 768px) { .hero-media-wrap { height: 88vh; min-height: 680px; } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-gradient-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, color-mix(in srgb, var(--foreground) 80%, transparent), color-mix(in srgb, var(--foreground) 45%, transparent), color-mix(in srgb, var(--foreground) 10%, transparent));
}
.hero-gradient-overlay-mobile { position: absolute; inset: 0; background: color-mix(in srgb, var(--foreground) 30%, transparent); }
@media (min-width: 768px) { .hero-gradient-overlay-mobile { background: transparent; } }
.hero-content-row { position: relative; height: 100%; display: flex; align-items: center; }
.hero-content { width: 100%; max-width: 34rem; }
.hero-eyebrow { display: block; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: color-mix(in srgb, var(--background) 85%, transparent); margin-bottom: 1.25rem; }
@media (min-width: 768px) { .hero-eyebrow { font-size: 12px; } }
.hero-headline { font-weight: 400; font-size: 2.75rem; line-height: 1.05; color: var(--background); margin-bottom: 1.5rem; max-width: 32rem; }
@media (min-width: 768px) { .hero-headline { font-size: 3.5rem; } }
@media (min-width: 1280px) { .hero-headline { font-size: 4.5rem; } }
.hero-description { color: color-mix(in srgb, var(--background) 90%, transparent); font-size: 1rem; line-height: 1.7; margin-bottom: 2.5rem; max-width: 26rem; }
@media (min-width: 768px) { .hero-description { font-size: 1.125rem; } }

/* -------------------------------------------------------------------
   Collections
   ------------------------------------------------------------------- */
.section-heading { font-weight: 400; }
.collections-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .collections-heading { font-size: 2.25rem; } }
.collections-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .collections-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; } }
.collection-tile { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; }
.collection-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--foreground) 85%, transparent), color-mix(in srgb, var(--foreground) 40%, transparent), color-mix(in srgb, var(--foreground) 10%, transparent));
  transition: background 0.5s ease;
}
.collection-tile:hover .collection-tile-img { transform: scale(1.05); }
.collection-tile-img { transition: transform 0.7s var(--ease-smooth); }
.collection-tile-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: var(--background); text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
@media (min-width: 768px) { .collection-tile-content { padding: 1.75rem; } }
.collection-tile-tagline { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.5rem; filter: brightness(1.5); }
.collection-tile-tagline-rule { height: 1px; width: 1.5rem; background: currentColor; }
.collection-tile-label { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .collection-tile-label { font-size: 1.875rem; } }
.collection-tile-cta { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }

/* -------------------------------------------------------------------
   Story
   ------------------------------------------------------------------- */
.story-section { position: relative; background: var(--background); overflow: hidden; scroll-margin-top: 6rem; }
.story-bg-img { position: absolute; }
.story-content-wrap { position: relative; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .story-content-wrap { padding: 7rem 3.5rem; } }
@media (min-width: 1024px) { .story-content-wrap { padding: 7rem 5rem; } }
.story-content { max-width: 42rem; margin: 0 auto; text-align: center; }
.story-heading { font-weight: 600; font-size: 1.875rem; line-height: 1.25; margin-bottom: 2rem; }
@media (min-width: 768px) { .story-heading { font-size: 2.25rem; } }
.story-paragraph { color: color-mix(in srgb, var(--foreground) 80%, transparent); line-height: 1.7; margin-bottom: 1.25rem; }
.story-cta { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-family: var(--font-display); font-weight: 500; color: var(--foreground); }

/* -------------------------------------------------------------------
   Shop
   ------------------------------------------------------------------- */
.shop-section { background: var(--background); scroll-margin-top: 6rem; }
.shop-header { text-align: center; margin-bottom: 3rem; }
.shop-heading { font-weight: 400; font-size: 1.875rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .shop-heading { font-size: 3rem; } }
.shop-search-wrap { position: relative; max-width: 28rem; margin: 0 auto 2rem; }
.shop-search-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--muted-fg); }
.shop-search-input {
  width: 100%; padding: 0.5rem 0.5rem 0.5rem 1.75rem; background: transparent;
  border: none; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--foreground);
}
.shop-search-input:focus { outline: none; border-color: var(--foreground); }
.shop-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.shop-category-pill {
  padding: 0.5rem 1.25rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--foreground);
  transition: all 0.3s ease;
}
.shop-category-pill:hover { border-color: var(--rosa); color: var(--rosa); }
.shop-category-pill.is-active { background: var(--rosa); color: var(--background); border-color: var(--rosa); }
.shop-price-filter-toggle-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.shop-price-filter-toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-fg); transition: color 0.3s ease; }
.shop-price-filter-toggle:hover { color: var(--foreground); }
.shop-price-filter-toggle .theme-icon { transition: transform 0.3s ease; }
.shop-price-filter-toggle.is-open .theme-icon { transform: rotate(180deg); }
.shop-price-filter-panel { width: 100%; max-width: 24rem; overflow: hidden; height: 0; opacity: 0; transition: height 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth); }
.shop-price-filter-panel.is-open { height: auto; opacity: 1; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.5rem; }

.price-range-wrapper { position: relative; height: 1.5rem; margin-top: 1rem; }
.range-track-bg, .range-track-fill { position: absolute; height: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; border-radius: 999px; }
.range-track-bg { left: 0; right: 0; background: var(--border); }
.range-track-fill { background: var(--primary); }
.range-input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--background); border: 2px solid var(--primary); cursor: pointer; margin-top: 0; }
.range-input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--background); border: 2px solid var(--primary); cursor: pointer; }
.range-input::-webkit-slider-runnable-track { background: transparent; }
.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

.theme-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; align-items: stretch; }
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.theme-product-card-wrap { display: flex; height: 100%; }
.theme-product-card { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card .theme-quick-add,
.theme-product-card .add_to_cart_button { pointer-events: auto; }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 3/4; background: var(--secondary); overflow: hidden; margin-bottom: 1.25rem; }
.theme-product-card:hover .theme-product-card-img { transform: scale(1.04); }
.theme-product-card-img { transition: transform 0.7s var(--ease-smooth); }
.theme-badge { position: absolute; z-index: 3; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; padding: 0.25rem 0.75rem; border-radius: 999px; }
.theme-badge-soldout { top: 0.75rem; left: 0.75rem; background: var(--foreground); color: var(--background); }
.theme-quick-add {
  position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--background); color: var(--foreground); box-shadow: var(--shadow-soft);
  opacity: 0; transition: opacity 0.3s ease, transform 0.2s ease;
}
@media (max-width: 767px) { .theme-quick-add { opacity: 1; } }
.theme-product-card:hover .theme-quick-add { opacity: 1; }
.theme-quick-add:hover { transform: scale(1.08); }
.theme-quick-add:active { transform: scale(0.92); }
.theme-product-card__info { flex: 1; text-align: center; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-card-title { font-size: 0.875rem; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; line-height: 1.4; transition: color 0.3s ease; }
@media (min-width: 768px) { .theme-product-card-title { font-size: 1rem; } }
.theme-product-card:hover .theme-product-card-title { color: var(--primary); }
.theme-product-card-price { font-size: 1rem; font-family: var(--font-body); }
@media (min-width: 768px) { .theme-product-card-price { font-size: 1.125rem; } }
.theme-product-card-price del { color: var(--muted-fg); margin-right: 0.4rem; }
.theme-product-card-price ins { text-decoration: none; }

.shop-show-more-wrap { text-align: center; margin-top: 3rem; }
.shop-empty-state { text-align: center; padding: 5rem 0; color: var(--muted-fg); }

/* -------------------------------------------------------------------
   Maker
   ------------------------------------------------------------------- */
.maker-section { background: var(--background); scroll-margin-top: 6rem; }
.maker-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .maker-grid { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; } }
.maker-image-wrap { position: relative; min-height: 380px; }
@media (min-width: 768px) { .maker-image-wrap { min-height: 520px; } }
@media (min-width: 1024px) { .maker-image-wrap { min-height: 620px; } }
.maker-content-wrap { display: flex; align-items: center; background: var(--background); padding: 4rem 1.5rem; }
@media (min-width: 768px) { .maker-content-wrap { padding: 6rem 2.5rem; } }
@media (min-width: 1024px) { .maker-content-wrap { padding: 6rem 5rem; } }
.maker-content { width: 100%; max-width: 36rem; }
.maker-heading { font-weight: 400; font-size: 2.25rem; line-height: 1.2; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .maker-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .maker-heading { font-size: 3.75rem; } }
.maker-quote { font-style: italic; font-size: 1.25rem; color: color-mix(in srgb, var(--foreground) 85%, transparent); line-height: 1.4; margin-bottom: 2rem; font-family: var(--font-display); }
@media (min-width: 768px) { .maker-quote { font-size: 1.5rem; } }
.maker-paragraph { color: color-mix(in srgb, var(--foreground) 75%, transparent); line-height: 1.7; margin-bottom: 1.25rem; }

/* -------------------------------------------------------------------
   Services
   ------------------------------------------------------------------- */
.services-section { background: var(--butter); scroll-margin-top: 6rem; }
.services-heading-wrap { padding: 5rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .services-heading-wrap { padding: 7rem 3.5rem; } }
.services-heading { font-weight: 400; font-size: 2.25rem; letter-spacing: -0.02em; line-height: 1.05; }
@media (min-width: 768px) { .services-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .services-heading { font-size: 4.5rem; } }
.service-row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .service-row { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; } }
.service-image-wrap { position: relative; min-height: 360px; }
@media (min-width: 768px) { .service-image-wrap { min-height: 500px; } }
@media (min-width: 1024px) { .service-image-wrap { min-height: 560px; } }
.service-image-wrap.order-1 { order: 1; }
.service-image-wrap.order-2 { order: 2; }
@media (max-width: 767px) { .service-image-wrap.order-1, .service-image-wrap.order-2 { order: 0; } }
.service-numeral { position: absolute; top: 1.25rem; left: 1.25rem; font-family: var(--font-display); font-size: 0.875rem; letter-spacing: 0.3em; padding: 0.25rem 0.5rem; background: color-mix(in srgb, var(--background) 85%, transparent); backdrop-filter: blur(4px); }
.service-content-wrap { display: flex; align-items: center; background: var(--butter); padding: 4rem 1.5rem; }
@media (min-width: 768px) { .service-content-wrap { padding: 6rem 2.5rem; } }
@media (min-width: 1024px) { .service-content-wrap { padding: 6rem 5rem; } }
.service-content-wrap.order-1 { order: 1; }
.service-content-wrap.order-2 { order: 2; }
@media (max-width: 767px) { .service-content-wrap.order-1, .service-content-wrap.order-2 { order: 0; } }
.service-content { width: 100%; max-width: 36rem; }
.service-kicker-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.service-icon-circle { display: flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid; }
.service-kicker { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.accent-rosa { color: var(--rosa); border-color: color-mix(in srgb, var(--rosa) 40%, transparent); }
.accent-marigold { color: var(--marigold); border-color: color-mix(in srgb, var(--marigold) 50%, transparent); }
.accent-teal { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.service-title { font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .service-title { font-size: 3rem; } }
@media (min-width: 1024px) { .service-title { font-size: 3.75rem; } }
.service-description { font-size: 1rem; color: var(--muted-fg); line-height: 1.7; }
@media (min-width: 768px) { .service-description { font-size: 1.125rem; } }

/* -------------------------------------------------------------------
   Occasions
   ------------------------------------------------------------------- */
.occasions-section { background: var(--surface-deep); color: var(--surface-deep-fg); scroll-margin-top: 6rem; }
.occasions-heading-wrap { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.occasions-heading { font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .occasions-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .occasions-heading { font-size: 3.75rem; } }
.occasions-heading-accent { display: block; font-style: italic; color: var(--marigold); }
.occasions-description { color: color-mix(in srgb, var(--surface-deep-fg) 75%, transparent); line-height: 1.7; }
.occasions-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (min-width: 768px) { .occasions-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .occasions-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.occasion-tile { display: block; text-align: left; }
.occasion-image-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: color-mix(in srgb, var(--surface-deep-fg) 5%, transparent); }
.occasion-tile:hover .occasion-img { transform: scale(1.05); }
.occasion-img { transition: transform 0.6s var(--ease-smooth); }
.occasion-label { padding-top: 0.75rem; font-size: 0.875rem; line-height: 1.3; color: var(--surface-deep-fg); }
@media (min-width: 768px) { .occasion-label { font-size: 1rem; } }
.occasions-footer { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; text-align: center; }
.occasions-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid color-mix(in srgb, var(--marigold) 40%, transparent); color: var(--marigold); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; }
.occasions-badge-rule { height: 1px; width: 1rem; background: var(--marigold); }
.occasions-list { color: color-mix(in srgb, var(--surface-deep-fg) 70%, transparent); font-size: 0.875rem; }

/* -------------------------------------------------------------------
   Custom Work
   ------------------------------------------------------------------- */
.custom-section { background: var(--background); scroll-margin-top: 6rem; }
.custom-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .custom-grid { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; } }
.custom-image-wrap { position: relative; min-height: 420px; }
@media (min-width: 768px) { .custom-image-wrap { min-height: 560px; } }
@media (min-width: 1024px) { .custom-image-wrap { min-height: 640px; } }
.custom-image-wrap.order-2 { order: 2; }
@media (max-width: 767px) { .custom-image-wrap.order-2 { order: 0; } }
.custom-inset-img {
  position: absolute; bottom: 1.5rem; left: 1.5rem; width: 7rem; aspect-ratio: 3/4; object-fit: cover;
  box-shadow: var(--shadow-elevated); border: 4px solid var(--background);
}
@media (min-width: 768px) { .custom-inset-img { width: 8rem; } }
@media (min-width: 1024px) { .custom-inset-img { width: 12rem; } }
.custom-content-wrap { display: flex; align-items: center; background: var(--background); padding: 4rem 1.5rem; }
@media (min-width: 768px) { .custom-content-wrap { padding: 6rem 2.5rem; } }
@media (min-width: 1024px) { .custom-content-wrap { padding: 6rem 5rem; } }
.custom-content-wrap.order-1 { order: 1; }
@media (max-width: 767px) { .custom-content-wrap.order-1 { order: 0; } }
.custom-content { width: 100%; max-width: 36rem; }
.custom-heading { font-weight: 400; font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .custom-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .custom-heading { font-size: 3.75rem; } }
.custom-heading-accent { display: block; font-style: italic; color: var(--rosa); }
.custom-paragraph { color: color-mix(in srgb, var(--foreground) 80%, transparent); line-height: 1.7; margin-bottom: 1.5rem; }
.custom-paragraph-italic { font-style: italic; color: color-mix(in srgb, var(--foreground) 70%, transparent); }

/* -------------------------------------------------------------------
   Gallery
   ------------------------------------------------------------------- */
.gallery-section { position: relative; background: var(--background); overflow: hidden; scroll-margin-top: 6rem; }
.gallery-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.gallery-gradient { position: absolute; inset-inline: 0; top: 0; height: 45%; background: linear-gradient(to bottom, color-mix(in srgb, var(--background) 100%, transparent) 0%, color-mix(in srgb, var(--background) 75%, transparent) 45%, transparent 100%); }
.gallery-inner { position: relative; padding: 5rem 0; }
@media (min-width: 768px) { .gallery-inner { padding: 7rem 0; } }
.gallery-heading-wrap { margin-bottom: 2.5rem; }
@media (min-width: 768px) { .gallery-heading-wrap { margin-bottom: 3.5rem; } }
.gallery-heading { font-weight: 400; font-size: 1.875rem; letter-spacing: -0.02em; line-height: 1.05; }
@media (min-width: 768px) { .gallery-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .gallery-heading { font-size: 3.75rem; } }
.gallery-track-wrap { overflow: hidden; }
.gallery-track { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; padding-inline: 1.5rem; scrollbar-width: none; }
@media (min-width: 768px) { .gallery-track { gap: 1.5rem; padding-inline: 3rem; } }
@media (min-width: 1024px) { .gallery-track { padding-inline: 4rem; } }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex-shrink: 0; width: 78%; }
@media (min-width: 640px) { .gallery-item { width: 55%; } }
@media (min-width: 768px) { .gallery-item { width: 40%; } }
@media (min-width: 1024px) { .gallery-item { width: 30%; } }
@media (min-width: 1280px) { .gallery-item { width: 26%; } }
.gallery-item-btn { display: block; width: 100%; position: relative; overflow: hidden; aspect-ratio: 4/5; cursor: zoom-in; }
.gallery-item-btn:hover .gallery-item-img { transform: scale(1.04); }
.gallery-item-img { object-position: top; transition: transform 0.9s var(--ease-smooth); }
.gallery-controls { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.gallery-nav-btn {
  height: 3rem; width: 3rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--foreground) 20%, transparent); color: color-mix(in srgb, var(--foreground) 70%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.gallery-nav-btn:hover { color: var(--primary); border-color: var(--primary); }

/* -------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------- */
.testimonials-section { background: var(--butter); scroll-margin-top: 6rem; }
.testimonials-heading { font-weight: 400; font-size: 1.875rem; line-height: 1.2; }
@media (min-width: 768px) { .testimonials-heading { font-size: 3rem; } }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
.testimonial-card { background: var(--background); padding: 2rem; border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
@media (min-width: 768px) { .testimonial-card { padding: 2.5rem; } }
.testimonial-quote-icon { display: block; margin-bottom: 1.5rem; }
.testimonial-quote { color: color-mix(in srgb, var(--foreground) 85%, transparent); line-height: 1.7; margin-bottom: 2rem; flex-grow: 1; }
.testimonial-footer { padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.testimonial-name { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.25rem; }
.testimonial-location { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-fg); }

/* -------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------- */
.faq-section { background: var(--surface-deep); color: var(--surface-deep-fg); scroll-margin-top: 6rem; }
.faq-heading { font-weight: 400; font-size: 1.875rem; line-height: 1.2; color: var(--surface-deep-fg); }
@media (min-width: 768px) { .faq-heading { font-size: 3rem; } }
.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-item { border-bottom: 1px solid color-mix(in srgb, var(--surface-deep-fg) 15%, transparent); }
.faq-trigger { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; text-align: left; padding: 1.5rem 0; }
.faq-question { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.4; color: var(--surface-deep-fg); transition: color 0.2s ease; }
@media (min-width: 768px) { .faq-question { font-size: 1.25rem; } }
.faq-trigger:hover .faq-question { color: var(--marigold); }
.faq-icon { margin-top: 0.25rem; flex-shrink: 0; color: var(--marigold); position: relative; width: 16px; height: 16px; }
.faq-icon-plus, .faq-icon-minus { position: absolute; inset: 0; transition: opacity 0.2s ease; }
.faq-icon-minus { opacity: 0; }
.faq-trigger[aria-expanded="true"] .faq-icon-plus { opacity: 0; }
.faq-trigger[aria-expanded="true"] .faq-icon-minus { opacity: 1; }
.theme-accordion-panel { overflow: hidden; transition: height 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth); }
.faq-answer { padding-bottom: 1.5rem; padding-right: 2.5rem; font-size: 15px; color: color-mix(in srgb, var(--surface-deep-fg) 75%, transparent); line-height: 1.7; }
.faq-contact-prompt { text-align: center; font-size: 0.875rem; color: color-mix(in srgb, var(--surface-deep-fg) 70%, transparent); margin-top: 2.5rem; }
.faq-contact-prompt .theme-link-underline { color: var(--surface-deep-fg); transition: color 0.2s ease; }
.faq-contact-prompt .theme-link-underline:hover { color: var(--marigold); }

/* -------------------------------------------------------------------
   Contact CTA
   ------------------------------------------------------------------- */
.contact-section { position: relative; background: var(--butter); overflow: hidden; scroll-margin-top: 6rem; }
.contact-bg-img { position: absolute; }
.contact-card {
  position: relative; max-width: 42rem; margin: 0 auto; text-align: center;
  background: color-mix(in srgb, var(--background) 95%, transparent); backdrop-filter: blur(4px);
  box-shadow: var(--shadow-elevated); padding: 3rem 1.5rem; border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
@media (min-width: 768px) { .contact-card { padding: 4rem 3.5rem; } }
.contact-heading { font-weight: 400; font-size: 1.875rem; line-height: 1.3; margin-bottom: 1.5rem; color: var(--foreground); }
@media (min-width: 768px) { .contact-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-heading { font-size: 3.75rem; } }
.contact-description { color: color-mix(in srgb, var(--foreground) 80%, transparent); line-height: 1.7; margin-bottom: 2.5rem; max-width: 26rem; margin-inline: auto; }
.contact-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
@media (min-width: 640px) { .contact-actions { flex-direction: row; } }

/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--butter); }
.theme-footer-inner { padding: 3rem 0 3.5rem; }
.theme-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .theme-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-footer-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }
.theme-footer-col { display: flex; flex-direction: column; gap: 1rem; }
.theme-footer-logo-img { height: 4rem; width: auto; object-fit: contain; }
.theme-footer-tagline { font-size: 13px; color: var(--muted-fg); line-height: 1.6; max-width: 20rem; }
.theme-footer-heading { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--foreground); font-family: var(--font-display); font-weight: 500; }
.theme-footer-list { display: flex; flex-direction: column; gap: 0.75rem; }
.theme-footer-link { font-size: 0.875rem; color: var(--muted-fg); transition: color 0.2s ease; text-align: left; }
.theme-footer-link:hover { color: var(--foreground); }
.theme-footer-link-icon { display: flex; align-items: center; gap: 0.5rem; }
.theme-footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; text-align: center; }
@media (min-width: 640px) { .theme-footer-bottom { flex-direction: row; text-align: left; } }
.theme-footer-quote { font-size: 12px; color: var(--muted-fg); letter-spacing: 0.02em; font-style: italic; font-family: var(--font-display); }
.theme-footer-credit { font-size: 12px; color: var(--muted-fg); letter-spacing: 0.02em; }
.theme-footer-credit a { text-decoration: underline; transition: color 0.2s ease; }
.theme-footer-credit a:hover { color: var(--foreground); }

/* -------------------------------------------------------------------
   Back to top
   ------------------------------------------------------------------- */
.theme-back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; width: 44px; height: 44px; border-radius: 999px;
  background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-elevated);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.theme-back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.theme-back-to-top:hover { transform: translateY(-3px); }
.theme-back-to-top:active { transform: scale(0.92); }

/* -------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------- */
.theme-lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--background) 90%, transparent); backdrop-filter: blur(4px); padding: 1rem;
}
.theme-lightbox.is-open { display: flex; }
@media (min-width: 768px) { .theme-lightbox { padding: 2.5rem; } }
.theme-lightbox-close {
  position: absolute; top: 1rem; right: 1rem; height: 48px; width: 48px; border-radius: 999px;
  background: var(--background); color: var(--foreground); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-elevated); transition: background-color 0.2s ease, color 0.2s ease;
}
@media (min-width: 768px) { .theme-lightbox-close { top: 1.5rem; right: 1.5rem; } }
.theme-lightbox-close:hover { background: var(--primary); color: var(--primary-fg); }
#theme-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: var(--shadow-elevated); }

/* -------------------------------------------------------------------
   Contact Modal
   ------------------------------------------------------------------- */
.theme-modal-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.5); display: none; }
.theme-modal-overlay.is-open { display: block; }
.theme-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%); z-index: 91; width: calc(100% - 2rem);
  max-width: 34rem; max-height: 90vh; overflow-y: auto; background: var(--background); border-radius: 0.75rem;
  box-shadow: var(--shadow-elevated); display: none; opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-modal.is-open { display: block; opacity: 1; transform: translate(-50%, -50%); }
.theme-modal-content { padding: 2rem; }
.theme-modal-close { position: absolute; top: 1rem; right: 1rem; padding: 0.5rem; opacity: 0.6; transition: opacity 0.2s ease; }
.theme-modal-close:hover { opacity: 1; }
.theme-modal-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.theme-modal-description { color: var(--muted-fg); margin-bottom: 1.25rem; line-height: 1.6; }
.theme-modal-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 1.5rem; }
.theme-modal-contact-item { display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s ease; }
.theme-modal-contact-item:hover { color: var(--foreground); }
.theme-contact-form { display: flex; flex-direction: column; gap: 1rem; }
.theme-form-row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-form-row-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.theme-form-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.theme-form-field input, .theme-form-field textarea {
  width: 100%; padding: 0.65rem 0.75rem; background: var(--background); border: 1px solid var(--border);
  border-radius: 0.375rem; font-size: 1rem; color: var(--foreground); transition: box-shadow 0.3s ease;
}
.theme-form-field input:focus, .theme-form-field textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 50%, transparent); }
.theme-form-field textarea { resize: none; }
.theme-form-actions { display: flex; justify-content: flex-end; }
.theme-modal-success { text-align: center; padding: 2rem 0; }
.theme-modal-success-icon {
  width: 3.5rem; height: 3.5rem; background: var(--primary); color: var(--primary-fg); border-radius: 999px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.theme-form-error { color: #b91c1c; font-size: 0.875rem; margin-top: 0.5rem; text-align: center; }

/* -------------------------------------------------------------------
   Side cart drawer
   ------------------------------------------------------------------- */
#theme-cart-overlay { position: fixed; inset: 0; z-index: 95; background: color-mix(in srgb, var(--foreground) 20%, transparent); display: none; }
body.cart-open #theme-cart-overlay { display: block; }
#theme-cart-drawer {
  position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 26rem; background: var(--background);
  z-index: 96; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s var(--ease-smooth);
}
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(--border); }
.theme-cart-drawer-header h2 { font-size: 1.125rem; font-weight: 700; }
.theme-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.theme-cart-empty .theme-icon { color: var(--muted-fg); margin-bottom: 1rem; }
.theme-cart-empty p { color: var(--muted-fg); margin-bottom: 1.5rem; }
.theme-cart-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; background: var(--secondary); overflow: hidden; flex-shrink: 0; }
.theme-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item-body { flex: 1; min-width: 0; }
.theme-cart-item-name { font-size: 0.875rem; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.2s ease; }
.theme-cart-item-name:hover { opacity: 0.7; }
.theme-cart-item-meta { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.125rem; }
.theme-cart-item-price { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.125rem; }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-item-qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-item-remove { margin-left: auto; font-size: 0.875rem; color: var(--muted-fg); transition: color 0.2s ease; }
.theme-cart-item-remove:hover { color: var(--foreground); }
.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-subtotal-row span:last-child { font-weight: 500; }
.theme-cart-shipping-note { font-size: 0.875rem; color: var(--muted-fg); }

/* -------------------------------------------------------------------
   Single product page
   ------------------------------------------------------------------- */
.single-product-main { padding-top: 1.5rem; padding-bottom: 4rem; background: var(--background); }
.theme-breadcrumb { padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-fg); }
.theme-breadcrumb a { transition: color 0.2s ease; }
.theme-breadcrumb a:hover { color: var(--foreground); }
.theme-breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb-current { color: var(--foreground); }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: 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-main-image { position: relative; aspect-ratio: 1/1; background: var(--secondary); overflow: hidden; }
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; max-width: 100%; overflow-x: auto; }
.theme-product-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background: var(--secondary); }
.theme-product-thumb img { opacity: 0.6; transition: opacity 0.2s ease; }
.theme-product-thumb:hover img, .theme-product-thumb.is-active img { opacity: 1; }
.theme-product-thumb::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--foreground); opacity: 0; transition: opacity 0.2s ease; }
.theme-product-thumb.is-active::after { opacity: 1; }

.theme-product-category { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted-fg); }
.theme-product-title { font-weight: 400; font-size: 1.875rem; line-height: 1.1; margin: 0.75rem 0 1.25rem; font-family: var(--font-body); }
@media (min-width: 768px) { .theme-product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .theme-product-title { font-size: 2.75rem; } }
.theme-product-price { font-size: 1.25rem; margin-bottom: 1.5rem; }
.theme-stock-indicator { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.theme-stock-out { color: #b91c1c; }
.theme-product-description { color: var(--muted-fg); line-height: 1.7; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }

.theme-option-group { margin-bottom: 1.5rem; }
.theme-option-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 0.75rem; }
.theme-option-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-option-btn {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; border: 1px solid var(--border); border-radius: 999px; transition: all 0.2s ease;
}
.theme-option-btn:hover { border-color: color-mix(in srgb, var(--foreground) 60%, transparent); }
.theme-option-btn.is-selected { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.theme-option-btn.has-swatch.is-selected { background: color-mix(in srgb, var(--foreground) 5%, transparent); color: var(--foreground); border-color: var(--foreground); }
.theme-swatch-dot { width: 12px; height: 12px; border-radius: 999px; border: 1px solid var(--border); }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.6rem 0.75rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--secondary); }
.theme-qty-input { width: 44px; border: none; background: transparent; text-align: center; padding: 0.6rem 0; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-add-to-cart-area { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.theme-product-accordions { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.theme-accordion { border-bottom: 1px solid var(--border); }
.theme-accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; text-align: left; }
.theme-accordion-trigger span:first-child { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; }
.theme-accordion-chevron { transition: transform 0.2s ease; }
.theme-accordion.is-open .theme-accordion-chevron { transform: rotate(180deg); }
.theme-accordion-panel-inner { padding-bottom: 1.5rem; }
.theme-accordion-panel-inner p { font-size: 15px; color: var(--muted-fg); line-height: 1.7; margin-bottom: 1rem; }
.theme-product-details-list li { font-size: 15px; color: var(--muted-fg); display: flex; align-items: flex-start; margin-bottom: 0.5rem; }
.theme-product-details-list li::before { content: ''; width: 4px; height: 4px; border-radius: 999px; background: var(--foreground); margin: 0.5rem 0.75rem 0 0; flex-shrink: 0; }
.woocommerce-variation-description, .posted_in { overflow-wrap: break-word; word-break: break-word; }

.related-products-section { padding: 5rem 0 0; border-top: 1px solid var(--border); margin-top: 3rem; }
.theme-related-heading { text-align: center; margin-bottom: 3rem; }
.theme-related-eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--muted-fg); margin-bottom: 0.5rem; }
.theme-related-title { font-weight: 400; font-size: 1.875rem; }
@media (min-width: 768px) { .theme-related-title { font-size: 2.25rem; } }

/* 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: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  flex: 1 1 auto;
  min-width: 160px;
}
.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;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
  min-height: unset !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 40px; height: 40px; min-width: unset;
}
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Hide WooCommerce's injected "View cart" link */
.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; }

/* Variable-product variation table (kept for forward compatibility) */
.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; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* Scoped notice hiding (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  max-width: 80rem; margin: 1.5rem auto; padding: 1rem 1.5rem; border-radius: 0.5rem;
  font-family: var(--font-body); list-style: none; background: var(--secondary); color: var(--foreground);
  border-left: 3px solid var(--primary);
}
.woocommerce-error { border-left-color: #b91c1c; }

/* -------------------------------------------------------------------
   Shop archive
   ------------------------------------------------------------------- */
.theme-shop-archive { padding: 2.5rem 0 5rem; }
.theme-shop-archive-title { font-size: 2.25rem; margin-bottom: 2rem; text-align: center; }
.theme-pagination { margin-top: 3rem; text-align: center; }
.theme-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; margin: 0 0.25rem; border: 1px solid var(--border); border-radius: 999px; }
.theme-pagination .page-numbers.current { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.theme-empty-state { text-align: center; padding: 4rem 0; color: var(--muted-fg); }

/* -------------------------------------------------------------------
   Generic page / 404
   ------------------------------------------------------------------- */
.theme-page-main, .theme-generic-content { padding: 3rem 0 5rem; }
.page-title { font-size: 2.25rem; margin-bottom: 2rem; }
.theme-404-main { padding: 6rem 0; }
.theme-404-content { text-align: center; max-width: 32rem; margin: 0 auto; }
.theme-404-title { font-size: 2.5rem; margin-bottom: 1rem; }
.theme-404-text { color: var(--muted-fg); margin-bottom: 2rem; }

/* -------------------------------------------------------------------
   Checkout Block (Section 13)
   ------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content { max-width: 100%; }

/*
 * ONE grid owner only (Section 13.2/13.3). WooCommerce Blocks can render
 * the class "wc-block-checkout" on BOTH the outer page-level wrapper AND
 * the inner ".wc-block-components-sidebar-layout" element that directly
 * parents __main/__sidebar. A bare ".wc-block-checkout" selector matches
 * both, creating a grid-within-grid that shrinks/misplaces the order
 * summary. The outer wrapper is reset to block first; the grid is then
 * applied ONLY to the actual sidebar-layout parent, at every WooCommerce
 * Blocks breakpoint class (is-small/is-medium/is-large), not just is-large.
 */
body.woocommerce-checkout .wc-block-checkout {
  display: block;
}
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: var(--checkout-gap);
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
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); border: 1px solid var(--border); border-radius: 0.375rem; background: var(--background); color: var(--foreground);
}
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(--primary) 40%, transparent); }
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background: var(--primary) !important; color: var(--primary-fg) !important; border-radius: 999px !important;
  font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; border: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-surface, var(--secondary));
  border-radius: var(--card-radius);
  padding: var(--section-padding);
}
body.woocommerce-checkout .wc-block-components-notice-banner { border-radius: 0.5rem; }

/* -------------------------------------------------------------------
   Thank-you / order-received
   ------------------------------------------------------------------- */
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 { padding: 0 0 1rem 0; font-size: 1.5rem; }
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-right: 1px solid var(--border); padding-right: 1.5rem; }
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; }
@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; }
}

/* -------------------------------------------------------------------
   Customizer control CSS scoping fallback
   ------------------------------------------------------------------- */
.is-customizer .faq-panel { height: auto !important; opacity: 1 !important; }
