:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #999;
  --accent: #e0e0e0;
  --border: #2a2a2a;
  --primary: #e53935;
  --primary-hover: #c62828;
}

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

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

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.heading {
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: 0.05em;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.site-header-logo { display: flex; align-items: center; gap: 0.75rem; }
.site-header-logo img { height: 40px; width: 40px; }
.site-header-logo span { font-size: 1.4rem; }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { font-weight: 500; }
.site-nav a.active { border-bottom: 2px solid var(--primary); }
.cart-link { position: relative; }
.cart-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.1em 0.5em;
  font-size: 0.75rem;
  margin-left: 0.3rem;
  font-weight: 700;
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem 3rem;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.logo-container { position: relative; width: 280px; height: 280px; margin-bottom: 2rem; }
.logo-container img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 40px rgba(255,255,255,0.08)); }
.hero h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1; margin-bottom: 0.5rem; }
.hero .tagline { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 480px; }

/* --- Buttons ------------------------------------------------------------ */
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); background: rgba(255,255,255,0.04); color: var(--text); }

/* --- Sections ----------------------------------------------------------- */
.section { max-width: 1100px; margin: 0 auto; padding: 4rem 1rem; }
.section h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; text-align: center; }
.section > p { color: var(--text-muted); text-align: center; max-width: 600px; margin: 0 auto 2rem; }

.video-embed {
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto 2rem;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* --- Product grid ------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  display: block;
  color: var(--text);
}
.product-card:hover { background: var(--bg-card-hover); border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.product-card-image { aspect-ratio: 1; background: #222; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { padding: 1rem 1rem 0.25rem; font-size: 1.1rem; }
.product-card-desc { padding: 0 1rem; color: var(--text-muted); font-size: 0.9rem; margin: 0 0 0.75rem; }
.product-card-price { padding: 0 1rem 1rem; font-weight: 700; color: var(--primary); }

/* --- Product page ------------------------------------------------------- */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem 1rem;
}
@media (max-width: 720px) { .product-page { grid-template-columns: 1fr; gap: 2rem; } }
.product-page-image { background: var(--bg-card); border-radius: 12px; aspect-ratio: 1; overflow: hidden; }
.product-page-image img { width: 100%; height: 100%; object-fit: cover; }
.product-page-info h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.product-page-price { font-size: 1.5rem; color: var(--primary); font-weight: 700; margin-bottom: 1rem; }
.product-page-info p { color: var(--text-muted); margin-bottom: 1.5rem; }
.product-page-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; }

.product-option { border: none; margin-bottom: 1.5rem; padding: 0; }
.product-option legend { font-weight: 600; margin-bottom: 0.75rem; }
.product-option select, .product-option input[type="number"] {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

.color-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.color-swatch { position: relative; cursor: pointer; }
.color-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.color-swatch .swatch {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: all 0.2s;
}
.color-swatch input:checked + .swatch { border-color: var(--primary); transform: scale(1.1); }
.color-swatch .swatch-label { display: none; }

/* --- Cart & checkout --------------------------------------------------- */
#cart-container, #checkout-form { max-width: 700px; margin: 0 auto; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item-title { font-weight: 600; }
.cart-item-opts { color: var(--text-muted); font-size: 0.9rem; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}
.cart-item-remove:hover { color: var(--primary); }
.cart-total { padding: 1.5rem 0; font-size: 1.25rem; font-weight: 700; display: flex; justify-content: space-between; }

#checkout-form fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
#checkout-form legend { padding: 0 0.5rem; font-weight: 600; }
#checkout-form label { display: block; margin-bottom: 1rem; }
#checkout-form input, #checkout-form select {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}
#card-container { background: #fff; padding: 1rem; border-radius: 6px; min-height: 90px; }
#payment-status { color: var(--primary); margin-top: 1rem; min-height: 1.5em; }
.test-mode-banner {
  background: #332400;
  border: 1px solid #ffcc00;
  color: #ffcc00;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.test-mode-banner code { background: rgba(0,0,0,0.3); padding: 0.1em 0.3em; border-radius: 3px; }

/* --- Memorial ----------------------------------------------------------- */
.memorial {
  max-width: 400px;
  margin: 2.5rem auto 0;
  text-align: center;
  padding: 1.5rem 0;
}
.memorial-line {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}
.memorial-text {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 1rem auto;
}
.memorial-text strong {
  color: var(--text);
}
.memorial-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 auto 1rem;
  opacity: 0.7;
}

/* --- Footer ------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .site-header { padding: 0.75rem 1rem; }
  .site-header-logo span { font-size: 1.1rem; }
  .logo-container { width: 200px; height: 200px; }
  .cta-row { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
}
