/* --- Global Styles --- */
    :root {
      --bg-dark: #0a0c10;
      --bg-card: #131722;
      --bg-surface: #1c2230;
      --primary: #9d4edd;
      --primary-glow: #7b2cbf;
      --accent-gold: #ffb703;
      --accent-cyan: #00f5d4;
      --text-main: #f8f9fa;
      --text-muted: #94a3b8;
      --border: rgba(255, 255, 255, 0.08);
      --font-heading: 'Cinzel', serif;
      --font-body: 'Inter', sans-serif;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0a0c10;
}

/* --- Header & Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1c2230;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.logo {
  font-size: 1.8rem;
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary));
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cart-icon-container {
  position: relative;
  font-size: 1.4rem;
  color: #ffb703;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #e74c3c;
  color: black;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
}

/* --- Layout --- */
.cart-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.page-title {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #ffb703;
  text-shadow: 1px 4px 4px rgba(241, 205, 1, 0.5);
}

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

/* Responsive grid for tablet/desktop */
@media (min-width: 768px) {
  .cart-layout {
    grid-template-columns: 2fr 1fr;
  }
}

/* --- Items List --- */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  background-color: #131722;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.item-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}

.item-details {
  flex: 1 1 200px;
  background-color: #131722;
}

.item-title {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #ffb703;
  text-shadow: 1px 4px 4px rgba(241, 205, 1, 0.5);
}

.item-seller {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 0.5rem;
}

.item-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #27ae60;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* --- Quantity Controls --- */
.quantity-control {
  display: flex;
  align-items: center;
  border: 2px solid #ffb703;
  border-radius: 20px;
  overflow: hidden;
}

.qty-btn {
  background-color: #ffb703;
  border: none;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

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

.qty-input {
  width: 45px;
  height: 28px;
  text-align: center;
  border: 5px solid #ffb703;
  color: black;
  background-color: #ffb703;
  font-size: 0.95rem;
  outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- Remove Button --- */
.remove-btn {
  background: #0a0c10;
  border: 6px solid #0a0c10;
  font-weight: bold;
  color: #ff2912;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.remove-btn:hover {
  color: white;
  font-weight: bold;
  background-color: #e74c3c;
  border: 6px solid #e74c3c;
  border-radius: 15px;
  border-color: #e74c3c;
}

/* --- Order Summary Card --- */
.order-summary {
background-color: #131722;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: fit-content;
}

.order-summary h2 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: #ffb703;
    text-shadow: 1px 4px 4px rgba(241, 205, 1, 0.5);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: #ffb703;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffb703;
  margin-top: 1rem;
}

.divider {
  border: 0;
  height: 1px;
  background-color: #eee;
  margin: 1rem 0;
}

/* --- Promo Input --- */
.promo-code {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.promo-code input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

.btn-apply {
  background-color: #2c3e50;
  color: #fff;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-apply:hover {
  background-color: #1a252f;
}

/* --- Checkout Button --- */
.checkout-btn {
  width: 100%;
  padding: 0.85rem;
  margin-top: 1.2rem;
  background-color: #27ae60;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

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