/* Фірмовий стиль Mon Ami: «грифельний» темний фон, червоний акцент як сердечко в логотипі,
   рукописний Marck Script для заголовків і PT Sans для тексту (як на monami.kosho.com.ua). */

@font-face {
  font-family: "Marck Script";
  src: url("fonts/MarckScript-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("fonts/PT_Sans-Web-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("fonts/PT_Sans-Web-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --color-background: #1F2124;
  --color-surface: #2A2D31;
  --color-border: #3A3E44;
  --color-text: #FFFFFF;
  --color-text-muted: #A9ADB3;
  --color-accent: #D7263D;
  --color-accent-text: #FFFFFF;
  --color-gold: #E2B66B;

  --font-heading: "Marck Script", cursive;
  --font-body: "PT Sans", -apple-system, sans-serif;

  --font-size-logo: 48px;
  --font-size-category-title: 30px;
  --font-size-dish-name: 20px;
  --font-size-body: 15px;
  --font-size-small: 13px;

  --page-padding: 16px;
  --radius-card: 18px;
  --radius-button: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-bottom: 24px;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Шапка з фото бару ---------- */

.hero {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.hero-shade {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(31, 33, 36, 0.2) 0px, rgba(31, 33, 36, 0.55) 120px, #1F2124 230px);
}

.hero-content {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-logo {
  font-family: var(--font-heading);
  font-size: var(--font-size-logo);
  line-height: 52px;
  text-shadow: 0px 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: var(--font-size-small);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-table {
  margin-top: 10px;
  padding: 5px 14px;
  border: 1px solid var(--color-accent);
  border-radius: 14px;
  font-size: var(--font-size-small);
  font-weight: 700;
}

/* ---------- Категорії (липка стрічка) ---------- */

.categories {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 12px var(--page-padding);
  overflow-x: auto;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: none;
}

.category-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.category-chip-active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-text);
}

/* ---------- Меню ---------- */

.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--page-padding);
}

.category-title {
  margin: 20px 0 6px;
  font-family: var(--font-heading);
  font-size: var(--font-size-category-title);
  font-weight: 400;
  scroll-margin-top: 70px;
}

.dish {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.25);
}

.dish-photo {
  position: relative;
  height: 200px;
}

.dish-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, #4A3A33 0px, #2A2D31 160px);
  color: var(--color-gold);
  font-size: var(--font-size-small);
}

.dish-placeholder-icon {
  width: 72px;
  height: 72px;
}

.dish-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dish-in-cart {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: var(--color-text);
  color: var(--color-background);
  font-weight: 700;
  transform: scale(0);
  transition: transform 0.2s;
}

.dish-in-cart-visible { transform: scale(1); }

.dish-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.dish-name {
  font-size: var(--font-size-dish-name);
  font-weight: 700;
}

.dish-description {
  color: var(--color-text-muted);
  line-height: 20px;
}

.dish-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.dish-price-block {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dish-price {
  font-size: 20px;
  font-weight: 700;
}

.dish-weight {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

.add-button {
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 700;
  cursor: pointer;
}

.stepper {
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: var(--radius-button);
  background: var(--color-background);
  border: 1px solid var(--color-border);
}

.stepper-button {
  width: 44px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 22px;
  cursor: pointer;
}

.stepper-value {
  width: 24px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.pop { animation: pop 0.25s; }

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ---------- Побажання і підвал ---------- */

.comment {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding: 0 var(--page-padding);
}

.comment-label {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

.comment-input {
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  resize: none;
  outline: none;
}

.footer {
  margin-top: 28px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-text-muted);
}
