/* ==========================================================================
   COSMIC SPACE SPRAY — theme.css
   All visual styles for the WordPress theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (defaults — overridden at runtime via functions.php)
   -------------------------------------------------------------------------- */
:root {
  /* Fallbacks — overridden by Customizer inline styles (defaults synced with Lovable index.css) */
  --color-primary:      #b366f6;
  /* Fixed brand cyan (CTA / contact glow) — not exposed in Customizer */
  --color-accent-fixed: #12d4f0;
  --color-background:   #0b0d12;
  --color-foreground:   #e1e4eb;
  --color-card:         #141720;
  --color-secondary:    #191d28;
  --color-muted:        #2e323d;
  --color-muted-fg:     #828892;
  --color-border:       #282c38;

  --logo-height:        20px;

  --font-display: 'Oswald', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;

  --radius:             0.25rem;
  --card-radius:        0.5rem;

  --btn-radius:         0.25rem;
  /* shadcn size="lg" / h-11 */
  --btn-height:         2.75rem;
  --btn-padding:        0.625rem 2rem;
  --btn-font-size:      1rem;
  --btn-font-weight:    500;
  --btn-letter-spacing: 0.02em;
  --btn-text-transform: none;
  --btn-icon-padding:   0.75rem;

  /* Lovable src/index.css — purple glow independent of Customizer */
  --shadow-soft:        0 4px 20px -4px hsl(270 80% 65% / 0.15);
  --shadow-elevated:    0 8px 40px -8px hsl(270 80% 65% / 0.25);
  --transition-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  /* framer-motion ease from Index.tsx */
  --ease-smooth:        cubic-bezier(0.25, 0.4, 0.25, 1);

  --header-height:      4rem;
  --section-padding:    2rem;
  --checkout-gap:       2rem;
}

@media (min-width: 1024px) {
  :root {
    --header-height: 5rem;
  }
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

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

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }

img, video { max-width: 100%; display: block; }

ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

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

.text-center  { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-muted-fg); }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.font-display { font-family: var(--font-display); }
.uppercase    { text-transform: uppercase; }

/* Lovable scroll-mt-24 — anchor offset below fixed header */
.scroll-mt { scroll-margin-top: 6rem; }

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

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Lovable index.css component/utility parity */
.text-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.text-body { font-family: var(--font-body); font-weight: 400; }
.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(-0.25rem);
}
.image-zoom {
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}
.image-zoom:hover { transform: scale(1.05); }
.gradient-gold {
  background: linear-gradient(135deg, hsl(270 80% 65%), hsl(320 80% 55%));
}
.gradient-cosmic {
  background: linear-gradient(
    135deg,
    hsl(270 80% 65% / 0.3),
    hsl(190 90% 50% / 0.2),
    hsl(320 80% 55% / 0.3)
  );
}

/* JS animation triggers */
.js-fade-up,
.js-fade-left,
.js-fade-right { opacity: 0; transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }

.js-fade-up    { transform: translateY(40px); }
.js-fade-left  { transform: translateX(-60px); }
.js-fade-right { transform: translateX(60px); }

.js-fade-up.in-view,
.js-fade-left.in-view,
.js-fade-right.in-view { opacity: 1; transform: none; }

.js-stagger-children > * { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.js-stagger-children > *.in-view { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.4; 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);
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-outline:hover { background: var(--color-muted); border-color: var(--color-muted-fg); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* --------------------------------------------------------------------------
   5. Link Underline Effect
   -------------------------------------------------------------------------- */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: hsl(230 25% 7% / 95%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom-color: var(--color-border);
}

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

.site-logo-link { display: flex; align-items: center; }
/* Lovable logo: h-4 (16px) → lg:h-5 (20px) */
.site-logo-img  { height: 16px !important; width: auto !important; display: block; }
@media (min-width: 1024px) {
  .site-logo-img { height: var(--logo-height) !important; }
}
.site-logo-text { line-height: var(--logo-height); display: block; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.05em; }

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

.theme-nav-list { display: flex; gap: 2rem; list-style: none; }
.theme-nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}
.theme-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }

/* WP nav menu overrides */
.theme-nav-list li a, .mobile-nav-list li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}
.theme-nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-list li a:hover::after { transform: scaleX(1); }

.site-header:not(.is-solid) .theme-nav-list li a,
.site-header:not(.is-solid) .theme-nav-link { color: rgba(255,255,255,0.9); }
.site-header:not(.is-solid) .theme-nav-list li a:hover,
.site-header:not(.is-solid) .theme-nav-link:hover { color: #fff; }

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

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: opacity 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}
.cart-btn:hover { opacity: 0.6; }

.site-header:not(.is-solid) .cart-btn,
.site-header:not(.is-solid) .mobile-menu-btn { color: #fff; }

.theme-cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-body);
}
.theme-cart-count:empty { display: none; }

.mobile-menu-btn { display: flex; padding: 0.5rem; color: inherit; transition: opacity 0.2s; }
.mobile-menu-btn:hover { opacity: 0.6; }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}
.mobile-menu.is-open { display: block; animation: fadeIn 0.3s var(--transition-smooth) forwards; }

.mobile-nav-list { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; }
.mobile-nav-list li a,
.mobile-nav-list .theme-nav-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.mobile-nav-list li a:hover,
.mobile-nav-list .theme-nav-link:hover { color: var(--color-muted-fg); }

/* Teléfono — Lovable Header móvil: py-4 + flex flex-col gap-4, ítems en columna */
@media (max-width: 767px) {
  .mobile-menu {
    padding: 1rem 0;
  }
  .mobile-menu .mobile-nav-list,
  .mobile-menu .theme-nav-list {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 1rem !important;
    width: 100%;
  }
  .mobile-menu .mobile-nav-list > li,
  .mobile-menu .theme-nav-list > li {
    width: 100%;
  }
  .mobile-menu .mobile-nav-list li a,
  .mobile-menu .mobile-nav-list .theme-nav-link,
  .mobile-menu .theme-nav-list li a,
  .mobile-menu .theme-nav-list .theme-nav-link {
    text-align: left;
    padding: 0.5rem 0;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-background);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-background);
  opacity: 0.65;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 0.8s 0.5s var(--transition-smooth) forwards;
}
.eyebrow-line {
  display: block;
  width: 2rem;
  height: 1px;
  background: color-mix(in srgb, var(--color-primary) 60%, transparent);
}
.eyebrow-text {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
}

.hero-headline {
  display: block;
  margin-bottom: 0;
  overflow: hidden;
}
/* Lovable: text-5xl md:text-7xl lg:text-8xl */
.hero-line1, .hero-line2 {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(80px);
}
@media (min-width: 768px) {
  .hero-line1, .hero-line2 { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .hero-line1, .hero-line2 { font-size: 6rem; }
}
.hero-line1 { margin-bottom: 0.5rem; animation: slideUp 1s 0.6s var(--ease-smooth) forwards; }
.hero-line2 { margin-bottom: 1.5rem; animation: slideUp 1s 0.75s var(--ease-smooth) forwards; }

.hero-subtext {
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  font-family: var(--font-body);
  opacity: 0;
  filter: blur(10px);
  transform: translateY(30px);
  animation: heroSubtext 0.8s 1s var(--ease-smooth) forwards;
}
@keyframes heroSubtext { to { opacity: 1; filter: blur(0); transform: translateY(0); } }

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  opacity: 0;
  animation: slideUp 0.7s 1.2s var(--ease-smooth) forwards;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; justify-content: center; } }

/* Lovable hero CTAs: size lg + px-10 */
.hero-ctas .btn-primary,
.hero-ctas .btn-ghost {
  min-height: 2.75rem;
  padding: 0.625rem 2.5rem;
  font-size: 1rem;
}
.hero-cta-btn { min-width: 180px; }

/* Secondary hero button — bg-white/10 border-white/20 hover:bg-white/20 */
.hero-ctas .btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-ctas .btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.25);
}

/* --------------------------------------------------------------------------
   8. Section Shared
   -------------------------------------------------------------------------- */
.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.section-eyebrow.muted { color: var(--color-muted-fg); letter-spacing: 0.2em; }

.section-heading {
  font-family: var(--font-display);
  /* Lovable section titles: text-3xl md:text-5xl */
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .section-heading { font-size: 3rem; }
}

/* About block headline — text-3xl md:text-4xl lg:text-5xl */
.about-section .section-heading.about-heading {
  font-size: 1.875rem;
}
@media (min-width: 768px) {
  .about-section .section-heading.about-heading { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .about-section .section-heading.about-heading { font-size: 3rem; }
}

.section-sub {
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  max-width: 32rem;
  margin: 0 auto;
}

.section-header { margin-bottom: 3rem; }

/* --------------------------------------------------------------------------
   9. About Section
   -------------------------------------------------------------------------- */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-background),
    color-mix(in srgb, var(--color-secondary) 30%, transparent),
    var(--color-background)
  );
  pointer-events: none;
}
.about-bg-glow {
  position: absolute;
  top: 25%; right: 0;
  width: 24rem; height: 24rem;
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
  /* Lovable about: py-20 md:py-32 */
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Teléfono — mucho aire entre firma y Services (Lovable: py-20 about + py-16 services ≈ ~5rem + separación visual) */
@media (max-width: 767px) {
  .about-inner {
    padding-bottom: 11rem;
  }
  .about-signature {
    margin-top: 0.25rem;
    margin-bottom: 2.5rem;
  }
  .services-section {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
}

.about-photo {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  max-height: 520px;
}
.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}
.about-photo:hover .about-photo-img { transform: scale(1.03); }

.about-content { display: flex; flex-direction: column; justify-content: center; }

.about-heading { margin-bottom: 1.5rem; }

.about-text {
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .about-text { font-size: 1.125rem; } }

.about-signature {
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   10. Services Section
   -------------------------------------------------------------------------- */
.services-section {
  background: var(--color-secondary);
  padding: 4rem 0;
}
@media (min-width: 768px) { .services-section { padding: 6rem 0; } }

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

.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: border-color 0.3s ease;
}
.service-card:hover { border-color: color-mix(in srgb, var(--color-primary) 30%, transparent); }

.service-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.1); }

.service-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.service-desc { font-size: 0.875rem; color: var(--color-muted-fg); font-family: var(--font-body); }

/* --------------------------------------------------------------------------
   11. Shop Section
   -------------------------------------------------------------------------- */
.shop-section { padding: 4rem 0; }
@media (min-width: 768px) { .shop-section { padding: 6rem 0; } }

/* Category filter pills */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cat-filter-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: var(--color-secondary);
  color: var(--color-foreground);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.cat-filter-btn:hover { background: var(--color-muted); }
.cat-filter-btn.active {
  background: var(--color-primary);
  color: #fff;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem 2rem;
  align-items: stretch;
}
@media (min-width: 1024px) { .product-grid { gap: 2rem; } }

.product-hidden { display: none; }

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

.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}
.theme-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px hsl(30 15% 15% / 0.15);
}

/* Hit-area overlay: link cubre la tarjeta; el resto sin pointer-events para que el clic vaya al <a> */
.theme-product-card * { pointer-events: none; }
.theme-card-link ~ * { pointer-events: none; }
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Debe ir después de .theme-product-card * (misma especificidad lo anulaba y rompía la navegación) */
  pointer-events: auto;
}

.theme-product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-secondary);
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

.theme-product-img,
.theme-product-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--transition-smooth);
}
.theme-product-card:hover .theme-product-img,
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.08); }

.sold-out-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-foreground);
  color: var(--color-background);
  z-index: 2;
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(221,228,239,0);
  transition: background 0.5s ease;
}
.theme-product-card:hover .card-hover-overlay {
  background: color-mix(in srgb, var(--color-foreground) 5%, transparent);
}

.theme-product-card__info { padding: 0 0.25rem; flex: 1; }

.theme-product-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: color 0.3s ease;
  margin-bottom: 0.25rem;
}
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }

.theme-product-card__price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}

/* Show more button */
.shop-show-more { margin-top: 2.5rem; }

/* Featured single product */
.featured-product-wrap { max-width: 56rem; margin: 0 auto; }
.featured-product-card { display: block; background: rgba(24,31,46,0.5); border: 1px solid var(--color-border); border-radius: 0.5rem; overflow: hidden; }
.featured-product-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
@media (min-width: 768px) { .featured-product-img-wrap { aspect-ratio: 2/1; } }
.featured-product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--transition-smooth); }
.featured-product-card:hover .featured-product-img { transform: scale(1.03); }
.featured-product-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-background) 0%,
    color-mix(in srgb, var(--color-background) 20%, transparent) 40%,
    transparent 100%
  );
}
.featured-product-meta {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}
@media (min-width: 768px) { .featured-product-meta { bottom: 2rem; left: 2rem; } }
.featured-badge {
  display: inline-block;
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-family: var(--font-body);
  background: color-mix(in srgb, var(--color-background) 80%, transparent);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}
.featured-product-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s ease;
}
.featured-product-card:hover .featured-product-title { color: var(--color-primary); }
.featured-product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
@media (min-width: 768px) { .featured-product-body { padding: 2rem; } }
.featured-product-details { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 1.25rem; row-gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.featured-product-details li { display: inline-flex; align-items: center; gap: 0.375rem; max-width: 100%; font-size: 0.875rem; line-height: 1.25; color: var(--color-muted-fg); font-family: var(--font-body); text-align: left; }
.detail-star { color: var(--color-primary); font-size: 0.625rem; }
.featured-product-cta { display: flex; align-items: center; gap: 1.5rem; }
.featured-product-price { font-family: var(--font-display); font-size: 1.875rem; color: var(--color-primary); }

/* --------------------------------------------------------------------------
   12. CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  text-align: center;
}
@media (min-width: 768px) { .cta-section { padding: 8rem 0; } }

.cta-bg { position: absolute; inset: 0; }
.cta-bg-img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-background) 70%, transparent); }
.cta-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--color-primary) 20%, transparent),
    transparent,
    color-mix(in srgb, var(--color-accent-fixed) 20%, transparent)
  );
}

.cta-content { position: relative; z-index: 10; }

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 4rem);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

.cta-sub {
  color: rgba(255,255,255,0.7);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   13. Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
}
.contact-glow-left  { top: 0; left: 25%; width: 24rem; height: 24rem; background: color-mix(in srgb, var(--color-primary) 5%, transparent); }
.contact-glow-right { bottom: 0; right: 25%; width: 20rem; height: 20rem; background: color-mix(in srgb, var(--color-accent-fixed) 5%, transparent); }

.contact-success {
  text-align: center;
  padding: 2.5rem 0;
  max-width: 32rem;
  margin: 0 auto;
}

.success-icon {
  width: 4rem; height: 4rem;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.success-text { color: var(--color-muted-fg); font-family: var(--font-body); }

.contact-inner {
  position: relative;
  z-index: 10;
  /* Lovable ContactSection: py-20 md:py-28 */
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .contact-inner {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 4rem;
  align-items: start;
}
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1.2fr; } }

.contact-desc {
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .contact-desc { font-size: 1.125rem; } }

.contact-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}
.contact-highlight > svg { flex-shrink: 0; }

.highlight-title { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--color-foreground); margin-bottom: 0.25rem; }
.highlight-desc  { font-family: var(--font-body); font-size: 0.75rem; color: var(--color-muted-fg); }

.contact-direct-links { display: flex; flex-direction: column; gap: 0; }
.direct-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  margin-bottom: 1rem;
}

.direct-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-muted-fg);
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}
.direct-link:hover { color: var(--color-primary); }
.direct-link-icon {
  width: 2.5rem; height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}
.direct-link:hover .direct-link-icon { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }

/* Form card */
.contact-form-card {
  background: rgba(24,31,46,0.5);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}
@media (min-width: 768px) { .contact-form-card { padding: 2rem; } }

.form-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}
.form-card-header svg { flex-shrink: 0; }
.form-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-transform: uppercase;
  color: var(--color-foreground);
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .form-row-two { grid-template-columns: 1fr 1fr; } }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-muted-fg); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 25%, transparent);
}
.form-select option { background: var(--color-background); }
.form-textarea { resize: none; }

.form-submit { width: 100%; justify-content: center; }

.form-note { font-size: 0.75rem; color: rgba(107,114,128,0.6); text-align: center; font-family: var(--font-body); }

/* --------------------------------------------------------------------------
   14. Footer — Lovable Footer.tsx: py-12 lg:py-16, grid md:3 gap-8 lg:gap-12
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); }

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

/* Lovable: flex items-center gap-2 */
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Lovable: mt-4 text-sm text-muted-foreground max-w-sm leading-relaxed */
.footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 24rem;
  line-height: 1.625;
  font-family: var(--font-body);
}

/* Lovable: flex flex-wrap gap-x-4 gap-y-2 mt-4 */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: 0.5rem;
  margin-top: 1rem;
}
.footer-social-link {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s ease;
}
.footer-social-link:hover { color: var(--color-foreground); }

/* Lovable: text-sm font-semibold mb-4 */
.footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 1rem;
}

/* Lovable: space-y-3 */
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav-list li a,
.footer-nav-list a {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s ease;
  display: block;
}
.footer-nav-list li a:hover,
.footer-nav-list a:hover { color: var(--color-foreground); }

.footer-nav-list button {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
}
.footer-nav-list button:hover { color: var(--color-foreground); }

/* Lovable Contact column: space-y-3, items gap-2 text-sm */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.footer-contact-link { transition: color 0.2s ease; }
.footer-contact-link:hover { color: var(--color-foreground); }

/* Lovable: mt-10 pt-6 border-t flex gap-4 */
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright,
.footer-credit {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.3s ease;
}
.footer-credit:hover { color: var(--color-foreground); }

/* --------------------------------------------------------------------------
   15. Inner pages
   -------------------------------------------------------------------------- */
.inner-page-main {
  padding-top: var(--header-height);
}

.inner-page-container { padding-top: 2rem; padding-bottom: 4rem; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.entry-content { max-width: 100%; }

/* --------------------------------------------------------------------------
   16. Side Cart Drawer
   -------------------------------------------------------------------------- */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(221,228,239,0.2);
  z-index: 99;
  display: none;
  cursor: pointer;
}
body.cart-open #theme-cart-overlay { display: block; animation: fadeIn 0.3s ease; }

#theme-cart-drawer {
  position: fixed;
  right: 0; top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-background);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
  will-change: transform;
}
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: 700;
  text-transform: uppercase;
}
.cart-close-btn {
  padding: 0.25rem;
  transition: opacity 0.2s;
  color: var(--color-foreground);
}
.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;
}
.cart-empty-icon { color: var(--color-muted-fg); margin-bottom: 1rem; }
.cart-empty-text { color: var(--color-muted-fg); margin-bottom: 1.5rem; font-family: var(--font-body); }

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

.cart-item { display: flex; gap: 1rem; }
.cart-item-thumb {
  width: 5rem; height: 6rem;
  background: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  border-radius: var(--radius);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
  text-decoration: none;
}
.cart-item-name:hover { opacity: 0.7; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-fg); margin-top: 2px; font-family: var(--font-body); }
.cart-item-variation { font-size: 0.75rem; color: color-mix(in srgb, var(--color-primary) 70%, transparent); font-family: var(--font-body); margin-top: 2px; }

.cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-qty-btn {
  padding: 0.25rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  color: var(--color-foreground);
  background: none;
  border: none;
  cursor: pointer;
}
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; font-family: var(--font-body); }
.cart-remove-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  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);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; font-family: var(--font-body); }
.cart-subtotal-label { color: var(--color-muted-fg); }
.cart-subtotal-value { font-weight: 500; }
.cart-shipping-note { font-size: 0.75rem; color: var(--color-muted-fg); font-family: var(--font-body); }
.cart-checkout-btn { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   17. WooCommerce: Single Product Page
   -------------------------------------------------------------------------- */
.single-product .woocommerce-notices-wrapper,
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }

/* Lovable ProductDetail: main.pt-24 lg:pt-28 */
.single-product-main {
  padding-top: 6rem;
}
@media (min-width: 1024px) {
  .single-product-main { padding-top: 7rem; }
}

.back-to-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  transition: color 0.2s ease;
  padding: 0;
}
.back-to-shop:hover { color: var(--color-foreground); }

/* Espacio Back to Shop → galería (Lovable: ~2rem entre fila del link y el grid) */
.single-product-main .container-wide > .single-product-back {
  padding-top: 1.5rem;
  padding-bottom: 0;
  margin-bottom: 2rem;
}

/* Lovable: 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;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .theme-product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

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

.product-main-image {
  aspect-ratio: 3/4;
  background: var(--color-secondary);
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }

/* Lovable: grid grid-cols-5 gap-2 */
.theme-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-width: 100%;
}

.thumb-btn {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
  background: none;
  padding: 0;
  cursor: pointer;
}
.thumb-btn.is-active { border-color: var(--color-primary); opacity: 1; }
.thumb-btn:hover { opacity: 1; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lovable info column: lg:py-10 */
.theme-product-info { padding-top: 0; padding-bottom: 0; }
@media (min-width: 1024px) {
  .theme-product-info { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

.product-category {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  margin-bottom: 0;
}
.product-category a { color: inherit; transition: color 0.2s; }
.product-category a:hover { color: var(--color-primary); }

/* Lovable: text-2xl md:text-3xl font-bold mt-2 mb-4 uppercase */
.product-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.15;
}
@media (min-width: 768px) {
  .product-title { font-size: 1.875rem; }
}

/* Lovable: text-2xl mb-6 font-semibold text-primary (+ USD) */
.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.5rem;
  margin-bottom: 1.5rem;
}
.product-price--variable .product-price { margin-bottom: 0; }
/* Lovable: precio + USD en una línea — text-2xl font-semibold text-primary (mismo estilo que el importe) */
.product-price-suffix {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.product-price-row > .product-price,
.product-price-row .product-price-amount {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.product-price-row .product-price-amount .woocommerce-Price-amount,
.product-price-row > .product-price .woocommerce-Price-amount { font-size: inherit; }

p.product-price.product-price-row { margin-top: 0; }

.product-stock-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}
.product-stock-badge.sold-out { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Lovable: text-muted-foreground leading-relaxed mb-8 whitespace-pre-line */
.product-description {
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  line-height: 1.625;
  margin-bottom: 2rem;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-long-desc.product-description {
  margin-bottom: 2rem;
}
.product-description p { margin-bottom: 1em; }
.product-description p:last-child { margin-bottom: 0; }

/* Frame add-on */
.frame-addon-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  background: none;
  cursor: pointer;
  margin-bottom: 1.5rem;
}
.frame-addon-btn.selected { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 10%, transparent); color: var(--color-foreground); }
.frame-addon-btn:hover { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.frame-checkbox {
  width: 1.25rem; height: 1.25rem;
  border: 2px solid rgba(107,114,128,0.4);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.frame-addon-btn.selected .frame-checkbox { border-color: var(--color-primary); background: var(--color-primary); }
.frame-addon-btn.selected .frame-check-icon { display: block !important; color: #fff; stroke: #fff; }
.frame-addon-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
.frame-addon-icon svg {
  width: 1rem;
  height: 1rem;
}
.frame-addon-price { margin-left: auto; color: var(--color-primary); font-weight: 600; }

/* Attribute selectors */
.product-option-group { margin-bottom: 1.5rem; }
.product-option-label { font-size: 0.875rem; font-weight: 600; font-family: var(--font-body); margin-bottom: 0.75rem; }
.option-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  background: none;
  color: var(--color-foreground);
}
.option-btn.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.option-btn:hover:not(.selected) { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }

.color-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  background: none;
  color: var(--color-foreground);
}
.color-btn.selected { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 5%, transparent); }
.color-btn:hover:not(.selected) { border-color: color-mix(in srgb, var(--color-primary) 50%, transparent); }
.color-swatch { width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid var(--color-border); }

/* Lovable: flex gap-4 mb-8; alinear cantidad y botón (h-11) */
.theme-add-to-cart-area {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.theme-quantity-wrapper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  /* Lovable: contenedor ~48px alto */
  height: 3rem;
  min-height: 3rem;
}
/* Lovable: botones +/- alineados con altura 48px */
.theme-qty-minus, .theme-qty-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  min-width: 3rem;
  background: none;
  border: none;
  color: var(--color-foreground);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
  /* Lovable: min-w-[48px] — sin flex-grow (evita ~192px por min-width:auto del input) */
  box-sizing: border-box;
  flex: 0 0 3rem;
  width: 3rem;
  min-width: 3rem;
  max-width: 5rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-family: var(--font-body);
  background: none;
  border: none;
  color: var(--color-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  outline: none;
  align-self: stretch;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.theme-btn-primary { flex: 1; min-width: 160px; min-height: 3rem; }

/* WooCommerce Add to Cart button overrides (Section 11.4.1) */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: #fff !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;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  opacity: 0.85 !important;
  background-color: var(--color-primary) !important;
  color: #fff !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;
}

/* Ficha producto — Lovable Button size="lg": h-11 + text-sm font-medium */
.single-product .theme-add-to-cart-area .single_add_to_cart_button.button,
.single-product .theme-add-to-cart-area a.single_add_to_cart_button,
.single-product .theme-add-to-cart-area button.single_add_to_cart_button {
  min-height: 2.75rem !important;
  height: 2.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  box-sizing: border-box !important;
}

/* Section 11.4.2 — Hide WC "View cart" link */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

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

/* Details block — Lovable: border-t pt-8, h3 text-sm font-semibold mb-4 */
.product-short-desc-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 0;
}
.product-short-desc-title {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 1rem;
}
.product-short-desc { font-size: 0.875rem; color: var(--color-muted-fg); font-family: var(--font-body); line-height: 1.625; }
.product-short-desc ul { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.product-short-desc ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  list-style: decimal;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.product-short-desc ol li {
  display: list-item;
  margin-bottom: 0.35rem;
  padding-left: 0.25rem;
}
.product-short-desc ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
}
/* Lovable bullet: w-1.5 h-1.5 rounded-full mt-2 */
.product-short-desc ul li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
  background: var(--color-primary);
  border-radius: 50%;
}
.product-short-desc ul li:has(.detail-dot)::before { content: none; width: 0; height: 0; margin: 0; }
.product-short-desc p { margin: 0 0 0.75rem; }
.product-short-desc p:last-child { margin-bottom: 0; }
.detail-dot { width: 6px; height: 6px; background: var(--color-primary); border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0; }

/* Variable product variations — Lovable option labels text-sm font-semibold mb-3 */
.variations { width: 100%; border: none; margin-bottom: 1.5rem; }
.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; }
.single-product .variations td.label label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
}
.single-product .variations select {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  outline: none;
}
.single-product .variations select:focus {
  border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
}
.theme-attr-select-hidden { display: none !important; }

.single_variation_wrap { display: none; }
.single_variation_wrap .woocommerce-variation-price .price {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Related — Lovable: py-20 border-t, title text-xl md:text-2xl mb-10 */
.related-products-section {
  border-top: 1px solid var(--color-border);
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.related-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .related-title { font-size: 1.5rem; }
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .related-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* Responsive single product */
@media (max-width: 639px) {
  .single-product .theme-add-to-cart-area { flex-direction: column; align-items: stretch; }
}
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* --------------------------------------------------------------------------
   18. WooCommerce Archive (Shop Page)
   -------------------------------------------------------------------------- */
.archive-product-main { padding-top: var(--header-height); }
.archive-product-inner { padding-top: 3rem; padding-bottom: 5rem; }
.archive-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   19. Checkout (Section 13)
   -------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content { max-width: 100%; }

body.woocommerce-checkout .wc-block-checkout {
  display: block; /* prevent double-grid */
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--checkout-gap, 2rem);
    align-items: start;
  }
}

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

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-card);
  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,
body.woocommerce-checkout .wc-block-components-textarea textarea {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  border-color: var(--color-border) !important;
  background-color: var(--color-background) !important;
  border-radius: var(--radius) !important;
  padding: revert;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: color-mix(in srgb, var(--color-primary) 50%, transparent) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 25%, transparent) !important;
  outline: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  border: none !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.85 !important; }

body.woocommerce-checkout .wc-block-components-notice-banner {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent) !important;
  color: var(--color-foreground) !important;
  border-radius: var(--radius) !important;
}

body.woocommerce-checkout .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   20. Thank You Page
   -------------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }

body.theme-thankyou-page .woocommerce-order {
  max-width: 100%;
  font-family: var(--font-body);
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  padding: 0 0 1rem 0;
}

body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  list-style: none;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}
body.theme-thankyou-page .woocommerce-order-overview li 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;
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }

body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   21. WooCommerce General Overrides
   -------------------------------------------------------------------------- */

/* Notices — scoped (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* Notices styling for archive/shop pages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}
.woocommerce-error { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.05); }

/* WC price HTML */
.woocommerce-Price-amount { font-family: var(--font-body); }
del .woocommerce-Price-amount { color: var(--color-muted-fg); }

/* Hide WC default sidebar */
.woocommerce-sidebar, .widget-area { display: none; }

/* --------------------------------------------------------------------------
   22. Customizer Controls Styles
   -------------------------------------------------------------------------- */
.cosmic-media-control { display: flex; flex-direction: column; gap: 0.5rem; }
.cosmic-media-url-input { width: 100%; min-width: 0; box-sizing: border-box; }
.cosmic-media-preview { max-width: 100%; height: auto; display: block; margin-top: 0.5rem; }
.cosmic-media-preview-video { max-width: 100%; margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   23. Responsive Utilities
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .container-wide { padding: 0 1rem; }
  .hero-ctas { padding: 0 0.5rem; }
}
