/* ================================================================
   WithMyHandsAndHeart — theme.css
   ================================================================ */

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES (overridden via wp_add_inline_style)
   ---------------------------------------------------------------- */
:root {
  --color-primary:            #bd1f1f;
  --color-primary-foreground: #fafafa;
  --color-background:         #fafafa;
  --color-foreground:         #141414;
  --color-secondary:          #ece7e1;
  --color-secondary-foreground: #262626;
  --color-muted:              #e3dfda;
  --color-muted-foreground:   #666666;
  --color-border:             #d9d4cf;
  --color-button-text:        #fafafa;
  --color-surface:            #f5f2ef;

  /* Typekit (kkf1wfu) + Google Outfit. font-display = Tailwind `font-display` de Lovable (tailwind.config.ts) */
  --font-display: 'willard-sniffin-script', cursive;
  --font-body:    'Outfit', sans-serif;
  --radius:       6px;
  --btn-radius:   var(--radius);
  /* Match shadcn Button size="lg" (h-11, px-8) */
  --btn-height:   2.75rem;
  --btn-padding:  0 2rem;
  --btn-font-size:   1rem;
  --btn-font-weight: 600;
  --btn-letter-spacing: 0.01em;
  --btn-text-transform: none;
  --btn-icon-padding: 0.5rem;
  /* 5rem = solid bar; inicio en home 6rem (puesto por script + main.js) */
  --header-height: 5rem;
  --shadow-soft:     0 4px 20px -4px rgba(20,20,20,0.06);
  --shadow-elevated: 0 8px 40px -8px rgba(20,20,20,0.12);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  /* Lovable / Framer panel del menú móvil: ease [0.22, 1, 0.36, 1] */
  --ease-mobile-menu: cubic-bezier(0.22, 1, 0.36, 1);
  --logo-height: 36px;
  --card-radius:      8px;
  --checkout-gap:     2rem;
  --section-padding:  2rem;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
/* Alineación con anchor + header fijo (scroll-mt-24 ≈ 6rem de utilidad) */
#hero, #about, #shop, #services, #testimonials, #faq, #contact {
  scroll-margin-top: calc(var(--admin-bar-offset) + var(--header-height) + 0.5rem);
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--color-background);
  color: var(--color-foreground);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

/* ----------------------------------------------------------------
   TIPO — display = willard (Lovable); el peso lo fija cada componente
   Especificidad alta: WooCommerce / plugins
   ---------------------------------------------------------------- */
html body .font-display,
html body h1.font-display,
html body h2.font-display,
html body h3.font-display,
html body .hero-title,
html body .section-heading,
html body .contact-heading,
html body .page-title,
html body .product-title,
html body .related-products-title,
html body .cart-drawer-title,
html body .site-logo-text,
html body .page-404 h1,
html body .site-wordmark,
html body .footer-wordmark,
.font-display {
  font-family: var(--font-display);
  font-synthesis: none;
}
.text-muted   { color: var(--color-muted-foreground); }
.text-center  { text-align: center; }
.text-large   { font-size: 1.25rem; }

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

.py-12  { padding-top: 3rem;  padding-bottom: 3rem; }
.py-20  { padding-top: 5rem;  padding-bottom: 5rem; }
.mb-8   { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  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);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border-color: var(--color-primary);
}
.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background-color: var(--color-secondary);
}

.btn-outline-hero {
  background: transparent;
  color: var(--color-background);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-hero:hover {
  background: rgba(255,255,255,0.1);
}

.btn-lg { min-height: 2.75rem; padding: 0 2rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

/* ----------------------------------------------------------------
   SECTION REUSABLES
   ---------------------------------------------------------------- */
/* Igual que Index: eyebrow text-sm, tracking, sin mb; h2 con mt-3 (0.75rem) */
.section-eyebrow {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0;
}
.section-header { margin-bottom: 3rem; }
.section-header .section-heading { margin-top: 0.75rem; }
.section-heading {
  font-family: var(--font-display);
  /* text-4xl md:text-5xl: 2.25rem → 3rem */
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0;
}
/* “How it Works”: bloque título con mb-16 (4rem) en Lovable */
.process-section .section-header { margin-bottom: 4rem; }
/* Shop: h2 con mb-8 bajo título de bloque */
.shop-section .section-header .section-heading { margin-bottom: 2rem; }

/* ----------------------------------------------------------------
   SCROLL ANIMATIONS
   ---------------------------------------------------------------- */
.scroll-reveal-section .scroll-reveal-left,
.scroll-reveal-section .scroll-reveal-scale,
.scroll-reveal-section .scroll-reveal-blur,
.scroll-reveal-section .scroll-reveal-item,
.stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.scroll-reveal-section .scroll-reveal-left {
  transform: translateX(-30px);
}
.scroll-reveal-section .scroll-reveal-scale {
  transform: scale(0.95) translateY(20px);
}
.scroll-reveal-section .in-view,
.stagger-item.in-view {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------
   SITE HEADER
   ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: var(--admin-bar-offset);
  left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.5s var(--transition-smooth),
              border-color 0.5s,
              box-shadow 0.5s,
              height 0.5s var(--transition-smooth);
  height: var(--header-height);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  animation: slideHeaderIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}

@keyframes slideHeaderIn {
  to { transform: translateY(0); }
}

/* Transparent state (home at top) */
.site-header:not(.is-solid) {
  background: transparent;
  color: var(--color-background);
}

/* Solid state: h-20 = 5rem (variable lo controla main.js) */
.site-header.is-solid {
  background: rgba(250,250,250,0.95);
  backdrop-filter: blur(12px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-soft);
  color: var(--color-foreground);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

/* Logo */
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}
.site-logo-img  { height: var(--logo-height) !important; width: auto !important; display: block; transition: height 0.5s; }
/* Lovable: logo h-12 (48px) hero transparente, h-9 (36px) barra sólida */
.site-header:not(.is-solid) .site-logo-img { height: 3rem !important; }
.site-header.is-solid .site-logo-img { height: var(--logo-height) !important; }
.site-logo-text { line-height: var(--logo-height); font-family: var(--font-display); font-size: 1.5rem; }

.site-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size 0.5s;
}
.site-header:not(.is-solid) .site-wordmark {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

/* Desktop nav */
.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; gap: 2rem; }
  .site-header.is-solid .site-wordmark { font-size: clamp(1.125rem, 1.5vw, 1.5rem); }
  .site-header:not(.is-solid) .site-wordmark { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
}
.theme-nav-list { list-style: none; display: flex; align-items: center; gap: 2rem; }
.theme-nav-link,
.theme-nav-list a {
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  position: relative;
  padding: 0;
  transition: opacity 0.2s;
  text-decoration: none;
}
.theme-nav-link::after,
.theme-nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after,
.theme-nav-list a:hover::after { transform: scaleX(1); }

/* Nav actions */
/* gap-2 entre iconos (Index) */
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: inherit;
  transition: opacity 0.2s;
}
.cart-btn:hover { opacity: 0.6; }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 20px; height: 20px;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-btn {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: inherit;
  transition: opacity 0.2s;
}
.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn.is-open .icon-menu { display: none; }
.mobile-menu-btn.is-open .icon-close { display: block; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* Mobile menu (Lovable: overlay opacity 0.3s, panel height+opacity 0.35s, enlaces con stagger) */
@media (min-width: 1024px) {
  .mobile-menu-overlay,
  .mobile-menu-panel { display: none !important; }
}
@media (max-width: 1023.98px) {
  .mobile-menu { position: relative; }
  @keyframes mobile-nav-item-in {
    from {
      opacity: 0;
      transform: translate3d(-20px, 0, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: calc(var(--admin-bar-offset) + var(--header-height));
    background: rgba(20, 20, 20, 0.2);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
  }
  .mobile-menu.is-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-menu-panel {
    display: block;
    position: absolute;
    left: calc(-1.5rem);
    right: calc(-1.5rem);
    top: 0;
    background: var(--color-background);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-elevated);
    z-index: 50;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: max-height 0.35s var(--ease-mobile-menu), opacity 0.35s var(--ease-mobile-menu);
  }
  .mobile-menu.is-open .mobile-menu-panel {
    max-height: min(32rem, 85vh);
    opacity: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav-list { list-style: none; padding: 1rem 1.5rem; }
  .mobile-nav-list li {
    border: none;
    opacity: 0;
    transform: translate3d(-20px, 0, 0);
  }
  .mobile-menu.is-open .mobile-nav-list li {
    animation: mobile-nav-item-in 0.2s ease-out both;
  }
  .mobile-menu.is-open .mobile-nav-list li:nth-child(1)  { animation-delay: 0.1s; }
  .mobile-menu.is-open .mobile-nav-list li:nth-child(2)  { animation-delay: 0.15s; }
  .mobile-menu.is-open .mobile-nav-list li:nth-child(3)  { animation-delay: 0.2s; }
  .mobile-menu.is-open .mobile-nav-list li:nth-child(4)  { animation-delay: 0.25s; }
  .mobile-menu.is-open .mobile-nav-list li:nth-child(5)  { animation-delay: 0.3s; }
  .mobile-menu.is-open .mobile-nav-list li:nth-child(6)  { animation-delay: 0.35s; }
  .mobile-menu.is-open .mobile-nav-list li:nth-child(7)  { animation-delay: 0.4s; }
  .mobile-menu.is-open .mobile-nav-list li:nth-child(8)  { animation-delay: 0.45s; }
  .mobile-menu.is-open .mobile-nav-list li:nth-child(9)  { animation-delay: 0.5s; }
  .mobile-menu.is-open .mobile-nav-list li:nth-child(10) { animation-delay: 0.55s; }
  @media (prefers-reduced-motion: reduce) {
    .mobile-menu-overlay,
    .mobile-menu-panel { transition: none; }
    .mobile-menu .mobile-nav-list li { opacity: 1; transform: none; }
    .mobile-menu.is-open .mobile-nav-list li { animation: none; }
  }
}
.mobile-nav-link,
.mobile-nav-list a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-list a:hover { color: var(--color-primary); transform: translateX(6px); }

/* ----------------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-foreground);
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,0.6);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(8rem + var(--admin-bar-offset));
  padding-bottom: 8rem;
  text-align: center;
}
.hero-inner { max-width: 42rem; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
}
/*
 * Lovable: text-4xl md:text-5xl lg:text-6xl font-semibold leading-tight mb-6 text-background
 * (tamaños fijos en breakpoints, no clamp)
 */
.hero-title {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 600; /* font-semibold */
  color: var(--color-background);
  line-height: 1.25; /* leading-tight (Tailwind) */
  margin-bottom: 1.5rem; /* mb-6 */
}
@media (min-width: 768px) {
  .hero-title { font-size: 3rem; } /* md:text-5xl */
}
@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; } /* lg:text-6xl */
}
.hero-body {
  font-size: 1.25rem;
  color: rgba(250,250,250,0.7);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  line-height: 1.625;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.scroll-mouse {
  width: 24px; height: 40px;
  border: 2px solid rgba(250,250,250,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-dot {
  width: 4px; height: 8px;
  background: rgba(250,250,250,0.6);
  border-radius: 2px;
  animation: scrollBounce 2s infinite ease-in-out;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* Hero entrance animations */
.animate-hero-1 { opacity: 0; animation: heroFadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.3s forwards; }
.animate-hero-2 { opacity: 0; animation: heroFadeBlur 1s cubic-bezier(0.22,1,0.36,1) 0.5s forwards; }
.animate-hero-3 { opacity: 0; animation: heroFadeBlur 1s cubic-bezier(0.22,1,0.36,1) 0.7s forwards; }
.animate-hero-4 { opacity: 0; animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.9s forwards; }
.animate-hero-5 { opacity: 0; animation: fadeInDelay 1s ease 1.5s forwards; }

@keyframes heroFadeUp    { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:none; } }
@keyframes heroFadeBlur  { from { opacity:0; transform:translateY(40px); filter:blur(8px); } to { opacity:1; transform:none; filter:blur(0); } }
@keyframes fadeInDelay   { from { opacity:0; } to { opacity:1; } }

/* ----------------------------------------------------------------
   VALUE BAR
   ---------------------------------------------------------------- */
.value-bar {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  overflow: hidden;
}
.value-bar-inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .value-bar-inner { flex-direction: row; gap: 0; }
}
.value-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}
.value-bar-sep {
  display: none;
  opacity: 0.4;
  margin: 0 1rem;
}
@media (min-width: 640px) { .value-bar-sep { display: block; } }

/* ----------------------------------------------------------------
   ABOUT SECTION
   ---------------------------------------------------------------- */
.about-section { padding: 5rem 0; }
.about-section .section-heading { margin-bottom: 1.5rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.about-copy { min-width: 0; }
.about-para {
  color: var(--color-muted-foreground);
  line-height: 1.7;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.about-image-wrap { display: flex; justify-content: center; min-width: 0; }
.about-image-frame {
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  max-width: 28rem;
  width: 100%;
  box-shadow: var(--shadow-elevated);
}
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ----------------------------------------------------------------
   WHAT WE OFFER
   ---------------------------------------------------------------- */
.offer-section {
  background-color: var(--color-secondary);
  padding: 5rem 0;
}
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .offer-grid { grid-template-columns: 1fr 1fr; }
}
.offer-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}
.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(189,31,31,0.15);
}
.offer-card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.offer-card-desc  { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.6; }

/* ----------------------------------------------------------------
   HOW IT WORKS
   ---------------------------------------------------------------- */
.process-section { padding: 5rem 0; }

/* Desktop stepper (max-w-4xl = 56rem) */
.process-desktop {
  display: none;
  position: relative;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .process-desktop { display: flex; } }

.process-line-bg,
.process-line-fill {
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
}
.process-line-bg   { background: var(--color-border); }
.process-line-fill {
  background: var(--color-primary);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.22,1,0.36,1);
}
.process-line-fill.animate { transform: scaleX(1); }

.process-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 25%;
  padding: 0 1rem;
}
.process-icon-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--color-background);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.process-step:hover .process-icon-circle {
  transform: scale(1.1) rotate(5deg);
}
.process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.process-step-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-step-desc  { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.6; }

/* Mobile timeline */
.process-mobile {
  position: relative;
  padding-left: 3rem;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .process-mobile { display: none; } }

.process-mobile-line-bg,
.process-mobile-line-fill {
  position: absolute;
  left: 19px;
  top: 0; bottom: 0;
  width: 2px;
}
.process-mobile-line-bg   { background: var(--color-border); }
.process-mobile-line-fill {
  background: var(--color-primary);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.5s ease 0.2s;
}
.process-mobile-line-fill.animate { transform: scaleY(1); }

.process-mobile-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
}
.process-mobile-step:last-child { padding-bottom: 0; }
.process-mobile-number {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
.process-mobile-content { flex: 1; min-width: 0; }
.process-mobile-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}
.process-mobile-heading h3 { color: var(--color-foreground); }

/* ----------------------------------------------------------------
   SHOP SECTION
   ---------------------------------------------------------------- */
.shop-section { padding: 5rem 0; }

.shop-search-wrap { max-width: 28rem; margin: 0 auto 1.5rem; }
.shop-search-field {
  position: relative;
}
.shop-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-foreground);
  pointer-events: none;
}
.shop-search-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  border-radius: var(--radius);
  padding: 0 2.5rem 0 2.5rem;
  font-size: 1rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.shop-search-input::placeholder { color: var(--color-muted-foreground); }
.shop-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(189,31,31,0.15);
}
.shop-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-foreground);
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.shop-search-clear:hover { color: var(--color-foreground); }

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0;
}
.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--color-secondary);
  color: var(--color-secondary-foreground);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.filter-btn:hover  { background: var(--color-muted); transform: translateY(-2px); }
.filter-btn.is-active {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

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

/* Product card */
.theme-product-card-wrap {
  min-width: 0;
}
.theme-product-card-wrap.is-hidden { display: none; }

.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Debe anular .theme-product-card * { pointer-events: none } o el enlace no recibe clics */
  pointer-events: auto;
}
.theme-product-card * { pointer-events: none; }
.theme-product-card .theme-card-link,
.theme-product-card .add_to_cart_button,
.theme-product-card .card-quick-add { pointer-events: auto; }
.theme-product-card__image-wrapper,
.theme-product-card__info {
  position: relative;
  z-index: 2;
}

.theme-product-card__image-wrapper {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  margin-bottom: 1rem;
}
.theme-product-card__image-wrapper img,
.theme-product-card__image-wrapper .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.theme-product-card:hover .theme-product-card__image-wrapper img,
.theme-product-card:hover .theme-product-card__image-wrapper .product-img {
  transform: scale(1.08);
}
.theme-product-card:hover { }

.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.375rem; }
.product-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted-foreground);
}
.product-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  transition: opacity 0.2s;
}
.theme-product-card:hover .product-card-title { opacity: 0.7; }
.product-card-excerpt {
  font-size: 1rem;
  color: var(--color-muted-foreground);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card-price {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-foreground);
  margin-top: auto;
}
.product-card-price .woocommerce-Price-amount { font-size: inherit; }

/* Badges */
.sold-out-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-foreground);
  color: var(--color-background);
  border-radius: 9999px;
  z-index: 3;
  pointer-events: none;
}
.new-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: 9999px;
  z-index: 3;
  pointer-events: none;
}
.customizable-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(250,250,250,0.85);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  z-index: 3;
  pointer-events: none;
}

/* Quick-add button */
.card-quick-add {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(250,250,250,0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 4;
  text-decoration: none;
  color: var(--color-foreground);
}
.card-quick-add:hover {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  transform: scale(1.15);
}
.card-quick-add.just-added {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}
.card-quick-add .icon-plus { display: block; }
.card-quick-add .icon-check { display: none; }
.card-quick-add.just-added .icon-plus  { display: none; }
.card-quick-add.just-added .icon-check { display: block; }

/* Empty state */
.shop-empty {
  text-align: center;
  padding: 5rem 0;
  grid-column: 1 / -1;
}
.shop-empty p { color: var(--color-muted-foreground); margin-bottom: 1rem; }

/* ----------------------------------------------------------------
   TESTIMONIALS
   ---------------------------------------------------------------- */
.testimonials-section { padding: 5rem 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-md-up { display: none; }
.testimonial-lg-only { display: none; }
@media (min-width: 768px)  { .testimonial-md-up  { display: flex; } }
@media (min-width: 1024px) { .testimonial-lg-only { display: flex; } }

.testimonial-card {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(20,20,20,0.1);
}
.star-row {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}
.star-icon { color: var(--color-primary); fill: var(--color-primary); }
.testimonial-text {
  color: var(--color-muted-foreground);
  line-height: 1.7;
  font-size: 1rem;
  flex: 1;
  margin-bottom: 1rem;
}
.testimonial-byline {
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}
.testimonial-name { font-size: 1rem; font-weight: 500; }

/* ----------------------------------------------------------------
   FAQ SECTION
   ---------------------------------------------------------------- */
.faq-section { padding: 5rem 0; }
.faq-inner   { max-width: 48rem; margin: 0 auto; }
.faq-categories { display: flex; flex-direction: column; gap: 2.5rem; }

.faq-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(189,31,31,0.3); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  gap: 1rem;
}
.faq-question:hover { background: rgba(0,0,0,0.02); }
.faq-q-text {
  font-size: 1rem;
  font-weight: 500;
  flex: 1;
  transition: color 0.2s;
}
.faq-item.is-open .faq-q-text { color: var(--color-primary); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--color-muted-foreground);
  transition: transform 0.3s var(--transition-smooth), color 0.2s;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.35s var(--transition-smooth);
}
.faq-answer-inner { padding: 0 1.25rem 1.25rem; }
.faq-answer-inner p { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }

/* ----------------------------------------------------------------
   CONTACT SECTION
   ---------------------------------------------------------------- */
.contact-section {
  background: var(--color-foreground);
  color: var(--color-background);
  padding: 5rem 0;
}
/* max-w-2xl = 42rem (Index) */
.contact-inner { max-width: 42rem; margin: 0 auto; }
.contact-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 1rem;
}
.contact-body {
  font-size: 1.125rem;
  color: rgba(250,250,250,0.7);
  margin-bottom: 1.5rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  font-size: 1rem;
  color: rgba(250,250,250,0.6);
}
@media (min-width: 640px) {
  .contact-links { flex-direction: row; gap: 2rem; }
}
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250,250,250,0.6);
  transition: color 0.2s;
  text-decoration: none;
}
.contact-link-item:hover { color: var(--color-primary); }
.contact-email-link { color: inherit; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .contact-form-row { grid-template-columns: 1fr 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(250,250,250,0.8);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(250,250,250,0.08);
  border: 1px solid rgba(250,250,250,0.2);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--color-background);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(250,250,250,0.35); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.form-field textarea { resize: none; }
.form-submit { text-align: center; padding-top: 0.5rem; }

/* Contact success state */
.contact-success {
  text-align: center;
  padding: 2rem 0;
}
.contact-success-icon {
  width: 64px; height: 64px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary-foreground);
}
.contact-success h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-success p  { color: rgba(250,250,250,0.7); }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border);
}
/* Lovable: container-wide py-12 lg:py-16 (aire arriba y abajo de todo el bloque) */
.site-footer .container-wide {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 1024px) {
  .site-footer .container-wide {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 0;
  padding-bottom: 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .footer-brand { grid-column: 1; }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (min-width: 1024px) {
  .footer-wordmark { font-size: 1.5rem; }
}
.footer-tagline {
  font-size: 1rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
  max-width: 22rem;
}
.footer-col-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-nav-list,
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-list a,
.footer-nav-list button {
  font-size: 1rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  text-decoration: none;
  text-align: left;
}
.footer-nav-list a:hover,
.footer-nav-list button:hover { color: var(--color-foreground); }
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--color-muted-foreground);
}
.footer-contact-list a {
  color: inherit;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-contact-list a:hover { color: var(--color-foreground); }

/* Lovable: mt-12 pt-8 gap-3 text-sm; sm:flex-row justify-between items-center */
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem; /* gap-3 */
  text-align: center;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.5;
  color: var(--color-muted-foreground);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .footer-bottom p { text-align: left; }
}
.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--color-foreground); }

/* ----------------------------------------------------------------
   CART DRAWER
   ---------------------------------------------------------------- */
/* Mismo criterio que .mobile-menu-overlay: no cubrir el header fijo; si no, z-index 200
   queda por encima del header (100) y bloquea toda la navegación mientras el carrito está abierto. */
#theme-cart-overlay {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(var(--admin-bar-offset) + var(--header-height));
  background: rgba(20,20,20,0.2);
  z-index: 200;
}
body.cart-open #theme-cart-overlay { display: block; animation: fadeIn 0.3s ease forwards; }

#theme-cart-drawer {
  position: fixed;
  right: 0;
  top: calc(var(--admin-bar-offset) + var(--header-height));
  height: calc(100% - var(--admin-bar-offset) - var(--header-height));
  width: 100%;
  max-width: 28rem;
  background: var(--color-background);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }

#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.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;
}
.cart-drawer-header-left { display: flex; align-items: center; gap: 0.75rem; }
.cart-drawer-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.cart-empty-btn {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.cart-empty-btn:hover { color: hsl(0 84% 60%); }
.cart-close-btn {
  padding: 0.25rem;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cart-close-btn:hover { opacity: 0.6; }

.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  gap: 0.75rem;
}
.cart-empty-icon { color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.cart-empty-text { color: var(--color-muted-foreground); font-size: 1rem; }

.cart-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cart-item { display: flex; gap: 1rem; }
.cart-item-img-link {
  width: 80px; height: 96px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.cart-item-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-foreground);
  text-decoration: none;
  transition: opacity 0.2s;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price    { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.cart-item-variation{ font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.cart-qty-btn {
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  transition: background 0.2s;
  border-radius: var(--radius);
}
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-qty-display { font-size: 0.875rem; min-width: 1.5rem; text-align: center; }
.cart-remove-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.cart-subtotal-label { color: var(--color-muted-foreground); }
.cart-subtotal-amount{ font-weight: 500; }
.cart-shipping-note  { font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-checkout-btn   { width: 100%; }

/* ----------------------------------------------------------------
   SINGLE PRODUCT PAGE (ver padding-top con .theme-inner-page al final del CSS)
   ---------------------------------------------------------------- */
.pb-product { padding-top: 0px; padding-bottom: 5rem; }

/* Espacio bajo el enlace, como py-6 inferior del bloque en Lovable */
.back-to-shop-row { margin-bottom: 1.5rem; padding-top: 0; }
.back-to-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}
.back-to-shop-link:hover { color: var(--color-foreground); }

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

/* Single Product: prevent overflow */
.theme-product-gallery,
.theme-product-info { min-width: 0; max-width: 100%; }

/* Gallery */
.product-main-img-wrap {
  aspect-ratio: 3/4;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: zoom-in;
}
.product-main-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.product-main-img-wrap:hover .product-main-img { transform: scale(1.03); }

.theme-product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 100%;
}
.product-thumb-btn {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  background: none;
  padding: 0;
  opacity: 0.6;
}
.product-thumb-btn:hover { opacity: 1; }
.product-thumb-btn.is-active { border-color: var(--color-foreground); opacity: 1; }
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product info */
.theme-product-info { padding-top: 0; }
@media (min-width: 1024px) { .theme-product-info { padding-top: 2.5rem; } }

.product-category-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}
.product-category-label a {
  color: inherit;
  text-decoration: none;
}
.product-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.product-price .woocommerce-Price-amount { font-size: inherit; }
.product-sold-out-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.product-description {
  color: var(--color-muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Variations table */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-size: 0.875rem; font-weight: 500; }
.single-product .variations tbody td.value { padding-top: 0; }
.single-product .variations select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: var(--color-background);
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s;
}
.single-product .variations select:focus { border-color: var(--color-primary); }

/* Quantity + add to cart (Lovable: flex gap-3, quantity en caja, CTA con precio de línea) */
.theme-add-to-cart-area {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: center;
  min-width: 0;
}
.theme-quantity-wrapper {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.theme-add-to-cart-area .theme-qty-minus,
.theme-add-to-cart-area .theme-qty-plus {
  padding: 0.75rem 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-foreground);
  transition: background 0.2s;
  line-height: 1;
  min-width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-add-to-cart-area .theme-qty-minus:hover,
.theme-add-to-cart-area .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-add-to-cart-area .theme-qty-input {
  padding: 0.75rem 0.5rem;
  min-width: 2.5rem;
  max-width: 3.5rem;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  background: none;
  outline: none;
  -moz-appearance: textfield;
  line-height: 1.25;
}
.theme-add-to-cart-area .theme-qty-input::-webkit-inner-spin-button,
.theme-add-to-cart-area .theme-qty-input::-webkit-outer-spin-button { display: none; }

/* Selectores de botón: fila legible, CTA a ancho restante (como flex-1 min-w-0) */
.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;
  text-decoration: none !important;
  flex: 1 1 auto;
  min-width: 160px;
}
.theme-add-to-cart-area .single_add_to_cart_button,
.theme-add-to-cart-area a.single_add_to_cart_button,
.theme-add-to-cart-area button.single_add_to_cart_button {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  min-height: 3rem !important;
  padding: 0.5rem 1.25rem !important;
  white-space: normal;
  line-height: 1.2 !important;
}
.theme-add-to-cart-line-inner .woocommerce-Price-amount {
  font-weight: inherit;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}

/* Lovable: absolute bottom-3 right-3, 32x32, backdrop + round */
.theme-product-card__image-wrapper .add_to_cart_button.ajax_add_to_cart,
.theme-product-card__image-wrapper .card-quick-add {
  position: absolute !important;
  bottom: 0.75rem;
  right: 0.75rem;
  left: auto;
  top: auto;
  z-index: 3;
  min-height: 2rem !important;
  padding: 0 !important;
  border: none;
  border-radius: 50% !important;
  width: 2rem !important;
  height: 2rem !important;
  min-width: unset !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: none !important;
  background: rgba(250, 250, 250, 0.9) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--color-foreground) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: 0 4px 6px -1px rgba(20, 20, 20, 0.1), 0 2px 4px -2px rgba(20, 20, 20, 0.1);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.theme-product-card__image-wrapper .add_to_cart_button.ajax_add_to_cart svg,
.theme-product-card__image-wrapper .card-quick-add svg { display: block; }
.theme-product-card__image-wrapper .add_to_cart_button.ajax_add_to_cart:hover,
.theme-product-card__image-wrapper .card-quick-add:hover {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  box-shadow: 0 4px 6px -1px rgba(20, 20, 20, 0.12);
}

/* Hide "View cart" link after AJAX add */
.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 loading state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

.product-dispatch-note {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  text-align: center;
  margin-bottom: 1rem;
}

/* Details section */
.product-details-section { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.product-details-label   { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.product-details-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-details-content li,
.product-details-content p {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-details-content li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* WooCommerce notices */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

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

/* Variations */
.woocommerce-variation-description {
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}
.posted_in {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ----------------------------------------------------------------
   ARCHIVE PRODUCT PAGE
   ---------------------------------------------------------------- */
.archive-product-main { padding-top: calc(6rem + var(--admin-bar-offset)); }
.archive-shop-title { margin-bottom: 2rem; }

/* ----------------------------------------------------------------
   PAGE / GENERIC
   ---------------------------------------------------------------- */
.site-main.page-main { padding-top: calc(8rem + var(--admin-bar-offset)); padding-bottom: 4rem; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 2rem;
}
.entry-content { max-width: 100%; }
.entry-content a { color: var(--color-primary); text-decoration: underline; }
.entry-content p, .entry-content ul, .entry-content ol {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
}

/* ----------------------------------------------------------------
   404
   ---------------------------------------------------------------- */
.page-404 { padding-top: calc(8rem + var(--admin-bar-offset)); min-height: 60vh; }
.page-404 h1 { font-family: var(--font-display); font-size: clamp(4rem, 15vw, 8rem); }

/* ----------------------------------------------------------------
   CHECKOUT
   ---------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
  padding-top: calc(var(--admin-bar-offset) + var(--header-height));
  padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content { max-width: 100%; }
body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  padding: 2rem 0 1.5rem;
}
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-checkout {
    display: block;
  }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--checkout-gap);
    align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-surface);
  border-radius: var(--card-radius);
  padding: var(--section-padding);
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(189,31,31,0.15);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  border: none !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  border-radius: var(--btn-radius) !important;
  width: 100% !important;
  min-height: var(--btn-height) !important;
}
body.woocommerce-checkout { overflow-x: hidden; }

/* ----------------------------------------------------------------
   THANK YOU PAGE
   ---------------------------------------------------------------- */
body.theme-thankyou-page .woocommerce-order { max-width: 720px; margin: 0 auto; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
body.theme-thankyou-page .woocommerce-order-overview {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  flex: 1 1 auto;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview strong { color: var(--color-foreground); }
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 table tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details table 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;
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   INNER PAGE HEADER SOLID OVERRIDE
   ---------------------------------------------------------------- */
.theme-inner-page .site-header { }

/* ----------------------------------------------------------------
   WOOCOMMERCE GENERAL OVERRIDES
   ---------------------------------------------------------------- */
.woocommerce-page .woocommerce-error,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-message {
  background: var(--color-secondary);
  border-top-color: var(--color-primary);
  color: var(--color-foreground);
  font-family: var(--font-body);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

/* ----------------------------------------------------------------
   MISC UTILITIES
   ---------------------------------------------------------------- */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
.animate-fade-in { animation: fadeIn 0.6s var(--transition-smooth) forwards; }
.animate-slide-up{ animation: slideUp 0.6s var(--transition-smooth) forwards; }

.card-hover {
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}
.card-hover:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

/* Inner page padding */
.theme-inner-page .site-main { padding-top: calc(var(--admin-bar-offset) + var(--header-height) + 2rem); }
/* Single product: espacio bajo barra + header (spacer en el flujo) */
body.theme-inner-page .site-main.single-product-main { padding-top: 0 !important; }
.single-product-top-spacer {
  display: block;
  width: 100%;
  min-height: calc(var(--admin-bar-offset) + var(--header-height) + 1.5rem);
  flex-shrink: 0;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .single-product-top-spacer {
    min-height: calc(var(--admin-bar-offset) + var(--header-height) + 1.5rem + 2rem);
  }
}
