:root {
  --bg: #0f0f12;
  --surface: #1a1a22;
  --surface-2: #24242f;
  --border: #3d3d4d;
  --text: #f4f4f6;
  --muted: #9b9baa;
  --accent: #c9a227;
  --accent-dim: #8b7220;
  --danger: #c44c4c;
  --success: #3d9e6a;
  --radius: 12px;
  --font: "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Age gate & modals */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.overlay[hidden],
[hidden] {
  display: none !important;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.modal p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Layout */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0.85rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.logo span {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

main {
  max-width: none;
  margin: 0 auto;
  padding: 2rem 0.75rem 5rem;
}

.hero {
  margin-bottom: 2.5rem;
}

.hero-main-image {
  display: block;
  width: min(100%, 740px);
  max-height: 460px;
  margin: 0 auto 1.25rem;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.hero p {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #141418;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #d4af37;
  border-color: #d4af37;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: rgba(196, 76, 76, 0.12);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.4rem 0.6rem;
}

.btn-ghost:hover {
  color: var(--text);
  text-decoration: none;
}

/* Lang */
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button,
.lang-switch a.lang-link {
  padding: 0.45rem 0.75rem;
  border: none;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.lang-switch a.lang-link {
  text-decoration: none;
}

.lang-switch a.lang-link:hover {
  color: var(--text);
}

.lang-switch button.active,
.lang-switch a.lang-link.active {
  background: var(--accent);
  color: #141418;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  background: var(--surface-2);
}

.card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.card-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

/* Cart badge */
.cart-link {
  position: relative;
  color: var(--text);
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cart-link:hover {
  text-decoration: none;
  background: var(--surface-2);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #141418;
  font-size: 0.7rem;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-badge:empty {
  display: none;
}

/* Cart / checkout tables */
.page-title {
  margin: 0 0 1.5rem;
  font-size: 1.65rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cart-table th {
  background: var(--surface-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-empty {
  color: var(--muted);
  padding: 2rem;
  text-align: center;
}

.checkout-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .checkout-layout {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.form-section h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 5.5rem;
}

.summary-box h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.summary-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.1rem;
}

.notice {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(61, 158, 106, 0.15);
  border: 1px solid var(--success);
  color: #7dcca5;
}

.alert-error {
  background: rgba(196, 76, 76, 0.12);
  border: 1px solid var(--danger);
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
