/* =====================================================
   منوی کافه کایرا — نسخه غنی و ریسپانسیو
   ناوبری: top | left | right
   لوکیشن / اینستاگرام / تماس → فوتر
   ===================================================== */

:root {
  /* =====================================================
     🎨 پنل رنگ‌ها — فقط همین بخش را عوض کن
     هر قسمت سایت رنگ جدا دارد
     ===================================================== */

  /* ----- رنگ‌های اصلی برند ----- */
  --brand: #657572;              /* رنگ اصلی (سبز-خاکستری) */
  --brand-deep: #3f4844;         /* تیره‌تر برند */
  --brand-soft: #7d8b87;         /* روشن‌تر برند */
  --brand-mid: #4a534f;          /* میانه برند */
  --gold: #c4a574;               /* طلایی / اکسنت */

  /* ----- متن ----- */
  --ink: #232725;                /* متن اصلی تیره */
  --muted: #6a716d;              /* متن کم‌رنگ */
  --text-on-dark: #ebe6d6;       /* متن روی پس‌زمینه تیره */
  --text-on-dark-bright: #f7f3e8;/* متن روشن‌تر روی تیره */
  --text-white: #ffffff;         /* سفید */

  /* ----- کرم / بژ ----- */
  --cream: #ebe6d6;
  --cream-bright: #f7f3e8;
  --cream-deep: #d9d8c7;

  /* ----- پس‌زمینه صفحه ----- */
  --bg: #f0ede2;                 /* رنگ پایه پس‌زمینه */
  --bg-soft: #e8e4d6;
  --bg-page-top: #f3f0e6;        /* گرادیان بالای صفحه */
  --bg-page-bottom: #e9e5d7;     /* گرادیان پایین صفحه */
  --bg-glow-1: rgba(101,117,114,.14);  /* هاله تزئینی ۱ */
  --bg-glow-2: rgba(196,165,116,.16);  /* هاله تزئینی ۲ */
  --bg-glow-soft-1: rgba(101,117,114,.12);
  --bg-glow-soft-2: rgba(196,165,116,.12);

  /* ----- کارت / سطوح روشن ----- */
  --card: #fffcf6;
  --card-grad-top: #fffcf7;
  --card-grad-bottom: #f7f3ea;
  --line: rgba(101, 117, 114, 0.14);   /* خط و حاشیه */
  --shadow: 0 12px 34px rgba(42, 45, 43, 0.09);
  --shadow-lg: 0 22px 55px rgba(42, 45, 43, 0.16);

  /* ----- هدر ----- */
  --header-grad: linear-gradient(160deg, #65a194 0%, #65a194 42%, #65a194 100%);
  --header-text: var(--cream);
  --header-badge-bg: rgba(255,255,255,.08);
  --header-badge-border: rgba(217,216,199,.18);
  --header-badge-icon: var(--gold);
  --header-stats-bg: rgba(0,0,0,.16);
  --header-stats-border: rgba(217,216,199,.12);
  --header-stats-number: var(--text-white);
  --header-ornament-gold: rgba(196,165,116,.18);
  --header-ornament-white: rgba(255,255,255,.08);
  --header-frame-border: rgba(217,216,199,.12);
  --header-wave: var(--bg);            /* رنگ موج پایین هدر */
  --logo-ring: conic-gradient(from 200deg, rgba(196,165,116,.7), rgba(255,255,255,.25), rgba(196,165,116,.15), rgba(255,255,255,.35), rgba(196,165,116,.7));
  --logo-img-bg: #f3f0e8;
  --logo-img-border: rgba(47,54,51,.35);

  /* ----- نوار دسته‌ها (ناوبری) ----- */
  --nav-bg: rgba(236, 234, 216, 0.94);
  --nav-border: rgba(101,117,114,0.15);
  --nav-link: var(--brand);            /* رنگ لینک عادی */
  --nav-link-hover: var(--brand-deep); /* هاور */
  --nav-link-active: var(--brand-deep);/* فعال */
  --nav-underline: var(--brand);       /* خط زیر */
  --nav-side-bg: rgba(240, 237, 226, 0.96);
  --nav-side-active-bg: rgba(101,117,114,.12);

  /* ----- سرچ‌بار ----- */
  --search-bg: var(--header-grad);     /* پس‌زمینه سرچ (= هدر) */
  --search-text: var(--cream-bright);
  --search-placeholder: rgba(235, 230, 214, 0.72);
  --search-border: rgba(217,216,199,.22);
  --search-border-focus: rgba(217,216,199,.4);
  --search-icon: var(--cream);
  --search-clear-bg: rgba(255,255,255,.12);
  --search-clear-hover: rgba(255,255,255,.2);
  --search-shadow: 0 10px 28px rgba(47,54,51,.22);
  --search-focus-ring: rgba(101,117,114,.18);

  /* ----- عنوان بخش ----- */
  --section-title: var(--brand-deep);
  --section-kicker: var(--brand);
  --section-line: linear-gradient(90deg, var(--brand), var(--gold));
  --section-count-bg: rgba(255,255,255,.7);
  --section-count-text: var(--muted);
  --section-empty-bg: rgba(255,255,255,.45);

  /* ----- کارت محصول ----- */
  --product-bg: linear-gradient(180deg, var(--card-grad-top) 0%, var(--card-grad-bottom) 100%);
  --product-border: rgba(101,117,114,.1);
  --product-title: var(--ink);
  --product-desc: var(--muted);
  --product-chip-bg: rgba(101,117,114,.1);
  --product-chip-text: var(--brand-deep);
  --product-media-bg: linear-gradient(145deg, #e7e2d3, #f6f2e8);
  --product-media-glow: rgba(196,165,116,.18);
  --product-placeholder: var(--brand);
  --product-ph-ring-bg: rgba(255,255,255,.55);
  --product-ph-ring-border: rgba(101,117,114,.12);
  --product-ph-ring-icon: var(--brand-deep);
  --price-bg: linear-gradient(135deg, var(--brand), var(--brand-mid));
  --price-text: var(--cream-bright);
  --price-shadow: 0 6px 16px rgba(101,117,114,.22);
  --product-more-bg: #fff;
  --product-more-border: var(--line);
  --product-more-icon: var(--brand-deep);
  --product-more-hover-bg: var(--brand);
  --product-more-hover-icon: #fff;

  /* ----- فوتر ----- */
  --footer-bg: linear-gradient(160deg, #3f4844 0%, #2f3633 45%, #252b29 100%);
  --footer-text: var(--cream);
  --footer-wave: var(--bg);
  --footer-divider: rgba(217,216,199,.12);
  --footer-card-bg: rgba(255,255,255,.04);
  --footer-card-border: rgba(217,216,199,.1);
  --footer-card-hover-bg: rgba(255,255,255,.07);
  --footer-card-hover-border: rgba(217,216,199,.18);
  --footer-icon-bg: rgba(101,117,114,.35);
  --footer-icon-color: var(--cream-bright);
  --footer-ig-icon-bg: rgba(101,117,114,.45);  /* آیکون اینستا = تم سایت */
  --footer-btn-bg: rgba(235,230,214,.12);
  --footer-btn-border: rgba(217,216,199,.16);
  --footer-btn-text: var(--cream-bright);
  --footer-btn-hover-bg: rgba(235,230,214,.22);
  --footer-ig-btn-hover-bg: rgba(101,117,114,.45);
  --footer-logo-ring: linear-gradient(145deg, rgba(196,165,116,.55), rgba(255,255,255,.15));
  --footer-bottom-text: rgba(235,230,214,.6);

  /* ----- مودال جزئیات آیتم ----- */
  --modal-overlay: rgba(18, 22, 20, .55);
  --modal-bg: linear-gradient(180deg, #fffcf7, #f4f0e6);
  --modal-handle: #d5d0c2;
  --modal-media-bg: linear-gradient(145deg, #e4e0d2, #f5f1e7);
  --modal-media-icon: var(--brand);
  --modal-cat-bg: rgba(101,117,114,.1);
  --modal-cat-text: var(--brand);
  --modal-title: var(--ink);
  --modal-desc: #555b58;
  --modal-price-bg: linear-gradient(135deg, var(--brand), var(--brand-mid));
  --modal-price-text: var(--cream-bright);
  --modal-close-bg: var(--ink);
  --modal-close-text: var(--cream-bright);

  /* ----- اندازه / فاصله (معمولاً لازم نیست عوض شود) ----- */
  --radius: 22px;
  --page-x: clamp(16px, 4vw, 48px);
  --nav-h: 66px;
  --side-nav-w: 96px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --max: 100%;
  --content-max: 1280px;
  --touch: 44px;
  --font-display: 'Cormorant Garamond', 'Vazirmatn', serif;
  --font-body: 'Vazirmatn', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--bg-glow-soft-1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 20%, var(--bg-glow-soft-2), transparent 45%),
    linear-gradient(180deg, var(--bg-page-top) 0%, var(--bg-page-bottom) 100%);
  color: var(--ink);
  line-height: 1.75;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font-family: inherit; }

.page {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

/* پس‌زمینه تزئینی */
.bg-glow {
  position: fixed;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-glow-1), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  top: 20%;
  right: -10%;
  animation: drift 18s ease-in-out infinite alternate;
}
.bg-glow-2 {
  top: auto;
  bottom: 10%;
  right: auto;
  left: -12%;
  background: radial-gradient(circle, var(--bg-glow-2), transparent 70%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-30px, 40px) scale(1.08); }
}

/* ========== هدر ========== */
.hero {
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), transparent 40%),
    var(--header-grad);
  color: var(--header-text);
  text-align: center;
  padding: calc(42px + var(--safe-top)) var(--page-x) 70px;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hero-ornament {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, var(--header-ornament-gold), transparent 28%),
    radial-gradient(circle at 80% 20%, var(--header-ornament-white), transparent 25%);
  pointer-events: none;
}
.hero-ornament::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid var(--header-frame-border);
  border-radius: 28px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--header-badge-bg);
  border: 1px solid var(--header-badge-border);
  font-size: .8rem;
  letter-spacing: .08em;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  animation: fadeDown .7s ease both;
}
.hero-badge i { color: var(--header-badge-icon); }

.logo-wrap {
  width: clamp(100px, 20vw, 132px);
  height: clamp(100px, 20vw, 132px);
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 5px;
  background: var(--logo-ring);
  box-shadow:
    0 16px 40px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.15);
  animation: fadeDown .7s ease .08s both;
}
.logo-wrap img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--logo-img-bg);
  border: 3px solid var(--logo-img-border);
}

.cafe-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7.5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: .14em;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
  animation: fadeDown .7s ease .14s both;
}
.cafe-sub {
  margin-top: 8px;
  opacity: .82;
  font-size: clamp(.9rem, 2.8vw, 1.08rem);
  letter-spacing: .16em;
  font-weight: 300;
  animation: fadeDown .7s ease .2s both;
}

.hero-stats {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--header-stats-bg);
  border: 1px solid var(--header-stats-border);
  backdrop-filter: blur(10px);
  animation: fadeDown .7s ease .26s both;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}
.stat strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--header-stats-number);
  line-height: 1.2;
}
.stat span {
  font-size: .72rem;
  opacity: .75;
  margin-top: 2px;
}
.stat-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(217,216,199,.35);
}
.stat-link strong i.fa-instagram {
  color: var(--text-on-dark-bright);
  opacity: .95;
}
.stat-link:hover strong,
.stat-link:hover strong i {
  color: var(--gold);
}

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  color: var(--header-wave);
  line-height: 0;
}
.hero-wave svg { width: 100%; height: clamp(40px, 6vw, 74px); display: block; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ========== ناوبری — شبیه نسخه قبلی سایت ========== */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: none;
}
.cat-nav-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  padding: 16px var(--page-x);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

/* مثل منوی قبلی: آیکون + متن ساده، رنگ #657572 */
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px 8px;
  min-height: auto;
  border-radius: 0;
  color: var(--nav-link);
  font-weight: 600;
  font-size: clamp(.88rem, 2.4vw, .98rem);
  letter-spacing: .02em;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  background: transparent;
  position: relative;
  transition: color .2s ease;
}
.cat-link i {
  color: inherit;
  font-size: 1rem;
  opacity: .95;
  width: 1.15em;
  text-align: center;
}
.cat-link:hover {
  color: var(--nav-link-hover);
  background: transparent;
  transform: none;
  border: none;
}
/* خط زیر مثل نسخه قبلی */
.cat-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--nav-underline);
  transition: width .28s ease;
}
.cat-link:hover::after { width: 100%; }
.cat-link.active {
  color: var(--nav-link-active);
  background: transparent;
  box-shadow: none;
  border: none;
}
.cat-link.active i {
  color: inherit;
}
.cat-link.active::after {
  width: 100%;
  height: 2px;
  background: var(--nav-underline);
}

/* ========== main ========== */
.main {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(18px, 3.5vw, 36px) var(--page-x) clamp(24px, 4vw, 40px);
  box-sizing: border-box;
}

/* جستجو — هم‌رنگ هدر، تمام‌عرض محتوا */
.search-wrap {
  position: relative;
  margin: 0 0 16px;
  width: 100%;
  max-width: 100%;
}
.search-wrap > i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--search-icon);
  opacity: .85;
  pointer-events: none;
  z-index: 1;
}
.search-wrap input {
  width: 100%;
  border: 1px solid var(--search-border);
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), transparent 45%),
    var(--search-bg);
  border-radius: 18px;
  padding: 16px 50px 16px 50px;
  min-height: 54px;
  font-size: 16px;
  color: var(--search-text);
  outline: none;
  box-shadow: var(--search-shadow);
  transition: .2s ease;
  caret-color: var(--search-text);
}
.search-wrap input::placeholder {
  color: var(--search-placeholder);
}
.search-wrap input:focus {
  border-color: var(--search-border-focus);
  box-shadow:
    0 0 0 4px var(--search-focus-ring),
    var(--search-shadow);
}
.search-clear {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--search-clear-bg);
  color: var(--search-text);
  border: 1px solid var(--search-border);
  z-index: 1;
}
.search-clear:hover {
  background: var(--search-clear-hover);
}
.search-meta {
  margin-bottom: 18px;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(18px, 3vw, 28px);
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--section-kicker);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 4px;
  opacity: .9;
}
.section-kicker i {
  color: var(--section-kicker);
  font-size: .95rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  color: var(--section-title);
  font-weight: 500;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: var(--section-line);
}
.section-count {
  font-size: .78rem;
  color: var(--section-count-text);
  background: var(--section-count-bg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  margin-bottom: 8px;
}

.menu-section {
  margin-bottom: clamp(42px, 7vw, 78px);
  scroll-margin-top: calc(var(--nav-h) + 18px);
}
.section-empty, .no-match {
  color: var(--muted);
  font-size: .95rem;
  padding: 18px;
  background: var(--section-empty-bg);
  border-radius: 16px;
  border: 1px dashed var(--line);
}

/* ========== کارت محصول ========== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2.4vw, 24px);
  width: 100%;
}

.product-card {
  --delay: 0s;
  background: var(--product-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--product-border);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: right;
  min-width: 0;
  animation: cardIn .55s ease both;
  animation-delay: var(--delay);
  position: relative;
}
.product-card.is-hidden { display: none; }
.menu-section.is-hidden { display: none; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.product-card:active { transform: scale(.985); }

.product-media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 30%, var(--product-media-glow), transparent 40%),
    var(--product-media-bg);
  overflow: hidden;
  position: relative;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.product-card:hover .product-media img { transform: scale(1.06); }

.product-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 62%);
  transform: translateX(120%);
  transition: transform .7s ease;
  pointer-events: none;
}
.product-card:hover .product-shine { transform: translateX(-120%); }

.product-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--product-placeholder);
  padding: 16px;
  text-align: center;
}
.ph-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--product-ph-ring-bg);
  border: 1px solid var(--product-ph-ring-border);
  box-shadow: 0 8px 20px rgba(101,117,114,.1);
  font-size: 1.4rem;
  color: var(--product-ph-ring-icon);
}
.product-placeholder span {
  font-size: .84rem;
  font-weight: 600;
  opacity: .7;
  word-break: break-word;
}

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.product-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 600;
  color: var(--product-title);
  line-height: 1.35;
}
.product-cat-chip {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 700;
  color: var(--product-chip-text);
  background: var(--product-chip-bg);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.product-desc {
  font-size: .82rem;
  color: var(--product-desc);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  line-height: 1.65;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.product-price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  background: #65a194;
  color: var(--price-text);
  font-size: .9rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--price-shadow);
  max-width: 100%;
}
.product-price small {
  font-size: .72rem;
  font-weight: 500;
  opacity: .85;
}
/* دو قیمت: ۱۵۵,۰۰۰ – ۱۱۰,۰۰۰ */
.product-price .price-dual {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.product-price .price-sep {
  opacity: .65;
  font-weight: 500;
  padding: 0 1px;
}
.product-price .price-alt {
  opacity: .92;
  font-weight: 600;
}
.item-modal-price .price-dual {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.item-modal-price .price-sep { opacity: .7; }
.item-modal-price .price-alt { opacity: .92; font-weight: 600; }
.product-more {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--product-more-bg);
  border: 1px solid var(--product-more-border);
  color: var(--product-more-icon);
  transition: .2s ease;
}
.product-card:hover .product-more {
  background: var(--product-more-hover-bg);
  color: var(--product-more-hover-icon);
  border-color: transparent;
}

/* ========== فوتر غنی ========== */
.site-footer {
  position: relative;
  background: #65a194;
  color: var(--footer-text);
  margin-top: 20px;
  padding: 0 0 calc(22px + var(--safe-bottom));
  overflow: hidden;
}
.footer-wave {
  color: var(--footer-wave);
  line-height: 0;
  margin-bottom: -1px;
}
.footer-wave svg {
  width: 100%;
  height: clamp(28px, 5vw, 50px);
  display: block;
}

.footer-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 10px var(--page-x) 0;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--footer-divider);
}
.footer-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: var(--footer-logo-ring);
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.footer-logo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--logo-img-bg);
}
.footer-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: .12em;
}
.footer-en {
  opacity: .75;
  font-size: .9rem;
  letter-spacing: .08em;
  margin-top: 2px;
}
.footer-tag {
  opacity: .55;
  font-size: .8rem;
  margin-top: 4px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.footer-card {
  background: var(--footer-card-bg);
  border: 1px solid var(--footer-card-border);
  border-radius: 20px;
  padding: 20px 18px;
  backdrop-filter: blur(8px);
  transition: .2s ease;
  min-width: 0;
}
.footer-card:hover {
  background: var(--footer-card-hover-bg);
  border-color: var(--footer-card-hover-border);
  transform: translateY(-2px);
}
.footer-card-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--footer-icon-bg);
  color: var(--footer-icon-color);
  margin-bottom: 12px;
  font-size: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.footer-card-icon.ig {
  background: var(--footer-ig-icon-bg);
  color: var(--footer-icon-color);
}
.footer-card-icon.ig i {
  color: var(--footer-icon-color);
}
.footer-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.footer-card p {
  font-size: .88rem;
  opacity: .78;
  line-height: 1.8;
  margin-bottom: 14px;
  word-break: break-word;
}
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--footer-btn-bg);
  border: 1px solid var(--footer-btn-border);
  color: var(--footer-btn-text);
  font-weight: 600;
  font-size: .88rem;
  transition: .2s ease;
}
.footer-btn:hover {
  background: var(--footer-btn-hover-bg);
  transform: translateY(-1px);
}
.footer-btn.ig:hover {
  background: var(--footer-ig-btn-hover-bg);
  border-color: var(--footer-btn-border);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--footer-divider);
  font-size: .78rem;
  color: var(--footer-bottom-text);
  opacity: 1;
}
.footer-sep { opacity: .5; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state i {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: .5;
}
.hidden { display: none !important; }

/* ========== مودال ========== */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(4px);
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  width: min(480px, 100%);
  background: var(--modal-bg);
  border-radius: 26px 26px 0 0;
  max-height: min(90vh, 90dvh);
  overflow: auto;
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 -20px 60px rgba(0,0,0,.2);
}
.overlay.open .sheet { transform: translateY(0); }
.sheet-handle {
  width: 44px; height: 4px;
  background: var(--modal-handle);
  border-radius: 99px;
  margin: 10px auto 0;
}
.item-modal-media {
  width: 100%;
  height: clamp(180px, 42vw, 250px);
  background: var(--modal-media-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--modal-media-icon);
  font-size: 2.5rem;
  overflow: hidden;
}
.item-modal-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.sheet-body { padding: 18px var(--page-x) calc(22px + var(--safe-bottom)); }
.sheet-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--modal-cat-text);
  background: var(--modal-cat-bg);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.sheet h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 8px;
  text-align: right;
}
#item-modal-desc {
  color: var(--modal-desc);
  font-size: .95rem;
  line-height: 1.85;
}
.item-modal-price {
  display: inline-block;
  margin-top: 14px;
  background: var(--modal-price-bg);
  color: var(--modal-price-text);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--price-shadow);
}
.sheet-close {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  min-height: var(--touch);
  border-radius: 14px;
  background: var(--modal-close-bg);
  color: var(--modal-close-text);
  font-weight: 700;
  font-size: .95rem;
}

/* ========== ناوبری کناری ========== */
body.nav-right .cat-nav,
body.nav-left .cat-nav {
  position: fixed;
  top: 0; bottom: 0;
  width: var(--side-nav-w);
  border-bottom: none;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  overflow: hidden;
  background: var(--nav-side-bg);
}
body.nav-right .cat-nav {
  right: 0; left: auto;
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 28px rgba(42,45,43,.07);
}
body.nav-left .cat-nav {
  left: 0; right: auto;
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 28px rgba(42,45,43,.07);
}
body.nav-right .cat-nav-inner,
body.nav-left .cat-nav-inner {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 8px;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
}
body.nav-right .cat-link,
body.nav-left .cat-link {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 6px;
  border-radius: 12px;
  text-align: center;
  white-space: normal;
  font-size: .72rem;
  line-height: 1.3;
  color: var(--nav-link);
}
body.nav-right .cat-link i,
body.nav-left .cat-link i {
  font-size: 1.2rem;
  color: inherit;
}
body.nav-right .cat-link span,
body.nav-left .cat-link span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.nav-right .cat-link::after,
body.nav-left .cat-link::after {
  display: none;
}
body.nav-right .cat-link.active,
body.nav-left .cat-link.active {
  background: var(--nav-side-active-bg);
  color: var(--nav-link-active);
}

body.nav-right .hero,
body.nav-right .main,
body.nav-right .site-footer {
  padding-right: calc(var(--side-nav-w) + var(--safe-right));
}
body.nav-left .hero,
body.nav-left .main,
body.nav-left .site-footer {
  padding-left: calc(var(--side-nav-w) + var(--safe-left));
}
body.nav-right .menu-section,
body.nav-left .menu-section { scroll-margin-top: 16px; }
body.nav-right,
body.nav-left { scroll-padding-top: 16px; }

/* ========== BREAKPOINTS ========== */
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --page-x: clamp(14px, 4.5vw, 20px); }
  .menu-grid { grid-template-columns: 1fr; }
  body.nav-top .cat-nav-inner { justify-content: flex-start; }
  .hero-ornament::after { inset: 10px; border-radius: 18px; }
  .hero-stats { gap: 10px; padding: 10px 12px; }
  .footer-brand { flex-direction: column; text-align: center; }
  .search-wrap input { min-height: 50px; padding: 14px 46px; }
  .main { padding-top: 16px; }
}
@media (max-width: 480px) {
  body.nav-right,
  body.nav-left { --side-nav-w: 74px; }
  body.nav-right .cat-link span,
  body.nav-left .cat-link span { font-size: .64rem; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overlay { align-items: center; padding: 24px; }
  .sheet {
    border-radius: 24px;
    max-height: min(82vh, 82dvh);
    transform: translateY(18px) scale(.98);
    opacity: 0;
  }
  .overlay.open .sheet {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 1200px) {
  body.nav-right,
  body.nav-left { --side-nav-w: 112px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 20px; padding-bottom: 40px; }
  .logo-wrap { width: 70px; height: 70px; margin-bottom: 8px; }
  .cafe-name { font-size: 1.6rem; }
  .hero-stats { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-glow, .product-card, .hero-badge, .logo-wrap, .cafe-name, .cafe-sub, .hero-stats {
    animation: none !important;
  }
  *, *::before, *::after {
    transition-duration: .01ms !important;
  }
}

@media print {
  .cat-nav, .overlay, .search-wrap, .bg-glow { display: none !important; }
  body.nav-right .hero,
  body.nav-right .main,
  body.nav-right .site-footer,
  body.nav-left .hero,
  body.nav-left .main,
  body.nav-left .site-footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .product-card { break-inside: avoid; box-shadow: none; }
}
