/* ==========================================================
   The small Giant — Main Theme Stylesheet
   ========================================================== */

/* ── 1. CSS VARIABLES ── */
:root {
  /* Colores alineados con thesmallgiant-cursor-wp-theme (Tailwind / index.css HSL) */
  --color-primary:     hsl(345, 40%, 30%);
  --color-primary-fg:  hsl(30, 20%, 95%);
  --color-background:  hsl(30, 10%, 95%);
  --color-foreground:  hsl(0, 0%, 10%);
  --color-secondary:   hsl(30, 10%, 90%);
  --color-secondary-fg: hsl(0, 0%, 30%);
  --color-muted:       hsl(30, 8%, 88%);
  --color-muted-fg:    hsl(0, 0%, 40%);
  --color-border:      hsl(30, 8%, 82%);
  --color-footer-bg:   hsl(0, 0%, 8%);
  --color-footer-fg:   hsl(30, 10%, 75%);

  --font-display: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;

  --shadow-soft:     0 4px 24px -4px rgba(0,0,0,0.06);
  --shadow-elevated: 0 8px 40px -8px rgba(0,0,0,0.1);
  --shadow-glow:     0 8px 40px hsl(345 40% 30% / 0.08);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --radius:        0.25rem;
  /* Base logo (px) — Lovable: 56px header, 64px header lg + footer; escala con --logo-height */
  --logo-height:   56px;
  --header-height: 80px;

  --btn-radius:         0px;
  --btn-height:         3rem;
  --btn-padding:        0.875rem 2rem;
  --btn-font-size:      0.75rem;
  --btn-font-weight:    500;
  --btn-letter-spacing: 0.2em;
  --btn-text-transform: uppercase;
  --btn-icon-padding:   0.5rem;

  --card-radius:     0px;
  --section-padding: 2rem;
}

/* ── 2. RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 500; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }
*, *::before, *::after { border-color: var(--color-border); }

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

.scroll-mt { scroll-margin-top: calc(var(--header-height) + 1rem); }

.border-t { border-top: 1px solid var(--color-border); padding-top: 2rem; margin-top: 2rem; }

.site-logo-img  { width: auto !important; display: block; object-fit: contain; }
/* Header / footer: mismas proporciones que Header.tsx (h-14) y Footer (h-16) */
.site-header .site-logo-link .site-logo-img { height: var(--logo-height) !important; }
@media (min-width: 1024px) {
  .site-header .site-logo-link .site-logo-img { height: calc(var(--logo-height) * 64 / 56) !important; }
}
.site-footer .footer-logo.site-logo-img { height: calc(var(--logo-height) * 64 / 56) !important; }
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; display: block; }

/* ── 4. ANIMATIONS ── */
@keyframes fadeIn  { from { opacity: 0; }                    to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-in  { animation: fadeIn  0.6s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition-smooth) forwards; }

.hero-img-blur   { filter: blur(8px);   transition: filter 0.8s var(--transition-smooth); }
.hero-img-loaded { filter: blur(0); }

/* ── 5. BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  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);
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px hsl(345 40% 30% / 0.12);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 8px 30px hsl(345 40% 30% / 0.2); }

/* Misma utilidad que .btn-glow en Lovable (FAQ «Get in Touch») */
.btn-glow { box-shadow: 0 4px 20px hsl(345 40% 30% / 0.12); }
.btn-glow:hover { box-shadow: 0 8px 30px hsl(345 40% 30% / 0.2); }
.btn-primary:disabled,
.btn-primary.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent;
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  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);
  padding: var(--btn-padding);
  min-height: var(--btn-height);
  transition: all 0.2s ease;
}
.btn-outline:hover { border-color: var(--color-foreground); background: var(--color-secondary); }

/* ── 6. EDITORIAL QUOTE ── */
.editorial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  line-height: 1.7;
  color: var(--color-foreground);
}

/* ── 7. FILTER PILLS ── */
.filter-pill {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-body);
  border: 1px solid var(--color-border);
  color: var(--color-muted-fg);
  background: transparent;
  border-radius: 0;
}
.filter-pill:hover { border-color: rgba(26,26,26,0.3); color: var(--color-foreground); }
.filter-pill-active,
.filter-pill-active:hover { background-color: var(--color-primary); color: var(--color-primary-fg); border-color: var(--color-primary); }

/* ── 8. SOLD OUT & EDITION BADGES ── */
.sold-out-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-muted);
  color: var(--color-muted-fg);
  border-radius: 0;
  z-index: 3;
}
@media (min-width: 768px) { .sold-out-badge { top: 0.75rem; left: 0.75rem; padding: 0.375rem 0.75rem; font-size: 0.75rem; } }

.edition-badge {
  position: absolute; top: 0.5rem; right: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: hsl(345 40% 30% / 0.9);
  color: var(--color-primary-fg);
  border-radius: 0;
  z-index: 3;
}
@media (min-width: 768px) { .edition-badge { top: 0.75rem; right: 0.75rem; padding: 0.375rem 0.75rem; font-size: 0.75rem; } }

/* ── 9. CINEMATIC SECTION ── */
.section-cinematic {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.section-cinematic .cinematic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.85) 100%);
}
.cinematic-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}

/* ── 10. FOOTER HEADING ── */
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  position: relative;
  color: var(--color-footer-fg);
}
.footer-heading::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 2.5rem; height: 2px;
  background-color: var(--color-primary);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3), transparent);
}
.site-header.is-solid {
  background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 1024px) { .site-nav { height: 5rem; } }
.site-logo-link { display: flex; align-items: center; }
/* Mismo criterio que Lovable/Header.tsx: logo a color (sin invertir) sobre el gradiente del header */
.site-header .site-logo-img { filter: none; }

.site-nav__desktop { display: none; }
@media (min-width: 768px) { .site-nav__desktop { display: flex; align-items: center; gap: 2.5rem; } }

/* Nav menu items */
.site-nav__desktop .theme-nav-list,
.site-nav__desktop ul { display: flex; align-items: center; gap: 2.5rem; }
.site-nav__desktop .theme-nav-list li,
.site-nav__desktop ul li { }
.site-nav__desktop .theme-nav-list a,
.site-nav__desktop ul a,
.site-nav__desktop button {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.site-header:not(.is-solid) .site-nav__desktop a,
.site-header:not(.is-solid) .site-nav__desktop button {
  color: rgba(255,255,255,0.85);
}
.site-header:not(.is-solid) .site-nav__desktop a:hover,
.site-header:not(.is-solid) .site-nav__desktop button:hover {
  color: #fff;
}
.site-header.is-solid .site-nav__desktop a,
.site-header.is-solid .site-nav__desktop button { color: rgba(26,26,26,0.6); }
.site-header.is-solid .site-nav__desktop a:hover,
.site-header.is-solid .site-nav__desktop button:hover { color: var(--color-foreground); }

.site-nav__actions { display: flex; align-items: center; gap: 0.5rem; }

/* Cart button */
.cart-btn {
  position: relative;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
  color: inherit;
  display: flex; align-items: center;
}
.cart-btn:hover { opacity: 0.6; }
.site-header:not(.is-solid) .cart-btn { color: #fff; }
.site-header.is-solid .cart-btn { color: var(--color-foreground); }

.theme-cart-count {
  position: absolute;
  top: -0.125rem; right: -0.125rem;
  min-width: 1.25rem; height: 1.25rem;
  padding: 0 0.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem; font-weight: 500;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: 9999px;
  line-height: 1;
}
.theme-cart-count:empty { display: none; }

/* Mobile menu toggle */
.mobile-menu-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
  color: inherit;
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-menu-btn:hover { opacity: 0.6; }
.site-header:not(.is-solid) .mobile-menu-btn { color: #fff; }
.site-header.is-solid .mobile-menu-btn { color: var(--color-foreground); }

.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; }

/* Mismo criterio visual que el bloque .site-header / .site-nav (sin capa aparte en el nav) */
.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}
/* Mismo gradiente con o sin scroll (en el tope o tras is-solid): un solo aspecto al abrir el panel */
.site-header .mobile-menu {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 55%,
    rgba(0, 0, 0, 0.2) 100%
  );
  border-top-color: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.mobile-menu.is-open { display: block; animation: fadeIn 0.2s ease; }
.mobile-menu .theme-mobile-nav-list,
.mobile-menu ul { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu .theme-mobile-nav-list a,
.mobile-menu ul a,
.mobile-menu button {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  padding: 0.5rem 0;
  display: block;
  transition: color 0.2s ease;
  text-align: left;
  width: 100%;
  background: none; border: none; cursor: pointer;
}
.site-header .mobile-menu .theme-mobile-nav-list a,
.site-header .mobile-menu ul a,
.site-header .mobile-menu button {
  color: rgba(255, 255, 255, 0.88);
}
.site-header .mobile-menu .theme-mobile-nav-list a:hover,
.site-header .mobile-menu ul a:hover,
.site-header .mobile-menu button:hover {
  color: #fff;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-foreground);
}
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: opacity 3s var(--transition-smooth);
  opacity: 0;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding-bottom: 4rem;
  padding-top: 2rem;
}
@media (min-width: 768px) { .hero-content { padding-bottom: 6rem; } }
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-subheading {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.hero-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
@media (min-width: 768px) { .hero-tagline { font-size: 0.875rem; } }
.hero-tagline__bold { color: #fff; font-weight: 600; }
.hero-cta {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  border: none; border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 0.25rem;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
@media (min-width: 768px) { .hero-cta { font-size: 0.875rem; } }
.hero-cta:hover { color: #fff; border-bottom-color: #fff; }

/* =========================================================
   CONCEPT SECTION
   ========================================================= */
.concept-section {
  padding: 7rem 0; /* Lovable: py-28 */
  background-color: var(--color-secondary);
  position: relative; overflow: hidden;
}
.concept-inner { max-width: 48rem; margin-inline: auto; text-align: center; }
.concept-body {
  color: var(--color-muted-fg);
  margin-top: 2rem;
  line-height: 1.8;
  max-width: 40rem;
  margin-inline: auto;
  font-size: 0.9375rem;
}

/* =========================================================
   FEATURED PAIRING SECTION
   ========================================================= */
.featured-section { padding: 6rem 0; }
@media (min-width: 1024px) { .featured-section { padding: 8rem 0; } }
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 6rem; }
}
.featured-copy { max-width: 32rem; }
.featured-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}
.featured-heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 500;
  margin-top: 0.25rem; /* Lovable: mt-1 */
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.featured-body { color: var(--color-muted-fg); line-height: 1.8; margin-bottom: 1rem; font-size: 0.875rem; }
.featured-product-note { font-size: 0.75rem; color: hsl(0 0% 40% / 0.6); font-style: italic; margin-bottom: 2.5rem; }
.featured-cta {
  display: inline-flex; align-items: center; gap: 1.5rem;
  padding: 0.875rem 2rem;
  border: 1px solid hsl(345 40% 30% / 0.4);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.featured-cta:hover { border-color: var(--color-primary); background-color: hsl(345 40% 30% / 0.05); }
.featured-image-wrap { overflow: hidden; border: 1px solid var(--color-border); }
.featured-image { width: 100%; height: auto; object-fit: cover; object-position: top; aspect-ratio: 4/3; }

/* =========================================================
   CINEMATIC SECTION
   ========================================================= */
.cinematic-section {}
.cinematic-content { position: relative; z-index: 2; padding: 8rem 0; text-align: center; }
.cinematic-label {
  display: block;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); font-weight: 500; margin-bottom: 0.75rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.cinematic-heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 6vw, 3.75rem);
  font-weight: 500; color: #fff;
  margin-bottom: 1rem; line-height: 1.2;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7), 0 1px 6px rgba(0,0,0,0.5);
}
.cinematic-tagline {
  color: rgba(255,255,255,0.9); font-size: 1rem; max-width: 32rem;
  margin-inline: auto; margin-bottom: 2rem; line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
@media (min-width: 768px) { .cinematic-tagline { font-size: 1.125rem; } }
.cinematic-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 0.125rem;
  transition: all 0.2s ease;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.cinematic-cta:hover { color: #fff; border-bottom-color: #fff; }

/* =========================================================
   OUR STORY SECTION
   ========================================================= */
.story-section {}

.story-hero-split {
  display: grid; grid-template-columns: 1fr;
  min-height: 50vh;
}
@media (min-width: 1024px) { .story-hero-split { grid-template-columns: 1fr 1fr; } }

.story-hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 2rem;
}
@media (min-width: 1024px) { .story-hero-copy { padding: 6rem 4rem; } }
@media (min-width: 1280px) { .story-hero-copy { padding: 6rem 6rem; } }

.story-label {
  display: block;
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 500; margin-bottom: 1rem;
}
.story-heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 500; line-height: 1.2; margin-bottom: 1.5rem;
}
.story-body { color: var(--color-muted-fg); line-height: 1.7; max-width: 28rem; font-size: 0.9375rem; }
.story-socials { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.social-icon-link { color: var(--color-muted-fg); transition: color 0.2s ease; }
.social-icon-link:hover { color: var(--color-primary); }

.story-hero-image-wrap { position: relative; min-height: 400px; }
@media (min-width: 1024px) { .story-hero-image-wrap { min-height: 0; } }
.story-hero-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}

/* Brand story dark block */
.story-brand-block { padding: 5rem 0 7rem; background-color: #000; }
@media (min-width: 1024px) { .story-brand-block { padding: 7rem 0; } }
.story-brand-inner { max-width: 64rem; margin-inline: auto; padding-inline: 1.5rem; }
.story-quote { text-align: center; margin-bottom: 4rem; color: rgba(255,255,255,0.9); }
.story-sections { color: rgba(255,255,255,0.7); line-height: 1.9; font-size: 0.9375rem; }
.story-section-item { padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.story-section-item:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.story-section-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.story-section-item p { color: rgba(255,255,255,0.7); }
@media (min-width: 1024px) { .story-section-item { padding: 2.5rem 0; } }

/* =========================================================
   FOUNDERS TEASER SECTION
   ========================================================= */
.founders-section { padding: 5rem 0; background-color: #000; color: #fff; }
.founders-divider { border-color: rgba(255,255,255,0.1); margin-bottom: 5rem; }
.founders-inner { max-width: 48rem; margin-inline: auto; text-align: center; }
.founders-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.founders-elephant { width: 1.25rem; height: 1.25rem; object-fit: contain; }
.founders-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 500; color: #fff; margin-bottom: 1rem;
}
.founders-byline {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem;
}
.founders-body { display: flex; flex-direction: column; gap: 1rem; color: rgba(255,255,255,0.7); line-height: 1.7; font-size: 0.875rem; max-width: 40rem; margin-inline: auto; }

/* =========================================================
   SHOP SECTION
   ========================================================= */
.shop-section { padding: 5rem 0; }
.shop-header { text-align: center; margin-bottom: 3rem; }
.shop-label { display: block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-fg); margin-bottom: 0.5rem; }
.shop-heading { font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 500; margin-bottom: 0.5rem; }
.shop-subheading { font-size: 0.875rem; color: var(--color-muted-fg); }
.shop-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 2.5rem; }
.shop-footnote { font-size: 0.75rem; color: rgba(102,102,102,0.6); font-style: italic; text-align: center; margin-top: 2rem; }

/* Featured product block */
.shop-featured-block { margin-bottom: 4rem; max-width: 64rem; margin-inline: auto; }
.shop-featured-title { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; margin-bottom: 1.5rem; text-align: center; }
.shop-featured-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .shop-featured-pair { grid-template-columns: 1fr; } }
.shop-featured-item { border: 1px solid var(--color-border); overflow: hidden; }
.shop-featured-item img { width: 100%; height: auto; object-fit: cover; object-position: top; aspect-ratio: 1/1; }
.shop-featured-pairing { border: 1px solid var(--color-border); overflow: hidden; }
.shop-featured-pairing img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16/9; }
.shop-featured-caption { font-size: 0.75rem; color: var(--color-muted-fg); text-align: center; padding: 0.5rem; }
.shop-featured-cta-wrap { text-align: center; margin-top: 1.5rem; }
.shop-featured-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--color-primary); transition: color 0.2s ease;
}
.shop-featured-link:hover { color: hsl(345 40% 30% / 0.7); }

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

.theme-product-card-wrap { display: flex; flex-direction: column; }

/* Product card */
.theme-product-card {
  display: flex; flex-direction: column;
  height: 100%;
}
.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
  border: 1px solid var(--color-border);
  pointer-events: auto;
}
.theme-product-card__image {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.7s cubic-bezier(0, 0, 0.2, 1);
  display: block;
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.03); }
.theme-product-card__image.is-sold-out { opacity: 0.6; }

.theme-product-card__hover-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.4) 0%,
    transparent 50%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0; transition: opacity 0.5s cubic-bezier(0, 0, 0.2, 1);
}
.theme-product-card:hover .theme-product-card__hover-overlay { opacity: 1; }

.theme-product-card__hover-content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 1rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  pointer-events: none;
  opacity: 0; transform: translateY(0.5rem);
  transition: opacity 0.5s cubic-bezier(0, 0, 0.2, 1), transform 0.5s cubic-bezier(0, 0, 0.2, 1);
}
.theme-product-card:hover .theme-product-card__hover-content {
  opacity: 1; transform: translateY(0);
}
.theme-product-card__hover-desc {
  color: rgba(255,255,255,0.9); font-size: 0.75rem;
  line-height: 1.5; max-width: 70%;
  pointer-events: none;
}
.theme-product-card__quick-view-btn {
  background: rgba(255,255,255,0.9); color: #000;
  font-size: 0.75rem; font-weight: 500;
  padding: 0.375rem 0.75rem;
  backdrop-filter: blur(4px); flex-shrink: 0;
  pointer-events: none;
}

.theme-product-card__info { flex: 1; }
/* Bloque título + precio enlazado (ProductCard Lovable: Link con space-y-1.5) */
.theme-product-card__title-link {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-decoration: none;
  color: inherit;
}
.theme-product-card__title {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  margin: 0;
  transition: color 0.2s ease;
}
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__meta {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.theme-product-card__price { font-size: 0.875rem; color: var(--color-muted-fg); font-style: italic; }
.theme-product-card__separator { font-size: 0.75rem; color: rgba(102,102,102,0.6); }
.theme-product-card__type { font-size: 0.75rem; color: rgba(102,102,102,0.6); text-transform: uppercase; letter-spacing: 0.1em; }
.theme-product-card__sold-out { font-size: 0.75rem; color: var(--color-muted-fg); }

/* =========================================================
   FAQ SECTION
   ========================================================= */
.faq-section { padding: 5rem 0; background-color: hsl(30 10% 90% / 0.5); } /* Lovable: bg-secondary/50 */
.faq-inner { max-width: 64rem; margin-inline: auto; }
.faq-header { text-align: center; margin-bottom: 3rem; }
.faq-heading { font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 500; margin-bottom: 1rem; }
.faq-subheading { color: var(--color-muted-fg); }

/* FAQ Tabs */
.faq-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .faq-tabs { grid-template-columns: repeat(6, 1fr); }
}
.faq-tab-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.375rem;
  padding: 0.625rem 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.025em;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.3;
  font-family: var(--font-body);
  background: transparent;
  white-space: normal;
}
@media (min-width: 640px) { .faq-tab-btn { font-size: 0.75rem; } }
.faq-tab-btn.is-active {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}
.faq-tab-btn:hover:not(.is-active) { border-color: var(--color-primary); }

/* Tab grid layout — first 3 cols span 2, last 2 cols span 3 */
@media (min-width: 640px) {
  .faq-tab-btn:nth-child(1),
  .faq-tab-btn:nth-child(2),
  .faq-tab-btn:nth-child(3) { grid-column: span 2; }
  .faq-tab-btn:nth-child(4),
  .faq-tab-btn:nth-child(5) { grid-column: span 3; }
}

/* FAQ Panels */
.faq-panel { display: none; }
.faq-panel.is-active { display: block; }
.faq-items { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--color-border); overflow: hidden; }
.faq-item__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem; text-align: left;
  cursor: pointer; transition: background-color 0.2s ease;
  background: transparent;
  font-family: var(--font-body);
}
.faq-item__trigger:hover { background-color: hsl(30 10% 90% / 0.5); }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.faq-item__question { font-weight: 500; padding-right: 1rem; font-size: 0.875rem; }
.faq-item__chevron { flex-shrink: 0; color: var(--color-muted-fg); transition: transform 0.2s ease; }
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer { padding: 0 1.25rem 1.25rem; }
.faq-item__answer p { color: var(--color-muted-fg); font-size: 0.875rem; line-height: 1.7; }

/* FAQ Still */
.faq-still {
  margin-top: 4rem; padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.faq-still__heading { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: 1rem; }
.faq-still__body { color: var(--color-muted-fg); margin-bottom: 1.5rem; font-size: 0.875rem; }

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact-section { padding: 5rem 0; }
.contact-inner { max-width: 56rem; margin-inline: auto; }
.contact-header { text-align: center; margin-bottom: 2.5rem; }
.contact-label { display: block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.5rem; }
.contact-heading { font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 500; margin-bottom: 1rem; }
.contact-intro { color: var(--color-muted-fg); max-width: 28rem; margin-inline: auto; }
.contact-divider { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 2rem auto; }
.contact-divider__line { height: 1px; width: 4rem; background-color: var(--color-border); }
.contact-divider__dot { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background-color: hsl(345 40% 30% / 0.6); }

/* Contact success */
.contact-success { max-width: 32rem; margin-inline: auto; text-align: center; padding: 2.5rem 0; }
.contact-success__icon {
  width: 4rem; height: 4rem;
  background-color: var(--color-primary);
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto; margin-bottom: 1.5rem;
  color: var(--color-primary-fg);
}
.contact-success__heading { font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 500; margin-bottom: 1rem; }
.contact-success__body { color: var(--color-muted-fg); margin-bottom: 2rem; }

/* Contact grid */
.contact-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; } }

.contact-sidebar__inner {
  border: 1px solid var(--color-border);
  background-color: hsl(30 10% 90% / 0.6);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  height: 100%;
}
.contact-sidebar__heading { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; margin-bottom: 0.5rem; }
.contact-sidebar__body { font-size: 0.875rem; color: var(--color-muted-fg); line-height: 1.7; }
.contact-sidebar__divider { border-color: var(--color-border); }
.contact-sidebar__connect-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted-fg); margin-bottom: 0.75rem; }

.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-list__item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.contact-info-list__icon {
  width: 2rem; height: 2rem; border-radius: 9999px;
  background-color: hsl(345 40% 30% / 0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--color-primary);
}
.contact-phone-link,
.contact-email-link { transition: color 0.2s ease; word-break: break-all; }
.contact-phone-link:hover,
.contact-email-link:hover { color: var(--color-primary); }

.contact-socials { display: flex; align-items: center; gap: 0.75rem; }
.contact-social-icon {
  width: 2rem; height: 2rem; border-radius: 9999px;
  background-color: hsl(345 40% 30% / 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  transition: all 0.2s ease;
}
.contact-social-icon:hover { background-color: var(--color-primary); color: var(--color-primary-fg); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .contact-form__row--2col { grid-template-columns: 1fr 1fr; } }
.contact-form__label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.contact-form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  transition: border-color 0.2s ease;
  appearance: none; -webkit-appearance: none;
}
.contact-form__input::placeholder { color: var(--color-muted-fg); }
.contact-form__input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
/* Fijar un chevron: appearance:none en .contact-form__input oculta el de sistema en select */
select.contact-form__input,
select.contact-form__select {
  cursor: pointer;
  padding-right: 2.75rem;
  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='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem 1rem;
}
.contact-form__textarea { resize: none; }
.contact-form__actions { display: flex; }
.contact-form__submit { min-width: 12rem; }

/* =========================================================
   QUICK VIEW MODAL (alineado con Lovable QuickViewModal + Dialog)
   max-w-3xl, md:grid-cols-2, p-8 + justify-between + gap-6, space-y-4 en acciones
   ========================================================= */
.quick-view-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 100;
  /* Radix: bg-foreground/80 (overlay oscuro) */
  background-color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}
@media (forced-colors: active) {
  .quick-view-overlay { background-color: rgba(0, 0, 0, 0.65); }
}
.quick-view-overlay.is-open { display: block; animation: fadeIn 0.2s ease; }

.quick-view-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 101;
  width: min(48rem, 100% - 2rem); /* max-w-3xl + márgenes laterales */
  max-height: min(90dvh, calc(100vh - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 1rem; /* rounded-2xl */
  background-color: var(--color-background);
  box-shadow: var(--shadow-elevated);
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .quick-view-modal { max-height: none; }
}
.quick-view-modal.is-open { display: block; }

.quick-view-modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; /* right-4 top-4 */
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem; margin: 0;
  line-height: 0;
  color: var(--color-foreground);
  background: color-mix(in srgb, var(--color-background) 85%, transparent);
  border: none; border-radius: 0.25rem; cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.quick-view-modal__close:hover { opacity: 1; }

/* grid grid-cols-1 md:grid-cols-2; breakpoint md = 768px (Lovable) */
.quick-view-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
}
@media (max-width: 767.98px) {
  .quick-view-modal__grid { overflow-y: auto; -webkit-overflow-scrolling: touch; }
}
@media (min-width: 768px) {
  .quick-view-modal__grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 26.25rem; /* 420px, coincide con Lovable min-h */
    max-height: none;
    overflow: visible;
  }
}

/* Imagen: aspect-square md:aspect-auto md:min-h-[420px] bg-secondary */
.quick-view-modal__image-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--color-secondary);
  aspect-ratio: 1 / 1;
  min-height: 0;
}
@media (min-width: 768px) {
  .quick-view-modal__image-wrap {
    aspect-ratio: auto;
    min-height: 26.25rem; /* 420px */
    height: 100%;
  }
}
.quick-view-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
  object-position: top;
}

/* Columna copy: p-8 flex flex-col justify-between gap-6 */
.quick-view-modal__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem; /* gap-6 */
  padding: 2rem; /* p-8 */
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .quick-view-modal__info {
    min-height: 26.25rem; /* alinea altura con columna imagen */
  }
}

.quick-view-modal__info-top { min-width: 0; }
.quick-view-modal__info-actions { min-width: 0; }

.quick-view-modal__category {
  display: block;
  font-size: 0.75rem; /* text-xs */
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
}
.quick-view-modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem; /* text-xl */
  font-weight: 500;
  line-height: 1.2;
  margin: 0.25rem 0 0.5rem; /* mt-1 mb-2 */
}
@media (min-width: 768px) {
  .quick-view-modal__title { font-size: 1.5rem; } /* md:text-2xl */
}
.quick-view-modal__price {
  font-size: 1.125rem; /* text-lg */
  font-style: italic;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}
.quick-view-modal__desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.75rem 0 0; /* mt-3 */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.625; /* leading-relaxed */
  color: var(--color-muted-fg);
}
.quick-view-modal__rug-note {
  margin: 0.5rem 0 0; /* mt-2, text-muted-foreground/70 */
  font-size: 0.75rem; /* text-xs */
  line-height: 1.4;
  color: var(--color-muted-fg);
  opacity: 0.7;
}

/* space-y-4 en el bloque inferior (Lovable) */
.quick-view-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
  margin: 0;
  width: 100%;
}

.quick-view-modal__qty-block { width: 100%; }
.quick-view-modal__qty-label {
  display: block;
  margin-bottom: 0.5rem; /* mb-2 */
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  color: var(--color-foreground);
  line-height: 1.25;
}

/* Contador horizontal como Lovable: flex + gap-3, botones 36px rounded-xl */
.quick-view-modal__actions .theme-quantity-wrapper {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  width: 100%;
  max-width: none;
  margin: 0;
}
.quick-view-modal__actions .theme-qty-minus,
.quick-view-modal__actions .theme-qty-plus {
  width: 2.25rem;  /* w-9 */
  height: 2.25rem; /* h-9 */
  min-width: 2.25rem;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  border-radius: 0.75rem; /* rounded-xl */
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.quick-view-modal__actions .theme-qty-input {
  width: 2.25rem;
  min-width: 2.25rem;
  padding: 0.5rem 0.125rem;
  text-align: center;
  line-height: 1.2;
  border-radius: 0.375rem;
  margin: 0;
  box-sizing: border-box;
}

/* Button size="lg" + w-full + btn-glow (Lovable) */
.quick-view-modal__add-to-cart,
a.quick-view-modal__add-to-cart {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 2.75rem; /* h-11 aprox. */
  padding: 0.75rem 1.25rem;
  box-sizing: border-box;
}

.quick-view-modal__full-link { display: block; text-align: center; font-size: 0.875rem; color: var(--color-muted-fg); transition: color 0.2s ease; }
.quick-view-modal__full-link:hover { color: var(--color-foreground); }

/* =========================================================
   QUANTITY CONTROLS
   ========================================================= */
.theme-quantity-wrapper {
  display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem;
}
.qty-label { font-size: 0.875rem; font-weight: 500; }
.qty-controls {
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.theme-qty-minus,
.theme-qty-plus {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  font-size: 1.125rem; font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background: transparent; color: var(--color-foreground);
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background-color: var(--color-secondary); }
.theme-qty-input {
  width: 3rem; text-align: center;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* =========================================================
   SINGLE PRODUCT PAGE (Lovable: ProductDetail — main pt-24 / lg:pt-28, grid, tipografía)
   ========================================================= */
/* pt-24 = 6rem, lg:pt-28 = 7rem respecto a header fijo */
.single-product-main { padding-top: calc(var(--header-height) + 1rem); }
@media (min-width: 1024px) {
  .single-product-main { padding-top: calc(var(--header-height) + 2rem); }
}
.product-page__back { padding: 1.5rem 0; } /* Lovable: py-6 alrededor del enlace */
.back-to-shop-link {
  display: inline-flex; align-items: center; gap: 0.5rem; /* Lovable: text-sm, mr-2 en icono */
  font-size: 0.875rem; line-height: 1.25;
  color: var(--color-muted-fg);
  transition: color 0.2s ease;
}
.back-to-shop-link:hover { color: var(--color-foreground); }
.back-to-shop-link svg { flex-shrink: 0; }

/* grid grid-cols-1 lg:grid-cols-2 gap-10 lg:gap-16 pb-20 */
.theme-product-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; /* gap-10 */
  padding-bottom: 5rem; /* pb-20 */
  min-width: 0;
}
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; /* gap-16 */ } }
.theme-product-gallery,
.theme-product-info { min-width: 0; max-width: 100%; }
/* Columna copy: Lovable lg:py-10 */
.theme-product-info { padding: 0; }
@media (min-width: 1024px) { .theme-product-info { padding: 2.5rem 0; } } /* py-10 */

/* Galería: aspect-square rounded-2xl + thumbs w-16 h-16 gap-2 mt-3 */
.theme-product-main-image-wrap {
  aspect-ratio: 1 / 1; border-radius: 1rem; /* rounded-2xl */
  overflow: hidden;
}
.theme-product-main-image { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 0.5s ease; }

.theme-product-thumbnails { display: flex; gap: 0.5rem; margin-top: 0.75rem; /* gap-2 mt-3 */ flex-wrap: wrap; max-width: 100%; }
.theme-product-thumb {
  width: 4rem; height: 4rem; /* w-16 h-16 */
  border: 2px solid var(--color-border);
  border-radius: 0.75rem; /* rounded-xl */
  overflow: hidden; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease;
  background: none; flex-shrink: 0; padding: 0; margin: 0;
  box-sizing: border-box;
}
.theme-product-thumb.is-active { border-color: var(--color-primary); }
.theme-product-thumb:hover { border-color: var(--color-muted-fg); }
.theme-product-thumb__image { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Meta: text-xs + Curated (primary + gap-1 + ícono w-4) */
.product-meta-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.75rem; row-gap: 0.25rem; margin-bottom: 0.5rem; /* items-center gap-3 mb-2 */ }
.product-category-label {
  font-size: 0.75rem; /* text-xs */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  line-height: 1.2;
}
.product-curated-label {
  display: inline-flex; align-items: center; gap: 0.25rem; /* gap-1 */
  font-size: 0.75rem; /* text-xs */
  font-weight: 500; color: var(--color-primary);
  line-height: 1.2;
}
.product-elephant-icon { width: 1rem; height: 1rem; /* w-4 h-4 */ object-fit: contain; flex-shrink: 0; }

/* título: font-display text-2xl md:text-3xl mt-2 mb-4 */
.product-title {
  font-family: var(--font-display);
  font-size: 1.5rem; /* text-2xl */
  font-weight: 500; line-height: 1.2;
  margin: 0.5rem 0 1rem; /* mt-2 mb-4 (aprox.) */
}
@media (min-width: 768px) {
  .product-title { font-size: 1.875rem; } /* md:text-3xl */
}
/* text-xl mb-2 italic = Price on Request */
.product-price-on-request { font-size: 1.25rem; font-style: italic; line-height: 1.3; margin: 0 0 0.5rem; } /* mb-2 */
/* text-sm text-primary mb-2 = Rug: … */
.product-rug-label { font-size: 0.875rem; color: var(--color-primary); line-height: 1.4; margin: 0 0 0.5rem; } /* text-sm, mb-2 */
/* text-sm text-muted-foreground mb-4 = Artwork: … */
.product-artwork-line { font-size: 0.875rem; color: var(--color-muted-fg); line-height: 1.4; margin: 0 0 1rem; } /* mb-4 */

.product-sold-out-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-muted);
  color: var(--color-muted-fg);
  font-size: 0.875rem; font-weight: 500;
  border-radius: 0.75rem; /* rounded-xl */
  margin: 0 0 1rem; /* mb-4 */
  line-height: 1.25;
}

/* Cuerpo: text-muted-foreground leading-[1.8] mb-8 */
.product-description {
  color: var(--color-muted-fg);
  line-height: 1.8; margin: 0 0 2rem; /* mb-8 */
  font-size: 0.9375rem; /* entre text-sm y base */
  overflow-wrap: break-word; word-break: break-word;
}
.product-description p:last-child { margin-bottom: 0; }
.product-description p { margin-bottom: 0.75rem; }
.product-description__excerpt { margin-bottom: 0.5rem; }
.product-description__excerpt + .product-description__body { margin-top: 0.5rem; }

/* Bloque cantidad + CTA: mb-8; cantidad = flex label + controls gap-2 / gap-3 */
.product-add-to-cart-block { margin-bottom: 0; }
.theme-add-to-cart-area { margin-bottom: 2rem; } /* Lovable: mb-8 hacia Pairing */
.product-add-to-cart-block .variations_form { margin-bottom: 0; }

.product-add-to-cart-inner { display: flex; flex-direction: column; gap: 0; }
.product-add-to-cart-inner .single_add_to_cart_button { width: 100%; }
.product-qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1rem; } /* flex + gap-3, mb-4 hacia CTA */
.product-add-to-cart-inner .qty-label { margin: 0; min-width: fit-content; }
.product-add-to-cart-inner .qty-label,
.product-add-to-cart-inner .product-qty-row .qty-label { font-size: 0.875rem; font-weight: 500; } /* text-sm font-medium */
.product-add-to-cart-inner .qty-controls {
  display: inline-flex; align-items: center; gap: 0.5rem; /* gap-2 */
}
.product-add-to-cart-inner .theme-qty-minus,
.product-add-to-cart-inner .theme-qty-plus { width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; } /* w-9 h-9 rounded-xl */
.product-add-to-cart-inner .theme-qty-input { width: 2.25rem; min-width: 2.25rem; text-align: center; }

/* border-t border-border pt-8 — Pairing Details; lista space-y-2, bullet primary/40 */
.product-pairing-details {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem; /* pt-8 */
  margin: 0;
}
.product-pairing-details__heading {
  font-family: var(--font-body);
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  margin: 0 0 1rem; /* mb-4 */
  line-height: 1.25;
}
.pairing-details-list { display: flex; flex-direction: column; gap: 0.5rem; /* space-y-2 */ margin: 0; padding: 0; list-style: none; }
.pairing-details-list__item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; line-height: 1.8;
  color: var(--color-muted-fg);
}
.pairing-details-list__dot {
  width: 0.375rem; /* w-1.5 h-1.5 */
  height: 0.375rem;
  border-radius: 9999px;
  background-color: hsl(345 40% 30% / 0.4);
  margin-top: 0.5rem; /* mt-2 */
  flex-shrink: 0;
}

/* Single product responsive */
.single-product .theme-product-layout { min-width: 0; }
.single-product .theme-product-gallery,
.single-product .theme-product-info { min-width: 0; max-width: 100%; }
.single-product .theme-product-thumbnails { flex-wrap: wrap; max-width: 100%; }
.single-product .theme-add-to-cart-area.product-add-to-cart-block { display: block; }
.single-product .product-add-to-cart-inner .single_add_to_cart_button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.single-product .product-description,
.single-product .posted_in { 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; }
.single-product .variations tbody td.value { padding-top: 0; }

/* Related products */
.related-products-section {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
}
.related-products-heading { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; margin-bottom: 2.5rem; }
.related-products-grid {
  max-width: none;
  gap: 1.5rem; /* gap-6 */
}
@media (min-width: 1024px) {
  .related-products-grid { gap: 2rem; } /* gap-8 */
}

/* =========================================================
   WOOCOMMERCE OVERRIDES
   ========================================================= */

/* Hide WC default button styles — override with theme */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button,
button.single_add_to_cart_button,
button.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !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;
  box-shadow: 0 4px 20px hsl(345 40% 30% / 0.12) !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover,
button.single_add_to_cart_button:hover,
button.add_to_cart_button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !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;
}

/* Adding to cart state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* Hide "View cart" injected by WooCommerce after AJAX add-to-cart */
.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; }

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

/* Pagination */
.woocommerce-pagination { margin-top: 3rem; }
.woocommerce-pagination .page-numbers {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--color-border);
  font-size: 0.875rem; transition: all 0.2s ease;
  background: transparent; color: var(--color-foreground);
}
.woocommerce-pagination .page-numbers .current,
.woocommerce-pagination .page-numbers a:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}

/* Empty archive */
.shop-empty { text-align: center; padding: 4rem 0; color: var(--color-muted-fg); font-style: italic; }

/* =========================================================
   SIDE CART DRAWER
   ========================================================= */
body.cart-open { overflow: hidden; }

#theme-cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background-color: rgba(26,26,26,0.2);
  z-index: 99;
  animation: fadeIn 0.3s ease;
}
body.cart-open #theme-cart-overlay { display: block; }

#theme-cart-drawer {
  position: fixed; top: 0; right: 0;
  width: 100%; max-width: 28rem;
  height: 100%;
  background-color: var(--color-background);
  z-index: 100;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
  box-shadow: -4px 0 40px rgba(0,0,0,0.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__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.cart-drawer__close {
  padding: 0.25rem; opacity: 0.6; transition: opacity 0.2s ease;
  color: var(--color-foreground);
}
.cart-drawer__close:hover { opacity: 1; }

.cart-drawer__empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center; gap: 1.5rem;
  color: var(--color-muted-fg);
}
.cart-drawer__empty-msg { color: var(--color-muted-fg); }

.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.cart-drawer__item { display: flex; gap: 1rem; }
.cart-drawer__item-image-link {
  width: 5rem; height: 6rem;
  background-color: var(--color-secondary);
  overflow: hidden; flex-shrink: 0;
  display: block;
}
.cart-drawer__item-image-link img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cart-drawer__item-info { flex: 1; min-width: 0; }
.cart-drawer__item-name {
  display: block; font-size: 0.875rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.2s ease; margin-bottom: 0.25rem;
}
.cart-drawer__item-name:hover { opacity: 0.7; }
.cart-drawer__item-price { font-size: 0.875rem; color: var(--color-muted-fg); }
.cart-drawer__item-variation { font-size: 0.75rem; color: var(--color-muted-fg); margin-top: 0.25rem; }
.cart-drawer__item-controls { display: flex; align-items: center; margin-top: 0.75rem; gap: 0.75rem; }
.cart-drawer__qty {
  display: flex; align-items: center; gap: 0.5rem;
}
.cart-drawer__qty button {
  width: 1.75rem; height: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  font-size: 0.875rem; cursor: pointer;
  transition: background-color 0.2s ease;
  background: transparent; color: var(--color-foreground);
}
.cart-drawer__qty button:hover { background-color: var(--color-secondary); }
.cart-drawer__qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.cart-drawer__remove {
  margin-left: auto; font-size: 0.75rem; color: var(--color-muted-fg);
  cursor: pointer; transition: color 0.2s ease; background: none; border: none;
}
.cart-drawer__remove:hover { color: var(--color-foreground); }

.cart-drawer__footer {
  padding: 1.5rem; border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 1rem; flex-shrink: 0;
}
.cart-drawer__pricing-note { font-size: 0.75rem; color: var(--color-muted-fg); }
.cart-drawer__checkout { width: 100%; justify-content: center; }

/* =========================================================
   CHECKOUT — WooCommerce Blocks (ancho, notices, layout 2 col en sidebar-layout)
   Ancho 1280px = 80rem, alineado con .container-wide
   ========================================================= */
:root {
  --theme-wc-checkout-max: 80rem; /* 1280px */
  --theme-wc-checkout-col-sidebar: minmax(360px, 400px);
  --theme-wc-checkout-grid-gap: 1.5rem;
}

/* —— 1) Padres: nada de max-width extra que comprima (entry-content, #page-content, artículo) —— */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout #page-content,
body.woocommerce-checkout article,
body.woocommerce-checkout .wp-block-post-content,
body.woocommerce-checkout .entry-content:has( .wp-block-woocommerce-checkout ),
body.woocommerce-checkout .entry-content:has( .wc-block-checkout ) {
  max-width: none !important;
  width: 100%;
  box-sizing: border-box;
}

/* Aunque el body aún no lleve .woocommerce-checkout, no comprimir .entry-content con el bloque */
.entry-content:has( .wp-block-woocommerce-checkout ),
.entry-content:has( .wc-block-checkout ) {
  max-width: none !important;
  width: 100%;
  box-sizing: border-box;
}

/* —— 2) Raíz del bloque: ancho máximo 1280px, centrado —— */
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout,
body.woocommerce-checkout .entry-content .wc-block-checkout,
.entry-content:has( .wp-block-woocommerce-checkout ) .wp-block-woocommerce-checkout,
.entry-content:has( .wc-block-checkout ) .wc-block-checkout {
  width: 100%;
  max-width: var(--theme-wc-checkout-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* —— 3) Avisos (.wc-block-components-notices) —— misma anchura/centrado que el checkout —— */
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,
body.woocommerce-checkout .container-wide .wc-block-components-notices,
body.woocommerce-checkout .page-checkout__entry .wc-block-components-notices {
  width: 100%;
  max-width: var(--theme-wc-checkout-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Notas como primer hijo del <form> checkout (aviso arriba del layout) */
body.woocommerce-checkout .entry-content .wc-block-checkout > .wc-block-components-notices:first-child,
.entry-content .wc-block-checkout > .wc-block-components-notices:first-child {
  order: 1;
}

/* —— 4) Grid real: wc-block-components-sidebar-layout / wc-block-checkout-sidebar-layout —— */
body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout,
body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  align-items: start;
  column-gap: var(--theme-wc-checkout-grid-gap);
  row-gap: var(--theme-wc-checkout-grid-gap);
}

/* Notices *dentro* del sidebar-layout: toda la fila; order 1; form 2/3 a continuación */
body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .wc-block-checkout-sidebar-layout > .wc-block-components-notices {
  grid-column: 1 / -1;
  order: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout .wc-block-checkout__main,
body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout .wc-block-checkout__main,
.entry-content .wc-block-components-sidebar-layout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main {
  order: 2;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
  order: 3;
  min-width: 360px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout,
  .entry-content .wc-block-components-sidebar-layout,
  .entry-content .wc-block-checkout-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout {
    grid-template-columns: 1fr var(--theme-wc-checkout-col-sidebar);
  }
}

/* Resumen de pedido: no se comprime */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* —— 5) Fallback: checkout sin .wc-block-components-sidebar-layout (solo main + sidebar) —— */
@media (min-width: 1024px) {
  body.woocommerce-checkout .entry-content .wc-block-checkout:has( > .wc-block-checkout__main ):not( :has( .wc-block-components-sidebar-layout, .wc-block-checkout-sidebar-layout ) ) {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: 1fr var(--theme-wc-checkout-col-sidebar);
    column-gap: var(--theme-wc-checkout-grid-gap);
    row-gap: var(--theme-wc-checkout-grid-gap);
    align-items: start;
  }
  body.woocommerce-checkout .entry-content .wc-block-checkout:has( > .wc-block-checkout__main ):not( :has( .wc-block-components-sidebar-layout, .wc-block-checkout-sidebar-layout ) ) > .wc-block-checkout__main,
  body.woocommerce-checkout .entry-content .wc-block-checkout:has( > .wc-block-checkout__main ):not( :has( .wc-block-components-sidebar-layout, .wc-block-checkout-sidebar-layout ) ) > .wc-block-checkout__sidebar {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  body.woocommerce-checkout .entry-content .wc-block-checkout:has( > .wc-block-checkout__main ):not( :has( .wc-block-components-sidebar-layout, .wc-block-checkout-sidebar-layout ) ) > .wc-block-checkout__sidebar {
    min-width: 360px;
  }
}

/* —— 6) Móvil: una columna —— */
@media (max-width: 1023.98px) {
  body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout,
  .entry-content .wc-block-components-sidebar-layout,
  .entry-content .wc-block-checkout-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout:has( > .wc-block-checkout__main ) {
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .entry-content .wc-block-checkout:has( > .wc-block-checkout__main ) > .wc-block-checkout__sidebar,
  .entry-content .wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
    min-width: 0;
  }
}

/* —— 7) Form: flex column solo si el DOM es notices + sidebar-layout bajo <form> (no pisar el grid de fallback) —— */
body.woocommerce-checkout .entry-content .wc-block-checkout:where( :has( .wc-block-components-sidebar-layout ), :has( .wc-block-checkout-sidebar-layout ) ),
.entry-content .wc-block-checkout:where( :has( .wc-block-components-sidebar-layout ), :has( .wc-block-checkout-sidebar-layout ) ) {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  gap: 0;
}

body.woocommerce-checkout .entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* —— 8) Estética (común) —— */
body.woocommerce-checkout .site-main {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content { max-width: 100% !important; }
body.woocommerce-checkout .page-title {
  font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 500;
  margin-bottom: 2rem; padding-inline: 0;
}

.page-checkout__wrap {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.page-checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}
.page-checkout__back:hover { color: var(--color-foreground); }
.page-checkout__back-icon { flex-shrink: 0; }
.page-checkout__title { margin-bottom: 2.5rem !important; }
.page-checkout__inquiry-footnote {
  text-align: center;
  max-width: 32rem;
  margin: 2rem auto 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-muted-fg);
}
.page-checkout__inquiry-line { margin: 0 0 0.5rem; }
.page-checkout__inquiry-line--muted { opacity: 0.92; margin-bottom: 0; }

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;
}
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-title.wc-block-title {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  margin-top: 0;
}
body.woocommerce-checkout .wc-block-checkout__main .wp-block-woocommerce-checkout-contact-information-block + *,
body.woocommerce-checkout .wc-block-components-address-form { margin-top: 0.25rem; }

body.woocommerce-checkout .wc-block-checkout__main {
  background: transparent;
  border-radius: var(--card-radius);
  padding: 0;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important; max-width: none !important;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--card-radius);
  padding: var(--section-padding);
}
body.woocommerce-checkout.theme-inquiry-checkout .wp-block-woocommerce-checkout-payment-block .wc-block-components-totals {
  border-top: none;
}
body.woocommerce-checkout.theme-inquiry-checkout .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
body.woocommerce-checkout.theme-inquiry-checkout .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__input-wrap {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-background);
}
body.woocommerce-checkout.theme-inquiry-checkout .wp-block-woocommerce-checkout-express-payment-block {
  display: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button.wc-block-components-button {
  width: 100%;
  max-width: none;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  border-radius: var(--btn-radius) !important;
}
body.woocommerce-checkout .wc-block-components-textarea textarea {
  border-radius: 0.5rem;
  border-color: var(--color-border);
  font-family: var(--font-body);
}

/* Checkout: ocultar “Volver al carrito”, $0, cupones y subtotal/total — el listado de productos (order summary) se mantiene */
body.woocommerce-checkout a.wc-block-components-checkout-return-to-cart-button {
  display: none !important;
}
body.woocommerce-checkout .wc-block-checkout__action_row:has(> a.wc-block-components-checkout-return-to-cart-button:only-child) {
  display: none;
}

/* Cupones y fila de subtotales (bloque de datos) */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-totals-block,
body.woocommerce-checkout [data-block-name="woocommerce/checkout-order-summary-totals-block"] {
  display: none !important;
}

/*
 * .totals-wrapper envuelve también la lista de artículos (cart line items) — no ocultar eso.
 * Solo filas/ bloques de totales que no son el bloque de ítems.
 */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-totals-wrapper:not(.wp-block-woocommerce-checkout-order-summary-cart-items-block) {
  display: none !important;
}

/* Importes de línea ($0) — la fila de producto (nombre, variación, cant.) sigue visible */
body.woocommerce-checkout
  .wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-order-summary-item__total-price,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-order-summary-item__individual-prices,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout-order-summary-block
  .wc-block-cart-item__price,
body.woocommerce-checkout
  .wp-block-woocommerce-checkout-order-summary-block
  .wc-block-cart-item__total-price-and-sale-badge-wrapper {
  display: none !important;
}

/* =========================================================
   THANK YOU PAGE
   ========================================================= */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { max-width: 64rem; margin-inline: 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: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex; flex-wrap: wrap; gap: 1rem;
  list-style: none; padding: 1.5rem;
  background-color: var(--color-secondary);
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%; table-layout: fixed; border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); 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: 30rem; overflow-wrap: break-word; font-style: normal; font-size: 0.875rem; line-height: 1.7; }

/* =========================================================
   PAGE.PHP / 404 / GENERIC
   ========================================================= */
.site-main { min-height: 60vh; }
.theme-no-hero .site-main { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 4rem; }
.page-title { font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 500; margin-bottom: 2rem; }
.entry-content { line-height: 1.8; }
.entry-content p { margin-bottom: 1rem; }
.entry-content h2 { font-family: var(--font-display); margin: 2rem 0 1rem; }
.entry-content a { color: var(--color-primary); text-decoration: underline; }

.error-404 {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; gap: 1.5rem;
}
.error-404__code {
  font-family: var(--font-display); font-size: 6rem; font-weight: 700;
  color: var(--color-muted); line-height: 1;
}
.error-404__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.error-404__body { color: var(--color-muted-fg); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: 5rem;
  background-color: var(--color-footer-bg);
  color: var(--color-footer-fg);
}
/* Tablet y móvil: .container-wide usa 1.5rem lateral; el pie gana aire a izquierda/derecha (y safe-area) */
@media (max-width: 1023px) {
  .site-footer .container-wide {
    padding-left: max(2rem, 0.75rem + env(safe-area-inset-left, 0px));
    padding-right: max(2rem, 0.75rem + env(safe-area-inset-right, 0px));
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .site-footer .container-wide {
    padding-left: max(2.25rem, 0.75rem + env(safe-area-inset-left, 0px));
    padding-right: max(2.25rem, 0.75rem + env(safe-area-inset-right, 0px));
  }
}
.site-footer__inner { padding: 3.5rem 0 0; }
@media (min-width: 1024px) { .site-footer__inner { padding: 5rem 0 0; } }
.site-footer__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem 3rem;
}
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.site-footer__brand { }
.site-footer__logo-link { display: inline-block; }
.footer-logo { filter: brightness(1.3); }
.footer-logo-text { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-footer-fg); }

.site-footer__tagline {
  margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; opacity: 0.7;
}
.site-footer__socials { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.site-footer__socials .social-icon-link { opacity: 0.6; transition: opacity 0.2s ease; color: var(--color-footer-fg); }
.site-footer__socials .social-icon-link:hover { opacity: 1; }

.site-footer__col { }
.site-footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__links a,
.site-footer__links button {
  font-size: 0.875rem; opacity: 0.6; transition: opacity 0.2s ease;
  color: var(--color-footer-fg);
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 0; font-family: var(--font-body);
}
.site-footer__links a:hover,
.site-footer__links button:hover { opacity: 1; }

.site-footer__links--connect { gap: 0.75rem; }
.site-footer__links--connect li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; opacity: 0.6; }
.site-footer__links--connect a { font-size: 0.875rem; opacity: 1; }
.footer-email-link,
.footer-phone-link { transition: opacity 0.2s ease; }
.footer-email-link:hover,
.footer-phone-link:hover { opacity: 0.8; }

.site-footer__bottom {
  margin-top: 3.5rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid hsl(0 0% 20%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__copy { font-size: 0.75rem; opacity: 0.5; }
.site-footer__credit { font-size: 0.75rem; opacity: 0.5; transition: opacity 0.2s ease; }
.site-footer__credit:hover { opacity: 0.8; }

/* =========================================================
   CUSTOMIZER CONTROLS
   ========================================================= */

/* Archive header */
.archive-header { margin-bottom: 2rem; }
.archive-heading { font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 500; margin-bottom: 0.5rem; }
.archive-description { color: var(--color-muted-fg); }
.archive-products-main { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 4rem; }

/* Blog */
.blog-loop { display: flex; flex-direction: column; gap: 2rem; }
.blog-item h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5rem; }
.blog-item h2 a { transition: color 0.2s ease; }
.blog-item h2 a:hover { color: var(--color-primary); }
.blog-excerpt { color: var(--color-muted-fg); font-size: 0.9375rem; line-height: 1.7; }
