/* ============ TOKENS ============ */
:root {
  --bg: #0B0D12;
  --bg-alt: #12141B;
  --ink: #EFEDE8;
  --ink-soft: #8B8D96;
  --line: #23262F;
  --accent: #B4925A;
  --accent-soft: #1C1911;
  --gold: #C9A227;
  --card-bg: #14161E;
  --overlay-bg: rgba(0, 0, 0, 0.8);
  --btn-ghost-bg: rgba(255, 255, 255, 0.05);
  --light-bg: #F7F5F1;
  --light-bg-alt: #EFEBE3;
  --light-ink: #1D1F26;
  --light-ink-soft: #6B6D76;
  --light-line: #E1DDD3;
  --light-accent: #8A6D3D;
  --light-accent-soft: #F1E9D8;
  --light-card-bg: #FFFFFF;
  --light-overlay-bg: rgba(20, 20, 24, 0.55);
  --light-btn-ghost-bg: rgba(247, 246, 242, 0.9);
  --font-fa: 'Vazirmatn', sans-serif;
  --font-display: 'Estedad', 'Vazirmatn', sans-serif;
  --font-mono: 'Vazirmatn', sans-serif;
  --font-en: 'Cormorant Garamond', serif;
  --wrap: 1200px;
  --radius: 16px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.4);
  --aurora-1: rgba(160, 122, 56, 0.22);
  --aurora-2: rgba(120, 38, 56, 0.16);
  --aurora-3: rgba(150, 112, 46, 0.13);
  --aurora-blur: 120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-fa);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 900px 500px at 50% -10%, rgba(180, 146, 90, 0.06), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* بافت ظریف نویز (مثل دون فیلم/مخمل) که سادگی تخت بک‌گراند رو می‌شکنه، بدون شلوغ کردنش */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* بلاب‌های نوری بزرگ که پشت محتوا شناورن و واضح حرکت می‌کنن — عنصرهاشون از قبل تو index.html هست */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--aurora-blur));
  will-change: transform;
}

.aurora-1 {
  width: 560px;
  height: 560px;
  top: -160px;
  left: -120px;
  background: var(--aurora-1);
  animation: auroraDrift1 34s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 480px;
  height: 480px;
  bottom: -140px;
  right: -100px;
  background: var(--aurora-2);
  animation: auroraDrift2 42s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 420px;
  height: 420px;
  top: 38%;
  left: 58%;
  background: var(--aurora-3);
  animation: auroraDrift3 50s ease-in-out infinite alternate;
}

@keyframes auroraDrift1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(140px, 100px) scale(1.15);
  }
}

@keyframes auroraDrift2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-110px, -80px) scale(1.1);
  }
}

@keyframes auroraDrift3 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-90px, 70px) scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob {
    animation: none;
  }
}

/* بی‌استفاده مونده از نسخه‌ی قبلی؛ فعلاً غیرفعاله */
.steam-wisp {
  display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============ SPLASH SCREEN ============ */
#splash {
  position: fixed;
  inset: 0;
  background-color: #0B0D12;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle 520px at 22% 20%, rgba(160, 122, 56, 0.28), transparent 65%),
    radial-gradient(circle 460px at 80% 78%, rgba(120, 38, 56, 0.22), transparent 65%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 180px 180px, auto, auto;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#splash.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* هیچ‌کدوم از این‌ها تا وقتی جاوااسکریپت کلاس show رو اضافه نکنه دیده نمی‌شن؛
   یعنی تا وقتی مطمئن نشدیم لوگو هست یا نه، هیچ متن/عکس اشتباهی فلش نمی‌زنه */
.splash-logo,
.splash-title,
.splash-tagline {
  opacity: 0;
}

.splash-logo {
  height: 170px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* کانتینر لوگو: تا حلقه‌ی طلایی دقیقاً پشت لوگو و هم‌مرکز باهاش قرار بگیره */
.splash-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* حلقه‌ی طلایی بسیار کم‌رنگ پشت لوگو که آروم می‌چرخه؛ کاملاً CSS-only و بدون
   هیچ فایل/درخواست شبکه‌ی اضافه، پس هیچ تاخیری به لودینگ اسپلش نمی‌زنه */
.splash-ring {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(201, 162, 39, 0.28);
  border-left-color: rgba(201, 162, 39, 0.14);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.splash-ring.show {
  opacity: 1;
  animation: splashRingSpin 16s linear infinite;
  transition: opacity 1.2s ease;
}

@keyframes splashRingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-ring.show {
    animation: none;
  }
}

.splash-logo.show {
  animation: splashLogoIn 0.5s ease forwards;
}

.splash-fallback {
  display: none;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.splash-fallback.show {
  display: flex;
  animation: splashLogoIn 0.5s ease forwards;
}

@keyframes splashLogoIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* اسم انگلیسی + شعار، با همون جلوه‌ی درخشش طلایی هیرو، برای حس یکدست و لوکس */
.splash-title {
  font-family: var(--font-en);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background-image: linear-gradient(90deg, var(--gold) 0%, #f3dfa0 25%, #fff6d8 50%, #f3dfa0 75%, var(--gold) 100%);
  background-size: 220% auto;
  background-position: 200% center;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
  letter-spacing: 0.35em;
  margin: 0;
}

.splash-title.show {
  animation:
    splashTitleReveal 1.1s cubic-bezier(0.16, 0.8, 0.24, 1) forwards,
    heroTitleShine 6s linear 1.1s infinite;
}

/* letter-spacing از این انیمیشن حذف شد: چون روی عرض متن اثر می‌ذاره، هر فریم باعث
   Layout Shift واقعی می‌شد (مشخص شده به‌عنوان یکی از عوامل CLS بالای صفحه) */
@keyframes splashTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(8px);
    background-position: 200% center;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    background-position: 0% center;
  }
}

.splash-tagline {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-soft);
  margin: 0;
}

.splash-tagline.show {
  animation: splashFadeIn 0.9s ease forwards;
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .splash-title.show,
  .splash-tagline.show,
  .splash-logo.show,
  .splash-fallback.show {
    animation: none;
    opacity: 1;
  }

  .splash-title.show {
    letter-spacing: 0.35em;
    background-position: 0% center;
  }
}

.splash-progress {
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
  margin-top: 6px;
}

.splash-progress span {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: 2px;
  position: absolute;
  top: 0;
  left: -35%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: splashSweep 1.5s ease-in-out infinite;
}

@keyframes splashSweep {
  0% {
    left: -35%;
  }

  100% {
    left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-progress span {
    animation: none;
    left: 0;
    width: 100%;
    background: var(--gold);
  }
}

/* ============ HEADER ============ */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(15, 13, 11, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

/* لوگوی هدر بدون انیمیشن */
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  /* فضای اولیه رزرو میشه تا وقتی لوگو از API لود میشه هدر shift نکنه */
  min-width: 40px;
  aspect-ratio: 1;
}

.logo-fallback {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.3s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 70;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ HEADER (sticky) ============ */
.site-header {
  position: sticky;
  top: 0;
  transition: transform 0.3s ease, background 0.3s ease;
  will-change: transform;
}

/* موقع اسکرول به پایین، هدر می‌ره بالا و از دید محو میشه تا فضای بیشتری برای دیدن منو باشه؛
   موقع اسکرول به بالا (یا رسیدن به بالای صفحه) دوباره برمی‌گرده. کلاس رو جاوااسکریپت کنترل می‌کنه. */
body.header-hidden .site-header {
  transform: translateY(-100%);
}

/* وقتی هدر مخفیه، نوار کتگوری باید بره بچسبه به top:0 (نه زیر هدر)، چون دیگه هدری بالاش نیست */
body.header-hidden .menu-controls {
  --header-h: 0px;
}

/* لوگوی هدر: تا وقتی اسکرول نکردیم نامرئیه، با رسیدن به پایان عکس بالای سایت پدیدار میشه
   (var(--intro-progress) از جاوااسکریپت ست میشه؛ اگه جاوااسکریپت خاموش باشه، مقدار دیفالت ۱ یعنی همیشه دیده میشه) */
.logo-img#headerLogoImg {
  opacity: var(--intro-progress, 1);
  transition: opacity 0.12s linear;
}

/* ============ HERO COVER ============ */
.hero-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, var(--accent-soft), var(--bg-alt) 70%);
}

.hero-cover-media {
  position: absolute;
  inset: 0;
}

.hero-cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* تا وقتی عکس هیرو واقعاً دانلود نشده، همون گرادیانت تزئینی پس‌زمینه‌ی .hero-cover
   یه اسکلتون ملایم و متحرکه (نه فقط یه رنگ ثابت)؛ با لود شدن، فقط عکس فید-این میشه */
.hero-cover:not(.cover-ready) {
  background-size: 200% 200%;
  animation: heroSkeletonPulse 2.2s ease-in-out infinite;
}

.hero-cover.cover-ready .hero-cover-media img {
  opacity: 1;
}

@keyframes heroSkeletonPulse {

  0%,
  100% {
    background-position: 30% 20%;
  }

  50% {
    background-position: 70% 60%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cover:not(.cover-ready) {
    animation: none;
  }
}

/* سایه‌ی نرم روی عکس تا لوگو و محتوای زیرش خواناتر بمونه */
.hero-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

/* وقتی هنوز عکسی از ربات آپلود نشده، فقط گرادینت پس‌زمینه دیده میشه */
.hero-cover.no-cover::after {
  background: none;
}

.hero-cover-logo-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 20px);
  pointer-events: none;
}

/* اسم انگلیسی کافه، بالای لوگو، با یه ورود لوکس (باز شدن حروف + محو) و بعدش یه درخشش طلایی ملایم */
.hero-cover-title {
  font-family: var(--font-en);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.05rem, 3.2vw, 2rem);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background-image: linear-gradient(90deg, var(--gold) 0%, #f3dfa0 25%, #fff6d8 50%, #f3dfa0 75%, var(--gold) 100%);
  background-size: 220% auto;
  background-position: 200% center;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
  opacity: 0;
  letter-spacing: 0.5em;
  animation:
    heroTitleReveal 1.8s cubic-bezier(0.16, 0.8, 0.24, 1) 0.6s forwards,
    heroTitleShine 7s linear 2.4s infinite;
}

/* letter-spacing از این انیمیشن حذف شد: عرض متن رو هر فریم عوض می‌کرد و باعث
   Layout Shift واقعی می‌شد (این المان درست بالای صفحه‌ست، پس اثرش رو CLS زیاده) */
@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
    background-position: 200% center;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    background-position: 0% center;
  }
}

@keyframes heroTitleShine {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cover-title {
    animation: none;
    opacity: 1;
    background-position: 0% center;
  }
}

@media (max-width: 480px) {
  .hero-cover-title {
    letter-spacing: 0.3em;
  }
}

/* لوگوی وسط عکس: با اسکرول (که var(--intro-progress) رو از ۰ به ۱ می‌بره) کوچیک و محو میشه،
   انگار داره به سمت لوگوی هدر پرواز می‌کنه */
.hero-cover-logo {
  width: clamp(132px, 27vw, 240px);
  height: clamp(132px, 27vw, 240px);
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.45));
  opacity: calc(1 - var(--intro-progress, 0));
  transform:
    scale(calc(1 - 0.35 * var(--intro-progress, 0))) translateY(calc(var(--intro-progress, 0) * -36px));
  transition: opacity 0.08s linear, transform 0.08s linear;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cover-logo {
    transform: none;
  }
}


/* ============ SECTION HEAD ============ */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.menu-section-head {
  justify-content: space-between;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 4px 12px;
}

.section-head h2,
.about-text h2,
.location-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0;
}

/* ============ MENU ============ */
.menu-section {
  padding: 24px 0 80px;
}

.menu-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  position: sticky;
  /* درست زیر هدر بچسبه؛ وقتی هدر با اسکرول مخفی میشه، --header-h صفر میشه و این خودش میاد بالا */
  --header-h: 64px;
  top: var(--header-h);
  transition: top 0.3s ease;
  z-index: 40;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  padding: 14px 0 20px;
  margin-inline: -16px;
  padding-inline: 16px;
}

/* خط جداکننده حذف شد — با طراحی جدید شفاف نوار کتگوری نیازی نیست */

/* فیکس اسکرول افقی تب‌ها */
.tabs {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 16px 12px;
  -webkit-overflow-scrolling: touch;
  margin-right: -16px;
  margin-left: -16px;
  width: calc(100% + 32px);
  /* مخفی کردن scrollbar افقی: ظاهر/پنهان شدنش height نوار رو تغییر میداد و CLS ایجاد می‌کرد */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.cat-card {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  width: 78px;
}

.cat-card-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: border-color 0.3s ease, box-shadow 0.35s ease;
}

.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card-img--all {
  color: var(--accent);
  font-size: 1.6rem;
}

.cat-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.cat-card:hover .cat-card-img {
  border-color: var(--accent);
}

.cat-card.active .cat-card-img {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 4px 16px rgba(201, 162, 39, 0.25);
}

.cat-card.active .cat-card-label {
  color: var(--gold);
}

.sort-menu-wrap {
  flex-shrink: 0;
}

.sort-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.sort-icon-btn:hover,
.sort-icon-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* پاپ‌آپ مرتب‌سازی وسط صفحه + بک‌گراند بلور */
.sort-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}

.sort-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sort-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  width: min(90vw, 340px);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 201;
}

.sort-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.sort-modal-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 16px;
}

.sort-modal-header h3 {
  grid-column: 2;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
}

.sort-modal-close {
  grid-column: 1;
}

.sort-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.sort-modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sort-modal-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sort-option {
  background: transparent;
  border: 1px solid var(--line);
  text-align: center;
  padding: 13px 16px;
  border-radius: 12px;
  font-family: var(--font-fa);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-option:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.sort-option.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* --- گرید محصولات --- */
.menu-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
  contain: layout;
}

.menu-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 20px;
}

.menu-group-title::before,
.menu-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(180, 146, 90, 0.35));
}

.menu-group-title::after {
  background: linear-gradient(to right, transparent, rgba(180, 146, 90, 0.35));
}

.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 140px;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
  transform: translateY(-4px);
}

/* رنگی کردن پس‌زمینه‌ی کارت بر اساس دسته بندی */
.product-card:has(.cat-dot[data-cat="coffee"]) {
  background: rgba(181, 136, 99, 0.06);
}

.product-card:has(.cat-dot[data-cat="breakfast"]) {
  background: rgba(232, 169, 62, 0.06);
}

.product-card:has(.cat-dot[data-cat="dessert"]) {
  background: rgba(157, 186, 143, 0.06);
}

.product-card:has(.cat-dot[data-cat="sweets"]) {
  background: rgba(212, 145, 143, 0.06);
}

/* نئونی که دقیقاً روی خط لبه‌ی کادر (دور تا دور مستطیل) حرکت می‌کنه، نه چرخش از وسط */
.card-neon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.card-neon rect {
  fill: none;
  stroke: url(#neonGradient);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 24 76;
  animation: neonTrace 3.5s linear infinite;
}

@keyframes neonTrace {
  to {
    stroke-dashoffset: -100;
  }
}

/* عکس مربعی سمت راست کارت (چیدمان افقی) */
.product-card .product-image {
  position: relative;
  width: 116px;
  min-width: 116px;
  height: 116px;
  aspect-ratio: 1 / 1;
  align-self: center;
  margin: 12px;
  background: var(--bg-alt);
  overflow: hidden;
  border-radius: var(--radius);
}

.product-card .product-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.35s ease;
}

/* اسکلتونِ واقعی: تا وقتی عکس واقعاً دانلود نشده (کلاس img-ready اضافه نشده)، این
   افکت درخشش دیده میشه؛ به‌محض لود (یا خطا) با جاوااسکریپت محو میشه و عکس/پلیس‌هولدر جاش میاد */
.product-card .product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, var(--bg-alt) 28%, rgba(255, 255, 255, 0.07) 50%, var(--bg-alt) 72%);
  background-size: 200% 100%;
  animation: imgSkeletonShimmer 1.4s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.product-card .product-image.img-ready::before {
  opacity: 0;
  pointer-events: none;
}

.product-card .product-image.img-ready img {
  opacity: 1;
}

@keyframes imgSkeletonShimmer {
  0% {
    background-position: 150% 0;
  }

  100% {
    background-position: -150% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card .product-image::before {
    animation: none;
  }
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .product-info {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-dot[data-cat="coffee"] {
  background: #B58863;
}

.cat-dot[data-cat="breakfast"] {
  background: #E8A93E;
}

.cat-dot[data-cat="dessert"] {
  background: #9DBA8F;
}

.cat-dot[data-cat="sweets"] {
  background: #D4918F;
}

.product-card .product-name {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-card .product-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: auto;
}

/* استایل ثابت برای قیمت و دکمه (برای همه دسته بندی ها یکسان) */
.product-card .product-price {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--accent);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

/* حرف "T" بولد و خوانا، هم‌راستا با وزن عدد قیمت */
.price-suffix {
  font-family: var(--font-fa);
  font-weight: 800;
  font-size: 0.8em;
  opacity: 1;
  margin-inline-start: 1px;
}

/* قیمت‌ها انگلیسی و LTR هستن؛ ایزوله می‌کنیم تا وسط متن راست‌به‌چپ به‌هم نریزن */
.price-amount {
  direction: ltr;
  unicode-bidi: isolate;
}

.add-to-cart-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  opacity: 0.85;
}

.add-to-cart-btn.added {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ============ ABOUT ============ */
.about-section {
  padding: 80px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.about-text p {
  color: var(--ink-soft);
  margin-top: 16px;
  font-size: 1rem;
  line-height: 2;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card-bg);
  padding: 20px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 8px;
}

/* ============ LOCATION ============ */
.location-section {
  padding: 80px 0;
}

.location-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.location-block {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
}

.location-block:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.location-block h2 {
  margin-top: 12px;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.location-text {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.location-hours {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.hours-list li:last-child {
  border-bottom: none;
}

.social-links {
  display: flex;
  gap: 28px;
  flex-direction: row;
  justify-content: center;
  margin-top: 8px;
}

.social-links a {
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--line);
  width: 110px;
  height: 110px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.social-links a svg {
  width: 52px;
  height: 52px;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(180, 146, 90, 0.22);
}

.social-links a:hover svg {
  transform: scale(1.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* استایل نقشه گوگل */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 200px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(20%) contrast(1.1);
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-inner a {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

/* ============ PRODUCT MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--line);
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
}

/* عکس ۳ در ۴ در مودال */
.modal-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 55vh;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.modal-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, var(--bg-alt) 28%, rgba(255, 255, 255, 0.07) 50%, var(--bg-alt) 72%);
  background-size: 200% 100%;
  animation: imgSkeletonShimmer 1.4s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-image.img-ready::before {
  opacity: 0;
  pointer-events: none;
}

.modal-image.img-ready img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .modal-image::before {
    animation: none;
  }
}

/* ============ IMAGE ZOOM OVERLAY (زوم تمام‌صفحه‌ی عکس محصول) ============ */
.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  touch-action: none;
  overscroll-behavior: contain;
}

.image-zoom-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.image-zoom-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-zoom-stage img {
  max-width: 88vw;
  max-height: 88vh;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  touch-action: none;
}

.image-zoom-close {
  position: fixed;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 3001;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-image .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.4;
}

.modal-body {
  padding: 24px;
}

.modal-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cat-color, var(--accent));
  background: var(--accent-soft);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
}

.modal-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 12px 0 8px;
}

.modal-note {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.modal-price {
  font-family: var(--font-fa);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.modal-add-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-fa);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal-add-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.modal-add-btn.added {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ============ CART DRAWER ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border-right: 1px solid var(--line);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.cart-close {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 20px;
}

.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 40px;
}

@keyframes cartItemIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  margin-bottom: 8px;
  border-radius: 16px;
  transition: background 0.25s ease;
  animation: cartItemIn 0.35s ease both;
}

.cart-item:hover {
  background: var(--bg-alt);
}

.cart-item-thumb {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-thumb {
  transform: scale(1.03);
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cart-item-line1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

.cart-item-line2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 4px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.qty-btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.08);
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-value {
  min-width: 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.remove-item {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.25s ease;
}

.remove-item:hover {
  color: #fff;
  background: #E55353;
  border-color: #E55353;
  transform: rotate(-8deg) scale(1.08);
}

.remove-item:active {
  transform: scale(0.9);
}

.cart-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 16px 20px;
  transition: box-shadow 0.3s ease;
}

.cart-total:hover {
  box-shadow: 0 0 0 4px rgba(157, 186, 143, 0.12);
}

.cart-total-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cart-total-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.cart-table-field {
  margin-bottom: 12px;
}

.cart-table-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.cart-table-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

.cart-table-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.cart-table-field input[readonly] {
  color: var(--ink-soft);
  background: var(--bg-alt);
}

.cart-checkout {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cart-checkout:hover {
  opacity: 0.9;
}

.cart-checkout:disabled {
  opacity: 0.6;
  cursor: default;
}

.cart-checkout-msg {
  margin-top: 10px;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}

.cart-checkout-msg.error {
  color: #d8544a;
}

.cart-checkout-msg.success {
  color: var(--accent);
  font-weight: 600;
}

/* ============ FLOATING CART ============ */
.floating-cart {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(26, 23, 20, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  z-index: 90;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-cart.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-cart img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.float-cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#floatCartName {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

#floatCartCount {
  font-size: 0.7rem;
  opacity: 0.7;
}

.float-cart-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
}

#floatCartTotal {
  font-size: 0.85rem;
  font-weight: 700;
}

.float-cart-price span:last-child {
  font-size: 0.6rem;
  margin-top: 2px;
  opacity: 0.9;
}

/* ============ DISCOUNT ============ */
.price-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.price-old {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 0.8em;
}

.discount-badge {
  display: inline-block;
  background: #E55353;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  margin-inline-start: 4px;
}

.modal-price .price-old {
  display: block;
  font-size: 0.6em;
  margin-bottom: 4px;
}

.modal-price .price-new {
  color: var(--gold);
}

/* ============ RESPONSIVE (تبلت و دسکتاپ) ============ */
@media (min-width: 768px) {
  .wrap {
    padding: 0 24px;
  }

  .tabs {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-card .product-info {
    padding: 16px;
    gap: 8px;
  }

  .product-card .product-name {
    font-size: 1.05rem;
  }

  .product-card .product-note {
    -webkit-line-clamp: 2;
    font-size: 0.85rem;
  }

  .about-inner {
    grid-template-columns: 1.2fr 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat {
    flex-direction: row;
    text-align: right;
    padding: 20px 24px;
  }

  .location-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-overlay {
    align-items: center;
  }

  .modal-box {
    border-radius: 24px;
    transform: scale(0.95) translateY(20px);
    border: 1px solid var(--line);
  }

  .modal-overlay.open .modal-box {
    transform: scale(1) translateY(0);
  }

  .btn {
    width: auto;
  }

  .floating-cart {
    right: auto;
    margin: 0;
    left: 24px;
    bottom: 24px;
  }

  .cart-drawer {
    width: 380px;
  }
}

@media (min-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .hero-cover {
    aspect-ratio: 21 / 9;
  }

  .menu-section {
    padding: 40px 0 120px;
  }
}