/* ============================================================================
   Cart — Drawer + Full Cart Page
   ============================================================================ */

/* Cart Drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
body.cart-open .cart-overlay { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-family: 'Playfair Display', serif; font-size: 20px; }
.cart-close { background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--text-dim); }
.cart-empty-sub { font-size: 13px; margin-top: 8px; }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cart-item-size { font-size: 12px; color: var(--text-dim); }
.cart-item-color { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-size: 14px; color: var(--gold); font-weight: 600; margin-top: 4px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 28px; height: 28px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.remove-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}
.remove-btn:hover { color: var(--danger); }
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: inherit;
  text-align: center;
  display: block;
  text-decoration: none;
}
.checkout-btn:hover { background: var(--gold-light); }

/* Cart Notification */
.cart-notification {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 5000;
  transition: bottom 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.cart-notification.show { bottom: 24px; }

/* Full Cart Page */
.cart-page { padding: 40px 0 80px; }
.cart-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 32px;
}
.cart-table { width: 100%; }
.cart-table-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-table-row img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.cart-table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 32px;
}
.cart-summary {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
  max-width: 400px;
  margin-left: auto;
}
