/* ==========================================================================
   Hilton Café — سیستم طراحی
   الهام از نشان کافه: شب سرمه‌ای، گرداب طلایی، کاغذ کرم
   ========================================================================== */


/* ---------- ۱. توکن‌ها ---------- */
:root {
  
  color-scheme: light;

  --ink: #0D2149;
  --ink-2: #16346B;
  --ink-deep: #071129;
  --gold: #C99420;
  --gold-2: #E9BC5C;
  --paper: #F8F5EE;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;

  --fg: #0D2149;
  --fg-soft: #46577A;
  --fg-mute: #74839F;

  --line: rgba(13, 33, 73, .13);
  --line-soft: rgba(13, 33, 73, .07);
  --hairline: rgba(201, 148, 32, .32);
  --shadow-sm: 0 1px 2px rgba(7, 17, 41, .05);
  --shadow: 0 14px 34px -22px rgba(7, 17, 41, .38);
  --shadow-lg: 0 30px 60px -32px rgba(7, 17, 41, .5);

  --fa: 'Vazirmatn', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --en: 'Playfair Display', Georgia, serif;

  /* مقیاس اندازه با نسبت ۱٫۲۵ */
  --t-xs: .75rem;
  --t-sm: .8125rem;
  --t-base: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3rem;
  --t-xl: 1.65rem;
  --t-2xl: 2.1rem;
  --t-3xl: clamp(1.9rem, 4.6vw, 3.1rem);

  --wrap: 1140px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .78, .3, 1);
}

/* شب — حالت تیره */
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #071129;
  --surface: #0E1F3D;
  --surface-2: #132848;
  --fg: #EDF1F8;
  --fg-soft: #B9C6DE;
  --fg-mute: #8496B6;
  --ink: #EDF1F8;
  --line: rgba(233, 188, 92, .18);
  --line-soft: rgba(255, 255, 255, .07);
  --hairline: rgba(233, 188, 92, .3);
  --gold: #E9BC5C;
  --shadow: 0 16px 40px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .9);
}

/* ---------- ۲. پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 72px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--fa);
  font-size: var(--t-base);
  line-height: 1.85;
  color: var(--fg);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.32; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(201, 148, 32, .25); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.en { font-family: var(--en); letter-spacing: .04em; }
.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;
}

/* نمایش تدریجی هنگام اسکرول */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* ---------- ۳. هدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.site-header.on-dark {
  background: color-mix(in srgb, #071129 82%, transparent);
  border-bottom-color: rgba(233, 188, 92, .18);
  color: #EDF1F8;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 44px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.brand-name { font-family: var(--en); font-size: 1.15rem; font-weight: 700; letter-spacing: .13em; display: block; line-height: 1.2; }
.brand-tag { display: block; font-size: .64rem; color: var(--fg-mute); letter-spacing: .06em; }
.on-dark .brand-tag { color: var(--gold-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; font-size: var(--t-base); font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0);
  transition: transform .26s var(--ease);
}
.nav a:hover::after { transform: scaleX(.5); }
.nav a[aria-current="page"] { font-weight: 700; color: var(--gold); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px;
  background: transparent; color: inherit; font-size: 1.05rem;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.icon-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.on-dark .icon-btn { border-color: rgba(233, 188, 92, .25); }
.burger { display: none; }

/* ---------- ۴. دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: var(--t-base); font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .16s var(--ease), background .22s var(--ease),
              color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-gold { background: var(--gold); color: #10203F; box-shadow: 0 8px 20px -10px rgba(201, 148, 32, .8); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 12px 26px -10px rgba(201, 148, 32, .9); }
.btn-ink { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .btn-ink { background: var(--gold); color: #10203F; }
.btn-ink:hover { background: var(--ink-2); }
[data-theme="dark"] .btn-ink:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--line); color: inherit; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.on-dark .btn-ghost { border-color: rgba(233, 188, 92, .3); }
.btn-sm { padding: 9px 15px; font-size: var(--t-sm); }
.btn-block { width: 100%; }

/* ---------- ۵. هیرو ---------- */
.hero {
  position: relative; overflow: hidden; color: #EDF1F8;
  background: radial-gradient(130% 100% at 76% 8%, #17386E 0%, #0D2149 45%, #071129 100%);
  padding-block: clamp(58px, 9vw, 112px) clamp(70px, 10vw, 124px);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 -1px 0; height: 110px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none; z-index: 3;
}
.swirl { position: absolute; inset: 0; z-index: 1; opacity: .5; pointer-events: none; }
.swirl path { animation: draw 3.4s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }


/* به طور پیش‌فرض (دسکتاپ)، تگ برک مخفی است و عمل نمی‌کند */
.mobile-break {
    display: none;
}
/* به طور پیش‌فرض (دسکتاپ)، تگ برک مخفی است و عمل نمی‌کند */
.mobile-break {
    display: none;
}

/* در گوشی‌های موبایل (صفحه‌های کوچکتر از ۷۶۸ پیکسل)، تگ برک فعال می‌شود */
@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}
@media (max-width: 768px) {
    section.hero {
        position: relative;
        padding-top: 0; 
    }

    section.hero svg.swirl {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        
        /* فقط کمی به سمت پایین می‌آوریم، بدون جابه‌جایی افقی اضافی که نظم صفحه را به هم بزند */
        transform: translateY(70px) !important; 
        
        /* کمک به نمایش نرم‌تر در موبایل */
        will-change: transform; 
    }
}
/* تنظیمات متن فارسی (کوچک‌تر کردن سایز و برداشتن بولد بودن) */
h1 {
    font-size: 24px !important;    /* سایز متن فارسی را می‌توانید به دلخواه کم یا زیاد کنید (مثلاً 20px یا 24px) */
}

/* تنظیمات متن انگلیسی (بولد کردن و بزرگ‌تر کردن) */
h1 span.en {
    font-size: 22px !important;    /* سایز متن انگلیسی (باید بزرگ‌تر از فارسی باشد) */
    font-weight: bold !important;  /* بولد کردن متن انگلیسی */
    display: block;                /* اگر می‌خواهید انگلیسی بیاید خط بعدی، این خط را فعال کنید */
    margin-top: 8px;               /* فاصله کمی از متن فارسی ایجاد می‌کند */
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: clamp(28px, 5vw, 68px); align-items: center;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--t-sm); color: var(--gold-2);
  border: 1px solid rgba(233, 188, 92, .3); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 20px;
}
.hero h1 { font-size: var(--t-3xl); font-weight: 900; line-height: 1.24; margin-bottom: 18px; }
.hero h1 .en {
  display: block; font-size: .4em; font-weight: 500; font-style: italic;
  color: var(--gold-2); margin-top: 12px; letter-spacing: .08em;
}
.hero .lead { font-size: var(--t-md); color: #C4D0E6; max-width: 46ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-badge {
  justify-self: center; width: min(310px, 72vw);
  filter: drop-shadow(0 34px 50px rgba(0, 0, 0, .5));
  animation: badge-in 1.1s var(--ease) both;
  image-rendering: -webkit-optimize-contrast;
}

.hero-badge img {
  width: 100%;
  height: auto;
  image-rendering: high-quality;
}
@keyframes badge-in { from { opacity: 0; transform: translateY(26px) scale(.94); } }

.hero-facts {
  position: relative; z-index: 2; margin-top: clamp(38px, 5vw, 58px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(233, 188, 92, .22); border-radius: var(--r-lg); overflow: hidden;
  background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px);
}
.hero-facts div { padding: 20px 22px; border-inline-start: 1px solid rgba(233, 188, 92, .18); }
.hero-facts div:first-child { border-inline-start: 0; }
.hero-facts b { display: block; color: var(--gold-2); font-size: var(--t-lg); font-weight: 700; line-height: 1.4; }
.hero-facts span { font-size: var(--t-sm); color: #A9B8D4; }

/* ---------- ۶. بخش‌ها ---------- */
.section { padding-block: clamp(52px, 7vw, 92px); }
.section-dark { background: var(--ink-deep); color: #EDF1F8; }
[data-theme="dark"] .section-dark { background: #050D1F; }
.section-paper { background: var(--surface); }

.section-head { margin-bottom: 36px; max-width: 60ch; }
.section-head h2 { font-size: var(--t-2xl); font-weight: 900; }
.section-head p { color: var(--fg-mute); margin: 10px 0 0; font-size: var(--t-base); }
.section-dark .section-head p { color: #A9B8D4; }

.rule { width: 52px; height: 3px; border-radius: 3px; background: var(--gold); margin-bottom: 16px; }

/* ---------- ۷. کارت ---------- */
.feature, .info-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.feature { padding: 28px 26px; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature h3 { font-size: var(--t-md); margin-bottom: 8px; }
.feature p { margin: 0; font-size: var(--t-base); color: var(--fg-mute); }
.feature .icon {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(201, 148, 32, .13); color: var(--gold); font-size: 1.25rem; margin-bottom: 16px;
}
.section-dark .feature { background: rgba(255, 255, 255, .04); border-color: rgba(233, 188, 92, .18); }
.section-dark .feature p { color: #A9B8D4; }
.section-dark .feature:hover { background: rgba(255, 255, 255, .07); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 20px; }

.info-card { padding: 26px; }
.info-row { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .k { font-size: var(--t-sm); color: var(--fg-mute); min-width: 82px; }
.info-row .v { font-size: var(--t-base); font-weight: 600; }

.hours { display: grid; }
.hours div { display: flex; justify-content: space-between; font-size: var(--t-base); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours span { color: var(--fg-mute); }

/* ---------- ۸. منو ---------- */
/* افکت شیشه‌ای و تار نوار دسته‌بندی (Glassmorphism) */
.menu-nav {
  position: sticky;
top: 0 !important; /* چسبیدن کامل به بالای صفحه بدون فاصله */
  z-index: 40;
  background: rgba(7, 17, 41, 0.65); /* شفافیت خنک برای جلب توجه محتوای زیرین */
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(233, 188, 92, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: background 0.3s var(--ease);
}.menu-nav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 13px; scrollbar-width: none; }
.menu-nav .wrap::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto; font-size: var(--t-sm); font-weight: 600;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="dark"] .chip.is-active { background: var(--gold); color: #10203F; border-color: var(--gold); }

.menu-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.search-box { position: relative; flex: 1; min-width: 210px; }
.search-box input {
  width: 100%; font: inherit; font-size: var(--t-base);
  padding: 12px 44px 12px 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--fg);
}
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-box::before {
  content: '⌕'; position: absolute; inset-inline-start: 16px; top: 50%;
  transform: translateY(-50%); color: var(--fg-mute); font-size: 1.15rem; pointer-events: none;
}

.menu-cat { margin-bottom: 52px; }
.menu-cat[hidden] { display: none; }
.menu-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
.menu-cat-head h2 { font-size: var(--t-xl); font-weight: 900; }
.menu-cat-head .count { font-size: var(--t-xs); color: var(--fg-mute); }
.menu-cat .hint {
  margin: 0 0 18px; font-size: var(--t-sm); color: var(--fg-mute);
  border-inline-start: 3px solid var(--gold); padding-inline-start: 11px;
}
.menu-cat-line {
  height: 2px; margin-bottom: 16px;
  background: linear-gradient(to left, var(--gold), var(--hairline) 40%, transparent);
}

.menu-row {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 14px;
  padding: 15px 8px; border-radius: var(--r-sm);
  transition: background .2s var(--ease);
}
.menu-row + .menu-row { border-top: 1px dashed var(--line-soft); }
.menu-row:hover { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.menu-row[hidden] { display: none; }
.menu-row .name { font-size: var(--t-md); font-weight: 600; }
.menu-row .name small { font-weight: 400; font-size: var(--t-xs); color: var(--fg-mute); margin-inline-start: 6px; }
.menu-row .desc { margin: 5px 0 0; font-size: var(--t-sm); color: var(--fg-mute); max-width: 60ch; line-height: 1.75; }
.menu-row .row-end { display: flex; align-items: center; gap: 12px; }

.menu-row-main { display:flex; align-items:center; gap:14px; min-width:0; }
.menu-thumb { width:78px; height:78px; object-fit:cover; border-radius:16px; flex:none; background:var(--ink); border:1px solid var(--line); }
.coming-soon { padding:18px; border:1px dashed var(--line); border-radius:16px; color:var(--fg-mute); background:rgba(255,255,255,.02); }
.table-bar .btn:disabled { opacity:.55; cursor:not-allowed; }
.product-edit-thumb { width:130px; height:130px; object-fit:cover; border-radius:18px; border:1px solid var(--line); background:#fff; }
.product-edit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.product-edit-grid .span-2 { grid-column:1/-1; }
.admin-modal { position:fixed; inset:0; background:rgba(0,0,0,.65); display:none; align-items:center; justify-content:center; z-index:10000; padding:20px; }
.admin-modal.is-open { display:flex; }
.admin-modal-card { width:min(760px,100%); max-height:90vh; overflow:auto; background:var(--ink-deep); border:1px solid var(--line); border-radius:24px; padding:22px; box-shadow:0 25px 80px rgba(0,0,0,.4); }
.admin-modal-head { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:16px; }
.admin-modal-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; margin-top:18px; }
.reservation-create-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
@media (max-width: 720px) { .menu-row-main { gap:10px; } .menu-thumb{width:62px;height:62px;} .product-edit-grid,.reservation-create-grid{grid-template-columns:1fr;} }
.menu-row .price { font-size: var(--t-md); font-weight: 700; white-space: nowrap; }
.menu-row .price span { font-size: var(--t-xs); font-weight: 400; color: var(--fg-mute); margin-inline-start: 3px; }
.menu-row .price.ask { font-size: var(--t-sm); font-weight: 500; color: var(--fg-mute); }

.add-btn {
  width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--line);
  background: transparent; color: var(--fg); font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.add-btn:hover { background: var(--gold); color: #10203F; border-color: var(--gold); transform: scale(1.06); }
.add-btn.pop { animation: pop .34s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }

.tag {
  display: inline-block; font-size: var(--t-xs); font-weight: 600;
  padding: 2px 10px; border-radius: 999px; vertical-align: middle;
  background: rgba(201, 148, 32, .16); color: #8A6410; margin-inline-start: 7px;
}
[data-theme="dark"] .tag { color: var(--gold-2); }

/* ---------- ۹. سبد خرید ---------- */
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -7px; inset-inline-start: -7px;
  min-width: 21px; height: 21px; padding-inline: 5px; border-radius: 999px;
  background: var(--gold); color: #10203F; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(7, 17, 41, .55); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 80;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; inset-inline-start: 0; height: 100dvh;
  width: min(420px, 94vw); background: var(--surface); color: var(--fg); z-index: 90;
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .34s var(--ease);
  box-shadow: var(--shadow-lg);
}
html[dir="ltr"] .drawer { transform: translateX(-102%); }
.drawer.is-open { transform: none; }
.drawer header { padding: 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer header h3 { font-size: var(--t-md); }
.drawer .close { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; color: var(--fg-mute); padding: 4px 8px; border-radius: 8px; }
.drawer .body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.drawer .foot { border-top: 1px solid var(--line); padding: 16px 20px 22px; }

.cart-line { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .t { flex: 1; min-width: 0; }
.cart-line .t b { display: block; font-size: var(--t-base); font-weight: 600; }
.cart-line .t span { font-size: var(--t-sm); color: var(--fg-mute); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button {
  width: 31px; height: 31px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--fg); font-size: 1rem; line-height: 1;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.qty button:hover { border-color: var(--gold); color: var(--gold); }
.qty b { min-width: 26px; text-align: center; font-size: var(--t-base); }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-total b { font-size: var(--t-lg); }
.empty-note { text-align: center; color: var(--fg-mute); font-size: var(--t-base); padding: 50px 10px; }

.cart-bar {
  display: flex;
  position: fixed; inset-inline: 14px; bottom: 14px; z-index: 70;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 18px; border-radius: 18px;
  background: var(--ink-deep); color: #EDF1F8; box-shadow: var(--shadow-lg);
  transform: translateY(150%); transition: transform .32s var(--ease);
}
.cart-bar.is-on { transform: none; }
.cart-bar span { font-size: var(--t-sm); color: #A9B8D4; }
.cart-bar b { font-size: var(--t-base); }

/* ---------- ۱۰. فرم ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--t-base);
  padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--fg);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--surface);
}

/* ---------- ۱۱. توست ---------- */
.toast-stack { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink-deep); color: #EDF1F8; font-size: var(--t-sm); font-weight: 500;
  padding: 13px 19px; border-radius: 14px; box-shadow: var(--shadow-lg);
  border-inline-start: 3px solid var(--gold);
  animation: toast-in .3s var(--ease) both;
}
.toast.is-err { border-inline-start-color: #C2412D; }
.toast.is-out { animation: toast-out .25s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

/* ---------- ۱۲. بارگذاری ---------- */
.skeleton {
  border-radius: var(--r-sm); height: 16px; margin: 10px 0;
  background: linear-gradient(90deg, var(--line-soft), var(--line), var(--line-soft));
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
.skeleton.lg { height: 27px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.state-msg {
  text-align: center; color: var(--fg-mute); font-size: var(--t-base);
  padding: 46px 18px; border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.state-msg b { display: block; color: var(--fg); font-size: var(--t-md); margin-bottom: 6px; }

/* ---------- ۱۳. نبض زنده ---------- */
.pulse-bar { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: var(--t-sm); color: #A9B8D4; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ADE80;
  display: inline-block; margin-inline-end: 7px; animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.pulse-bar b { color: var(--gold-2); }

/* ---------- ۱۴. باریستای مجازی ---------- */
.quiz-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(24px, 4vw, 40px); max-width: 640px; margin-inline: auto; box-shadow: var(--shadow);
}
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: step-in .32s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
.quiz-progress { height: 4px; background: var(--line); border-radius: 4px; margin-bottom: 28px; overflow: hidden; }
.quiz-progress i { display: block; height: 100%; background: var(--gold); transition: width .4s var(--ease); }
.quiz-q { font-size: var(--t-xl); font-weight: 900; margin-bottom: 6px; }
.quiz-sub { color: var(--fg-mute); font-size: var(--t-sm); margin: 0 0 24px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; }
.choice {
  border: 1px solid var(--line); background: var(--paper); color: var(--fg);
  border-radius: 18px; padding: 17px 14px; text-align: center;
  font-size: var(--t-base); font-weight: 600;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .16s var(--ease);
}
.choice em { display: block; font-style: normal; font-size: 1.5rem; margin-bottom: 8px; }
.choice:hover { border-color: var(--gold); transform: translateY(-3px); }
.choice.is-picked { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="dark"] .choice.is-picked { background: var(--gold); color: #10203F; }

.pick-card {
  border: 1px solid var(--line); border-radius: 20px; padding: 19px 21px; margin-bottom: 12px;
  display: flex; gap: 16px; align-items: flex-start; background: var(--paper);
}
.pick-card.is-top { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 148, 32, .13); }
.pick-rank {
  width: 48px; height: 48px; border-radius: 15px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 900; font-size: var(--t-sm);
  background: rgba(201, 148, 32, .16); color: #8A6410;
}
[data-theme="dark"] .pick-rank { color: var(--gold-2); }
.pick-card h3 { font-size: var(--t-md); margin-bottom: 4px; }
.pick-card p { margin: 0; font-size: var(--t-sm); color: var(--fg-mute); }
.match { font-size: var(--t-sm); font-weight: 700; color: #1C8C5D; }

/* ---------- ۱۶. کارت مهر ---------- */
.stamp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 20px 0; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line);
  display: grid; place-items: center; font-size: 1.2rem; color: var(--line);
}
.stamp.on {
  border: 2px solid var(--gold); background: rgba(201, 148, 32, .14); color: var(--gold);
  animation: stamp-in .4s var(--ease) both;
}
@keyframes stamp-in { from { transform: scale(.6) rotate(-12deg); opacity: 0; } }

/* ---------- ۱۷. گالری ---------- */
.mosaic { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.mosaic figure {
  margin: 0; border-radius: var(--r-lg); min-height: 220px; overflow: hidden;
  position: relative; display: flex; align-items: flex-end; padding: 18px;
  color: #EDF1F8; font-size: var(--t-base); font-weight: 600;
  background: linear-gradient(160deg, #15376B, #081530);
  transition: transform .35s var(--ease);
}
.mosaic figure:hover { transform: translateY(-4px); }
.mosaic figure.tall { min-height: 330px; }
.mosaic figure:nth-child(3n+2) { background: linear-gradient(160deg, #1E4480, #0D2149); }
.mosaic figure:nth-child(3n+3) { background: linear-gradient(160deg, #B98A24, #6E4F0E); }
.mosaic figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption {
  position: relative; z-index: 2; background: rgba(7, 17, 41, .55);
  padding: 6px 13px; border-radius: 999px; font-size: var(--t-sm); backdrop-filter: blur(4px);
}

/* ---------- ۱۸. فوتر و بخش‌های عمومی ---------- */
.site-footer { background: var(--ink-deep); color: #B9C6DE; padding-block: 52px 26px; font-size: var(--t-base); }
[data-theme="dark"] .site-footer { background: #050D1F; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(233, 188, 92, .18); }
.site-footer h4 { color: #EDF1F8; font-size: var(--t-base); margin-bottom: 15px; }
.site-footer a { transition: color .18s var(--ease); }
.site-footer a:hover { color: var(--gold-2); }
.footer-links { display: grid; gap: 9px; }
.footer-bottom { padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: var(--t-xs); color: #8496B6; }
.site-footer .brand img { height: 76px; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.socials a {
  width: 46px; height: 46px; border-radius: 15px; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.1rem;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #10203F; transform: translateY(-3px); }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-height: 300px;
  display: grid; place-items: center; color: var(--fg-mute); font-size: var(--t-base);
  text-align: center; padding: 20px; background: var(--surface);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 5vw, 58px); align-items: start; }
.prose p { font-size: var(--t-md); color: var(--fg-soft); max-width: 64ch; }
.section-dark .prose p { color: #C4D0E6; }

/* ---------- ۱۹. صفحه میز ---------- */
.table-bar { background: var(--ink-deep); color: #EDF1F8; padding: 15px 0; }
.table-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.table-pill { background: var(--gold); color: #10203F; font-weight: 700; font-size: var(--t-base); padding: 7px 17px; border-radius: 999px; }

/* ---------- ۲۰. پنل مدیریت ---------- */
.admin-body { background: var(--paper); }
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink-deep); color: #B9C6DE; padding: 22px 16px; display: flex; flex-direction: column; gap: 5px; }
.admin-side .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding-inline: 6px; }
.admin-side .logo img { height: 44px; }
.admin-side .logo b { font-family: var(--en); font-size: var(--t-base); letter-spacing: .1em; color: #EDF1F8; }
.admin-side .nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 15px; border-radius: 13px; font-size: var(--t-base); font-weight: 500;
  border: 0; background: transparent; color: inherit; width: 100%; text-align: start;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.admin-side .nav-item:hover { background: rgba(255, 255, 255, .07); color: #EDF1F8; }
.admin-side .nav-item.is-active { background: var(--gold); color: #10203F; font-weight: 700; }
.admin-side .spacer { flex: 1; }
.admin-main { padding: 26px clamp(16px, 3vw, 36px); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { font-size: var(--t-xl); font-weight: 900; }
.panel { display: none; }
.panel.is-active { display: block; animation: step-in .3s var(--ease) both; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 19px 21px; }
.stat b { display: block; font-size: var(--t-2xl); font-weight: 900; line-height: 1.2; }
.stat span { font-size: var(--t-sm); color: var(--fg-mute); }

.kds-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; align-items: start; }
.kds-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px; }
.kds-col h3 { font-size: var(--t-sm); margin-bottom: 11px; display: flex; justify-content: space-between; color: var(--fg-mute); }
.ticket {
  background: var(--paper); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
  animation: step-in .3s var(--ease) both;
}
.ticket.is-late { border-inline-start-color: #C2412D; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; font-size: var(--t-xs); color: var(--fg-mute); margin-bottom: 9px; }
.ticket-top b { font-family: var(--en); font-size: var(--t-sm); color: var(--fg); letter-spacing: .06em; }
.ticket ul { list-style: none; padding: 0; margin: 0 0 11px; font-size: var(--t-sm); display: grid; gap: 3px; }
.ticket li { display: flex; justify-content: space-between; }
.ticket .qty-n { font-weight: 700; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 620px; }
table.data th, table.data td { padding: 13px 15px; text-align: start; border-bottom: 1px solid var(--line-soft); }
table.data th { font-size: var(--t-xs); color: var(--fg-mute); font-weight: 600; background: var(--paper); }
table.data tr:last-child td { border-bottom: 0; }

.badge { font-size: var(--t-xs); font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(13, 33, 73, .08); color: var(--fg); }
[data-theme="dark"] .badge { background: rgba(255, 255, 255, .1); }
.badge-new { background: rgba(201, 148, 32, .2); color: #8A6410; }
[data-theme="dark"] .badge-new { color: var(--gold-2); }
.badge-done { background: rgba(28, 140, 93, .15); color: #1C8C5D; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(120% 90% at 70% 10%, #17386E, #071129); }
.login-card { background: var(--surface); border-radius: 26px; padding: 36px; width: min(410px, 100%); box-shadow: var(--shadow-lg); }
.login-card img { height: 100px; margin: 0 auto 20px; }

.qr-cell { display: flex; align-items: center; gap: 11px; }
.qr-cell img { width: 64px; height: 64px; border-radius: 9px; background: #fff; }


/* ---------- ۲۱. ریسپانسیو ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { order: -1; width: min(215px, 52vw); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  :root { --header-h: 66px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 10px 22px 18px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav.is-open { display: flex; animation: step-in .25s var(--ease) both; }
  .nav a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .burger { display: grid; }
  .brand img { height: 38px; }
  .brand-name { font-size: 1rem; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { border-inline-start: 0; border-top: 1px solid rgba(233, 188, 92, .18); }
  .hero-facts div:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .label-hide { display: none; }
  .stamp-grid { gap: 7px; }
}

@media (max-width: 880px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; overflow-x: auto; gap: 8px; padding: 12px; align-items: center; }
  .admin-side .logo, .admin-side .spacer { display: none; }
  .admin-side .nav-item { width: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- ۲۲. چاپ منو ---------- */
@media print {
  .site-header, .menu-nav, .site-footer, .add-btn, .drawer, .drawer-backdrop,
  .hero-cta, .cart-bar, .menu-tools, .toast-stack { display: none !important; }
  body { background: #fff; color: #000; }
  .menu-cat { break-inside: avoid; margin-bottom: 24px; }
  .menu-row { padding: 6px 0; }
}
.btn-delete {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s;
}

.btn-delete:hover {
  background-color: #bb2d3b;
}
/* ============================================================================
   HILTON FINAL OVERRIDES — تم ثابت دارک و جریان سفارش جدید
   ============================================================================ */
:root,
[data-theme="light"] {
  color-scheme: dark;
  --paper: #071129;
  --surface: #0E1F3D;
  --surface-2: #132848;
  --fg: #EDF1F8;
  --fg-soft: #B9C6DE;
  --fg-mute: #8496B6;
  --ink: #EDF1F8;
  --ink-2: #F4D27A;
  --ink-deep: #050D1F;
  --gold: #E9BC5C;
  --gold-2: #F4D27A;
  --line: rgba(233, 188, 92, .18);
  --line-soft: rgba(255, 255, 255, .07);
  --hairline: rgba(233, 188, 92, .3);
  --shadow-sm: 0 7px 24px -18px rgba(0,0,0,.9);
  --shadow: 0 18px 50px -26px rgba(0,0,0,.9);
  --shadow-lg: 0 35px 80px -32px rgba(0,0,0,.95);
}

html,
body {
  background-color: var(--paper);
  color: var(--fg);
}

body.modal-open,
body.drawer-open {
  overflow: hidden;
}

/* ---------- Delivery modal ---------- */
.delivery-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
}
.delivery-modal.is-open { display: block; }
.delivery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 20, .78);
  backdrop-filter: blur(10px);
}
.delivery-sheet {
  position: relative;
  width: min(760px, calc(100vw - 28px));
  margin: min(9vh, 86px) auto 0;
  background: linear-gradient(150deg, #12264A, #09152C 70%);
  border: 1px solid rgba(233,188,92,.24);
  border-radius: 30px;
  box-shadow: 0 40px 100px -35px rgba(0,0,0,.95);
  padding: 32px;
  animation: step-in .25s var(--ease) both;
}
.delivery-close {
  position: absolute;
  top: 13px;
  inset-inline-end: 16px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 1.5rem;
}
.delivery-head { max-width: 55ch; margin-bottom: 24px; padding-inline-end: 34px; }
.delivery-kicker {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(233,188,92,.28);
  color: var(--gold-2);
  font-size: .74rem;
  letter-spacing: .04em;
}
.delivery-head h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 10px; }
.delivery-head p,
.delivery-note { color: var(--fg-mute); font-size: .86rem; margin-top: 8px; }
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.delivery-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 150px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.delivery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233,188,92,.42);
  background: rgba(233,188,92,.06);
}
.delivery-card > div:nth-child(2) { min-width: 0; }
.delivery-card strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.delivery-card span:not(.delivery-arrow):not(.snapp-mark):not(.snapp-word):not(.zoodex-mark):not(.zoodex-word) {
  color: var(--fg-mute);
  font-size: .76rem;
}
.delivery-brand-logo { display:flex; align-items:center; gap:8px; min-width:124px; }
.snapp-logo .snapp-mark,
.zoodex-logo .zoodex-mark {
  width: 45px;
  height: 45px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  font-size: 1.3rem;
  font-weight: 900;
  color: #071129;
  background: #fff;
}
.snapp-logo .snapp-mark { background:#ff3158; color:#fff; }
.zoodex-logo .zoodex-mark { background:#16c784; color:#06110d; }
.snapp-word { color:#ff5a79; font-weight: 900; font-size: .95rem; direction:ltr; }
.zoodex-word { color:#22d79a; font-weight: 900; font-size: .95rem; direction:ltr; }
.delivery-arrow { font-size: 1.4rem; color: var(--gold-2); }
.delivery-note { margin-top: 18px; text-align:center; }
.footer-action {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: start;
}
.footer-action:hover { color: var(--gold-2); }

/* ---------- Table order ---------- */
.table-bar {
  background: #0B1931;
  border-bottom: 1px solid var(--line);
}
.table-bar-inner {
  min-height: 58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.table-bar-note { color: var(--fg-mute); font-size: .78rem; margin-inline-start: 10px; }
.table-pill {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 12px;
  border:1px solid rgba(233,188,92,.25);
  border-radius:999px;
  color: var(--gold-2);
  background: rgba(233,188,92,.06);
  font-size:.78rem;
  font-weight:700;
}
.table-intro h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; }
.table-intro p { color: var(--fg-mute); max-width: 60ch; margin-top: 8px; }
.table-error { margin-top: 20px; border-color: rgba(249,112,102,.35); }

.order-success {
  position: fixed;
  inset: 0;
  z-index: 450;
  display:grid;
  place-items:center;
  padding: 20px;
  background: rgba(1,7,20,.78);
  backdrop-filter: blur(10px);
}
.order-success[hidden] { display:none; }
.order-success-card {
  width:min(520px,100%);
  padding:34px;
  border-radius:28px;
  border:1px solid rgba(233,188,92,.22);
  background:#0E1F3D;
  text-align:center;
  box-shadow:var(--shadow-lg);
}
.success-icon {
  width:58px;
  height:58px;
  margin:0 auto 14px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(28,140,93,.16);
  color:#57d49e;
  font-size:1.7rem;
  font-weight:900;
}
.order-success-card h2 { margin-top:10px; font-size:1.5rem; }
.order-success-card p { margin:10px 0 18px; color:var(--fg-mute); font-size:.86rem; }
.success-code {
  direction:ltr;
  display:inline-flex;
  min-width:190px;
  justify-content:center;
  padding:12px 18px;
  border-radius:15px;
  border:1px dashed rgba(233,188,92,.4);
  color:var(--gold-2);
  background:rgba(233,188,92,.06);
  font-family:var(--en);
  font-size:1.35rem;
  letter-spacing:.12em;
  margin-bottom:18px;
}

/* ---------- Admin ---------- */
.admin-input,
.settings-grid input,
.settings-grid select,
.admin-form-grid input,
.admin-form-grid select {
  width:100%;
  min-height:42px;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#0B1931;
  color:var(--fg);
}
.admin-input:disabled { opacity:.55; }
.admin-input.small { width:88px; }
.price-input { min-width:118px; }
.product-title-cell { min-width:210px; }
.move-buttons { white-space:nowrap; }
.small-btn { width:34px; height:34px; padding:0; }
.panel-intro {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.panel-intro h2 { font-size:1.15rem; font-weight:900; }
.panel-intro p { margin-top:5px; color:var(--fg-mute); font-size:.8rem; }
.admin-form-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.product-create-grid { grid-template-columns:repeat(8,minmax(0,1fr)); }
.category-create-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.table-create-grid { grid-template-columns:1fr 160px 1.2fr 220px; }
.admin-form-grid button { min-height:42px; }
.table-headline {
  padding:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.table-headline h3 { font-size:.95rem; }
.table-headline p { margin-top:4px; color:var(--fg-mute); font-size:.75rem; }
.table-scroll { overflow:auto; }
.menu-admin-table { min-width:1200px; }
.orders-table { min-width:980px; }
.tables-admin-table { min-width:1050px; }
.warning-box {
  margin-bottom:15px;
  padding:13px 15px;
  border:1px solid rgba(233,188,92,.22);
  background:rgba(233,188,92,.055);
  color:var(--fg-soft);
  border-radius:14px;
  font-size:.8rem;
}
.admin-health-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.admin-health-grid > div {
  padding:15px;
  border-radius:14px;
  background:#0B1931;
  border:1px solid var(--line-soft);
}
.admin-health-grid strong { display:block; font-size:1.5rem; }
.admin-health-grid span { color:var(--fg-mute); font-size:.75rem; }
.mini-list { display:grid; gap:7px; margin-top:14px; }
.mini-list > div {
  display:flex;
  justify-content:space-between;
  padding:9px 0;
  border-bottom:1px dashed var(--line-soft);
  font-size:.8rem;
}
.recent-orders { display:grid; gap:8px; }
.recent-order {
  display:grid;
  grid-template-columns:1.1fr 1fr auto;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border:1px solid var(--line-soft);
  border-radius:12px;
  background:#0B1931;
  font-size:.79rem;
}
.recent-order div { display:flex; gap:10px; flex-wrap:wrap; }
.recent-order span { color:var(--fg-mute); }
.admin-qr-box { display:flex; align-items:center; gap:10px; min-width:240px; }
.admin-qr-box img { width:78px; height:78px; padding:4px; background:#fff; border-radius:11px; }
.admin-qr-box code { color:var(--fg-mute); font-size:.65rem; word-break:break-all; direction:ltr; text-align:left; }
.table-actions { display:flex; flex-wrap:wrap; gap:6px; }
.settings-form { display:grid; gap:14px; }
.settings-card {
  padding:18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--surface);
}
.settings-card h3 { font-size:.95rem; }
.settings-card p { margin-top:4px; color:var(--fg-mute); font-size:.76rem; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.settings-grid label { color:var(--fg-soft); font-size:.76rem; }
.settings-grid input { display:block; margin-top:6px; }
.span-2 { grid-column:span 2; }

@media (max-width: 760px) {
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-sheet { padding:25px 18px; margin-top:16px; }
  .delivery-card { min-height:125px; }
  .admin-form-grid,
  .product-create-grid,
  .category-create-grid,
  .table-create-grid,
  .settings-grid { grid-template-columns:1fr; }
  .span-2 { grid-column:auto; }
  .admin-health-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .recent-order { grid-template-columns:1fr; }
  .table-bar-inner { align-items:flex-start; padding-block:11px; }
  .table-bar-note { display:block; margin:4px 0 0; }
}
.socials button {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:transparent;
  color:var(--fg);
}
.socials button:hover {
  border-color:var(--gold);
  color:var(--gold-2);
  transform:translateY(-2px);
}
/* ==========================================================================
   Dropdown Menu Styles
   ========================================================================== */
.dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-link {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  /* در حالت عادی مخفی است */
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  right: 0; /* برای سایت‌های راست‌چین */
  background-color: var(--bg-surface, #0f172a); /* رنگ پس‌زمینه تیره هماهنگ با سایت */
  min-width: 170px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  z-index: 100;
  
  /* انیمیشن نرم برای باز شدن */
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* وقتی ماوس روی wrapper می‌رود، منو نمایش داده می‌شود */
.dropdown-wrapper:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 16px !important;
  font-size: 0.95rem;
  color: var(--fg-base, #e2e8f0);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
/* تنظیمات منوی هدر و دکمه همبرگری در موبایل */
@media (max-width: 768px) {
  .site-header .header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .burger {
    display: block !important;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 101;
    padding: 4px 8px;
  }

  .site-header .nav {
    display: none !important;
  }

  .site-header .nav.is-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #0D2149;
    padding: 20px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (min-width: 769px) {
  .burger {
    display: none !important;
  }
}
/* ==========================================
   استایل‌های اختصاصی موبایل (پنل مدیریت)
   ========================================== */
@media (max-width: 768px) {

  /* ۱. اصلاح ساختار کلی و منوی کناری */
  .admin-shell {
    flex-direction: column !important;
    display: flex !important;
    min-height: 100vh;
  }

  .admin-side {
    width: 100% !important;
    position: relative !important;
    padding: 12px 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    box-sizing: border-box;
  }

  .admin-side .logo {
    width: 100%;
    margin-bottom: 8px;
    justify-content: center;
  }

  /* دکمه‌های منو در موبایل به‌صورت افقی و قابل اسکرول یا چند خطی */
  .admin-side .nav-item {
    flex: 1 1 calc(50% - 8px); /* هر دکمه نصف عرض */
    text-align: center;
    justify-content: center;
    padding: 10px 8px !important;
    font-size: 13px !important;
  }

  .admin-side .spacer {
    display: none !important;
  }

  /* ۲. اصلاح محتوای اصلی */
  .admin-main {
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* هدر بالای پنل */
  .admin-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* ۳. تک‌ستونه کردن تمام فرم‌ها و گریدها */
  .admin-form-grid,
  .product-create-grid,
  .table-create-grid,
  .product-edit-grid,
  .settings-grid,
  #reservation-create-form {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* اصلاح المان‌هایی که span-2 بودند */
  .span-2 {
    grid-column: span 1 !important;
  }

  /* ۴. اسکرول افقی ایمن برای جداول (جلوگیری از زوم‌اوت صفحه) */
  .table-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    display: block !important;
  }

  .data {
    min-width: 600px; /* جلوگیری از فشرده شدن بیش از حد ستون‌های جدول */
  }

  /* ۵. اصلاح مودال‌ها (پاپ‌آپ‌های ویرایش و دسته‌بندی) */
  .admin-modal-card {
    width: 95% !important;
    max-width: 100% !important;
    padding: 16px !important;
    margin: 10px auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  /* ۶. فیلترها و چیپ‌ها */
  #product-section-filters,
  #order-filters {
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 6px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .chip {
    flex-shrink: 0 !important;
  }

}

/* ==========================================
   ۱. استایل‌های سراسری (جلوگیری از CLS در دسکتاپ و موبایل)
   ========================================== */
[data-site-header] {
  min-height: 70px;
  display: block;
}

[data-site-footer] {
  min-height: 180px;
  display: block;
}
.button-container {
  display: flex;
  flex-direction: column; /* چیدمان ستونی دکمه‌ها زیر هم */
  gap: 15px; /* ایجاد فاصله خودکار و یکدست بین دکمه‌ها */
  align-items: center; /* مرکزچین کردن دکمه‌ها */
  width: 100%;
}
/* چیدمان شیک دکمه‌های هیرو */
.hero-buttons-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  width: 100%;
}

.hero-buttons-container .btn {
  white-space: nowrap;
  min-width: 180px;
}

@media (max-width: 480px) {
  .hero-buttons-container .btn {
    width: 100%; /* در موبایل‌های خیلی کوچک به صورت کامل و شیک زیر هم قرار می‌گیرند */
  }
}

#menu-root {
  min-height: 500px;
}




