/* ============================================================
   Gecko Threads Theme — theme.css
   ============================================================ */

/* ---- Defaults / Design Tokens ---- */
:root {
  --color-primary:     #4a7c59;
  --color-primary-fg:  #f5f4ed;
  --color-background:  #f5f4ed;
  --color-foreground:  #1a2419;
  --color-secondary:   #eceae1;
  --color-muted:       #8fa890;
  --color-muted-fg:    #6b7a6d;
  --color-border:      #d4d9d2;
  --color-card:        #ebe9e0;
  --color-botanical:   #4e8462;
  --logo-height:       60px;

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

  --radius:       0.5rem;
  --radius-md:    calc(var(--radius) - 2px);
  --radius-sm:    calc(var(--radius) - 4px);

  --shadow-soft:     0 4px 20px -4px rgba(26,36,25,0.06);
  --shadow-elevated: 0 8px 40px -8px rgba(26,36,25,0.12);

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

  --btn-height:          44px;
  --btn-padding:         0.625rem 2rem;
  --btn-radius:          var(--radius);
  --btn-font-size:       0.875rem;
  --btn-font-weight:     500;
  --btn-letter-spacing:  0.05em;
  --btn-text-transform:  lowercase;
  --color-button-text:   var(--color-primary-fg);

  --header-height: 80px;
  --announcement-height: 36px;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

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;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  margin: 0;
}
h1 { letter-spacing: 0.06em; }
h2 { letter-spacing: 0.03em; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; background: none; border: none; padding: 0; font-family: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

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

.text-muted     { color: var(--color-muted-fg); }
.text-primary   { color: var(--color-primary); }
.text-center    { text-align: center; }
.font-body      { font-family: var(--font-body); }
.font-display   { font-family: var(--font-display); }
.font-semibold  { font-weight: 600; }
.font-medium    { font-weight: 500; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.flex     { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-8  { padding: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.w-full { width: 100%; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.lowercase { text-transform: lowercase; }
.border-t { border-top: 1px solid var(--color-border); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }

/* ---- Scroll margin ---- */
.scroll-mt-24 { scroll-margin-top: calc(var(--header-height) + var(--announcement-height) + 1rem); }

/* ---- Buttons ---- */
.btn-primary, .btn-secondary, .btn-outline, .btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-height);
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  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, transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: scale(1.03); }
.btn-primary:active { transform: scale(0.97); }

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}
.btn-secondary {
  background-color: var(--color-background);
  color: var(--color-foreground);
  border-color: transparent;
}
.btn-secondary:hover { background-color: rgba(245,244,237,0.9); transform: scale(1.03); }
.btn-secondary:active { transform: scale(0.97); }

.btn-outline {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); transform: scale(1.03); }
.btn-outline:active { transform: scale(0.97); }

.btn-outline-light {
  background: rgba(245,244,237,0.1);
  color: var(--color-primary-fg);
  border-color: rgba(245,244,237,0.6);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: rgba(245,244,237,0.2); transform: scale(1.03); }
.btn-outline-light:active { transform: scale(0.97); }

/* ---- Inputs ---- */
.theme-input, .theme-textarea {
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-foreground);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.theme-input { padding: 0.625rem 0.75rem; height: 40px; }
.theme-textarea { padding: 0.625rem 0.75rem; resize: none; height: auto; }
.theme-input::placeholder, .theme-textarea::placeholder { color: var(--color-muted-fg); }
.theme-input:focus, .theme-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(74,124,89,0.2);
}
.theme-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--color-foreground);
}

/* ---- Announcement Bar ---- */
.theme-announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}
.theme-announcement-bar .container-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  position: relative;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
.theme-announcement-text {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
}
.theme-announcement-close {
  position: absolute;
  right: 0.5rem;
  padding: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  color: var(--color-primary-fg);
}
.theme-announcement-close:hover { opacity: 1; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
  top: 36px; /* announcement height */
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.menu-open {
  background-color: rgba(245,244,237,0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-soft);
  color: var(--color-foreground);
}
.theme-no-announcement .site-header { top: 0; }

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

/* Hamburguesa: columna izquierda fija (Lovable: absolute left-0 flex items-center) */
.theme-nav-mobile-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}
@media (min-width: 1024px) {
  .theme-nav-mobile-left { display: none !important; }
}

.theme-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
  object-fit: contain;
  transition: height 0.3s ease, filter 0.3s ease;
  max-height: 72px;
}
/* Inicio: logo grande sobre el hero (alineado con Lovable Header) */
body.home .site-header:not(.is-solid):not(.menu-open) .site-logo-img {
  height: 60px !important;
  max-height: 72px;
}
@media (min-width: 1024px) {
  body.home .site-header:not(.is-solid):not(.menu-open) .site-logo-img {
    height: 72px !important;
  }
}
body.home .site-header.is-solid .site-logo-img,
body.home .site-header.menu-open .site-logo-img {
  height: 40px !important;
  max-height: 48px;
}
@media (min-width: 1024px) {
  body.home .site-header.is-solid .site-logo-img,
  body.home .site-header.menu-open .site-logo-img {
    height: 48px !important;
  }
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.theme-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
  text-transform: lowercase;
  transition: font-size 0.3s ease;
}
@media (min-width: 1024px) {
  .theme-wordmark { font-size: 1.25rem; }
}
body.home .site-header:not(.is-solid):not(.menu-open) .theme-wordmark {
  font-size: 1.25rem;
}
@media (min-width: 1024px) {
  body.home .site-header:not(.is-solid):not(.menu-open) .theme-wordmark {
    font-size: 1.5rem;
  }
}
body.home .site-header.is-solid .theme-wordmark,
body.home .site-header.menu-open .theme-wordmark {
  font-size: 1.125rem;
}
@media (min-width: 1024px) {
  body.home .site-header.is-solid .theme-wordmark,
  body.home .site-header.menu-open .theme-wordmark {
    font-size: 1.25rem;
  }
}

/* Header transparent state — white logo/text on hero */
.site-header:not(.is-solid):not(.menu-open) .site-logo-img { filter: brightness(0) invert(1); }
.site-header:not(.is-solid):not(.menu-open) .theme-wordmark,
.site-header:not(.is-solid):not(.menu-open) .theme-nav-link,
.site-header:not(.is-solid):not(.menu-open) .theme-menu-toggle,
.site-header:not(.is-solid):not(.menu-open) .theme-cart-btn { color: #fff; }

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

/* Mobile menu toggle — p-2 como Lovable */
.theme-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin: 0;
  transition: opacity 0.2s;
  color: inherit;
}
.theme-menu-toggle:hover { opacity: 0.6; }
.lg-hidden { display: flex; }
@media (min-width: 1024px) { .lg-hidden { display: none !important; } }

/* Cart button */
.theme-nav-right {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
}
.theme-cart-btn {
  position: relative;
  padding: 0.5rem;
  transition: opacity 0.2s;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-cart-btn:hover { opacity: 0.6; }
.theme-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: 9999px;
  font-family: var(--font-body);
  padding: 0 4px;
}
.theme-cart-count:empty { display: none; }

/* Mobile menu */
.theme-mobile-menu {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}
.theme-mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.theme-mobile-nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  text-transform: lowercase;
  transition: color 0.2s;
  color: var(--color-foreground);
  width: auto;
  max-width: 100%;
  text-align: left;
  display: inline-block;
  box-sizing: border-box;
}
.theme-mobile-nav-link:hover { color: var(--color-muted-fg); }
button.theme-mobile-nav-link {
  -webkit-appearance: none;
  appearance: none;
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,36,25,0.35);
}
.hero-content {
  position: relative;
  z-index: 10;
  padding: 5rem 2rem;
  max-width: 36rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-content { padding-left: 3rem; padding-right: 3rem; }
}
@media (min-width: 1024px) {
  .hero-content { padding-left: 4rem; padding-right: 4rem; }
}
/* Hero entrada escalonada (framer-motion en Lovable) */
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,244,237,0.7);
  font-weight: 500;
  display: block;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: heroIn 0.8s cubic-bezier(0.25, 0.4, 0.25, 1) 0.3s forwards;
}
.hero-title {
  font-size: 3rem;
  color: var(--color-primary-fg);
  text-transform: lowercase;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(80px);
  animation: heroTitleIn 1s cubic-bezier(0.25, 0.4, 0.25, 1) 0.5s forwards;
}
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
.hero-subtitle {
  color: rgba(245,244,237,0.75);
  max-width: 24rem;
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.8s cubic-bezier(0.25, 0.4, 0.25, 1) 0.8s forwards;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.7s cubic-bezier(0.25, 0.4, 0.25, 1) 1s forwards;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroTitleIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Section helpers ---- */
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.section-heading {
  font-size: 1.875rem;
  text-transform: lowercase;
  margin-top: 0.5rem;
}
@media (min-width: 768px) { .section-heading { font-size: 3rem; } }
.section-header-block { margin-bottom: 3rem; }
.shop-section .section-header-block .section-heading { margin-top: 0.5rem; margin-bottom: 0.75rem; }
.shop-section .shop-subtext { margin-top: 0; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-md-24 { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) {
  .py-md-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .py-md-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

/* ---- Featured Bento ---- */
.featured-section { overflow: hidden; }
.featured-header {
  padding: 1.5rem 1.5rem 1rem;
}
.featured-heading { font-size: 1.5rem; }
@media (min-width: 768px) { .featured-heading { font-size: 2.25rem; } }

.featured-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 0;
}
@media (min-width: 768px) {
  .featured-bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
  }
}

.featured-bento-item { position: relative; overflow: hidden; }
.featured-bento-item-0 { grid-column: span 2; grid-row: span 2; }

.featured-bento-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.featured-bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-bento-item:hover .featured-bento-img { transform: scale(1.04); }
.featured-bento-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,36,25,0);
  transition: background 0.5s ease;
}
.featured-bento-item:hover .featured-bento-overlay { background: rgba(26,36,25,0.15); }
.featured-bento-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(26,36,25,0.6), transparent);
  pointer-events: none;
}
.featured-bento-name {
  font-size: 0.875rem;
  color: var(--color-primary-fg);
  text-transform: lowercase;
}
.featured-bento-price {
  font-size: 0.875rem;
  color: rgba(245,244,237,0.8);
}
.featured-bento-add-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, opacity 0.3s;
  cursor: pointer;
  z-index: 2;
  text-decoration: none;
  border: none;
}
@media (min-width: 768px) {
  .featured-bento-add-btn { opacity: 0; }
  .featured-bento-item:hover .featured-bento-add-btn { opacity: 1; }
}
.featured-bento-add-btn:hover { transform: scale(1.1); }
.featured-bento-add-btn:active { transform: scale(0.9); }

.featured-cta-tile {
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  grid-column: span 2;
}
@media (min-width: 768px) { .featured-cta-tile { grid-column: span 1; } }
.featured-cta-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,244,237,0.7);
  display: block;
  margin-bottom: 0.5rem;
}
.featured-cta-title {
  font-size: 1.25rem;
  color: var(--color-primary-fg);
  text-transform: lowercase;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .featured-cta-title { font-size: 1.5rem; } }

/* ---- Process Section ---- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}
.process-card { text-align: center; }
.process-icon {
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.process-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: lowercase;
  margin-bottom: 0.75rem;
}
.process-card-desc {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---- About Section ---- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 60vh;
}
@media (min-width: 1024px) {
  .about-layout { grid-template-columns: 1fr 1fr; }
}
.about-image-col {
  position: relative;
  min-height: 40vh;
  overflow: hidden;
}
@media (min-width: 1024px) { .about-image-col { min-height: 100%; } }
.about-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
}
@media (min-width: 768px) { .about-content-col { padding: 4rem 3rem; } }
@media (min-width: 1024px) { .about-content-col { padding: 6rem 4rem; } }
.about-heading {
  font-size: 1.875rem;
  text-transform: lowercase;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .about-heading { font-size: 2.5rem; } }
@media (min-width: 1024px) { .about-heading { font-size: 3rem; } }
.about-text-block {
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-size: 1rem;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.about-stat-item {
  text-align: left;
  display: block;
  text-decoration: none;
  color: inherit;
}
.about-stat-label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-transform: lowercase;
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}
.about-stat-item:hover .about-stat-label { color: var(--color-primary); }
.about-stat-desc {
  font-size: 0.875rem;
  display: block;
}

/* ---- Shop Section ---- */
.shop-heading { font-weight: 700; }
.shop-subtext { font-size: 0.875rem; margin-bottom: 2rem; }

.shop-search-wrap {
  position: relative;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}
.shop-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-fg);
  pointer-events: none;
  display: block;
}
.shop-search-input {
  padding-left: 2.5rem;
  border-radius: 9999px;
  background: var(--color-secondary);
}

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

/* Price Filter */
.price-filter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.price-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  text-transform: lowercase;
  color: var(--color-muted-fg);
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}
.price-filter-toggle:hover { color: var(--color-foreground); }
.price-filter-chevron { transition: transform 0.3s var(--transition); }
.price-filter-chevron.open { transform: rotate(180deg); }
.price-filter-panel {
  width: 100%;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 0;
}

/* Price Range Slider — rail único; min a la izquierda y max a la derecha (como Lovable) */
.price-range-wrapper {
  position: relative;
  height: 28px;
  margin-bottom: 0.5rem;
  margin-top: 0.125rem;
}
.range-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.range-track-fill {
  position: absolute;
  height: 4px;
  background: var(--color-primary);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  border-radius: 2px;
  z-index: 1;
}
.price-range-input {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  pointer-events: none;
  cursor: pointer;
}
.price-range-input--min { z-index: 3; }
.price-range-input--max { z-index: 4; }
.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: grab;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--color-primary);
}
.price-range-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border: none;
}
.price-range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: grab;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--color-primary);
}
.price-range-input::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
}
.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  width: 100%;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

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

.theme-product-card-wrap { display: flex; flex-direction: column; }
.theme-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  display: block;
}
.theme-product-card__image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem; /* rounded-xl — ProductCard Lovable */
  background: var(--color-secondary);
  margin-bottom: 1rem;
  position: relative;
}
.theme-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.theme-product-card:hover .theme-product-card__image { transform: scale(1.06); }
.theme-product-card__info { flex: 1; pointer-events: none; }
.theme-product-card__name {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s;
  margin-bottom: 0.25rem;
}
.theme-product-card:hover .theme-product-card__name { color: var(--color-primary); }
.theme-product-card__price { font-size: 0.875rem; }

.theme-product-card__quick-add {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, opacity 0.3s;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}
@media (min-width: 768px) { .theme-product-card__quick-add { opacity: 0; } }
.theme-product-card:hover .theme-product-card__quick-add { opacity: 1; }
.theme-product-card__quick-add:hover { transform: scale(1.1); }
.theme-product-card__quick-add:active { transform: scale(0.9); }

/* Hover lift for standard cards */
.theme-product-card {
  transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
}
.theme-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(30,25,12,0.10);
}

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

.shop-no-products { padding: 5rem 0; }
.shop-no-products-text { font-size: 1rem; }
.shop-show-more { text-align: center; margin-top: 2.5rem; }

/* ---- Blog Section ---- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card {
  position: relative;
  cursor: default;
}
.blog-card--linked {
  cursor: pointer;
}
.blog-card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0.75rem;
}
.blog-card__image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  background: var(--color-secondary);
}
.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.blog-card:hover .blog-card__image { transform: scale(1.05); }
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.blog-card__tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.blog-card__date { font-size: 0.875rem; }
.blog-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: lowercase;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.blog-card:hover .blog-card__title { color: var(--color-primary); }
.blog-card__excerpt { font-size: 0.875rem; line-height: 1.6; }

/* ---- Conservation Section ---- */
.conservation-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 50vh;
}
@media (min-width: 1024px) {
  .conservation-layout { grid-template-columns: 1fr 1fr; }
}
.conservation-video-col {
  position: relative;
  min-height: 40vh;
  overflow: hidden;
}
@media (min-width: 1024px) { .conservation-video-col { min-height: 100%; } }
.conservation-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.conservation-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
}
@media (min-width: 768px) { .conservation-text-col { padding: 4rem 3rem; } }
@media (min-width: 1024px) { .conservation-text-col { padding: 6rem 4rem; } }
.conservation-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.7;
  color: var(--color-primary-fg);
}
.conservation-heading {
  font-size: 1.5rem;
  color: var(--color-primary-fg);
  text-transform: lowercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .conservation-heading { font-size: 2.5rem; } }
@media (min-width: 1024px) { .conservation-heading { font-size: 3rem; } }
.conservation-text1 {
  color: rgba(245,244,237,0.85);
  margin-bottom: 1rem;
  max-width: 28rem;
  line-height: 1.6;
}
.conservation-text2 {
  color: rgba(245,244,237,0.65);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.conservation-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) { .conservation-ctas { flex-direction: row; } }

/* ---- Cart Drawer ---- */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,36,25,0.2);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}
#theme-cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-background);
  z-index: 60;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--transition);
}
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);
}
.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.cart-close-btn {
  padding: 0.25rem;
  transition: opacity 0.2s;
}
.cart-close-btn:hover { opacity: 0.6; }
.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.cart-empty-icon { color: var(--color-muted-fg); margin-bottom: 1rem; }
.cart-empty-text { color: var(--color-muted-fg); font-family: var(--font-body); margin-bottom: 1.5rem; }
.cart-items-list { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: none; margin-bottom: 0; }
.cart-item__image-link {
  width: 80px;
  height: 96px;
  flex-shrink: 0;
  background: var(--color-secondary);
  overflow: hidden;
  display: block;
}
.cart-item__image { width: 100%; height: 100%; object-fit: cover; }
.cart-item__details { flex: 1; min-width: 0; }
.cart-item__name {
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  display: block;
  margin-bottom: 0.125rem;
  transition: opacity 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__name:hover { opacity: 0.7; }
.cart-item__price {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  margin-bottom: 0.5rem;
}
.cart-item__variation {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  margin-bottom: 0.25rem;
}
.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-sm);
  transition: background 0.2s;
  color: var(--color-foreground);
}
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-qty-display {
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
  font-family: var(--font-body);
}
.cart-remove-btn {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
  font-family: var(--font-body);
}
.cart-remove-btn:hover { color: var(--color-foreground); }
.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-family: var(--font-body);
  margin-bottom: 1rem;
}
.cart-free-shipping-note {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  margin-bottom: 1rem;
}
.cart-checkout-btn {
  width: 100%;
  margin-bottom: 0.75rem;
}
.cart-empty-cart-btn {
  width: 100%;
  gap: 0.5rem;
}
.cart-empty-cart-btn__icon {
  flex-shrink: 0;
}

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

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

/* Card compact button override */
.theme-product-card .add_to_cart_button.ajax_add_to_cart,
.theme-product-card .theme-product-card__quick-add {
  min-height: unset !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

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

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

/* ---- Single Product Page ---- */
.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 {
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 479px) {
  .single-product .theme-add-to-cart-area {
    flex-wrap: wrap;
  }
}
.single-product .theme-add-to-cart-area .single_add_to_cart_button,
.single-product .theme-add-to-cart-area .single_add_to_cart_button.button,
.single-product .theme-add-to-cart-area button.single_add_to_cart_button {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 2.75rem;
  height: auto;
  align-self: stretch;
}
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Product not found */
.product-not-found {
  padding: 5rem 0;
  text-align: center;
}
.product-not-found h1 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Back link */
.back-to-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
}
.back-to-shop-link:hover { color: var(--color-foreground); }

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

/* Product gallery */
.theme-product-gallery { min-width: 0; }
.theme-product-main-image {
  aspect-ratio: 3/4;
  background: var(--color-secondary);
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}
.theme-product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.theme-product-thumb-btn {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
  cursor: pointer;
}
.theme-product-thumb-btn.is-active { border-color: var(--color-primary); opacity: 1; }
.theme-product-thumb-btn:hover { opacity: 1; }
.theme-product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Product info — lg:py-10 como ProductDetail Lovable */
.theme-product-info { padding-top: 0; min-width: 0; }
@media (min-width: 1024px) {
  .theme-product-info {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}
.product-category-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  display: block;
  margin-bottom: 0.5rem;
}
.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }
.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
}
.product-description {
  color: var(--color-muted-fg);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
}
.product-description--long {
  white-space: pre-line;
}

/* Size / Color selectors */
.product-option-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}
.product-size-options, .product-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.product-size-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  font-family: var(--font-body);
}
.product-size-btn:hover { border-color: rgba(74,124,89,0.5); }
.product-size-btn.selected {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}
.product-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-md);
  transition: all 0.2s;
  font-family: var(--font-body);
}
.product-color-btn.selected { border-color: var(--color-primary); background: rgba(74,124,89,0.05); }
.product-color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
}

/* Variaciones (talla, etc.) — flex flex-wrap gap-2 como ProductDetail Lovable */
.variations_form .variations {
  border: none;
  margin: 0 0 1.5rem;
  width: 100%;
}
.variations_form .variations tbody,
.variations_form .variations tr,
.variations_form .variations td {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
}
.variations_form .variations td.label {
  padding-bottom: 0.5rem;
}
.variations_form .variations td.label label {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-foreground);
}
.variations_form .variations td.value {
  position: relative;
  padding-bottom: 0.25rem;
}
.theme-variation-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.product-variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.product-variation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  line-height: 1.25;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background);
  color: var(--color-foreground);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.product-variation-btn:hover {
  border-color: rgba(74, 124, 89, 0.5);
}
.product-variation-btn.is-selected:not(.product-variation-btn--placeholder) {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}
.product-variation-btn--placeholder {
  color: var(--color-muted-fg);
  border-style: dashed;
}
.product-variation-btn--placeholder.is-selected {
  border-color: var(--color-border);
  background: var(--color-secondary);
  color: var(--color-muted-fg);
}

/* Quantity + Add to Cart — flex gap-4, control bordered rounded-md (Lovable ProductDetail) */
.theme-add-to-cart-area {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.theme-quantity-wrapper {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-background);
}
.theme-qty-minus,
.theme-qty-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  transition: background 0.2s;
  color: var(--color-foreground);
  line-height: 0;
  flex-shrink: 0;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
  width: 3rem;
  min-width: 3rem;
  max-width: 4.5rem;
  flex: 0 0 auto;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  border: none;
  background: none;
  padding: 0.75rem 0.25rem;
  margin: 0;
  -moz-appearance: textfield;
  box-sizing: border-box;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Stock indicator */
.product-stock-indicator {
  display: inline-block;
  font-size: 0.875rem;
  font-family: var(--font-body);
  margin-bottom: 1rem;
  font-weight: 600;
}
.product-stock-indicator.sold-out { color: #c0392b; }
.product-stock-indicator.in-stock { color: var(--color-primary); }

/* Details section */
.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 0.5rem;
}
.product-details-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.product-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  font-family: var(--font-body);
  margin: 0;
  line-height: 1.5;
}
.product-details-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  margin-top: 0.375rem;
  flex-shrink: 0;
}

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

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

/* Hidden attribute select (for variable products) */
.theme-attr-select-hidden { display: none !important; }

/* ---- WooCommerce Archive (Shop) ---- */
.woocommerce-archive-wrap { padding-top: calc(var(--header-height) + var(--announcement-height) + 2rem); }
.woocommerce-archive-header { text-align: center; margin-bottom: 3rem; }

/* ---- Checkout & Cart (WooCommerce Blocks: evita desborde lateral) ---- */
.theme-page-main {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + var(--announcement-height));
}

body.woocommerce-checkout,
body.woocommerce-cart,
body.woocommerce-account {
  overflow-x: clip;
}

body.woocommerce-checkout .theme-page-main,
body.woocommerce-checkout #main-content,
body.woocommerce-cart .theme-page-main,
body.woocommerce-cart #main-content,
body.woocommerce-account .theme-page-main,
body.woocommerce-account #main-content {
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-checkout .site-main {
  padding-top: calc(var(--header-height) + var(--announcement-height));
  padding-bottom: 4rem;
}

/* Contenedor acotado + padding lateral (evita alignwide / ancho fijo que desborda el viewport) */
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
  width: 100%;
  max-width: min(100%, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  body.woocommerce-checkout .entry-content,
  body.woocommerce-cart .entry-content,
  body.woocommerce-account .entry-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide,
body.woocommerce-checkout .wc-block-checkout.alignwide,
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide,
body.woocommerce-cart .wc-block-cart.alignwide {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wc-block-cart {
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}

/*
 * Carrito (bloques WC): el CSS del plugin usa flex + 65%/35% + padding % y carga después del tema.
 * Forzamos grid contenido en el ancho para dos columnas sin desbordar márgenes.
 */
body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.is-large,
body.woocommerce-cart .wc-block-components-sidebar-layout.wp-block-woocommerce-filled-cart-block.is-large {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 699px) {
  body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.is-large,
  body.woocommerce-cart .wc-block-components-sidebar-layout.wp-block-woocommerce-filled-cart-block.is-large {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
  }
  body.woocommerce-cart .wc-block-components-sidebar-layout.is-large .wc-block-components-main,
  body.woocommerce-cart .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: none !important;
  }
}
@media (min-width: 700px) {
  body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.is-large,
  body.woocommerce-cart .wc-block-components-sidebar-layout.wp-block-woocommerce-filled-cart-block.is-large {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(220px, min(380px, 34vw)) !important;
    gap: clamp(1rem, 2.5vw, 1.75rem) !important;
    align-items: start !important;
    flex-wrap: nowrap !important;
  }
  body.woocommerce-cart .wc-block-components-sidebar-layout.is-large .wc-block-components-main,
  body.woocommerce-cart .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: none !important;
  }
}

/* Checkout en dos columnas (misma idea; sin !important salvo si hace falta más adelante) */
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
  body.woocommerce-checkout .wc-block-checkout__main ~ .wc-block-checkout__sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
  }
}
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-cart__totals,
body.woocommerce-cart .wc-block-components-main,
body.woocommerce-cart .wc-block-components-sidebar {
  min-width: 0;
}
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-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  background: var(--color-background) !important;
  color: var(--color-foreground) !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(74,124,89,0.2) !important;
  outline: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-primary-fg) !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;
  text-transform: var(--btn-text-transform) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  border: none !important;
  padding: var(--btn-padding) !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: opacity 0.2s !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.88 !important; }
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 2rem;
}

/* Page title */
.page-title-wrap { padding-top: 2rem; padding-bottom: 0; }
.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: lowercase;
  padding-bottom: 1rem;
}
@media (min-width: 768px) { .page-title { font-size: 2.5rem; } }

/* ---- Thank You Page ---- */
body.theme-thankyou-page .woocommerce-order { max-width: 800px; margin: 0 auto; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 1.5rem;
  background: var(--color-secondary);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body);
  font-size: 0.875rem;
}
body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  body.theme-thankyou-page .woocommerce-customer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}
body.theme-thankyou-page .woocommerce-customer-details address {
  min-width: 0;
  overflow-wrap: break-word;
}
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page { overflow-x: hidden; }

/* ---- Footer ---- */
.site-footer { background: var(--color-background); }
/* py-12 lg:py-16 (Lovable) — la clase lg-py-16 no era CSS válido */
.site-footer-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 1024px) {
  .site-footer-inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
.footer-newsletter-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .footer-newsletter-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-newsletter-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}
.footer-newsletter-text { font-size: 0.875rem; }
.footer-newsletter-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-newsletter-input {
  width: 100%;
  height: 40px;
}
@media (min-width: 640px) { .footer-newsletter-input { width: 240px; } }
.footer-newsletter-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-newsletter-success { font-size: 0.875rem; }
.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-columns { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; } }
.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.footer-tagline { font-size: 0.875rem; margin-bottom: 0.75rem; }
.footer-about-text { font-size: 0.875rem; max-width: 24rem; line-height: 1.6; margin-bottom: 0.75rem; }
.footer-badge { font-size: 0.875rem; }
.footer-col-heading { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-nav-list, .footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-link {
  font-size: 0.875rem;
  transition: color 0.2s;
  text-transform: capitalize;
  cursor: pointer;
}
.footer-nav-link:hover, .footer-nav-link:focus { color: var(--color-foreground); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.footer-email, .footer-instagram { transition: color 0.2s; }
.footer-email:hover, .footer-instagram:hover { color: var(--color-foreground); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-copyright, .footer-credit { font-size: 0.875rem; }

/* ---- Popup ---- */
.theme-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.theme-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,36,25,0.3);
  backdrop-filter: blur(4px);
}
.theme-popup-panel {
  position: relative;
  z-index: 62;
  background: var(--color-background);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-elevated);
  max-width: 28rem;
  width: 100%;
  padding: 2rem;
  animation: popupIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.theme-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.theme-popup-close:hover { color: var(--color-foreground); }
.popup-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
@media (min-width: 768px) { .popup-title { font-size: 1.875rem; } }
.popup-text { font-size: 0.875rem; }
.popup-fine-print { font-size: 0.875rem; margin-top: 1rem; }
.popup-success-content { text-align: center; padding: 1rem 0; }
.popup-success-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.popup-success-text { font-size: 0.875rem; color: var(--color-muted-fg); }

/* ---- Contact Modal ---- */
.theme-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.theme-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,36,25,0.3);
  backdrop-filter: blur(4px);
}
.theme-modal-panel {
  position: relative;
  z-index: 62;
  background: var(--color-background);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  max-width: 32rem;
  width: 100%;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.theme-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.contact-modal-title { font-size: 1.5rem; }
.theme-modal-close {
  padding: 0.25rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.theme-modal-close:hover { color: var(--color-foreground); }
.contact-modal-desc { font-size: 0.875rem; color: var(--color-muted-fg); margin-bottom: 1rem; }
.theme-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .contact-form-grid { grid-template-columns: 1fr 1fr; } }
.contact-submit-btn { display: inline-flex; align-items: center; }
.contact-success { text-align: center; padding: 2rem 0; }
.contact-success-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-primary-fg);
  animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.15s both;
}
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }
.contact-success-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.contact-success-text { font-size: 0.875rem; color: var(--color-muted-fg); }

/* ---- Link underline animation ---- */
.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);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ---- 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) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--transition) forwards; }

/* Scroll animations — easing igual a framer-motion easeSmooth en Lovable */
.js-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1); }
.js-reveal.is-visible { opacity: 1; transform: none; }
.js-reveal-left { opacity: 0; transform: translateX(-40px) translateY(30px); transition: opacity 0.9s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1); }
.js-reveal-left.is-visible { opacity: 1; transform: none; }
.js-reveal-right { opacity: 0; transform: translateX(40px) translateY(30px); transition: opacity 0.9s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1); }
.js-reveal-right.is-visible { opacity: 1; transform: none; }

/* ---- 404 Page ---- */
.theme-404 { padding-top: calc(var(--header-height) + var(--announcement-height) + 2rem); }

/* ---- Product added check ---- */
.product-added-text { display: flex; align-items: center; gap: 0.5rem; }

/* ---- Product Page: add-to-cart full width ---- */
.theme-add-to-cart-area .single_add_to_cart_button {
  flex: 1 1 0%;
  min-height: 2.75rem;
}

/* ---- WooCommerce archive page spacing ---- */
.woocommerce-archive-wrap {
  padding-top: calc(var(--header-height) + var(--announcement-height) + 2rem);
  min-height: 60vh;
}

/* ---- Product info padding ---- */
.single-product .theme-page-main,
.woocommerce.single-product #main-content {
  padding-top: calc(var(--header-height) + var(--announcement-height));
}

/* ---- Checkout, Cart & Mi cuenta: espacio inferior (padding-top ya en .theme-page-main) ---- */
body.woocommerce-checkout .theme-page-main,
body.woocommerce-cart .theme-page-main,
body.woocommerce-account .theme-page-main {
  padding-bottom: 4rem;
}

/* ---- Shop section container ---- */
#shop .container-wide {
  position: relative;
}

/* ---- Footer newsletter form response ---- */
#footer-newsletter-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Customizer Controls CSS ---- */
