/* ===================================================
   RS2 CART — AMAZON DRAWER (FINAL)
   Archivo: modules/cart/cart.css
=================================================== */

/* ===============================
   OVERLAY
================================ */

.rs2-cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index: 9998;
}

.hidden{
  display:none !important;
}

/* ===============================
   DRAWER
================================ */

.rs2-cart-drawer{
  position: fixed;
  top: 0;
  right: -420px;

  width: min(420px, 92vw);
  height: 100vh;

  background: rgba(6,31,51,.92);
  border-left: 1px solid rgba(79,179,255,.18);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);

  z-index: 9999;

  display: flex;
  flex-direction: column;

  transition: right .22s ease;
}

.rs2-cart-drawer.open{
  right: 0;
}

/* ===============================
   HEADER
================================ */

.rs2-cart-head{
  padding: 18px 18px 12px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  border-bottom: 1px solid rgba(79,179,255,.14);
}

.rs2-cart-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.rs2-pill{
  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(79,179,255,.14);
  border: 1px solid rgba(79,179,255,.22);

  color: rgba(234,242,248,.92);
  font-weight: 800;
  font-size: .8rem;
}

.rs2-icon-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;

  cursor:pointer;
}

.rs2-icon-btn:hover{
  background: rgba(255,255,255,.10);
}

/* ===============================
   LISTA DE PRODUCTOS
================================ */

.rs2-cart-list{
  padding: 14px 18px;
  overflow:auto;
  flex: 1;

  display:flex;
  flex-direction:column;
  gap:12px;
}

.rs2-cart-item{
  border: 1px solid rgba(79,179,255,.14);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 12px;

  display:flex;
  gap:12px;
  align-items:center;
}

.rs2-cart-thumb{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);

  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.rs2-cart-thumb img{
  max-height: 46px;
  object-fit: contain;
}

/* ===============================
   META PRODUCTO
================================ */

.rs2-cart-meta{
  flex:1;
  min-width: 0;
}

.rs2-cart-name{
  font-weight: 900;
  font-size: .95rem;
  line-height: 1.2;
}

.rs2-cart-sub{
  opacity:.75;
  font-size: .85rem;
  margin-top:2px;
}

/* ===============================
   CANTIDAD
================================ */

.rs2-cart-qty{
  display:flex;
  align-items:center;
  gap:8px;
}

.rs2-qty-btn{
  width: 34px;
  height: 34px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: white;
  font-weight: 900;

  cursor:pointer;
}

.rs2-qty-btn:hover{
  background: rgba(255,255,255,.10);
}

.rs2-qty{
  width: 26px;
  text-align:center;
  font-weight: 900;
}

/* ===============================
   FOOTER
================================ */

.rs2-cart-foot{
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(79,179,255,.14);
  background: rgba(0,0,0,.10);
}

.rs2-cart-promo{
  margin-bottom: 12px;
}

.rs2-cart-progress-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom: 7px;
  font-size:.78rem;
}

.rs2-cart-progress-head strong{
  line-height:1.35;
}

.rs2-cart-progress{
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}

.rs2-cart-progress span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--rs2-orange), #ffd166);
}

.rs2-cart-promo small{
  display:block;
  margin-top:7px;
  color:rgba(234,242,248,.58);
  font-size:.72rem;
  line-height:1.35;
}

.rs2-cart-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.rs2-cart-savings{
  min-height: 18px;
  margin: -4px 0 10px;
  color: rgba(234,242,248,.72);
  font-size: .78rem;
}

.rs2-cart-savings span,
.rs2-cart-savings strong{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.rs2-cart-savings strong{
  margin-top:3px;
  color:#fff;
}

.rs2-shipping{
  display:grid;
  gap:8px;
  margin-bottom: 12px;
}

.rs2-shipping label{
  display:grid;
  gap:4px;
}

.rs2-shipping span{
  color:rgba(234,242,248,.68);
  font-size:.72rem;
  font-weight:800;
}

.rs2-shipping .input{
  padding:10px 11px;
  border-radius:12px;
  font-size:.85rem;
}

.rs2-cart-actions{
  display:flex;
  gap:10px;
}

.rs2-cart-actions .btn,
.rs2-cart-secondary .btn{
  flex:1;
}

.rs2-cart-secondary{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.rs2-cart-note{
  margin-top: 10px;
  font-size: .85rem;
  opacity:.7;
  line-height: 1.5;
}

/* ===============================
   BOTÓN FLOTANTE
================================ */

.rs2-cart-btn{
  position: fixed;
  bottom: 24px;
  right: 24px;

  display:flex;
  align-items:center;
  gap:10px;

  background: var(--rs2-orange);
  color:#fff;

  padding: 14px 18px;
  border-radius: 999px;

  font-weight: 900;

  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  z-index: 9997;

  cursor:pointer;
  border:0;
}

.rs2-cart-count{
  background: #000;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 900;
}
