/* ==========================================================================
   Besha's Roots to Remedies — Theme CSS
   Typography: DM Serif Display + Fira Sans (same pairing as the design system).
   ========================================================================== */

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --color-primary:            #244c38;
  --color-primary-foreground: #f8f6f2;
  --color-accent:             #c48931;
  --color-accent-foreground:  #f8f6f2;
  --color-background:         #f8f6f2;
  --color-foreground:         #17261f;
  --color-secondary:          #e6ebe0;
  --color-muted:              #eceae4;
  --color-muted-foreground:   #485b52;
  --color-border:             #d1d7cc;
  --color-card:               #ffffff;
  --color-button-text:        #f8f6f2;

  --font-display: 'DM Serif Display', serif;
  --font-body:    'Fira Sans', system-ui, sans-serif;

  --radius: 0.5rem;
  --logo-height: 86px;
  /* Altura útil del header fijo (.is-solid: logo + padding vertical); evita solapar main/h1 */
  --header-height: calc(var(--logo-height) + 1.5rem);

  --btn-radius:         var(--radius);
  --btn-height:         48px;
  --btn-padding:        0.75rem 1.5rem;
  --btn-font-size:      0.75rem;
  --btn-font-weight:    500;
  --btn-letter-spacing: 0.1em;
  --btn-text-transform: uppercase;

  --section-padding: 6rem;
  --container-max:   72rem;
  --card-radius:     var(--radius);
}

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

html { scroll-behavior: smooth; }

body {
  font-family:      var(--font-body);
  font-weight:      400;
  color:            var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family:    var(--font-display);
  font-weight:    400;
  letter-spacing: -0.01em;
  line-height:    1.1;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }
ul, ol { list-style: none; }

::selection {
  background: color-mix(in srgb, var(--color-primary) 40%, transparent);
  color: var(--color-primary-foreground);
}

/* ── Utility Classes ───────────────────────────────────────────────────── */
.container-cottage {
  width: 100%;
  max-width: var(--container-max);
  margin-left:  auto;
  margin-right: auto;
  padding-left:  1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .container-cottage { padding-left: 2rem; padding-right: 2rem; }
}

.text-center { text-align: center; }

.eyebrow {
  display:        inline-block;
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color:          var(--color-accent);
  font-family:    var(--font-body);
  font-weight:    500;
}

.deco-divider {
  display:     inline-flex;
  align-items: center;
  gap:         0.75rem;
  color:       var(--color-accent);
  font-family: var(--font-display);
  font-style:  italic;
}
.deco-divider::before,
.deco-divider::after {
  content:    '';
  width:      40px;
  height:     1px;
  background: color-mix(in srgb, var(--color-accent) 50%, transparent);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  background:      var(--color-primary);
  color:           var(--color-primary-foreground);
  border:          none;
  border-radius:   var(--btn-radius);
  padding:         var(--btn-padding);
  font-size:       var(--btn-font-size);
  font-weight:     var(--btn-font-weight);
  letter-spacing:  var(--btn-letter-spacing);
  text-transform:  var(--btn-text-transform);
  transition:      background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  cursor:          pointer;
}
.btn-primary:hover {
  background-color: var(--color-accent);
  transform:        translateY(-2px);
  color:            var(--color-accent-foreground);
}

.btn-outline {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  background:      transparent;
  color:           var(--color-foreground);
  border:          1px solid color-mix(in srgb, var(--color-primary) 50%, transparent);
  border-radius:   var(--btn-radius);
  padding:         var(--btn-padding);
  font-size:       var(--btn-font-size);
  font-weight:     var(--btn-font-weight);
  letter-spacing:  var(--btn-letter-spacing);
  text-transform:  var(--btn-text-transform);
  transition:      background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  cursor:          pointer;
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color:            var(--color-primary-foreground);
  border-color:     var(--color-primary);
  transform:        translateY(-2px);
}

/* ── Site Wrapper ──────────────────────────────────────────────────────── */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position:   fixed;
  top:        0;
  left:       0;
  right:      0;
  z-index:    50;
  transition: background-color 0.5s ease, border-color 0.5s ease, padding 0.5s ease;
  padding:    1.25rem 0;
}

/* WordPress admin bar: keep fixed header below the toolbar */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

body.admin-bar #theme-cart-drawer {
  top: 32px;
  height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar #theme-cart-drawer {
    top: 46px;
    height: calc(100% - 46px);
  }
}
.site-header.is-solid {
  background-color: color-mix(in srgb, var(--color-background) 85%, transparent);
  backdrop-filter:  blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:    1px solid var(--color-border);
  padding:          0.75rem 0;
}

.header-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

/* Logo */
.site-logo-link {
  display:    flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.site-logo-link:hover { transform: scale(1.05); }

.site-logo-img {
  height:      var(--logo-height) !important;
  width:       auto !important;
  display:     block;
  object-fit:  contain;
  transition:  filter 0.5s ease;
}
.site-logo-text {
  font-family:  var(--font-display);
  font-size:    1.25rem;
  line-height:  var(--logo-height);
  display:      block;
  transition:   color 0.5s ease;
}

/* Header: transparent state — invert logo */
.site-header:not(.is-solid) .site-logo-img { filter: brightness(0) invert(1); }
.site-header:not(.is-solid) .site-logo-text { color: white; }

/* Nav */
.site-nav {
  display:     none;
  align-items: center;
  gap:         1.75rem;
}
@media (min-width: 768px) { .site-nav { display: flex; } }

/* WP nav menu resets */
.theme-nav-list {
  display:     flex;
  align-items: center;
  gap:         1.75rem;
  list-style:  none;
  margin:      0;
  padding:     0;
}
.theme-nav-list li { margin: 0; }
.theme-nav-list a,
.theme-nav-link {
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          rgba(255,255,255,0.85);
  background:     none;
  border:         none;
  padding:        0;
  transition:     color 0.3s ease;
  cursor:         pointer;
  font-family:    var(--font-body);
}
.site-header.is-solid .theme-nav-list a,
.site-header.is-solid .theme-nav-link {
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
.theme-nav-list a:hover,
.theme-nav-link:hover {
  color: var(--color-accent);
}
.site-header.is-solid .theme-nav-list a:hover,
.site-header.is-solid .theme-nav-link:hover {
  color: var(--color-primary);
}

/* Cart button */
.cart-btn {
  position:   relative;
  background: none;
  border:     none;
  padding:    0;
  color:      rgba(255,255,255,0.85);
  transition: color 0.3s ease;
  display:    flex;
  align-items: center;
}
.site-header.is-solid .cart-btn {
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
.cart-btn:hover { color: var(--color-accent); }
.site-header.is-solid .cart-btn:hover { color: var(--color-primary); }

.theme-cart-count {
  position:         absolute;
  top:              -0.5rem;
  right:            -0.5rem;
  background:       var(--color-accent);
  color:            var(--color-accent-foreground);
  font-size:        0.625rem;
  font-weight:      500;
  width:            1.25rem;
  height:           1.25rem;
  border-radius:    50%;
  display:          grid;
  place-items:      center;
  font-family:      var(--font-body);
}
.theme-cart-count:empty { display: none; }

.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: flex; } }

/* Mobile header */
.header-mobile-actions {
  display:     flex;
  align-items: center;
  gap:         1rem;
}
@media (min-width: 768px) { .header-mobile-actions { display: none; } }

.mobile-cart-btn {
  color: rgba(255,255,255,0.85);
}
.site-header.is-solid .mobile-cart-btn {
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}

.menu-toggle {
  position:      relative;
  background:    none;
  border:        none;
  padding:       0;
  color:         rgba(255,255,255,0.85);
  display:       flex;
  align-items:   center;
  transition:    transform 0.3s cubic-bezier(0.34, 1.25, 0.64, 1), color 0.3s ease;
}
.site-header.is-solid .menu-toggle {
  color: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu  { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] {
  transform: scale(0.94);
}
.menu-toggle[aria-expanded="true"]:active {
  transform: scale(0.9);
}

/* Mobile menu — paridad Lovable (Header.tsx: absolute top-full inset-x-0, container-cottage py-6, gap-5) */
.mobile-menu {
  position:         absolute;
  top:              100%;
  left:             0;
  right:            0;
  width:            100%;
  box-sizing:       border-box;
  background:       var(--color-background);
  border-bottom:    1px solid transparent;
  box-shadow:       0 20px 25px -5px rgba(23, 38, 31, 0.08), 0 8px 10px -6px rgba(23, 38, 31, 0.06);
  overflow:         hidden;
  max-height:       0;
  opacity:          0;
  pointer-events:   none;
  transform-origin: top center;
  transition:       max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.32s ease,
                    border-color 0.25s ease;
}
.mobile-menu.is-open {
  max-height:       min(70vh, 28rem);
  opacity:          1;
  pointer-events:   auto;
  border-bottom-color: var(--color-border);
}

.mobile-menu-inner {
  width:            100%;
  max-width:        100%;
  box-sizing:       border-box;
  padding-top:      1.5rem;
  padding-bottom:   1.5rem;
  display:          flex;
  flex-direction:   column;
  align-items:      stretch;
  transform:        translateY(-0.65rem);
  opacity:          0;
  transition:       transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.32s ease;
}
.mobile-menu.is-open .mobile-menu-inner {
  transform:        translateY(0);
  opacity:          1;
  transition-delay: 0.06s, 0.06s;
}

.theme-mobile-nav-list {
  display:          flex;
  flex-direction:   column;
  align-items:      stretch;
  gap:              1.25rem;
  list-style:       none;
  padding:          0;
  margin:           0;
  width:            100%;
}
.theme-mobile-nav-list > li {
  margin:           0;
  padding:          0;
  width:            100%;
  list-style:       none;
}
.theme-mobile-nav-list a,
.theme-mobile-nav-link {
  font-size:        1rem;
  text-transform:   uppercase;
  letter-spacing:   0.2em;
  color:            color-mix(in srgb, var(--color-foreground) 80%, transparent);
  font-family:      var(--font-body);
  background:       none;
  border:           none;
  padding:          0;
  text-align:       left;
  cursor:           pointer;
  transition:       color 0.3s ease, transform 0.25s ease;
  display:          block;
  width:            100%;
  box-sizing:       border-box;
}
.theme-mobile-nav-link:hover,
.theme-mobile-nav-list a:hover {
  color:     var(--color-primary);
  transform: translateX(4px);
}
.theme-mobile-nav-list a:focus-visible,
.theme-mobile-nav-link:focus-visible {
  outline:        2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .mobile-menu {
    display:          none !important;
    max-height:       0 !important;
    opacity:          0 !important;
    pointer-events:   none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle[aria-expanded="true"] { transform: none; }
  .mobile-menu,
  .mobile-menu.is-open,
  .mobile-menu-inner,
  .mobile-menu.is-open .mobile-menu-inner {
    transition: none !important;
  }
  .mobile-menu:not(.is-open) { max-height: 0; opacity: 0; }
  .mobile-menu.is-open { max-height: none; opacity: 1; }
  .mobile-menu-inner,
  .mobile-menu.is-open .mobile-menu-inner {
    transform: none;
    opacity:   1;
  }
  .theme-mobile-nav-list a:hover,
  .theme-mobile-nav-link:hover {
    transform: none;
  }
}

/* ── Cart Overlay ──────────────────────────────────────────────────────── */
#theme-cart-overlay {
  position:   fixed;
  inset:      0;
  background: rgba(0,0,0,0.4);
  z-index:    99;
  opacity:    0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
body.cart-open #theme-cart-overlay {
  opacity:        1;
  pointer-events: auto;
}

/* ── Cart Drawer ───────────────────────────────────────────────────────── */
#theme-cart-drawer {
  position:    fixed;
  top:         0;
  right:       0;
  width:       min(420px, 100vw);
  height:      100%;
  background:  var(--color-background);
  z-index:     100;
  transform:   translateX(100%);
  transition:  transform 0.35s cubic-bezier(0.22,1,0.36,1);
  display:     flex;
  flex-direction: column;
  overflow:    hidden;
  box-shadow:  -4px 0 24px rgba(0,0,0,0.12);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.cart-drawer-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         1.25rem 1.5rem;
  border-bottom:   1px solid var(--color-border);
  flex-shrink:     0;
}
.cart-drawer-title {
  font-family: var(--font-display);
  font-size:   1.25rem;
}
.cart-drawer-close {
  background:  none;
  border:      none;
  padding:     0.25rem;
  color:       var(--color-foreground);
  opacity:     0.6;
  transition:  opacity 0.2s;
  display:     flex;
  align-items: center;
}
.cart-drawer-close:hover { opacity: 1; }

.cart-drawer-body {
  flex:        1;
  overflow-y:  auto;
  padding:     1rem 1.5rem;
}

.cart-empty-state {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            1rem;
  padding:        3rem 0;
  color:          var(--color-muted-foreground);
  text-align:     center;
}
.cart-empty-message {
  font-size: 0.95rem;
}
.cart-continue-btn {
  font-size: 0.75rem;
}

.cart-items-list {
  display:        flex;
  flex-direction: column;
  gap:            1rem;
  padding:        0;
  margin:         0;
}

.cart-item {
  display: flex;
  gap:     1rem;
}
.cart-item-image-link {
  flex-shrink: 0;
  width:       72px;
  height:      72px;
  border-radius: var(--radius);
  overflow:    hidden;
  display:     block;
  background:  var(--color-muted);
}
.cart-item-image-link img {
  width:      100%;
  height:     100%;
  object-fit: cover;
}
.cart-item-info {
  flex:     1;
  min-width: 0;
  display:  flex;
  flex-direction: column;
  gap:      0.25rem;
}
.cart-item-name {
  font-family: var(--font-display);
  font-size:   0.9rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow:    hidden;
  text-overflow: ellipsis;
}
.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}
.cart-item-attr {
  font-size:   0.7rem;
  color:       var(--color-muted-foreground);
  text-transform: capitalize;
}
.cart-item-price-row { margin-top: 0.125rem; }
.cart-item-price { font-size: 0.85rem; color: var(--color-primary); font-family: var(--font-display); }
.cart-item-controls {
  display:     flex;
  align-items: center;
  justify-content: space-between;
  margin-top:  0.5rem;
}

.theme-quantity-wrapper,
.cart-qty-wrapper {
  display:     flex;
  align-items: center;
  border:      1px solid var(--color-border);
  border-radius: var(--radius);
  overflow:    hidden;
}
.theme-qty-btn,
.cart-qty-btn {
  width:       2rem;
  height:      2rem;
  background:  none;
  border:      none;
  display:     grid;
  place-items: center;
  color:       var(--color-foreground);
  transition:  background-color 0.2s;
}
.theme-qty-btn:hover,
.cart-qty-btn:hover { background-color: var(--color-muted); }
.cart-item-qty {
  width:      2rem;
  text-align: center;
  font-size:  0.85rem;
  font-family: var(--font-display);
}

.cart-remove-btn {
  background:  none;
  border:      none;
  padding:     0.25rem;
  color:       var(--color-muted-foreground);
  transition:  color 0.2s;
}
.cart-remove-btn:hover { color: #c0392b; }

.cart-drawer-footer {
  padding:       1.25rem 1.5rem;
  border-top:    1px solid var(--color-border);
  flex-shrink:   0;
  display:       flex;
  flex-direction: column;
  gap:           1rem;
}
.cart-subtotal-row {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  font-size:       0.95rem;
}
.cart-subtotal-label { font-weight: 500; }
.cart-subtotal-value { font-family: var(--font-display); font-size: 1.1rem; }
.cart-checkout-btn {
  width:           100%;
  justify-content: center;
  font-size:       0.8rem;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero-section {
  position:   relative;
  min-height: 100svh;
  display:    flex;
  align-items: center;
  overflow:   hidden;
}

.hero-bg {
  position: absolute;
  inset:    0;
  will-change: transform;
}
.hero-video,
.hero-poster-img {
  width:      100%;
  height:     100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset:    0;
  pointer-events: none;
}
.hero-overlay--lr {
  background: linear-gradient(to right,
    color-mix(in srgb, var(--color-primary) 85%, transparent),
    color-mix(in srgb, var(--color-primary) 65%, transparent),
    color-mix(in srgb, var(--color-primary) 30%, transparent));
}
.hero-overlay--tb {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--color-primary) 40%, transparent),
    color-mix(in srgb, var(--color-primary) 30%, transparent),
    color-mix(in srgb, var(--color-primary) 80%, transparent));
}

.hero-content {
  position:    relative;
  z-index:     10;
  padding-top: 8rem;
  padding-bottom: 5rem;
  color:       var(--color-primary-foreground);
}

.hero-copy { max-width: 42rem; }

/* Texto del deco en hero: color accent (dorado marca), nunca heredar blanco/foreground.
   Si `--color-background` en el Customizer es #fff, cualquier “background/90” sigue viéndose blanco. */
section#hero .hero-copy > span#hero-deco.deco-divider {
  margin-bottom: 1.5rem;
  font-size:     0.85rem;
  color:         var(--color-accent) !important;
}
section#hero .hero-copy > span#hero-deco.deco-divider::before,
section#hero .hero-copy > span#hero-deco.deco-divider::after {
  background: color-mix(in srgb, var(--color-accent) 65%, var(--color-primary-foreground)) !important;
}

.hero-h1 {
  font-family:   var(--font-display);
  font-size:     clamp(2.5rem, 7vw, 4.5rem);
  line-height:   1.05;
  text-wrap:     balance;
  color:         var(--color-primary-foreground);
  margin-bottom: 0;
}
.hero-h1-line1 { display: block; }
.hero-h1-accent {
  display:     block;
  font-style:  italic;
  color:       var(--color-accent);
  font-family: var(--font-display);
}

.hero-body {
  margin-top:  1.5rem;
  font-size:   1.125rem;
  color:       rgba(255,255,255,0.9);
  max-width:   36rem;
  line-height: 1.7;
}

.hero-ctas {
  display:   flex;
  flex-wrap: wrap;
  gap:       0.75rem;
  margin-top: 2.25rem;
}

.hero-cta1 {
  background-color: var(--color-accent);
  color:            var(--color-accent-foreground);
}
.hero-cta1:hover {
  background-color: var(--color-background);
  color:            var(--color-primary);
}

.hero-cta2 {
  background-color: rgba(255,255,255,0.1);
  backdrop-filter:  blur(8px);
  border-color:     rgba(255,255,255,0.4);
  color:            var(--color-primary-foreground);
}
.hero-cta2:hover {
  background-color: var(--color-background);
  color:            var(--color-primary);
  border-color:     var(--color-background);
}

.hero-scroll-hint {
  display:        none;
  position:       absolute;
  bottom:         2rem;
  left:           50%;
  transform:      translateX(-50%);
  z-index:        10;
  color:          rgba(255,255,255,0.7);
  font-size:      0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  flex-direction: column;
  align-items:    center;
  gap:            0.5rem;
  animation:      fadeIn 0.8s ease 1.4s both;
}
@media (min-width: 768px) { .hero-scroll-hint { display: flex; } }

.hero-scroll-line {
  display:       block;
  width:         1px;
  height:        2.5rem;
  background:    rgba(255,255,255,0.6);
  transform-origin: top;
  animation:     scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,100% { transform: scaleY(0.2); }
  50%     { transform: scaleY(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Marquee ───────────────────────────────────────────────────────────── */
.marquee-banner {
  background:   var(--color-card);
  border-top:   1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
  border-bottom:1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
  overflow:     hidden;
}
.marquee-track {
  display:    flex;
  white-space: nowrap;
  padding:    1.25rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size:   clamp(1.25rem, 3vw, 1.75rem);
  color:       var(--color-primary);
}
.marquee-set { display: flex; flex-shrink: 0; }
.marquee-item {
  margin-left:  2.5rem;
  margin-right: 2.5rem;
  opacity:      0.9;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 40s linear infinite; }

/* ── About ─────────────────────────────────────────────────────────────── */
.about-section { position: relative; }
.about-inner {
  padding-top:    6rem;
  padding-bottom: 8rem;
  display:        grid;
  gap:            3rem;
  align-items:    center;
}
@media (min-width: 1024px) {
  .about-inner {
    grid-template-columns: 5fr 7fr;
    padding-top:    8rem;
    padding-bottom: 10rem;
  }
}

.about-image-col { position: relative; }
.about-image-frame {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow:     hidden;
  border:       1px solid rgba(23,38,31,0.15);
  box-shadow:   0 25px 50px rgba(0,0,0,0.15);
}
.about-img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transform:  scale(1.08);
}

.about-badge {
  position:      absolute;
  bottom:        -1.5rem;
  right:         -1rem;
  background:    var(--color-accent);
  color:         var(--color-accent-foreground);
  padding:       0.75rem 1.25rem;
  border-radius: var(--radius);
  box-shadow:    0 8px 24px rgba(0,0,0,0.2);
  font-family:   var(--font-display);
  font-style:    italic;
  font-size:     1.125rem;
  transform:     rotate(-3deg);
  white-space:   nowrap;
}

.about-content-col {
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;
}
@media (min-width: 1024px) { .about-content-col { padding-top: 0; } }

.about-content-col .eyebrow { margin-bottom: 0; }
.about-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  text-wrap: balance;
}
.about-para {
  font-size:   1.125rem;
  color:       color-mix(in srgb, var(--color-foreground) 75%, transparent);
  line-height: 1.7;
}
.about-para--secondary {
  font-size: 1rem;
  color:     color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
.about-para--secondary em { font-style: italic; }

.about-features {
  display:   flex;
  flex-wrap: wrap;
  gap:       1.5rem;
  padding-top: 1rem;
}
.about-feature-item {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  font-size:   0.75rem;
  color:       color-mix(in srgb, var(--color-foreground) 80%, transparent);
}
.about-feature-icon {
  width:           2.25rem;
  height:          2.25rem;
  border-radius:   50%;
  background:      var(--color-secondary);
  border:          1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent);
  display:         grid;
  place-items:     center;
  color:           var(--color-accent);
  flex-shrink:     0;
}
.about-feature-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight:    500;
}

/* ── Shop Section ──────────────────────────────────────────────────────── */
.shop-section {
  border-top:    1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
  background:    color-mix(in srgb, var(--color-secondary) 30%, transparent);
}
.shop-section .container-cottage {
  padding-top:    6rem;
  padding-bottom: 7rem;
}
.section-header { margin-bottom: 3.5rem; }
.section-header .eyebrow { margin-bottom: 0.75rem; display: block; }
.shop-heading {
  font-size:    clamp(2rem, 5vw, 3.5rem);
  line-height:  1.1;
}
.shop-intro {
  margin-top:   1.25rem;
  color:        color-mix(in srgb, var(--color-foreground) 70%, transparent);
  line-height:  1.7;
  max-width:    42rem;
  margin-left:  auto;
  margin-right: auto;
}

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

/* Product Card */
.theme-product-card-wrap {
  height: 100%;
}
.theme-product-card {
  position:        relative;
  background:      var(--color-card);
  border:          1px solid var(--color-border);
  border-radius:   var(--radius);
  overflow:        hidden;
  display:         flex;
  flex-direction:  column;
  height:          100%;
  text-decoration: none;
  color:           var(--color-foreground);
  /* Lovable: shadow-sm → hover:shadow-2xl + leve elevación (whileHover y: -10) */
  transition:      box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                   transform 0.45s cubic-bezier(0.34, 1.25, 0.64, 1);
  box-shadow:      0 1px 2px rgba(23, 38, 31, 0.06);
}
.theme-product-card:hover {
  transform:  translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(23, 38, 31, 0.14);
}

/* Hit-area overlay — Pattern A */
.theme-card-link {
  position: absolute;
  inset:    0;
  z-index:  1;
  pointer-events: auto;
  display:  block;
}
.theme-product-card > * { pointer-events: none; }
.theme-product-card .add_to_cart_button,
.theme-product-card .theme-card-link { pointer-events: auto; }

.theme-product-card__image-wrapper {
  position:     relative;
  aspect-ratio: 1/1;
  overflow:     hidden;
  background:   var(--color-muted);
}
.theme-product-card__image-wrapper img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.7s ease;
}
.theme-product-card:hover .theme-product-card__image-wrapper img {
  transform: scale(1.05);
}

.theme-product-card:hover .product-card-cta {
  text-decoration:     underline;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .theme-product-card,
  .theme-product-card:hover {
    transition: none;
    transform:  none;
  }
  .theme-product-card:hover {
    box-shadow: 0 1px 2px rgba(23, 38, 31, 0.06);
  }
  .theme-product-card__image-wrapper img,
  .theme-product-card:hover .theme-product-card__image-wrapper img {
    transition: none;
    transform:  none;
  }
}

.theme-product-card__info {
  padding: 1.25rem;
  flex:    1;
  display: flex;
  flex-direction: column;
}

.product-card-collection {
  font-size:      0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color:          var(--color-accent);
  margin-bottom:  0.375rem;
}
.product-card-collection a { color: inherit; }

.product-card-name-row {
  display:     flex;
  align-items: baseline;
  justify-content: space-between;
  gap:         0.75rem;
  min-width:   0;
}
.product-card-name {
  font-family: var(--font-display);
  font-size:   1.5rem;
  line-height: 1.2;
  min-width:   0;
  overflow:    hidden;
}
.product-card-price {
  font-family: var(--font-display);
  font-size:   1.25rem;
  color:       var(--color-primary);
  flex-shrink: 0;
}
.product-card-price .amount { color: var(--color-primary); }
.product-card-price del     { opacity: 0.6; font-size: 0.875em; }

.product-card-tagline {
  margin-top:     0.25rem;
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          color-mix(in srgb, var(--color-foreground) 50%, transparent);
}
.product-card-desc {
  margin-top:  0.75rem;
  font-size:   0.875rem;
  color:       color-mix(in srgb, var(--color-foreground) 70%, transparent);
  line-height: 1.65;
  overflow:    hidden;
  display:     -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  flex:        1;
}
.product-card-sold-out {
  display:        inline-block;
  margin-top:     0.5rem;
  font-size:      0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          #c0392b;
  font-weight:    500;
}
.product-card-cta {
  display:        inline-block;
  margin-top:     1rem;
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          var(--color-primary);
}
.theme-product-card:hover .product-card-cta { text-decoration: underline; text-underline-offset: 4px; }

/* Show All Button */
.shop-show-all-wrap {
  display:         flex;
  justify-content: center;
  margin-top:      3rem;
}
.shop-show-all {
  border-color: var(--color-primary);
  color:        var(--color-primary);
}
.shop-show-all:hover {
  background: var(--color-primary);
  color:      var(--color-primary-foreground);
}
.shop-empty { text-align: center; color: var(--color-muted-foreground); padding: 2rem 0; }

/* ── How It Works ──────────────────────────────────────────────────────── */
.hiw-section {
  position:  relative;
  isolation: isolate;
  overflow:  hidden;
}
.hiw-bg-sticky {
  position:  absolute;
  inset:     0;
  z-index:   0;
  pointer-events: none;
}
.hiw-bg-img {
  position:   sticky;
  top:        0;
  height:     100vh;
  width:      100%;
  background-size:     cover;
  background-position: center;
}
.hiw-overlay {
  position:   absolute;
  inset:      0;
  background: color-mix(in srgb, var(--color-primary) 85%, transparent);
  backdrop-filter: blur(2px);
}

.hiw-content {
  position:       relative;
  z-index:        10;
  padding-top:    6rem;
  padding-bottom: 7rem;
}
.hiw-header { max-width: 42rem; margin-bottom: 3.5rem; }
.hiw-eyebrow { color: var(--color-accent); }
.hiw-heading {
  font-family: var(--font-display);
  font-size:   clamp(2rem, 4vw, 3rem);
  color:       var(--color-primary-foreground);
  margin-top:  0.75rem;
}

.hiw-steps-wrapper { position: relative; }
.hiw-connector {
  display: none;
}
@media (min-width: 768px) {
  .hiw-connector {
    display:  block;
    position: absolute;
    top:      1.75rem;
    left:     calc(100% / 6);
    right:    calc(100% / 6);
    height:   1px;
    background: rgba(255,255,255,0.2);
    overflow:  hidden;
  }
}
.hiw-connector-fill {
  height:     100%;
  background: var(--color-accent);
  transform-origin: left;
  transform:  scaleX(0);
  transition: transform 1.4s ease-in-out;
}
.hiw-connector-fill.is-animated { transform: scaleX(1); }

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

.hiw-step {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
}
@media (min-width: 768px) {
  .hiw-step { align-items: flex-start; text-align: left; }
}

.hiw-step-circle {
  position:      relative;
  z-index:       10;
  width:         3.5rem;
  height:        3.5rem;
  border-radius: 50%;
  background:    var(--color-accent);
  color:         var(--color-accent-foreground);
  display:       grid;
  place-items:   center;
  font-family:   var(--font-display);
  font-size:     1.25rem;
  box-shadow:    0 4px 16px rgba(0,0,0,0.2);
  outline:       4px solid var(--color-primary);
  flex-shrink:   0;
}
.hiw-step-card {
  margin-top:    1.5rem;
  background:    var(--color-card);
  border:        1px solid rgba(23,38,31,0.1);
  border-radius: var(--radius);
  padding:       1.5rem;
  width:         100%;
  transition:    border-color 0.3s;
}
.hiw-step-card:hover { border-color: color-mix(in srgb, var(--color-accent) 40%, transparent); }
.hiw-step-title {
  font-family: var(--font-display);
  font-size:   1.5rem;
  margin-bottom: 0.75rem;
}
.hiw-step-desc {
  font-size:   0.875rem;
  color:       color-mix(in srgb, var(--color-foreground) 70%, transparent);
  line-height: 1.7;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-section {
  background:    color-mix(in srgb, var(--color-secondary) 30%, transparent);
  border-top:    1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
}
.faq-inner {
  padding-top:    6rem;
  padding-bottom: 7rem;
  display:        grid;
  gap:            3rem;
}
@media (min-width: 1024px) {
  .faq-inner { grid-template-columns: 4fr 8fr; }
}

.faq-intro-col { }
.faq-intro-col .eyebrow { margin-bottom: 0.75rem; display: block; }
.faq-heading {
  font-size:   clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-top:  0.75rem;
}
.faq-intro-text {
  margin-top:  1.25rem;
  color:       color-mix(in srgb, var(--color-foreground) 70%, transparent);
  line-height: 1.7;
}

.faq-accordion { width: 100%; }
.faq-item {
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}
.faq-trigger {
  width:           100%;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1rem;
  padding:         1.25rem 0;
  background:      none;
  border:          none;
  text-align:      left;
  cursor:          pointer;
  color:           var(--color-foreground);
  transition:      color 0.3s;
}
.faq-trigger:hover { color: var(--color-accent); }
.faq-question {
  font-family: var(--font-display);
  font-size:   clamp(1rem, 2vw, 1.25rem);
  line-height: 1.3;
}
.faq-chevron {
  flex-shrink: 0;
  transition:  transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  color:       var(--color-foreground);
  opacity:     0.5;
}
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-trigger[aria-expanded="true"] { color: var(--color-accent); }
.faq-trigger[aria-expanded="true"] .faq-chevron { opacity: 1; }

/* Acordeón: animación suave al abrir/cerrar (grid 0fr → 1fr, sin `hidden`). */
.faq-answer {
  display:               grid;
  grid-template-rows:    0fr;
  transition:            grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                         opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  opacity:               0;
}
.faq-answer--open {
  grid-template-rows:    1fr;
  opacity:                 1;
}
.faq-answer--closed {
  grid-template-rows:    0fr;
  opacity:                 0;
}
.faq-answer-inner {
  min-height: 0;
  overflow:   hidden;
}
.faq-answer-text {
  padding:     0 0 1.25rem 0;
  color:       color-mix(in srgb, var(--color-foreground) 75%, transparent);
  line-height: 1.7;
  font-size:   1rem;
  transform:   translateY(-4px);
  transition:  transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
               opacity 0.35s ease 0.05s;
  opacity:     0.92;
}
.faq-answer--open .faq-answer-text {
  transform: translateY(0);
  opacity:   1;
}
.faq-answer--closed .faq-answer-text {
  transform: translateY(-6px);
  opacity:   0;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-answer-text,
  .faq-chevron {
    transition: none !important;
  }
}

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-section { }
.contact-inner {
  padding-top:    6rem;
  padding-bottom: 7rem;
  display:        grid;
  gap:            3.5rem;
  align-items:    center;
}
@media (min-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr 1fr; }
}

.contact-copy-col .eyebrow { margin-bottom: 1rem; display: block; }
.contact-heading {
  font-size:   clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
}
.contact-heading-accent {
  display:     block;
  opacity:     0.9;
  font-style:  italic;
  font-family: var(--font-display);
}
.contact-subtext {
  margin-top:  1.5rem;
  opacity:     0.8;
  max-width:   28rem;
  line-height: 1.7;
}

.contact-cards-col { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display:          flex;
  align-items:      flex-start;
  gap:              1rem;
  padding:          1.25rem;
  border-radius:    var(--radius);
  border:           1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
  background:       var(--color-card);
  transition:       border-color 0.3s;
  text-decoration:  none;
  color:            var(--color-foreground);
}
.contact-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 60%, transparent);
}
.contact-card-icon {
  color:       var(--color-accent);
  flex-shrink: 0;
  margin-top:  0.125rem;
}
.contact-card-label {
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity:        0.6;
  margin-bottom:  0.25rem;
}
.contact-card-value {
  font-family: var(--font-display);
  font-size:   1.125rem;
  word-break:  break-all;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background:   var(--color-primary);
  color:        var(--color-primary-foreground);
  border-top:   1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
}
.footer-grid {
  padding-top:    4rem;
  padding-bottom: 4rem;
  display:        grid;
  gap:            2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-logo-link {
  display:         inline-block;
  text-decoration: none;
  color:           inherit;
  margin-bottom:   0.25rem;
}
.footer-logo-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.footer-logo-wrap { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo { filter: brightness(0) invert(1); }
.footer-logo-text { font-family: var(--font-display); font-size: 1.25rem; }
.site-logo-img.footer-logo {
  height: var(--logo-height) !important;
  width:  auto !important;
}
.footer-blurb {
  font-size:   0.875rem;
  opacity:     0.8;
  line-height: 1.7;
  max-width:   20rem;
}

.footer-col-heading {
  font-family:   var(--font-display);
  font-size:     1.25rem;
  margin-bottom: 1rem;
}

.footer-contact-list {
  display:        flex;
  flex-direction: column;
  gap:            0.75rem;
  font-size:      0.875rem;
  opacity:        0.9;
  padding:        0;
  margin:         0;
}
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact-link { transition: color 0.3s; overflow-wrap: break-word; word-break: break-all; }
.footer-contact-link:hover { color: var(--color-accent); }

.theme-footer-nav-list {
  display:        flex;
  flex-direction: column;
  gap:            0.5rem;
  font-size:      0.875rem;
  opacity:        0.9;
  padding:        0;
  margin:         0;
  list-style:     none;
}
.theme-footer-nav-list li { margin: 0; }
.footer-footer-nav-link,
.theme-footer-nav-list a {
  color:      inherit;
  transition: color 0.3s;
}
.theme-footer-nav-list a:hover { color: var(--color-accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); }
.footer-bottom-inner {
  padding:     1.25rem 0;
  font-size:   0.75rem;
  opacity:     0.7;
  display:     flex;
  flex-wrap:   wrap;
  justify-content: space-between;
  gap:         0.75rem;
}
.footer-credit-link { text-decoration: underline; transition: color 0.3s; }
.footer-credit-link:hover { color: var(--color-accent); }
.footer-tagline { font-family: var(--font-display); font-style: italic; }

/* ── Single Product — Lovable DOM parity (main > .container-cottage > .grid) ─ */
.bg-background { background-color: var(--color-background); }
.min-h-screen { min-height: 100vh; }

body.single-product main#main.pt-28 {
  padding-top: max(7rem, calc(var(--header-height) + 2.5rem));
}
body.single-product main#main.pb-20 {
  padding-bottom: 5rem;
}
body.single-product .mb-8 { margin-bottom: 2rem; }
body.single-product .mt-24 { margin-top: 6rem; }

body.single-product .product-single-grid {
  display:   grid;
  gap:       3rem;
  min-width: 0;
}
@media (min-width: 1024px) {
  body.single-product .product-single-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:                   4rem;
  }
}

body.single-product .product-single-outer > .woocommerce-notices-wrapper:not(:empty) {
  margin-bottom: 1.5rem;
}

.product-back-link,
.back-to-shop-link {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  font-size:       0.875rem;
  line-height:     1.25;
  color:           color-mix(in srgb, var(--color-foreground) 60%, transparent);
  transition:      color 0.25s ease;
  text-decoration: none;
}
.product-back-link:hover,
.back-to-shop-link:hover { color: var(--color-primary); }

/* Gallery — aspect-square, rounded-md, image absolute inset-0 */
.theme-product-gallery { min-width: 0; }
.theme-product-main-image {
  aspect-ratio:    1 / 1;
  border-radius:   var(--radius);
  overflow:        hidden;
  background:      var(--color-muted);
  border:          1px solid var(--color-border);
  position:        relative;
}
.theme-product-main-image .product-main-image-el {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: opacity 0.25s ease;
}

.product-gallery-nav {
  position:        absolute;
  top:             50%;
  transform:       translateY(-50%);
  width:           2.5rem;
  height:          2.5rem;
  border-radius:   9999px;
  border:          1px solid var(--color-border);
  background:    color-mix(in srgb, var(--color-background) 90%, transparent);
  backdrop-filter: blur(8px);
  color:           var(--color-foreground);
  display:         grid;
  place-items:     center;
  cursor:          pointer;
  transition:      background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  z-index:         2;
  box-shadow:      0 1px 3px rgba(0, 0, 0, 0.06);
}
.product-gallery-nav:hover {
  background: var(--color-background);
  border-color: var(--color-border);
  color:        var(--color-primary);
}
.product-gallery-nav--prev { left: 0.75rem; }
.product-gallery-nav--next { right: 0.75rem; }

.theme-product-thumbnails {
  display:               grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:                   0.75rem;
  margin-top:            1rem;
  max-width:             100%;
}
.product-thumb-btn {
  aspect-ratio:    1 / 1;
  width:           100%;
  max-width:       none;
  border-radius:   var(--radius);
  overflow:        hidden;
  border:          2px solid var(--color-border);
  background:      none;
  padding:         0;
  transition:      border-color 0.2s ease, box-shadow 0.2s ease;
  cursor:          pointer;
}
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb-btn.is-active {
  border-color: var(--color-primary);
  box-shadow:   0 0 0 1px color-mix(in srgb, var(--color-primary) 35%, transparent);
}
.product-thumb-btn:hover:not(.is-active) {
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
}

/* Info column */
.theme-product-info { min-width: 0; }

.product-single-lead > :first-child { margin-top: 0; }

.product-single-eyebrow.eyebrow {
  margin-bottom: 0.75rem;
  display:       block;
  font-size:     0.75rem;
  letter-spacing: 0.3em;
}

.product-single-title {
  font-family:    var(--font-display);
  font-size:      clamp(2.25rem, 4.5vw, 3.125rem);
  line-height:    1.1;
  font-weight:    400;
  margin-bottom:  1rem;
  letter-spacing: -0.02em;
}

.product-single-price-wrap {
  display:       flex;
  flex-wrap:     wrap;
  align-items:   baseline;
  gap:           0.5rem 0.75rem;
  margin-bottom: 1.5rem;
}
.product-single-price {
  font-family: var(--font-display);
  font-size:   1.875rem;
  color:       var(--color-primary);
  line-height: 1.15;
}
.product-single-price .amount { color: var(--color-primary); }
.product-single-price del { opacity: 0.55; font-size: 0.85em; }
.product-single-price ins { text-decoration: none; }

.product-single-price-currency {
  font-size:      0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          color-mix(in srgb, var(--color-foreground) 50%, transparent);
  font-family:    var(--font-body);
  font-weight:    500;
}

.product-single-price-qty-note {
  flex-basis:     100%;
  width:          100%;
  margin:         0;
  font-size:      0.875rem;
  line-height:    1.4;
  color:          color-mix(in srgb, var(--color-foreground) 50%, transparent);
  font-weight:    400;
  text-transform: none;
  letter-spacing: normal;
}
@media (min-width: 768px) {
  .product-single-price-qty-note {
    flex-basis: auto;
    width:      auto;
    margin-left: 0.75rem;
  }
}

.product-sold-out-badge {
  display:        inline-block;
  margin-bottom:  1rem;
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          #a33025;
  background:     color-mix(in srgb, #c0392b 12%, transparent);
  padding:        0.35rem 0.85rem;
  border-radius:  var(--radius);
}

.product-single-story {
  color:         color-mix(in srgb, var(--color-foreground) 75%, transparent);
  line-height:   1.625;
  margin-bottom: 2rem;
  font-size:     1rem;
  overflow-wrap: break-word;
  word-break:    break-word;
}
.product-single-story p { margin: 0 0 1em; }
.product-single-story p:last-child { margin-bottom: 0; }
.product-single-story ul { margin: 0.5em 0 1em 1.1em; padding: 0; list-style: disc; }

.product-single-collection-line {
  font-size:      0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color:          var(--color-accent);
  font-weight:    500;
  margin-bottom:  0.75rem;
}

.product-single-badges {
  display:        flex;
  flex-wrap:      wrap;
  gap:            1rem;
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          color-mix(in srgb, var(--color-foreground) 60%, transparent);
  margin-bottom:  2rem;
}
.product-badge {
  display:     inline-flex;
  align-items: center;
  gap:         0.375rem;
  color:       var(--color-primary);
}
.product-badge svg {
  flex-shrink: 0;
  width:       0.875rem;
  height:      0.875rem;
  color:       var(--color-primary);
}

/* Purchase — border-t pt-8 space-y-5 */
.theme-add-to-cart-area {
  border-top:     1px solid var(--color-border);
  padding-top:    2rem;
  display:        flex;
  flex-direction: column;
  gap:            1.25rem;
}

.theme-variations-wrap {
  margin-bottom: 0;
}

.theme-quantity-wrapper.product-form-wrapper {
  display:     flex;
  align-items: center;
  gap:         1rem;
  border:      none;
}
.product-qty-label {
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          color-mix(in srgb, var(--color-foreground) 60%, transparent);
  flex-shrink:    0;
}
.qty-control {
  display:       inline-flex;
  align-items:   center;
  border:        1px solid var(--color-border);
  border-radius: var(--radius);
}
.theme-qty-minus,
.theme-qty-plus {
  width:       2.5rem;
  height:      2.5rem;
  background:  none;
  border:      none;
  display:     grid;
  place-items: center;
  color:       var(--color-foreground);
  cursor:      pointer;
  transition:  background-color 0.2s;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-muted); }
.theme-qty-input {
  width:       3rem;
  text-align:  center;
  font-family: var(--font-display);
  font-size:   1.125rem;
  line-height: 1.2;
  border:      none;
  outline:     none;
  background:  none;
  color:       var(--color-foreground);
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.product-atc-row {
  display:        flex;
  flex-direction: column;
  flex-wrap:      nowrap;
  gap:            0.75rem;
}
@media (min-width: 640px) {
  .product-atc-row {
    flex-direction: row;
    flex-wrap:      nowrap;
  }
}
.product-add-to-cart,
.product-buy-now {
  flex:            1;
  justify-content: center;
  min-width:       0;
}

.product-fda-disclaimer {
  margin-top:  1.5rem;
  font-size:   0.75rem;
  line-height: 1.5;
  color:       color-mix(in srgb, var(--color-foreground) 50%, transparent);
  font-style:  italic;
  font-family: var(--font-display);
}

.product-single-details {
  margin-top:  2rem;
  padding-top: 1.5rem;
  border-top:  1px solid var(--color-border);
}
.product-details-heading {
  font-family:   var(--font-display);
  font-size:     1.125rem;
  font-weight:   400;
  margin-bottom: 0.75rem;
}
.product-single-details-body {
  color:       color-mix(in srgb, var(--color-foreground) 72%, transparent);
  line-height: 1.7;
  font-size:   0.95rem;
}
.product-single-details-body p { margin: 0 0 0.85em; }

/* Variations — native selects only (WooCommerce JS requires visible selects) */
.single-product .variations.shop_attributes,
.single-product .variations { border-collapse: collapse; width: 100%; }
.single-product .variations tbody tr {
  display:        flex;
  flex-direction: column;
  gap:            0.35rem;
  margin-bottom:  1.25rem;
}
.single-product .variations tbody tr:last-of-type { margin-bottom: 0; }
.single-product .variations tbody td {
  display: block;
  width:   100%;
  padding: 0;
}
.single-product .variations tbody td.label label {
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          color-mix(in srgb, var(--color-foreground) 60%, transparent);
  font-weight:    500;
}

select.theme-variation-select,
.single-product .variations select {
  width:            100%;
  max-width:        100%;
  min-height:       3rem;
  padding:          0.625rem 2.75rem 0.625rem 1rem;
  font-family:      var(--font-body);
  font-size:        0.875rem;
  font-weight:      500;
  letter-spacing:   0.02em;
  color:            var(--color-foreground);
  background-color: var(--color-background);
  border:           1px solid var(--color-border);
  border-radius:    var(--radius);
  cursor:           pointer;
  appearance:       none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23485b52' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  transition:       border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
select.theme-variation-select:hover,
.single-product .variations select:hover {
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
  background-color: var(--color-background);
}
select.theme-variation-select:focus,
.single-product .variations select:focus {
  outline:      none;
  border-color: var(--color-primary);
  box-shadow:   0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.single-product .single_variation_wrap {
  display:        flex;
  flex-direction: column;
  gap:            1.25rem;
}
.single-product .single_variation_wrap .woocommerce-variation-price {
  display: none;
}

/* Related — spacing via .mt-24 on section (Lovable) */
.related-products-header {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  gap:             1rem;
  margin-bottom:   2rem;
}
.related-products-heading {
  font-family: var(--font-display);
  font-size:   clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}
.related-view-all {
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          var(--color-primary);
  text-decoration: none;
  flex-shrink:    0;
  transition:     opacity 0.2s ease;
}
.related-view-all:hover { text-decoration: underline; text-underline-offset: 4px; }

.related-products-section .related-products-grid.theme-product-grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   1.5rem;
}
@media (min-width: 640px) {
  .related-products-section .related-products-grid.theme-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.theme-product-card--related {
  border-radius: var(--radius);
  overflow:      hidden;
  border:        1px solid var(--color-border);
  transition:    box-shadow 0.35s ease, transform 0.35s ease;
}
a.theme-product-card--related.product-related-card {
  text-decoration: none;
  color:             inherit;
}
a.theme-product-card--related.product-related-card > * {
  pointer-events: auto;
}
.theme-product-card--related:hover {
  box-shadow: 0 16px 40px rgba(23, 38, 31, 0.08);
  transform:  translateY(-4px);
}
.theme-product-card__info--related {
  padding: 1.25rem 1.35rem;
}

/* Single product: restore outline vs solid CTAs (overrides global WC button skin) */
.single-product a.product-buy-now--variation.disabled {
  pointer-events: none;
  opacity:        0.45;
  cursor:         not-allowed;
}

.single-product a.product-add-to-cart,
.single-product .product-add-to-cart.btn-outline {
  background-color: transparent !important;
  color:            var(--color-foreground) !important;
  border:           1px solid color-mix(in srgb, var(--color-primary) 50%, transparent) !important;
}
.single-product a.product-add-to-cart:hover,
.single-product .product-add-to-cart.btn-outline:hover {
  opacity:            1 !important;
  background-color:   var(--color-primary) !important;
  color:              var(--color-primary-foreground) !important;
  border-color:       var(--color-primary) !important;
  transform:          translateY(-2px);
}

.single-product a.product-buy-now,
.single-product .product-buy-now.btn-primary,
.single-product button.theme-btn-primary {
  background-color: var(--color-primary) !important;
  color:              var(--color-primary-foreground) !important;
  border:             none !important;
}
.single-product a.product-buy-now:hover,
.single-product .product-buy-now.btn-primary:hover,
.single-product button.theme-btn-primary:hover:not(:disabled) {
  opacity:            1 !important;
  background-color:   var(--color-accent) !important;
  color:              var(--color-accent-foreground) !important;
  transform:          translateY(-2px);
}

.single-product .single_add_to_cart_button,
.single-product .add_to_cart_button {
  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:       background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.2s ease !important;
}

.single-product .single_add_to_cart_button.button:disabled,
.single-product .single_add_to_cart_button.button.disabled,
.single-product .add_to_cart_button.button:disabled,
.single-product .add_to_cart_button.button.disabled {
  cursor:         not-allowed !important;
  opacity:        0.45 !important;
  pointer-events: none !important;
  transform:      none !important;
}

.ajax_add_to_cart.theme-btn-loading {
  opacity:        0.65 !important;
  pointer-events: none !important;
  cursor:         wait !important;
}

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

.single-product .product-single-grid .woocommerce-message,
.single-product .product-single-grid .woocommerce-info { display: none; }

.single-product .product-single-grid,
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding:       1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size:     0.875rem;
}
.woocommerce-message { background: color-mix(in srgb, var(--color-primary) 10%, transparent); border-left: 4px solid var(--color-primary); }
.woocommerce-error   { background: rgba(192,57,43,0.1); border-left: 4px solid #c0392b; }
.woocommerce-info    { background: color-mix(in srgb, var(--color-accent) 10%, transparent); border-left: 4px solid var(--color-accent); }

/* ── Shop Archive ──────────────────────────────────────────────────────── */
.shop-archive-section .container-cottage {
  padding-top:    5rem;
  padding-bottom: 5rem;
}
.shop-archive-heading {
  font-size:   clamp(2rem, 4vw, 3rem);
  margin-top:  0.75rem;
  margin-bottom: 1rem;
}
.shop-pagination {
  display:         flex;
  justify-content: center;
  margin-top:      3rem;
  gap:             0.5rem;
}
.shop-pagination a,
.shop-pagination span {
  padding:       0.5rem 0.875rem;
  border-radius: var(--radius);
  border:        1px solid var(--color-border);
  font-size:     0.875rem;
  transition:    background-color 0.2s, border-color 0.2s;
}
.shop-pagination a:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.shop-pagination .current { background-color: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }

/* ── Checkout (bloques WC) ─────────────────────────────────────────────── */
/* Mismo respiro que .inner-page-main (no reducir padding-top aquí o el h1 queda bajo el header fijo). */
body.woocommerce-checkout .site-main {
  padding-bottom: 4rem;
}

/* Quitar límites del tema que comprimen el checkout (70ch en hijos de .entry-content). */
body.woocommerce-checkout #page-content,
body.woocommerce-checkout .inner-page-content,
body.woocommerce-checkout .entry-content {
  max-width: none;
}
body.woocommerce-checkout .entry-content > * {
  max-width:     none;
  width:         100%;
  box-sizing:    border-box;
}

body.woocommerce-checkout h1.page-title {
  font-family:   var(--font-display);
  font-size:     clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  padding-left:  1.5rem;
  padding-right: 1.5rem;
  max-width:     min(100%, 1280px);
  margin-left:   auto;
  margin-right:  auto;
  box-sizing:    border-box;
}

/* Raíz del bloque checkout: ancho deseado, centrado (DOM: .wp-block-woocommerce-checkout + .wc-block-checkout). */
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout,
body.woocommerce-checkout .entry-content .wc-block-checkout,
.entry-content .wp-block-woocommerce-checkout:has(.wc-block-components-sidebar-layout),
.entry-content .wc-block-checkout:has(.wc-block-components-sidebar-layout) {
  width:          100%;
  max-width:      min(100%, 1280px);
  margin-left:    auto;
  margin-right:   auto;
  box-sizing:     border-box;
}

/* Avisos: misma anchura y centrado que el checkout (clase real: wc-block-components-notices). */
body.woocommerce-checkout .entry-content .wc-block-components-notices,
.entry-content .wp-block-woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-checkout > .wc-block-components-notices {
  display:        block;
  width:          100%;
  max-width:      min(100%, 1280px);
  margin-left:    auto;
  margin-right:   auto;
  box-sizing:     border-box;
}

/* Layout de 2 columnas: el grid real está en .wc-block-components-sidebar-layout (frontend WC). */
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    display:               grid !important;
    flex-wrap:            unset !important;
    grid-template-columns: 1fr minmax(280px, 340px) !important;
    gap:                   1.5rem !important;
    align-items:           start;
    width:                 100% !important;
    max-width:             100%;
    margin-left:           0 !important;
    margin-right:          0 !important;
    box-sizing:            border-box;
  }

  body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices {
    grid-column: 1 / -1;
    order:       1;
    max-width:   100%;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-main {
    order:     2;
    min-width: 0;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
    order:     3;
    min-width: 280px;
    max-width: 100%;
  }

  /* Anula anchos flex 65%/35% del CSS de bloques. */
  body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-main,
  body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
    width:         100% !important;
    padding-left:  0 !important;
    padding-right: 0 !important;
    box-sizing:    border-box;
  }
}

@media (max-width: 767px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    display:        flex !important;
    flex-direction: column !important;
    gap:            1.5rem !important;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
    min-width: 0 !important;
    order:     unset;
  }
}

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

/* Sidebar resumen — paridad Lovable: sticky top-28, bg-card, border, rounded-md, p-6 */
body.woocommerce-checkout .wc-block-components-sidebar.wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-card) !important;
  border:           1px solid var(--color-border) !important;
  border-radius:    var(--radius) !important;
  padding:          1.5rem !important;
  box-shadow:       0 1px 3px rgba(23, 38, 31, 0.06);
}

body.woocommerce-checkout .wc-block-checkout__sidebar.is-sticky {
  position: sticky !important;
  top:      max(7rem, calc(var(--header-height) + 1.5rem)) !important;
  z-index:  1;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  width:            100%;
  min-width:        0;
  max-width:        100%;
  box-sizing:       border-box;
  border:           none !important;
  border-radius:    0 !important;
  background:       transparent !important;
  font-size:        0.875rem;
  line-height:      1.5;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
  font-family:   var(--font-display);
  font-size:     1.5rem !important;
  font-weight:   400 !important;
  line-height:   1.2;
  margin:        0 0 1.25rem !important;
  padding:       0 !important;
  border:        none !important;
  color:         var(--color-foreground);
}

body.woocommerce-checkout .wc-block-components-order-summary {
  padding: 0 !important;
}

/* Evita layout tipo tabla que impide que la miniatura rellene el hueco (DOM WC). */
body.woocommerce-checkout .wc-block-components-order-summary__content {
  display: block !important;
  width:   100%;
}

body.woocommerce-checkout .wc-block-components-order-summary-item {
  display:        flex !important;
  align-items:    flex-start;
  padding-bottom: 1rem !important;
  margin-bottom:  0 !important;
  gap:            0.75rem;
  border-bottom:  none !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image {
  position:    relative;
  flex-shrink: 0;
  width:       4rem !important;
  height:      4rem !important;
  overflow:    visible;
  border:      none;
  background:  transparent;
  /* Oculta texto suelto de WC ("%d item") sin afectar al badge .__quantity */
  font-size:   0;
  line-height: 0;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image .screen-reader-text {
  position:   absolute !important;
  width:      1px !important;
  height:     1px !important;
  padding:    0 !important;
  margin:     -1px !important;
  overflow:   hidden !important;
  clip:       rect(0, 0, 0, 0) !important;
  clip-path:  inset(50%) !important;
  border:     0 !important;
  white-space: nowrap !important;
}

/* Badge de cantidad (esquina); antes quedaba cortado por overflow:hidden del padre. */
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
  position:      absolute;
  top:           0.125rem;
  right:         0.125rem;
  z-index:       3;
  box-sizing:    border-box;
  min-width:     1.35rem;
  min-height:    1.35rem;
  padding:       0.2rem 0.45rem;
  font-family:   var(--font-body) !important;
  font-size:     0.6875rem !important;
  font-weight:   600 !important;
  line-height:   1.2 !important;
  letter-spacing: 0.02em;
  white-space:   nowrap;
  text-align:    center;
  color:         var(--color-primary-foreground);
  background:  var(--color-primary);
  border-radius: 9999px;
  border:        2px solid var(--color-card);
  box-shadow:    0 1px 2px rgba(23, 38, 31, 0.12);
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image .wc-block-components-product-image {
  position:      absolute;
  inset:         0;
  display:       block;
  width:         100%;
  height:        100%;
  margin:        0;
  border-radius: var(--radius);
  overflow:      hidden;
  border:        1px solid var(--color-border);
  background:    var(--color-muted);
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image > a {
  position:      absolute;
  inset:         0;
  display:       block;
  width:         100%;
  height:        100%;
  margin:        0;
  border-radius: var(--radius);
  overflow:      hidden;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  position:   absolute;
  inset:      0;
  width:      100% !important;
  height:     100% !important;
  max-width:  none !important;
  object-fit: cover;
  display:    block;
}

body.woocommerce-checkout .wc-block-components-product-name {
  font-family: var(--font-display);
  font-size:   1rem !important;
  font-weight: 400 !important;
  line-height: 1.25;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description {
  color: color-mix(in srgb, var(--color-foreground) 50%, transparent);
  font-size: 0.75rem;
  line-height: 1.4;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-totals-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-totals-block.wc-block-components-totals-wrapper {
  border-top:     1px solid var(--color-border) !important;
  padding-top:    1rem !important;
  margin-top:     0.5rem;
  padding-bottom: 0 !important;
}

body.woocommerce-checkout .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-totals-footer-item {
  display:         flex !important;
  justify-content: space-between !important;
  align-items:     baseline;
  gap:             1rem;
  font-size:       0.875rem !important;
  color:           color-mix(in srgb, var(--color-foreground) 70%, transparent) !important;
  margin:          0 0 0.5rem !important;
  padding:         0 !important;
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-weight: 400;
}

body.woocommerce-checkout .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-family: var(--font-display);
  font-weight: 400;
  color:       var(--color-foreground);
}

body.woocommerce-checkout .wc-block-components-totals-footer .wc-block-components-totals-footer-item:last-of-type {
  border-top:     1px solid var(--color-border) !important;
  padding-top:    0.75rem !important;
  margin-top:     0.75rem !important;
  margin-bottom:  0 !important;
  font-family:    var(--font-display);
  font-size:      1.25rem !important;
  color:          var(--color-foreground) !important;
}

body.woocommerce-checkout .wc-block-components-totals-footer .wc-block-components-totals-footer-item:last-of-type .wc-block-components-totals-item__value {
  font-size:   1.25rem !important;
  color:       var(--color-primary) !important;
  font-weight: 400;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color:            var(--color-primary-foreground) !important;
  border-radius:    var(--btn-radius) !important;
  font-family:      var(--font-body) !important;
  font-size:        0.8rem !important;
  letter-spacing:   0.1em !important;
  text-transform:   uppercase !important;
  width:            100% !important;
  padding:          0.875rem !important;
  margin-top:       1.5rem !important;
}

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) !important;
  font-size:   0.9rem !important;
  color:       var(--color-foreground) !important;
  border:      1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  background:  var(--color-card) !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 color-mix(in srgb, var(--color-primary) 20%, transparent) !important;
}
body.woocommerce-checkout .wc-block-cart-items table,
body.woocommerce-checkout .wc-block-cart-items { width: 100%; }

/* ── Thank You Page (§22.8) ────────────────────────────────────────────── */
body.theme-thankyou-page { overflow-x: hidden; }
.thankyou-content {
  max-width:  var(--container-max);
  margin:     0 auto;
  padding:    2rem 1.5rem;
}
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);
  font-size:     1.5rem;
  padding-bottom: 1rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display:   flex;
  flex-wrap: wrap;
  gap:       1rem 2rem;
  padding:   1.25rem;
  background: var(--color-muted);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  list-style: none;
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-overview strong { font-weight: 600; }
body.theme-thankyou-page .woocommerce-order-details table {
  width:        100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size:    0.875rem;
}
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; }

/* ── Inner Page ────────────────────────────────────────────────────────── */
.inner-page-main {
  padding-top:    calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  min-height:     60vh;
}
.page-title {
  font-family:   var(--font-display);
  font-size:     clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}
.entry-content > * { max-width: 70ch; }
.entry-content p { margin-bottom: 1em; line-height: 1.7; }

/* ── 404 Page ──────────────────────────────────────────────────────────── */
.not-found-main {
  min-height:      80vh;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      var(--color-muted);
}
.not-found-content {
  text-align: center;
  padding:    2rem;
}
.not-found-404 {
  font-family:  var(--font-display);
  font-size:    6rem;
  line-height:  1;
  color:        color-mix(in srgb, var(--color-foreground) 20%, transparent);
  margin-bottom: 1rem;
}
.not-found-heading {
  font-family:   var(--font-display);
  font-size:     2rem;
  margin-bottom: 1rem;
}
.not-found-subtext {
  color:         var(--color-muted-foreground);
  margin-bottom: 2rem;
}
.not-found-btn { margin: 0 auto; }

/* ── Scroll Reveal Animations ──────────────────────────────────────────── */
.fade-up {
  opacity:    0;
  transform:  translateY(28px);
  filter:     blur(8px);
  transition: opacity 1.05s cubic-bezier(0.16,1,0.3,1),
              transform 1.05s cubic-bezier(0.16,1,0.3,1),
              filter 1.05s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.is-visible {
  opacity:   1;
  transform: translateY(0);
  filter:    blur(0px);
}
.fade-up-delay { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    transition: opacity 0.4s ease;
    transform: none;
    filter: none;
  }
  .animate-marquee { animation-duration: 80s; }
  .hero-scroll-line { animation: none; }
}

/* ── WooCommerce Breadcrumb remove ─────────────────────────────────────── */
.woocommerce-breadcrumb { display: none; }

/* ── WooCommerce: shop_attributes table ────────────────────────────────── */
.shop_attributes td,
.shop_attributes th {
  padding:      0.5rem 0;
  font-size:    0.875rem;
}

/* ── Responsive Helpers ────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .about-badge { right: 0; bottom: -1rem; font-size: 0.9rem; }
  .about-image-col { padding-bottom: 2rem; }
  .hiw-step-card { text-align: center; }
}
