:root {
  --primary-color: #4e54c8;
  --secondary-color: #8f94fb;
  --accent-color: #ff6b6b;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
}

/* === Hero === */
.cart-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cart-hero h1 {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* === Cart Table === */
.cart-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cart-table thead th {
  background-color: var(--light-gray);
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.cart-table tbody tr:not(:last-child) {
  border-bottom: 1px solid #eee;
}

.cart-table .product-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 5px;
}

.product-title {
  font-weight: 600;
  color: var(--dark-gray);
  transition: 0.3s;
}
.product-title:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.quantity-input {
  width: 70px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 6px;
}

.btn-remove {
  color: #dc3545;
  background: none;
  border: none;
  transition: all 0.3s ease;
}
.btn-remove:hover {
  transform: scale(1.1);
}

/* === Coupon === */
.coupon-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.coupon-input {
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.btn-coupon {
  border-radius: 0 6px 6px 0;
  background: var(--dark-gray);
  color: white;
  border: none;
}
.btn-coupon:hover {
  background: #495057;
  color: white;
}

/* === Summary === */
.order-summary {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.order-summary h3 {
  font-weight: 700;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.summary-table tr:last-child {
  font-weight: 700;
  font-size: 1.1rem;
}

/* === Buttons === */
.btn-continue {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-continue:hover {
  background: var(--primary-color);
  color: white;
}

.btn-update {
  background: var(--light-gray);
  color: var(--dark-gray);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
}
.btn-update:hover {
  background: #e9ecef;
}

.btn-checkout {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  transition: 0.3s ease;
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

/* === Recommended Products === */
.recommended-section {
  margin-top: 50px;
}
.recommended-title {
  font-weight: 700;
  position: relative;
  margin-bottom: 30px;
}
.recommended-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.recommended-product {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}
.recommended-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.recommended-img {
  height: 180px;
  object-fit: contain;
  padding: 15px;
}
.recommended-body {
  padding: 15px;
}
.recommended-price {
  font-weight: 700;
  color: var(--primary-color);
}
.recommended-old-price {
  text-decoration: line-through;
  color: #6c757d;
  font-size: 0.9rem;
}
.recommended-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 15px;
  font-size: 0.9rem;
}
.recommended-btn:hover {
  background: var(--secondary-color);
  color: white;
}

/* === Responsive === */
@media (max-width: 768px) {
  .cart-hero {
    padding: 40px 0;
  }
  .cart-hero h1 {
    font-size: 2rem;
  }
  .cart-table .product-img {
    width: 60px;
    height: 60px;
  }
}
