/* ============================================================
   LuaFemme — Rediseño PDP 2026-08-09 (aprobado por Sophi, mockup
   preview-pdp-v1). Archivo estático versionado: pdp-styles-2.css
   (v2 2026-08-09: sticky de fotos vía CSS —el inline relative lo pisaba,
   bloque blanco—, flechas centradas en la imagen, mobile centrado)
   (editar ⇒ filename nuevo + actualizar href en lua-pdp-styles.tpl).
   Scope: body.template-product. Sistema: ink/paper/hairlines,
   Aloe Vera itálica + Montserrat spaced, bordó #6B1F2C en precios.
   ============================================================ */
body.template-product{
  --lua-ink:#000; --lua-paper:#fff; --lua-muted:#777; --lua-soft:#8a8a8a;
  --lua-hair:rgba(0,0,0,.14); --lua-hair-soft:rgba(0,0,0,.08);
  --lua-bordo:#6B1F2C; --lua-bordo-deep:#571720;
  --lua-mont:"Montserrat",sans-serif; --lua-noto:"Noto Sans",sans-serif;
  --lua-aloe:"Aloe Vera","Noto Sans",serif;
}

/* ---------- layout: card de compra como COLUMNA derecha (desktop) ---------- */
@media (min-width: 768px){
  /* hallazgo review: la card overlay con height:100% + overflow:auto escondía
     sets y descripción bajo el fold (399px medidos) ⇒ card EN FLUJO (flex) y
     fotos sticky; la página scrollea natural. */
  body.template-product .section-1920{display:flex;align-items:flex-start;height:auto}
  body.template-product .js-swiper-pdp_slider_principal{width:63%;margin-left:0;height:88vh;position:sticky !important;top:0;flex:0 0 63%}
  /* flechas: las mueve el JS ADENTRO del swiper ⇒ se centran contra la imagen
     visible (antes: absolute en la sección de 1800px ⇒ quedaban abajo) */
  body.template-product .js-swiper-pdp_slider_principal .swiper-button-pdp_slider_principal-prev,
  body.template-product .js-swiper-pdp_slider_principal .swiper-button-pdp_slider_principal-next{top:50% !important;transform:translateY(-50%);z-index:12}
  body.template-product .js-swiper-pdp_slider_principal .swiper-button-pdp_slider_principal-prev{left:1.5% !important}
  body.template-product .js-swiper-pdp_slider_principal .swiper-button-pdp_slider_principal-next{right:1.5% !important}
  body.template-product .div-560{position:static !important;height:auto !important;overflow:visible !important;left:auto !important;width:37% !important;flex:0 0 37%;padding:26px 34px 56px !important;border-left:1px solid var(--lua-hair-soft);background:#fff}
  body.template-product .swiper-button-pdp_slider_principal-prev{left:1% !important}
  body.template-product .swiper-button-pdp_slider_principal-next{right:38% !important}
}

/* ---------- carrusel PAREJO (v3, pedido Sophi): la foto editorial con
   flechas es 9:16 vs 2:3 del resto y rompía la altura — todas a 2:3 con
   recorte cover (la editorial pierde ~8% arriba y abajo, verificado) ---------- */
@media (max-width: 767.98px){
  body.template-product .js-product-slide{height:auto}
  body.template-product .js-product-slide-img{aspect-ratio:2/3;width:100% !important;height:auto !important;object-fit:cover}
}
@media (min-width: 768px){
  body.template-product .js-product-slide-img{width:100% !important;height:100% !important;object-fit:cover}
}

/* ---------- v4 (pedido Sophi 2026-08-10): miga y nombre de producto
   +2 puntos (medidos: breadcrumbs 8px, h1 16px) ---------- */
body.template-product .div-560 .breadcrumbs,
body.template-product .div-560 .breadcrumbs a,
body.template-product .div-560 .breadcrumbs span{font-size:12px !important}
body.template-product .div-560 h1.js-product-name{font-size:20px !important}

/* ---------- ocultar el precio nativo (lo reemplaza lua-pdp-pricebox) ---------- */
body.template-product .pdp-price-container{display:none !important}
body.template-product .js-product-payments-container{display:none !important}
body.template-product #btn-installments{display:none !important}

/* ---------- bloque de precio nuevo ---------- */
body.template-product .lua-pricebox{border:1px solid var(--lua-hair-soft);padding:18px;margin:14px 0 4px}
body.template-product .lua-p-off{display:inline-block;background:var(--lua-bordo);color:#fff;font-family:var(--lua-mont);font-size:9.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;padding:5px 9px}
body.template-product .lua-p-now{display:flex;align-items:baseline;gap:10px;margin-top:10px;flex-wrap:wrap}
body.template-product .lua-p-now .lua-n{font-family:var(--lua-mont);font-weight:700;font-size:30px;color:var(--lua-bordo);line-height:1}
body.template-product .lua-p-now .lua-nl{font-size:10.5px;color:var(--lua-muted);letter-spacing:.06em;text-transform:uppercase}
body.template-product .lua-p-list{font-size:15px;color:var(--lua-muted);margin-top:6px}
body.template-product .lua-p-list b{font-weight:600}
body.template-product .lua-cuotas{border-top:1px solid var(--lua-hair-soft);margin-top:14px;padding-top:12px}
body.template-product .lua-c-t{font-family:var(--lua-mont);font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin:0 0 6px}
body.template-product .lua-c-row{display:flex;justify-content:space-between;align-items:baseline;padding:7px 2px;border-bottom:1px solid rgba(0,0,0,.05);font-size:13.5px}
body.template-product .lua-c-row:last-child{border-bottom:none}
body.template-product .lua-c-row b{color:var(--lua-bordo);font-size:15px}

/* ---------- recuadro envío ---------- */
body.template-product .lua-envio{display:flex;flex-direction:column;gap:7px;background:#F7F4EF;border:1px solid var(--lua-hair-soft);padding:13px 15px;margin:14px 0 0;text-align:center}
body.template-product .lua-envio p{font-size:14px;color:#3d3831;margin:0}
body.template-product .lua-envio b{color:var(--lua-ink);font-weight:700}

/* ---------- panel "¿La querés en set?" (relleno por JS desde el feed) ---------- */
body.template-product .lua-sets{margin-top:22px;display:none}
body.template-product .lua-sets.lua-on{display:block}
body.template-product .lua-sets-t{font-family:var(--lua-mont);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin:0}
body.template-product .lua-setopt{display:flex;gap:14px;align-items:center;border:1px solid var(--lua-hair-soft);padding:12px;margin-top:12px;transition:border-color .25s;position:relative;text-decoration:none;color:inherit}
body.template-product .lua-setopt:hover{border-color:var(--lua-bordo);text-decoration:none;color:inherit}
body.template-product .lua-setopt img{width:64px;aspect-ratio:3/4;object-fit:cover;flex:none}
body.template-product .lua-so-n{font-family:var(--lua-mont);font-weight:700;font-size:13.5px;display:block}
body.template-product .lua-so-p{font-size:12px;color:var(--lua-muted);display:block;margin-top:2px}
body.template-product .lua-so-pr{display:block;margin-top:5px;font-size:12.5px}
body.template-product .lua-so-pr b{color:var(--lua-bordo);font-size:15px;font-family:var(--lua-mont)}
body.template-product .lua-so-save{position:absolute;top:-9px;right:10px;background:var(--lua-ink);color:#fff;font-family:var(--lua-mont);font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:4px 8px}
body.template-product .lua-so-cta{margin-left:auto;flex:none;font-family:var(--lua-mont);font-size:9.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;border:1px solid var(--lua-ink);padding:9px 12px;white-space:nowrap;transition:all .25s}
body.template-product .lua-setopt:hover .lua-so-cta{background:var(--lua-ink);color:#fff}

/* ---------- descripción EXPUESTA ---------- */
body.template-product #product-description{display:block !important}
body.template-product .lua-desc{margin-top:24px;border-top:1px solid var(--lua-hair);padding-top:16px}
body.template-product .lua-desc-sec{margin-bottom:14px}
body.template-product .lua-desc-sec h5{font-family:var(--lua-mont);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin:0 0 8px;color:var(--lua-ink)}
body.template-product .lua-desc-sec .lua-desc-body,
body.template-product .lua-desc-sec .lua-desc-body p,
body.template-product .lua-desc-sec .lua-desc-body li,
body.template-product .lua-desc-sec .lua-desc-body span{font-family:var(--lua-noto) !important;font-size:14px !important;line-height:1.7 !important;color:#333 !important;letter-spacing:normal !important}
body.template-product .lua-desc-sec .lua-desc-body ul{padding-left:18px;margin:0}
body.template-product .lua-desc-sec .lua-desc-body li{margin-bottom:4px}
body.template-product .lua-desc-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}
body.template-product .lua-desc-grid .lua-desc-sec{border-left:1px solid var(--lua-hair);padding-left:10px;margin-bottom:0}
body.template-product .lua-desc-grid .lua-desc-sec h5{font-size:9px;letter-spacing:.14em;color:var(--lua-muted)}
body.template-product .lua-desc-grid .lua-desc-sec .lua-desc-body,
body.template-product .lua-desc-grid .lua-desc-sec .lua-desc-body li{font-size:12.5px !important}
body.template-product .lua-desc-grid .lua-desc-sec .lua-desc-body ul{list-style:none;padding-left:0}

/* ---------- "Mirala en movimiento" ---------- */
body.template-product .lua-motion{display:grid;grid-template-columns:5fr 7fr;gap:44px;align-items:center;padding:64px 4vw 0;max-width:1180px;margin:0 auto}
body.template-product .lua-motion .lua-tit{font-size:clamp(30px,4vw,46px);line-height:1.05;font-family:var(--lua-mont);font-weight:700;letter-spacing:-.01em;margin:0;text-align:left}
body.template-product .lua-motion .lua-tit em{font-family:var(--lua-aloe);font-style:italic;font-weight:400}
body.template-product .lua-vframe{position:relative;border:1px solid var(--lua-hair);overflow:hidden;background:#EFEDEA;max-width:400px;order:-1}
body.template-product .lua-vframe video{width:100%;aspect-ratio:9/16;object-fit:cover;display:block}
body.template-product .lua-vsound{position:absolute;top:12px;right:12px;z-index:3;width:38px;height:38px;background:rgba(255,255,255,.78);backdrop-filter:blur(8px);border:1px solid var(--lua-hair-soft);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
body.template-product .lua-vsound svg{width:18px;height:18px;stroke:var(--lua-ink);fill:none;stroke-width:1.6}

/* ---------- grupos de producto (Completá el look / Relacionados) ---------- */
body.template-product .lua-grupo{padding:56px 4vw 0}
body.template-product .lua-grupo:last-of-type{padding-bottom:72px}
body.template-product .lua-grupo{display:none}
body.template-product .lua-grupo.lua-on{display:block}
body.template-product .lua-grupo-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;border-top:1px solid var(--lua-hair);padding-top:14px;margin-bottom:26px}
body.template-product .lua-grupo-head .lua-tit{font-size:clamp(28px,3.6vw,42px);line-height:1.05;font-family:var(--lua-mont);font-weight:700;letter-spacing:-.01em;margin:0}
body.template-product .lua-grupo-head .lua-tit em{font-family:var(--lua-aloe);font-style:italic;font-weight:400}
body.template-product .lua-grupo-head .lua-see{font-family:var(--lua-mont);font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--lua-ink);border-bottom:1px solid var(--lua-hair);padding-bottom:4px;white-space:nowrap;text-decoration:none}
body.template-product .lua-grupo-head .lua-see:hover{border-color:var(--lua-ink);color:var(--lua-ink);text-decoration:none}
body.template-product .lua-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
body.template-product .lua-card{text-decoration:none;color:inherit;display:block}
body.template-product .lua-card:hover{text-decoration:none;color:inherit}
body.template-product .lua-card .lua-ph{position:relative;overflow:hidden;border:1px solid var(--lua-hair-soft);display:block}
body.template-product .lua-card .lua-ph img{aspect-ratio:3/4;object-fit:cover;width:100%;display:block;transition:transform .5s ease,opacity .4s ease}
body.template-product .lua-card .lua-ph .lua-im2{position:absolute;inset:0;opacity:0}
body.template-product .lua-card:hover .lua-ph .lua-im2{opacity:1}
body.template-product .lua-card:hover .lua-ph .lua-im1{transform:scale(1.02)}
body.template-product .lua-card .lua-nm{font-family:var(--lua-mont);font-weight:600;font-size:13.5px;display:block;margin-top:12px;color:var(--lua-ink)}
body.template-product .lua-card .lua-was{color:var(--lua-soft);font-size:12px;margin-top:6px}
body.template-product .lua-card .lua-now{color:var(--lua-bordo);font-weight:700;font-size:15px;margin-top:2px}
body.template-product .lua-card .lua-now span{color:var(--lua-muted);font-weight:400;font-size:9.5px;letter-spacing:.06em;text-transform:uppercase}
body.template-product .lua-card .lua-cuo{font-size:12px;margin-top:3px;color:var(--lua-ink)}
body.template-product .lua-card .lua-cuo b{color:var(--lua-bordo)}

/* ---------- "Recién visto" (v6, aprobado Sophi 2026-08-10) ---------- */
body.template-product .lua-rv-clear{font-family:var(--lua-mont);font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--lua-soft);background:none;border:none;border-bottom:1px solid var(--lua-hair);padding:0 0 3px;cursor:pointer;white-space:nowrap}
body.template-product .lua-rv-clear:hover{color:var(--lua-ink);border-color:var(--lua-ink)}
body.template-product .lua-rv-rail{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px;scrollbar-width:thin}
body.template-product .lua-rv-card{flex:0 0 172px;scroll-snap-align:start;text-decoration:none;color:inherit;display:block}
body.template-product .lua-rv-card:hover{text-decoration:none;color:inherit}
body.template-product .lua-rv-ph{display:block;overflow:hidden;border:1px solid var(--lua-hair-soft);position:relative}
body.template-product .lua-rv-ph img{aspect-ratio:3/4;object-fit:cover;width:100%;display:block;transition:transform .4s}
body.template-product .lua-rv-card:hover .lua-rv-ph img{transform:scale(1.03)}
body.template-product .lua-rv-badge{position:absolute;top:8px;left:8px;background:rgba(255,255,255,.85);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-family:var(--lua-mont);font-size:8px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:4px 7px;color:var(--lua-muted);z-index:2}
body.template-product .lua-rv-nm{font-family:var(--lua-mont);font-weight:600;font-size:12px;margin-top:9px;display:block;color:var(--lua-ink)}
body.template-product .lua-rv-pr{color:var(--lua-bordo);font-weight:700;font-size:13px;margin-top:3px;display:block}
body.template-product .lua-rv-pr span{color:var(--lua-muted);font-weight:400;font-size:8.5px;text-transform:uppercase;letter-spacing:.05em}

/* ---------- mobile ---------- */
@media (max-width: 767.98px){
  body.template-product .js-swiper-pdp_slider_principal{position:relative}
  body.template-product .lua-rv-card{flex-basis:44vw}
  body.template-product .lua-motion{display:flex;flex-direction:column;align-items:center;gap:24px;text-align:center;padding:44px 16px 0}
  body.template-product .lua-motion .lua-tit{text-align:center}
  body.template-product .lua-vframe{order:0;max-width:340px}
  body.template-product .lua-grupo{padding:40px 16px 0}
  body.template-product .lua-grid{grid-template-columns:1fr 1fr;gap:18px 12px}
  body.template-product .lua-p-now .lua-n{font-size:27px}
  body.template-product .lua-desc-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion: reduce){
  body.template-product .lua-card .lua-ph img{transition:none}
}
