/* Xanay · Ficha de producto (galería en rejilla + panel fijo), nov 2026 */
body.xw .xb{ --xb-ink:#1D1A16; --xb-ink2:#5C554B; --xb-line:#DDD5C8; --xb-soft:#F4F0EA; --xb-vino:#7C2231; --xb-vino2:#641A27;
  max-width:none; padding:0 0 90px; margin:0; }
body.xw .xb .xcrumb{ padding:16px 32px 14px; margin:0; font-size:13px; letter-spacing:.06em; color:var(--xb-ink2); }
body.xw .xb .xcrumb a{ color:inherit; }
.xb-stage{ position:relative; }
/* Recuadro de compra flotando sobre el rollo (escritorio) */
.xb-panel{ position:absolute; z-index:5; top:40px; right:56px; max-height:calc(100% - 80px); width:440px; overflow-y:auto; overscroll-behavior:contain;
  background:rgba(253,252,250,.86); -webkit-backdrop-filter:blur(18px) saturate(1.1); backdrop-filter:blur(18px) saturate(1.1);
  box-shadow:0 18px 50px rgba(29,26,22,.10); padding:34px 32px 30px; scrollbar-width:thin; scrollbar-color:rgba(29,26,22,.25) transparent; }
.xb-panel::-webkit-scrollbar{ width:4px; } .xb-panel::-webkit-scrollbar-thumb{ background:rgba(29,26,22,.25); }
.xb-head{ display:flex; justify-content:space-between; align-items:baseline; gap:18px; }
.xb-head .xb-title{ flex:1 1 auto; }
body.xw .xb-head .xb-price{ flex:0 0 auto; text-align:right; white-space:nowrap; margin:0; }
.xb-more{ padding:56px 32px 0; }
.xb-more-in{ max-width:1240px; margin:0 auto; column-count:3; column-gap:64px; column-rule:1px solid var(--xb-line); }
.xb-sec{ break-inside:avoid; -webkit-column-break-inside:avoid; margin:0 0 36px; }
body.xw .xb-sec-h{ font-family:'Archivo',system-ui,sans-serif !important; font-size:13px !important; font-weight:600 !important; font-style:normal !important; letter-spacing:.16em; text-transform:uppercase; color:var(--xb-ink); margin:0 0 14px; padding:0 0 12px; border-bottom:1px solid var(--xb-line); line-height:1.4; }
.xb-sec .xb-desc, .xb-sec-b{ font-size:15px; line-height:1.7; color:#3B342C; }
.xb-sec-b p{ margin:0 0 .8em; }
.xb-sec-b a{ color:var(--xb-vino); }
.xb-sec .xb-specs{ margin:0; }
details.xb-sec > summary{ list-style:none; cursor:default; display:block; }
details.xb-sec > summary::-webkit-details-marker{ display:none; }

/* Rollo de fotos continuo */
.xb-rollo{ position:relative; overflow:hidden; background:var(--xb-soft); user-select:none; -webkit-user-select:none; }
.xb-rollo-in{ display:flex; column-gap:4px; width:max-content; will-change:transform; touch-action:pan-y; cursor:grab; }
.xb-rollo-in:active{ cursor:grabbing; }
.xb-rollo figure{ margin:0; flex:0 0 auto; height:clamp(560px,calc(100vh - 212px),900px); aspect-ratio:3/4; background:var(--xb-soft); overflow:hidden; }
.xb-rollo figure img{ width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; }
.xb-rollo--fijo .xb-rollo-in{ width:auto; justify-content:center; cursor:default; padding-right:500px; }
.xb-rollo--fijo .xb-r-ctl{ display:none; }
.xb-r-ctl{ position:absolute; left:16px; bottom:16px; z-index:2; display:flex; gap:4px; }
.xb-r-ctl button{ width:42px; height:42px; border:0; background:rgba(253,252,250,.92); color:var(--xb-ink); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:20px; line-height:1; }
.xb-r-ctl button:hover{ background:#fff; }
.xb-r-s::before{ content:''; width:10px; height:12px; border-left:3px solid currentColor; border-right:3px solid currentColor; box-sizing:border-box; }
.xb-rollo--pausa .xb-r-s::before{ width:0; height:0; border:0; border-left:11px solid currentColor; border-top:7px solid transparent; border-bottom:7px solid transparent; margin-left:3px; }

/* Panel */
.xb-eyebrow{ font-size:13px; letter-spacing:.16em; text-transform:uppercase; color:var(--xb-ink2); margin:0 0 12px; }
.xb-eyebrow a{ color:inherit; text-decoration:none; }
.xb-eyebrow a:hover{ color:var(--xb-vino); }
body.xw .xb-title{ font-family:'Marcellus','Times New Roman',serif; font-weight:400; font-size:clamp(22px,1.7vw,28px); line-height:1.18; letter-spacing:.04em; text-transform:uppercase; color:var(--xb-ink); margin:0 0 12px; }
body.xw .xb-price{ font-size:22px; font-weight:600; color:var(--xb-ink); margin:0 0 6px; letter-spacing:.02em; }
body.xw .xb-price .woocommerce-Price-amount{ font-weight:600; }
body.xw .xb-price small{ font-size:13px; letter-spacing:.12em; color:var(--xb-ink2); margin-left:4px; font-weight:500; }
.xb-meta{ font-size:14px; color:var(--xb-ink2); margin:0 0 4px; line-height:1.5; }
.xb-meta a{ color:var(--xb-ink); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--xb-line); }
.xb-meta a:hover{ color:var(--xb-vino); text-decoration-color:var(--xb-vino); }
.xb-meta b{ color:var(--xb-ink); font-weight:600; }
.xb-msi{ font-size:13px; color:var(--xb-ink2); margin:10px 0 0; line-height:1.5; }

.xb-opt{ margin:26px 0 0; padding-top:20px; border-top:1px solid var(--xb-line); }
.xb-opt-h{ display:flex; justify-content:space-between; align-items:baseline; font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--xb-ink2); margin:0 0 10px; }
.xb-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.xb-chip{ display:inline-flex; align-items:center; min-height:40px; padding:0 16px; border:1px solid var(--xb-ink); font-size:14px; color:var(--xb-ink); background:#fff; }
.xb-note{ font-size:13px; color:var(--xb-ink2); margin:10px 0 0; }

/* Botón */
body.xw .xb-cta{ margin:22px 0 0; }
body.xw .xb-cta form.cart{ display:flex; gap:8px; align-items:stretch; margin:0 !important; }
body.xw .xb-cta .quantity{ margin:0 !important; flex:0 0 auto; }
body.xw .xb-cta .quantity input.qty{ width:64px; height:54px; border-radius:0; border:1px solid var(--xb-line); background:#fff; font-size:16px; text-align:center; }
body.xw .xb-cta button.single_add_to_cart_button.button{ flex:1 1 auto; width:auto; min-height:54px; border-radius:0 !important; background:var(--xb-vino) !important; color:#fff !important; font-size:14px !important; letter-spacing:.2em; text-transform:uppercase; font-weight:600; border:0; transition:background .25s; }
body.xw .xb-cta button.single_add_to_cart_button.button:hover{ background:var(--xb-vino2) !important; }
body.xw .xb-cta .stock{ font-size:14px; margin:0 0 10px; }

/* Servicio */
.xb-serv{ list-style:none; margin:18px 0 0; padding:0; display:grid; gap:9px; }
.xb-serv li{ display:flex; gap:10px; align-items:flex-start; font-size:14px; line-height:1.45; color:var(--xb-ink); }
.xb-serv svg{ flex:0 0 18px; width:18px; height:18px; margin-top:1px; stroke:var(--xb-vino); fill:none; stroke-width:1.5; }
.xb-serv span{ color:var(--xb-ink2); }

/* Descripción y desplegables */
.xb-desc{ margin:0; font-size:15px; line-height:1.7; color:#3B342C; }
.xb-desc p{ margin:0 0 .8em; }
.xb-accs{ margin:22px 0 0; border-top:1px solid var(--xb-line); }
.xb-acc{ border-bottom:1px solid var(--xb-line); }
.xb-acc summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; padding:17px 0; font-size:13px; letter-spacing:.16em; text-transform:uppercase; color:var(--xb-ink); font-weight:600; }
.xb-acc summary::-webkit-details-marker{ display:none; }
.xb-acc summary::after{ content:''; width:9px; height:9px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-3px); transition:transform .25s; }
.xb-acc[open] summary::after{ transform:rotate(-135deg) translateY(-2px); }
.xb-acc summary:hover{ color:var(--xb-vino); }
.xb-acc-b{ padding:0 0 20px; font-size:15px; line-height:1.7; color:#3B342C; }
.xb-acc-b p{ margin:0 0 .8em; }
.xb-acc-b a{ color:var(--xb-vino); }
.xb-specs{ display:grid; gap:0; margin:0 0 12px; }
.xb-specs div{ display:flex; justify-content:space-between; gap:18px; padding:9px 0; border-bottom:1px dashed var(--xb-line); font-size:14.5px; }
.xb-specs div:last-child{ border-bottom:0; }
.xb-specs span{ color:var(--xb-ink2); flex:0 0 auto; }
.xb-specs b{ text-align:right; font-weight:500; color:var(--xb-ink); }
.xb-hist{ font-style:italic; margin:6px 0 0; }

/* Relacionados en carrusel */
body.xw .xb-rel{ margin:96px 0 0; padding:0 0 0 32px; }
body.xw .xb-rel .related > h2{ font-family:'Marcellus',serif; font-size:13px !important; letter-spacing:.2em; text-transform:uppercase; text-align:left; margin:0 0 18px; font-style:normal; }
body.xw .xb-rel ul.products{ display:flex !important; gap:4px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; padding:0 32px 14px 0 !important; margin:0 !important; grid-template-columns:none !important; }
body.xw .xb-rel ul.products::before, body.xw .xb-rel ul.products::after{ display:none !important; }
body.xw .xb-rel ul.products li.product{ flex:0 0 calc((100% - 16px) / 4.4); width:auto !important; margin:0 !important; float:none !important; scroll-snap-align:start; }
.xb-rel-nav{ display:flex; gap:6px; justify-content:flex-end; padding-right:32px; margin:-40px 0 18px; }
.xb-rel-nav button{ width:40px; height:40px; border:1px solid var(--xb-line); background:#fff; cursor:pointer; color:var(--xb-ink); font-size:18px; line-height:1; }
.xb-rel-nav button:hover{ border-color:var(--xb-ink); }

/* Barra fija en celular */
.xb-bar{ display:none; }

/* Visor */
.xb-lb{ position:fixed; inset:0; z-index:9999; background:rgba(253,252,250,.98); display:none; align-items:center; justify-content:center; }
.xb-lb.on{ display:flex; }
.xb-lb img{ max-width:94vw; max-height:92vh; object-fit:contain; }
.xb-lb button{ position:absolute; background:none; border:0; cursor:pointer; color:#1D1A16; font-size:30px; line-height:1; padding:14px; }
.xb-lb .x{ top:10px; right:14px; }
.xb-lb .p{ left:10px; top:50%; transform:translateY(-50%); }
.xb-lb .n{ right:10px; top:50%; transform:translateY(-50%); }
.xb-lb .c{ position:absolute; bottom:18px; left:50%; transform:translateX(-50%); font-size:13px; letter-spacing:.14em; color:#5C554B; }

@media (max-width:1180px){
  .xb-more-in{ column-count:2; column-gap:48px; }
  .xb-panel{ right:28px; width:400px; padding:28px 26px; }
  .xb-rollo--fijo .xb-rollo-in{ padding-right:440px; }
}
@media (max-width:899px){
  .xb-more{ padding:30px 16px 0; }
  .xb-more-in{ column-count:1; }
  .xb-sec{ margin-bottom:28px; }
  details.xb-sec{ margin:0; border-bottom:1px solid var(--xb-line); }
  details.xb-sec:first-of-type{ border-top:1px solid var(--xb-line); }
  details.xb-sec > summary.xb-sec-h{ cursor:pointer; display:flex; justify-content:space-between; align-items:center; margin:0; padding:17px 0; border-bottom:0; }
  details.xb-sec > summary.xb-sec-h::after{ content:''; width:9px; height:9px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-3px); transition:transform .25s; flex:0 0 auto; }
  details.xb-sec[open] > summary.xb-sec-h::after{ transform:rotate(-135deg) translateY(-2px); }
  details.xb-sec[open]{ padding-bottom:18px; }
  body.xw .xb .xcrumb{ padding:12px 16px; }
  .xb-panel{ position:static; width:auto; max-height:none; overflow:visible; background:none; -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:none; padding:22px 16px 0; }
  .xb-rollo figure{ height:auto; width:78vw; }
  .xb-rollo--fijo .xb-rollo-in{ padding-right:0; }
  .xb-head{ display:block; }
  body.xw .xb-head .xb-price{ text-align:left; margin:0 0 6px; }
  body.xw .xb-title{ font-size:24px; }
  body.xw .xb-rel{ margin-top:56px; padding-left:16px; }
  body.xw .xb-rel ul.products{ padding-right:16px !important; }
  body.xw .xb-rel ul.products li.product{ flex-basis:44%; }
  .xb-rel-nav{ display:none; }
  .xb-bar{ display:flex; position:fixed; left:0; right:0; bottom:0; z-index:90; background:rgba(253,252,250,.97); border-top:1px solid var(--xb-line); padding:10px 16px calc(10px + env(safe-area-inset-bottom)); gap:12px; align-items:center; transform:translateY(110%); transition:transform .3s; box-shadow:0 -8px 24px rgba(29,26,22,.08); }
  .xb-bar.on{ transform:none; }
  .xb-bar-t{ flex:1; min-width:0; }
  .xb-bar-n{ display:block; font-size:13px; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#1D1A16; }
  .xb-bar-p{ display:block; font-size:15px; font-weight:600; color:#1D1A16; }
  .xb-bar button{ flex:0 0 auto; min-height:46px; padding:0 20px; background:var(--xb-vino); color:#fff; border:0; font-size:13px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; }
}
@media (prefers-reduced-motion:reduce){ .xb-bar{ transition:none; } }
body.xw .xb-rel .xpc-ph{ aspect-ratio:3/4; overflow:hidden; display:block; }
body.xw .xb-rel .xpc-ph img{ width:100%; height:100%; object-fit:cover; }

/* ===== Selector de modelo (productos con variantes) 29 nov 2026 ===== */
body.xw .xb-cta form.variations_form{ display:block; }
body.xw .xb-cta table.variations{ width:100%; border:0; margin:0 0 14px; border-collapse:collapse; background:none; }
body.xw .xb-cta table.variations tbody, body.xw .xb-cta table.variations tr{ display:block; }
body.xw .xb-cta table.variations tr + tr{ margin-top:14px; }
body.xw .xb-cta table.variations th.label{ display:block; padding:0 0 10px; border:0; text-align:left; background:none; }
body.xw .xb-cta table.variations th.label label{ font-family:'Archivo',sans-serif; font-size:13px; letter-spacing:.14em; text-transform:uppercase; font-weight:500; color:var(--xb-ink2); }
body.xw .xb-cta table.variations td.value{ display:block; padding:0; border:0; background:none; }
body.xw .xb-cta table.variations select.xb-sw-sel{ position:absolute !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none; }
body.xw .xb-cta .reset_variations{ display:none !important; }
.xb-sw{ display:flex; flex-wrap:wrap; gap:8px; }
.xb-sw-b{ display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px; border:1px solid var(--xb-line); background:#fff; color:var(--xb-ink); font:500 14px/1.2 'Archivo',sans-serif; cursor:pointer; transition:border-color .2s, box-shadow .2s; }
.xb-sw-b:hover{ border-color:var(--xb-ink); }
.xb-sw-b[aria-checked="true"]{ border-color:var(--xb-vino); box-shadow:inset 0 0 0 1px var(--xb-vino); color:var(--xb-vino); }
.xb-sw-b:focus-visible{ outline:2px solid var(--xb-vino); outline-offset:2px; }
.xb-sw--img .xb-sw-b{ flex-direction:column; gap:6px; padding:6px 6px 8px; width:84px; font-size:13px; text-align:center; }
.xb-sw--img .xb-sw-b img{ width:70px; height:70px; object-fit:cover; display:block; }
.xb-sw-sel-name{ margin:10px 0 0; font-size:14px; color:var(--xb-ink2); min-height:1.2em; }
body.xw .xb-cta .single_variation_wrap .woocommerce-variation-price{ display:none; }
body.xw .xb-cta .single_variation_wrap .woocommerce-variation-availability p{ font-size:14px; margin:0 0 10px; }
body.xw .xb-cta .woocommerce-variation-add-to-cart{ display:flex; gap:8px; align-items:stretch; }
body.xw .xb-cta .woocommerce-variation-add-to-cart .quantity{ margin:0 !important; flex:0 0 auto; }
body.xw .xb-cta button.single_add_to_cart_button.disabled{ opacity:.55; }
@media (max-width:899px){ .xb-sw--img .xb-sw-b{ width:76px; } .xb-sw--img .xb-sw-b img{ width:62px; height:62px; } }
