/* ───── Design tokens ───── */
:root {
  --bg:          #040404;
  --bg-surface:  #111111;
  --bg-card:     #1c1d1d;
  --bg-hover:    #2b2b2b;
  --border:      #2b2b2b;
  --text-primary: #ffffff;
  --text-muted:   #b6b6b6;
  --text-dim:     #717171;
  --accent:       #e8e8e1;
  --gold:         #ac8c25;
  --danger:       #ce272d;

  --font-heading: 'Fjalla One', sans-serif;
  --font-body:    'Jost', sans-serif;

  --radius-sm: 2px;
  --radius:    4px;
  --max-width: 1200px;
  --gap:       22px;
}

/* ───── Reset ───── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ───── Layout ───── */
.page-width {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 769px) {
  .page-width { padding: 0 40px; }
}

/* ───── Buttons ───── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: var(--radius-sm);
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); }

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--secondary:hover { border-color: var(--text-primary); }

.btn--dark {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--dark:hover { background: var(--bg-hover); }

/* ───── Product card ───── */
.product-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease;
}
.product-card:hover { transform: translateY(-3px); }
.product-card__img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-surface);
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.04); }
.product-card__info {
  padding: 14px 16px 18px;
}
.product-card__title {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.product-card__price {
  font-size: 13px;
  color: var(--text-muted);
}

/* ───── Grid ───── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
@media (min-width: 769px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1050px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ───── Section headings ───── */
.section-title {
  font-size: clamp(24px, 4vw, 42px);
  text-align: center;
  margin: 0 0 40px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ───── Spinner ───── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
