/* Global Styles for Cart Page */
.product-section {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
  font-family: 'Poppins', sans-serif;
  background-color: transparent;
  /* Ensure no white background overlay */
  position: relative;
  z-index: 1;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  gap: 15px;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
  align-items: center;
}

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

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

.cart-item-name {
  margin: 0 0 8px 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.cart-item-price {
  font-weight: 500;
  color: #333;
  margin: 8px 0;
}

.cart-item-quantity {
  margin: 10px 0;
}

.cart-item-quantity label {
  margin-right: 8px;
  font-weight: 500;
}

.cart-item-quantity input[type="number"] {
  width: 60px;
  padding: 4px 6px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn {
  cursor: pointer;
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:disabled {
  background-color: #a0c8ff;
  cursor: not-allowed;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  margin-top: 10px;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  margin-left: 8px;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-wishlist {
  background-color: #ffc107;
  color: #212529;
  margin-top: 10px;
  margin-left: 10px;
}

.btn-wishlist:hover {
  background-color: #e0a800;
}

.stock-alert {
  color: #dc3545;
  font-weight: 600;
  margin: 6px 0;
}

.price-breakdown,
.coupon-section,
.checkout-options,
.trust-signals,
.checkout-progress {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.price-breakdown h3,
.coupon-section label,
.checkout-options h3,
.trust-signals h3,
.checkout-progress h3 {
  margin-bottom: 12px;
  font-weight: 600;
}

.price-breakdown p,
.coupon-section p,
.checkout-options p,
.trust-signals ul {
  margin: 6px 0;
}

.coupon-section input[type="text"] {
  padding: 6px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 180px;
}

.coupon-message {
  margin-top: 8px;
  font-weight: 600;
  color: #28a745;
}

.checkout-options label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.payment-methods label {
  display: block;
  margin: 6px 0;
  font-weight: 400;
}

.shipping-estimation input[type="text"] {
  width: 150px;
  margin-right: 8px;
}

.shipping-estimation p {
  margin-top: 8px;
  font-weight: 500;
}

.trust-signals ul {
  list-style-type: disc;
  padding-left: 20px;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.progress-step {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-bottom: 3px solid #ccc;
  font-weight: 600;
  color: #6c757d;
  position: relative;
}

.progress-step.active {
  border-color: #007bff;
  color: #007bff;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 20px;
  background-color: #ccc;
  transform: translateY(-50%);
}

.size-fit-link {
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
  margin-top: 8px;
  display: inline-block;
}


/*==============================
  MEDIA QUERIES FOR RESPONSIVE DESIGN
  (Targets exactly the ranges you requested)
==============================*/

/* 1. Mobile Devices: 320px to 480px */
@media (min-width: 320px) and (max-width: 480px) {
  .product-section {
    padding: 0 5px;
    max-width: 100%;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .cart-item-image {
    width: 100%;
    height: auto;
  }

  .price-breakdown,
  .coupon-section,
  .checkout-options,
  .trust-signals,
  .checkout-progress {
    padding: 8px 5px;
  }
}

/* 2. Tablets/iPads: 480px to 768px */
@media (min-width: 480px) and (max-width: 768px) {
  .product-section {
    padding: 0 10px;
    max-width: 95%;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }

  .cart-item-image {
    width: 90%;
    height: auto;
  }

  .price-breakdown,
  .coupon-section,
  .checkout-options,
  .trust-signals,
  .checkout-progress {
    padding: 10px 10px;
  }
}

/* 3. Laptops/Small Screens: 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .product-section {
    padding: 0 20px;
    max-width: 90%;
  }

  .cart-item {
    gap: 10px;
    padding: 14px;
  }

  .cart-item-image {
    width: 100px;
    height: 100px;
  }
}

/* 4. Desktops/Large Screens: 1024px to 1200px */
@media (min-width: 1024px) and (max-width: 1200px) {
  .product-section {
    max-width: 850px;
    padding: 0 30px;
  }

  .cart-item {
    gap: 18px;
    padding: 16px;
  }

  .cart-item-image {
    width: 110px;
    height: 110px;
  }
}

/* 5. Extra-Large Devices: 1200px and above */
@media (min-width: 1200px) {
  .product-section {
    max-width: 1000px;
    padding: 0 40px;
  }

  .cart-item {
    gap: 20px;
    padding: 18px;
  }

  .cart-item-image {
    width: 130px;
    height: 130px;
  }
}