:root {
  --ink: #1c1a17;
  --paper: #faf7f2;
  --gold: #b8860b;
  --gold-dark: #8a6508;
  --line: #e4ddd0;
  --muted: #6b6459;
  --danger: #a4291f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* --- Age gate --- */
.age-gate {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20, 18, 15, 0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.age-gate__box {
  background: var(--paper);
  max-width: 480px;
  padding: 32px;
  border-radius: 8px;
  text-align: center;
}
.age-gate__box h2 { margin-top: 0; }
.age-gate__warning { font-size: 0.85rem; color: var(--danger); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.age-gate__actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.age-gate--blocked { display: none; }
.age-gate--blocked[hidden] { display: none !important; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn--primary { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--small { padding: 6px 14px; font-size: 0.85rem; }

/* --- Header --- */
.site-header { background: var(--ink); color: #fff; padding: 16px 0; }
.site-header__inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { color: var(--gold); font-size: 1.4rem; font-weight: bold; text-decoration: none; letter-spacing: 0.5px; }
.search { display: flex; flex: 1; min-width: 220px; gap: 6px; }
.search input { flex: 1; padding: 8px 12px; border-radius: 20px; border: none; font-family: inherit; }
.search button { border: none; background: var(--gold-dark); color: #fff; padding: 8px 16px; border-radius: 20px; cursor: pointer; }
.lang-switch a { color: #cfc7b8; text-decoration: none; margin-left: 10px; font-size: 0.9rem; }
.lang-switch a.active { color: var(--gold); font-weight: bold; }

/* --- Content --- */
.main { padding: 32px 0 60px; }
.page-title { font-size: 1.8rem; margin-bottom: 8px; }
.intro { color: var(--muted); margin-bottom: 24px; }
.breadcrumb { color: var(--muted); font-size: 0.9rem; }
.breadcrumb a { color: var(--gold-dark); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s;
}
.cat-card:hover { border-color: var(--gold); }
.cat-card__name { font-size: 1.1rem; font-weight: bold; }
.cat-card__count { color: var(--muted); font-size: 0.85rem; }

.cat-card--photo { padding: 0; overflow: hidden; }
.cat-card--photo .cat-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.cat-card--photo .cat-card__name,
.cat-card--photo .cat-card__count { padding: 0 16px; }
.cat-card--photo .cat-card__name { margin-top: 14px; }
.cat-card--photo .cat-card__count { margin-bottom: 16px; }

.subcat-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.subcat-pill {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 6px 14px; font-size: 0.85rem; text-decoration: none; color: var(--ink);
}
.subcat-pill:hover { border-color: var(--gold); }

.price-table { width: 100%; border-collapse: collapse; background: #fff; }
.price-table th, .price-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { color: var(--muted); font-weight: normal; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.price-table .price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: bold; }
.badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }
.badge--out { background: #f1e2e0; color: var(--danger); }

.pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.page-link { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); background: #fff; }
.page-link.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* --- Product cards (full content: Alcool, Cafea, Brichete) --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 24px; }
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
}
.product-card__img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 10px; }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.product-card__name { font-size: 1rem; margin: 0; line-height: 1.3; }
.product-card__desc { font-size: 0.85rem; color: var(--muted); margin: 0; flex: 1; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.product-card__footer .price { font-weight: bold; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- Footer --- */
.site-footer { background: #efe9dd; border-top: 1px solid var(--line); padding: 24px 0; font-size: 0.85rem; color: var(--muted); }
.site-footer a { color: var(--gold-dark); }
.site-footer__warn { color: var(--danger); font-weight: bold; }

@media (max-width: 600px) {
  .site-header__inner { flex-direction: column; align-items: stretch; }
  .lang-switch { text-align: center; }
}
