.cart-container {
  max-width: 1000px;
  margin: 60px auto;
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.cart-container h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  color: #222;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.cart-table-wrapper {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  background: #f8f8f8;
  font-weight: 700;
  color: #333;
}

.cart-table tr:hover {
  background-color: #fafafa;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-product-image {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.cart-product-title {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  margin: 0;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-size: 1rem;
  color: #333;
}

.checkout-btn {
  display: inline-block;
  margin-top: 10px;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  background-color: #444;
}

.continue-shop-btn {
  display: inline-block;
  margin-top: 10px;
  background-color: #7A3B4E;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.continue-shop-btn:hover {
  background-color: #444;
}


.empty-cart-msg {
  text-align: center;
  font-size: 1.1rem;
  color: #777;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qty-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background-color: #111;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background-color: #333;
}

.qty-display {
  font-weight: 600;
  font-size: 1rem;
  width: 25px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  color: #d00;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.remove-btn:hover {
  color: #a00;
}

/* Checkout Page Layout */
.checkout-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.checkout-cart,
.checkout-details {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.checkout-cart h3,
.checkout-details h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.checkout-product-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 5px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 1rem;
}

.checkout-btn {
  display: block;
  width: 100%;
  background-color: #111827;
  color: #fff;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.checkout-btn:hover {
  background-color: #374151;
}



/* =====================================
   Mobile Adjustments
   ===================================== */
@media (max-width: 768px) {
  .cart-container {
    padding: 10px;
  }

  .cart-table {
    width: 100%;
    display: block;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .cart-table thead {
    display: none; /* Hide header on mobile */
  }

  .cart-table tbody tr {
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 12px;
    padding: 12px;
  }

  .cart-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
  }

  .cart-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #444;
    flex: 1;
    text-align: left;
  }

  .cart-product-cell {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }

  .cart-product-image {
    width: 70px;
    height: 70px;
  }

  .cart-product-title {
    font-size: 0.95rem;
  }

  .quantity-controls {
    justify-content: flex-end;
  }

  .cart-summary {
    text-align: center;
    margin-top: 20px;
  }

  .checkout-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

    .continue-shop-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-cart, .checkout-details {
    padding: 1rem;
  }
  .product-cell {
    flex-direction: column;
    align-items: flex-start;
  }
  .checkout-product-image {
    width: 80px;
    height: 80px;
  }
}