/* ===========================================================
   آشپزخانه مرکزی نیکا — تم مشکی/طلایی
   فونت‌ها: Lalezar (عنوان‌ها) + Vazirmatn (متن)
   =========================================================== */

:root{
  /* ---- پس‌زمینه: قهوه‌ای تیره و گرم (به‌جای مشکی سرد) ---- */
  --bg:#1c130c;
  --bg-soft:#2a1d12;
  --bg-elevated:#382818;

  /* ---- طلایی زعفرانی: رنگ اصلی برند ---- */
  --gold:#e3a73e;
  --gold-bright:#f4c463;
  --gold-dim:#9c7536;

  /* ---- قرمز فلفلی/گوجه‌ای: رنگ دوم، اشتها‌آور برای نشان‌ها و دکمه‌ها ---- */
  --accent:#c1432a;
  --accent-bright:#e2613f;
  --accent-dim:#7a3322;

  --cream:#faf1e2;
  --text-muted:#c9b59a;
  --border-soft:rgba(227,167,62,0.25);
  --shadow-gold:0 8px 30px rgba(227,167,62,0.18);
  --shadow-accent:0 8px 26px rgba(193,67,42,0.25);
  --radius-lg:18px;
  --radius-md:12px;
  --font-display:'Lalezar', 'Vazirmatn', sans-serif;
  --font-body:'Vazirmatn', Tahoma, sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--cream);
  font-family:var(--font-body);
  line-height:1.8;
  direction:rtl;
}

img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

.text-gold{ color:var(--gold); }

/* ===================== دکمه‌ها ===================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 28px;
  border-radius:999px;
  font-weight:700;
  font-size:0.95rem;
  border:1px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-gold{
  background:linear-gradient(135deg, var(--gold), var(--gold-bright));
  color:#1f1408;
}
.btn-gold:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-gold);
}
.btn-outline-gold{
  border:1.5px solid var(--gold);
  color:var(--gold);
  background:transparent;
}
.btn-outline-gold:hover{
  background:var(--gold);
  color:#1f1408;
}
.btn-ghost{
  color:var(--text-muted);
  border:1px solid var(--border-soft);
}
.btn-ghost:hover{ color:var(--cream); border-color:var(--gold); }
.btn-lg{ padding:16px 38px; font-size:1.05rem; }

/* ===================== هدر ===================== */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(10,10,12,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-soft);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  gap:20px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-size:1.6rem;
}
.logo-icon{ font-size:1.4rem; }
.logo-accent{ color:var(--gold); }

.main-nav{ display:flex; gap:28px; }
.nav-link{
  font-weight:500;
  color:var(--text-muted);
  position:relative;
  padding:6px 2px;
  transition:color .2s ease;
}
.nav-link:hover, .nav-link.active{ color:var(--gold); }
.nav-link.active::after{
  content:"";
  position:absolute;
  bottom:-2px; right:0; left:0;
  height:2px;
  background:var(--gold);
  border-radius:2px;
}
.nav-cta{ padding:10px 22px; font-size:0.9rem; }

@media (max-width:720px){
  .main-nav{ display:none; }
}

/* ===================== هرو (صفحه اول) ===================== */
.hero{
  position:relative;
  padding:90px 0 70px;
  overflow:hidden;
  text-align:center;
}
.hero-glow{
  position:absolute;
  top:-200px; left:50%;
  transform:translateX(-50%);
  width:600px; height:600px;
  background:radial-gradient(circle, rgba(227,167,62,0.18), transparent 70%);
  pointer-events:none;
}
.hero-inner{ position:relative; z-index:1; }
.hero-eyebrow{
  color:var(--gold);
  font-weight:600;
  letter-spacing:1px;
  margin-bottom:14px;
}
.hero-title{
  font-family:var(--font-display);
  font-size:clamp(2.1rem, 5vw, 3.4rem);
  line-height:1.5;
  margin-bottom:22px;
}
.hero-desc{
  max-width:560px;
  margin:0 auto 32px;
  color:var(--text-muted);
  font-size:1.05rem;
}
.hero-actions{ margin-bottom:40px; }

.hero-cup{ display:flex; justify-content:center; }
.cup-svg{ width:120px; height:120px; }
.steam{
  transform-origin:center;
  animation:steam-rise 3s ease-in-out infinite;
  opacity:0;
}
.steam-1{ animation-delay:0s; }
.steam-2{ animation-delay:.6s; }
.steam-3{ animation-delay:1.2s; }
@keyframes steam-rise{
  0%{ opacity:0; transform:translateY(6px) scaleY(0.8); }
  30%{ opacity:0.8; }
  100%{ opacity:0; transform:translateY(-14px) scaleY(1.15); }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .steam{ animation:none; opacity:0.5; }
}

/* ===================== جداکننده اسلیمی ===================== */
.eslimi-divider{
  max-width:600px;
  margin:10px auto 30px;
  padding:0 24px;
}
.eslimi-divider svg{ width:100%; height:24px; display:block; }

/* ===================== ویژگی‌ها ===================== */
.features{ padding:30px 0 60px; }
.features-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.feature-card{
  background:var(--bg-soft);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-lg);
  padding:30px 24px;
  text-align:center;
  transition:transform .25s ease, border-color .25s ease;
}
.feature-card:hover{
  transform:translateY(-4px);
  border-color:var(--gold);
}
.feature-icon{ font-size:2rem; margin-bottom:14px; }
.feature-card h3{ font-family:var(--font-display); font-size:1.25rem; margin-bottom:10px; color:var(--gold); }
.feature-card p{ color:var(--text-muted); font-size:0.92rem; }

@media (max-width:820px){
  .features-grid{ grid-template-columns:1fr; }
}

/* ===================== بنر فراخوان ===================== */
.cta-banner{
  background:linear-gradient(135deg, var(--bg-elevated), var(--bg-soft));
  border-top:1px solid var(--border-soft);
  border-bottom:1px solid var(--border-soft);
  padding:60px 0;
  text-align:center;
}
.cta-inner h2{ font-family:var(--font-display); font-size:1.9rem; margin-bottom:12px; }
.cta-inner p{ color:var(--text-muted); margin-bottom:26px; }

/* ===================== هدر صفحات داخلی ===================== */
.page-header{ padding:60px 0 20px; text-align:center; }
.page-title{ font-family:var(--font-display); font-size:clamp(1.8rem, 4vw, 2.6rem); margin:10px 0; }
.page-subtitle{ color:var(--text-muted); }

/* ===================== فرم جست‌وجو (کاملاً کشویی) ===================== */
.search-section{ padding:20px 0 10px; }

.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;
}

/* ---- نوار همیشه‌نمایان: تنها چیزی که قبل از باز کردن دیده می‌شود ---- */
.search-toggle-bar{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--bg-soft);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-lg);
  padding:16px 22px;
  color:var(--cream);
  font-family:var(--font-body);
  font-weight:700;
  font-size:0.98rem;
  text-align:right;
  transition:border-color .25s ease, color .25s ease;
}
.search-toggle-bar:hover{ border-color:var(--gold); }
.search-toggle-bar.has-filters{ border-color:var(--gold-dim); color:var(--gold); }
.search-toggle-icon{ display:flex; align-items:center; color:var(--gold); flex:0 0 auto; }
.search-toggle-label{ flex:1; }
.search-toggle-bar .chevron-icon{ color:var(--text-muted); transition:transform .3s ease; flex:0 0 auto; }
.search-toggle-bar[aria-expanded="true"] .chevron-icon{ transform:rotate(180deg); color:var(--gold); }
.filter-dot{
  width:7px; height:7px;
  border-radius:50%;
  background:var(--gold-bright);
  box-shadow:0 0 0 3px rgba(227,167,62,0.2);
  flex:0 0 auto;
}

/* ---- پنل کشویی: شامل کل فرم جست‌وجو + پیل‌های دسته‌بندی ---- */
.search-panel{
  max-height:0;
  opacity:0;
  margin-top:0;
  overflow:hidden;
  transition:max-height .4s ease, opacity .3s ease, margin-top .3s ease;
}
.search-panel.open{
  max-height:1000px;
  opacity:1;
  margin-top:16px;
}

.search-panel .category-pills{ padding:0 2px 16px; }

.search-form{
  background:var(--bg-soft);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-lg);
  padding:20px 24px;
}
.search-form .search-row:not(:first-child){
  border-top:1px solid var(--border-soft);
  padding-top:16px;
}

.search-row{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.search-row:last-child{ margin-bottom:0; }
.search-field{ display:flex; flex-direction:column; gap:6px; flex:1; min-width:160px; }
.search-field-grow{ flex:2.5; min-width:220px; }
.search-field label{ font-size:0.82rem; color:var(--text-muted); }
.search-field input,
.search-field select{
  background:var(--bg-elevated);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-md);
  padding:11px 14px;
  color:var(--cream);
  font-family:var(--font-body);
  font-size:0.95rem;
  outline:none;
  transition:border-color .2s ease;
}
.search-field input:focus,
.search-field select:focus{
  border-color:var(--gold);
}
.search-field-btn{
  flex-direction:row;
  align-items:flex-end;
  gap:10px;
  flex:0;
}

:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:2px;
}

@media (max-width:720px){
  .search-row{ flex-direction:column; }
  .search-field{ width:100%; }
  .search-toggle-bar{ font-size:0.9rem; padding:14px 16px; }
}

/* ===================== دسته‌بندی (پیل‌ها) ===================== */
.category-pills{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:20px 2px 6px;
  scrollbar-width:thin;
}
.pill{
  flex:0 0 auto;
  padding:9px 20px;
  border-radius:999px;
  border:1px solid var(--border-soft);
  color:var(--text-muted);
  font-size:0.9rem;
  white-space:nowrap;
  transition:all .2s ease;
}
.pill:hover{ border-color:var(--gold); color:var(--cream); }
.pill-active{
  background:var(--gold);
  color:#1f1408;
  border-color:var(--gold);
  font-weight:700;
}

/* ===================== عنوان بخش‌ها ===================== */
.section-title{
  font-family:var(--font-display);
  font-size:1.5rem;
  margin-bottom:22px;
  display:flex;
  align-items:center;
  gap:10px;
}
.badge-icon{ font-size:1.3rem; }
.all-items-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.results-count{
  color:var(--text-muted);
  font-size:0.9rem;
  border:1px solid var(--border-soft);
  padding:5px 14px;
  border-radius:999px;
}

/* ===================== بخش‌های ویژه ===================== */
.special-section, .bestseller-section, .all-items-section{
  padding:35px 0;
}
.scroll-row{
  display:flex;
  gap:20px;
  overflow-x:auto;
  padding-bottom:10px;
}
.scroll-row .menu-card{ flex:0 0 260px; }

/* ===================== گرید آیتم‌ها ===================== */
.menu-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
  gap:22px;
}

/* ===================== کارت منو ===================== */
.menu-card{
  position:relative;
  background:var(--bg-soft);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.menu-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-gold);
  border-color:var(--gold);
}
/* گوشه تزئینی طلایی، الهام از کاشی‌کاری ایرانی */
.menu-card::before{
  content:"";
  position:absolute;
  top:0; right:0;
  width:26px; height:26px;
  border-top:2px solid var(--gold);
  border-right:2px solid var(--gold);
  border-radius:0 var(--radius-lg) 0 0;
  opacity:0.7;
  pointer-events:none;
}
.menu-card-img{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--bg-elevated);
}
.menu-card-img img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}
.menu-card:hover .menu-card-img img{ transform:scale(1.07); }
.img-placeholder{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:2.4rem;
  color:var(--gold-dim);
}
.menu-card-body{ padding:18px; }
.menu-card-cat{
  font-size:0.74rem;
  color:var(--gold);
  border:1px solid var(--border-soft);
  border-radius:999px;
  padding:3px 10px;
  display:inline-block;
  margin-bottom:10px;
}
.menu-card-body h3{
  font-family:var(--font-display);
  font-size:1.15rem;
  margin-bottom:8px;
}
.menu-card-desc{
  color:var(--text-muted);
  font-size:0.88rem;
  margin-bottom:14px;
  min-height:40px;
}
.menu-card-footer{ display:flex; justify-content:space-between; align-items:center; }
.price{ color:var(--gold-bright); font-weight:700; }

/* ریبون‌ها */
.ribbon{
  position:absolute;
  top:14px; left:-6px;
  z-index:2;
  font-size:0.72rem;
  font-weight:700;
  padding:5px 14px 5px 18px;
  border-radius:0 999px 999px 0;
}
.ribbon-gold{ background:var(--gold); color:#1f1408; }
.ribbon-dark{ background:var(--accent); color:var(--cream); }

/* ===================== حالت خالی ===================== */
.empty-state{
  text-align:center;
  padding:60px 20px;
  border:1px dashed var(--border-soft);
  border-radius:var(--radius-lg);
}
.empty-icon{ font-size:2.6rem; margin-bottom:14px; }
.empty-state h3{ font-family:var(--font-display); margin-bottom:8px; font-size:1.3rem; }
.empty-state p{ color:var(--text-muted); margin-bottom:20px; }

/* ===================== فوتر ===================== */
.site-footer{
  border-top:1px solid var(--border-soft);
  padding:50px 0 30px;
  text-align:center;
  margin-top:40px;
}
.footer-brand{
  display:flex; justify-content:center; align-items:center; gap:10px;
  font-family:var(--font-display); font-size:1.3rem; margin-bottom:10px;
}
.footer-text{ color:var(--text-muted); margin-bottom:18px; }
.footer-divider{ max-width:200px; margin:0 auto 18px; }
.footer-divider svg{ width:100%; height:20px; }
.footer-copy{ color:var(--gold-dim); font-size:0.82rem; }

/* ===================== دکمه بازگشت به بالا ===================== */
.scroll-top-btn{
  position:fixed;
  bottom:24px; left:24px;
  width:46px; height:46px;
  border-radius:50%;
  background:var(--gold);
  color:#1f1408;
  border:none;
  font-size:1.1rem;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-gold);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:all .3s ease;
  z-index:99;
}
.scroll-top-btn.visible{
  opacity:1; visibility:visible; transform:translateY(0);
}