/* ═══════════════════════════════════════════════════════════════════════════
  AMANO - SISTEMA DE DISEÑO
  Identidad visual cálida, artesanal y sofisticada
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta Earth Tones - Amano */
  --bg: #FAF9F6;             /* Blanco hueso / Off-white */
  --bg-soft: #EBE5CE;        /* Arena suave */
  --pink: #B07C56;           /* Terracota/Cobre (color principal) */
  --pink-strong: #8C5E3C;    /* Marrón cuero (hover) */
  --wine: #2E2824;           /* Carbón cálido (texto principal) */
  --terracotta: #D4B996;     /* Beige Trigo (acento secundario) */
  --muted: #5C574F;          /* Gris piedra mejorado (contraste WCAG AA 4.8:1) */
  
  /* Sistema de espaciado y bordes */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 40px rgba(46, 40, 36, 0.12);
}

* { 
  box-sizing: border-box; 
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--wine);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

/* Decoración de fondo sutil - tonos tierra */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.25;
}

body::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(180, 124, 86, 0.3), transparent 70%);
}

body::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(212, 185, 150, 0.3), transparent 70%);
}

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-strong); }

/* Focus visible para accesibilidad */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOPBAR / HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.topbar {
  position: sticky;
  top: 0;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  z-index: 20;
  border-bottom: 1px solid rgba(46, 40, 36, 0.08);
}

.topbar .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--wine); }
.brand__logo { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--shadow); object-fit: cover; }
.brand__name { font-family: 'Playfair Display', serif; letter-spacing: 0.4px; font-size: 22px; }

.nav { display: flex; gap: 16px; }
.nav a { font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: var(--radius-sm); transition: all 0.2s ease; }
.nav a:hover { background: rgba(180, 124, 86, 0.12); }

.topbar__actions { display: inline-flex; align-items: center; gap: 10px; }

/* Cart button with badge */
#cart-button, #cart-button-mobile { position: relative; }
.cart-badge { 
  position: absolute; 
  top: -4px; 
  right: -4px; 
  background: var(--pink); 
  color: #fff; 
  font-size: 10px; 
  font-weight: 800; 
  min-width: 18px; 
  height: 18px; 
  border-radius: 999px; 
  display: grid; 
  place-items: center; 
  padding: 0 5px; 
}
.cart-badge:empty { display: none; }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
.cart-pulse { animation: pulse 300ms ease; }

.nav-toggle {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  color: var(--wine);
  display: none;
}

.nav-drawer {
  position: fixed;
  top: 70px;
  right: 0;
  background: var(--bg);
  width: 280px;
  height: calc(100vh - 70px);
  box-shadow: -8px 0 30px rgba(46, 40, 36, 0.15);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 30;
}

.nav-drawer[aria-hidden="false"] { display: flex; }
.nav-drawer a { font-weight: 700; color: var(--wine); }

/* Social links in mobile nav */
.nav-drawer__social { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid rgba(46, 40, 36, 0.1); margin-top: 8px; }
.nav-drawer__social-link { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; transition: all 0.2s ease; }
.nav-drawer__social-link--ig { background: linear-gradient(135deg, rgba(240, 148, 51, 0.12), rgba(220, 39, 67, 0.12)); color: #dc2743; }
.nav-drawer__social-link--ig:hover { background: linear-gradient(135deg, rgba(240, 148, 51, 0.2), rgba(220, 39, 67, 0.2)); color: #dc2743; }
.nav-drawer__social-link--wa { background: rgba(37, 211, 102, 0.12); color: #128C7E; }
.nav-drawer__social-link--wa:hover { background: rgba(37, 211, 102, 0.2); color: #128C7E; }
.nav-drawer__social-icon { font-size: 18px; }

.topbar.sticky-shadow { box-shadow: 0 10px 30px rgba(46, 40, 36, 0.08); }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  color: #fff;
  box-shadow: 0 6px 20px rgba(180, 124, 86, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--wine);
  border: 1.5px solid rgba(46, 40, 36, 0.2);
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  padding: 80px 0 60px;
  width: 100%;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero h1 { 
  font-family: 'Playfair Display', serif; 
  font-size: clamp(32px, 5vw, 44px); 
  margin: 10px 0; 
  color: var(--wine); 
  line-height: 1.2;
}
.lede { color: var(--muted); max-width: 60ch; font-size: 17px; }
.eyebrow { 
  text-transform: uppercase; 
  letter-spacing: 1.2px; 
  font-weight: 700; 
  color: var(--pink-strong); 
  font-size: 12px; 
  margin: 0 0 8px; 
}

.hero__actions { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill { 
  background: rgba(180, 124, 86, 0.14); 
  color: var(--wine); 
  padding: 8px 12px; 
  border-radius: 999px; 
  font-weight: 600; 
  font-size: 13px; 
  border: 1px solid rgba(46, 40, 36, 0.08); 
}
.pill--soft { 
  background: rgba(212, 185, 150, 0.18); 
  border-color: rgba(46, 40, 36, 0.06); 
}

.hero__media { 
  position: relative; 
  min-height: 320px; 
  width: 100%;
  overflow: hidden;
}
.photo-frame {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(46, 40, 36, 0.18);
  border: 4px solid #fff;
  background: linear-gradient(135deg, rgba(180, 124, 86, 0.1), rgba(212, 185, 150, 0.1));
}
.photo-frame:first-child {
  width: 260px;
  height: 320px;
  top: 0;
  left: 0;
}
.photo-frame .hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame .hero-img[src=""], .photo-frame .hero-img:not([src]) { display: none; }
.photo-frame--2 { width: 200px; height: 230px; top: 40px; left: 18%; transform: rotate(-6deg); }
.photo-frame--3 { width: 180px; height: 200px; bottom: 0; right: 22%; transform: rotate(5deg); }
.note { margin-top: 280px; font-size: 13px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.section { 
  padding: 72px 0; 
  position: relative; 
  width: 100%;
  overflow: hidden;
}
.section--soft { background: var(--bg-soft); }
.section__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section__header h2 { 
  font-family: 'Playfair Display', serif; 
  font-size: clamp(28px, 4vw, 36px); 
  color: var(--wine); 
  margin: 0; 
}
.section__header p { color: var(--muted); max-width: 50ch; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════════════════════════════════════════ */

.grid { 
  display: grid !important; 
  gap: 24px; 
  grid-template-columns: repeat(4, 1fr); 
  position: relative;
  z-index: 1;
  min-height: 400px;
}

/* Responsive grid */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, rgba(180, 124, 86, 0.08) 25%, rgba(212, 185, 150, 0.12) 50%, rgba(180, 124, 86, 0.08) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Ocultar skeletons cuando hay productos */
.grid:not(:empty) .skeleton {
  display: none;
}
  
  /* Permitir scroll horizontal en admin panel y editores */
  .admin__main, .admin__content, .admin__config, .admin__site-content {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100vw;
  }
  .admin__table, .admin__form, .admin__site-content-editor {
    min-width: 480px;
    width: max-content;
    display: block;
  }

/* FORZAR visibilidad de productos */
.grid .card {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(46, 40, 36, 0.15), 0 2px 8px rgba(46, 40, 36, 0.1);
  border: 2px solid rgba(180, 124, 86, 0.2);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 16px 50px rgba(180, 124, 86, 0.3), 0 4px 12px rgba(46, 40, 36, 0.15);
  border-color: var(--pink);
}

.card__img { 
  position: relative; 
  width: 100%; 
  aspect-ratio: 3 / 4; 
  border-radius: var(--radius-md); 
  overflow: hidden; 
  background: linear-gradient(135deg, rgba(180, 124, 86, 0.12), rgba(212, 185, 150, 0.12)); 
}
.card__img img, .card__img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__img img[src=""], .card__img img:not([src]) {
  background: linear-gradient(135deg, rgba(180, 124, 86, 0.08), rgba(212, 185, 150, 0.08));
}

.card__body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.card__title { 
  font-size: 16px; 
  font-weight: 700; 
  margin: 0; 
  color: var(--wine); 
  line-height: 1.3;
  font-family: 'Playfair Display', serif;
}
.card__desc { 
  font-size: 13px; 
  color: var(--muted); 
  margin: 0; 
  line-height: 1.5; 
  flex: 1; 
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Color text in card */
.card__colors {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
}

.card__colors-label {
  color: var(--muted);
  font-weight: 600;
}

.card__colors-list {
  color: var(--wine);
  font-weight: 500;
}

.card__footer { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 12px;
  margin-top: auto; 
  padding: 12px 16px;
  background: rgba(250, 249, 246, 0.8);
  border-top: 1px solid rgba(180, 124, 86, 0.1);
}

.card__price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card__price { 
  font-weight: 800; 
  font-size: 18px; 
  color: var(--pink-strong); 
  line-height: 1.2;
}

.card__price--sale { 
  color: var(--muted); 
  font-size: 13px; 
  text-decoration: line-through; 
  opacity: 0.7;
}

/* Add to cart button on card */
.card__add-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.card__add-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(180, 124, 86, 0.4);
}

.card__add-btn span {
  font-size: 16px;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════════════════════════════════════════ */

.filters { display: flex; gap: 10px; flex-wrap: wrap; }

.filters-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.search-box {
  width: 100%;
  max-width: 280px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(46, 40, 36, 0.12);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--wine);
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(176, 124, 86, 0.15);
}

.search-box input::placeholder {
  color: var(--muted);
}
.filter {
  padding: 10px 18px;
  border: 1.5px solid rgba(46, 40, 36, 0.15);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--wine);
  transition: all 0.2s ease;
  font-family: inherit;
}
.filter:hover { background: rgba(180, 124, 86, 0.1); border-color: var(--pink); }
.filter.active { background: linear-gradient(135deg, var(--pink), var(--pink-strong)); color: #fff; border-color: transparent; }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL (Product Detail)
   ═══════════════════════════════════════════════════════════════════════════ */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(46, 40, 36, 0.6);
  backdrop-filter: blur(6px);
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal__dialog {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 24px 80px rgba(46, 40, 36, 0.3);
  position: relative;
}

.modal__header {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(46, 40, 36, 0.08);
  z-index: 1;
}

.modal__close {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
  padding: 4px;
  line-height: 1;
}
.modal__close:hover { color: var(--wine); }

.modal__body { padding: 24px; }

/* Breadcrumbs inside modal - full width */
.modal__body > .breadcrumbs {
  margin-bottom: 20px;
}

.product-detail { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.product-detail__gallery { position: relative; }
.product-detail__main-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(180, 124, 86, 0.1), rgba(212, 185, 150, 0.1));
}
.product-detail__main-img img { width: 100%; height: 100%; object-fit: cover; }

.product-detail__info { display: flex; flex-direction: column; gap: 16px; }
.product-detail__title { font-family: 'Playfair Display', serif; font-size: 28px; margin: 0; color: var(--wine); }
.product-detail__price { font-size: 32px; font-weight: 800; color: var(--pink-strong); }
.product-detail__desc { color: var(--muted); line-height: 1.6; }

.size-selector { display: grid; gap: 8px; }
.size-selector__label { font-weight: 700; font-size: 14px; color: var(--wine); }
.size-selector__options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-option {
  padding: 10px 16px;
  border: 1.5px solid rgba(46, 40, 36, 0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  font-family: inherit;
}
.size-option:hover { border-color: var(--pink); background: rgba(180, 124, 86, 0.08); }
.size-option.selected { background: var(--pink); color: #fff; border-color: var(--pink); }
.size-option.disabled { opacity: 0.5; cursor: not-allowed; background: rgba(46, 40, 36, 0.05); border-color: rgba(46, 40, 36, 0.1); color: var(--muted); }
.size-option.disabled:hover { border-color: rgba(46, 40, 36, 0.1); background: rgba(46, 40, 36, 0.05); }

/* Color Selector */
.color-selector { display: grid; gap: 8px; margin-top: 8px; }
.color-selector__label { font-weight: 700; font-size: 14px; color: var(--wine); }
.color-selector__options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-option {
  padding: 8px 14px;
  border: 1.5px solid rgba(46, 40, 36, 0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--wine);
  transition: all 0.2s ease;
  font-family: inherit;
}
.color-option:hover { border-color: var(--pink); background: rgba(180, 124, 86, 0.08); }
.color-option.selected { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Quantity Selector */
.quantity-selector { display: grid; gap: 8px; margin-top: 8px; }
.quantity-selector__label { font-weight: 700; font-size: 14px; color: var(--wine); }
.quantity-selector__controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1.5px solid rgba(46, 40, 36, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.quantity-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  font-size: 20px;
  font-weight: 600;
  color: var(--wine);
  cursor: pointer;
  transition: background 0.2s;
}
.quantity-btn:hover { background: rgba(180, 124, 86, 0.1); }
.quantity-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.quantity-value {
  width: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--wine);
}

.product-detail__actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.product-detail__actions .btn { flex: 1; min-width: 140px; justify-content: center; }
.product-detail__actions .btn-lg { padding: 14px 24px; font-size: 15px; }
.product-detail__actions .btn-icon { font-size: 18px; }

.size-table { border-collapse: collapse; width: 100%; margin-top: 12px; }
.size-table th, .size-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(46, 40, 36, 0.08); }
.size-table th { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--wine); }
.size-table td { color: var(--muted); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CART DRAWER
   ═══════════════════════════════════════════════════════════════════════════ */

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg);
  box-shadow: -10px 0 40px rgba(46, 40, 36, 0.2);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-drawer[aria-hidden="true"] {
  transform: translateX(100%);
}

.cart-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.cart-drawer__header {
  padding: 20px;
  border-bottom: 1px solid rgba(46, 40, 36, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__header h3 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  color: var(--wine);
}

.cart-drawer__close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
}
.cart-drawer__close:hover { color: var(--wine); }

.cart-drawer__items {
  flex: 1;
  overflow: auto;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(46, 40, 36, 0.08);
}

.cart-item__img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(180, 124, 86, 0.1), rgba(212, 185, 150, 0.1));
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__info { display: flex; flex-direction: column; gap: 4px; }
.cart-item__title { font-weight: 700; font-size: 14px; color: var(--wine); margin: 0; line-height: 1.3; }

.cart-item__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.cart-item__detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(46, 40, 36, 0.06);
  padding: 2px 8px;
  border-radius: 999px;
}

.cart-item__color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}

.cart-item__qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  background: rgba(46, 40, 36, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--wine);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-item__qty-btn:hover { background: rgba(180, 124, 86, 0.15); }

.cart-item__qty span {
  width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--wine);
}

.cart-item__price { font-weight: 700; font-size: 15px; color: var(--pink-strong); }

.cart-item__remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  align-self: flex-start;
}
.cart-item__remove:hover { color: #e74c3c; }

.cart-drawer__empty {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
}
.cart-drawer__empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

.cart-drawer__footer {
  padding: 20px;
  border-top: 1px solid rgba(46, 40, 36, 0.1);
  display: grid;
  gap: 12px;
  background: var(--bg-soft);
}

.cart-summary { display: grid; gap: 8px; }
.cart-summary__line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.cart-summary__total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; color: var(--wine); padding-top: 8px; border-top: 1px solid rgba(46, 40, 36, 0.1); }

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT / HOW IT WORKS SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content { display: flex; flex-direction: column; gap: 16px; }
.about-content h2 { 
  font-family: 'Playfair Display', serif; 
  font-size: clamp(28px, 4vw, 36px); 
  color: var(--wine); 
  margin: 0; 
}
.about-content p { color: var(--muted); line-height: 1.7; font-size: 16px; }

.about-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(46, 40, 36, 0.15);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.step-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 40, 36, 0.08);
  box-shadow: 0 6px 20px rgba(46, 40, 36, 0.06);
  transition: all 0.3s ease;
}

.step-card:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(180, 124, 86, 0.15); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

.step-card h3 { font-size: 18px; color: var(--wine); margin: 0 0 8px; }
.step-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--wine);
  color: rgba(250, 249, 246, 0.85);
  padding: 48px 0 28px;
  margin-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer__section h4 {
  color: var(--terracotta);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 12px;
}

.footer__section p, .footer__section a {
  color: rgba(250, 249, 246, 0.75);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 8px;
  display: block;
}

.footer__section a:hover { color: var(--terracotta); }

.footer__bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(250, 249, 246, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(250, 249, 246, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   WHATSAPP FLOAT BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 45;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM GALLERY (PERSONALIZADOS)
   ═══════════════════════════════════════════════════════════════════════════ */

.custom-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.custom-gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4/5;
}

.custom-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.custom-gallery-item img,
.custom-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-gallery-item video {
  cursor: pointer;
}

.custom-gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.custom-gallery-item__title {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
}

.custom-gallery-item__desc {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
}

.custom-gallery-item__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.custom-gallery-item__play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

.custom-gallery-item__play svg {
  width: 24px;
  height: 24px;
  fill: var(--wine);
  margin-left: 3px;
}

.custom-gallery-item.is-playing .custom-gallery-item__play {
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT VIDEO SUPPORT
   ═══════════════════════════════════════════════════════════════════════════ */

.card__media {
  position: relative;
  overflow: hidden;
}

.card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(180, 124, 86, 0.12), rgba(212, 185, 150, 0.12));
}

/* Play button overlay for video cards */
.card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.card__play-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.card__play-btn svg {
  margin-left: 4px;
}

/* Hide play button when video is playing */
.card.is-playing .card__play-btn {
  opacity: 0;
  pointer-events: none;
}

.card__video-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
}

/* Indicador de múltiples imágenes */
.card__media-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Badges de stock en cards */
.card__stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.card__stock-badge--out {
  background: rgba(231, 76, 60, 0.9);
  color: white;
}

.card__stock-badge--order {
  background: rgba(52, 152, 219, 0.9);
  color: white;
}

.card__sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Card agotado */
.card--out-of-stock .card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.card--out-of-stock .card__title {
  color: var(--muted);
}

.product-detail__video {
  width: 100%;
  border-radius: var(--radius-md);
  max-height: 500px;
  object-fit: cover;
  background: #f5f5f5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT GALLERY CAROUSEL
   ═══════════════════════════════════════════════════════════════════════════ */

.product-gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #f5f5f5;
}

.carousel-item {
  display: none;
  width: 100%;
}

.carousel-item.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.carousel-item img,
.carousel-item video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 16px 20px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 10;
  font-weight: 600;
  user-select: none;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.9);
}

.carousel-nav--prev {
  left: 12px;
}

.carousel-nav--next {
  right: 12px;
}

.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
  background: white;
  width: 12px;
  height: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: -1; }
  
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .product-detail { grid-template-columns: 1fr; }
  
  .nav { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .wrapper { padding: 0 16px; }
  
  .cart-drawer { width: 100%; }
  .modal__dialog { max-width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  
  /* Footer responsive mejorado */
  .footer__grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 24px 16px; 
  }
  
  .footer__section:first-child {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(250, 249, 246, 0.1);
  }
  
  /* En móvil: mostrar solo una imagen del hero */
  .hero { padding: 56px 0 40px; }
  .hero__media { 
    display: block;
    min-height: 200px;
    margin-bottom: 24px;
  }
  .hero__media .photo-frame { position: relative; margin: 0 auto; }
  .hero__media .photo-frame:first-child { width: 100%; max-width: 280px; height: 200px; }
  .hero__media .photo-frame--2,
  .hero__media .photo-frame--3 { display: none; }
  .hero__copy { padding-bottom: 8px; text-align: center; }
  .eyebrow { font-size: 12px; }
  .hero h1 { font-size: 30px; line-height: 1.2; }
  .hero .lede { font-size: 16px; }
  .hero__badges { justify-content: center; }
  
  /* Arreglar hero actions en móvil */
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  
  /* Ajustar títulos en móvil */
  .hero h1 { font-size: 30px; }
  .section__header h2 { font-size: 28px; }
  
  /* Filters/Search en móvil */
  .filters-container {
    width: 100%;
    align-items: stretch;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .filters {
    justify-content: center;
  }
  
  /* Theme toggle más pequeño en móvil */
  .theme-toggle {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  /* Shipping/Payment cards stack */
  .section--soft .card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__section {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(250, 249, 246, 0.08);
  }
  
  .footer__section:last-child {
    border-bottom: none;
  }
  
  /* Cards más pequeños */
  .card__body { padding: 14px; }
  .card__footer { padding: 10px 14px; }
  .card__title { font-size: 16px; }
  .card__price { font-size: 18px; }
  
  /* Breadcrumbs scroll horizontal */
  .breadcrumbs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
  }
}
