:root {
  --bg: #0a0a0a;
  --fg: #f5f5f0;
  --muted: #9a9a92;
  --accent: #ff2d2d;
  --border: #262622;
  --card-bg: #141412;
  --font: 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(6px);
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.cart-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.15s ease;
}
.cart-toggle:hover { border-color: var(--fg); }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px 56px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: 0.05em;
}
.hero p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.product-card {
  background: var(--bg);
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
}
.product-image svg { width: 100%; height: 100%; }

.product-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.product-price {
  font-size: 13px;
  color: var(--muted);
}

.sold-out-badge {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
}

.add-to-cart {
  margin-top: 6px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.15s ease;
}
.add-to-cart:hover { opacity: 0.85; }
.add-to-cart:disabled {
  background: var(--card-bg);
  color: var(--muted);
  cursor: not-allowed;
  border: 1px solid var(--border);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 31;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h2 { font-size: 16px; letter-spacing: 0.06em; }

.cart-close {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
}

.cart-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 20px 0;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-image {
  width: 56px;
  height: 70px;
  background: var(--card-bg);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-image svg { width: 100%; height: 100%; }

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cart-item-price { font-size: 12px; color: var(--muted); }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.cart-item-qty button {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  width: 22px;
  height: 22px;
  cursor: pointer;
  border-radius: 2px;
}
.cart-item-remove {
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  margin-top: 6px;
  align-self: flex-start;
}

.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 14px;
}
.checkout-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
}
.checkout-btn:disabled {
  background: var(--card-bg);
  color: var(--muted);
  cursor: not-allowed;
}
.cart-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* Success / cancel pages */
.status-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.status-page h1 { font-size: 32px; margin-bottom: 12px; }
.status-page p { color: var(--muted); margin-bottom: 24px; }
.status-page a {
  border: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
