@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root{
  --lsc-purple:#5b4fe5;
  --lsc-purple-dark:#453adf;
  --lsc-ink:#17151f;
  --lsc-gray:#75727f;
  --lsc-bg-soft:#f6f5fb;
  --lsc-border:#e9e7f2;
  --lsc-green:#1fae62;
}

/* ---------- Overlay + Drawer ---------- */
.lsc-overlay{
  position:fixed; inset:0;
  background:rgba(10,8,20,.45);
  opacity:0; pointer-events:none;
  transition:opacity .3s ease;
  z-index:100000;
}
body.lsc-open .lsc-overlay{ opacity:1; pointer-events:auto; }

.lsc-drawer{
  position:fixed; top:0; right:0; height:100%;
  width:min(400px, 92vw);
  background:#fff;
  z-index:100001;
  display:flex; flex-direction:column;
  transform:translateX(100%);
  transition:transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow:-8px 0 30px rgba(20,10,60,.15);
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,sans-serif;
  box-sizing:border-box;
}
.lsc-drawer *{ box-sizing:border-box; }
body.lsc-open .lsc-drawer{ transform:translateX(0); }
body.lsc-open{ overflow:hidden; }

/* ---------- Header minimalista ---------- */
.lsc-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 20px;
  padding-top:calc(18px + env(safe-area-inset-top,0px));
  background:#fff; color:var(--lsc-ink);
  border-bottom:1px solid var(--lsc-border);
  flex:none;
}
.lsc-head h2{ margin:0; font-size:16px; font-weight:700; display:flex; align-items:center; gap:8px; color:var(--lsc-ink); }
.lsc-head h2 svg{ width:19px; height:19px; color:var(--lsc-purple); }
.lsc-close{
  background:var(--lsc-bg-soft); border:none; width:30px; height:30px;
  border-radius:50%; cursor:pointer; color:var(--lsc-ink); font-size:13px;
  display:flex; align-items:center; justify-content:center;
}

.lsc-cart-inner{ display:flex; flex-direction:column; flex:1; min-height:0; overflow-y:auto; }

/* Barra de envío gratis */
.lsc-ship-bar{ padding:14px 20px; border-bottom:1px solid var(--lsc-border); flex:none; }
.lsc-ship-msg{ font-size:12.5px; font-weight:600; margin-bottom:8px; color:var(--lsc-ink); }
.lsc-ship-msg.lsc-done{ color:var(--lsc-green); }
.lsc-ship-amount{ color:var(--lsc-purple); font-weight:800; }
.lsc-ship-track{ height:7px; border-radius:6px; background:var(--lsc-bg-soft); overflow:hidden; }
.lsc-ship-fill{
  height:100%; border-radius:6px;
  background:linear-gradient(90deg, var(--lsc-purple), #8b7bff);
  transition:width .5s ease;
}

.lsc-items{ padding:6px 20px; }
.lsc-item{ display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--lsc-border); }
.lsc-item:last-child{ border-bottom:none; }
.lsc-item-thumb{ width:58px; height:58px; border-radius:10px; overflow:hidden; flex:none; }
.lsc-item-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.lsc-item-info{ flex:1; min-width:0; }
.lsc-item-info h4{ margin:0 0 8px; font-size:15px; font-weight:700; line-height:1.35; color:var(--lsc-ink); letter-spacing:.1px; }
.lsc-item-controls{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

.lsc-variation-picker{ width:100%; margin-top:1px; }
.lsc-variation-options{ display:flex; flex-wrap:wrap; gap:5px; }
.lsc-variation-option{
  appearance:none; -webkit-appearance:none;
  border:1px solid var(--lsc-border); border-radius:999px;
  background:#fff; color:var(--lsc-ink);
  font-family:inherit; font-size:10.5px; font-weight:600;
  line-height:1; padding:6px 9px; min-height:27px;
  cursor:pointer; transition:all .16s ease;
}
.lsc-variation-option:hover{ border-color:var(--lsc-purple); color:var(--lsc-purple); }
.lsc-variation-option.is-selected{
  background:var(--lsc-purple); border-color:var(--lsc-purple);
  color:#fff; box-shadow:0 3px 8px rgba(91,79,229,.20);
}

.lsc-qty-row{ display:flex; align-items:center; }
.lsc-qty-btn{
  width:24px; height:24px; border-radius:6px; border:1px solid var(--lsc-border);
  background:#fff; cursor:pointer; font-size:13px; font-weight:700;
  display:flex; align-items:center; justify-content:center; color:var(--lsc-ink);
}
.lsc-qty-val{ width:26px; text-align:center; font-size:13px; font-weight:700; }
.lsc-item-right{ display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; }
.lsc-item-price{ font-size:13.5px; font-weight:800; color:var(--lsc-ink); }
.lsc-remove{ background:none; border:none; color:#b7b4c3; cursor:pointer; font-size:11px; text-decoration:underline; padding:0; }

.lsc-empty{ text-align:center; padding:60px 24px; color:var(--lsc-gray); font-size:13.5px; }

/* ---------- Productos sugeridos: carrusel con puntos ---------- */
.lsc-upsell{ padding:4px 20px 10px; border-top:1px dashed var(--lsc-border); margin-top:6px; }
.lsc-upsell-title{ font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; color:var(--lsc-gray); margin:14px 0 10px; }
.lsc-upsell-row{
  display:flex; gap:12px; overflow-x:auto; padding-bottom:2px;
  scroll-snap-type:x mandatory; scrollbar-width:none;
}
.lsc-upsell-row::-webkit-scrollbar{ display:none; }
.lsc-upsell-card{
  flex:0 0 auto; width:112px; text-align:center; scroll-snap-align:start;
}
.lsc-upsell-image{
  width:100%; height:92px; border-radius:12px; margin-bottom:8px;
  background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.lsc-upsell-card img{
  width:100%; height:100%; object-fit:contain; object-position:center;
  display:block; padding:4px;
}
.lsc-upsell-card h5{
  margin:0 0 4px; font-size:11.5px; font-weight:600; line-height:1.4; color:var(--lsc-ink);
  height:2.8em; overflow:hidden; letter-spacing:.1px;
}
.lsc-up-price{ font-size:12px; color:var(--lsc-purple); font-weight:800; margin-bottom:8px; }
.lsc-upsell-add{
  display:inline-flex; width:auto; min-width:78px; align-items:center; justify-content:center;
  background:transparent !important; color:var(--lsc-purple) !important;
  border:1.4px solid var(--lsc-purple) !important; border-radius:999px;
  font-family:inherit; font-size:10.5px; font-weight:700; line-height:1;
  padding:7px 12px !important; cursor:pointer;
  text-align:center; text-decoration:none !important; box-shadow:none !important;
  transition:background .15s ease, color .15s ease;
}
.lsc-upsell-add:hover{ background:var(--lsc-purple) !important; color:#fff !important; }
.lsc-upsell-add.loading{ opacity:.65; pointer-events:none; }
.lsc-upsell-options{ text-decoration:none !important; }

.lsc-upsell-dots{ display:flex; justify-content:center; gap:6px; margin-top:10px; }
.lsc-dot{ width:6px; height:6px; border-radius:50%; background:var(--lsc-border); cursor:pointer; transition:all .2s ease; }
.lsc-dot-active{ background:var(--lsc-purple); width:16px; border-radius:3px; }

/* Footer */
.lsc-foot{ border-top:1px solid var(--lsc-border); padding:14px 20px calc(16px + env(safe-area-inset-bottom,0px)); flex:none; margin-top:auto; }

.lsc-coupon-toggle{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  background:none; border:none; font-size:12.5px; font-weight:600; color:var(--lsc-ink);
  padding:6px 0 10px; cursor:pointer;
}
.lsc-coupon-box{ display:none; gap:8px; padding-bottom:12px; }
.lsc-coupon-box.lsc-show{ display:flex; flex-wrap:wrap; }
.lsc-coupon-input{ flex:1; min-width:120px; border:1px solid var(--lsc-border); border-radius:8px; padding:8px 10px; font-size:12.5px; }
.lsc-coupon-apply{ background:var(--lsc-ink); color:#fff; border:none; border-radius:8px; padding:8px 14px; font-size:12px; font-weight:700; cursor:pointer; }
.lsc-coupon-msg{ width:100%; font-size:11.5px; margin-top:4px; color:var(--lsc-gray); }

.lsc-subtotal-row{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px; }
.lsc-subtotal-row span:first-child{ font-size:13.5px; font-weight:600; color:var(--lsc-ink); }
.lsc-subtotal-row span:last-child{ font-size:18px; font-weight:800; color:var(--lsc-ink); }

.lsc-checkout-btn{
  width:100%; border:none; border-radius:14px; padding:14px 0;
  background:linear-gradient(90deg, var(--lsc-purple), var(--lsc-purple-dark));
  color:#fff !important; font-weight:800; font-size:14.5px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 8px 18px rgba(91,79,229,.35);
  text-decoration:none !important;
}
.lsc-checkout-btn svg{ width:16px; height:16px; }

.lsc-continue{
  display:block; text-align:center; margin-top:10px; font-size:12px; color:var(--lsc-purple);
  text-decoration:underline; cursor:pointer; font-weight:600;
}

.lsc-trust-row{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:14px; font-size:10.5px; color:var(--lsc-gray); text-align:center; }

/* Oculta el aviso clásico de WooCommerce "se ha añadido a tu carrito" (el carrito lateral ya lo reemplaza) */
.woocommerce-message{ display:none !important; }

@media (max-width:480px){
  .lsc-item-info h4{ font-size:14.5px; }
  .lsc-upsell-card{ width:100px; }
  .lsc-upsell-image{ height:84px; }
}


/* Recomendaciones variables: selector compacto, sin el antiguo "Ver opciones" */
.lsc-upsell-variations{
  display:flex; flex-wrap:wrap; justify-content:center; gap:4px;
  margin:0 0 7px;
  min-height:24px;
}
.lsc-upsell-variation{
  appearance:none; -webkit-appearance:none;
  border:1px solid var(--lsc-border); background:#fff; color:var(--lsc-ink);
  border-radius:999px; padding:4px 6px; min-height:22px;
  font-family:inherit; font-size:9px; font-weight:600; line-height:1;
  cursor:pointer; transition:all .15s ease;
}
.lsc-upsell-variation:hover{ border-color:var(--lsc-purple); color:var(--lsc-purple); }
.lsc-upsell-variation.is-selected{
  background:var(--lsc-purple); color:#fff; border-color:var(--lsc-purple);
}
.lsc-upsell-variable-direct{ min-width:70px; }

/* Mientras se procesa una acción AJAX, no permitir dobles clics. */
.lsc-busy{ pointer-events:none; }

/* Our own processing state deliberately does NOT use WooCommerce's .loading
   class, because themes/WP Rocket can attach a global spinner/blocking overlay to it. */
.lsc-processing{ opacity:.72 !important; pointer-events:none !important; cursor:default !important; }
