/* css/InputCss.css (نسخه نهایی و تمیز) */

/* START: Font Definition */

@font-face {
  font-family: 'dana';

  src: url('../../fonts/DanaFaNum-Medium.ttf') format('truetype');
}

/* END: Font Definition */

/* START: Base Transitions & Defaults */

/*body {*/

/*    transition: opacity ease-in 0.2s;*/

/*    scroll-behavior: smooth;*/

/*    font-family: 'dana', sans-serif;*/

/*    margin: 0;*/

/*    background-color: var(--background-color-main);*/

/*    color: var(--text-color-main);*/

/*}*/

/* --- استایل‌های پایه برای تگ Body --- */

/*body {
    min-height: 100vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'dana', sans-serif;
    margin: 0;
    color: var(--text-color-main);
    transition: background 0.5s ease;
}

body {
    background-color: var(--surface-color);
    background-image: radial-gradient(
            circle at 10% 10%,
            rgba(212, 167, 44, 0.12),
            var(--surface-color) 40%
    );
}

body.dark-mode {
    background-color: var(--background-color-main);
    background-image: radial-gradient(
            circle at 10% 10%,
            rgba(219, 39, 119, 0.15),
            var(--background-color-main) 35%
    );
}*/

body {
  min-height: 100vh;
  font-family: 'dana', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color-main);
  overflow-x: hidden;
  position: relative;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  /* Ultra-premium multi-layer gradient for light mode */
  background:
        /* Main diagonal gradient */
            linear-gradient(135deg,
            rgba(255, 247, 238, 0.95) 0%,
            rgba(212, 167, 44, 0.12) 15%,
            rgba(157, 23, 77, 0.08) 35%,
            rgba(194, 65, 12, 0.06) 55%,
            rgba(212, 167, 44, 0.10) 75%,
            rgba(255, 255, 255, 0.98) 100%
            ),
                /* Large radial gradients for depth */
            radial-gradient(
                    ellipse 800px 600px at 10% 20%,
                    rgba(212, 167, 44, 0.18) 0%,
                    transparent 60%
            ),
            radial-gradient(
                    ellipse 600px 800px at 90% 80%,
                    rgba(157, 23, 77, 0.15) 0%,
                    transparent 60%
            ),
            radial-gradient(
                    ellipse 700px 500px at 50% 10%,
                    rgba(194, 65, 12, 0.12) 0%,
                    transparent 50%
            ),
            radial-gradient(
                    ellipse 500px 700px at 20% 90%,
                    rgba(190, 24, 93, 0.10) 0%,
                    transparent 50%
            ),
                /* Subtle texture overlay */
            radial-gradient(
                    circle at 60% 60%,
                    rgba(212, 167, 44, 0.08) 0%,
                    transparent 40%
            ),
                /* Base color */
            var(--background-color-main);
}

body.dark-mode {
  /* نسخه ساده‌تر، کم‌رنگ‌تر و خلوت‌تر */
  background:
        /* هاله نور اول (زرد طلایی) با شفافیت کاهش‌یافته */
            radial-gradient(
                    ellipse 800px 700px at 15% 20%,
                    rgba(234, 179, 8, 0.12) 0%,  /* شفافیت از 0.22 به 0.12 کاهش یافت */
                    transparent 55%
            ),
                /* هاله نور دوم (شرابی/صورتی) با شفافیت کاهش‌یافته */
            radial-gradient(
                    ellipse 700px 800px at 90% 85%,
                    rgba(219, 39, 119, 0.10) 0%, /* شفافیت از 0.18 به 0.10 کاهش یافت */
                    transparent 55%
            ),
                /* رنگ پایه اصلی برای پس‌زمینه */
            var(--background-color-main);
}

/* Animated floating elements */

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

body::before {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 167, 44, 0.15) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  animation-delay: -10s;
}

body::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(157, 23, 77, 0.12) 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
  animation-delay: -5s;
}

body.dark-mode::before {
  background: radial-gradient(circle, rgba(234, 179, 8, 0.18) 0%, transparent 70%);
}

body.dark-mode::after {
  background: radial-gradient(circle, rgba(219, 39, 119, 0.15) 0%, transparent 70%);
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(30px, -30px) rotate(90deg);
  }

  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }

  75% {
    transform: translate(20px, 30px) rotate(270deg);
  }
}

body[unresolved] {
  opacity: 0;
  display: block;
  overflow: hidden;
  position: relative;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'dana', sans-serif;
}

/* END: Base Transitions & Defaults */

/*!* START: Premium Light Mode Variables *!*/

:root {
  --primary-color: #9d1736;
  --primary-color-dark: #831843;
  --primary-light: #be185d;
  --primary-dark: #6b0f35;
  /* Secondary Colors - Warm gold that complements burgundy */
  --secondary-color: #d4a72c;
  --secondary-color-dark: #b7922a;
  /* Accent - Terracotta that bridges primary and secondary */
  --accent: #c2410c;
  /* Text Colors - Refined for optimal readability */
  --text-color-main: #1e293b;
  --text-color-light: #64748b;
  /* Background Colors - Subtle warmth for sophistication */
  --background-color-main: #ffffff;
  --surface-color: rgba(255, 247, 238, 1);
  --border-color-light: #e2e8f0;
  /* Shadow Colors - Professional with proper opacity */
  --shadow-color-soft: rgba(15, 23, 42, 0.03);
  --shadow-color-medium: rgba(15, 23, 42, 0.05);
  --shadow-color-strong: rgba(15, 23, 42, 0.08);
  /* UI Element Colors - Consistent with the premium palette */
  --modal-backdrop-color: rgba(15, 23, 42, 0.6);
  --header-bg-color: rgba(255, 248, 240, 0.85);
  /* Interactive Element Colors */
  --category-nav-button-active-bg: rgba(157, 23, 77, 0.08);
  --category-nav-button-hover-bg: rgba(15, 23, 42, 0.03);
  /* Form Elements */
  --login-input-focus-shadow: rgba(212, 167, 44, 0.2);
  /* Loader */
  --loader-border-top-color: var(--secondary-color);
  --loader-border-color: rgba(157, 23, 77, 0.1);
  /* Buttons and Controls */
  --close-button-modal-bg: rgba(255, 255, 255, 0.9);
  --captcha-placeholder-bg: #f1f5f9;
  /* Toggle Elements */
  --toggle-button-bg-light: #f1f5f9;
  --toggle-button-hover-bg-light: #e2e8f0;
}

/*!* END: Premium Light Mode Variables *!*/

/*!* START: Premium Dark Mode Overrides *!*/

body.dark-mode {
  /* Primary Colors - Elegant and visible in dark mode */
  --primary-color: #db2777;
  --primary-color-dark: #be185d;
  --primary-light: #ec4899;
  --primary-dark: #9d174d;
  /* Secondary Colors - Warm gold for dark backgrounds */
  --secondary-color: #eab308;
  --secondary-color-dark: #ca8a04;
  /* Accent - Warm orange for dark mode */
  --accent: #ea580c;
  /* Text Colors - Optimal contrast on dark backgrounds */
  --text-color-main: #f1f5f9;
  --text-color-light: #94a3b8;
  /* Background Colors - Rich dark blues with subtle warmth */
  --background-color-main: #0f172a;
  --surface-color: rgba(41, 41, 45, 1);
  --border-color-light: #334155;
  /* Shadow Colors - Subtle light shadows for dark mode */
  --shadow-color-soft: rgba(255, 255, 255, 0.02);
  --shadow-color-medium: rgba(255, 255, 255, 0.03);
  --shadow-color-strong: rgba(255, 255, 255, 0.05);
  /* UI Element Colors */
  --modal-backdrop-color: rgba(0, 0, 0, 0.7);
  --header-bg-color: rgba(26, 26, 46, 0.85);
  /* Interactive Element Colors */
  --category-nav-button-active-bg: rgba(219, 39, 119, 0.15);
  --category-nav-button-hover-bg: rgba(255, 255, 255, 0.03);
  /* Form Elements */
  --login-input-focus-shadow: rgba(234, 179, 8, 0.2);
  /* Loader */
  --loader-border-top-color: var(--secondary-color);
  --loader-border-color: rgba(219, 39, 119, 0.15);
  /* Buttons and Controls */
  --close-button-modal-bg: rgba(30, 41, 59, 0.8);
  --captcha-placeholder-bg: #1e293b;
  --toggle-button-bg-dark: #202637;
  --toggle-button-hover-bg-dark: #334155;
}

/*!* END: Premium Dark Mode Overrides *!*/

/* START: Headings */

.heading {
  font-family: 'dana', sans-serif;
  font-weight: 800;
  color: var(--primary-color);
}

.sub-heading {
  font-family: 'dana', sans-serif;
  font-weight: 700;
  color: var(--text-color-main);
}

/* END: Headings */

/* START: Page Section Transitions */

.page-section {
  display: none;
  animation: fadeInPage 0.6s ease-in-out;
  width: 100%;
}

.page-section.active {
  display: block;
}

#landing-page.active {
  /* Also uses @keyframes fadeIn from the loading animation CSS */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#landing-page-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

#landing-page-content img {
  animation: fadeInLogo 1s ease-out 0.5s backwards;
}

/*@keyframes fadeInLogo {*/

/*    from {*/

/*        opacity: 0;*/

/*        transform: translateY(20px);*/

/*    }*/

/*    to {*/

/*        opacity: 1;*/

/*        transform: translateY(0);*/

/*    }*/

/*}*/

#login-page.active {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.landing-buttons-container.hidden {
  display: none;
}

.landing-buttons-container button {
  font-weight: 600;
  box-shadow: 0 4px 15px var(--shadow-color-medium);
  transform: translateY(0);
  transition: all 0.3s ease-out;
}

.landing-buttons-container button:hover {
  box-shadow: 0 6px 20px var(--shadow-color-strong);
  transform: translateY(-3px);
}

/*@keyframes fadeInPage {*/

/*    from {*/

/*        opacity: 0;*/

/*    }*/

/*    to {*/

/*        opacity: 1;*/

/*    }*/

/*}*/

/* END: Page Section Transitions */

/* START: Sticky Headers & Navigation */

.combined-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  /* افکت شیشه مات یکپارچه */
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px var(--shadow-color-soft);
  /* یک سایه واحد برای کل بخش */
}

.sticky-header {
  position: sticky;
  top: 0;
  /*z-index: 1000;*/
  /*background-color: var(--header-bg-color);*/
  /*backdrop-filter: blur(10px);*/
  /*-webkit-backdrop-filter: blur(10px);*/
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.category-nav-sticky {
  position: sticky;
  top: 70px;
  /*z-index: 999;*/
  /*background-color: var(--surface-color);*/
  box-shadow: 0 4px 6px -1px var(--shadow-color-soft), 0 2px 4px -2px var(--shadow-color-soft);
  /*backdrop-filter: blur(8px);*/
  /*-webkit-backdrop-filter: blur(8px);*/
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  transition: box-shadow 0.3s ease;
}

.category-nav-sticky.shadow-active {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
}

.category-scroll-container {
  position: relative;
}

/* START: Advanced Category Navigation Styles */

/* Wrapper برای افکت محوشدگی */

.category-scroll-wrapper {
  position: relative;
}

/* گرادینت محوشدگی در سمت راست */

/*.category-scroll-wrapper::after {*/

/*    content: '';*/

/*    position: absolute;*/

/*    top: 0;*/

/*    right: 0;*/

/*    width: 50px;*/

/*    height: 100%;*/

/*    background: linear-gradient(to right, transparent, var(--background-color-main));*/

/*    pointer-events: none; !* اجازه می‌دهد کلیک از روی آن عبور کند *!*/

/*    z-index: 2;*/

/*}*/

/* گرادینت محوشدگی در سمت چپ */

/*.category-scroll-wrapper::before {*/

/*    content: '';*/

/*    position: absolute;*/

/*    top: 0;*/

/*    left: 0;*/

/*    width: 35px;*/

/*    height: 100%;*/

/*    background: linear-gradient(to left, transparent, var(--background-color-main));*/

/*    pointer-events: none;*/

/*    z-index: 2;*/

/*}*/

/* استایل دکمه‌های اسکرول */

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  /* بالاتر از گرادینت‌ها برای قابل کلیک بودن */
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  display: none;
  /* مهم: در حالت پیش‌فرض (موبایل) مخفی است */
}

.scroll-arrow:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
}

body.dark-mode .scroll-arrow {
  background-color: rgba(40, 50, 70, 0.9);
}

body.dark-mode .scroll-arrow:hover {
  background-color: var(--surface-color);
}

/* مدیا کوئری برای نمایش دکمه‌ها فقط در دسکتاپ */

@media (min-width: 768px) {
  .scroll-arrow {
    display: flex;
  }

  #category-nav .container {
    padding-left: 50px;
    padding-right: 50px;
  }
}

/* END: Advanced Category Navigation Styles */

/* END: Sticky Headers & Navigation */

/* START: Info Page Styles */

/* =============================================== */

/* ====== Styles for the new About Us page ====== */

/* =============================================== */

#info-page .info-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow-color-soft);
  border: 1px solid var(--border-color-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#info-page .info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-color-medium);
}

#info-page .sub-heading {
  color: var(--text-color-main);
  border-bottom: 2px solid var(--border-color-light);
  padding-bottom: 0.75rem;
}

#info-page .info-card .sub-heading i {
  color: var(--primary-color);
}

#info-page .info-card ul, #info-page .info-card p, #info-page .info-card a {
  color: var(--text-color-light);
  transition: color 0.3s ease;
}

#info-page .info-card a:hover {
  color: var(--primary-color);
}

.social-icon {
  font-size: 1.75rem;
  /* 28px */
  color: var(--text-color-light);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: var(--primary-color);
  transform: scale(1.1) rotate(-5deg);
}

#info-page .back-to-home-button {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color-light);
  box-shadow: 0 2px 5px var(--shadow-color-soft);
}

/* New styles for the map container trick */

.map-iframe-wrapper {
  position: relative;
  overflow: hidden;
  /* This hides the overflowing parts of the iframe */
  height: 300px;
  /* The visible height of the map */
  border-radius: 0.5rem;
}

.map-iframe-wrapper iframe {
  position: absolute;
  top: -50px;
  /* Pushes the top Google bar out of view */
  left: 0;
  width: 100%;
  height: calc(100% + 50px);
  /* Adjust height to compensate for the top push */
}

/* END: Info Page Styles */

/* START: Category Header Styling */

/*@keyframes fadeInCategory {*/

/*    from {*/

/*        opacity: 0;*/

/*        transform: translateY(30px) scale(0.95);*/

/*    }*/

/*    to {*/

/*        opacity: 1;*/

/*        transform: translateY(0) scale(1);*/

/*    }*/

/*}*/

.category-container.category-animation {
  animation: fadeInCategory 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.category-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

.category-header::before,
.category-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to var(--direction, right),
    transparent,
    var(--secondary-color) 40%,
    var(--secondary-color) 60%,
    transparent);
  opacity: 0.6;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-header::before {
  --direction: left;
  margin-left: 1.5rem;
}

html[dir="rtl"] .category-header::before {
  --direction: right;
  margin-right: 1.5rem;
  margin-left: 0;
}

.category-header::after {
  --direction: right;
  margin-right: 1.5rem;
}

html[dir="rtl"] .category-header::after {
  --direction: left;
  margin-left: 1.5rem;
  margin-right: 0;
}

.category-header:hover::before,
.category-header:hover::after {
  opacity: 1;
  background: linear-gradient(to var(--direction, right),
    transparent,
    var(--primary-color) 40%,
    var(--primary-color) 60%,
    transparent);
  height: 3px;
  transform: scaleX(1.05);
}

.category-title-wrapper {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 1.5rem 1.5rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-header:hover .category-title-wrapper {
  transform: scale(1.03) translateY(-2px);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 0.625rem;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.125rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html[dir="rtl"] .category-icon {
  margin-left: 0.8rem;
  margin-right: 0.625rem;
}

.category-header:hover .category-icon {
  background-color: var(--primary-color);
  box-shadow: 0 5px 12px var(--primary-color-dark);
  transform: rotate(15deg) scale(1.1);
}

.category-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color-main);
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.dark-mode .category-title {
  color: var(--text-color-main);
}

.category-header:hover .category-title {
  color: var(--primary-color);
}

/* END: Category Header Styling */

/* START: Dish Card Styles */

.dish-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-color);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px -2px rgba(61, 44, 33, 0.06),
    0 2px 8px -1px rgba(61, 44, 33, 0.04);
  transition: all 0.35s ease-out;
  cursor: pointer;
  height: 100%;
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(25px) scale(0.98);
}

body.dark-mode .dish-card {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-color-medium);
}

.dish-card.animated {
  animation: cardAppear 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/*@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}*/

.dish-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 25px var(--shadow-color-medium);
}

.dish-card-image {
  position: relative;
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease-out;
  overflow: hidden;
}

.dish-card-image::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease-out;
  z-index: 1;
}

.dish-card:hover .dish-card-image::before {
  opacity: 1;
}

.dish-card:hover .dish-card-image {
  transform: scale(1.08);
}

/* START: Dish Card Badge Styles */

.dish-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  /* Pill shape */
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  z-index: 3;
  /* To be on top of the gradient overlay */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: badge-pop-in 0.5s 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

/*@keyframes badge-pop-in {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}*/

.badge-special {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  /* Gold/Yellow */
}

.badge-popular {
  background: linear-gradient(135deg, #f87171, #dc2626);
  /* Red */
}

.badge-spicy {
  background: linear-gradient(135deg, #f97316, #ef4444);
  /* Fiery orange/red */
}

.badge-spicy .fa-fire-alt {
  color: #fff;
}

/* END: Dish Card Badge Styles */

html[dir="rtl"] .dish-card-badge {
  right: auto;
  left: 0.75rem;
}

.dish-card:hover .dish-card-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dish-card-content {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  flex-grow: 1;
  justify-content: space-between;
}

.dish-card .dish-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color-main);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease-out;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-mode .dish-card .dish-name {
  color: var(--text-color-main);
}

.dish-card:hover .dish-name {
  color: var(--primary-color);
}

.dish-card .dish-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color-dark);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease-out;
}

body.dark-mode .dish-card .dish-price {
  color: var(--primary-color-dark);
}

.dish-card:hover .dish-price {
  color: var(--secondary-color-dark);
}

.dish-description {
  font-size: 0.875rem;
  color: var(--text-color-light);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(0.875rem * 1.6 * 2);
  flex-grow: 1;
}

body.dark-mode .dish-description {
  color: var(--text-color-light);
}

/* START: Skeleton Loader Styles */

.skeleton-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color-light);
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 1.25rem;
  gap: 1rem;
  /* فاصله بین المان‌های اسکلت */
}

.skeleton-image {
  width: 100%;
  height: 180px;
  /* ارتفاع مشابه تصویر اصلی */
  background-color: var(--border-color-light);
  border-radius: 0.5rem;
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-line {
  width: 100%;
  height: 1rem;
  /* ارتفاع برای خطوط متن */
  background-color: var(--border-color-light);
  border-radius: 0.25rem;
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-line.short {
  width: 60%;
  /* برای خطوط کوتاه‌تر مثل قیمت */
}

.skeleton-line.button {
  height: 48px;
  /* ارتفاع مشابه دکمه اصلی */
  margin-top: auto;
  /* دکمه را به پایین کارت می‌چسباند */
  border-radius: 30px;
  /* مشابه دکمه اصلی */
}

/*@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}*/

/* END: Skeleton Loader Styles */

.add-to-cart-btn-card {
  /* این کلاس در InputCss.css شما از قبل وجود دارد، باید آن را ویرایش/تکمیل کنید */
  flex: 1;
  /* اگر میخواهید تمام عرض فوتر کارت را بگیرد، در ttt.html نبود */
  display: flex;
  align-items: center;
  justify-content: center;
  /* پس زمینه اصلی دکمه از پالت فعلی شما */
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  /* مشابه ttt.html، با متغیرهای شما */
  color: white;
  border: none;
  border-radius: 30px;
  /* از ttt.html */
  padding: 0.85rem 1.5rem;
  /* از ttt.html */
  font-family: 'dana', sans-serif;
  /* فونت شما */
  font-size: 1rem;
  /* از ttt.html */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* از ttt.html */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* یک سایه ملایم‌تر برای شروع، یا از var(--shadow-color-medium) استفاده کنید */
  /* box-shadow: 0 5px 15px var(--shadow-color-medium); /* استفاده از متغیر سایه شما */
  position: relative;
  /* برای ::before و ::after */
  overflow: hidden;
  /* برای ::after */
  z-index: 1;
  /* برای ::before و ::after */
}

.add-to-cart-btn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  /* گرادینت معکوس یا تیره‌تر */
  transition: opacity 0.5s ease;
  opacity: 0;
  z-index: -1;
}

.add-to-cart-btn-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.dish-card:hover .add-to-cart-btn-card {
  /* یا فقط .add-to-cart-btn-card:hover */
  transform: translateY(-5px);
  /* سایه قوی‌تر در هاور، با استفاده از رنگ اصلی شما */
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
  /* مثال با --primary-color: #dc2626 */
  /* یا با استفاده از متغیر اگر دارید: box-shadow: 0 10px 25px var(--primary-shadow-strong) */
}

.dish-card:hover .add-to-cart-btn-card::before {
  /* یا فقط .add-to-cart-btn-card:hover::before */
  opacity: 1;
}

.add-to-cart-btn-card:hover::after {
  opacity: 1;
  transform: scale(1);
  transition: transform 0.5s ease-out, opacity 0.3s ease-out;
}

.add-to-cart-btn-card:active {
  transform: translateY(0) !important;
  /* بازگشت به حالت عادی */
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2) !important;
  /* سایه کمتر در حالت فشرده */
  /* یا با استفاده از متغیر: box-shadow: 0 5px 15px var(--primary-shadow-medium) !important; */
}

.add-to-cart-btn-card i {
  margin-left: 0.75rem;
  /* فاصله آیکون از متن */
  font-size: 1.1rem;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* انیمیشن آیکون از ttt.html */
}

html[dir="rtl"] .add-to-cart-btn-card i {
  margin-right: 0.75rem;
}

.dish-card:hover .add-to-cart-btn-card i {
  /* یا فقط .add-to-cart-btn-card:hover i */
  transform: scale(1.2) rotate(10deg);
}

.add-to-cart-btn-card.added-to-cart {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  /* پس زمینه سبز */
  /* اگر افکت ::before و ::after در حالت اضافه شده هم لازم است، باید برای این حالت هم تعریف شوند یا غیرفعال شوند */
}

.add-to-cart-btn-card.added-to-cart::before,
.add-to-cart-btn-card.added-to-cart::after {
  opacity: 0 !important;
  /* مخفی کردن افکت‌های هاور در حالت "اضافه شده" */
}

.item-added-to-cart-feedback {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.modal-add-button {
  background-color: var(--primary-color);
  color: white;
}

.modal-add-button:hover {
  background-color: var(--primary-color-dark);
}

/* استایل حالت موفقیت (سبز شدن) */

.modal-add-button.item-added-to-cart-feedback {
  background-color: #22c55e;
  /* Green-500 */
  border-color: #16a34a;
  /* Green-600 */
  transform: scale(1.02);
}

/* END: Dish Card Styles */

/* START: Horizontal Scroll & Category Buttons */

.horizontal-scroll-custom {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) var(--border-color-light);
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.horizontal-scroll-custom::-webkit-scrollbar {
  height: 6px;
  /* display: none; */
  /* Allowing custom scrollbar to show */
}

.horizontal-scroll-custom::-webkit-scrollbar-track {
  background: var(--border-color-light);
  border-radius: 10px;
}

.horizontal-scroll-custom::-webkit-scrollbar-thumb {
  background-color: var(--secondary-color);
  border-radius: 10px;
}

.horizontal-scroll-custom::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color-dark);
}

.category-nav-button {
  background: linear-gradient(to bottom, #ffffff, #f3f4f6);
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--text-color, #1f2937);
  display: flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  white-space: nowrap;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.category-nav-button:hover:not(.active) {
  background: linear-gradient(to bottom, #ffffff, #e5e7eb);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-nav-button.active {
  background: linear-gradient(135deg, var(--primary-color, #f59e0b), var(--primary-dark, #d97706));
  color: white;
  border-color: var(--primary-dark, #d97706);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.5),
    inset 0 0 0 1px var(--primary-dark, #d97706);
}

/*.category-nav-button.active::after {*/

/*    content: '';*/

/*    position: absolute;*/

/*    bottom: -7px;*/

/*    left: 50%;*/

/*    transform: translateX(-50%);*/

/*    width: 2px;*/

/*    height: 2px;*/

/*    background-color: var(--primary-color, #f59e0b);*/

/*    border-radius: 50%;*/

/*    animation: pulseIndicatorActive 1.5s infinite ease-in-out;*/

/*}*/

.category-nav-button i {
  transition: transform 0.2s ease;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.category-nav-button.active i {
  /* color: white; Already handled by .active text color */
}

.category-nav-button:hover:not(.active) i {
  transform: scale(1.1);
}

.category-nav-button:active:not(.active) {
  transform: translateY(1px);
}

/*
@keyframes pulseIndicatorActive {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(245, 158, 11, 0);
        transform: translateX(-50%) scale(0.8);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
        transform: translateX(-50%) scale(1);
    }
}
*/

.scroll-button {
  transition: all 0.2s ease;
  /* Tailwind classes handle most styling here */
}

.scroll-button:hover {
  background-color: #f9fafb;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* END: Horizontal Scroll & Category Buttons */

/*!* START: Modal Styles *!*/

.modal {
  position: fixed;
  inset: 0;
  background-color: var(--modal-backdrop-color);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1.25rem;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.modal.active {
  display: flex;
  animation: fadeInModalBg 0.3s ease-out;
}

/*@keyframes fadeInModalBg {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}*/

.modal-container {
  background-color: var(--surface-color);
  border-radius: 1.25rem;
  width: 92%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease-out;
  box-shadow: 0 24px 48px var(--shadow-color-strong);
}

.modal.active .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-image {
  width: 100%;
  height: 360px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 1.25rem 1.25rem 0 0;
}

.modal-content-padding {
  padding: 1.5rem 1.25rem;
}

#modal-dish-name {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary-color-dark);
}

#modal-dish-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

#modal-dish-category-label {
  font-size: 0.875rem;
  color: var(--text-color-light);
  margin-bottom: 1rem;
}

#modal-dish-category {
  font-weight: 600;
  color: var(--text-color-main);
}

#modal-dish-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
}

#modal-add-to-cart-btn {
  background-color: var(--primary-color);
  color: white;
  font-size: 1.125rem;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  width: 100%;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-color-medium);
}

#modal-add-to-cart-btn:hover {
  background-color: var(--primary-color-dark);
}

#close-modal-btn {
  color: var(--text-color-main);
  background-color: var(--close-button-modal-bg);
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  border-radius: 50%;
  transition: all 0.3s;
}

#close-modal-btn:hover {
  color: var(--primary-color);
}

#modal-dish-rating .star-filled {
  color: var(--secondary-color);
}

#modal-dish-rating .star-empty {
  color: var(--border-color-light);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3b82f6;
  /* آبی tailwind-500 */
  background-color: rgba(59, 130, 246, 0.08);
  /* آبی روشن */
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.05);
  direction: rtl;
  width: -moz-fit-content;
  width: fit-content;
}

.category-icon {
  font-size: 1.25rem;
  margin-right: 2px;
}

/*!* END: Modal Styles *!*/

/* START: Cart Icon & Sidebar */

#cart-icon {
  position: fixed;
  bottom: 2.5rem;
  left: 2.5rem;
  background-color: var(--primary-color);
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: none;
  /* Controlled by JS */
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(217, 45, 32, 0.4);
  cursor: pointer;
  z-index: 1500;
  transition: transform 0.2s ease-out;
}

body.dark-mode #cart-icon {
  box-shadow: 0 6px 18px rgba(229, 115, 115, 0.4);
}

#cart-icon:hover {
  transform: scale(1.1);
}

#cart-icon.visible {
  display: flex;
  animation: popIn 0.3s ease-out;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: var(--background-color-main);
  border: 1px solid var(--border-color-light);
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  animation: fadeInItem 0.4s ease-out;
}

.cart-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.1);
}

/*@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

.cart-item-image {
  width: 64px;
  height: 64px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.cart-item-details {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  color: var(--text-color-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  background-color: var(--border-color-light);
  border-radius: 999px;
  overflow: hidden;
}

.quantity-btn {
  border: none;
  background-color: transparent;
  color: var(--text-color-main);
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.quantity-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.quantity-text {
  font-weight: 600;
  padding: 0 0.5rem;
  font-size: 1rem;
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--text-color-light);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem;
  transition: color 0.2s;
}

.remove-item-btn:hover {
  color: #ef4444;
  /* red-500 */
}

/*@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}*/

#cart-sidebar {
  position: fixed;
  top: 0;
  left: -420px;
  /* LTR default */
  width: 400px;
  height: 100%;
  background-color: var(--surface-color);
  box-shadow: 0 4px 20px var(--shadow-color-strong);
  z-index: 1900;
  transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] #cart-sidebar {
  right: -410px;
  left: auto;
  box-shadow: -4px 0 20px var(--shadow-color-strong);
  transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#cart-sidebar.active {
  left: 0;
  /* LTR active */
}

html[dir="rtl"] #cart-sidebar.active {
  right: 0;
  left: auto;
  /* RTL active */
}

#cart-sidebar .cart-header .heading {
  color: var(--primary-color-dark);
}

#close-cart-btn {
  color: var(--text-color-light);
  transition: all 0.2s ease-in-out;
}

#close-cart-btn:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

#cart-sidebar #empty-cart-message {
  color: var(--text-color-light);
}

#cart-sidebar .cart-item-name {
  color: var(--text-color-main);
}

#cart-sidebar .cart-item-price {
  color: var(--primary-color-dark);
}

/* START: Micro-interaction for Price Update */

/*@keyframes price-update {
    0% {
        transform: scale(1);
        color: var(--primary-color-dark);
    }
    50% {
        transform: scale(1.15);
        color: var(--secondary-color-dark); !* رنگ برای جلب توجه *!
    }
    100% {
        transform: scale(1);
        color: var(--primary-color-dark);
    }
}*/

.price-flash {
  /* اعمال انیمیشن روی المان */
  animation: price-update 0.6s ease-out;
}

/* END: Micro-interaction for Price Update */

/* --- 2. Empty Cart State --- */

#empty-cart-message {
  display: block !important;
  /* Override the initial 'hidden' to let parent control visibility */
}

.empty-cart-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
  opacity: 0;
  animation: empty-state-pop-in 0.5s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.empty-cart-icon {
  font-size: 5rem;
  color: var(--border-color-light);
  margin-bottom: 1.5rem;
}

/* START: No Results Empty State Styles */

.no-results-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: empty-state-pop-in 0.5s 0.1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.no-results-icon {
  font-size: 5rem;
  color: var(--border-color-light);
  margin-bottom: 1.5rem;
}

/*@keyframes empty-state-pop-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

/* END: No Results Empty State Styles */

.back-to-menu-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-to-menu-btn:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1800;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

#cart-sidebar {
  z-index: 9999;
}

#cart-sidebar .cart-footer .total-label {
  color: var(--text-color-main);
  font-weight: bold;
}

#cart-sidebar #cart-total-price {
  color: var(--primary-color-dark);
  font-weight: bold;
}

#cart-sidebar #checkout-btn {
  background-color: var(--primary-color);
  color: white;
}

#cart-sidebar #checkout-btn:hover {
  background-color: var(--primary-color-dark);
}

/* START: New Cart Footer Styles */

/* استایل بخش نمایش شماره تماس */

.cart-phone-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background-color: var(--background-color-main);
  border: 1px dashed var(--border-color-light);
  border-radius: 0.5rem;
  color: var(--text-color-light);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* استایل دکمه جدید تماس */

.call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background-color: #25D366;
  /* رنگ سبز واتس‌اپ/تماس */
  box-shadow: 0 4px 15px -3px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease-out;
  text-decoration: none;
  /* حذف خط زیر لینک */
}

.call-button:hover {
  background-color: #1DA851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -3px rgba(37, 211, 102, 0.5);
}

/* استایل برای زمانی که سبد خرید خالی است و دکمه غیرفعال است */

.call-button.disabled {
  background-color: var(--text-color-light);
  color: var(--background-color-main);
  pointer-events: none;
  /* غیرقابل کلیک کردن */
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

/* END: New Cart Footer Styles */

/* END: Cart Icon & Sidebar */

/* START: Back Buttons */

.back-to-home-button, .back-button {
  font-weight: 600;
  box-shadow: 0 2px 8px var(--shadow-color-soft);
  border: 1px solid var(--border-color-light);
  background-color: var(--surface-color);
  color: var(--text-color-main);
}

.back-to-home-button:hover, .back-button:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px var(--shadow-color-medium);
}

body.dark-mode .back-to-home-button:hover, body.dark-mode .back-button:hover {
  box-shadow: 0 4px 12px rgba(229, 115, 115, 0.3);
}

/* END: Back Buttons */

/* START: General Text Color Fixes & Header Elements */

.text-gray-400 {
  /* Tailwind override for search icon */
  color: var(--text-color-light);
}

#login-btn-header {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

#login-btn-header:hover {
  background-color: var(--primary-color);
  color: white;
}

#search-input {
  /* Desktop search input */
  border-color: var(--border-color-light);
  background-color: var(--surface-color);
  color: var(--text-color-main);
}

#search-input:focus {
  box-shadow: 0 0 0 2px var(--secondary-color);
  border-color: var(--secondary-color);
}

#search-input::-moz-placeholder {
  color: var(--text-color-light);
}

#search-input::placeholder {
  color: var(--text-color-light);
}

/* END: General Text Color Fixes & Header Elements */

/* START: Dark Mode Toggle */

#dark-mode-toggle {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  padding: 0.625rem;
  background-color: var(--toggle-button-bg-light);
  color: var(--text-color-main);
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px var(--shadow-color-medium), 0 2px 4px -2px var(--shadow-color-medium);
  z-index: 9999;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  border: 1px solid var(--border-color-light);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

body.dark-mode #dark-mode-toggle {
  background-color: var(--toggle-button-bg-dark);
  color: var(--text-color-main);
  border-color: var(--border-color-light);
}

#dark-mode-toggle:hover {
  background-color: var(--toggle-button-hover-bg-light);
  transform: scale(1.1);
}

body.dark-mode #dark-mode-toggle:hover {
  background-color: var(--toggle-button-hover-bg-dark);
}

/* END: Dark Mode Toggle */

/* Custom Install Prompt Banner - Final Version */

#install-banner {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 380px;
  background-color: #fff;
  border-radius: 12px;
  padding: 12px;
  /* کاهش پدینگ برای کنترل بهتر */
  display: none;
  align-items: center;
  /* همه چیز در یک راستای عمودی */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 20000;
  animation: slide-down 0.5s ease-out forwards;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

#install-banner.dark-mode {
  background-color: #374151;
  color: #fff;
}

#install-banner img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  /* فاصله از متن کنارش */
  margin-left: 10px;
}

#install-banner .app-info {
  flex-grow: 1;
  /* این بخش بزرگ می‌شود تا بقیه را به اطراف هل دهد */
  text-align: right;
}

#install-banner .app-info p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: bold;
}

#install-banner .app-info span {
  font-size: 0.75rem;
  opacity: 0.8;
}

#install-banner .install-action button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  /* فاصله از متن و دکمه ضربدر */
  margin: 0 10px;
}

/* استایل جدید برای دکمه ضربدر */

#install-banner .close-btn {
  background: transparent;
  border: none;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  color: #9d1736;
  padding: 0 5px;
}

#install-banner .close-btn:hover {
  color: #333;
}

#install-banner.dark-mode .close-btn {
  color: #888;
}

#install-banner.dark-mode .close-btn:hover {
  color: #fff;
}

/* START: Unavailable Dish Card Styles */

.dish-card.unavailable {
  /* کل کارت را کمی محو و خاکستری می‌کنیم */
  opacity: 0.6;
  filter: grayscale(80%);
  cursor: not-allowed;
  position: relative;
  /* برای لایه رویی */
}

.dish-card.unavailable:hover {
  /* از بزرگ شدن کارت در حالت هاور جلوگیری می‌کنیم */
  transform: none;
  box-shadow: 0 4px 15px -2px rgba(61, 44, 33, 0.06),
    0 2px 8px -1px rgba(61, 44, 33, 0.04);
}

/* لایه رویی برای نمایش متن "ناموجود" */

.dish-card.unavailable .dish-card-image::after {
  content: 'ناموجود';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(40, 40, 40, 0.7);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 2;
  /* بالاتر از گرادینت خود کارت */
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

/* استایل دکمه "افزودن به سبد" در حالت ناموجود */

.dish-card.unavailable .add-to-cart-btn-card {
  background: #9ca3af;
  /* خاکستری */
  color: #4b5563;
  /* خاکستری تیره‌تر برای متن */
  cursor: not-allowed;
  pointer-events: none;
  /* غیرفعال کردن کامل رویدادها */
}

/* استایل دکمه در مودال برای محصول ناموجود */

#modal-add-to-cart-btn.unavailable {
  background-color: #9ca3af;
  cursor: not-allowed;
}

#modal-add-to-cart-btn.unavailable:hover {
  background-color: #9ca3af;
  /* جلوگیری از تغییر رنگ در هاور */
}

/* END: Unavailable Dish Card Styles */

@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInPage {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInCategory {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes badge-pop-in {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

@keyframes pulseIndicatorActive {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    transform: translateX(-50%) scale(1);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0);
    transform: translateX(-50%) scale(0.8);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    transform: translateX(-50%) scale(1);
  }
}

@keyframes fadeInModalBg {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInItem {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes price-update {
  0% {
    transform: scale(1);
    color: var(--primary-color-dark);
  }

  50% {
    transform: scale(1.15);
    color: var(--secondary-color-dark);
    /* رنگ برای جلب توجه */
  }

  100% {
    transform: scale(1);
    color: var(--primary-color-dark);
  }
}

@keyframes empty-state-pop-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateWave {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes shapeFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    border-radius: 50%;
  }

  25% {
    transform: translateY(-20px) rotate(90deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  50% {
    transform: translateY(0) rotate(180deg);
    border-radius: 30% 70% 70% 30% / 50% 40% 60% 50%;
  }

  75% {
    transform: translateY(20px) rotate(270deg);
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
  }
}

@keyframes logoSpin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

@keyframes logoEntrance {
  0% {
    transform: translateZ(-500px) scale(0);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  70% {
    transform: translateZ(100px) scale(1.2);
  }

  100% {
    transform: translateZ(0) scale(1);
  }
}

@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(213, 0, 0, 0.7));
  }

  50% {
    filter: drop-shadow(0 0 30px rgba(255, 109, 0, 0.9));
  }
}

@keyframes glowPulse {
  0% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

@keyframes lineExpand {
  to {
    width: 100%;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes burgerFloat {
  0%, 100% {
    transform: translate(-50%, -50%) rotateX(10deg) rotateY(0deg);
  }

  25% {
    transform: translate(-50%, -55%) rotateX(5deg) rotateY(10deg);
  }

  50% {
    transform: translate(-50%, -45%) rotateX(15deg) rotateY(5deg);
  }

  75% {
    transform: translate(-50%, -50%) rotateX(5deg) rotateY(-5deg);
  }
}

@keyframes layerAppear {
  0% {
    transform: translateX(-50%) translateZ(0px) scale(0) rotateX(90deg);
    opacity: 0;
  }

  70% {
    transform: translateX(-50%) translateZ(0px) scale(1.1) rotateX(0deg);
  }

  100% {
    transform: translateX(-50%) translateZ(0px) scale(1) rotateX(0deg);
    opacity: 1;
  }
}

@keyframes sesamePop {
  0% {
    transform: translateY(-10px) rotate(10deg) scale(0);
    opacity: 0;
  }

  70% {
    transform: translateY(2px) rotate(10deg) scale(1.2);
  }

  100% {
    transform: translateY(0) rotate(10deg) scale(1);
    opacity: 1;
  }
}

@keyframes lettuceWave {
  0%, 100% {
    border-radius: 60% 40% 70% 30% / 40% 50% 60% 50%;
  }

  50% {
    border-radius: 40% 60% 30% 70% / 50% 40% 50% 60%;
  }
}

@keyframes cheeseMelt {
  0%, 100% {
    transform: translateX(-50%) translateZ(0px) scale(1);
  }

  50% {
    transform: translateX(-50%) translateZ(0px) scale(1.05) translateY(2px);
  }
}

@keyframes cheeseDrip {
  0%, 100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(15deg);
  }
}

@keyframes particleFloat {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) rotate(360deg) scale(0);
    opacity: 0;
  }
}

@keyframes fireParticleRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: var(--start-opacity);
  }

  100% {
    transform: translateY(calc(-100px - var(--rise-height))) scale(0);
    opacity: 0;
  }
}

@keyframes fireFlicker {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.9;
  }

  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 1;
  }
}

@keyframes progressGlow {
  0% {
    left: -20px;
  }

  100% {
    left: 100%;
  }
}

@keyframes progressFill {
  0% {
    width: 0%;
  }

  20% {
    width: 20%;
  }

  50% {
    width: 50%;
  }

  80% {
    width: 80%;
  }

  100% {
    width: 100%;
  }
}

@keyframes dotBounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes fadeIn {
  /* This is for #landing-page.active specifically */

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* START: Custom Loading Screen Animations & Styles (Fiery Burger) */

body {
  /* Duplicated from top, ensure it's fine or merge if identical */
  transition: opacity ease-in 0.2s;
}

body[unresolved] {
  /* Duplicated */
  opacity: 0;
  display: block;
  overflow: hidden;
  position: relative;
}

* {
  /* Duplicated */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'dana', sans-serif;
}

/* Root variables for this specific animation, could be merged with main :root if desired */

:root {
  --primary: #D50000;
  --primary-light: #FF5252;
  --primary-dark: #B71C1C;
  --secondary: #FF6D00;
  --accent: #FFAB00;
  --dark: #333333;
  --light: #FFFFFF;
}

#custom-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20000;
  background-color: #000;
  overflow: hidden;
  transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
  perspective: 1200px;
}

#custom-loading-screen.hidden-completely {
  display: none;
}

.animated-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000, #1a0000);
  z-index: 1;
  overflow: hidden;
}

.bg-wave {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(ellipse at center, rgba(213, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.5;
  animation: rotateWave 20s infinite linear;
}

.bg-wave:nth-child(2) {
  background: radial-gradient(ellipse at center, rgba(255, 109, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  animation-duration: 30s;
  animation-direction: reverse;
}

.bg-wave:nth-child(3) {
  background: radial-gradient(ellipse at center, rgba(255, 171, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  animation-duration: 25s;
}

.geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.shape {
  position: absolute;
  border: 2px solid rgba(213, 0, 0, 0.3);
  border-radius: 50%;
  animation: shapeFloat 15s infinite ease-in-out;
}

.shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 20%;
  left: 10%;
  border-color: rgba(213, 0, 0, 0.2);
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 60%;
  left: 70%;
  border-color: rgba(255, 109, 0, 0.2);
  animation-delay: -5s;
}

.shape:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 30%;
  left: 80%;
  border-color: rgba(255, 171, 0, 0.2);
  animation-delay: -10s;
}

.shape:nth-child(4) {
  width: 400px;
  height: 400px;
  top: 70%;
  left: 20%;
  border-color: rgba(213, 0, 0, 0.1);
  animation-delay: -7s;
}

.loading-content-wrapper {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.logo-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 40px;
  transform-style: preserve-3d;
  animation: logoEntrance 2s ease-out forwards;
}

.logo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: logoSpin 15s infinite linear;
}

.logo {
  /* This class is not on the img in HTML, but might be intended for JS or future use */
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(213, 0, 0, 0.7));
  animation: logoPulse 3s infinite ease-in-out;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(213, 0, 0, 0.4) 0%, rgba(213, 0, 0, 0) 70%);
  border-radius: 50%;
  animation: glowPulse 3s infinite alternate;
}

.brand-name {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 50px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease-out 1s forwards;
  text-shadow: 0 0 10px rgba(213, 0, 0, 0.5);
  letter-spacing: 2px;
  position: relative;
}

.brand-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  animation: lineExpand 1.5s ease-out 1.5s forwards;
}

.tagline {
  font-size: 1.4rem;
  color: var(--light);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 1.4s forwards;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.burger-scene {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  perspective: 1200px;
  z-index: 5;
  pointer-events: none;
}

.burger-container {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  animation: burgerFloat 10s infinite ease-in-out;
}

.burger-layer {
  position: absolute;
  left: 50%;
  width: 220px;
  border-radius: 50%;
  transform: translateX(-50%) translateZ(0px) scale(0) rotateX(0deg);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  animation: layerAppear 0.7s ease-out forwards;
  transform-style: preserve-3d;
}

.bun-top {
  height: 80px;
  background: radial-gradient(circle at 30% 30%, #FFD54F, #F57F17);
  border-radius: 100% 100% 20% 20% / 100% 100% 30% 30%;
  top: 0;
  animation-delay: 1.8s;
  z-index: 50;
  transform-origin: center bottom;
}

.bun-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
}

.sesame {
  position: absolute;
  width: 8px;
  height: 12px;
  background-color: #FFF8E1;
  border-radius: 40% 40% 60% 60%;
  transform: rotate(10deg);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  animation: sesamePop 0.3s ease-out forwards;
  opacity: 0;
}

.sesame:nth-child(1) {
  top: 15%;
  left: 20%;
  animation-delay: 2.6s;
}

.sesame:nth-child(2) {
  top: 25%;
  left: 40%;
  transform: rotate(-15deg);
  animation-delay: 2.5s;
}

.sesame:nth-child(3) {
  top: 10%;
  left: 60%;
  animation-delay: 2.4s;
}

.sesame:nth-child(4) {
  top: 30%;
  left: 75%;
  transform: rotate(25deg);
  animation-delay: 2.3s;
}

.sesame:nth-child(5) {
  top: 20%;
  left: 85%;
  transform: rotate(-10deg);
  animation-delay: 2.2s;
}

.sesame:nth-child(6) {
  top: 15%;
  left: 30%;
  animation-delay: 2.1s;
}

.sesame:nth-child(7) {
  top: 25%;
  left: 50%;
  transform: rotate(15deg);
  animation-delay: 2.0s;
}

.lettuce {
  height: 25px;
  background: linear-gradient(to right, #2ECC71, #58D68D);
  top: 75px;
  border-radius: 60% 40% 70% 30% / 40% 50% 60% 50%;
  animation-delay: 1.5s;
  z-index: 45;
  transform-origin: center;
  animation: layerAppear 0.7s ease-out 1.5s forwards, lettuceWave 4s ease-in-out 1.5s infinite;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2), inset 0 -10px 15px rgba(0, 0, 0, 0.1);
}

.tomato {
  height: 20px;
  background: linear-gradient(to right, #E74C3C, #EC7063);
  top: 95px;
  border-radius: 50%;
  animation-delay: 1.2s;
  z-index: 40;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.tomato::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

.cheese {
  height: 15px;
  background: linear-gradient(to right, #F1C40F, #F7DC6F);
  top: 110px;
  border-radius: 5px;
  animation-delay: 0.9s;
  z-index: 35;
  transform-origin: center;
  animation: layerAppear 0.7s ease-out 1s forwards, cheeseMelt 3s ease-in-out 2s infinite;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.cheese::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 20px;
  background: #F1C40F;
  right: -15px;
  top: 0;
  border-radius: 5px;
  transform-origin: top left;
  animation: cheeseDrip 3s ease-in-out 2s infinite;
}

.patty {
  height: 40px;
  background: radial-gradient(circle at center, #5D4037, #3E2723);
  top: 120px;
  border-radius: 50%;
  animation-delay: 0.6s;
  z-index: 30;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.patty::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

.onion {
  height: 10px;
  background: linear-gradient(to right, #9C27B0, #BA68C8);
  top: 155px;
  border-radius: 50%;
  animation-delay: 0.3s;
  z-index: 25;
  opacity: 0.8;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.bun-bottom {
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #FFD54F, #F57F17);
  border-radius: 20% 20% 40% 40% / 30% 30% 100% 100%;
  top: 160px;
  animation-delay: 0.0s;
  z-index: 20;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.bun-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: particleFloat 8s linear forwards;
  opacity: 0;
}

.fire-container {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  z-index: 4;
  filter: blur(1px);
}

.fire {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(to top, var(--primary), var(--secondary), var(--accent));
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: fireFlicker 3s ease-in-out infinite;
  filter: blur(5px);
  opacity: 0.9;
}

.fire:before {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  filter: blur(5px);
}

.fire-particle {
  position: absolute;
  bottom: 0;
  left: calc(50% + var(--offset-x));
  width: var(--size);
  height: var(--size);
  background: var(--color);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0;
  animation: fireParticleRise var(--duration) ease-out forwards var(--delay);
}

.loading-progress-container {
  position: relative;
  margin-top: 40px;
  width: 250px;
  z-index: 10;
}

.loading-progress {
  position: relative;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(213, 0, 0, 0.3);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  animation: progressFill 4s ease-out forwards;
  box-shadow: 0 0 15px rgba(213, 0, 0, 0.7);
}

.progress-glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
  animation: progressGlow 5s ease-out infinite;
  z-index: 1;
}

.loading-text {
  margin-top: 15px;
  font-size: 1.1rem;
  color: var(--light);
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(213, 0, 0, 0.5);
}

.loading-text span {
  display: inline-block;
  animation: dotBounce 1.5s infinite;
}

.loading-text span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-text span:nth-child(3) {
  animation-delay: 0.4s;
}

#landing-page {
  display: none;
  /* Handled by .page-section and .active */
  padding: 20px;
  text-align: center;
}

#landing-page.active {
  /* This rule will also apply
       display: block; /* This is correct for page visibility */
  animation: fadeIn 1s ease-out;
  /* This specific animation is defined below */
}

.interactive-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}

.cursor-follower {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 0, 0, 0.1) 0%, rgba(213, 0, 0, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* END: Custom Loading Screen Animations & Styles */

/* START: Mobile Header and Footer Styles */

@media (max-width: 767px) {
  .modal-container {
    max-height: 85vh;
    /* IMPORTANT: Limit the modal's height to 85% of the screen height */
    /* Use flexbox to control the layout of the image and text */
    display: flex;
    flex-direction: column;
  }

  .modal-image {
    /* This prevents the image from shrinking inside the flex container */
    flex-shrink: 0;
    max-height: 240px;
    /* Set a maximum height for the image on mobile */
    -o-object-fit: cover;
       object-fit: cover;
    /* Ensures the image looks good without distortion */
  }

  .modal-content-padding {
    /* This is the key part: it makes ONLY the text area scrollable if needed */
    overflow-y: hidden;
    /* Allows this section to fill the remaining space */
    flex-grow: 1;
  }

  .sticky-header {
    display: none !important;
    /* Hide desktop header */
  }

  .category-title {
    font-size: 1.4rem;
    font-weight: 500;
  }

  #category-nav {
    margin-top: 10px;
  }

  #cart-sidebar {
    width: 340px;
  }

  #cart-icon {
    display: none !important;
  }

  #mobile-top-header {
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 0.25rem 0.5rem;
    height: -moz-fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #mobile-search-icon {
    font-size: 1.5rem;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
  }

  #mobile-search-icon:active {
    transform: scale(0.9);
  }

  #mobile-search-input {
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    border-radius: 0.5rem;
    padding: 0.87rem 1rem;
    margin: 0 0.75rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  #mobile-search-input.hidden {
    width: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
  }

  #mobile-header-logo {
    padding: 0.25rem;
  }

  #mobile-header-logo img {
    width: 40px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  #mobile-bottom-nav {
    display: flex;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
  }

  body.mobile-navs-active-layout {
    padding-top: 60px;
    padding-bottom: 120px;
  }

  #mobile-bottom-nav .mobile-nav-active {
    color: var(--primary-color);
    font-weight: 700;
  }

  body.body-on-info-page {
    padding-top: 10px;
    padding-bottom: 120px;
  }

  #dark-mode-toggle {
    bottom: 80px !important;
    right: 1rem !important;
    z-index: 10000;
  }

  #mobile-bottom-nav button {
    min-width: 0;
    padding: 0.5rem 0.25rem;
  }

  #mobile-bottom-nav button i {
    font-size: 1.25rem;
  }

  #mobile-bottom-nav button .text-xs {
    font-size: 0.65rem;
  }

  .category-nav-sticky {
    top: 56px !important;
  }
}

/* END: Mobile Header and Footer Styles */

@media (max-width: 639px) {
  /* --- تنظیمات اصلی کارت --- */

  .dish-card {
    flex-direction: row;
    align-items: center;
    height: auto;
    padding: 0.75rem;
    gap: 1rem;
    overflow: visible;
    /* اجازه می‌دهد نشان بیرون از کادر نمایش داده شود */
  }

  /* --- تنظیمات عکس --- */

  .dish-card-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 1rem;
    -o-object-fit: cover;
       object-fit: cover;
    position: relative;
    /* برای موقعیت‌دهی نشان (badge) */
    overflow: visible;
    /* اجازه می‌دهد نشان بیرون از کادر نمایش داده شود */
  }

  /* --- موقعیت‌دهی نشان (Badge) --- */

  .dish-card-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(20%, -125%);
    right: auto;
    z-index: 2;
  }

  /* --- بخش محتوا --- */

  .dish-card-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  /* --- نام و قیمت محصول --- */

  .dish-name, .dish-price {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* --- توضیحات محصول --- */

  .dish-description {
    margin-bottom: 0.75rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  /* --- دکمه افزودن به سبد --- */

  .add-to-cart-btn-card {
    width: 100%;
    margin-top: auto;
    padding: 0.75rem;
    white-space: nowrap;
  }
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

