/* ============================================================
   Velvet Aura — Estilos compartidos de Tienda y Producto
   ============================================================ */

:root {
  --ink:#1c1411; --charcoal:#2d2520; --text:#4a3f37; --muted:#897a6f;
  --bone:#f8f1e8; --ivory:#fbf6ee; --cream:#f3eadc;
  --gold:#b08252; --gold-deep:#8a6238; --gold-soft:#d8b88a;
  --line:rgba(28,20,17,.08); --line-strong:rgba(28,20,17,.16);
  --shadow:0 24px 60px rgba(28,20,17,.14);
  --max:1200px; --gutter:clamp(20px,4vw,48px);
  --radius:18px; --radius-lg:28px;
  --font-serif:"Fraunces","Times New Roman",Georgia,serif;
  --font-sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}
.material-symbols-outlined { font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
body{margin:0; background:var(--ivory); color:var(--ink); font-family:var(--font-sans); -webkit-font-smoothing:antialiased;}
*,*::before,*::after{box-sizing:border-box;}
img{max-width:100%;}
.va-reveal{opacity:0;transform:translateY(40px);transition:opacity 0.7s cubic-bezier(.22,.61,.36,1),transform 0.7s cubic-bezier(.22,.61,.36,1)}
.va-visible{opacity:1;transform:translateY(0)}

.cb *,.cb ::before,.cb ::after{box-sizing:border-box;}
.cb h1,.cb h2,.cb h3{font-family:var(--font-serif); font-weight:500; letter-spacing:-.01em; margin:0;}
.cb p{margin:0; color:var(--text);}
.cb a{color:inherit; text-decoration:none;}
.cb em{font-style:italic; color:var(--gold-deep);}
.cb .wrap{max-width:var(--max); margin:0 auto; padding:0 var(--gutter);}
.cb section{padding:clamp(40px,5vw,64px) 0;}
.cb .eyebrow{font-size:12px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; color:var(--gold-deep); display:flex; align-items:center; gap:10px; margin-bottom:16px;}
.cb .eyebrow::before{content:""; width:22px; height:1px; background:var(--gold);}

/* ---------- Carrito flotante (círculo fijo) ---------- */
.cart-fab{
  position:fixed; top:96px; right:24px; z-index:55;
  width:52px; height:52px; border-radius:50%;
  background:var(--ink); color:var(--ivory); border:none;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 32px rgba(28,20,17,.25);
  cursor:pointer;
  transition:transform .25s var(--ease), background .25s var(--ease);
}
.cart-fab:hover{transform:translateY(-2px) scale(1.04); background:var(--gold-deep);}
.cart-fab svg{width:19px; height:19px;}
.cart-count{
  position:absolute; top:-3px; right:-3px;
  background:var(--gold); color:var(--ink);
  font-size:11px; font-weight:700;
  width:20px; height:20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--ivory);
}
@media(max-width:600px){
  .cart-fab{top:96px; right:16px; width:46px; height:46px;}
}

/* ---------- Panel flotante de carrito ---------- */
.cart-overlay{
  position:fixed; inset:0; background:rgba(28,20,17,.35);
  opacity:0; pointer-events:none; transition:opacity .3s var(--ease);
  z-index:51;
}
.cart-overlay.open{opacity:1; pointer-events:auto;}
.cart-panel{
  position:fixed; top:0; right:0; bottom:0; z-index:53;
  width:380px; max-width:92vw;
  background:var(--ivory);
  box-shadow:-24px 0 60px rgba(28,20,17,.18);
  display:flex; flex-direction:column;
  transform:translateX(100%);
  transition:transform .4s var(--ease);
}
.cart-panel.open{transform:translateX(0);}
.cart-overlay.open ~ #va-socials,
.cart-overlay.open ~ #va-socials a{
  z-index:40 !important;
  pointer-events:none !important;
}
.cart-panel-head{display:flex; align-items:center; justify-content:space-between; padding:22px 22px 18px; border-bottom:1px solid var(--line);}
.cart-panel-head h2,.cart-panel-head h3{font-size:17px;}
.cart-close{width:32px; height:32px; border-radius:50%; border:1px solid var(--line-strong); display:flex; align-items:center; justify-content:center; cursor:pointer; background:none;}
.cart-close svg{width:14px; height:14px;}
.cart-items{flex:1; overflow-y:auto; padding:14px 22px;}
.cart-empty{text-align:center; padding:60px 20px; color:var(--muted); font-size:13.5px;}
.cart-empty svg{width:32px; height:32px; color:var(--line-strong); margin-bottom:14px;}
.cart-item{display:flex; gap:12px; padding:16px 0; border-bottom:1px solid var(--line);}
.cart-item-photo{width:56px; height:56px; border-radius:10px; flex-shrink:0; background:var(--cream); overflow:hidden;}
.cart-item-photo img{width:100%; height:100%; object-fit:contain; object-position:center;}
.cart-item-body{flex:1; min-width:0;}
.cart-item-body h4{font-size:13.5px; font-weight:600; margin:0;}
.cart-item-price{font-size:12.5px; color:var(--muted); margin-top:3px;}
.cart-item-controls{display:flex; align-items:center; gap:10px; margin-top:10px;}
.qty-btn{width:24px; height:24px; border-radius:50%; border:1px solid var(--line-strong); background:none; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:13px; color:var(--ink); font-family:inherit;}
.qty-value{font-size:13px; font-weight:600; min-width:16px; text-align:center;}
.cart-item-remove{margin-left:auto; font-size:11.5px; color:var(--muted); text-decoration:underline; background:none; border:none; cursor:pointer; font-family:inherit;}
.cart-item-subtotal{font-size:13px; font-weight:700; white-space:nowrap; align-self:flex-start;}
.cart-panel-foot{border-top:1px solid var(--line); padding:20px 22px 24px;}
.cart-total-row{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:16px;}
.cart-total-row span{font-size:13px; color:var(--muted);}
.cart-total-row strong{font-family:var(--font-serif); font-size:20px; color:var(--ink);}
.whatsapp-checkout{width:100%; display:flex; align-items:center; justify-content:center; gap:9px; background:var(--ink); color:var(--ivory); border:none; padding:15px; border-radius:999px; font-family:inherit; font-size:14px; font-weight:700; cursor:pointer; transition:background .25s var(--ease), transform .25s var(--ease);}
.whatsapp-checkout:hover{background:var(--gold-deep); transform:translateY(-2px);}
.whatsapp-checkout svg{width:15px; height:15px;}
.whatsapp-checkout:disabled{background:var(--line-strong); color:var(--muted); cursor:not-allowed; transform:none;}
.cart-note{font-size:11px; color:var(--muted); text-align:center; margin-top:12px;}

/* ---------- HERO tienda ---------- */
.shop-hero .wrap{display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center;}
@media(max-width:900px){ .shop-hero .wrap{grid-template-columns:1fr;} }
.shop-hero h1{font-size:clamp(32px,4.2vw,54px); line-height:1.08;}
.shop-hero-lead{max-width:440px; font-size:15px; color:var(--muted); line-height:1.65; margin-top:18px;}
.shop-stats{display:flex; gap:32px; margin-top:32px; flex-wrap:wrap;}
.shop-stat strong{display:block; font-family:var(--font-serif); font-size:24px; color:var(--gold-deep);}
.shop-stat span{font-size:12px; color:var(--muted);}

.featured-card{background:var(--bone); border-radius:var(--radius); padding:22px; display:flex; flex-direction:column; cursor:pointer;}
.featured-tag{display:inline-flex; align-items:center; gap:6px; width:fit-content; background:var(--ink); color:var(--ivory); font-size:11px; font-weight:700; padding:6px 12px; border-radius:999px; margin-bottom:14px;}
.featured-tag svg{width:11px; height:11px;}
.featured-photo{aspect-ratio:4/3; border-radius:14px; background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden;}
.featured-photo img{width:100%; height:100%; object-fit:contain; object-position:center;}
.featured-body{padding-top:16px;}
.featured-body h2{font-size:17px;}
.featured-body p{font-size:12.5px; color:var(--muted); margin-top:6px;}
.featured-price-row{display:flex; align-items:center; justify-content:space-between; margin-top:14px;}

/* ---------- Filtros ---------- */
.filters{display:flex; gap:10px; flex-wrap:wrap; padding-top:0;}
.filter-chip{padding:10px 18px; border-radius:999px; border:1px solid var(--line-strong); font-size:13px; font-weight:600; cursor:pointer; background:none; font-family:inherit; transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);}
.filter-chip.active{background:var(--ink); color:var(--ivory); border-color:var(--ink);}
.filter-chip:not(.active):hover{border-color:var(--gold);}

/* ---------- Grid de productos ---------- */
.product-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:36px;}
@media(max-width:960px){ .product-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:560px){ .product-grid{grid-template-columns:1fr;} }

.product-card{border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--ivory); display:flex; flex-direction:column; transition:box-shadow .3s var(--ease), transform .3s var(--ease); cursor:pointer;}
.product-card:hover{box-shadow:var(--shadow); transform:translateY(-3px);}
.product-photo{aspect-ratio:1/1; position:relative; background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden;}
.product-photo img{width:100%; height:100%; object-fit:contain; object-position:center;}
.product-photo-media img{width:100%; height:100%; object-fit:cover; object-position:center;}
.product-tag{position:absolute; top:12px; left:12px; background:rgba(251,246,238,.92); color:var(--gold-deep); font-size:10.5px; font-weight:700; letter-spacing:.02em; padding:5px 11px; border-radius:999px;}
.product-sale{position:absolute; top:12px; right:12px; background:var(--ink); color:var(--ivory); font-size:10.5px; font-weight:700; padding:5px 10px; border-radius:999px;}
.product-body{padding:16px 16px 18px; display:flex; flex-direction:column; flex:1;}
.product-stars{color:var(--gold); font-size:11px; letter-spacing:1px; margin-bottom:6px;}
.product-body h2{font-size:15px; line-height:1.3;}
.product-desc{font-size:12.5px; color:var(--muted); margin-top:5px; line-height:1.5;}
.product-price-row{display:flex; align-items:baseline; gap:8px; margin-top:12px;}
.price{font-family:var(--font-serif); font-size:18px; font-weight:600; color:var(--ink);}
.price-old{font-size:12.5px; color:var(--muted); text-decoration:line-through;}
.add-btn{margin-top:14px; width:100%; display:flex; align-items:center; justify-content:center; gap:8px; background:var(--ink); color:var(--ivory); border:none; border-radius:999px; padding:11px; font-family:inherit; font-size:12.5px; font-weight:700; cursor:pointer; transition:background .25s var(--ease);}
.add-btn svg{width:13px; height:13px;}
.add-btn.added{background:var(--gold-deep);}

/* ---------- Beneficios ---------- */
.benefits{background:var(--bone); border-radius:32px; margin:0 20px; width:auto;}
.benefits-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
@media(max-width:760px){ .benefits-grid{grid-template-columns:1fr 1fr;} }
.benefit{text-align:center;}
.benefit-icon{width:44px; height:44px; border-radius:12px; margin:0 auto 14px; background:rgba(176,130,82,.12); color:var(--gold-deep); display:flex; align-items:center; justify-content:center;}
.benefit-icon svg{width:19px; height:19px;}
.benefit h2{font-size:14.5px;}
.benefit p{font-size:12.5px; color:var(--muted); margin-top:6px;}

/* ---------- CTA asesoría ---------- */
.advice-cta{background:var(--ink); color:var(--ivory); border-radius:32px; margin:0 20px; width:auto; text-align:center;}
.advice-cta h2{color:var(--ivory); font-size:clamp(24px,3.2vw,36px); max-width:520px; margin:0 auto;}
.advice-cta p{color:rgba(251,246,238,.7); max-width:420px; margin:14px auto 0; font-size:14px;}
.advice-cta .btn{margin-top:26px; display:inline-flex; align-items:center; gap:8px; background:var(--gold); color:var(--ink); padding:14px 26px; border-radius:999px; font-size:13.5px; font-weight:700; transition:background .25s var(--ease), transform .25s var(--ease);}
.advice-cta .btn:hover{background:var(--gold-soft); transform:translateY(-2px);}
.advice-cta .btn svg{width:14px; height:14px;}

/* ---------- Breadcrumb producto ---------- */
.breadcrumb{font-size:12.5px; color:var(--muted); display:flex; gap:8px; align-items:center; padding-top:clamp(72px,9vw,110px); flex-wrap:wrap;}
.breadcrumb a:hover{color:var(--gold-deep);}
.breadcrumb .sep{opacity:.5;}
.breadcrumb .current{color:var(--ink); font-weight:600;}

/* ---------- Product detail grid ---------- */
.pd-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;}
@media(max-width:860px){ .pd-grid{grid-template-columns:1fr; gap:32px;} }
.pd-gallery-main{aspect-ratio:1/1; border-radius:var(--radius); position:relative; overflow:hidden; background:var(--cream); display:flex; align-items:center; justify-content:center; cursor:zoom-in;}
.pd-gallery-main img{width:100%; height:100%; object-fit:contain; display:block;}

/* ---------- Slider galería ---------- */
.pd-gallery-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%;
  background:rgba(28,20,17,.55); color:var(--ivory); border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  z-index:5; opacity:1; transition:opacity .2s var(--ease), background .2s var(--ease);
}
.pd-gallery-nav:hover{background:var(--gold-deep);}
.pd-gallery-nav svg{width:17px; height:17px;}
.pd-gallery-nav.prev{left:10px;}
.pd-gallery-nav.next{right:10px;}
@media(max-width:600px){
  .pd-gallery-nav{width:34px; height:34px;}
  .pd-gallery-nav.prev{left:6px;}
  .pd-gallery-nav.next{right:6px;}
}
.pd-gallery-counter{
  position:absolute; bottom:12px; right:12px; z-index:5;
  background:rgba(28,20,17,.55); color:var(--ivory);
  font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px;
}

/* ---------- Zoom (lightbox) ---------- */
.pd-zoom-overlay{
  position:fixed; inset:0; z-index:90;
  background:rgba(20,14,10,.94);
  display:none; align-items:center; justify-content:center;
  cursor:zoom-out; padding:24px; overflow:hidden;
  overscroll-behavior:none;
}
.pd-zoom-overlay.open{display:flex;}
.pd-zoom-overlay .pd-zoom-stage{
  position:relative; width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
}
.pd-zoom-overlay img{
  max-width:94vw; max-height:90vh; object-fit:contain;
  border-radius:12px; box-shadow:0 30px 80px rgba(0,0,0,.5);
  transform-origin:center; transition:transform .18s var(--ease);
  cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none;
}
.pd-zoom-overlay img.panning{transition:none; cursor:grabbing;}
.pd-zoom-close{
  position:absolute; top:20px; right:24px; z-index:92;
  width:42px; height:42px; border-radius:50%;
  background:rgba(251,246,238,.15); color:var(--ivory); border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  font-size:24px; line-height:1;
}
.pd-zoom-close:hover{background:rgba(251,246,238,.3);}
.pd-zoom-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%;
  background:rgba(251,246,238,.15); color:var(--ivory); border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  z-index:92; transition:background .2s var(--ease);
}
.pd-zoom-nav:hover{background:rgba(251,246,238,.3);}
.pd-zoom-nav svg{width:20px; height:20px;}
.pd-zoom-nav.prev{left:18px;}
.pd-zoom-nav.next{right:18px;}
@media(max-width:600px){
  .pd-zoom-nav.prev{left:8px;}
  .pd-zoom-nav.next{right:8px;}
}
.pd-zoom-hint{
  position:absolute; bottom:18px; left:50%; transform:translateX(-50%);
  z-index:92; color:rgba(251,246,238,.85); font-size:12px;
  background:rgba(28,20,17,.5); padding:6px 14px; border-radius:999px;
  pointer-events:none; text-align:center; line-height:1.4;
}
.pd-zoom-controls{
  position:absolute; bottom:64px; left:50%; transform:translateX(-50%);
  z-index:92; display:flex; gap:8px; align-items:center;
}
.pd-zoom-step{
  width:38px; height:38px; border-radius:50%;
  background:rgba(251,246,238,.15); color:var(--ivory); border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  font-size:20px; line-height:1; transition:background .2s var(--ease);
}
.pd-zoom-step:hover{background:rgba(251,246,238,.3);}
.pd-zoom-percent{
  color:var(--ivory); font-size:12.5px; font-weight:700; min-width:46px; text-align:center;
}
.pd-gallery-tag{position:absolute; top:16px; left:16px; background:rgba(251,246,238,.92); color:var(--gold-deep); font-size:11px; font-weight:700; padding:6px 14px; border-radius:999px; z-index:2;}
.pd-thumbs{display:flex; gap:10px; margin-top:12px;}
.pd-thumb{width:64px; height:64px; border-radius:10px; flex-shrink:0; cursor:pointer; background:var(--cream); border:2px solid transparent; opacity:.6; transition:opacity .2s ease, border-color .2s ease; overflow:hidden; padding:0;}
.pd-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.pd-thumb.active{opacity:1; border-color:var(--gold);}
.pd-category{font-size:11.5px; font-weight:700; color:var(--gold-deep); text-transform:uppercase; letter-spacing:.04em;}
.pd-title{font-size:clamp(26px,3.2vw,36px); margin-top:10px; line-height:1.15;}
.pd-presentation{margin-top:8px; font-size:13px; color:var(--muted);}
.pd-stars-row{display:flex; align-items:center; gap:10px; margin-top:12px;}
.pd-stars{color:var(--gold); font-size:14px; letter-spacing:2px;}
.pd-reviews-count{font-size:12.5px; color:var(--muted);}
.pd-price-row{display:flex; align-items:baseline; gap:10px; margin-top:18px; flex-wrap:wrap;}
.pd-price{font-family:var(--font-serif); font-size:28px; font-weight:600;}
.pd-price-old{font-size:14px; color:var(--muted); text-decoration:line-through;}
.pd-folleto{font-size:11.5px; color:var(--muted); margin-top:8px;}
.pd-short-desc{margin-top:16px; font-size:14.5px; color:var(--muted); line-height:1.65; max-width:440px;}
.pd-qty-row{display:flex; align-items:center; gap:16px; margin-top:28px;}
.pd-qty-stepper{display:flex; align-items:center; gap:0; border:1px solid var(--line-strong); border-radius:999px; overflow:hidden;}
.pd-qty-stepper button{width:40px; height:40px; border:none; background:none; cursor:pointer; font-size:16px; color:var(--ink); font-family:inherit;}
.pd-qty-stepper span{width:36px; text-align:center; font-weight:600; font-size:14px;}
.pd-add-btn{margin-top:16px; width:100%; display:flex; align-items:center; justify-content:center; gap:9px; background:var(--ink); color:var(--ivory); border:none; border-radius:999px; padding:15px; font-family:inherit; font-size:14.5px; font-weight:700; cursor:pointer; transition:background .25s var(--ease), transform .25s var(--ease);}
.pd-add-btn:hover{transform:translateY(-2px); background:var(--gold-deep);}
.pd-add-btn.added{background:var(--gold-deep);}
.pd-add-btn svg{width:14px; height:14px;}
.pd-benefits{display:flex; flex-direction:column; gap:10px; margin-top:24px; border-top:1px solid var(--line); padding-top:22px;}
.pd-benefit{display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text);}
.pd-benefit svg{width:16px; height:16px; color:var(--gold-deep); flex-shrink:0;}

/* ---------- Accordion ---------- */
.pd-accordion{margin-top:8px;}
.pd-acc-item{border-top:1px solid var(--line);}
.pd-acc-item:last-child{border-bottom:1px solid var(--line);}
.pd-acc-q{width:100%; display:flex; justify-content:space-between; align-items:center; background:none; border:none; cursor:pointer; padding:16px 2px; font-family:inherit; font-size:14px; font-weight:600; color:var(--ink); text-align:left;}
.pd-acc-q .plus{font-family:var(--font-serif); color:var(--gold); font-size:18px; transition:transform .25s var(--ease);}
.pd-acc-item[open] .plus{transform:rotate(45deg);}
.pd-acc-a{padding:0 2px 18px; font-size:13.5px; color:var(--muted); line-height:1.6; max-width:520px;}

/* ---------- Related products ---------- */
.related-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:8px;}
@media(max-width:900px){ .related-grid{grid-template-columns:repeat(2,1fr);} }
.related-card{border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--ivory); display:flex; flex-direction:column; cursor:pointer; transition:box-shadow .3s var(--ease), transform .3s var(--ease); text-decoration:none;}
.related-card:hover{box-shadow:var(--shadow); transform:translateY(-3px);}
.related-photo{aspect-ratio:1/1; background:var(--cream); overflow:hidden;}
.related-photo img{width:100%; height:100%; object-fit:cover;}
.related-body{padding:14px;}
.related-body h3{font-size:13.5px; font-weight:600; color:var(--ink);}
.related-body .price{display:block; margin-top:6px; font-family:var(--font-serif); font-size:15px; color:var(--ink);}

/* ============================================================
   Selector de variantes (unidad / caja)
   ============================================================ */
.pd-variant-selector{display:flex; gap:8px; margin:10px 0 6px;}
.pd-variant-btn{
  flex:1; padding:10px 12px; border:1.5px solid var(--line); border-radius:var(--radius);
  background:var(--ivory); font-size:13px; font-weight:600; color:var(--muted);
  cursor:pointer; transition:border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
  text-align:center;
}
.pd-variant-btn:hover{border-color:var(--gold); color:var(--ink);}
.pd-variant-btn.active{border-color:var(--gold); color:var(--ink); background:var(--cream);}

/* ============================================================
   Móvil — galería de producto y zoom
   ============================================================ */
@media(max-width:768px){
  /* El contenedor de la galería mantiene un alto fijo (aspect-ratio 1/1):
     si hay una imagen muy alta y otra muy ancha, la card conserva el ancho
     y la imagen se adapta al alto actual del contenedor sin desbordar. */
  .pd-gallery-main{touch-action:pan-y;}
  .pd-thumb{width:56px; height:56px;}
  /* Más espacio arriba para que el breadcrumb/producto no quede bajo el navbar */
  .breadcrumb{padding-top:clamp(112px,16vw,120px);}
  .cb section:first-of-type{padding-top:clamp(16px,3vw,24px);}
}
/* En táctil/móvil el zoom no necesita la lógica de PC (rueda, pan, +/-) */
@media(pointer:coarse){
  .pd-zoom-controls{display:none;}
  .pd-zoom-hint{display:none;}
  .pd-zoom-overlay img{cursor:zoom-out;}
  .pd-zoom-overlay img.panning{cursor:zoom-out;}
}
