@font-face {
  font-family: "Kalameh";
  src: url("../font/Kalameh(FaNum)-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Kalameh";
  src: url("../font/Kalameh(FaNum)-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Kalameh";
  src: url("../font/Kalameh(FaNum)-Black.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

:root {
  --bg: #0f0f10;
  --paper: #161617;
  --ink: #f6efe6;
  --muted: #b4a898;
  --line: rgba(255, 255, 255, 0.2);
  --brown: #f1d4b6;
  --brown-soft: #e7c9a9;
  --panel: #121213;
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Kalameh", sans-serif;
  background: radial-gradient(circle at top, #1a1a1d 0%, var(--bg) 72%);
  color: var(--ink);
}

body {
  overflow-x: hidden;
}

button,
input,
textarea {
  font-family: inherit;
}

.parallax-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  inset: -14%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.parallax-layer-1 {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 84% 25%, rgba(228, 196, 160, 0.12) 0, rgba(228, 196, 160, 0) 43%),
    radial-gradient(circle at 52% 72%, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0) 46%);
}

.parallax-layer-2 {
  background:
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 16% 68%, rgba(205, 170, 133, 0.12) 0, rgba(205, 170, 133, 0) 38%),
    radial-gradient(circle at 84% 84%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 41%);
}

.preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #101112;
  z-index: 100;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  color: var(--brown);
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.preloader-progress {
  width: min(260px, 72vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.preloader-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9e7858, var(--brown));
  animation: loadbar 1.1s ease forwards;
}

@keyframes loadbar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.app {
  width: min(1180px, 93vw);
  margin: 0 auto;
  padding: 26px 0 36px;
}

.hero {
  margin-bottom: 20px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-frame {
  min-height: 300px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  position: relative;
}

.hero-outline {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 80px;
  pointer-events: none;
}

.hero-outline-1 {
  inset: 12px 14px;
}

.hero-outline-2 {
  inset: 28px 28px;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-card {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #1f1f20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  max-height: 330px;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.02) saturate(0.95);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.brand-en {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 2.1px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 800;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  min-height: 128px;
  background: linear-gradient(180deg, #1a1a1c, #151517);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow-soft);
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.category-tile:active {
  transform: scale(0.98);
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.category-label {
  text-align: center;
  color: #f0dcc6;
  font-weight: 500;
  line-height: 1.5;
  font-size: 0.98rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.fullscreen-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.fullscreen-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.modal-panel {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #171718, #121213);
  overflow-y: auto;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.fullscreen-modal.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  background: rgba(24, 24, 25, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.modal-head h2 {
  margin: 0;
  color: var(--brown);
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-head-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-meta {
  margin: 0;
  color: #b7ad9f;
  font-size: 0.9rem;
}

.close-btn {
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  background: #2a2a2d;
  color: #efd5bd;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.modal-tools {
  padding: 10px 16px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-tools input {
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.96rem;
  color: #f4dfca;
  background: #202022;
  outline: none;
}

.modal-tools input:focus {
  border-color: #e1bf97;
}

.modal-body {
  width: min(1160px, 93vw);
  margin: 0 auto;
  padding: 14px 0 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.modal-sticky {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(20, 20, 21, 0.9);
  backdrop-filter: blur(6px);
}

.menu-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1d;
  opacity: 0;
  transform: translateY(12px);
  animation: itemIn 0.35s ease forwards;
  animation-delay: calc(var(--i, 0) * 28ms);
  box-shadow: 0 6px 16px rgba(46, 31, 20, 0.06);
}

.item-image {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: #262628;
}

.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 4px;
}

.item-name {
  margin: 0;
  color: #f1dfcc;
  font-size: 0.94rem;
  line-height: 1.65;
}

.item-price {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid rgba(244, 207, 167, 0.45);
  border-radius: 999px;
  background: rgba(244, 207, 167, 0.12);
  color: #ffd9ae;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.item-price:empty {
  display: none;
}

.item-desc {
  margin: 0;
  padding: 0 10px 11px;
  color: #b8ab9d;
  font-size: 0.84rem;
  line-height: 1.75;
}

.empty-state {
  text-align: center;
  color: #b7ad9f;
  padding: 10px 0 24px;
}

@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .hero-frame {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 430px;
    aspect-ratio: 16 / 10;
    max-height: 280px;
  }

  .category-grid,
  .modal-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .category-grid,
  .modal-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .category-grid,
  .modal-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    border-radius: 22px;
  }

  .hero-frame {
    min-height: 0;
    padding: 12px;
    gap: 10px;
  }

  .hero-outline-2 {
    display: none;
  }

  .hero-card {
    max-width: 100%;
    border-radius: 20px;
    aspect-ratio: 16 / 10;
    max-height: 220px;
  }

  .category-tile {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 7px 6px;
    gap: 6px;
  }

  .category-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.1rem;
  }

  .category-label {
    font-size: 0.8rem;
    line-height: 1.35;
  }
}
