:root {
  --primary: #d96b74;
  --primary-light: #fbebee;
  --primary-dark: #b84f59;
  --secondary: #e8a87c;
  --accent-gold: #d4a373;
  --bg-sand: #fbf9f5;
  --bg-card: #ffffff;
  --text-dark: #2c2523;
  --text-muted: #6a615e;
  --text-light: #ffffff;
  --border-color: #ede6df;
  --badge-bg: #fff0f3;
  --badge-text: #c04e59;
  --whatsapp-green: #25d366;
  --whatsapp-dark: #128c7e;
  --sold-out-bg: #f3f4f6;
  --sold-out-text: #6b7280;
  
  --shadow-sm: 0 2px 8px rgba(44, 37, 35, 0.04);
  --shadow-md: 0 8px 24px rgba(44, 37, 35, 0.08);
  --shadow-lg: 0 16px 36px rgba(44, 37, 35, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-sand);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==========================================================================
   TOP MARQUEE ANNOUNCEMENT TICKER (CINTA EN MOVIMIENTO)
   ========================================================================== */
.top-marquee-bar {
  width: 100%;
  background: linear-gradient(90deg, #c9545e 0%, #d96b74 35%, #e2818a 50%, #d96b74 65%, #c9545e 100%);
  color: #ffffff;
  height: 38px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(217, 107, 116, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  user-select: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
  will-change: transform;
}

.top-marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
}

.marquee-item i {
  color: #fff;
  font-size: 0.85rem;
}

.marquee-dot {
  font-size: 0.6rem;
  opacity: 0.75;
  color: #ffe4e6;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-logo-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dark);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-logo-tagline {
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.icon-btn:active {
  transform: scale(0.94);
  background: var(--primary-light);
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-sand);
}

/* ==========================================================================
   HERO / BANNER SECTION
   ========================================================================== */
.hero-section {
  padding: 14px 16px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-card {
  background: linear-gradient(135deg, #fff2f4 0%, #fdf8f2 100%);
  border-radius: var(--radius-lg);
  padding: 16px 16px 16px;
  border: 1px solid #f5dedc;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 4px;
  width: 76px;
  height: 98px;
  background-image: url("assets/pina_rosada.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(217, 107, 116, 0.1);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .hero-br {
    display: none;
  }
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #f0e4dc;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 5px;
}


/* ==========================================================================
   SEARCH & FILTERS
   ========================================================================== */
.controls-section {
  padding: 14px 16px 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 1rem; /* 16px: evita que iPhone haga zoom al enfocar */
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(217, 107, 116, 0.15);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #eee;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CATEGORY PHOTO CARDS (3 EN HORIZONTAL)
   ========================================================================== */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .category-cards-grid {
    gap: 14px;
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}

.cat-card:active {
  transform: scale(0.96);
}

.cat-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #f5ede6;
  border: 2.5px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.35s ease;
}

.cat-card:hover .cat-card-img {
  transform: scale(1.04);
}

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

/* Category Pill Badge (Igual al diseño de ÚLTIMA PIEZA en imagen 4) */
.cat-pill-badge {
  position: absolute;
  bottom: 6px;
  left: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 2px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.1px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 400px) {
  .cat-pill-badge {
    font-size: 0.68rem;
    padding: 5px 4px;
    bottom: 8px;
    left: 6px;
    right: 6px;
  }
}

/* Active Highlight State */
.cat-card.active .cat-card-img-wrap {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(217, 107, 116, 0.35);
  transform: translateY(-2px);
}

.cat-card.active .cat-pill-badge {
  background: var(--primary);
  color: #ffffff;
}

.sub-filter-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill-mini {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.filter-pill-mini.active {
  background: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
}

.filter-pill-mini .pill-count {
  font-size: 0.65rem;
  opacity: 0.8;
}

.sub-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 2px 2px;
  flex-wrap: wrap;
  gap: 8px;
}

.size-filters {
  display: flex;
  gap: 6px;
  align-items: center;
}

.size-filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 2px;
}

.size-chip {
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--border-color);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.size-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.results-counter {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   PRODUCT GRID & CARDS
   ========================================================================== */
.catalog-section {
  padding: 0 16px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.collection-header {
  margin: 26px 0 14px;
}

.collection-header:first-of-type {
  margin-top: 6px;
}

.collection-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.collection-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
}

.collection-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Photo Gallery Carousel on Cards */
.product-image-wrap {
  position: relative;
  width: 100%;
  /* Las fotos de producto son verticales (3:4): con esta proporción se ven
     completas y no se corta la parte de arriba. */
  aspect-ratio: 3 / 4;
  background: #f4f0eb;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease, opacity 0.2s ease;
  cursor: pointer;
}

.product-card:hover .product-main-img {
  transform: scale(1.03);
}

.product-overlay-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5;
  pointer-events: none;
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
}

.badge-feature {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  backdrop-filter: blur(4px);
}

.badge-status {
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid rgba(217, 107, 116, 0.2);
}

.badge-waitlist {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Gallery thumbnails / navigation */
.gallery-nav-prev, .gallery-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 6;
  opacity: 0.88;
  transition: all 0.2s ease;
}

.gallery-nav-prev { left: 8px; }
.gallery-nav-next { right: 8px; }

.gallery-nav-prev:active, .gallery-nav-next:active {
  transform: translateY(-50%) scale(0.9);
  background: white;
}

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 6;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}
button.gallery-dot { min-width: 6px; }
.gallery-dot::after { content: ""; position: absolute; inset: -6px; } /* zona táctil mayor */
.gallery-dot { position: relative; }

.gallery-dot.active {
  background: white;
  width: 16px;
  border-radius: 4px;
}

/* Card Content Area */
.product-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.product-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.product-code-tag {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 800;
  background: #fdf2f4;
  color: #be123c;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fecdd3;
  letter-spacing: 0.5px;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.product-specs {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.35;
}

.product-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.info-chip {
  background: var(--bg-sand);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-dark);
  font-weight: 500;
}

.info-chip.size-chip-display {
  background: #fdf2f4;
  border-color: #f7d6dc;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Selector de talla en la tarjeta */
.size-select-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-bottom: 4px;
}
.size-select-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
}
.size-select-btn {
  border: 1.5px solid #f7d6dc;
  background: #fdf2f4;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.78rem;
  min-width: 38px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.size-select-btn small { font-size: 0.62rem; font-weight: 600; color: var(--text-muted); }
.size-select-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.size-select-btn.active small { color: rgba(255,255,255,0.85); }
.color-swatch-btn.unavailable { opacity: 0.4; cursor: not-allowed; }
.color-swatch-btn.unavailable .color-circle { filter: grayscale(0.7); }
.size-select-btn.unavailable {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Foco visible al navegar con teclado */
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.product-details-quote {
  font-size: 0.78rem;
  font-style: italic;
  color: #685e5b;
  background: #fdfbf7;
  border-left: 3px solid var(--secondary);
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 12px;
  line-height: 1.35;
}

/* Measurements & Product Details Accordion */
.product-measurements-accordion {
  margin-bottom: 14px;
  background: #faf7f2;
  border: 1px solid #f0e8df;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.measurements-toggle-btn {
  width: 100%;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f1e8;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.measurements-toggle-btn:hover {
  background: #f2e9dc;
}

.measurements-toggle-btn span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-dark);
}

.measurements-toggle-btn .toggle-icon {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.measurements-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

.measurements-content {
  display: none;
  padding: 10px 12px;
}

.measurements-content.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

.sizes-table-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.size-col {
  background: white;
  border: 1px solid #ede4db;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
}

.size-col-header {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: #fdf2f4;
  padding: 2px 0;
  border-radius: 4px;
  margin-bottom: 4px;
}

.size-col-row {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 2px;
}

.size-col-row strong {
  color: var(--text-dark);
  display: block;
  font-size: 0.72rem;
}

.fit-tip-box {
  background: #fff8eb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.72rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.tote-specs-box {
  padding: 8px 12px;
  background: #faf7f2;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  border: 1px solid #f0e8df;
}

/* Global Size Guide Modal */
.size-guide-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.size-guide-modal.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.size-guide-card {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

.size-guide-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  font-size: 0.9rem;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Color Selector for Necklaces */
.color-selection-box {
  margin: 8px 0 14px;
  background: #faf7f2;
  border: 1px solid #f0e8df;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.color-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.color-selection-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.selected-color-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.color-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid var(--border-color);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.18s ease;
  cursor: pointer;
}

.color-swatch-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.color-swatch-btn.active {
  border-color: var(--primary-dark);
  background: #fff0f3;
  color: var(--primary-dark);
  box-shadow: 0 2px 6px rgba(217, 107, 116, 0.2);
}

.color-circle {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Card Button Actions */
.product-actions {
  display: grid;
  grid-template-columns: 1fr 42px 42px;
  gap: 8px;
  margin-top: auto;
}
.btn-share-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-share-card:hover { color: var(--primary-dark); border-color: #f7d6dc; background: #fdf2f4; }
.product-card.highlighted { box-shadow: 0 0 0 3px var(--primary), var(--shadow-lg); }

/* Barra de envío gratis y sugerencia en el carrito */
.cart-shipping-bar { margin-bottom: 12px; font-size: 0.8rem; }
.cart-shipping-bar:empty { display: none; }
.cart-shipping-bar .bar-text { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.cart-shipping-bar .bar-track { height: 8px; border-radius: 999px; background: #f0e4dc; overflow: hidden; }
.cart-shipping-bar .bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--secondary), var(--primary)); transition: width 0.3s ease; }
.cart-shipping-bar.free .bar-fill { background: #059669; }
.cart-shipping-bar.free .bar-text { color: #059669; }
.cart-upsell { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cart-upsell:empty { display: none; }
.cart-upsell-title { font-size: 0.74rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.cart-upsell-row { display: flex; align-items: center; gap: 10px; background: var(--bg-sand); border: 1px solid var(--border-color); border-radius: 10px; padding: 6px 8px; }
.cart-upsell-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-upsell-row .up-name { font-size: 0.8rem; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-upsell-row .up-price { font-size: 0.8rem; font-weight: 700; color: var(--primary-dark); }
.cart-upsell-row button { border: 0; background: var(--primary); color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-weight: 700; }

/* Modal de lista de espera */
.waitlist-modal { position: fixed; inset: 0; background: rgba(44,37,35,0.55); display: none; align-items: center; justify-content: center; z-index: 1200; padding: 20px; }
.waitlist-modal.open { display: flex; }
.waitlist-modal-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 26px 22px 20px; width: 100%; max-width: 380px; position: relative; box-shadow: var(--shadow-lg); text-align: center; }
.waitlist-modal-close { position: absolute; top: 10px; right: 10px; border: 0; background: var(--bg-sand); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--text-muted); }
.waitlist-modal-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--badge-bg); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 8px; }
.waitlist-modal-title { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 4px; color: var(--text-dark); }
.waitlist-modal-product { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }
.waitlist-form { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.waitlist-label { font-size: 0.74rem; font-weight: 600; color: var(--text-muted); margin-top: 6px; }
.waitlist-input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-color); font-size: 1rem; font-family: inherit; }
.waitlist-submit { margin-top: 12px; width: 100%; border: 0; background: var(--whatsapp-green); color: #fff; font-weight: 700; padding: 12px; border-radius: 12px; cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.waitlist-submit:disabled { opacity: 0.6; cursor: wait; }
.waitlist-privacy { font-size: 0.7rem; color: var(--text-muted); text-align: center; margin-top: 8px; }
.btn-waitlist-notify { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 9px; border-radius: 10px; border: 1px solid #f7d6dc; background: #fdf2f4; color: var(--primary-dark); font-weight: 700; font-size: 0.8rem; cursor: pointer; }

.product-actions.single-btn {
  grid-template-columns: 1fr;
}

.btn-whatsapp-order {
  background: var(--whatsapp-green);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-order:active {
  background: var(--whatsapp-dark);
  transform: scale(0.98);
}

.btn-add-cart {
  background: var(--bg-sand);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-add-cart:active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-add-cart.added {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ==========================================================================
   LIGHTBOX / FULL SCREEN SWIPEABLE GALLERY
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 13, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 350;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  padding: 14px 12px 24px;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  z-index: 10;
}

.lightbox-counter-badge {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: background 0.2s ease;
}

.lightbox-close-btn:active {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-stage {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  margin: 10px 0;
}

.lightbox-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.lightbox-nav-btn.prev { left: 4px; }
.lightbox-nav-btn.next { right: 4px; }

.lightbox-nav-btn:active {
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) scale(0.92);
}

.lightbox-bottom-bar {
  text-align: center;
  z-index: 10;
}

.lightbox-title {
  color: white;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.lightbox-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.lightbox-swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.lightbox-thumbnails {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 4px 0;
}

.lightbox-thumb-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}
.lightbox-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  opacity: 0.45;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.08);
}

/* ==========================================================================
   WAITLIST / AGOTADOS FULL SECTION
   ========================================================================== */
.waitlist-section {
  margin-top: 40px;
  background: white;
  border: 1px solid #e7dfd8;
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  box-shadow: var(--shadow-sm);
}

.waitlist-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.waitlist-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.waitlist-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.waitlist-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 18px;
}

.waitlist-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .waitlist-products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.waitlist-card {
  background: #faf8f5;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.waitlist-card-img-wrap {
  position: relative;
  height: 200px;
  background: #f0ebe4;
  overflow: hidden;
}

.waitlist-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.waitlist-card:hover .waitlist-card-img {
  transform: scale(1.04);
}

.waitlist-card-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.waitlist-card-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.waitlist-card-type {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.btn-waitlist-item {
  background: #2c2523;
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-waitlist-item:active {
  background: #111;
  transform: scale(0.98);
}

.btn-waitlist-global {
  background: var(--whatsapp-green);
  color: white;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}

.btn-waitlist-global:active {
  background: var(--whatsapp-dark);
  transform: scale(0.98);
}

/* ==========================================================================
   FLOATING ACTION BUTTONS
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  text-decoration: none;
  position: relative;
}

.float-btn:active {
  transform: scale(0.92);
}

.float-whatsapp {
  background: var(--whatsapp-green);
  color: white;
}

.float-cart {
  background: var(--text-dark);
  color: white;
}

/* ==========================================================================
   DRAWER / CART MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 24px 24px 0 0;
  z-index: 210;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-drawer.open {
  transform: translateY(0);
}

.drawer-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-drawer-btn {
  background: #f1ede8;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1rem;
}

.drawer-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
}

.empty-cart-view {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
}

.empty-cart-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.6;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
  flex-grow: 1;
  padding-right: 12px;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.cart-item-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 2px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-sand);
  border: 1px solid var(--border-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-val {
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.remove-item-btn {
  color: #ef4444;
  background: transparent;
  padding: 6px;
  font-size: 0.9rem;
}

.drawer-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border-color);
  background: #faf7f2;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-total-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cart-total-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Cart Info Banner */
.cart-info-banner {
  background: white;
  border: 1px solid #f0e4dc;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-dark);
}

.cart-info-row i {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.btn-send-whatsapp-order {
  width: 100%;
  background: var(--whatsapp-green);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-send-whatsapp-order:active {
  background: var(--whatsapp-dark);
  transform: scale(0.98);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #241e1d;
  color: #f1ede8;
  padding: 40px 20px 60px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.84rem;
  color: #b0a6a2;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* Footer Info Cards: Pagos & Envíos */
.footer-info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 24px;
  text-align: left;
}

@media (min-width: 540px) {
  .footer-info-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-info-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-info-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-info-val {
  font-size: 0.8rem;
  color: #e5e0dc;
  line-height: 1.35;
}

.footer-contact-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  max-width: 360px;
  margin: 0 auto 24px;
}

.footer-contact-title {
  font-size: 0.78rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}

.footer-contact-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.footer-notice {
  font-size: 0.72rem;
  color: #7d736f;
  margin-top: 16px;
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Botón pequeño de medidas junto a las tallas (sustituye al desplegable por tarjeta) */
.size-select-btn.measures-mini {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  min-width: 0;
  background: #fff;
  border-style: dashed;
  margin-left: 2px;
}
.size-select-btn.measures-mini i { font-size: 0.68rem; }

/* Móvil: sin buscador ni filtro de tallas (la foto 3:4 ya es la de siempre) */
@media (max-width: 640px) {
  .search-box,
  .sub-filters {
    display: none !important;
  }
}
