/* Cart Styles */
.subtotal-header h3 {
  margin: 0;
  font-weight: 600;
}
.subtotal-amount {
  font-size: 18px;
  font-weight: 600;
}
.cart-item {
  border-bottom: 1px solid #dddddd;
  display: flex;
  align-items: center;
  padding: 15px 0;
  gap: 15px;
}
.cart-item:last-child {
  border-bottom: none;
}

.cart-item .product-image {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: 6px;
  flex-shrink: 0;
}
.cart-item .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item .product-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

@media (min-width: 600px) {
  .cart-item .product-details {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

.cart-item .product-name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;

  overflow: hidden;
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 400;
}

.cart-item .product-price {
  margin: 0;
  color: #b0b0b0;
  color: #aaaaaa;
  font-size: 14px;
}
.cart-item .cart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item .btn-cart {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cart-item .quantity-display {
  min-width: 40px;
  text-align: center;
  font-size: 16px;
}

/* Slider styles */
.slider .product-card {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  margin: 0 10px;
  position: relative;
  height: 100%;
}

.slider .discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #ef4444;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.slider .product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
  max-width: 200px;
}

.slider .product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  min-height: 48px;
  color: #1a1a1a;
}

.slider .price-container {
  margin-bottom: 15px;
}

.slider .current-price {
  color: #ef4444;
  font-size: 28px;
  font-weight: bold;
}

.slider .original-price {
  color: #999;
  font-size: 16px;
  text-decoration: line-through;
  margin-left: 8px;
}

.slider .installments {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.slider .slick-arrow {
  background-color: #035d92;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.slider .slick-arrow:hover {
  background-color: #035d92;
}

.slider .slick-prev {
  left: -15px;
}

.slider .slick-next {
  right: -15px;
}

/* =========================================================
   CART MODAL — FIX RESPONSIVE (solo #cart-modal)
   ========================================================= */
@media (max-width: 767px) {

  /* El modal no debe comportarse como "modal-lg" en mobile */
  #cart-modal .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
  }

  #cart-modal .modal-content {
    height: 100vh !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Header fijo arriba */
  #cart-modal .modal-header {
    flex: 0 0 auto !important;
  }

  /* Body con scroll (aquí se soluciona el “se ve como desktop / se corta”) */
  #cart-modal .modal-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overflow-x: hidden !important;
  }

  /* Footer fijo abajo (botón siempre visible) */
  #cart-modal .modal-footer {
    flex: 0 0 auto !important;
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    z-index: 2 !important;
    margin-top: 0 !important;
  }

  /* Evitar que el carrusel genere scroll horizontal */
  #cart-modal .slick-list { overflow: hidden !important; }
  #cart-modal #slider { max-width: 100% !important; }
}
