/* ================= CART PAGE STYLES ================= */
.cart-header h2 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.cart-header p {
  color: #6c757d;
  margin-bottom: 0;
}

.cart-table-container {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

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

.cart-item-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.cart-item-category {
  font-size: 0.85rem;
  color: #666;
}

.cart-item-price {
  font-weight: 600;
  color: #667eea;
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 120px;
}

.quantity-control .btn {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.quantity-control .form-control {
  text-align: center;
  border: none;
  background: #f8f9fa;
  font-weight: 600;
}

.cart-item-total {
  font-weight: 700;
  color: #333;
  font-size: 1.1rem;
}

.order-summary-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.order-summary-card .card-title {
  color: #2c3e50;
  font-size: 1.1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #667eea;
  padding-top: 0.5rem;
  border-top: 2px solid #f8f9fa;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128C7E, #075E54);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  color: white;
}

.cart-actions {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ================= RESPONSIVE CART ================= */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .cart-header h2 {
    font-size: 1.5rem;
  }
  
  .cart-item-image {
    width: 70px;
    height: 70px;
  }
  
  .quantity-control {
    max-width: 100px;
  }
  
  .quantity-control .btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .order-summary-card {
    margin-top: 1rem;
  }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
  .cart-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .cart-header h2 {
    font-size: 1.4rem;
  }
  
  .cart-table-container {
    border-radius: 8px;
  }
  
  .table-responsive {
    border-radius: 8px;
  }
  
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  
  .cart-item-name {
    font-size: 0.9rem;
  }
  
  .cart-item-category {
    font-size: 0.75rem;
  }
  
  .cart-item-price {
    font-size: 0.9rem;
  }
  
  .quantity-control {
    max-width: 90px;
  }
  
  .quantity-control .btn {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }
  
  .quantity-control .form-control {
    font-size: 0.8rem;
  }
  
  .cart-item-total {
    font-size: 1rem;
  }
  
  .order-summary-card {
    margin-top: 1.5rem;
    border-radius: 10px;
  }
  
  .order-summary-card .card-title {
    font-size: 1rem;
  }
  
  .summary-row {
    font-size: 0.9rem;
  }
  
  .summary-row.total {
    font-size: 1.1rem;
  }
  
  .cart-actions {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .cart-actions .btn {
    width: 100%;
  }
}

/* Mobile Portrait (480px - 575px) */
@media (max-width: 575px) {
  .cart-header {
    margin-bottom: 1rem;
  }
  
  .cart-header h2 {
    font-size: 1.3rem;
  }
  
  .cart-header p {
    font-size: 0.9rem;
  }
  
  /* Convert table to card layout on mobile */
  .table-responsive {
    display: none;
  }
  
  .cart-items-mobile {
    display: block;
  }
  
  .cart-item-mobile {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .cart-item-mobile-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .cart-item-mobile-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
  }
  
  .cart-item-mobile-details {
    flex: 1;
  }
  
  .cart-item-mobile-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
  }
  
  .cart-item-mobile-category {
    font-size: 0.8rem;
    color: #666;
  }
  
  .cart-item-mobile-price {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
  }
  
  .cart-item-mobile-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f8f9fa;
  }
  
  .cart-item-mobile-quantity {
    display: flex;
    align-items: center;
  }
  
  .cart-item-mobile-total {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
  }
  
  .order-summary-card {
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .order-summary-card .card-body {
    padding: 15px;
  }
  
  .order-summary-card .card-title {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .summary-row {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  .summary-row.total {
    font-size: 1rem;
    margin-top: 0.8rem;
  }
  
  .btn-whatsapp {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  .cart-header h2 {
    font-size: 1.2rem;
  }
  
  .cart-header p {
    font-size: 0.85rem;
  }
  
  .cart-item-mobile {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .cart-item-mobile-image {
    width: 70px;
    height: 70px;
    margin-right: 12px;
  }
  
  .cart-item-mobile-name {
    font-size: 0.9rem;
  }
  
  .cart-item-mobile-category {
    font-size: 0.75rem;
  }
  
  .cart-item-mobile-price {
    font-size: 0.85rem;
  }
  
  .quantity-control .btn {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }
  
  .quantity-control .form-control {
    font-size: 0.75rem;
    width: 35px;
  }
  
  .cart-item-mobile-total {
    font-size: 0.9rem;
  }
  
  .order-summary-card .card-body {
    padding: 12px;
  }
  
  .order-summary-card .card-title {
    font-size: 0.9rem;
  }
  
  .summary-row {
    font-size: 0.8rem;
  }
  
  .summary-row.total {
    font-size: 0.95rem;
  }
  
  .btn-whatsapp {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
  
  .alert {
    font-size: 0.8rem;
    padding: 10px;
  }
}
