/* JERSIX — carrito lateral global */
body.fs-cart-lock{overflow:hidden}
.fs-global-cart-overlay{position:fixed;inset:0;background:rgba(3,6,10,.68);backdrop-filter:none;-webkit-backdrop-filter:none;opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease;z-index:110000}
.fs-global-cart-overlay.is-open{opacity:1;visibility:visible}
.fs-global-cart-drawer{position:fixed;top:0;right:0;width:min(440px,100%);height:100vh;height:100dvh;background:#090d13;border-left:1px solid rgba(255,255,255,.1);box-shadow:-24px 0 70px rgba(0,0,0,.55);transform:translateX(105%);transition:transform .3s cubic-bezier(.22,.8,.25,1);z-index:110001;display:flex;flex-direction:column;color:#f5f7fb;font-family:'DM Sans',Arial,sans-serif}
.fs-global-cart-drawer.is-open{transform:translateX(0)}
.fs-gcart-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid rgba(255,255,255,.1)}
.fs-gcart-title{display:flex;align-items:center;gap:10px;font:700 25px/1 'Oswald',Arial,sans-serif;text-transform:uppercase}
.fs-gcart-count{min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#e3222e;color:#080b0f;display:grid;place-items:center;font:900 12px/1 'DM Sans',Arial,sans-serif}
.fs-gcart-close{width:40px;height:40px;border:1px solid rgba(255,255,255,.13);border-radius:50%;background:#111720;color:#fff;font-size:23px;line-height:1;cursor:pointer}
.fs-gcart-items{flex:1;overflow:auto;padding:10px 22px}
.fs-gcart-empty{height:100%;min-height:250px;display:grid;place-items:center;text-align:center;color:#98a2b1;line-height:1.65}
.fs-gcart-empty b{display:block;color:#fff;font:600 23px/1.1 'Oswald',Arial,sans-serif;text-transform:uppercase;margin-bottom:8px}
.fs-gcart-item{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:13px;padding:17px 0;border-bottom:1px solid rgba(255,255,255,.09);align-items:start}
.fs-gcart-item>img{width:82px;height:98px;object-fit:cover;border-radius:12px;background:#111720}
.fs-gcart-name{font-size:13px;font-weight:800;line-height:1.35;margin-bottom:6px}
.fs-gcart-meta,.fs-gcart-stamp{color:#8f99a7;font-size:11px;line-height:1.45}
.fs-gcart-qty{display:inline-grid;grid-template-columns:30px 34px 30px;align-items:center;margin-top:10px;border:1px solid rgba(255,255,255,.13);border-radius:9px;overflow:hidden;background:#0d1219}
.fs-gcart-qty button{height:30px;border:0;background:transparent;color:#fff;cursor:pointer;font-size:17px}
.fs-gcart-qty button:hover{background:rgba(255,255,255,.06)}
.fs-gcart-qty span{text-align:center;font-size:12px;font-weight:800}
.fs-gcart-price{text-align:right;font-size:13px;font-weight:900;white-space:nowrap}
.fs-gcart-remove{display:block;margin:10px 0 0 auto;padding:0;border:0;background:transparent;color:#8e98a6;text-decoration:underline;font-size:10px;cursor:pointer}
.fs-gcart-foot{padding:17px 22px 22px;border-top:1px solid rgba(255,255,255,.1);background:#090d13}
.fs-gcart-progress-top{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:11px;font-weight:800}
.fs-gcart-progress-top strong{color:#e3222e}
.fs-gcart-progress{height:7px;border-radius:999px;background:rgba(255,255,255,.09);overflow:hidden;margin-bottom:15px}
.fs-gcart-progress span{display:block;height:100%;background:#e3222e;border-radius:inherit;transition:width .25s ease}
.fs-gcart-total{display:flex;align-items:end;justify-content:space-between;gap:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.09)}
.fs-gcart-total span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.fs-gcart-total strong{font:700 30px/1 'Oswald',Arial,sans-serif;color:#e3222e}
.fs-gcart-promo{margin-top:8px;color:#9aa4b2;font-size:10px;line-height:1.45}
.fs-gcart-actions{display:grid;grid-template-columns:1fr 1.12fr;gap:10px;margin-top:16px}
.fs-gcart-btn{min-height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.fs-gcart-btn.secondary{border:1px solid rgba(255,255,255,.16);color:#fff;background:#10151d}
.fs-gcart-btn.primary{background:#e3222e;color:#080b0f}
@media(max-width:520px){.fs-global-cart-drawer{width:100%}.fs-gcart-head{padding:17px 16px}.fs-gcart-items{padding:8px 16px}.fs-gcart-foot{padding:15px 16px 18px}.fs-gcart-item{grid-template-columns:72px minmax(0,1fr) auto}.fs-gcart-item>img{width:72px;height:88px}.fs-gcart-actions{grid-template-columns:1fr 1fr}}


/* Paso 59 — fotos reales del carrito */
.fs-gcart-item>img{
  object-fit:contain!important;
  object-position:center!important;
  padding:3px!important;
  box-sizing:border-box!important;
  background:#10151d!important;
}
@media(max-width:520px){
  .fs-gcart-item{
    grid-template-columns:68px minmax(0,1fr) auto!important;
    gap:10px!important;
  }
  .fs-gcart-item>img{
    width:68px!important;
    height:84px!important;
    border-radius:10px!important;
  }
}


/* ============================================================
   PASO 60 — PROGRESO 4X3 EN CARRITO
   ============================================================ */
.fs-gcart-progress-block{
  padding:0 0 14px;
}
.fs-gcart-4x3-card{
  position:relative;
  margin:2px 0 17px;
  padding:13px 14px 12px;
  overflow:hidden;
  border:1px solid rgba(227,34,46,.22);
  border-radius:14px;
  background:
    linear-gradient(145deg,rgba(227,34,46,.075),rgba(255,255,255,.018));
}
.fs-gcart-4x3-card:after{
  content:"4X3";
  position:absolute;
  right:-5px;
  top:-12px;
  color:rgba(227,34,46,.055);
  font:700 58px/1 Oswald,Arial,sans-serif;
  pointer-events:none;
}
.fs-gcart-4x3-head{
  position:relative;
  z-index:1;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
}
.fs-gcart-4x3-head small{
  display:block;
  margin-bottom:3px;
  color:#e3222e;
  font-size:7px;
  font-weight:900;
  letter-spacing:.14em;
}
.fs-gcart-4x3-head b{
  display:block;
  color:#f6f8fb;
  font:700 16px/1 Oswald,Arial,sans-serif;
  letter-spacing:.025em;
}
.fs-gcart-4x3-head>strong{
  color:#e3222e;
  font:700 20px/1 Oswald,Arial,sans-serif;
}
.fs-gcart-4x3-card p{
  position:relative;
  z-index:1;
  margin:7px 0 10px;
  color:#9ca6b3;
  font-size:8px;
  font-weight:700;
  line-height:1.45;
  letter-spacing:.025em;
}
.fs-gcart-4x3-track{
  position:relative;
  z-index:1;
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}
.fs-gcart-4x3-track span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#e3222e;
  transition:width .3s ease;
}
.fs-gcart-4x3-steps{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
  margin-top:7px;
}
.fs-gcart-4x3-steps i{
  height:3px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}
.fs-gcart-4x3-steps i.on{background:#e3222e}
.fs-gcart-4x3-card.is-complete{
  border-color:rgba(227,34,46,.48);
  background:
    linear-gradient(145deg,rgba(227,34,46,.13),rgba(227,34,46,.035));
}
.fs-gcart-4x3-card.is-complete .fs-gcart-4x3-head b{
  color:#fff;
}

@media(max-width:520px){
  .fs-gcart-4x3-card{
    padding:12px;
    margin-bottom:14px;
    border-radius:12px;
  }
  .fs-gcart-4x3-head b{font-size:15px}
}

/* PASO 84 — carrito mayorista independiente */
.fs-gcart-promo.is-wholesale{
  margin-top:10px;
  padding:10px 11px;
  border:1px solid rgba(227,34,46,.18);
  border-radius:10px;
  background:rgba(227,34,46,.045);
  color:#b9c1cc;
  font-size:9px;
  font-weight:800;
  line-height:1.5;
  letter-spacing:.025em;
}


/* PASO 85 · VACIAR CARRITO + LEGIBILIDAD MOBILE */
.fs-gcart-clear{
  width:100%;
  min-height:38px;
  margin-top:12px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:10px;
  background:transparent;
  color:#909aa7;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  transition:.2s ease;
}
.fs-gcart-clear:hover{
  border-color:rgba(227,34,46,.42);
  color:#fff;
  background:rgba(227,34,46,.07);
}
.fs-gcart-clear[hidden]{display:none!important}

@media(max-width:520px){
  .fs-gcart-title{font-size:27px!important}
  .fs-gcart-name{font-size:13px!important;line-height:1.3!important}
  .fs-gcart-meta{font-size:10px!important}
  .fs-gcart-price{font-size:15px!important}
  .fs-gcart-remove{font-size:9px!important}
  .fs-gcart-qty{height:36px!important}
  .fs-gcart-qty button{font-size:17px!important}
  .fs-gcart-qty span{font-size:12px!important}
  .fs-gcart-progress-top{font-size:10px!important}
  .fs-gcart-4x3-head small{font-size:8px!important}
  .fs-gcart-4x3-head b{font-size:17px!important}
  .fs-gcart-4x3-card p{font-size:9px!important}
  .fs-gcart-promo.is-wholesale,.fs-gcart-promo{font-size:10px!important;line-height:1.55!important}
  .fs-gcart-total span{font-size:11px!important}
  .fs-gcart-total strong{font-size:31px!important}
  .fs-gcart-btn{font-size:10px!important}
  .fs-gcart-clear{min-height:42px;font-size:10px}
}


/* v18 · Feedback móvil al agregar sin abrir el carrito */
.fs-cart-added-feedback{
  position:fixed;
  left:50%;
  bottom:calc(82px + env(safe-area-inset-bottom,0px));
  z-index:100700;
  width:min(calc(100% - 28px),360px);
  min-height:58px;
  padding:10px 13px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(227,34,46,.35);
  border-radius:14px;
  background:rgba(8,12,18,.97);
  box-shadow:0 18px 44px rgba(0,0,0,.42);
  backdrop-filter:blur(16px);
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,18px) scale(.97);
  transition:opacity .22s ease,transform .28s cubic-bezier(.2,.8,.2,1);
}
.fs-cart-added-feedback.is-show{
  opacity:1;
  transform:translate(-50%,0) scale(1);
}
.fs-cart-added-check{
  width:36px;height:36px;flex:0 0 auto;
  display:grid;place-items:center;
  border-radius:50%;
  background:#e3222e;color:#fff;
  font-size:18px;font-weight:950;
}
.fs-cart-added-feedback b{
  display:block;color:#f5f7fa;
  font-size:11px;font-weight:950;letter-spacing:.04em;
}
.fs-cart-added-feedback small{
  display:block;margin-top:3px;color:#8994a2;
  font-size:9px;font-weight:700;
}
.fs-cart-added-pulse{
  animation:fsCartAddedPulseV18 .62s ease both!important;
}
@keyframes fsCartAddedPulseV18{
  0%{transform:scale(1)}
  38%{transform:scale(1.16);box-shadow:0 0 0 7px rgba(227,34,46,.18)}
  100%{transform:scale(1)}
}
@media(min-width:901px) and (pointer:fine){
  .fs-cart-added-feedback{
    left:auto;
    right:24px;
    bottom:24px;
    width:330px;
    transform:translateY(18px) scale(.97);
  }
  .fs-cart-added-feedback.is-show{
    transform:translateY(0) scale(1);
  }
}


/* v18 · Cambio de talle desde drawer */
.fs-gcart-size-v18{
  width:max-content;
  margin-top:5px;
  display:flex;
  align-items:center;
  gap:6px;
}
.fs-gcart-size-v18 span{
  color:#788391;
  font-size:9px;
  font-weight:800;
}
.fs-gcart-size-v18 select{
  height:30px;
  min-width:68px;
  padding:0 22px 0 8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:#0b1118;
  color:#fff;
  font-size:10px;
  font-weight:850;
  outline:0;
}

/* Keep the dialog above the scrim even when other themes load later. */
body #fs-global-cart-overlay{z-index:110000;backdrop-filter:none;-webkit-backdrop-filter:none}
body #fs-global-cart-drawer{z-index:110001;filter:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.fs-gcart-items{min-height:0;overscroll-behavior:contain}
.fs-gcart-foot{padding-bottom:max(18px,env(safe-area-inset-bottom))}
.fs-gcart-head{flex-shrink:0}
.fs-gcart-foot{flex-shrink:0;max-height:60%;overflow-y:auto;overscroll-behavior:contain}

/* P7 · Precio web y transferencia minorista. */
.fs-gcart-unit-prices{display:grid;gap:3px;margin:8px 0;font-size:11px;line-height:1.5;color:#bdc6d2;overflow-wrap:anywhere}
.fs-gcart-unit-prices b{white-space:nowrap;color:#f5f7fb}
.fs-gcart-unit-prices .fs-gcart-unit-transfer,.fs-gcart-unit-transfer b{color:#94e5c1}
.fs-gcart-transfer[hidden]{display:none!important}
.fs-gcart-transfer{margin-top:12px;padding:12px;border:1px solid rgba(148,229,193,.3);border-radius:12px;background:rgba(60,160,115,.08)}
.fs-gcart-transfer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fs-gcart-transfer-row span{display:block;font-size:12px;font-weight:800;color:#e5f8ee}
.fs-gcart-transfer-row small{display:block;margin-top:4px;font-size:11px;line-height:1.5;color:#b7cfc3}
.fs-gcart-transfer-row strong{font:700 28px/1.1 Oswald,Arial,sans-serif;color:#94e5c1;white-space:nowrap}
.fs-gcart-transfer p{margin:6px 0 0;font-size:11px;line-height:1.5;color:#b7cfc3}
.fs-gcart-total{flex-wrap:wrap}
.fs-gcart-item>div{min-width:0}
@media(max-width:360px){.fs-gcart-item{grid-template-columns:52px minmax(0,1fr)!important}.fs-gcart-item>img{width:52px!important;height:70px!important}.fs-gcart-price{grid-column:2;display:flex;justify-content:space-between;align-items:center;gap:8px}.fs-gcart-remove{margin:0}.fs-gcart-unit-prices{font-size:11px}}

/* Carrito móvil: dos precios y progreso siempre desplegado. */
.fs-gcart-foot{display:flex;flex-direction:column}
.fs-gcart-benefits{order:-1}
.fs-gcart-benefits[hidden]{display:none!important}
.fs-gcart-clear-mobile{display:none}
.fs-gcart-unit-prices>small{font-size:10px;line-height:1.45;color:#aeb9c8}
@media(max-width:900px){
 .fs-gcart-head{gap:8px}
 .fs-gcart-title{order:0;min-width:0}
 .fs-gcart-close{order:2;flex-shrink:0}
 .fs-gcart-clear-mobile{display:inline-flex;align-items:center;justify-content:center;order:1;margin-left:auto;min-height:40px;padding:0 9px;border:1px solid #46505e;border-radius:9px;background:transparent;color:#d6deea;font:700 11px 'DM Sans',Arial,sans-serif;cursor:pointer}
 .fs-gcart-clear-mobile[hidden]{display:none!important}
 .fs-gcart-foot{max-height:70%;padding-top:12px}
 .fs-gcart-total{padding-top:0;border-top:0;align-items:center}
 .fs-gcart-total strong{font-size:28px!important}
 .fs-gcart-transfer{margin-top:9px;padding:9px 11px}
 .fs-gcart-transfer-row strong{font-size:27px}
 .fs-gcart-transfer p{margin-top:3px}
 .fs-gcart-promo{margin-top:7px;line-height:1.4!important}
 .fs-gcart-benefits{order:-1;margin-top:0}
 .fs-gcart-clear{display:none}
 .fs-gcart-actions{position:sticky;bottom:0;margin-top:4px;padding-top:6px;flex-shrink:0;background:#090d13}
 .fs-gcart-btn{min-height:44px}
}

.fs-gcart-transfer [data-cart-retry]{min-height:40px;margin-top:7px;padding:7px 13px;border:1px solid #94e5c1;border-radius:8px;background:#14281e;color:#e5f8ee;font:700 12px 'DM Sans',Arial,sans-serif;cursor:pointer}
