/* ============== CART PAGE ============== */
.cart-container {
  max-width: 1200px;
  margin: 30px auto;
  display: flex;
  gap: 20px;
  padding: 0 15px;
}

/* Left Section */
.cart-items {
  flex: 2.5;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.cart-items h2 {
  margin-bottom: 20px;
  font-size: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.cart-item {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}
.cart-item:last-child { border-bottom: none; }
.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
}
.cart-item-info { flex: 1; }
.cart-item-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.price {
  font-size: 15px;
  font-weight: 600;
  color: #b12704;
}
.subtotal {
  font-size: 14px;
  margin: 5px 0;
  color: #555;
}

/* Qty controls */
.qty-controls {
  margin: 8px 0;
}
.qty-controls a {
  padding: 5px 10px;
  border: 1px solid #ddd;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  margin: 0 5px;
  color: #333;
}
.qty-controls span {
  font-size: 14px;
  font-weight: bold;
}

/* Actions under item */
.item-actions {
  margin-top: 8px;
  font-size: 13px;
}
.item-actions a {
  color: #007185;
  text-decoration: none;
}
.item-actions a:hover { text-decoration: underline; }
.item-actions .remove {
  color: red;
  font-weight: 600;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 40px 0;
  font-size: 16px;
}
.empty-cart a {
  color: #007185;
  text-decoration: none;
  font-weight: bold;
}

/* Right Section */
.cart-summary {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  height: fit-content;
}
.cart-summary h2 {
  font-size: 18px;
  margin-bottom: 15px;
}
.cart-summary p {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 6px 0;
}
.cart-summary hr { margin: 15px 0; }
.grand-total {
  color: #b12704;
  font-size: 16px;
  margin-bottom: 15px;
}
.checkout-btn {
  width: 100%;
  background: #ffa41c;
  border: none;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  display: block;
  text-align: center;
  text-decoration: none;
  color: #111;
}
.checkout-btn:hover { background: #e68a00; }

/* Responsive */
@media (max-width: 900px) {
  .cart-container { flex-direction: column; }
}
/* ================= CART PAGE ================= */

.cart-container {
  display: flex;
  gap: 18px; /* reduced spacing between left & right sections */
  padding: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

/* Left side - items list */
.cart-items {
  flex: 1;
  min-width: 320px;
}

.cart-items h2 {
  margin-bottom: 16px;
  font-size: 22px;
  color: #222;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.cart-item-info {
  flex: 1;
}

.variant-select {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
  flex-wrap: wrap;
}

.variant-select label {
  font-size: 14px;
  color: #333;
}

.variant-select select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #111;
  font-size: 18px;
  background: #fafafa;
  transition: background-color 0.2s;
}

.qty-controls a:hover {
  background-color: #f2f2f2;
}

.qty-controls span {
  min-width: 22px;
  text-align: center;
  display: inline-block;
}

.item-actions {
  font-size: 14px;
}

.item-actions a {
  color: #d6a31e;
  text-decoration: none;
  transition: color 0.2s;
}

.item-actions a:hover {
  color: #b98c15;
  text-decoration: underline;
}

.empty-cart {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  text-align: center;
}

.muted {
  color: #6b7280;
}

/* Right side - order summary */
.cart-summary {
  width: 300px; /* slightly smaller box */
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #eee;
  height: fit-content;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary h2 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #111;
}

.cart-summary p {
  margin: 4px 0;
  font-size: 15px;
}

.cart-summary hr {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 10px 0;
}

.cart-summary .grand-total {
  font-size: 17px;
  color: #b83b2f;
  margin-top: 6px;
}

/* Checkout button */
.cart-summary .checkout-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: #d6a31e; /* exact header color */
  color: #fff;
  font-weight: 600;
  font-size: 15px; /* slightly smaller */
  padding: 12px 0;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(214,163,30,0.15);
  transition: all 0.2s ease;
}

.cart-summary .checkout-btn:hover {
  background-color: #b98c15;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(214,163,30,0.18);
}

/* Responsive Design */
@media (max-width: 920px) {
  .cart-container {
    flex-direction: column;
    gap: 16px;
  }

  .cart-summary {
    width: 100%;
    padding: 18px;
    border-radius: 10px;
  }

  .cart-summary .checkout-btn {
    font-size: 15px;
    padding: 12px 0;
  }

  .cart-item {
    flex-direction: column;
    align-items: center;
  }

  .cart-item img {
    width: 100%;
    height: auto;
  }

  .cart-item-info {
    text-align: center;
  }
}
