/* ═══════════════════════════════════════════════════════════════════
   rwe-woo-product — CSS de la ficha de producto
   R1: sacado del render() inline (antes ~55 líneas duplicadas por instancia,
   con #uid en cada selector). Los selectores cuelgan de .rwe-sp; lo variable
   va en variables CSS que el render inyecta en el wrapper.

   Variables (inyectadas en el contenedor .rwe-sp):
     --rwe-bf  fuente cuerpo      --rwe-tf   fuente títulos
     --rwe-accent  color acento (precio, hover)
     --rwe-tcolor  color de títulos/textos fuertes
     --rwe-btn-bg  fondo botón    --rwe-btn-col  texto botón
     --rwe-p-bg    pill fondo     --rwe-p-col    pill texto
     --rwe-p-bd    pill borde     --rwe-p-abg    pill activo fondo
     --rwe-p-acol  pill activo texto
   ═══════════════════════════════════════════════════════════════════ */

.rwe-sp{ font-family:var(--rwe-bf,inherit); max-width:1200px; margin:0 auto; padding:40px 60px; }
@media(max-width:768px){ .rwe-sp{ padding:24px 16px; } }

.rwe-sp .rwe-sp-top{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; margin-bottom:60px; }
@media(max-width:768px){ .rwe-sp .rwe-sp-top{ grid-template-columns:1fr; gap:30px; } }

.rwe-sp .rwe-sp-img img{ width:100%; border-radius:14px; display:block; }
.rwe-sp .rwe-sp-gallery{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.rwe-sp .rwe-sp-gallery img{ width:64px; height:64px; object-fit:cover; border-radius:8px; cursor:pointer; border:2px solid transparent; transition:border-color .2s; }
.rwe-sp .rwe-sp-gallery img:hover{ border-color:var(--rwe-accent,#1a1a1a); }

.rwe-sp .rwe-sp-badge{ display:inline-block; padding:3px 10px; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; border-radius:4px; margin-bottom:12px; color:#fff; }
.rwe-sp .rwe-sp-title{ font-family:var(--rwe-tf,inherit); font-size:26px; font-weight:700; color:var(--rwe-tcolor,#1a1a1a); margin:0 0 12px; line-height:1.3; }
.rwe-sp .rwe-sp-stars{ color:#f5c518; font-size:16px; }
.rwe-sp .rwe-sp-rating{ display:flex; align-items:center; gap:8px; margin-bottom:14px; font-size:13px; color:#aaa; }
.rwe-sp .rwe-sp-price{ font-size:26px; font-weight:700; color:var(--rwe-accent,#1a1a1a); margin-bottom:8px; }
.rwe-sp .rwe-sp-price del{ font-size:16px; font-weight:400; color:#aaa; margin-right:6px; }
.rwe-sp .rwe-sp-price ins{ text-decoration:none; }
.rwe-sp .rwe-sp-stock{ font-size:13px; font-weight:600; margin-bottom:20px; }
.rwe-sp .rwe-sp-short{ font-size:15px; color:#555; line-height:1.75; margin-bottom:24px; }
.rwe-sp .rwe-sp-btn{ display:inline-block; padding:13px 32px; background:var(--rwe-btn-bg,#1a1a1a); color:var(--rwe-btn-col,#fff); font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; text-decoration:none; border-radius:50px; border:none; cursor:pointer; transition:opacity .2s; }
.rwe-sp .rwe-sp-btn:hover{ opacity:.85; }
.rwe-sp .rwe-sp-btn[disabled]{ opacity:.35; cursor:not-allowed; }
.rwe-sp .rwe-sp-cats{ font-size:12px; color:#aaa; margin-top:16px; }
.rwe-sp .rwe-sp-cats a{ color:#aaa; text-decoration:none; }
.rwe-sp .rwe-sp-sku{ font-size:12px; color:#aaa; margin:0 0 14px; }
.rwe-sp hr{ border:none; border-top:1px solid #eee; margin:40px 0; }

.rwe-sp .rwe-sp-desc h2{ font-family:var(--rwe-tf,inherit); font-size:20px; font-weight:700; color:var(--rwe-tcolor,#1a1a1a); margin:0 0 16px; }
.rwe-sp .rwe-sp-desc ul{ padding-left:20px; }
.rwe-sp .rwe-sp-desc li{ font-size:15px; color:#555; line-height:1.75; margin-bottom:6px; }

.rwe-sp .rwe-sp-related h2{ font-family:var(--rwe-tf,inherit); font-size:20px; font-weight:700; color:var(--rwe-tcolor,#1a1a1a); margin:0 0 24px; }
.rwe-sp .rwe-sp-related-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media(max-width:768px){ .rwe-sp .rwe-sp-related-grid{ grid-template-columns:1fr 1fr; } }
.rwe-sp .rwe-sp-rel{ border-radius:12px; overflow:hidden; box-shadow:0 4px 16px rgba(0,0,0,.07); background:#fff; }
.rwe-sp .rwe-sp-rel img{ width:100%; height:160px; object-fit:cover; display:block; }
.rwe-sp .rwe-sp-rel-body{ padding:14px; }
.rwe-sp .rwe-sp-rel-title{ font-size:14px; font-weight:700; color:var(--rwe-tcolor,#1a1a1a); margin:0 0 6px; }
.rwe-sp .rwe-sp-rel-title a{ text-decoration:none; color:inherit; }
.rwe-sp .rwe-sp-rel-price{ font-size:15px; font-weight:700; color:var(--rwe-accent,#1a1a1a); margin:0; }

/* ── Selector de variaciones (pills) ── */
.rwe-sp .rwe-var{ margin-bottom:20px; }
.rwe-sp .rwe-var-row{ margin-bottom:14px; }
.rwe-sp .rwe-var-label{ display:block; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#888; margin-bottom:8px; }
.rwe-sp .rwe-pills{ display:flex; flex-wrap:wrap; gap:8px; }
.rwe-sp .rwe-pill{
    padding:9px 18px; min-width:44px; text-align:center;
    background:var(--rwe-p-bg,#fff); color:var(--rwe-p-col,#1a1a1a);
    border:1.5px solid var(--rwe-p-bd,#ddd); border-radius:50px;
    font-size:13px; font-weight:600; cursor:pointer; user-select:none;
    transition:all .15s ease;
}
.rwe-sp .rwe-pill:hover{ border-color:var(--rwe-p-abg,#1a1a1a); }
.rwe-sp .rwe-pill.active{ background:var(--rwe-p-abg,#1a1a1a); color:var(--rwe-p-acol,#fff); border-color:var(--rwe-p-abg,#1a1a1a); }
.rwe-sp .rwe-pill.disabled{ opacity:.3; cursor:not-allowed; text-decoration:line-through; }
.rwe-sp .rwe-var-clear{ display:inline-block; margin-left:6px; font-size:12px; color:#aaa; cursor:pointer; text-decoration:underline; }
.rwe-sp .rwe-var-stock{ font-size:13px; font-weight:600; margin:10px 0 4px; min-height:18px; }
.rwe-sp .rwe-var-price{ font-size:22px; font-weight:700; color:var(--rwe-accent,#1a1a1a); margin:6px 0; min-height:26px; }
.rwe-sp .rwe-qty{ width:64px; padding:12px 8px; border:1.5px solid #ddd; border-radius:8px; font-size:14px; margin-right:8px; text-align:center; }
.rwe-sp .rwe-buy-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px; }
@media(prefers-reduced-motion:reduce){ .rwe-sp .rwe-pill{ transition:none; } }
