:root {
  --bg: #0e0c0a;
  --surface: #171411;
  --yellow: #f0b429;
  --yellow-soft: #ffd56a;
  --ember: #c43c28;
  --text: #f6f1ea;
  --muted: #b7aea3;
  --line: rgba(240, 180, 41, 0.28);
  --font: "Vazirmatn", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(240, 180, 41, 0.12), transparent 55%),
    radial-gradient(700px 420px at 10% 30%, rgba(196, 60, 40, 0.1), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(980px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(14, 12, 10, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.brand-lockup img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  background: #000;
}

.brand-lockup span {
  color: var(--yellow);
  font-size: 1.1rem;
}

.top-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.85rem 1.3rem;
  font-size: 1rem;
}

.btn-yellow {
  background: var(--yellow);
  color: #1a1408;
  box-shadow: 0 10px 28px rgba(240, 180, 41, 0.28);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(240, 180, 41, 0.45);
  color: var(--yellow-soft);
}

/* Compact hero — menu comes next */
.hero-compact {
  position: relative;
  min-height: 52svh;
  max-height: 460px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  isolation: isolate;
  margin-top: 64px;
}

.hero-media {
  position: absolute;
  inset: -4%;
  z-index: -2;
  will-change: transform;
  transform: scale(1.08);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenburns 16s ease-in-out infinite alternate;
  filter: saturate(1.12) contrast(1.05);
}

.heat-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 200, 120, 0.08) 48%,
    transparent 62%
  );
  background-size: 220% 100%;
  animation: shimmer 5.5s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.steam-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.steam-layer span {
  position: absolute;
  bottom: 18%;
  width: 70px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
  filter: blur(12px);
  opacity: 0;
  animation: steamRise 4.8s ease-in infinite;
}

.steam-layer span:nth-child(1) { inset-inline-start: 18%; animation-delay: 0s; }
.steam-layer span:nth-child(2) { inset-inline-start: 35%; animation-delay: 0.9s; width: 90px; }
.steam-layer span:nth-child(3) { inset-inline-start: 48%; animation-delay: 1.6s; }
.steam-layer span:nth-child(4) { inset-inline-start: 62%; animation-delay: 0.4s; width: 80px; }
.steam-layer span:nth-child(5) { inset-inline-start: 76%; animation-delay: 2.1s; }

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.15), rgba(14, 12, 10, 0.72) 70%, var(--bg));
}

.hero-inner {
  width: min(640px, calc(100% - 2rem));
  padding: 0 0 1.75rem;
  text-align: center;
  animation: riseIn 0.9s ease both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 4rem);
  line-height: 1;
  color: var(--yellow);
  text-shadow: 0 3px 0 #7a1f16, 0 12px 28px rgba(0, 0, 0, 0.5);
  animation: titleGlow 3.2s ease-in-out infinite;
}

.hero p {
  margin: 0.55rem auto 1rem;
  color: #fff4e4;
  font-size: 1.02rem;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Menu dock */
.menu-dock {
  padding-top: 0.5rem;
}

.menu-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 1rem;
}

.menu-intro h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  color: var(--yellow);
  letter-spacing: -0.02em;
}

.items {
  background: linear-gradient(180deg, rgba(26, 22, 18, 0.98), rgba(16, 13, 11, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 0.55rem;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.item:hover {
  background: rgba(240, 180, 41, 0.05);
}

.item-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-num {
  font-size: 1.28rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.menu-intro p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-search {
  flex: 1 1 220px;
  max-width: 320px;
}

.menu-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.menu-search input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
}

.menu-search input::placeholder {
  color: #8a8178;
}

/* Quick category access — unique full-visible photos */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #1c1814, #14110e);
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-card:hover {
  border-color: rgba(240, 180, 41, 0.65);
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(240, 180, 41, 0.15);
}

.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  height: auto;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(240, 180, 41, 0.12), transparent 55%),
    #0a0908;
}

.media-frame img,
.cat-card.is-live .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.85rem;
  transform: scale(1);
  animation: liveFloat 7s ease-in-out infinite alternate;
  animation-delay: var(--live-delay, 0s);
}

.cat-card:hover .media-frame img {
  filter: saturate(1.12) brightness(1.06);
  animation-duration: 3.5s;
}

.glow-pulse {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(240, 180, 41, 0.18));
  animation: glowPulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

.steam-mini {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.steam-mini i {
  position: absolute;
  bottom: 12%;
  width: 18px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
  filter: blur(6px);
  opacity: 0;
  animation: steamRise 3.6s ease-in infinite;
}

.steam-mini i:nth-child(1) { inset-inline-start: 25%; animation-delay: 0.2s; }
.steam-mini i:nth-child(2) { inset-inline-start: 48%; animation-delay: 1.1s; width: 24px; }
.steam-mini i:nth-child(3) { inset-inline-start: 68%; animation-delay: 1.9s; }

.cat-card span:last-child {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.25);
}

.cat-card strong {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 800;
}

.cat-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

.cat-nav-wrap {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(14, 12, 10, 0.94);
  backdrop-filter: blur(12px);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.cat-nav {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  scrollbar-width: none;
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.cat-chip:hover,
.cat-chip.active {
  background: var(--yellow);
  color: #1a1408;
  border-color: var(--yellow);
}

/* Menu list — bold prices */
.menu {
  padding: 1.25rem 0 3.5rem;
}

.section {
  margin-top: 1.5rem;
  scroll-margin-top: 130px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.section-thumb-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0908;
}

.section-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  animation: liveFloat 8s ease-in-out infinite alternate;
  animation-delay: var(--live-delay, 0s);
}

.section-thumb-wrap .steam-mini i {
  width: 10px;
  height: 20px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.section-count {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.badge {
  display: inline-flex;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.items {
  background: linear-gradient(180deg, rgba(23, 20, 17, 0.98), rgba(18, 15, 13, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  overflow: hidden;
}

.item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.item:last-child {
  border-bottom: 0;
}

.item:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.item-main {
  min-width: 0;
}

.item-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.item-desc {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.item-dots {
  border-bottom: 2px dotted rgba(255, 255, 255, 0.18);
  margin-bottom: 0.45rem;
  min-width: 1.5rem;
}

.item-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--yellow);
  white-space: nowrap;
}

.price-num {
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.item-price small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.search-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

.note-box {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(240, 180, 41, 0.4);
  border-radius: 14px;
  background: rgba(240, 180, 41, 0.05);
  color: #efe6d8;
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  margin-bottom: 0.5rem;
  background: #000;
}

.slogan {
  margin: 0;
  color: var(--yellow);
  font-weight: 800;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fab-call {
  position: fixed;
  inset-inline-start: 1rem;
  bottom: 1rem;
  z-index: 60;
  box-shadow: 0 10px 28px rgba(240, 180, 41, 0.35);
}

@media (max-width: 700px) {
  .fab-call {
    bottom: 1rem;
    inset-inline-end: auto;
    inset-inline-start: 1rem;
  }
}

@media (max-width: 800px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
}

@media (max-width: 520px) {
  .item {
    grid-template-columns: 1fr auto;
  }

  .item-dots {
    display: none;
  }

  .price-num {
    font-size: 1.12rem;
  }

  .top-actions .btn:nth-child(2) {
    display: none;
  }
}

@keyframes kenburns {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-2%, -1.5%);
  }
}

@keyframes liveZoom {
  from {
    transform: scale(1.06) translate(0, 0);
  }
  to {
    transform: scale(1.16) translate(-2%, 1%);
  }
}

@keyframes liveFloat {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-4px) scale(1.03);
  }
}

@keyframes steamRise {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.7);
  }
  25% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateY(-90px) scale(1.35);
  }
}

@keyframes shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes titleGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(240, 180, 41, 0.35));
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .heat-shimmer,
  .steam-layer span,
  .steam-mini i,
  .glow-pulse,
  .media-frame img,
  .section-thumb,
  .hero h1 {
    animation: none !important;
  }

  .hero-media {
    transform: none !important;
  }
}
