/* ───── Base Styles ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --card: #1a1a1a;
  --border: #2a2a2a;
  --accent: #c8a97e;
  --accent2: #e8c9a0;
  --text: #f0ece6;
  --muted: #888;
  --white: #fff;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ───── NAV ───── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--accent);
  text-decoration: none;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cart {
  position: relative; cursor: pointer;
  background: none; border: none; color: var(--text);
}
.cart-icon { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--accent); color: #000;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ───── Buttons ───── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: var(--accent); color: #000;
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  border: none; cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

/* ───── CART DRAWER ───── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 420px; background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 201; transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.cart-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--white);
}
.cart-close {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 22px; line-height: 1;
  transition: color 0.2s;
}
.cart-close:hover { color: var(--white); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 28px; }
.cart-empty {
  text-align: center; padding: 60px 0;
  color: var(--muted); font-size: 14px;
}
.cart-item {
  display: flex; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 72px; height: 90px; object-fit: cover;
  background: #222; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.cart-item-meta { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 14px; color: var(--accent); font-weight: 600; }
.qty-control {
  display: flex; align-items: center; gap: 10px;
}
.qty-btn {
  width: 26px; height: 26px; border: 1px solid var(--border);
  background: none; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: border-color 0.15s;
}
.qty-btn:hover { border-color: var(--accent); }
.qty-val { font-size: 13px; min-width: 18px; text-align: center; }
.cart-foot {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.cart-total-label { font-size: 13px; color: var(--muted); }
.cart-total-val { font-size: 20px; font-weight: 700; color: var(--accent); }
.btn-checkout {
  width: 100%; padding: 16px;
  background: var(--accent); color: #000;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; border: none; cursor: pointer;
  transition: background 0.2s;
}
.btn-checkout:hover { background: var(--accent2); }

/* ───── TOAST ───── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface); border: 1px solid var(--accent);
  color: var(--text); padding: 12px 24px;
  font-size: 13px; z-index: 300;
  opacity: 0; pointer-events: none;
  transition: all 0.3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ───── FOOTER ───── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; justify-content: space-between; align-items: center;
}
footer .ft-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: var(--accent); letter-spacing: 4px;
}
footer p { font-size: 12px; color: var(--muted); }

/* ───── RESPONSIVE ───── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .cart-drawer { width: 100%; }
  footer { padding: 28px 20px; flex-direction: column; gap: 12px; text-align: center; }
}

/* ───── ANIMATIONS ───── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
