/* =========================================================================
   Ficha de producto general · woocommerce/single-product.php
   Todos los productos menos WashBOX (accesorios y los que se añadan).
   Usa la base común (base.css).

   Índice
     1. Foto + compra
     2. Descripción + características
     3. Relacionados
     4. Tablet y móvil
   ========================================================================= */

/* ---------- 1. Foto + compra ---------- */
.wbg .pmain{padding-block:132px clamp(64px,10vh,110px)}
.wbg .pmain .cols{--a:1.1fr;--gap:clamp(32px,6vw,110px);align-items:start}

.wbg .pics{display:grid;gap:12px}
.wbg :is(.shot,.thumbs button){position:relative;overflow:hidden;aspect-ratio:1/1;background:#ebe8e2}
.wbg :is(.shot,.thumbs) img{width:100%!important;height:100%!important;object-fit:contain;mix-blend-mode:multiply}
.wbg .shot img{position:absolute;inset:0;padding:7%}
.wbg .shot .wbx-next{opacity:0;transition:opacity .45s var(--wbx-ease)}
.wbg .shot .wbx-next.in{opacity:1}
.wbg .thumbs{display:flex;flex-wrap:wrap;gap:12px}
.wbg .thumbs button{width:76px;padding:0;border:0;cursor:pointer}
.wbg .thumbs img{padding:8%}
.wbg .thumbs button::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 1.5px transparent;transition:box-shadow .3s}
.wbg .thumbs button[aria-current="true"]::after{box-shadow:inset 0 0 0 1.5px var(--wbx-text)}

.wbg .pbuy{position:sticky;top:110px;padding-top:clamp(0px,3vh,32px)}
.wbg .crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--wbx-soft)}
.wbg .crumbs a{color:inherit}
.wbg .crumbs a:hover{color:var(--wbx-text)}
.wbg .crumbs a + a::before{content:"/";margin-right:8px;color:var(--wbx-soft)}
.wbg .ptitle{margin:18px 0 0 -.03em;font-weight:400;letter-spacing:-.045em;line-height:.98;font-size:clamp(40px,4.2vw,72px)}
.wbg .lead{max-width:40ch;margin-top:20px;font-size:clamp(16px,1.25vw,19px);line-height:1.55}

.wbg .compat{display:flex;align-items:center;gap:14px;max-width:420px;margin-top:28px;padding:10px 18px 10px 10px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--wbx-line);color:var(--wbx-text);font-size:13px;transition:box-shadow .3s}
.wbg .compat:hover{box-shadow:inset 0 0 0 1px var(--wbx-text)}
.wbg .compat img{flex:none;width:42px!important;height:42px!important;padding:4px;border-radius:50%;object-fit:contain;background:#f1efe9}
.wbg .compat span{flex:1;color:var(--wbx-muted)}
.wbg .compat b{display:block;font-weight:600;color:var(--wbx-text)}
.wbg .compat svg{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}

/* ---------- 2. Descripción + características (cada columna solo si hay datos) ---------- */
.wbg .pinfo .cols{--a:1.1fr;--gap:clamp(32px,6vw,110px);padding-block:clamp(48px,8vh,90px);border-top:1px solid var(--wbx-line)}
.wbg .pinfo .cols.one{grid-template-columns:minmax(0,1fr)}
.wbg .pinfo .rt{max-width:62ch;margin-top:18px;font-size:clamp(15px,1.1vw,17px);line-height:1.6;color:#3d4652}
.wbg .pinfo .attrs{max-width:620px;margin-top:8px}

/* ---------- 3. Relacionados: las tarjetas de la ficha WashBOX, sin foto de fondo ---------- */
.wbg .rel{padding-block:clamp(48px,8vh,90px) clamp(56px,9vh,100px);background:#ebe8e2}
.wbg .rel .dtitle{margin:16px 0 clamp(28px,4vh,44px);letter-spacing:-.05em;line-height:.95;font-size:clamp(34px,3.6vw,60px)}
.wbg .rel .dtitle span{font-weight:300}
.wbg .rel .card{background:#fbfaf8}
.wbg .rel .card .pic{background:#f1efe9}

/* ---------- 4. Tablet y móvil ---------- */
@media (max-width:900px){
  .wbg .pmain{padding-block:100px 48px}
  .wbg .pbuy{position:static;padding-top:8px}
  .wbg .thumbs button{width:64px}
  .wbg .ptitle{font-size:clamp(38px,11vw,56px)}
  .wbg .pinfo .cols{gap:32px;padding-block:48px}
  .wbg .rel{padding-block:48px}
}
