/* ==========================================================================
   Blesseds Blissful Gifts — theme.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (defaults, overridden by inline PHP vars)
   -------------------------------------------------------------------------- */
:root {
  /* Aligned with Lovable (shadcn) HSL tokens → hex */
  --color-background:          #f7f3ec;
  --color-foreground:          #2a2135;
  --color-primary:             #6b4d8a;
  --color-primary-foreground:  #f7f3ec;
  --color-secondary:           #ede8df;
  --color-secondary-foreground:#2f2442;
  --color-card:                hsl(40 25% 93%);
  --color-muted-foreground:    #6d6574;
  --color-accent:              #c8942e;
  --color-border:              #ddd7e2;
  --bbg-wp-admin-bar-offset:   0px;
  --color-button-text:         #f7f3ec;

  --font-display: 'Fraunces', serif;
  --font-body:    'Montserrat', sans-serif;

  --radius:        0.5rem;
  --btn-radius:    0.375rem;
  --btn-height:    44px;
  --btn-padding:   0.625rem 1.5rem;
  --btn-font-size: 0.875rem;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.05em;
  --btn-text-transform: none;
  --btn-icon-padding: 0.5rem;

  --shadow-soft:     0 4px 20px -4px rgba(42,33,53,0.06);
  --shadow-elevated: 0 8px 40px -8px rgba(42,33,53,0.12);

  --header-height:   80px;
  --announcement-height: 36px;
  --logo-height:     60px;

  --card-radius:     1rem;
  --section-padding: 2rem;
  --checkout-gap:    2rem;

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

@media (max-width: 1023px) {
  :root {
    /* .site-nav es h-16 (64px) en móvil; alinea offset con el header real */
    --header-height: 64px;
  }
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; overflow-x: hidden; }
body.admin-bar {
  --bbg-wp-admin-bar-offset: var(--wp-admin--admin-bar--height, 32px);
}

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--color-foreground);
}
h1 { letter-spacing: 0.06em; }
h2 { letter-spacing: 0.03em; }
h3 { letter-spacing: 0.03em; }

/* --- Tipografía global (Lovable: Montserrat cuerpo, Fraunces títulos) --- */
body {
  font-feature-settings: 'kern' 1, 'liga' 1;
}
.entry-content,
.entry-content p,
.woocommerce-checkout,
.woocommerce-account-fields,
.wc-block-components,
.wc-block-checkout,
.woocommerce table.shop_table,
#bbg-contact-modal .bbg-contact-form {
  font-family: var(--font-body);
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-title,
.wc-block-components-title,
.wc-block-components-checkout-heading,
.theme-cart-drawer__title,
.bbg-modal__title,
.theme-product-title,
.theme-related-products h2,
.error-404__title {
  font-family: var(--font-display);
}
.amount,
.woocommerce-Price-amount,
.price,
.theme-product-price,
.theme-product-card__price,
.theme-cart-item__price,
.theme-cart-subtotal__value {
  font-variant-numeric: tabular-nums;
}
.bbg-icon {
  display: block;
  flex-shrink: 0;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
}

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

.scroll-mt-24 {
  scroll-margin-top: calc(6rem + var(--bbg-wp-admin-bar-offset));
}
.bbg-animate-section { /* entrance animations handled by JS */ }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.bbg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  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-radius: var(--btn-radius);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.bbg-btn:active { transform: scale(0.97); }

.bbg-btn--primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.bbg-btn--primary:hover { opacity: 0.88; }

.bbg-btn--outline {
  background-color: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
}
.bbg-btn--outline:hover { border-color: var(--color-primary); }

/* shadcn Button size="sm" — h-9, px-3, text-sm, tracking-wider */
.bbg-btn--sm {
  min-height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  gap: 0.5rem;
}

/* Promo “Learn More” — outline + sm + bg-background, hover:bg-accent (Lovable Index.tsx) */
.promo-banner__cta-wrap {
  display: inline-block;
}
.promo-banner__cta.bbg-btn--outline {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.promo-banner__cta.bbg-btn--outline:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-foreground);
  opacity: 1;
}
.promo-banner__cta-arrow {
  flex-shrink: 0;
  display: block;
}

.bbg-btn--ghost {
  background-color: rgba(245,240,232,0.95);
  color: var(--color-foreground);
  border: 1px solid rgba(245,240,232,0.7);
}
.bbg-btn--ghost:hover { background-color: #fff; }

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

/* --------------------------------------------------------------------------
   5. SITE LOGO (sizes match Lovable Header.tsx)
   -------------------------------------------------------------------------- */
/* Default --logo-height 60px → Lovable 60 / 72 (lg); scrolled → 40 / 48 */
.site-nav__logo .site-logo-img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  width: var(--logo-height);
  height: var(--logo-height);
  max-width: 72px;
  max-height: 72px;
  transition: width 0.3s var(--transition-smooth), height 0.3s var(--transition-smooth);
}
@media (min-width: 1024px) {
  .site-nav__logo .site-logo-img {
    width: calc(var(--logo-height) * 1.2);
    height: calc(var(--logo-height) * 1.2);
  }
}
.site-header.is-scrolled .site-nav__logo .site-logo-img {
  width: calc(var(--logo-height) * 0.667);
  height: calc(var(--logo-height) * 0.667);
  max-width: 48px;
  max-height: 48px;
}
@media (min-width: 1024px) {
  .site-header.is-scrolled .site-nav__logo .site-logo-img {
    width: calc(var(--logo-height) * 0.8);
    height: calc(var(--logo-height) * 0.8);
  }
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
}

/* --------------------------------------------------------------------------
   6. ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.bbg-announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.bbg-announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
}
.bbg-announcement__text {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
}
.bbg-announcement__close {
  position: absolute;
  right: 0.5rem;
  padding: 0.25rem;
  color: var(--color-primary-foreground);
  opacity: 0.8;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.bbg-announcement__close:hover { opacity: 0.5; }

body.admin-bar .bbg-announcement {
  top: var(--bbg-wp-admin-bar-offset);
}

/* --------------------------------------------------------------------------
   7. SITE HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 50;
  transition: top 0.3s var(--transition-smooth), background-color 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
  background-color: color-mix(in srgb, var(--color-background) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
}
.site-header.is-solid,
.site-header.is-scrolled {
  background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-soft);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}
@media (min-width: 1024px) { .site-nav { height: 80px; } }

.site-nav__left {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
}
.site-nav__right {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
}
.site-nav__logo { display: flex; align-items: center; }
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.site-logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
  transition: font-size 0.3s var(--transition-smooth);
}
@media (min-width: 1024px) {
  .site-logo-name {
    font-size: 1.25rem;
  }
}
.site-header.is-scrolled .site-logo-name {
  font-size: 1rem;
}
@media (min-width: 1024px) {
  .site-header.is-scrolled .site-logo-name {
    font-size: 1.125rem;
  }
}

/* Desktop nav */
.site-nav__desktop-links { display: none; }
@media (min-width: 1024px) {
  .site-nav__desktop-links { display: flex; align-items: center; gap: 2rem; }
}
.theme-nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; }
.theme-nav-list li a,
.theme-nav-list li button,
.bbg-nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-transform: lowercase;
  position: relative;
  transition: color 0.2s;
}
.theme-nav-list li a::after,
.theme-nav-list li button::after,
.bbg-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-list li a:hover::after,
.theme-nav-list li button:hover::after,
.bbg-nav-link:hover::after { transform: scaleX(1); }

/* Hamburger */
.site-nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.site-nav__hamburger:hover { opacity: 0.6; }
.site-nav__hamburger .close-icon { display: none; }
.site-nav__hamburger.is-open .hamburger-icon { display: none; }
.site-nav__hamburger.is-open .close-icon { display: block; }
@media (min-width: 1024px) { .site-nav__hamburger { display: none; } }

/* Cart button */
.site-nav__cart {
  position: relative;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.site-nav__cart:hover { opacity: 0.6; }
.theme-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  font-family: var(--font-body);
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 50%;
  padding: 0 3px;
}
.theme-cart-count:empty { display: none; }

/* Mobile menu */
.site-nav__mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}
.site-nav__mobile.is-open { display: block; }
@media (min-width: 1024px) { .site-nav__mobile { display: none !important; } }
.theme-nav-mobile-list { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.theme-nav-mobile-list li a,
.theme-nav-mobile-list li button {
  display: block;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--color-foreground);
  text-transform: lowercase;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.theme-nav-mobile-list li a:hover,
.theme-nav-mobile-list li button:hover { color: var(--color-muted-foreground); }

/* Portada con hero: sin padding en main (el offset va solo en .hero-section__content) */
body.theme-has-hero #main-content,
body.theme-has-hero .site-main {
  padding-top: 0;
}

/* Main content offset for fixed header + announcement (páginas sin hero a pantalla completa) */
#main-content, .site-main {
  padding-top: calc(var(--bbg-wp-admin-bar-offset) + var(--announcement-height, 36px) + var(--header-height, 80px));
}
.no-announcement #main-content,
.no-announcement .site-main {
  padding-top: calc(var(--bbg-wp-admin-bar-offset) + var(--header-height, 80px));
}
body.theme-has-hero.no-announcement #main-content,
body.theme-has-hero.no-announcement .site-main {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   8. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary);
  padding-top: 0;
}
@media (min-width: 768px) { .hero-section { min-height: 50vh; } }

.hero-section__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-section__overlay {
  position: absolute;
  inset: 0;
  /* from-background via-background/70 to-transparent (Lovable Index.tsx) */
  background: linear-gradient(
    to right,
    var(--color-background) 0%,
    color-mix(in srgb, var(--color-background) 70%, transparent) 50%,
    transparent 100%
  );
}
.hero-section__content {
  position: relative;
  z-index: 10;
  /* Un solo bloque: admin bar + anuncio + altura header + respiro (main sin padding en front-page) */
  padding-top: calc(
    var(--bbg-wp-admin-bar-offset) + var(--announcement-height, 0px) + var(--header-height, 80px) + 1.25rem
  );
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .hero-section__content {
    padding-top: calc(
      var(--bbg-wp-admin-bar-offset) + var(--announcement-height, 0px) + var(--header-height, 80px) + 2rem
    );
    padding-bottom: 6rem;
  }
}
.hero-section__text {
  max-width: 36rem;
  opacity: 0;
  transform: translateX(-30px);
}
.hero-section__text.is-visible {
  animation: slideInLeft 0.8s var(--transition-smooth) forwards;
}
@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}
.hero-section__tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}
.hero-section__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .hero-section__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero-section__title { font-size: 3rem; } }

.hero-section__description {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-muted-foreground);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-section__description { font-size: 1rem; } }

.hero-section__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .hero-section__cta { flex-direction: row; } }
/* Hero CTA: móvil = tamaño default shadcn (h-10, px-4); md+ = size lg (h-11, px-8) como Index.tsx */
.hero-section__cta-btn.bbg-btn--primary {
  width: auto;
  max-width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  gap: 0.375rem;
}
.hero-section__cta-icon {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
}
@media (min-width: 768px) {
  .hero-section__cta-btn.bbg-btn--primary {
    min-height: 2.75rem;
    padding: 0.625rem 2rem;
    gap: 0.5rem;
  }
  .hero-section__cta-icon {
    width: 1rem;
    height: 1rem;
  }
}

.hero-section__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--color-foreground) 10%, transparent);
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.hero-section__badge-icon {
  flex-shrink: 0;
  display: block;
  width: 0.875rem;
  height: 0.875rem;
}

/* --------------------------------------------------------------------------
   9. CATEGORY SECTION
   -------------------------------------------------------------------------- */
.category-section {
  padding: 2.5rem 0;
}
@media (min-width: 768px) { .category-section { padding: 3.5rem 0; } }
.category-section__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .category-section__title { font-size: 1.5rem; } }
.category-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .category-section__grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.category-card__image-wrap {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
}
.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.category-card:hover .category-card__img { transform: scale(1.05); }
.category-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
}

/* --------------------------------------------------------------------------
   10. PROMO BANNER
   -------------------------------------------------------------------------- */
.promo-banner { padding-bottom: 2.5rem; }
@media (min-width: 768px) { .promo-banner { padding-bottom: 3.5rem; } }
.promo-banner__card {
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--color-secondary);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .promo-banner__card { grid-template-columns: 1fr 1fr; } }
.promo-banner__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
@media (min-width: 768px) { .promo-banner__content { padding: 2.5rem; } }
@media (min-width: 1024px) { .promo-banner__content { padding: 3rem; } }
.promo-banner__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.promo-banner__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .promo-banner__title { font-size: 1.5rem; } }
@media (min-width: 1024px) { .promo-banner__title { font-size: 1.875rem; } }
.promo-banner__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}
.promo-banner__image-wrap {
  position: relative;
  min-height: 200px;
}
@media (min-width: 768px) { .promo-banner__image-wrap { min-height: 100%; } }
.promo-banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   11. SHOP SECTION
   -------------------------------------------------------------------------- */
.shop-section {
  padding: 2.5rem 0;
}
@media (min-width: 768px) { .shop-section { padding: 4rem 0; } }

/* Search */
.shop-section__search-wrap {
  position: relative;
  max-width: 32rem;
  margin: 0 auto 2rem;
}
.shop-section__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-foreground);
  pointer-events: none;
}
.shop-section__search {
  width: 100%;
  height: 3rem;
  padding: 0 1rem 0 3rem;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background-color: var(--color-secondary);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.shop-section__search:focus {
  border-color: var(--color-ring, var(--color-primary));
  box-shadow: 0 0 0 2px rgba(107,77,138,0.15);
}
.shop-section__search::placeholder { color: var(--color-muted-foreground); }

/* Category tabs */
.shop-section__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}
.shop-section__tab {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.shop-section__tab:hover { color: var(--color-foreground); }
.shop-section__tab.is-active {
  color: var(--color-foreground);
}
.shop-section__tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-foreground);
}

/* Price filter */
.shop-section__price-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.shop-section__price-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.shop-section__price-toggle:hover { color: var(--color-foreground); }
.price-toggle-chevron {
  transition: transform 0.3s var(--transition-smooth);
}
.shop-section__price-toggle[aria-expanded="true"] .price-toggle-chevron {
  transform: rotate(180deg);
}
.shop-section__price-panel {
  width: 100%;
  max-width: 20rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.shop-section__price-panel.is-open {
  max-height: 100px;
  opacity: 1;
}
/* Price range track (Section 31.4) */
.price-range-wrapper {
  position: relative;
  display: flex;
  margin-bottom: 0.75rem;
  height: 24px;
  align-items: center;
}
.range-segment {
  width: 50%;
  position: relative;
}
.range-segment input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-border);
  outline: none;
  cursor: pointer;
  margin: 0;
}
.range-segment--min input[type="range"] { direction: rtl; }
.range-segment--max input[type="range"] { direction: ltr; }
.range-segment input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--color-background);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.range-segment input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--color-background);
}
.range-track-fill {
  position: absolute;
  height: 4px;
  background: var(--color-primary);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* --------------------------------------------------------------------------
   12. 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)); }
}

.theme-product-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.theme-product-card__image-link {
  display: block;
  overflow: hidden;
}
.theme-product-card__image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-secondary);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s ease;
}
.theme-product-card:hover .theme-product-card__image-wrapper {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px color-mix(in srgb, var(--color-foreground) 10%, transparent);
}
.theme-product-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.theme-product-card:hover .theme-product-card__image-wrapper img {
  transform: scale(1.06);
}

.theme-product-card__sold-out-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-foreground);
  color: var(--color-background);
  border-radius: 0.375rem;
  z-index: 2;
}
@media (min-width: 768px) {
  .theme-product-card__sold-out-badge { top: 0.75rem; left: 0.75rem; }
}
.theme-product-card__image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(42,33,53,0);
  transition: background-color 0.5s ease;
  pointer-events: none;
}
.theme-product-card:hover .theme-product-card__image-overlay {
  background-color: color-mix(in srgb, var(--color-foreground) 5%, transparent);
}

/* Quick-add button (Section 19.4 — design includes add to cart) */
.theme-product-card__add-btn {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s, opacity 0.3s;
  z-index: 2;
  text-decoration: none;
}
@media (min-width: 768px) {
  .theme-product-card__add-btn {
    bottom: 0.75rem;
    right: 0.75rem;
    opacity: 0;
  }
  .theme-product-card:hover .theme-product-card__add-btn { opacity: 1; }
}
.theme-product-card__add-btn:hover { transform: scale(1.1); }
.theme-product-card__add-btn:active { transform: scale(0.9); }

.theme-product-card__info { flex: 1; }
.theme-product-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.25rem;
}
.theme-product-card:hover .theme-product-card__name { color: var(--color-primary); }
.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted-foreground);
}

/* Card add-to-cart WooCommerce overrides (Section 11.4.1 card variant) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
  min-height: unset !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.shop-section__load-more {
  text-align: center;
  margin-top: 2.5rem;
}
.shop-section__empty {
  text-align: center;
  padding: 5rem 0;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
}
.shop-section__no-products {
  text-align: center;
  padding: 5rem 0;
  color: var(--color-muted-foreground);
  font-family: var(--font-body);
  grid-column: 1 / -1;
}

/* WooCommerce add-to-cart button overrides (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.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;
}
/* Disabled states (Section 11.4.1) */
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Hide WC "View Cart" after AJAX add (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Button lock (Section 31.8) */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* --------------------------------------------------------------------------
   13. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-section {
  padding: 1.5rem 0;
}
@media (min-width: 768px) { .about-section { padding: 2.5rem 0; } }
.about-section__card {
  max-width: 48rem;
  margin: 0 auto;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}
@media (min-width: 768px) {
  .about-section__card { flex-direction: row; padding: 1.5rem; align-items: center; }
}
.about-section__photo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(107,77,138,0.2);
  flex-shrink: 0;
}
@media (min-width: 768px) { .about-section__photo-wrap { width: 96px; height: 96px; } }
.about-section__photo { width: 100%; height: 100%; object-fit: cover; }
.about-section__text { flex: 1; text-align: center; }
@media (min-width: 768px) { .about-section__text { text-align: left; } }
.about-section__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.125rem;
}
.about-section__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.375rem;
}
@media (min-width: 768px) { .about-section__title { font-size: 1.25rem; } }
.about-section__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
  max-width: 32rem;
  margin-bottom: 0.5rem;
}
.about-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
@media (min-width: 768px) { .about-section__tags { justify-content: flex-start; } }
.about-section__tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-secondary-foreground);
}

/* --------------------------------------------------------------------------
   14. MISSION SECTION
   -------------------------------------------------------------------------- */
.mission-section {
  position: relative;
  overflow: hidden;
  color: var(--color-primary-foreground);
  text-align: center;
}
.mission-section__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mission-section__overlay {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--color-foreground) 60%, transparent);
}
.mission-section__content {
  position: relative;
  z-index: 10;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 768px) { .mission-section__content { padding: 3.5rem 0; } }
.mission-section__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--color-background);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .mission-section__title { font-size: 1.5rem; } }
.mission-section__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-background) 70%, transparent);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}
.mission-section__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) { .mission-section__ctas { flex-direction: row; } }
.mission-section__ctas .bbg-btn { padding: 0.75rem 2rem; }
/* Secondary CTA on video — matches Lovable outline on dark */
.mission-section .bbg-btn--ghost {
  background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
  color: var(--color-foreground);
  border: 1px solid color-mix(in srgb, var(--color-background) 70%, transparent);
}
.mission-section .bbg-btn--ghost:hover {
  background-color: var(--color-background);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   15. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
}
.site-footer .container-wide { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .site-footer .container-wide { padding-top: 4rem; padding-bottom: 4rem; } }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
}
@media (min-width: 1024px) {
  .site-footer__grid { gap: 4rem; }
}
.site-footer__logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.site-footer__logo-img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
.site-footer__site-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.site-footer__tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  font-style: italic;
  margin-top: 0.5rem;
}
.site-footer__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
  max-width: 22rem;
  margin-top: 0.75rem;
}
.site-footer__eco {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.75rem;
}
.site-footer__col-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0;
}
.site-footer__nav-list,
.theme-footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__nav-list li a,
.site-footer__nav-list li button,
.theme-footer-nav li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  text-transform: capitalize;
}
.site-footer__nav-list li a:hover,
.site-footer__nav-list li button:hover,
.theme-footer-nav li a:hover { color: var(--color-foreground); }

.site-footer__contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.site-footer__contact-list li svg { flex-shrink: 0; }
.site-footer__contact-list a { transition: color 0.2s; }
.site-footer__contact-list a:hover { color: var(--color-foreground); }

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; } }
.site-footer__copyright,
.site-footer__credit {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.site-footer__credit a { text-decoration: underline; transition: color 0.2s; }
.site-footer__credit a:hover { color: var(--color-foreground); }

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

.theme-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.theme-cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.theme-cart-drawer__close {
  padding: 0.25rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.theme-cart-drawer__close:hover { opacity: 0.6; }

.theme-cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.theme-cart-drawer__empty svg {
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}
.theme-cart-drawer__empty p {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
}

.theme-cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.theme-cart-item {
  display: flex;
  gap: 1rem;
}
.theme-cart-item__image-link {
  display: block;
  width: 80px;
  height: 96px;
  background-color: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
}
.theme-cart-item__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
}
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-top: 0.125rem;
}
.theme-cart-item__variation {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-top: 0.125rem;
}
.theme-cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.theme-cart-qty-btn {
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-cart-qty-btn:hover { background-color: var(--color-secondary); }
.theme-cart-qty-count {
  font-family: var(--font-body);
  font-size: 0.875rem;
  min-width: 24px;
  text-align: center;
}
.theme-cart-item__remove {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
}
.theme-cart-item__remove:hover { color: var(--color-foreground); }

.theme-cart-drawer__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}
.theme-cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.theme-cart-subtotal__label { color: var(--color-muted-foreground); }
.theme-cart-subtotal__value { font-weight: 500; }
.theme-cart-shipping {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.theme-cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
}
.theme-cart-empty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  background: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.theme-cart-empty-btn:hover { background-color: var(--color-secondary); }

/* --------------------------------------------------------------------------
   17. CONTACT MODAL
   -------------------------------------------------------------------------- */
.bbg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}
.bbg-modal.is-open { display: flex; align-items: center; justify-content: center; }
.bbg-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(42,33,53,0.4);
}
.bbg-modal__content {
  position: relative;
  z-index: 1;
  background-color: var(--color-background);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 90%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
}
.bbg-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bbg-modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.bbg-modal__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-top: 0.25rem;
}
.bbg-modal__close {
  padding: 0.25rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.bbg-modal__close:hover { opacity: 0.6; }
.bbg-modal__contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}
.bbg-modal__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bbg-modal__contact-item a { transition: color 0.2s; }
.bbg-modal__contact-item a:hover { color: var(--color-foreground); }

.bbg-contact-form { display: flex; flex-direction: column; gap: 1rem; }
.bbg-contact-form__row { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .bbg-contact-form__row--2col { flex-direction: row; } }
.bbg-contact-form__field { display: flex; flex-direction: column; gap: 0.375rem; flex: 1; }
.bbg-contact-form__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}
.bbg-contact-form__input,
.bbg-contact-form__textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bbg-contact-form__input:focus,
.bbg-contact-form__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(107,77,138,0.15);
}
.bbg-contact-form__input::placeholder,
.bbg-contact-form__textarea::placeholder { color: var(--color-muted-foreground); }
.bbg-contact-form__textarea { resize: none; }
.bbg-contact-form__footer { display: flex; justify-content: flex-end; }

/* Contact success state */
.bbg-contact-success {
  text-align: center;
  padding: 2rem 0;
}
.bbg-contact-success__icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-primary-foreground);
}
.bbg-contact-success__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.bbg-contact-success__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* --------------------------------------------------------------------------
   18. SINGLE PRODUCT PAGE (Section 11)
   -------------------------------------------------------------------------- */
.single-product .site-main { min-height: 100vh; }

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

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

/* Gallery */
.theme-product-gallery { min-width: 0; max-width: 100%; }
.theme-product-main-image-wrap {
  aspect-ratio: 3 / 4;
  background-color: var(--color-secondary);
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}
.theme-product-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.theme-product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.theme-product-thumbnail {
  aspect-ratio: 1;
  width: calc(20% - 0.4rem);
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}
.theme-product-thumbnail.is-active {
  border-color: var(--color-primary);
  opacity: 1;
}
.theme-product-thumbnail:hover { opacity: 1; }
.theme-product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Info column */
.theme-product-info { min-width: 0; max-width: 100%; }
.single-product .theme-product-info { padding-top: 0; }
@media (min-width: 1024px) { .single-product .theme-product-info { padding-top: 2.5rem; } }

.theme-product-category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  display: block;
}
.theme-product-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .theme-product-title { font-size: 1.875rem; } }
.theme-product-price {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.theme-product-description {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.theme-product-sold-out-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  background-color: var(--color-foreground);
  color: var(--color-background);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Attributes */
.theme-product-attributes { margin-bottom: 1.5rem; }
.theme-product-attr-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.theme-attr-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.theme-attr-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  background: none;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.theme-attr-btn:hover { border-color: rgba(107,77,138,0.5); }
.theme-attr-btn.is-selected {
  border-color: var(--color-primary);
  background-color: rgba(107,77,138,0.05);
  color: var(--color-primary);
}
.theme-attr-select-hidden { display: none !important; }
.theme-color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* Variable product — WooCommerce variations layout */
.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; }

/* Add to cart area */
.theme-add-to-cart-area {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.single-product .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}
/* Quantity control */
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  overflow: hidden;
  flex-shrink: 0;
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  color: var(--color-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
  padding: 0.75rem;
  min-width: 48px;
  text-align: center;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  outline: none;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Product details list */
.theme-product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}
.theme-product-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}
.theme-product-tabs__tab {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.theme-product-tabs__tab:hover { color: var(--color-foreground); }
.theme-product-tabs__tab.is-active { color: var(--color-foreground); }
.theme-product-tabs__tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-foreground);
}
.theme-product-tabs__panel[hidden] { display: none; }
.theme-product-details-section--tabs .theme-product-tabs__panel:not(.is-active) { display: none; }
.theme-product-details-section--tabs .theme-product-tabs__panel.is-active { display: block; }
.theme-product-care-instructions {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}
.theme-product-details-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.theme-product-details-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  overflow-wrap: break-word;
  word-break: break-word;
}
.theme-product-detail-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Related products */
.theme-related-products {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
}
.theme-related-products h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .theme-related-products h2 { font-size: 1.5rem; } }
.theme-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .theme-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

/* WC notices — scoped */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }

/* --------------------------------------------------------------------------
   19. WOOCOMMERCE ARCHIVE (SHOP PAGE)
   -------------------------------------------------------------------------- */
.woocommerce-shop-page .site-main {
  padding-bottom: 4rem;
}
.theme-shop-header {
  margin-bottom: 2rem;
}
.theme-shop-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   20. CHECKOUT PAGE (Section 13)
   -------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
  padding-top: calc(var(--bbg-wp-admin-bar-offset) + var(--header-height, 80px));
  padding-bottom: 4rem;
}
body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-top: 2rem;
}
body.woocommerce-checkout .entry-content {
  max-width: 100%;
}
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 380px;
    gap: var(--checkout-gap, 2rem);
    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-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--card-radius);
  padding: var(--section-padding, 2rem);
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  background-color: var(--color-background) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(107,77,138,0.15) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  cursor: pointer !important;
}
body.woocommerce-checkout h2 {
  font-family: var(--font-display) !important;
}

/* --------------------------------------------------------------------------
   21. THANK YOU PAGE (Section 22.8)
   -------------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order {
  font-family: var(--font-body);
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 1rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   22. PAGE TEMPLATE
   -------------------------------------------------------------------------- */
.page-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-top: 2rem;
  letter-spacing: 0.04em;
}
.entry-content { line-height: 1.8; font-family: var(--font-body); }

/* --------------------------------------------------------------------------
   23. 404 PAGE
   -------------------------------------------------------------------------- */
.error-404 { min-height: 70vh; }
.error-404__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  gap: 1rem;
}
.error-404__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.error-404__text {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  max-width: 28rem;
}

/* --------------------------------------------------------------------------
   24. WOOCOMMERCE NOTICES (Section 14.1)
   -------------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.woocommerce-message { background-color: rgba(107,77,138,0.1); border-left: 3px solid var(--color-primary); }
.woocommerce-error { background-color: rgba(239,68,68,0.08); border-left: 3px solid #ef4444; }
.woocommerce-info { background-color: rgba(192,124,42,0.1); border-left: 3px solid var(--color-accent); }
/* Scoped hiding */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* --------------------------------------------------------------------------
   25. ANIMATION UTILITIES
   -------------------------------------------------------------------------- */
.bbg-animate-section [data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.bbg-animate-section.is-visible [data-animate],
.bbg-animate-section [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }

/* --------------------------------------------------------------------------
   26. WOOCOMMERCE STYLE OVERRIDES (Section 14)
   -------------------------------------------------------------------------- */
/* Remove WC default breadcrumbs */
.woocommerce-breadcrumb { display: none; }

/* WC button overrides */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  transition: opacity 0.2s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  opacity: 0.85;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
