/* ========================================================
   BOLSA LATERAL (DRAWER), BENEFICIOS & FOOTER
   ======================================================== */

/* 1. DRAWER BOLSA DE COMPRAS */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100%;
  background: #ffffff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-header button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
}

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  margin-top: 3.5rem;
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.cart-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1ede6;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.cart-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2px 0 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-remove {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px;
  transition: color 0.2s ease;
}

.btn-remove:hover {
  color: var(--accent-red);
}

.cart-footer {
  padding: 1.3rem;
  border-top: 1px solid var(--border-subtle);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-checkout {
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #ffffff;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}

.btn-checkout:hover {
  opacity: 0.92;
}

/* Telón de fondo oscuro */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* 2. BENEFICIOS / FEATURES */
.features-section {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.8rem 1.2rem;
}

.features-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.feature-item i {
  font-size: 1.3rem;
  color: var(--accent-red);
  background: rgba(225, 40, 26, 0.08);
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 0.6rem;
}

.feature-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 3. FOOTER */
.footer {
  padding: 2.2rem 1.2rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-inner p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner small {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

@media (max-width: 650px) {
  .features-container {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}