/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg:         #0e0e12;
  --bg2:        #14141a;
  --card-bg:    #1a1a22;
  --card-border:#252530;
  --red:        #e63946;
  --red-dk:     #c1121f;
  --blue:       #3a86ff;
  --grey:       #888;
  --text:       #f0f0f0;
  --text-muted: #666;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --glow-red:   0 0 24px rgba(230,57,70,0.25);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ─── Header ────────────────────────────────────────────── */
header {
  background: #0a0a0e;
  border-bottom: 1px solid #1e1e2a;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--red);
  color: white;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.logo h1 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.logo-accent { color: var(--red); }
.tagline {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Cart Button */
.cart-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 9px 18px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}
.cart-btn:hover { border-color: var(--red); color: var(--red); }
.cart-badge {
  background: var(--red);
  color: white;
  border-radius: 50px;
  padding: 1px 7px;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

/* ─── Pickup Banner ─────────────────────────────────────── */
.pickup-banner {
  background: #1a1208;
  border-bottom: 1px solid #3a2a10;
  color: #f0b429;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}
.pickup-icon { margin-right: 6px; }

.pickup-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 72px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(230,57,70,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(58,134,255,0.12) 0%, transparent 70%),
    #0a0a0e;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 1; }
.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.hero h2 {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 20px;
}
.hero-accent { color: var(--red); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--grey);
  letter-spacing: 0.03em;
}

/* ─── Container ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--grey);
  white-space: nowrap;
}
.title-line {
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

/* ─── Products Grid ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: var(--red);
  box-shadow: var(--glow-red);
  transform: translateY(-4px);
}

/* Emoji placeholder */
.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  height: 220px;
}
.product-image.color-1 { background: #1a1215; }
.product-image.color-2 { background: #111a14; }
.product-image.color-3 { background: #111520; }
.product-image.color-4 { background: #1a1120; }
.product-image.color-5 { background: #0f1820; }
.product-image.color-6 { background: #1a1510; }

/* Real photo gallery */
.product-gallery { display: flex; flex-direction: column; }
.product-main-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.product-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #111116;
  overflow-x: auto;
}
.thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.5;
  transition: border-color 0.15s, opacity 0.15s;
}
.thumb:hover { opacity: 0.85; }
.thumb.active { border-color: var(--red); opacity: 1; }

.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--text);
}
.product-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.83rem;
  color: var(--grey);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.55;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-price {
  font-family: 'Orbitron', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
}
.add-to-cart {
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-transform: uppercase;
}
.add-to-cart:hover:not(:disabled) { background: var(--red-dk); transform: scale(1.04); }
.add-to-cart.added { background: #1e1e2a; color: var(--grey); border: 1px solid var(--card-border); cursor: default; }
.add-to-cart:disabled { cursor: default; }

/* ─── Cart Sidebar ──────────────────────────────────────── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
}
.cart-overlay.active { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--card-border);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  background: #0a0a0e;
  border-bottom: 1px solid var(--card-border);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h2 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--text);
}
.close-cart {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--grey);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.close-cart:hover { border-color: var(--red); color: var(--red); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-cart p { font-weight: 600; font-size: 1rem; letter-spacing: 0.05em; }
.empty-sub { font-size: 0.82rem !important; font-weight: 400 !important; color: var(--text-muted); }

/* Cart Item */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}
.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }
.cart-item-price { font-size: 0.88rem; color: var(--red); margin-top: 3px; font-weight: 600; }
.remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 6px;
  transition: color 0.15s;
  border-radius: 4px;
}
.remove-btn:hover { color: var(--red); }

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
  background: #0a0a0e;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.cart-total span {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--grey);
  font-weight: 600;
}
.cart-total strong {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  color: var(--text);
}
.checkout-btn {
  width: 100%;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.checkout-btn:hover { background: var(--red-dk); }
.checkout-btn:disabled { background: #333; color: #555; cursor: not-allowed; transform: none; }

/* ─── Success Page ──────────────────────────────────────── */
.success-page {
  text-align: center;
  padding: 100px 24px;
}
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-page h2 {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.success-page p { font-size: 1.05rem; color: var(--grey); margin-bottom: 6px; }
.back-btn {
  display: inline-block;
  margin-top: 32px;
  background: var(--red);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.back-btn:hover { background: var(--red-dk); }

/* ─── Footer ────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 28px 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--card-border);
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero h2 { font-size: 2.2rem; }
  .cart-sidebar { max-width: 100%; }
}
