/* ============================================================
   salt.and.cold — styles (mobile-first, dark minimal)
   ============================================================ */

@font-face {
  font-family: "Norwester";
  src: local("Norwester"), url("fonts/norwester.woff2") format("woff2"), url("fonts/norwester.otf") format("opentype");
  font-weight: 100 900; /* один накреслення, щоб браузер не «потовщував» його штучно */
  font-style: normal;
  font-display: swap;
}

:root {
  /* палітра бренду */
  --bg: #0e0e0e;
  --white: #ffffff;
  --red: #b5000b;
  --burgundy: #4f0811;

  /* похідні */
  --surface: #151212;
  --surface-2: #1d1819;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --accent: var(--red);
  --accent-hover: #d1121f;
  --accent-soft: rgba(181, 0, 11, 0.22);
  --accent-text: #ff5a63;      /* світліший відтінок брендового червоного для дрібного тексту (контраст на чорному) */
  --hl: #f7b71c;               /* жовте виділення слів, як у дописах Instagram */
  --ok: #7fb069;
  --warn: #d9a441;
  --off: #8a8a85;

  --radius: 14px;
  --header-h: 64px;
  --font-head: "Norwester", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-serif: var(--font-head);
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* атрибут hidden має працювати навіть для елементів із власним display */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

/* subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main, .site-footer { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav {
  display: none;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--text); }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cart-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 10px;
  transition: transform 0.25s;
}
.cart-count.bump { transform: scale(1.35); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 64px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(110, 14, 30, 0.6), transparent 60%),
    radial-gradient(700px 400px at -10% 60%, rgba(181, 0, 11, 0.16), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 9vw, 5rem);
  line-height: 1.04;
  font-weight: 600;
  max-width: 14ch;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  max-width: 52ch;
  margin: 0 0 32px;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-facts {
  list-style: none;
  margin: 48px 0 0;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; }
.hero-facts span { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; scroll-margin-top: var(--header-h); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}
.section-lead { margin: 12px 0 0; color: var(--muted); max-width: 56ch; }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  align-self: flex-start;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  position: relative;
  width: 46px; height: 26px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch input:checked + .switch-track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch-label { font-size: 0.92rem; }

.catalog-note {
  margin: 0 0 20px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(181, 0, 11, 0.5);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--line-strong); }
.card.is-out { opacity: 0.78; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s;
}
.card:hover .card-media img { transform: scale(1.06); }
.card.is-out .card-media img { filter: grayscale(0.7) brightness(0.8); }

.badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  padding: 4px 10px;
  background: rgba(14, 14, 14, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-grade { background: var(--accent); border-color: var(--accent); color: #fff; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 20px;
}
.card-cat {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.15;
}
.card-desc { margin: 0; font-size: 0.9rem; color: var(--muted); }
.card-weight { font-size: 0.85rem; color: var(--muted); }
.card-weight strong { color: var(--text); font-weight: 600; }

.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price { display: flex; flex-direction: column; gap: 2px; }
.price-main { font-size: 1.5rem; font-weight: 700; }
.price-main small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.price-est { font-size: 0.8rem; color: var(--muted); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status.in_stock { color: var(--ok); }
.status.preorder { color: var(--warn); }
.status.out_of_stock { color: var(--off); }

.add-btn {
  width: 100%;
  min-height: 48px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.add-btn:hover:not(:disabled) { background: var(--accent); color: #fff; }
.add-btn:disabled { border-color: var(--line-strong); color: var(--off); cursor: not-allowed; }
.add-btn.added { background: var(--ok); border-color: var(--ok); color: #0f0f0f; }

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

/* skeleton */
.skeleton {
  height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.about-card {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about-num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
}
.about-card h3 { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.15; margin-bottom: 10px; }
.about-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Delivery ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 20px;
  align-items: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-day {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  background: var(--accent-soft);
  border: 1px solid rgba(181, 0, 11, 0.6);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.step h3 { font-family: var(--font-serif); font-size: 1.45rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.info-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card h3 { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 8px; }
.info-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer-inner { display: flex; flex-direction: column; gap: 28px; }
.footer-muted { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-links a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.footer-links a:hover { border-color: var(--accent); }
.footer-copy { margin: 36px auto 0; font-size: 0.8rem; color: var(--off); }

/* ---------- Drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}
.overlay.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 100;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.35s;
}
.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-family: var(--font-serif); font-size: 1.7rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.cart-empty { margin: 0 0 24px; color: var(--muted); }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.cart-item-meta { font-size: 0.78rem; color: var(--muted); }
.cart-item-sum { font-weight: 700; font-size: 0.95rem; text-align: right; white-space: nowrap; }
.cart-item-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.qty button {
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }

.remove-btn {
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.remove-btn:hover { color: var(--text); }

.cart-total {
  margin: 20px 0 8px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cart-total-row strong { font-size: 1.35rem; }
.cart-note { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Form ---------- */
.order-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field.has-error input { border-color: #e5604d; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

.form-error { margin: 0; font-size: 0.88rem; color: #e5604d; }
.form-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.form-actions .btn { width: 100%; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 200;
  padding: 12px 22px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .chips { margin: 0; padding: 0 0 6px; flex-wrap: wrap; overflow: visible; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .form-actions { flex-direction: row; flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 100%; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .nav { display: flex; }
  .hero { padding: calc(var(--header-h) + 110px) 0 96px; }
  .section { padding: 104px 0; }
  .filters { flex-direction: row; align-items: center; justify-content: space-between; }
  .switch { align-self: auto; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   BRAND THEME — salt.and.cold Meat Atelier
   Заголовки: Norwester (латиниця) + Oswald (кирилиця), великі літери.
   Текст та інтерфейс: Manrope. Виділення слів: --hl.
   ============================================================ */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hl { color: var(--hl); }

.eyebrow {
  color: var(--accent-text);
  font-weight: 800;
  letter-spacing: 0.24em;
}

/* --- логотип: виделка між словами, «MEAT  ATELIER» з розривом під неї --- */
.logo span { color: inherit; }
.logo {
  display: inline-grid;
  grid-template-columns: auto 13px auto;
  grid-template-rows: auto auto;
  column-gap: 7px;
  align-items: center;
  line-height: 1;
  position: relative;
}
.logo-salt, .logo-cold {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.logo-salt { grid-column: 1; grid-row: 1; justify-self: end; }
.logo-cold { grid-column: 3; grid-row: 1; justify-self: start; }
.logo-fork { grid-column: 2; grid-row: 1 / 3; align-self: center; height: 100%; position: relative; }
.logo-fork svg { position: absolute; left: 50%; top: 50%; width: 13px; height: 56px; transform: translate(-50%, -50%); overflow: visible; }
.logo-meat, .logo-atelier {
  grid-row: 2;
  margin-top: 5px;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  position: relative;
}
.logo-meat { grid-column: 1; justify-self: end; }
.logo-atelier { grid-column: 3; justify-self: start; }
/* лінії з боків, як у логотипі */
.logo-meat::before, .logo-atelier::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}
.logo-meat::before { right: calc(100% + 7px); }
.logo-atelier::after { left: calc(100% + 1px); }

/* --- навігація, кнопки, фільтри --- */
.nav { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }

.btn {
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.btn-primary { background: var(--red); }

.chip { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.add-btn { font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* --- hero: фактура з обкладинки брендбуку під темним накладенням --- */
.hero {
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.74) 0%, rgba(14, 14, 14, 0.9) 78%, var(--bg) 100%),
    radial-gradient(900px 560px at 90% -10%, rgba(79, 8, 17, 0.85), transparent 65%),
    url("img/hero-meat.jpg") center 30% / cover no-repeat,
    var(--bg);
}
.hero h1 {
  font-size: clamp(2.9rem, 12.5vw, 6rem);
  line-height: 0.98;
  max-width: 13ch;
  letter-spacing: 0.015em;
}
.hero-sub { font-weight: 500; }
.hero-facts { grid-template-columns: repeat(3, auto); justify-content: space-between; column-gap: 10px; }
.hero-facts strong { font-size: 1.4rem; letter-spacing: 0.03em; white-space: nowrap; line-height: 1.2; }
.hero-facts span { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; font-weight: 700; }

/* --- секції --- */
.section-head h2 { font-size: clamp(2.3rem, 9vw, 3.8rem); line-height: 1; }
.section-lead { font-weight: 500; }

/* --- картки товарів --- */
.card h3 { font-size: 1.55rem; line-height: 1.08; letter-spacing: 0.03em; }
.card-cat { font-weight: 700; color: var(--accent-text); }
.price-main { font-weight: 800; }
.badge { font-weight: 800; }
.badge-grade { background: var(--red); border-color: var(--red); }

/* --- цитата-принцип (бордовий блок, як у дописах) --- */
.quote {
  padding: 80px 0;
  background: var(--burgundy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.quote-lead { margin: 0 0 16px; font-weight: 500; color: rgba(255, 255, 255, 0.78); }
.quote h2 { font-size: clamp(2.4rem, 10vw, 5rem); line-height: 1; max-width: 18ch; }
.quote-foot { margin: 28px 0 0; max-width: 42ch; color: rgba(255, 255, 255, 0.88); }
.quote-foot strong { font-weight: 800; color: #fff; }

/* --- «про ательє» --- */
.about-card {
  background: linear-gradient(160deg, rgba(79, 8, 17, 0.6), rgba(14, 14, 14, 0.7));
  border-color: rgba(255, 255, 255, 0.12);
}
.about-num { color: var(--hl); font-size: 1.3rem; }
.about-card h3 { font-size: 1.7rem; letter-spacing: 0.03em; }
.about-card p { color: rgba(255, 255, 255, 0.74); }

/* --- доставка --- */
.step-day { color: var(--hl); background: rgba(79, 8, 17, 0.65); border-color: rgba(255, 255, 255, 0.18); }
.step h3, .info-card h3 { font-size: 1.6rem; letter-spacing: 0.03em; }
.info-card { background: var(--surface); }

/* --- кошик --- */
.drawer-head h2 { font-size: 1.75rem; }
.field label { font-weight: 700; }
.cart-item-name { font-weight: 700; }
.cart-total { background: rgba(79, 8, 17, 0.35); border-color: rgba(255, 255, 255, 0.14); }

/* --- футер --- */
.site-footer { background: #0a0a0a; }
.footer-muted { font-weight: 600; }

@media (min-width: 900px) {
  .hero h1 { max-width: 15ch; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .logo-salt, .logo-cold { font-size: 1.8rem; }
  .logo-meat, .logo-atelier { font-size: 0.7rem; }
  .logo-fork svg { height: 62px; width: 14px; }
}


/* ============================================================
   Розділи каталогу, телефон, підсумок кошика, контакти
   ============================================================ */
.cat-block + .cat-block { margin-top: 56px; }
.cat-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  line-height: 1;
}
.cat-title span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-text);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
}
.phone-link:hover { border-color: var(--red); background: var(--accent-soft); }
.phone-text { display: none; }

.step-day { font-size: 1.2rem; letter-spacing: 0.02em; }
.info-card strong { color: #fff; font-weight: 800; white-space: nowrap; }

.contact-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  padding: 28px 24px;
  background: linear-gradient(160deg, rgba(79, 8, 17, 0.75), rgba(14, 14, 14, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}
.contact-lead { margin: 0; font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1; }
.contact-sub { margin: 4px 0 0; color: var(--muted); }
.contact-phone {
  font-family: var(--font-head);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--hl);
}
.contact-phone:hover { color: #fff; }

.cart-sum-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 0.9rem; color: var(--muted); }
.cart-sum-row span:last-child { color: #fff; font-weight: 700; text-align: right; }
.cart-total-row { padding-top: 10px; border-top: 1px solid var(--line); }
.cart-hint { margin: 12px 0 0; font-size: 0.85rem; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.cart-hint:empty { display: none; }
.cart-hint.warn { color: var(--accent-text); font-weight: 700; }

@media (min-width: 900px) {
  .phone-link { width: auto; padding: 0 18px; gap: 10px; border-radius: 999px; }
  .phone-text { display: inline; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; white-space: nowrap; }
  .contact-strip { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px; }
}


/* ============================================================
   Розділи як вкладки (без «Всі») і поле контакту
   ============================================================ */
.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.chip {
  min-height: 56px;
  padding: 6px 8px;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  font-size: 0.7rem;
}
.chip.is-active { box-shadow: 0 0 0 1px var(--red); }

.seg {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.seg-btn {
  min-height: 36px;
  padding: 0 18px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg-btn.is-active { background: var(--red); color: #fff; }

.prefixed {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.prefixed:focus-within { border-color: var(--red); }
.field.has-error .prefixed { border-color: #e5604d; }
.prefix {
  display: flex;
  align-items: center;
  padding-left: 14px;
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
}
.prefixed input,
.prefixed input:focus {
  border: 0;
  background: transparent;
  border-radius: 0 10px 10px 0;
  padding-left: 6px;
}

@media (min-width: 640px) {
  .chip { min-height: 52px; font-size: 0.8rem; padding: 6px 18px; }
}

/* ============================================================
   Телефон: компактні картки у 2 колонки, щоб каталог не був довгим
   ============================================================ */
@media (max-width: 639px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-media { aspect-ratio: 1 / 1; }
  .badges { top: 8px; left: 8px; gap: 4px; }
  .badge { padding: 3px 8px; font-size: 0.6rem; }
  .badge:not(.badge-grade) { display: none; }   /* тип витримки вже в назві та в розділі */
  .card-body { padding: 12px; gap: 6px; }
  .card-cat { display: none; }                  /* розділ уже обрано у вкладці */
  .card h3 { font-size: 1.1rem; line-height: 1.1; }
  .card-desc { font-size: 0.8rem; }
  .card-weight { font-size: 0.74rem; line-height: 1.35; }
  .card-foot { padding-top: 10px; gap: 8px; }
  .price-main { font-size: 1.25rem; }
  .price-main small { font-size: 0.68rem; display: block; }
  .price-est { font-size: 0.72rem; line-height: 1.3; }
  .status { font-size: 0.72rem; }
  .add-btn { min-height: 42px; padding: 0 6px; font-size: 0.66rem; letter-spacing: 0.06em; line-height: 1.15; }
  .skeleton { height: 280px; }
}

/* LOGO (image) */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; height: 66px; margin: -4px 0; width: auto; }
.site-footer .logo img { height: 96px; }
@media (max-width: 639px) { .logo img { height: 54px; } .site-footer .logo img { height: 80px; } }
