:root {
  --bg: #f5f6f8;
  --ink: #0b0d10;
  --muted: #667085;
  --line: #e4e7ec;
  --panel: #ffffff;
  --chip: #f2f4f7;
  --highlight: #c4a574;
  --font: "Manrope", "Noto Sans SC", sans-serif;
  --display: "Syne", "Manrope", "Noto Sans SC", sans-serif;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: 0.75; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); margin: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 28px;
  background: #111;
}
.logo-mark img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: cover;
}
.logo strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.header-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.header-nav a:hover { color: var(--ink); opacity: 1; }

/* Catalog */
.catalog { padding: 24px 0 64px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.filter-bar input,
.filter-bar select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.filter-bar input {
  flex: 1 1 220px;
  min-width: 180px;
}
.filter-bar select {
  flex: 0 1 140px;
  min-width: 120px;
}
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #98a2b3;
}

.btn {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: #1d2939; }

/* Product card grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.1);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: linear-gradient(145deg, #eef0f4, #e4e7ec);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card__initial {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  color: #98a2b3;
  line-height: 1;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-card__tags span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.product-card__title {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  min-height: 2.7em;
}

.product-card__meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.product-card__price strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.product-card__price em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.product-card__params {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
}
.product-card__params summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  user-select: none;
}
.product-card__params summary::-webkit-details-marker { display: none; }
.product-card__params summary::after {
  content: " +";
  color: var(--highlight);
}
.product-card__params[open] summary::after { content: " –"; }

.product-card__params-stack {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.product-card__params-stack h3 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th,
.spec-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
  text-align: left;
}
.spec-table th {
  width: 44%;
  color: var(--muted);
  font-weight: 500;
  padding-right: 8px;
}

.flavor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flavor-list li {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-size: 13px;
}

.pagination {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pagination a {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}
.pagination a.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.empty {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 800px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }
  .product-card__title {
    font-size: 16px;
    min-height: 0;
  }
  .filter-bar select {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
