/* Общая основа витрины и админки: цвета, шрифты, кнопки, поля, бейджи. */
:root {
  color-scheme: dark;
  --bg: #0e0c0a;
  --bg-2: #14110e;
  --card: #1a1612;
  --card-2: #221d18;
  --line: rgba(255, 236, 210, .09);
  --line-2: rgba(255, 236, 210, .16);
  --text: #f5ede2;
  --muted: #a99d8d;
  --faint: #6f665b;
  --accent: #e8a74e;
  --accent-2: #f6c784;
  --accent-ink: #1b1206;
  --accent-soft: rgba(232, 167, 78, .14);
  --ok: #8fd28a;
  --ok-soft: rgba(143, 210, 138, .14);
  --err: #ff8f7e;
  --err-soft: rgba(255, 143, 126, .14);
  --info: #8fc1ff;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased }
body.is-locked { overflow: hidden }
img { display: block; max-width: 100% }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent }
button:disabled { cursor: not-allowed }
a { color: inherit }
[hidden] { display: none !important }
h1, h2, h3 { margin: 0; font-weight: 600 }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

.muted { color: var(--muted) }
.center { text-align: center }

.demo-bar { background: #2a1f10; color: #f3d5a4; font-size: 12.5px; padding: 7px 16px; text-align: center; letter-spacing: .01em }
.demo-bar--for { font-weight: 700; padding-bottom: 0; overflow-wrap: anywhere }
.demo-bar--for:not([hidden]) + .demo-bar { padding-top: 2px }
.closed-bar { position: sticky; top: 0; z-index: 30; height: 41px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #5b1f17; color: #ffd9d1; font-weight: 600; font-size: 14px; padding: 10px 16px; text-align: center }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s var(--ease), background .2s, opacity .2s }
.btn:active:not(:disabled) { transform: scale(.97) }
.btn:disabled { opacity: .45 }
.btn--accent { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(232, 167, 78, .25) }
.btn--light { background: rgba(255, 255, 255, .92); color: #1a1410 }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text) }
.btn--block { display: flex; width: 100%; height: 56px; font-size: 16px }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--muted); font-size: 26px; line-height: 1 }
.link { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 6px 0 }

.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 13px; font-weight: 600 }
.chip--glass { background: rgba(14, 12, 10, .45); border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff }
.chip--status { height: 26px; padding: 0 10px; font-size: 12px; color: var(--accent); border-color: rgba(232, 167, 78, .35); background: var(--accent-soft) }

/* Бейджи блюд */
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 5px }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px) }
.badge--hit { background: rgba(232, 167, 78, .92); color: var(--accent-ink) }
.badge--new { background: rgba(143, 193, 255, .9); color: #0b1a2c }
.badge--spicy { background: rgba(255, 110, 84, .92); color: #2a0703 }

/* Счётчик количества */
.qty { display: inline-flex; align-items: center; height: 40px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(232, 167, 78, .4); animation: pop .25s var(--ease) }
.qty button { width: 38px; height: 38px; border: 0; background: none; color: var(--accent-2); font-size: 20px; font-weight: 600 }
.qty__n { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums }
.qty__n.bump { animation: bump .35s var(--ease) }
.qty--sm { height: 34px; animation: none }
.qty--sm button { width: 32px; height: 32px; font-size: 18px }

/* Поля */
.f { display: block; margin: 12px 0; font-size: 13px; font-weight: 600; color: var(--muted) }
.f input, .f select, .f textarea, .f-select, .input {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 500 16px/1.3 var(--sans);
  transition: border-color .2s, box-shadow .2s
}
.f input:focus, .f select:focus, .f textarea:focus, .f-select:focus, .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.hint { color: var(--muted); font-size: 13.5px; margin: 6px 0 }
.hint.warn { color: var(--accent-2) }
.error { color: var(--err); font-size: 14px; min-height: 20px; margin: 6px 0 }

.bar { height: 6px; border-radius: 99px; background: var(--card-2); overflow: hidden }
.bar__fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s var(--ease) }

@keyframes pop { from { transform: scale(.8); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes bump { 0% { transform: scale(1) } 40% { transform: scale(1.45) } 100% { transform: scale(1) } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 167, 78, .55) } 70% { box-shadow: 0 0 0 14px rgba(232, 167, 78, 0) } 100% { box-shadow: 0 0 0 0 rgba(232, 167, 78, 0) } }
@keyframes rise { from { transform: translateY(12px); opacity: 0 } to { transform: none; opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important }
}
