/* ── DRAWER CARRITO ── */
#carrito-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

#carrito-drawer.abierto {
  pointer-events: all;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,8,16,0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}

#carrito-drawer.abierto .drawer-overlay {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  background: linear-gradient(160deg, #ffd6e8 0%, #f8a8c8 55%, #ee80a8 100%);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(26,8,16,0.2);
}

#carrito-drawer.abierto .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(26,8,16,0.08);
}

.drawer-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--texto-oscuro);
  font-weight: 700;
}

.drawer-header h3 em {
  background: linear-gradient(135deg, #c8006a, #ff60a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.drawer-cerrar {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--texto-oscuro);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-cerrar:hover {
  background: var(--rosa);
  color: #fff;
  border-color: var(--rosa);
}

.drawer-contenido {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
}

/* ── ITEMS ── */
.drawer-items {
  border-left: 2px solid rgba(26,8,16,0.1);
  margin-left: 20px;
  padding-left: 20px;
  flex: 1;
}

.drawer-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 4px;
}

.drawer-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0186a, #ff60a0);
  border: 2.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 3px rgba(224,24,106,0.15);
}

.drawer-item-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(255,255,255,0.7);
}

.drawer-item-info strong {
  display: block;
  font-size: 14px;
  color: var(--texto-oscuro);
  font-weight: 600;
  margin-bottom: 2px;
  font-family: 'Outfit', sans-serif;
}

.drawer-item-info span {
  font-size: 10px;
  color: #e0186a;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.drawer-item-der { text-align: right; }

.drawer-item-precio {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  background: linear-gradient(135deg, #1a0810, #c8006a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 4px;
}

.drawer-item-del {
  background: none;
  border: none;
  color: rgba(26,8,16,0.2);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.3s;
}

.drawer-item-del:hover { color: var(--rosa); }

/* ── RESUMEN ── */
.drawer-resumen {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(26,8,16,0.08);
}

.drawer-resumen-fila {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--texto-suave);
  margin-bottom: 10px;
}

.drawer-resumen-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(26,8,16,0.08);
}

.drawer-resumen-total span:first-child {
  font-size: 15px;
  color: var(--texto-oscuro);
  font-weight: 600;
}

.drawer-resumen-total span:last-child {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  background: linear-gradient(135deg, #1a0810, #c8006a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.drawer-btn-comprar {
  width: 100%;
  background: linear-gradient(135deg, #1a0810, #2d1020);
  color: #fff;
  padding: 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(224,24,106,0.2);
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(26,8,16,0.2);
  -webkit-text-fill-color: #fff;
}

.drawer-btn-comprar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26,8,16,0.3);
  border-color: rgba(224,24,106,0.4);
}

.drawer-btn-seguir {
  width: 100%;
  background: none;
  border: none;
  font-size: 12px;
  color: rgba(26,8,16,0.4);
  letter-spacing: 1px;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s;
}

.drawer-btn-seguir:hover { color: var(--rosa); }

/* ── FORMULARIO ── */
.drawer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.drawer-form-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--texto-oscuro);
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
}

.drawer-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
}

.drawer-input-group label {
  font-size: 10px;
  color: var(--texto-medio);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.drawer-input-group input {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--texto-oscuro);
  background: rgba(255,255,255,0.5);
  outline: none;
  transition: border-color 0.3s;
}
.drawer-input-group input:focus {
  border-color: var(--rosa);
  background: rgba(255,255,255,0.7);
}

.drawer-input-group input::placeholder {
  color: rgba(26,8,16,0.3);
}

.drawer-btn-pagar {
  width: 100%;
  background: linear-gradient(135deg, #e0186a, #ff60a0);
  color: #fff;
  padding: 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(224,24,106,0.4);
  -webkit-text-fill-color: #fff;
  margin-top: 4px;
}

.drawer-btn-pagar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(224,24,106,0.5);
}

.drawer-seguro {
  text-align: center;
  font-size: 10px;
  color: rgba(26,8,16,0.4);
  letter-spacing: 0.5px;
}

.drawer-volver {
  background: none;
  border: none;
  font-size: 11px;
  color: rgba(26,8,16,0.4);
  cursor: pointer;
  letter-spacing: 1px;
  transition: color 0.3s;
  text-align: center;
  width: 100%;
  padding: 4px;
}

.drawer-volver:hover { color: var(--rosa); }

/* ── VACÍO ── */
.drawer-vacio {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 40px 0;
}

.drawer-vacio-ico {
  font-size: 52px;
  opacity: 0.35;
  display: block;
  margin-bottom: 8px;
}

.drawer-vacio p {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--texto-oscuro);
  font-weight: 600;
}

.drawer-vacio span {
  font-size: 13px;
  color: var(--texto-suave);
  font-weight: 300;
  margin-bottom: 16px;
  display: block;
}

.drawer-form-subtitulo {
  font-size: 11px;
  color: rgba(26,8,16,0.45);
  line-height: 1.5;
  font-weight: 400;
  padding: 7px 10px;
  background: rgba(26,8,16,0.06);
  border-radius: 8px;
  border-left: 3px solid var(--rosa);
  margin-bottom: 4px;
}

.drawer-input-hint {
  display: block;
  font-size: 10px;
  color: #8a0030;
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* ── CUPÓN ── */
.drawer-cupon {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.drawer-cupon input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid rgba(26,8,16,0.12);
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--texto-oscuro);
  background: rgba(255,255,255,0.5);
  outline: none;
  transition: border-color 0.3s;
}

.drawer-cupon input:focus {
  border-color: var(--rosa);
  background: rgba(255,255,255,0.7);
}

.drawer-cupon input::placeholder { color: rgba(26,8,16,0.3); }

.drawer-cupon button {
  background: var(--texto-oscuro);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.drawer-cupon button:hover {
  background: var(--rosa);
}

.drawer-cupon-error {
  font-size: 12px;
  color: #e24b4a;
  margin-top: -10px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.drawer-cupon-aplicado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26,8,16,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--texto-oscuro);
  border: 1px solid rgba(26,8,16,0.1);
}

.drawer-cupon-aplicado strong { color: var(--rosa); }

.drawer-cupon-aplicado button {
  background: none;
  border: none;
  color: rgba(26,8,16,0.3);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
}

.drawer-cupon-aplicado button:hover { color: var(--rosa); }