/* ═══════════════════════════════════════
   ШРИФТЫ — локальные, без запросов к Google
   ═══════════════════════════════════════ */

@font-face {
  font-family: 'Bebas Neue';
  src: url('/fonts/bebas-neue-v16-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* страница не ждёт шрифт — показывает текст сразу */
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('/fonts/dm-serif-display-v17-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('/fonts/dm-serif-display-v17-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-v24-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-v24-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Familjen Grotesk';
  src: url('/fonts/familjen-grotesk-v11-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Familjen Grotesk';
  src: url('/fonts/familjen-grotesk-v11-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════
   bite! — общие стили всех страниц
   ═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

[data-theme="dark"] {
  --red: #D62828; --red2: #FF2B2B; --yellow: #F5C400;
  --bg: #0A0A0A; --bg2: #111111; --bg3: #181818;
  --surface: #141414; --text: #F2EDE5; --muted: #555;
  --muted2: #2A2A2A; --line: #1E1E1E;
}
[data-theme="light"] {
  --red: #D62828; --red2: #FF2B2B; --yellow: #E5A800;
  --bg: #F2EDE5; --bg2: #EBE5DC; --bg3: #E2DACE;
  --surface: #FFFFFF; --text: #0A0A0A; --muted: #888;
  --muted2: #CCC; --line: #D5CFC6;
}

body {
  font-family: 'Familjen Grotesk', sans-serif;
  background: var(--bg); color: var(--text);
  transition: background .3s, color .3s;
  overflow-x: hidden; cursor: pointer;
}

/* CURSOR */
#cur {
  width: 10px; height: 10px; background: var(--red);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9999; transform: translate(-50%,-50%);
  transition: width .18s, height .18s;
  mix-blend-mode: difference;
}
#cur.big { width: 36px; height: 36px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: stretch; height: 52px;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.n-logo {
  display: flex; align-items: center; padding: 0 28px;
  border-right: 1px solid var(--line);
  font-family: 'Bebas Neue', cursive; font-size: 1.9rem;
  color: var(--red); letter-spacing: 3px; text-decoration: none; flex-shrink: 0;
}
.n-links { display: flex; list-style: none; flex: 1; }
.n-links li { height: 100%; }
.n-links a {
  display: flex; align-items: center; height: 100%; padding: 0 22px;
  font-family: 'Syne', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted);
  text-decoration: none; border-right: 1px solid var(--line);
  transition: color .2s, background .2s;
}
.n-links a:hover, .n-links a.active { color: var(--text); background: var(--bg2); }
.n-links a.active { border-bottom: 2px solid var(--red); }
.n-right { margin-left: auto; display: flex; align-items: center; border-left: 1px solid var(--line); }
.theme-btn {
  height: 100%; padding: 0 22px; background: none; border: none;
  border-right: 1px solid var(--line);
  font-family: 'Syne', sans-serif; font-size: .65rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted); cursor: pointer;
  transition: color .2s;
}
.theme-btn:hover { color: var(--text); }
.n-cta {
  height: 100%; padding: 0 28px; background: var(--red); border: none;
  font-family: 'Syne', sans-serif; font-size: .7rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: #fff; cursor: pointer;
  transition: background .2s; text-decoration: none;
  display: flex; align-items: center;
}
.n-cta:hover { background: var(--red2); }

/* PAGE HEADER */
.page-header {
  margin-top: 52px;
  padding: 56px 40px 44px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.page-header h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 1px; line-height: .95; color: var(--text);
}
.page-header h1 em { font-style: normal; color: var(--red); }
.page-header p {
  font-size: .9rem; color: var(--muted); line-height: 1.7;
  max-width: 400px; text-align: right;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 14px 40px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-size: .62rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--muted2); }
.breadcrumb .bc-cur { color: var(--text); }

/* BUTTONS */
.btn-red {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-size: .72rem; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  background: var(--red); color: #fff; border: 2px solid var(--red);
  padding: 12px 24px; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-red:hover { background: transparent; color: var(--red); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-size: .72rem; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  background: transparent; color: var(--text); border: 2px solid var(--line);
  padding: 12px 24px; cursor: pointer; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--text); }

/* PRODUCT CARD — used on catalog & product pages */
.pc {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; transition: background .2s; cursor: pointer;
  text-decoration: none; color: inherit;
}
.pc:hover { background: var(--bg2); }
.pc-img {
  height: 160px; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden; flex-shrink: 0;
}
.pc-img::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 6px 6px;
}
.pc-sticker {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff;
  font-family: 'Syne', sans-serif; font-size: .52rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; padding: 3px 8px;
}
.pc-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.pc-name {
  font-family: 'Syne', sans-serif; font-size: .9rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.pc-desc {
  font-size: .76rem; color: var(--muted); line-height: 1.55;
  flex: 1; margin-bottom: 0;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, margin-bottom .3s;
}
.pc:hover .pc-desc { max-height: 60px; margin-bottom: 10px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.pc-price { font-family: 'Bebas Neue', cursive; font-size: 1.45rem; letter-spacing: 1px; color: var(--text); }
.add-btn {
  width: 32px; height: 32px; border: 1.5px solid var(--line); background: none;
  color: var(--text); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.add-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* FOOTER */
footer {
  display: grid; grid-template-columns: auto 1fr 1fr;
  border-top: 1px solid var(--line);
}
.ft-brand { padding: 46px 42px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.ft-logo { font-family: 'Bebas Neue', cursive; font-size: 3.5rem; letter-spacing: 4px; color: var(--red); line-height: 1; }
.ft-brand p { font-size: .78rem; color: var(--muted); line-height: 1.7; max-width: 200px; }
.ft-col { padding: 46px 34px; border-right: 1px solid var(--line); }
.ft-col:last-child { border-right: none; }
.ft-col h5 {
  font-family: 'Syne', sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col a { font-size: .86rem; color: var(--muted); text-decoration: none; font-weight: 600; transition: color .2s; }
.ft-col a:hover { color: var(--text); }
.ft-bottom {
  grid-column: 1/-1; border-top: 1px solid var(--line);
  padding: 15px 42px; display: flex; align-items: center; justify-content: space-between;
}
.ft-bottom span {
  font-family: 'Syne', sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted);
}

/* SCROLL REVEAL */
.rv { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media(max-width:900px){
  .n-links { display: none; }
  .page-header { flex-direction: column; align-items: flex-start; padding: 40px 20px 32px; }
  .page-header p { text-align: left; }
  footer { grid-template-columns: 1fr; }
  .ft-brand, .ft-col { border-right: none; border-bottom: 1px solid var(--line); }
  .breadcrumb { padding: 12px 20px; }
}

/* ── FLASH MESSAGES ── */
.flash {
  position: fixed; top: 64px; right: 20px; z-index: 500;
  padding: 12px 20px;
  font-family: 'Syne', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  transition: opacity .4s, transform .4s;
  border: 1px solid var(--line);
}
.flash-success { background: var(--bg2); color: var(--text); border-color: var(--red); }
.flash-error   { background: var(--red); color: #fff; }
.flash.hide    { opacity: 0; transform: translateY(-10px); pointer-events: none; }

/* ── ADD BUTTON ADDED STATE ── */
.add-btn.added { background: var(--red); border-color: var(--red); color: #fff; }
