/* BLANK THEORY — Brand Styles */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --fg: #f5f0eb;
  --muted: #8a8580;
  --accent: #c9b99a;
  --surface: #141414;
  --border: #1f1f1f;
  --border-hover: #2e2e2e;
  --success: #4caf81;
  --error: #e05252;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ──────────────── NAV ──────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,10,0.8);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.7; }
.logo span { font-weight: 300; color: var(--muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--fg); }

.nav-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-cart:hover { color: var(--fg); }

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}
.cart-count.hidden { display: none; }

/* ──────────────── FOOTER ──────────────── */
footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
footer p {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ──────────────── CART DRAWER ──────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
}
.cart-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}
.cart-close:hover { color: var(--fg); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.cart-item-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.cart-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  padding: 0;
  margin-top: 8px;
  display: block;
  transition: color 0.2s ease;
}
.cart-item-remove:hover { color: var(--error); }

.cart-footer {
  padding: 24px 32px 32px;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}
.cart-total-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-total-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
}

.btn-checkout {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.btn-checkout:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.btn-checkout:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.cart-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.5px;
}

/* ──────────────── TOAST ──────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border-hover);
  padding: 14px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 300;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ──────────────── MOBILE ──────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { gap: 20px; }
  .nav-link { display: none; }
  footer { padding: 32px 20px; flex-direction: column; gap: 16px; text-align: center; }
}
