/* =========================================================
   TIENWA / Classic Theme — theme.css (optimized & ordered)
   - Dedupe: removed exact duplicates / conflicting re-defs
   - Safe: keeps all useful styles; where there were 2 versions,
           the "PRO / latest" version wins and older duplicates are removed
   - Scoped: some "Orders v2" rules are now scoped under .tw-ordersPage
             to avoid overriding Orders v1/table layouts.
   =========================================================

   INDEX
   01) Fonts + Tokens
   02) Base + Layout
   03) Header + Navigation
   04) UI Components (cards, buttons, inputs, alerts)
   05) Home + Product grids + Category cards
   06) PDP (product page) + Lightbox + Mobile gallery
   07) Cart
   08) Checkout + Thank you
   09) Auth + Account
   10) Orders (v1 table/list + v2 cards) + Cancel request
   11) Legal + Print
   12) Footer extras (social tiles) + Search
   13) Utilities
   ========================================================= */

/* =========================
   Inter font (self-hosted)
   ========================= */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('/assets/fonts/inter/InterVariable.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:italic;
  font-weight:100 900;
  font-display:swap;
  src:url('/assets/fonts/inter/InterVariable-Italic.woff2') format('woff2');
}

/* Chrome fix for Inter */
:root{ font-feature-settings:'liga' 1,'calt' 1; }
@supports (font-variation-settings: normal){
  :root{ font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial; }
}

:root{
  /* Storefront-like palette */
  --bg:#f7f7f7;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow:0 1px 3px rgba(0,0,0,.06);
  --shadow2:0 8px 24px rgba(0,0,0,.08);
  --radius:10px;

  --primary:#1d4ed8;
  --primary2:#1e40af;

  --link:#111827;
  --max:1200px;
}

/* =========================
   Base + Layout
========================= */
*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* ✅ FIX: evita scroll lateral en móvil (drawer off-canvas y posibles desbordes) */
  overflow-x: hidden;
}

a{ color:inherit; }

/* Sticky footer (siempre abajo) */
html, body{ height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.tw-container{ max-width:var(--max); margin:0 auto; padding:0 14px; }
.tw-main{
  max-width:var(--max);
  margin:0 auto;
  padding:20px 14px;
  flex: 1 0 auto;
  padding-bottom: 20px;
}

.tw-muted{ color:var(--muted); }
.tw-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

/* =========================
   HEADER + NAV
========================= */
.tw-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--border);
  overflow: visible; /* para que el dropdown no se recorte */
}

.tw-topbar{
  border-bottom:1px solid var(--border);
  background:#f9fafb;
}
.tw-topbar .tw-container{
  padding:8px 14px;
  font-weight:700;
  color:var(--muted);
  font-size:13px;
}

.tw-header__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 14px;
  display:flex;
  align-items:center;
  gap:14px;
  overflow: visible; /* para dropdown */
}

.tw-brand{
  text-decoration:none;
  color:inherit;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:-.2px;
}

.tw-brand__logo{
  width:40px;
  height:40px;
  object-fit:contain;
}

.tw-brand__text{
  font-size:18px;
  line-height:1.1;
}

/* NAV */
.tw-nav{
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:10px;
  overflow: visible; /* para dropdown */
}

.tw-nav__link{
  text-decoration:none;
  color:var(--link);
  font-weight:700;
  font-size:14px;
  padding:8px 10px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
}
.tw-nav__link:hover{ background:#f3f4f6; }

/* Acciones */
.tw-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.tw-action{
  text-decoration:none;
  color:var(--link);
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:10px;
  font-weight:700;
  border:1px solid transparent;
}
.tw-action:hover{
  background:#f3f4f6;
  border-color:#f3f4f6;
}
.tw-action__icon{ font-size:16px; }
.tw-action__text{ font-weight:700; font-size:14px; }

/* ✅ FIX: que los botones del header (lupa) no cojan fondo gris del navegador */
button.tw-action{
  background: transparent;
  border: 1px solid transparent; /* igual que los <a> */
  padding: 8px 10px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
button.tw-action:hover{
  background:#f3f4f6;
  border-color:#f3f4f6;
}
button.tw-action:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(29,78,216,.10);
  border-color: rgba(29,78,216,.35);
}

.tw-badge{
  min-width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-weight:800;
  font-size:12px;
  padding:0 6px;
}

.tw-burger{
  display:none;
  border:0;
  background:transparent;
  padding:8px;
  cursor:pointer;

  width:44px;
  height:44px;

  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;

  border-radius:10px;
  -webkit-tap-highlight-color: transparent;
}
.tw-burger:hover{ background:#f3f4f6; }

.tw-burger span{
  display:block;
  width:28px;
  height:3px;
  background:var(--text);
  border-radius:999px;
}
.tw-drawer.is-open ~ .tw-overlay.is-open ~ .tw-burger{ background:#f3f4f6; }

/* barra superior */
.tw-burger span:nth-child(1){ width:20px; }
/* barra central (más corta) */
.tw-burger span:nth-child(2){
  width:14px;
  align-self:flex-start; /* queda alineada a la izquierda */
}
/* barra inferior */
.tw-burger span:nth-child(3){ width:20px; }

/* Drawer + overlay (móvil) */
.tw-drawer{ display:none; }
.tw-overlay{ display:none; }

/* NAV dropdown (CLASES REALES header.php) */
.tw-navItem{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Flechita si tiene hijos */
.tw-navItem.has-children > .tw-nav__link::after{
  content: "▾";
  font-size: 12px;
  opacity: .65;
  margin-left: 6px;
  transform: translateY(-1px);
}

/* Dropdown */
.tw-navDrop{
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow2);
  padding: 8px;
  z-index: 999;
  display: none;
}

/* “puente” invisible para que no se corte el hover */
.tw-navItem.has-children > .tw-navDrop::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

/* Mostrar dropdown al hover y al focus (teclado) */
.tw-navItem.has-children:hover > .tw-navDrop,
.tw-navItem.has-children:focus-within > .tw-navDrop{
  display: block;
}

.tw-navDrop__link{
  display:block;
  text-decoration:none;
  color: var(--text);
  font-weight:800;
  font-size:14px;
  padding:10px 10px;
  border-radius:10px;
  white-space:nowrap;
}
.tw-navDrop__link:hover{ background:#f3f4f6; }
.tw-navDrop__link + .tw-navDrop__link{ margin-top:2px; }

/* RESPONSIVE (drawer) */
@media (max-width: 860px){
  .tw-nav{ display:none; }
  .tw-burger{ display:inline-flex; }
  .tw-action__text{ display:none; }

  .tw-drawer{
    display:block;
    position:fixed;
    top:0;
    right:-320px;
    width:320px;
    max-width:88vw;
    height:100vh;
    background:#fff;
    z-index:60;
    border-left:1px solid var(--border);
    box-shadow: var(--shadow2);
    transition:right .22s ease;
  }
  .tw-drawer.is-open{ right:0; }

  .tw-drawer__head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px;
    border-bottom:1px solid var(--border);
    background:#fafafa;
  }
  .tw-drawer__title{ font-weight:900; }
  .tw-drawer__close{
    border:1px solid var(--border);
    background:#fff;
    border-radius:10px;
    padding:8px 10px;
    cursor:pointer;
    font-weight:900;
  }
  .tw-drawer__body{ padding:14px; }

  .tw-navlink{
    display:block;
    padding:12px 12px;
    border:1px solid var(--border);
    border-radius:10px;
    margin-bottom:10px;
    text-decoration:none;
    color:inherit;
    font-weight:800;
    background:#fff;
  }
  .tw-navlink:hover{ background:#f9fafb; }

  .tw-overlay{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:55;
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease;
  }
  .tw-overlay.is-open{ opacity:1; pointer-events:auto; }
}

/* =========================
   UI COMPONENTS
========================= */
.tw-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}

.tw-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:8px;
  border:1px solid var(--border);
  background:#fff;
  text-decoration:none;
  color:var(--link);
  font-weight:800;
  cursor:pointer;
  transition: background .12s ease, border-color .12s ease, transform .05s ease;
}
.tw-btn:hover{ background:#f9fafb; }
.tw-btn:active{ transform: translateY(1px); }

.tw-btn--primary{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}
.tw-btn--primary:hover{ background:var(--primary2); border-color:var(--primary2); }

/* Ghost button */
.tw-btn--ghost{
  background:#fff;
  border:1px solid var(--border);
}

.btn--ghost{
  background:#fff;
  border:1px solid var(--border);
}

.tw-alert{
  padding:12px 14px;
  border-radius:10px;
  font-weight:800;
  border:1px solid var(--border);
  background:#fff;
}
.tw-alert--err{ background:#fff1f2; border-color:#fecaca; color:#7f1d1d; }

/* Titles */
.h1{ margin:0 0 10px 0; font-size:28px; letter-spacing:-0.4px; }
.h2{ margin:0; font-size:18px; letter-spacing:-0.2px; }

.tw-page__head{ margin: 6px 0 16px; }
.tw-page__head .tw-muted{ font-size:14px; }

/* Inputs (global, para cantidad también) */
.tw-input{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
  color: var(--text);
  outline: none;
}
.tw-input:focus{
  border-color: rgba(29,78,216,.35);
  box-shadow: 0 0 0 4px rgba(29,78,216,.10);
}

/* =========================
   HOME: AD
========================= */
.tw-card.ad{ padding:16px; }
.tw-card.ad h2{ margin:0; }

/* =========================
   PRODUCTS GRID
========================= */
.products{ margin-top: 28px; }
.products:first-of-type{ margin-top:18px; }

.products__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 6px 0 12px;
}

.products__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

@media (min-width: 720px){
  .products{ margin-top: 36px; }
  .products__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap:16px; }
}
@media (min-width: 1040px){
  .products__grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap:18px; }
}

.products__head .h2{
  font-size:20px;
  font-weight:900;
  letter-spacing:-0.3px;
}
@media (min-width: 720px){
  .products__head .h2{ font-size:22px; }
}

.pcard{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color: inherit;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.pcard:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  border-color:#d1d5db;
}

.pcard__media{
  position:relative;
  width:100%;
  aspect-ratio: 1 / 1;
  background:#f3f4f6;
  overflow:hidden;
}
.pcard__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transition: transform .18s ease;
}
.pcard:hover .pcard__media img{ transform: scale(1.03); }

.pcard__ph{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-weight:800;
  font-size: 13px;
}

.pcard__body{
  padding: 12px 12px 14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.pcard__title{
  font-weight:800;
  line-height: 1.25;
  font-size:14px;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 2.5em;
}

.pcard__price{
  font-weight:900;
  font-size:16px;
}

/* “Ver más” estilo texto */
.tw-moreText{
  text-decoration:none;
  color: var(--text);
  font-weight:800;
  font-size:15px;
  opacity:.70;
  padding:8px 10px;
  border-radius:12px;
}
.tw-moreText:hover{ opacity:.9; background:#f3f4f6; }
.tw-moreText:active{ opacity:1; }
@media (min-width: 720px){
  .tw-moreText{ font-size:16px; }
}

/* Sale prices */
.tw-priceOld{
  font-weight:800;
  font-size:13px;
  opacity:.7;
  text-decoration: line-through;
  margin-right:8px;
  color: #ef4444;      /* rojo */
  opacity: 1;          /* que no se vea apagado */
  text-decoration: line-through;
}

@media (max-width: 900px){

  /* ✅ PDP móvil: precio tachado más visible */
  body.tw-page-product .tw-priceOld{
    color: #ef4444;     /* rojo */
    opacity: 1;         /* que no se vea apagado */
    font-size: 15px;    /* un poco más grande */
  }

}

.tw-priceNow{ font-weight:900; }

/* Badge OFERTA */
.tw-saleBadge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.3px;
  background: rgba(255, 59, 48, .95);
  color:#fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.tw-saleBadge--card{ position:absolute; }

.pcard__media,
.card.product{ position:relative; }

.card.product .product-img{ transition: transform .18s ease; }
.card.product:hover .product-img{ transform: scale(1.03); }

/* =========================
   CATEGORY PAGE (fix grid/card product)
========================= */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

@media (min-width: 720px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap:16px; }
}
@media (min-width: 1040px){
  .grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap:18px; }
}

.card.product{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color: inherit;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card.product:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  border-color:#d1d5db;
}

.card.product .product-img{
  width:100%;
  aspect-ratio: 1 / 1;
  height:auto;
  object-fit: cover;
  display:block;
  background:#f3f4f6;
}

.card.product .product-title{
  padding: 12px 12px 0;
  font-weight:800;
  line-height:1.25;
  font-size:14px;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 2.5em;
}

.card.product .product-price{
  padding: 8px 12px 14px;
  font-weight:900;
  font-size:16px;
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:6px;
}

.card.product .tw-priceOld{
  font-weight:800;
  font-size:13px;
  opacity:.7;
  text-decoration: line-through;
  margin-right:0;
}
.card.product .tw-priceNow{ font-weight:900; }

/* =========================
   PRODUCT PAGE (PDP)
========================= */
.pdp{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:24px;
  align-items:start;
}
@media (max-width: 920px){
  .pdp{ grid-template-columns: 1fr; }
}


.pdp__gallery{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}

.pdp__main{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius) - 2px);
  overflow:hidden;
  background:#f3f4f6;
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: zoom-in;
}

.pdp__main img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.pdp__thumbs{
  display:flex;
  gap:10px;
  margin-top:12px;
  overflow:auto;
  padding-bottom:4px;
}

.pdp__thumb{
  width:72px;
  height:72px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#f3f4f6;
  overflow:hidden;
  cursor:pointer;
  flex:0 0 auto;
  opacity:.92;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease;
}
.pdp__thumb:hover{ transform: translateY(-1px); opacity:1; }
.pdp__thumb.is-active{ border-color: rgba(0,0,0,.25); opacity:1; }

.pdp__thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.pdp__summary{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}

.pdp__title{
  margin:0 0 8px 0;
  font-size:26px;
  letter-spacing:-.3px;
  line-height:1.1;
}

.pdp__price{
  font-size:22px;
  font-weight:900;
  margin:10px 0 12px;
}

.pdp__stock{
  font-weight:800;
  color: var(--muted);
  margin-bottom:14px;
}

.pdp__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 12px 0 8px;
}

.pdp__qty{
  width:92px;
  padding:10px 10px;
  border:1px solid var(--border);
  border-radius:8px;
  font-weight:800;
}

.pdp__desc{
  margin-top:14px;
  display:grid;
  gap:14px;
}

.pdp__block{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}

.pdp__block h2{
  margin:0 0 10px 0;
  font-size:16px;
  font-weight:900;
}

.pdp__html{
  color: var(--text);
  line-height:1.55;
}
.pdp__html p{ margin: 0 0 10px; }
.pdp__html ul{ margin: 0 0 10px 18px; }

/* Variantes */
.pdp__variants{ margin:14px 0 8px; display:grid; gap:12px; }
.pdp__vlabel{ font-weight:900; margin-bottom:8px; }

.pdp__swatches{ display:flex; flex-wrap:wrap; gap:10px; }
.pdp__swatch{
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-weight:900;
  display:flex; align-items:center; justify-content:center;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

/* =========================
   PDP Variantes: Swatches PRO (círculos de color)
   - funciona en móvil y PC
   - aro gris al seleccionar (.is-active)
========================= */

.pdp__swatches{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Botón circular con color */
.pdp__swatch{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--tw-swatch, repeating-linear-gradient(45deg,#e5e7eb 0 8px,#f9fafb 8px 16px));
  cursor: pointer;
  padding: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.pdp__swatch:hover{ transform: translateY(-1px); }

/* Aro exterior (seleccionado) */
.pdp__swatch::after{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:999px;
  border:2px solid transparent;
  pointer-events:none;
}

.pdp__swatch.is-active::after{
  border-color: rgba(107,114,128,.75); /* gris */
}

/* Mejor contraste para colores muy claros (blanco/amarillo, etc.) */
.pdp__swatch{
  box-shadow:
    0 6px 16px rgba(0,0,0,.08),
    inset 0 0 0 1px rgba(0,0,0,.06);
}

/* Ocultamos el texto visual del color (lo dejamos accesible) */
.pdp__swatchText{ display:none; }

/* Si el color no se puede inferir, mostramos inicial */
.pdp__swatchFallback{
  font-weight: 950;
  font-size: 12px;
  color: var(--text);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 2px 6px;
}

/* Si hay color válido, ocultamos el fallback */
.pdp__swatch[data-fallback="0"] .pdp__swatchFallback{ display:none; }

/* Focus accesible */
.pdp__swatch:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 4px rgba(29,78,216,.10),
    0 6px 16px rgba(0,0,0,.08),
    inset 0 0 0 1px rgba(0,0,0,.06);
  border-color: rgba(29,78,216,.35);
}

.pdp__swatch:hover{ transform: translateY(-1px); }
.pdp__swatch.is-active{
  border-color: rgba(2,6,23,.35);
  box-shadow: 0 8px 20px rgba(2,6,23,.10);
}
.pdp__swatchText{ font-size:12px; opacity:.9; }

.pdp__chips{ display:flex; flex-wrap:wrap; gap:10px; }
.pdp__chip{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-weight:900;
}
.pdp__chip.is-active{
  border-color: rgba(2,6,23,.35);
  box-shadow: 0 8px 20px rgba(2,6,23,.10);
}

/* Lightbox */
.pdpLightbox{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.92);
  z-index:9999;
  display:none;
}
.pdpLightbox.is-open{ display:block; }

.pdpLightbox__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  color:#fff;
}
.pdpLightbox__bar--bottom{
  position:absolute;
  left:0; right:0; bottom:0;
  background: linear-gradient(to top, rgba(2,6,23,.55), rgba(2,6,23,0));
}

.pdpLightbox__title{
  font-weight:900;
  font-size:14px;
  opacity:.9;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.pdpLightbox__btn{
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:900;
}
.pdpLightbox__btn:hover{ background: rgba(255,255,255,.14); }

.pdpLightbox__stage{
  position:absolute;
  inset:54px 0 54px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  touch-action: pan-y;
}
.pdpLightbox__stage.is-drag{ cursor: grabbing; }

.pdpLightbox__stage img{
  max-width: 92vw;
  max-height: 74vh;
  transform-origin: center center;
  transition: transform .06s linear;
  user-select:none;
  -webkit-user-drag:none;
}

/* =========================
   FOOTER
========================= */
.tw-footer{
  border-top:1px solid var(--border);
  background:#fff;
  margin-top: 0;
  flex-shrink:0;
}

.tw-footer__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 14px;
  display:flex;
  gap:22px;
  justify-content:space-between;
  flex-wrap:wrap;
}

.tw-footer__brand{ min-width:260px; }
.tw-footer__logo{
  width:48px;
  height:48px;
  object-fit:contain;
  margin-bottom:8px;
}

.tw-footer__name{ font-weight:900; font-size:16px; }
.tw-footer__muted{ color:var(--muted); font-size:13px; margin-top:6px; }

.tw-footer__contact{ margin-top:10px; color:var(--muted); font-weight:700; font-size:13px; }
.tw-footer__row{ margin:6px 0; }

.tw-footer__cols{ display:flex; gap:26px; flex-wrap:wrap; }
.tw-footer__col{ min-width:170px; }
.tw-footer__title{ font-weight:900; margin-bottom:8px; }

.tw-footer__link{
  display:block;
  color: var(--muted);
  text-decoration:none;
  margin:4px 0;
  font-weight:400;
  font-size:14px;
  line-height:1.4;
  transition: color .2s ease, transform .2s ease;
}

.tw-footer__link:hover{
  color: var(--text);
  transform: translateX(2px);
}

@media (max-width: 420px){
  .h1{ font-size:24px; }
}

/* ✅ IMPORTANTÍSIMO: Forzar logos SIN marco */
.tw-brand__logo,
.tw-footer__logo{
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

/* Header icons (SVG) */
.tw-ico{
  width:18px;
  height:18px;
  display:block;
}
.tw-action__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}
.tw-footer__bottom{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;                 /* más separación */
  flex-wrap:wrap;
  padding:20px 16px;        /* ⬅️ más aire vertical */
  line-height:1.6;          /* respira mejor */
  font-size:14px;
}

.tw-footer__sep{
  opacity:.6;
}

.tw-footer__credit{
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.tw-footer__credit:hover{
  text-decoration: underline;
}
/* =========================================
   FOOTER: Maya)
   ========================================= */

.tw-footer{
  background-color:#fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg opacity='0.10'%3E%3Cpath d='M0 24H120M0 48H120M0 72H120M0 96H120' stroke='%23c9c9c9' stroke-width='1'/%3E%3Cpath d='M24 0V120M48 0V120M72 0V120M96 0V120' stroke='%23c9c9c9' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 120px;
}

.tw-footer__bottom{
  background-color:#fafafa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg opacity='0.08'%3E%3Cpath d='M0 24H120M0 48H120M0 72H120M0 96H120' stroke='%23c9c9c9' stroke-width='1'/%3E%3Cpath d='M24 0V120M48 0V120M72 0V120M96 0V120' stroke='%23c9c9c9' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 120px;
}

.tw-footer .tw-footer__socials .tw-footer__social > svg{
  width: 18px !important;
  height: 18px !important;
  display: block;
}

.tw-footer .tw-footer__socials .tw-footer__social{
  width: 32px !important;
  height: 32px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

/* Fin Footer */

/* PC: ocultar texto (solo iconos) */
@media (min-width: 861px){
  .tw-action__text{ display:none; }
  .tw-action{ padding:8px; gap:0; }
}
/* PC: iconos cuenta/carrito un poco más grandes (móvil igual) */
@media (min-width: 861px){
  .tw-ico{ width:22px; height:22px; }
  .tw-action__icon{ width:22px; height:22px; }
}

/* Wishlist button/icon alignment */
.tw-btn__ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}
.tw-btn.tw-btn--wish{ gap:8px; }
.tw-btn.tw-btn--wish .tw-ico{ width:18px; height:18px; }

/* ==========================
   PDP: Topbar back + responsive polish
   ========================== */
.pdpTopbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 10px 0 10px;
}
.pdpBack{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:900;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  box-shadow: var(--shadow);
}
.pdpBack:hover{ background:#f9fafb; }
.pdpBack svg{ width:18px; height:18px; display:block; }

@media (max-width: 920px){
  .pdp__gallery{ padding:12px; }

  /* ✅ MÓVIL: el resumen ya NO va en "card" (PC se mantiene igual) */
  .pdp__summary{
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .pdp__title{ font-size:22px; }
  .pdp__price{ font-size:20px; }
  .pdp__thumb{ width:64px; height:64px; }
}
@media (max-width: 520px){
  .pdp__actions{ gap:8px; }
  .pdp__qty{ width:86px; }
  .pdp__actions .tw-btn{ width:100%; }  /* ✅ solo PDP */
  .pdp__actions form{ width:auto; }
  .pdp__actions > button#pdpAddToCart{ flex: 1 1 auto; }
}

/* ==========================
   PDP: Modal post add
   ========================== */
.twModal{position:fixed;inset:0;display:none;z-index:9999}
.twModal.is-open{display:block}
.twModal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.twModal__panel{position:relative;max-width:520px;margin:12vh auto 0;background:#fff;border-radius:16px;padding:18px;box-shadow:0 18px 60px rgba(0,0,0,.25)}
.twModal__title{font-weight:900;font-size:18px;margin-bottom:6px;letter-spacing:-.2px}
.twModal__text{opacity:.8;margin-bottom:14px}
.twModal__actions{display:flex;gap:10px;flex-wrap:wrap}
.twModal__actions .tw-btn{flex:1;min-width:160px;text-align:center}

@media (max-width: 520px){
  .twModal__actions{
    flex-direction: column;
    align-items: stretch;
  }
  .twModal__actions .tw-btn{
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }
  .twModal__panel{
    width: calc(100% - 28px);
    margin: 10vh auto 0;
    padding: 18px;
  }
  .twModal__actions{
    margin-top: 10px;
    padding: 0 6px;
  }
}

/* PDP: Fix scroll lateral móvil */
.pdp,
.pdp__gallery,
.pdp__summary,
.pdp__desc,
.pdp__thumbs,
.pdp__main,
.pdp__variants,
.pdp__actions{
  max-width: 100%;
  min-width: 0;
}

.pdp img,
.pdp__main img,
.pdp__thumb img{
  max-width: 100%;
  height: auto;
  display: block;
}

.tw-page__head,
.tw-page__head .tw-muted,
.pdp__title,
.pdp__html,
.tw-muted{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pdp__thumbs{
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pdp__thumb{ flex: 0 0 auto; }

@media (max-width: 520px){
  .pdp__actions{
    flex-wrap: wrap;
    max-width: 100%;
  }
  .pdp__actions .tw-btn,
  .pdp__actions form{
    max-width: 100%;
  }
}

/* PDP: Share cards (2 cards) */
.pdpShare{
  margin-top:12px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.pdpShareLinks{
  margin-top:10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}

.pdpShare__title{
  font-weight:900;
  margin:0;
  font-size:14px;
  letter-spacing:-.2px;
}
.pdpShare__row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pdpShare__btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  text-decoration:none;
  font-weight:900;
  box-shadow: var(--shadow);
}
.pdpShare__btn:hover{ background:#f9fafb; }
.pdpShare__btn svg{ width:18px; height:18px; display:block; }

@media (max-width:520px){
  .pdpShare__btn{ width:100%; justify-content:center; }
}

/* Menú móvil: subcategorías desplegables */
@media (max-width: 860px){
  .tw-navitem{
    position: relative;
    margin-bottom: 10px;
  }

  .tw-navitem .tw-navlink{
    margin-bottom: 0;
    padding-right: 56px;
  }

  .tw-navtoggle{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .tw-navtoggle::before{
    content: "▾";
    font-weight: 900;
    line-height: 1;
  }

  .tw-navitem.is-expanded .tw-navtoggle::before{ content: "▴"; }

  .tw-subnav{
    margin-top: 8px;
    padding-left: 10px;
  }

  .tw-navlink--child{
    font-weight: 700;
    background: #fafafa;
  }

  .tw-drawer__close{
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
  }
}

/* =========================
   CART (LIMPIO + PRO)
========================= */
.tw-cart{ padding: 16px; }

/* Cabecera + filas (desktop) */
.tw-cart__head,
.tw-cart__row{
  display:grid;
  grid-template-columns: 1fr 120px 140px 130px 110px;
  gap: 14px;
  align-items: center;
}

.tw-cart__head{
  font-weight: 800;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.tw-cart__row{
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.tw-cart__prod{
  display:flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.tw-cart__img{
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  flex: 0 0 auto;
}

.tw-cart__name{
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap:anywhere;
}

.tw-cart__meta{
  margin-top: 4px;
  overflow-wrap:anywhere;
}
.tw-cart__meta span{
  display:inline-block;
  margin-right: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.tw-cart__price,
.tw-cart__total{
  font-weight: 900;
  white-space: nowrap;
}

.tw-cart__qty{
  display:flex;
  justify-content:flex-start;
}
.tw-cart__qty .tw-input{
  width: 96px;
  text-align:center;
  padding: 10px 10px;
}

.tw-cart__rm{ display:flex; justify-content:flex-end; }
.tw-cart__rm .tw-btn{
  border-radius: 12px;
  padding: 10px 12px;
}

/* Botón actualizar */
.tw-cart__actions{
  display:flex;
  justify-content:flex-end;
  margin-top: 16px;
}

/* Resumen (DESKTOP bien puesto, a la derecha y compacto) */
.tw-cart__summary{
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display:block;           /* ✅ evita el flex roto */
  max-width: 560px;
  margin-left: auto;       /* ✅ a la derecha */
}

.tw-cart__sumrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}

.tw-cart__sumrow span{
  color: var(--muted);
  font-weight: 900;
}

.tw-cart__sumrow strong{
  font-weight: 900;
  white-space: nowrap;
}

.tw-cart__sumactions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap: wrap;
}

/* MOBILE */
@media (max-width: 900px){
  .tw-cart{ padding: 14px; }

  .tw-cart__head{ display:none; }

  .tw-cart__row{
    grid-template-columns: 1fr;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
    background: #fff;
    margin-bottom: 12px;
  }
  .tw-cart__row:last-child{ margin-bottom: 0; }

  .tw-cart__prod{ align-items:flex-start; }
  .tw-cart__img{
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .tw-cart__price,
  .tw-cart__qty,
  .tw-cart__total{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    white-space: normal;
  }

  .tw-cart__price::before{ content:"Precio"; font-weight:900; color:var(--muted); }
  .tw-cart__qty::before{ content:"Cantidad"; font-weight:900; color:var(--muted); }
  .tw-cart__total::before{ content:"Total"; font-weight:900; color:var(--muted); }

  .tw-cart__qty .tw-input{
    width: 110px;
    text-align:center;
  }

  .tw-cart__rm{ justify-content:flex-end; }

  .tw-cart__actions{ justify-content:stretch; }
  .tw-cart__actions .tw-btn{ width:100%; }

  .tw-cart__summary{
    max-width: none;
    margin: 16px 0 0 0;
    padding: 14px;
  }

  .tw-cart__sumactions{
    flex-direction: column;
    align-items: stretch;
  }
  .tw-cart__sumactions .tw-btn{ width: 100%; }
}

/* =========================
   CHECKOUT
========================= */
.tw-grid { margin-top: 16px; }
.tw-grid > .tw-card { padding: 18px; }

.tw-grid h2 { font-size: 1.2rem; margin-bottom: 12px; }
.tw-grid h3 { font-size: 1.05rem; margin: 12px 0 8px; }

.tw-grid label {
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.tw-grid .tw-input { width: 100%; }

/* Métodos de pago */
.tw-grid input[type="radio"] { accent-color: var(--primary); }
.tw-grid label input[type="radio"] { margin-right: 6px; }

/* Avisos */
.tw-grid .tw-muted { font-size: .9rem; }

/* Resumen checkout */
.tw-grid aside { position: sticky; top: 90px; }
.tw-grid aside strong { font-size: 1.1rem; }

@media (max-width: 900px) {
  .tw-grid { grid-template-columns: 1fr !important; }
  .tw-grid aside { position: static; }
}

/* CHECKOUT THANK YOU */
.tw-title { margin-bottom: 12px; }
.tw-card p { margin: 6px 0; }

/* =========================
   CUSTOMER LOGIN (PRO)
========================= */
.tw-auth{
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 0 22px;
}

.tw-auth__head{
  margin: 6px 0 14px;
}

.tw-auth__title{
  margin: 0 0 6px;
  text-align: center;
}

.tw-auth__subtitle{
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.tw-auth__flash{
  margin-bottom: 12px;
}

.tw-auth__card{
  padding: 18px;
  border-radius: 16px;
}

.tw-auth__form{
  display: block;
}

.tw-auth__grid{
  display: grid;
  gap: 12px;
}

.tw-auth__field{
  display: grid;
  gap: 8px;
}

.tw-auth__label{
  font-weight: 900;
  color: var(--muted);
  font-size: 13px;
}

.tw-auth__error{
  color: #7f1d1d;
  font-weight: 800;
  font-size: 13px;
}

.tw-auth__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: flex-start; /* ✅ antes flex-end */
}

.tw-auth__btnMain{
  min-width: 160px;
}

.tw-auth__btn{
  min-width: 160px;
}

/* Móvil: botones en columna y a ancho completo */
@media (max-width: 520px){
  .tw-auth{
    padding: 8px 0 18px;
  }
  .tw-auth__card{
    padding: 16px;
  }
  .tw-auth__actions{
    flex-direction: column;
    align-items: stretch;
  }
  .tw-auth__actions .tw-btn{
    width: 100%;
    min-width: 0;
  }
}

/* =========================
   CUSTOMER DASHBOARD (Mi cuenta)
========================= */
.tw-account{
  padding-top: 14px;
}

.tw-account__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin: 6px 0 12px;
}

.tw-account__titleWrap{
  min-width: 220px;
}

.tw-account__title{
  margin:0;
}

.tw-account__subtitle{
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.tw-account__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.tw-account__flash{
  margin-top: 12px;
}

.tw-account__card{
  margin-top: 12px;
}

.tw-account__user{
  display:flex;
  flex-direction:column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.tw-account__name{
  font-weight: 950;
  letter-spacing: -.2px;
}

.tw-account__stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tw-account__stat{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  min-width: 0;
}

.tw-account__statLabel{
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 6px;
}

.tw-account__statValue{
  font-weight: 950;
  font-size: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Móvil */
@media (max-width: 720px){
  .tw-account__actions{
    width: 100%;
    justify-content: flex-start;
  }
  .tw-account__actions .tw-btn{
    width: 100%;
  }
  .tw-account__stats{
    grid-template-columns: 1fr;
  }
}

/* =========================
   CART: Empty state (carrito vacío) — AJUSTE ESTÉTICO
========================= */
.tw-cartTitle{
  margin: 8px 0 12px;
  text-align: center;
  padding-left: 0;
  font-weight: 950;
  letter-spacing: -.3px;
}

.tw-emptyCart{
  width: 100%;
  max-width: 1100px;
  margin: 6px 0 0;
  padding: 18px 0 12px;
  text-align: center;
}

.tw-emptyCart__art{
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 10px 0 22px;
}

.tw-emptyCart__img{
  width: 480px;
  max-width: 94vw;
  height: auto;
  display:block;
  filter: drop-shadow(0 20px 38px rgba(0,0,0,.14));
}

.tw-emptyCart__title{
  font-weight: 950;
  font-size: 30px;
  letter-spacing: -.35px;
  margin: 0;
}

.tw-emptyCart__text{
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.tw-emptyCart__btn{
  margin-top: 20px;
  padding: 14px 22px;
  border-radius: 16px;
  min-width: 240px;
}

@media (max-width: 720px){
  .tw-emptyCart{
    max-width: 100%;
    padding: 16px 0 10px;
  }
  .tw-emptyCart__img{
    width: 360px;
    max-width: 94vw;
  }
  .tw-emptyCart__title{
    font-size: 24px;
  }
}

@media (max-width: 520px){
  .tw-emptyCart__img{
     width: 320px;
     max-width: 94vw;
  }
  .tw-emptyCart__btn{
    width: 100%;
    min-width: 0;
  }
}

/* =========================
   CHECKOUT: Payment buttons (Bizum / Stripe)
========================= */
.tw-payTabs{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

@media (max-width: 520px){
  .tw-payTabs{ grid-template-columns: 1fr; }
}

.tw-payRadio{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.tw-payTab{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
  min-width:0;
}

.tw-payTab:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}

.tw-payTab.is-active{
  border-color: rgba(29,78,216,.55);
  box-shadow: 0 0 0 4px rgba(29,78,216,.10), var(--shadow2);
}

.tw-payTab__title{
  font-weight:950;
  letter-spacing:-.2px;
}

.tw-payTab__sub{
  color: var(--muted);
  font-weight:800;
  font-size:13px;
}

.tw-payHint.is-hidden{ display:none; }

/* =========================
   CHECKOUT THANK YOU (PRO)
========================= */
.tw-thanks{
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 0 22px;
}

.tw-thanks__head{
  text-align: center;
  margin: 8px 0 16px;
}

.tw-thanks__status{
  display:flex;
  justify-content:center;
  margin-bottom: 10px;
}

.tw-thanks__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: -.2px;
  border: 1px solid var(--border);
  background:#fff;
  box-shadow: var(--shadow);
  font-size: 13px;
}

.tw-thanks__badge.is-ok{
  border-color: rgba(16,185,129,.35);
  background: rgba(16,185,129,.08);
}
.tw-thanks__badge.is-warn{
  border-color: rgba(245,158,11,.40);
  background: rgba(245,158,11,.10);
}
.tw-thanks__badge.is-bad{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
}

.tw-thanks__title{
  margin: 0;
  font-size: 34px;
  letter-spacing: -.6px;
  font-weight: 950;
  line-height: 1.05;
}

.tw-thanks__subtitle{
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 800;
}

.tw-thanks__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.tw-thanks__card{
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.tw-thanks__h2{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.3px;
}

.tw-thanks__row,
.tw-thanks__payRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.tw-thanks__row:last-child,
.tw-thanks__payRow:last-child{
  border-bottom: 0;
}

.tw-thanks__label{
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.25;
}

.tw-thanks__value{
  font-weight: 950;
  font-size: 14px;
  text-align:right;
  overflow-wrap:anywhere;
  word-break: break-word;
  min-width: 0;
}

.tw-thanks__hint{
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.tw-thanks__payBox{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.tw-thanks__small{
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.tw-thanks__actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  justify-content:center;
  flex-wrap:wrap;
}

@media (max-width: 900px){
  .tw-thanks__grid{ grid-template-columns: 1fr; }
  .tw-thanks__title{ font-size: 28px; }
}

@media (max-width: 520px){
  .tw-thanks{
    padding: 10px 0 18px;
  }
  .tw-thanks__title{ font-size: 24px; }
  .tw-thanks__actions{
    flex-direction: column;
    align-items: stretch;
  }
  .tw-thanks__actions .tw-btn{
    width: 100%;
  }
  .tw-thanks__value{
    text-align:left;
  }
  .tw-thanks__row,
  .tw-thanks__payRow{
    flex-direction: column;
    gap: 6px;
  }
}

/* ✅ THANKS: centrar cuando solo hay 1 card (Stripe) */
.tw-thanks__grid.is-one{
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

/* =========================
   ORDERS (Mi cuenta) — PRO + Responsive (v1 tabla/lista)
========================= */
.tw-ordersHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin: 10px 0 12px;
}
.tw-ordersHead__title{ margin:0; }
.tw-ordersHead__sub{ font-size:14px; font-weight:800; margin-top:6px; }
.tw-ordersHead__actions{ display:flex; gap:10px; flex-wrap:wrap; }

.tw-ordersCard{ margin-top:12px; border-radius:16px; padding:18px; }
@media (max-width:520px){
  .tw-ordersCard{ padding:14px; }
}

/* Tabla bonita */
.tw-ordersTableWrap{ overflow:auto; }
.tw-ordersTable{
  width:100%;
  border-collapse:collapse;
  min-width: 820px;
}
.tw-ordersTable th{
  text-align:left;
  padding:12px 10px;
  color: var(--muted);
  font-weight:900;
  font-size:13px;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
}
.tw-ordersTable td{
  padding:14px 10px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
  font-weight:800;
}
.tw-ordersTable tr:last-child td{ border-bottom:0; }
.tw-ordersTable__act{ text-align:right; white-space:nowrap; }

/* Pills estado */
.tw-badgePill{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:950;
  font-size:12px;
  letter-spacing:-.2px;
  white-space:nowrap;
}
.tw-badgePill.is-ok{
  border-color: rgba(16,185,129,.35);
  background: rgba(16,185,129,.08);
}
.tw-badgePill.is-warn{
  border-color: rgba(245,158,11,.40);
  background: rgba(245,158,11,.10);
}
.tw-badgePill.is-bad{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
}

/* Lista móvil */
.tw-ordersList{ display:none; }
.tw-orderItem{
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow: var(--shadow);
  padding:14px;
}
.tw-orderItem + .tw-orderItem{ margin-top:12px; }
.tw-orderItem__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.tw-orderItem__label{ color:var(--muted); font-weight:900; font-size:13px; }
.tw-orderItem__value{ font-weight:950; overflow-wrap:anywhere; }

.tw-orderItem__grid{
  display:grid;
  gap:10px;
  margin-top:8px;
}
.tw-orderKV{ display:flex; justify-content:space-between; gap:12px; }
.tw-orderKV__k{ color:var(--muted); font-weight:900; font-size:13px; }
.tw-orderKV__v{ font-weight:900; text-align:right; overflow-wrap:anywhere; min-width:0; }

.tw-orderItem__actions{
  margin-top:12px;
}
.tw-orderItem__actions .tw-btn{ width:100%; border-radius:14px; padding:12px 14px; }

/* Cambiar a tarjetas en móvil */
@media (max-width: 860px){
  .tw-ordersTableWrap{ display:none; }
  .tw-ordersList{ display:block; }
  .tw-orderKV__v{ text-align:left; }
  .tw-orderKV{ flex-direction:column; gap:6px; }
}

/* ORDER VIEW — PRO (v1) */
.tw-orderViewCard{ margin-top:12px; border-radius:16px; padding:18px; }
.tw-orderViewTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding-bottom:12px;
  border-bottom:1px solid var(--border);
}
.tw-orderViewTotal{ font-weight:900; }
.tw-orderViewTotal strong{ font-weight:950; font-size:16px; margin-left:6px; }

.tw-orderViewGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 720px){
  .tw-orderViewGrid{ grid-template-columns: 1fr; }
}

.tw-orderViewNotice{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.tw-orderViewNotice .tw-btn{ border-radius:14px; }

.tw-orderViewCancel{ margin-top:12px; }

/* Items */
.tw-orderItemsCard{ margin-top:12px; border-radius:16px; padding:18px; }
.tw-orderItemsTitle{ margin:0 0 12px; font-size:18px; font-weight:950; letter-spacing:-.3px; }

/* Lista móvil de líneas */
.tw-orderItemsList{ display:none; }
.tw-orderLine{
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow: var(--shadow);
  padding:14px;
}
.tw-orderLine + .tw-orderLine{ margin-top:12px; }
.tw-orderLine__title{ font-weight:950; margin-bottom:6px; }
.tw-orderLine__variant{ color:var(--muted); font-weight:800; font-size:13px; margin-bottom:10px; }
.tw-orderLine__grid{ display:grid; gap:10px; }

@media (max-width: 860px){
  .tw-orderItemsCard .tw-ordersTableWrap{ display:none; }
  .tw-orderItemsList{ display:block; }
}

/* Botón danger */
.tw-btn--danger{
  background:#ef4444;
  border-color:#ef4444;
  color:#fff;
}
.tw-btn--danger:hover{
  background:#dc2626;
  border-color:#dc2626;
}

/* =========================
   ORDERS (PRO + RESPONSIVE) (v2 cards) — SCOPED
========================= */
.tw-ordersPage{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 0 22px;
}

.tw-ordersPage .tw-ordersHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin: 6px 0 12px;
}

.tw-ordersPage .tw-ordersTitle{
  margin:0;
  font-weight:950;
  letter-spacing:-.4px;
}

.tw-ordersPage .tw-ordersSub{ margin-top:6px; font-weight:700; }

.tw-ordersPage .tw-ordersActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tw-ordersPage .tw-ordersFlash{ margin-top:12px; }
.tw-ordersPage .tw-ordersEmpty{ margin-top:12px; }

.tw-ordersPage .tw-ordersList{
  margin-top:12px;
  display:grid;
  gap:12px;
}

.tw-ordersPage .tw-orderCard{
  padding: 16px;
  border-radius: 16px;
}

.tw-ordersPage .tw-orderTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.tw-ordersPage .tw-orderNumWrap{ min-width: 220px; }
.tw-ordersPage .tw-orderNum{
  font-weight: 950;
  letter-spacing:-.2px;
  font-size: 16px;
  overflow-wrap:anywhere;
}
.tw-ordersPage .tw-orderDate{
  margin-top:6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.tw-ordersPage .tw-orderBadges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.tw-chip{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid var(--border);
  background:#fff;
  box-shadow: var(--shadow);
}

.tw-chip.is-ok{ border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.08); }
.tw-chip.is-warn{ border-color: rgba(245,158,11,.40); background: rgba(245,158,11,.10); }
.tw-chip.is-bad{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }
.tw-chip--soft{ opacity:.9; }

.tw-ordersPage .tw-orderBottom{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.tw-ordersPage .tw-orderTotal{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.tw-ordersPage .tw-orderTotal strong{ font-weight:950; font-size:16px; }

.tw-ordersPage .tw-orderBtns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* textarea */
.tw-ordersPage .tw-textarea{
  min-height: 110px;
  resize: vertical;
}

/* Order view */
.tw-ordersPage .tw-orderViewCard{ border-radius:16px; padding:16px; }
.tw-ordersPage .tw-orderViewGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.tw-ordersPage .tw-orderViewRow{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background:#fff;
  box-shadow: var(--shadow);
  min-width:0;
}
.tw-ordersPage .tw-orderViewLabel{
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}
.tw-ordersPage .tw-orderViewVal{
  display:block;
  margin-top:6px;
  font-weight: 950;
  overflow-wrap:anywhere;
}

/* Items table pro */
.tw-ordersPage .tw-ordersH2{
  margin:0 0 10px;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.3px;
}

.tw-ordersPage .tw-itemsTableWrap{ overflow:auto; }
.tw-ordersPage .tw-itemsTable{
  width:100%;
  border-collapse:collapse;
}
.tw-itemsTable th{
  text-align:left;
  padding:10px;
  color: var(--muted);
  font-weight: 900;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
}
.tw-itemsTable td{
  padding:10px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.tw-itemsTable td strong{ font-weight:950; }

@media (max-width: 720px){
  .tw-ordersPage .tw-orderBadges{ justify-content:flex-start; }
  .tw-ordersPage .tw-orderBtns{ width:100%; justify-content:flex-start; }
  .tw-ordersPage .tw-orderBtns .tw-btn{ width:100%; }
  .tw-ordersPage .tw-orderViewGrid{ grid-template-columns: 1fr; }
}

/* =========================
   Cancel request (Mi cuenta -> Pedido)
========================= */
.tw-cancelReq{
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
}

.tw-cancelReq__title{
  font-weight: 950;
  letter-spacing: -.2px;
}

.tw-cancelReq__sub{
  margin-top: 6px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.5;
}

.tw-cancelReq__form{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.tw-cancelReq__label{
  font-weight: 900;
  color: var(--muted);
  font-size: 13px;
}

.tw-cancelReq__actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 520px){
  .tw-cancelReq__actions .tw-btn{
    width: 100%;
  }
}

/* ✅ FIX DEFINITIVO: en desktop NO se muestran las tarjetas (solo la tabla) */
.tw-ordersList{ display:none !important; }

@media (max-width: 860px){
  .tw-ordersList{ display:block !important; }
}

/* =========================
   LEGAL (responsive + print)
========================= */
.tw-legal{
  padding: 16px 14px 26px;
}

.tw-legal__wrap{
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 18px 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  min-width: 0;
}

.tw-legal__head{ margin-bottom: 14px; }
.tw-legal__title{
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.tw-legal__meta{ font-size: .95rem; opacity: .75; }

.tw-legal__content{
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Tipografía WYSIWYG */
.tw-legal__content p{ margin: 0 0 12px; }
.tw-legal__content h2{
  margin: 18px 0 10px;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}
.tw-legal__content h3{
  margin: 16px 0 8px;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
}

/* Listas */
.tw-legal__content ul,
.tw-legal__content ol{
  margin: 0 0 12px 1.1rem;
  padding: 0;
}
.tw-legal__content li{ margin: 6px 0; }

/* ✅ Imágenes/iframes del editor: NO romper responsive */
.tw-legal__content img,
.tw-legal__content video{
  max-width: 100% !important;
  height: auto !important;
  display: block;
}
.tw-legal__content figure{ margin: 12px 0; max-width: 100%; }
.tw-legal__content iframe{
  max-width: 100% !important;
}

/* ✅ Tablas del editor: scroll horizontal suave en móvil */
.tw-legal__content table{
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
}
.tw-legal__content table,
.tw-legal__content thead,
.tw-legal__content tbody,
.tw-legal__content tr,
.tw-legal__content th,
.tw-legal__content td{
  border: 1px solid rgba(0,0,0,.10);
}
.tw-legal__content th,
.tw-legal__content td{
  padding: 10px;
  vertical-align: top;
}
.tw-legal__content .table,
.tw-legal__content table{
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Code/pre */
.tw-legal__content pre{
  max-width: 100%;
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--border);
}
.tw-legal__content code{ overflow-wrap: anywhere; }

/* Links */
.tw-legal__content a{ word-break: break-word; text-decoration: underline; }

/* ✅ Móvil */
@media (max-width: 520px){
  .tw-legal{ padding: 12px 12px 22px; }
  .tw-legal__wrap{
    padding: 14px 12px;
    border-radius: 14px;
  }
}

/* ✅ Desktop */
@media (min-width: 768px){
  .tw-legal{ padding: 28px 18px 44px; }
  .tw-legal__wrap{ padding: 28px 26px; }
}

/* =========================
   PRINT (imprimir de verdad)
========================= */
@media print{
  body{ background: #fff !important; }
  .tw-header, .tw-footer, .tw-topbar, .tw-overlay, .tw-drawer{ display: none !important; }
  .tw-main{ padding: 0 !important; }

  .tw-legal{ padding: 0 !important; }
  .tw-legal__wrap{
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .tw-legal__title{ font-size: 18pt !important; }
  .tw-legal__content{ font-size: 11pt !important; line-height: 1.5 !important; }

  a{ text-decoration: none !important; color: #000 !important; }
  a[href]::after{ content: " (" attr(href) ")"; font-size: 9pt; }

  /* Tablas en print sin “bloque scroll” */
  .tw-legal__content table{ display: table !important; overflow: visible !important; }
}

/* =========================
   Utilities
========================= */
.tw-srOnly{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* =========================
   FOOTER extras (links + social tiles)
========================= */

/* Contact links sin subrayado */
.tw-footer__contact-link{
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.tw-footer__contact-link:hover{
  text-decoration: none;
  opacity: .85;
}

/* Social tiles PRO */
.tw-footer__socials{
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.tw-footer__social{
  width: 40px;
  height: 40px;
  border-radius: 12px; /* semi redondo */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transform: translateZ(0);
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
}
.tw-footer__social:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  opacity: .95;
}
.tw-footer__social svg{
  width: 20px;
  height: 20px;
  display: block;
}

/* Colores por red */
.tw-footer__social--fb{ background: #1877F2; }
.tw-footer__social--tt{ background: #111111; }
.tw-footer__social--yt{ background: #FF0000; }

/* Instagram: degradado */
.tw-footer__social--ig{
  background: radial-gradient(circle at 30% 110%,
    #fdf497 0%, #fdf497 5%,
    #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* ===========================
   SEARCH (desktop icon + mobile bar + modal overlay)
   =========================== */

.tw-only-desktop { display: inline-flex; }
@media (max-width: 900px) {
  .tw-only-desktop { display: none !important; }
}

/* Mobile search bar (always under header on mobile) */
.tw-mobileSearch { display: none; }
@media (max-width: 900px) {
  .tw-mobileSearch {
    display: block;
    padding: 10px 0 12px;
    border-top: 0;
    border-bottom: 1px solid var(--border);
  }
  .tw-mobileSearch__inner{
    display:flex;
    align-items:center;
    gap:10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0,0,0,.04);
  }
  .tw-mobileSearch__ico{
    width: 18px;
    height: 18px;
    opacity: .75;
    flex: 0 0 auto;
  }
  .tw-mobileSearch__input{
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    line-height: 1.2;
  }
}
@media (max-width: 900px) {
  body.tw-page-product .tw-mobileSearch{
    display: none !important;
  }
}

/* Modal overlay */
.tw-searchModal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.tw-searchModal.is-open{ display:block; }

.tw-searchModal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

.tw-searchModal__panel{
  position: relative;
  width: min(980px, calc(100% - 28px));
  margin: 18px auto 0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

@media (max-width: 900px){
  .tw-searchModal__panel{
    width: calc(100% - 18px);
    margin-top: 72px;
  }
}

/* Search box */
.tw-searchBox{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.tw-searchBox__ico{
  width: 18px;
  height: 18px;
  opacity: .75;
  flex: 0 0 auto;
}
.tw-searchBox__input{
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 16px;
  line-height: 1.2;
  padding: 6px 0;
}
.tw-searchBox__close{
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
}
.tw-searchBox__close:hover{
  background: rgba(0,0,0,.06);
}
.tw-searchBox__closeIco{
  width: 18px;
  height: 18px;
  opacity: .75;
}

/* Results */
.tw-searchResults{
  max-height: min(62vh, 520px);
  overflow: auto;
}
.tw-srItem{
  display:flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
}
.tw-srItem:hover{
  background: rgba(0,0,0,.03);
}
.tw-srImg{
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0,0,0,.06);
  flex: 0 0 auto;
}
.tw-srMeta{ min-width: 0; }
.tw-srTitle{
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  margin: 2px 0 4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tw-srPrice{
  font-size: 13px;
  opacity: .8;
}

/* Footer */
.tw-searchFooter{
  padding: 10px 14px;
  background: rgba(0,0,0,.02);
}
.tw-searchFooter__link{
  text-decoration:none;
  font-weight: 600;
}

/* Body lock helper (JS) */
body.tw-noScroll{
  overflow:hidden;
}

/* ✅ Móvil: ocultar ruta/migas SOLO en ficha de producto */
@media (max-width: 900px) {
  body.tw-page-product .tw-page__head {
    display: none !important;
  }
}
/* ✅ Móvil: ocultar topbar de PC (botón Volver con texto) */
@media (max-width: 900px) {
  body.tw-page-product .pdpTopbar {
    display: none !important;
  }
}

/* =========================
   PDP: Barra superior SOLO MÓVIL (volver + título + compartir)
========================= */
.pdpMobileBar{ display:none; }

@media (max-width: 900px){
  body.tw-page-product .pdpMobileBar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding: 10px 14px;
    margin: 6px 0 12px;
  }

  body.tw-page-product .pdpMobileBar__title{
    font-weight: 950;
    letter-spacing: -.2px;
    font-size: 15px;
    text-align:center;
    flex: 1 1 auto;
    min-width: 0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  body.tw-page-product .pdpMobileBar__btn{
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background:#fff;
    box-shadow: var(--shadow);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color: inherit;
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
    flex: 0 0 auto;
    text-decoration: none;
    padding: 0;
  }

  body.tw-page-product .pdpMobileBar__btn:hover{
    background:#f9fafb;
  }

  body.tw-page-product .pdpMobileBar__btn svg{
    width: 20px;
    height: 20px;
    display:block;
  }
}

/* =========================================================
   PDP Mobile Gallery (slider + dots + 1/3) — SOLO MÓVIL
   PC sigue igual (pdpDeskGallery visible)
   ========================================================= */

/* Por defecto: móvil oculto, escritorio visible */
.pdpMobWrap { display: none; }
.pdpDeskGallery { display: block; }

@media (max-width: 900px) {

  /* MÓVIL: mostramos slider, ocultamos galería escritorio */
  .pdpMobWrap { display: block; }
  .pdpDeskGallery { display: none; }

  /* Slider a full ancho (sin marco, sin padding lateral) */
  .pdpMobWrap{
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: transparent;
  }

  .pdpMobSlider{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    /* ✅ IMPORTANTE: permite scroll vertical de la página aunque el dedo esté sobre la imagen */
    touch-action: pan-x pan-y;
  }
  .pdpMobSlider::-webkit-scrollbar{ display:none; }

  .pdpMobSlide{
    flex: 0 0 100%;
    scroll-snap-align: start;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
  }

  .pdpMobSlide img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  /* Dots */
  .pdpMobDots{
    display:flex;
    gap: 10px;
    justify-content:center;
    align-items:center;
    padding: 10px 0 14px;
  }
  .pdpMobDot{
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(17,24,39,.20);
    padding: 0;
  }
  .pdpMobDot.is-active{
    background: #ff5a1f;
  }

  /* Contador 1/3 */
  .pdpMobCount{
    position: absolute;
    right: 12px;
    bottom: 5px;
    background: rgba(255, 90, 31, .14);
    color: #ff5a1f;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    line-height: 1;
  }

  /* Lightbox en móvil: SOLO X (sin prev/next/zoom/título) */
  #lbPrev, #lbNext, #lbZoomIn, #lbZoomOut { display: none !important; }
  .pdpLightbox__title { display: none !important; }
  .pdpLightbox__bar--bottom { display: none !important; }
}

@media (max-width: 900px) {

  /* ✅ MÓVIL (solo ficha de producto): fondo blanco */
  body.tw-page-product{
    background:#fff;
  }

  body.tw-page-product .pdp__gallery{
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  body.tw-page-product .pdp{
    gap: 14px;
  }

  .pdpMobSlider{
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }

  .pdpMobSlide{
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  
    /* ✅ PDP móvil: precio izquierda + corazón pegado a la derecha */
  body.tw-page-product .pdp__summary{
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    row-gap: 10px;
    align-items: start;
  }

  /* Título a ancho completo */
  body.tw-page-product .pdp__title{
    grid-column: 1 / -1;
    grid-row: 1;
  }

  /* Precio en columna izquierda */
  body.tw-page-product .pdp__price{
    grid-column: 1 / 2;
    grid-row: 2;
    margin-right: 0;
  }

  /* Truco: hacer que los hijos de actions sean items de la grid */
  body.tw-page-product .pdp__actions{
    display: contents;
  }

  /* Wishlist (form) lo subimos a la fila del precio, columna derecha */
  body.tw-page-product .pdp__actions form{
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    margin: 0;
  }

  /* Botón corazón: sin caja (solo icono) */
  body.tw-page-product .tw-btn.tw-btn--wish{
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    min-width: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* =========================
   PDP móvil — orden + ancho completo
   (solo móvil)
========================= */

body.tw-page-product .pdp__stock,
body.tw-page-product .pdp__variants,
body.tw-page-product .pdp__qty,
body.tw-page-product #pdpAddToCart{
  grid-column: 1 / -1; /* ancho completo */
}

/* Stock: más compacto y pegado al precio */
body.tw-page-product .pdp__stock{
  grid-row: 3;
  font-size: 13px;
  margin-top: -6px;
}

/* Descripción corta: justo después del stock */
body.tw-page-product .pdp__short{
  grid-row: 4;
  margin-top: -16px;   /* ajusta -12 / -16 */
  margin-bottom: 6px;
}

body.tw-page-product .pdp__short,
body.tw-page-product .pdp__short *{
  text-align: left !important;
}

body.tw-page-product .pdp__short p{ margin: 0; }

/* Empujar el resto una fila abajo */
body.tw-page-product .pdp__variants{ grid-row: 5; }
body.tw-page-product .pdp__qty{ grid-row: 6; }
body.tw-page-product #pdpAddToCart{ grid-row: 7; }

/* =========================
   PDP short description (fix real)
========================= */

/* Desktop (PC): se ve como antes (muted), SIN el título "Descripción" */
.pdp__short{
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}
.pdp__shortTitle{ display: none; }
.pdp__shortHtml p{ margin: 0; }

/* MÓVIL: "Descripción" visible + control total de tamaño/separación */
@media (max-width: 900px){

  /* En tu grid móvil, lo dejamos justo después del stock */
  body.tw-page-product .pdp__short{
    grid-column: 1 / -1;
    grid-row: 4;              /* después del stock (row 3) */
    margin-top: -12px;        /* ajusta: -8 / -12 / -16 */
    margin-bottom: 6px;
    color: var(--text);
  }

  body.tw-page-product .pdp__shortTitle{
    display: block;
    font-weight: 950;
    font-size: 14px;
    letter-spacing: -.2px;
    margin-bottom: 6px;
    color: var(--text);
  }

  /* Tamaño REAL del texto corto (esto sí te va a cambiar) */
  body.tw-page-product .pdp__shortHtml{
    font-size: 17px;          /* pon 18/19/20 si quieres */
    line-height: 1.6;
  }

  body.tw-page-product .pdp__shortHtml,
  body.tw-page-product .pdp__shortHtml *{
    text-align: left !important;
  }
}
/* =========================================================
   PDP Variantes — Swatches PRO (override seguro)
   Pegar al FINAL del theme.css
   - No rompe mecánicas: solo estilos
   - Usa --tw-swatch seteado por PHP
   ========================================================= */

.pdp__swatches{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Botón circular con color */
.pdp__swatch{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--tw-swatch, repeating-linear-gradient(45deg,#e5e7eb 0 8px,#f9fafb 8px 16px));
  cursor: pointer;
  padding: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  box-shadow:
    0 6px 16px rgba(0,0,0,.08),
    inset 0 0 0 1px rgba(0,0,0,.06);
}

.pdp__swatch:hover{ transform: translateY(-1px); }

/* Aro exterior (seleccionado) */
.pdp__swatch::after{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:999px;
  border:2px solid transparent;
  pointer-events:none;
}

.pdp__swatch.is-active::after{
  border-color: rgba(107,114,128,.75);
}

/* Fallback (si color desconocido) */
.pdp__swatchFallback{
  font-weight: 950;
  font-size: 12px;
  color: var(--text);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 2px 6px;
}

/* Si hay color válido, ocultamos el fallback */
.pdp__swatch[data-fallback="0"] .pdp__swatchFallback{ display:none; }

/* Focus accesible */
.pdp__swatch:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 4px rgba(29,78,216,.10),
    0 6px 16px rgba(0,0,0,.08),
    inset 0 0 0 1px rgba(0,0,0,.06);
  border-color: rgba(29,78,216,.35);
}

/* =========================
   PDP Qty Stepper (− 1 +) — PRO
   - No caja para el número
   - Botones SVG círculo gris claro + icono gris oscuro
   - 100% responsive / touch friendly
========================= */

.pdpQtyStepper{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 6px 4px;
  flex: 0 0 auto;
}

.pdpQtyBtn{
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  border-radius:999px;
  -webkit-tap-highlight-color: transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.pdpQtyBtn svg{
  width:44px;
  height:44px;
  display:block;
}

.pdpQtyBtn:active{
  transform: translateY(1px);
}

.pdpQtyBtn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
  border-radius:999px;
}

.pdpQtyBtn:disabled{
  cursor:not-allowed;
  opacity:.55;
}

.pdpQtyVal{
  min-width: 22px;
  text-align:center;
  font-weight: 950;
  font-size: 16px;
  line-height: 1;
  color: var(--text);
}

/* Móvil: un pelín más grande para dedo */
@media (max-width: 520px){
  .pdpQtyStepper{ gap:12px; }
  .pdpQtyBtn{ width:48px; height:48px; }
  .pdpQtyBtn svg{ width:48px; height:48px; }
  .pdpQtyVal{ font-size: 17px; }
}

/* ✅ Si quedaba algún estilo viejo de .pdp__qty visible, lo anulamos (por si existe en otras plantillas) */
.pdp__qty{ display:none !important; }
}

/* ✅ FIX: asegurar que los SVG del stepper SIEMPRE se ven
   (protege contra resets que pisan fill/stroke en svg/path/circle)
*/
.pdpQtyBtn .pdpQtyIco{
  width:44px;
  height:44px;
  display:block;
  overflow:visible;
}

.pdpQtyBtn .pdpQtyIco circle{
  fill:#E5E7EB !important;
}

.pdpQtyBtn .pdpQtyIco path{
  stroke:#6B7280 !important;
  fill:none !important;
  stroke-width:2.6 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

/* móvil */
@media (max-width: 520px){
  .pdpQtyBtn .pdpQtyIco{ width:48px; height:48px; }
}
/* ✅ FIX: PDP Qty Stepper en DESKTOP (quita “marco” y tamaño raro) */
@media (min-width: 901px){

  .pdpQtyStepper{
    padding: 0;
    gap: 10px;
  }

  button.pdpQtyBtn{
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 999px;

    appearance: none;
    -webkit-appearance: none;
  }

  button.pdpQtyBtn svg{
    width: 44px;
    height: 44px;
    display: block;
  }
}
/* ✅ PDP: ocultar "Color: X" SOLO en móvil */
@media (max-width: 900px){
  body.tw-page-product .pdpColorLine{
    display: none !important;
  }
}
/* =========================
   PDP Qty Label (Cantidad) — PC + Móvil
   ========================= */
.pdpQtyBlock{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex: 0 0 auto;
}

.pdpQtyLabel{
  font-weight: 950;          /* bien negrita, consistente con el resto del PDP */
  font-size: 13px;
  color: var(--text);        /* negro real del tema */
  letter-spacing: -.15px;
}

/* MÓVIL: en la ficha, que ocupe ancho completo y quede justo encima del stepper */
@media (max-width: 900px){
  body.tw-page-product .pdpQtyBlock{
    grid-column: 1 / -1;
    grid-row: 6;
    margin-top: 2px;
  }
}
@media (max-width: 900px){
  .pdpQtyLabel{
    font-size: 16px;
  }
}

/* =========================================================
   FIX PDP móvil — scroll fantasma + footer tapando contenido
   ========================================================= */

@media (max-width: 900px){

  /* ❌ Quitar padding del body (causaba scroll extra) */
  body.tw-page-product{
    padding-bottom: 0 !important;
    overscroll-behavior-y: contain;
  }

  

  /* Preventivo: botón fixed sin afectar layout */
  body.tw-page-product .pdpAddWrap{
    will-change: transform;
  }
}
/* =========================================================
   PDP — Ajustes descripción larga y compartir (SOLO MÓVIL)
   - No toca HTML
   - No toca JS
   - PC queda exactamente igual
   ========================================================= */

@media (max-width: 900px){

  /* 🟢 Descripción larga SIN caja (como la corta) */
  .pdp__desc .pdp__block{
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 18px 0;
  }

  .pdp__desc .pdp__block h2{
    font-size: 16px;
    margin-bottom: 8px;
  }

  .pdp__desc .pdp__html{
    padding: 0;
  }

  /* 🟢 Ocultar bloque compartir inferior en móvil */
  .pdp__desc .pdp__block:last-child{
    display: none;
  }
}
/* =========================================================
   PDP — Reducir espacio entre descripción larga y footer
   (SOLO MÓVIL)
   ========================================================= */

@media (max-width: 900px){

  /* Menos aire bajo la descripción larga */
  .pdp__desc .pdp__block{
    margin-bottom: 8px;
  }

  /* Ajuste fino del contenedor */
  .pdp__desc{
    padding-bottom: 0;
    margin-bottom: 0;
  }
}
/* =========================================================
   PDP MÓVIL — FIX DEFINITIVO REAL
   - Un solo hueco (tw-main)
   - Botón no baja de más
   - Footer en su sitio
   ========================================================= */

@media (max-width: 900px){


  /* Compactar descripción larga */
  body.tw-page-product .pdp__desc{
    gap: 2px;
    margin-bottom: 0;
  }

  body.tw-page-product .pdp__desc .pdp__block{
    margin: 4px 0 0;
    padding: 0;
  }

  body.tw-page-product .pdp__desc .pdp__html p:last-child{
    margin-bottom: 0;
  }

  /* Evitar rebote visual */
  body.tw-page-product{
    overscroll-behavior-y: contain;
  }
}
/* =========================================================
   PDP MÓVIL — FIX BOTÓN FLOTANTE CORTADO
   ========================================================= */
@media (max-width: 900px){

  /* 1️⃣ El botón SIEMPRE visible completo */
  body.tw-page-product .pdpAddWrap{
    bottom: 0;              /* ← nunca negativo */
  }

  /* 2️⃣ El footer sube y “pisa” el botón (30% aprox) */
  body.tw-page-product .tw-footer{
    margin-top: -22px;      /* ≈ 30% del alto del botón */
    position: relative;
    z-index: 1;
  }

  /* 3️⃣ El botón queda por encima visualmente */
  body.tw-page-product .pdpAddWrap{
    z-index: 90;
  }
}
/* =========================================================
   PDP MÓVIL — EXTRA ESPACIO entre descripción larga y footer
   (override al final)
   ========================================================= */
@media (max-width: 900px){
  body.tw-page-product .pdp__desc{
    margin-bottom: 18px !important;
    padding-bottom: 18px !important;
  }
}
/* =========================================================
   PDP MÓVIL — Botón Añadir a la cesta +10% alto
   (override al final)
   ========================================================= */
@media (max-width: 900px){
  body.tw-page-product #pdpAddToCart{
    padding-top: 23px !important;
    padding-bottom: 23px !important;
  }
}
@media (max-width: 900px){
  body.tw-page-product{
    overscroll-behavior-y: auto !important;
  }
}
/* =========================
   HOME HERO — Featured (5)
   PC: 1 grande + 4 pequeños
   Móvil: slider (swipe) con desplazamiento real + loop infinito + autoplay
   Pro: sin sombras, bordes más cuadrados
   ========================= */

.twHero{ margin: 14px 0 18px; }

/* Mostrar SOLO uno según breakpoint */
.twHeroPc{ display:block; }
.twHeroMob{ display:none; }

@media (max-width: 900px){
  .twHeroPc{ display:none; }
  .twHeroMob{ display:block; }
}

/* -------------------------
   PC layout
------------------------- */
.twHeroPc{ width: 100%; }

.twHeroPc .twHeroGrid{
  display:grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}

.twHeroPc .twHeroSide{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Card base */
.twHeroCard,
.twHeroSlide{
  position:relative;
  display:block;
  overflow:hidden;
  background:#f3f4f6;
  border-radius: 12px;
  box-shadow: none;
}

/* Alturas PC controladas */
.twHeroCard--main{
  height: clamp(260px, 34vw, 520px);
}
.twHeroCard--small{
  height: clamp(160px, 16vw, 250px);
}

/* Imagen */
.twHeroImg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Sombra inferior a ancho completo */
.twHeroCard::after,
.twHeroSlide::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 42%;
  background: linear-gradient(
    180deg,
    rgba(17,24,39,0) 0%,
    rgba(17,24,39,.78) 80%,
    rgba(17,24,39,.88) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Badge DESTACADO sólido */
.twHeroBadge{
  position:absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #ef4444;
  color: #ffffff;
  z-index: 3;
}

/* Texto (sin caja) */
.twHeroInfo{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 0;
  background: transparent;
  color:#fff;
  z-index: 3;
}

.twHeroTitle{
  font-weight: 900;
  font-size: 18px;
  line-height: 1.15;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.twHeroCard--small .twHeroTitle{ font-size: 14px; }

.twHeroPrice{
  margin-top: 6px;
  display:flex;
  gap: 10px;
  align-items: baseline;
}

.twHeroOld{
  opacity:.9;
  text-decoration: line-through;
  font-weight:800;
  font-size: 14px;
}

.twHeroNow{
  font-weight: 950;
  font-size: 20px;
}

.twHeroCard--small .twHeroNow{ font-size: 16px; }

/* -------------------------
   MÓVIL: SLIDER REAL (desplazamiento) + viewport cuadrado
   Importante: ya NO usamos opacity/absolute para slides reales
------------------------- */
@media (max-width: 900px){

  /* viewport cuadrado */
  .twHeroViewport{
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background:#f3f4f6;
    touch-action: pan-y;
  }

  /* El JS creará un rail interno .twHeroRail y moverá las slides dentro */
  .twHeroRail{
    display:flex;
    height: 100%;
    width: 100%;
    will-change: transform;
    transform: translate3d(0,0,0);
    transition: transform .38s cubic-bezier(.22,.61,.36,1);
  }

  .twHeroRail.is-dragging{
    transition: none !important;
  }

  /* Cada slide ocupa exactamente el viewport */
  .twHeroRail .twHeroSlide{
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }

  /* ya no hay botón */
  .twHeroBtn{ display:none !important; }

  /* Espacio para dots: el texto va un poco por encima */
  .twHeroRail .twHeroSlide .twHeroInfo{
    left: 14px;
    right: 14px;
    bottom: 38px; /* deja hueco a los dots */
  }

  /* Dots pegados abajo */
  .twHeroDots{
    position:absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display:flex;
    gap: 8px;
    justify-content:center;
    z-index: 4;
    pointer-events: auto;
  }

  .twHeroDot{
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 0;
    opacity: .35;
    cursor: pointer;
    background: rgba(255,255,255,.95);
  }

  .twHeroDot.is-on{
    opacity: 1;
  }
}
/* =========================================================
   FIX DEFINITIVO — scroll fantasma bajo el footer en móvil
   (viewport dinámico: evita el bug de 100vh en móviles)
   ========================================================= */
@media (max-width: 900px){

  /* En móvil, NO fuerces height:100% (genera overflow fantasma) */
  html, body{
    height: auto !important;
  }

  /* Usa viewport dinámico en móvil */
  body{
    min-height: 100dvh !important; /* fallback moderno */
  }

  /* Si el navegador no soporta dvh, usa svh */
  @supports not (height: 100dvh){
    body{ min-height: 100svh !important; }
  }
}
/* =========================================================
   HOME - Carousels por categoría (MÓVIL) — FIX REAL (2 cards por “pantalla”)
   - PC: grid normal (sin cambios)
   - Móvil: carrusel horizontal + dots
   - Evita overflow del documento (no se ensancha la página)
========================================================= */

.twProdCarousel { position: relative; }
.twProdDots { display: none; }

@media (max-width: 900px){

  /* 0) FIX REAL: evita que el layout “se quede corrido” a la derecha
     (ancla el ancho base + recorta overflow en contenedores raíz) */
  html, body{
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body{
    position: relative; /* evita offsets raros en algunos móviles */
  }

  .tw-container,
  .tw-main{
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* 1) Sección: que no pinte fuera */
  .products{
    max-width: 100%;
    overflow-x: hidden;
  }

  /* 2) Head: "Ver más" no se sale */
  .products__head{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
  }
  .products__head > *{ min-width: 0; }
  .products__head .h2{
    flex: 1 1 auto;
    min-width: 0;
  }
  .products__head .tw-moreText{
    flex: 0 0 auto;
    white-space: nowrap;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 3) Wrapper: clave anti-ensanche */
  .twProdCarousel{
    max-width: 100%;
    overflow: hidden;
  }

  /* 4) Track: scroll solo interno */
  .products__grid.twProdTrack{
    display: flex !important;
    gap: 14px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    scroll-snap-type: x mandatory;

    /* ✅ margen lateral “pro” */
    padding: 0 6px 8px;

    scrollbar-width: none;
  }
  .products__grid.twProdTrack::-webkit-scrollbar{ display:none; }

  /* 5) Cards — ✅ 2 cards por ancho completo (gap=14px) */
  .products__grid.twProdTrack .pcard{
    flex: 0 0 calc((100% - 14px) / 2);
    max-width: calc((100% - 14px) / 2);
    scroll-snap-align: start;
    min-width: 0;
  }

  /* 6) Dots */
  .twProdDots{
    display:flex;
    justify-content:center;
    gap: 8px;
    padding: 10px 0 0;
  }
  .twProdDot{
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 0;
    background: rgba(17,24,39,.22);
    opacity: .45;
    transition: opacity .18s ease, transform .18s ease;
  }
  .twProdDot.is-on{
    opacity: 1;
    transform: scale(1.15);
    background: rgba(255,90,31,.95);
  }
}


/* ✅ Media query SEPARADA (NO anidada)
   (se mantiene tal cual) */
@media (min-width: 520px) and (max-width: 900px){
  .products__grid.twProdTrack .pcard{
    flex-basis: 46%;
  }
}
  /* 5.1) Precio más compacto SOLO en HOME móvil */
  .products__grid.twProdTrack .pcard .pcard__price,
  .products__grid.twProdTrack .pcard .tw-priceNow{
    font-size: 14px;   /* antes ~16px */
  }

  .products__grid.twProdTrack .pcard .tw-priceOld{
    font-size: 12px;   /* más discreto */
  }

/* =========================
   PAGINATION (Category / Products)
========================= */
.twPagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  margin: 18px 0 6px;
  flex-wrap: wrap;
}

.twPageBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.12);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow);
  transition: transform .05s ease, background .12s ease, border-color .12s ease;
}

.twPageBtn:hover{
  background:#f9fafb;
  border-color: rgba(17,24,39,.18);
}

.twPageBtn:active{
  transform: translateY(1px);
}

.twPageBtn.is-disabled{
  opacity: .45;
  pointer-events: none;
}

.twPageInfo{
  font-weight: 900;
  opacity: .75;
  padding: 0 2px;
}

/* =========================================================
   MODO VACACIONES
   ========================================================= */

/* 1) Estilo “vacaciones” (aplica en todos, no cambia layout) */
.tw-topbar{
  background: rgba(239, 68, 68, .14);
  border-bottom: 0;
  border-top: 1px solid var(--border);
}
.tw-topbar .tw-container{
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #991b1b;
  padding: 10px 14px;
}

/* 2) MÓVIL: reordenar SOLO en móvil, y evitando el bug del logo desplazado */
@media (max-width: 900px){

  /* Convertimos el header en columna SOLO en móvil */
  .tw-header{
    display: flex;
    flex-direction: column;
  }

  /* ✅ CRÍTICO: como flex-item, el inner debe estirarse a 100% para que NO se desplace el logo */
  .tw-header__inner{
    order: 1;
    width: 100%;
    align-self: stretch;
  }

  /* Buscador móvil SIEMPRE debajo del header */
  .tw-mobileSearch{
    order: 2;
    display: block;
    padding: 10px 0 12px;
    border-top: 0;
    border-bottom: 1px solid var(--border);
  }

  /* Vacaciones debajo del buscador en móvil */
  .tw-header > .tw-topbar{
    order: 3;
    border-top: 0; /* para que no meta doble línea con el buscador */
    border-bottom: 1px solid var(--border);
  }
}
/* =========================
   HOME — Anuncio (twAd)
   PC: imagen izquierda + texto derecha
   Móvil: apilado
========================= */

.twAd{
  margin: 14px 0 18px;
}

.twAdCard{
  display:flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow2);
  text-decoration: none;
  color: inherit;
}

.twAdMedia{
  flex: 0 0 420px;
  max-width: 420px;
  background: #0b4a6b;
  position: relative;
}

.twAdImg{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
}

.twAdPh{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b4a6b 0%, #10b981 100%);
}

.twAdBody{
  flex: 1 1 auto;
  padding: 18px 18px;
  display:flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.twAdTitle{
  margin: 0;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.3px;
}

.twAdText{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
  max-width: 70ch;
}

.twAdLink{
  margin-top: 2px;
  font-weight: 900;
  color: var(--primary);
}

/* Móvil */
@media (max-width: 900px){
  .twAdCard{
    flex-direction: column;
  }

  .twAdMedia{
    flex: 0 0 auto;
    max-width: none;
    aspect-ratio: 16 / 9;
  }

  .twAdBody{
    padding: 16px 16px;
  }

  .twAdTitle{
    font-size: 18px;
  }
}





