/* ============================================================
   FRUTISIMO — Design Tokens
   ============================================================ */
:root {
  --brand-green-900: #0A2E1B;
  --brand-green-800: #0F4D2C;
  --brand-green-700: #1A6938;
  --brand-green-600: #2D8B4E;
  --brand-green-500: #4FAE6F;
  --brand-green-100: #DDEFCB;
  --brand-orange: #F59E0B;
  --brand-orange-deep: #E8780C;
  --brand-yellow: #FACC15;
  --brand-lime: #B8D936;

  --bg: #FFFBF5;
  --bg-elev: #FFFFFF;
  --bg-tint: #F4F0E6;
  --surface-card: #FFFFFF;
  --surface-card-2: #F8F4EA;
  --ink-strong: #0A2E1B;
  --ink: #1A2E20;
  --ink-soft: #5C6B5F;
  --ink-faint: #94A18F;
  --line: rgba(15, 77, 44, 0.10);
  --line-strong: rgba(15, 77, 44, 0.18);
  --primary: var(--brand-green-800);
  --primary-ink: #FFFFFF;
  --accent: var(--brand-orange);
  --shadow-card: 0 1px 0 rgba(15,77,44,0.04), 0 12px 28px -16px rgba(15,77,44,0.18);
  --shadow-pop: 0 24px 60px -24px rgba(15,77,44,0.35);

  --font-display: "Fraunces", "Rakkas", "IBM Plex Sans Arabic", serif;
  --font-body-latin: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body-arabic: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display-arabic: "Rakkas", "Fraunces", serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg: #07170E;
  --bg-elev: #0E2418;
  --bg-tint: #112D1E;
  --surface-card: #112D1E;
  --surface-card-2: #163623;
  --ink-strong: #F2F8EE;
  --ink: #E6EEDF;
  --ink-soft: #A8B6A6;
  --ink-faint: #6F7E6B;
  --line: rgba(184, 217, 54, 0.12);
  --line-strong: rgba(184, 217, 54, 0.22);
  --primary: var(--brand-lime);
  --primary-ink: #07170E;
  --shadow-card: 0 1px 0 rgba(0,0,0,0.4), 0 14px 30px -16px rgba(0,0,0,0.55);
  --shadow-pop: 0 26px 70px -24px rgba(0,0,0,0.7);
}

html[lang="en"] { --font-body: var(--font-body-latin); --font-display-active: var(--font-display); }
html[lang="ar"], html[lang="ku"] { --font-body: var(--font-body-arabic); --font-display-active: var(--font-display-arabic); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

body::before, body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.5;
  transition: opacity 0.5s var(--ease-out);
}
body::before {
  top: -120px; inset-inline-start: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle at 50% 50%, var(--brand-lime), transparent 70%);
}
body::after {
  bottom: -160px; inset-inline-end: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle at 50% 50%, var(--brand-orange), transparent 70%);
  opacity: 0.32;
}
[data-theme="dark"] body::before { opacity: 0.18; }
[data-theme="dark"] body::after { opacity: 0.18; }

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

::selection { background: var(--brand-yellow); color: var(--brand-green-900); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 1;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-deep) 100%);
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  font-style: italic;
  position: relative;
  box-shadow: 0 8px 22px -8px rgba(245, 158, 11, 0.55);
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: -4px; inset-inline-end: 4px;
  width: 14px; height: 14px;
  background: var(--brand-green-700);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-30deg);
  box-shadow: -6px 2px 0 -3px var(--brand-green-600);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-orange-deep);
  margin-top: 4px;
  font-weight: 700;
  font-family: var(--font-body-latin);
}
[data-theme="dark"] .brand-tag { color: var(--brand-yellow); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--ink);
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { background: var(--bg-tint); color: var(--primary); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 22px; height: 22px; }

.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.lang-pill {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  font-family: var(--font-body-latin);
}
.lang-pill.active {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--primary) 70%, transparent);
}

.fav-btn .count {
  position: absolute;
  top: 2px; inset-inline-end: 2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--brand-orange);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  display: grid; place-items: center;
  transform: scale(0);
  transition: transform 0.25s var(--ease-spring);
  font-family: var(--font-body-latin);
}
.fav-btn.has-items .count { transform: scale(1); }

/* HERO — compact, easy to swap per-restaurant */
.hero {
  padding-block: clamp(20px, 3vw, 32px) clamp(16px, 2vw, 24px);
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 28px);
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 220px; min-width: 0; }
.hero-title {
  font-family: var(--font-display-active);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin: 0 0 6px;
}
html[lang="en"] .hero-title { font-style: italic; }
.hero-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(13px, 1.4vw, 15px);
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 22px;
  flex: 1 1 320px;
  max-width: 460px;
  text-align: start;
  font: inherit;
  font-size: 14px;
  color: var(--ink-faint);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}
.search-trigger:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.search-trigger svg {
  width: 20px; height: 20px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.search-trigger span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* AD CAROUSEL — 3 cards (image or video), title at bottom */
.ads { padding-block: clamp(8px, 1.5vw, 16px) clamp(20px, 3vw, 32px); }
.ad-row {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) {
  .ad-row {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    /* extra negative margin + padding so the scroll area extends to viewport edge */
    margin-inline: calc(-1 * clamp(16px, 4vw, 32px));
    padding-inline: clamp(16px, 4vw, 32px);
    padding-block: 4px 8px;
    gap: 14px;
  }
  .ad-row::-webkit-scrollbar { display: none; }
  .ad-card { flex: 0 0 78%; max-width: 360px; scroll-snap-align: center; }
}
.ad-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: var(--line-strong);
}
.ad-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tint);
}
.ad-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.ad-card:hover .ad-card-media img { transform: scale(1.04); }

.ad-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.94);
  color: var(--brand-green-900);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.45);
  transition: transform 0.2s var(--ease-spring);
}
.ad-play:hover { transform: scale(1.08); }
.ad-play:active { transform: scale(0.96); }
.ad-play svg { width: 26px; height: 26px; transform: translateX(2px); fill: currentColor; }
html[dir="rtl"] .ad-play svg { transform: translateX(-2px) scaleX(-1); }

.ad-card-title {
  padding: 18px 22px;
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--ink-strong);
  line-height: 1.35;
}

/* CATEGORY TABS */
.cat-bar-wrap {
  position: sticky;
  top: 70px;
  z-index: 60;
  margin-top: 4px;
  background: var(--bg);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}
/* When the bar is "stuck" (scrolled below its anchor), tint + soft border */
.cat-bar-wrap.stuck {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
/* Outer scroll container — has fade-edge indicator for scrollability */
.cat-bar-scroll {
  position: relative;
  /* Soft fade on both ends to hint at horizontal scroll */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.cat-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-inline: clamp(16px, 4vw, 32px);
  /* Generous padding-block so chip shadow has room and isn't clipped by overflow */
  padding-block: 14px;
  -webkit-overflow-scrolling: touch;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.cat-chip .emoji { font-size: 18px; line-height: 1; }
.cat-chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.cat-chip.active {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}

/* MENU AREA */
.menu-area { padding-block: clamp(24px, 4vw, 48px); }
.sub-section { margin-bottom: clamp(48px, 6vw, 72px); scroll-margin-top: 160px; }
.sub-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 28px);
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-strong);
}
.sub-title {
  font-family: var(--font-display-active);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 38px);
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
html[lang="en"] .sub-title { font-style: italic; }
.sub-title .dot {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 999px;
  flex-shrink: 0;
}
.sub-count {
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body-latin);
  letter-spacing: 0.05em;
}

.product-grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* PRODUCT CARD */
.card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.5s var(--ease-out) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: var(--line-strong); }

.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-tint);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-spring);
}
.card:hover .card-img img { transform: scale(1.06); }
.card-img-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 56px;
  opacity: 0.35;
  pointer-events: none;
}

.fav-toggle {
  position: absolute;
  top: 10px; inset-inline-end: 10px;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease-spring);
  z-index: 2;
  backdrop-filter: blur(4px);
}
.fav-toggle:hover { transform: scale(1.1); color: #E11D48; }
.fav-toggle.on { color: #E11D48; background: white; }
.fav-toggle.on svg { fill: currentColor; animation: heart-pop 0.5s var(--ease-spring); }
@keyframes heart-pop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.4); } }
.fav-toggle svg { width: 18px; height: 18px; }

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
}
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-body-latin);
  font-weight: 800;
  color: var(--brand-orange-deep);
  font-size: 16px;
}
[data-theme="dark"] .price { color: var(--brand-yellow); }
.price .unit { font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.05em; }
.card-add {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--ink);
  display: grid; place-items: center;
  transition: all 0.2s ease;
}
.card-add:hover { background: var(--primary); color: var(--primary-ink); transform: scale(1.08); }
.card-add svg { width: 16px; height: 16px; }

/* EMPTY STATE */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-soft);
  grid-column: 1 / -1;
}
.empty-emoji { font-size: 56px; margin-bottom: 12px; }
.empty-title {
  font-family: var(--font-display-active);
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 700;
}
html[lang="en"] .empty-title { font-style: italic; }

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--brand-green-900) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  z-index: 110;
  background: var(--bg-elev);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  inset-inline: 0;
  bottom: 0;
  max-height: 92vh;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.modal.open { transform: translateY(0); pointer-events: auto; }
@media (min-width: 720px) {
  .modal {
    inset: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 30px)) scale(0.98);
    width: min(820px, 92vw);
    max-height: 88vh;
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
  }
  .modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
}

.modal-close {
  position: absolute;
  top: 16px; inset-inline-end: 16px;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--ink-strong);
  display: grid; place-items: center;
  z-index: 5;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.modal-close:hover { transform: rotate(90deg); }
.modal-close svg { width: 20px; height: 20px; }

.modal-scroll { overflow-y: auto; flex: 1; }

.modal-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tint);
}
.modal-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body { padding: clamp(22px, 4vw, 36px); }
.modal-cat-pill {
  display: inline-block;
  background: var(--bg-tint);
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.modal-title {
  font-family: var(--font-display-active);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin: 0 0 14px 0;
}
html[lang="en"] .modal-title { font-style: italic; }
.modal-desc { color: var(--ink-soft); font-size: 16px; line-height: 1.6; margin: 0 0 24px 0; }
.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: var(--surface-card-2);
  border-radius: var(--radius-md);
  margin-top: 16px;
  flex-wrap: wrap;
}
.modal-price { display: flex; flex-direction: column; line-height: 1.2; }
.modal-price-label {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: var(--font-body-latin);
}
.modal-price-value {
  font-family: var(--font-body-latin);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--brand-orange-deep);
}
[data-theme="dark"] .modal-price-value { color: var(--brand-yellow); }
.modal-price-value .unit { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-inline-start: 4px; }

.btn-order {
  background: var(--primary);
  color: var(--primary-ink);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn-order:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-order svg { width: 18px; height: 18px; }

/* REUSABLE BOTTOM PANEL */
.bp-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--brand-green-900) 55%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.bp-backdrop.open { opacity: 1; pointer-events: auto; }

.bottom-panel {
  position: fixed;
  z-index: 105;
  bottom: 0;
  left: 50%;
  width: min(760px, 100%);
  max-height: 88vh;
  background: var(--bg-elev);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px -10px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translate(-50%, 100%);
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
}
.bottom-panel.open {
  transform: translate(-50%, 0);
}
@media (min-width: 768px) {
  .bottom-panel {
    border-radius: 28px;
    bottom: 24px;
    max-height: 80vh;
  }
}
.bp-handle {
  width: 44px;
  height: 4px;
  background: var(--line-strong);
  border-radius: 999px;
  margin: 12px auto 0;
}
.bp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 8px;
}
.bp-title {
  margin: 0;
  font-family: var(--font-display-active);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}
html[lang="en"] .bp-title { font-style: italic; }
.bp-body {
  padding: 8px 24px 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* BP — Favorites list */
.bp-fav-list { display: flex; flex-direction: column; gap: 10px; }
.bp-fav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.bp-fav-item:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.bp-fav-thumb {
  width: 64px; height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tint);
}
.bp-fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-fav-info { flex: 1; min-width: 0; }
.bp-fav-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-strong);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bp-fav-cat { font-size: 12px; color: var(--ink-soft); }
.bp-fav-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
html[dir="rtl"] .bp-fav-price-col { align-items: flex-start; }
.bp-fav-price {
  font-family: var(--font-body-latin);
  font-weight: 800;
  color: var(--brand-orange-deep);
  font-size: 15px;
  white-space: nowrap;
}
[data-theme="dark"] .bp-fav-price { color: var(--brand-yellow); }
.bp-fav-price .unit { font-size: 11px; color: var(--ink-soft); font-weight: 600; margin-inline-start: 3px; }
.bp-fav-remove {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  background: var(--bg-tint);
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}
.bp-fav-remove:hover { color: #E11D48; background: color-mix(in srgb, #E11D48 14%, var(--bg-tint)); }
.bp-fav-remove svg { width: 16px; height: 16px; }

.bp-empty { text-align: center; padding: 48px 20px; color: var(--ink-soft); }
.bp-empty .emoji { font-size: 56px; margin-bottom: 12px; }
.bp-empty-title { font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 16px; }

/* BP — Search */
.bp-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  margin-bottom: 16px;
}
.bp-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.bp-search svg { width: 20px; height: 20px; color: var(--ink-soft); flex-shrink: 0; }
.bp-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
  padding-block: 6px;
}
.bp-search input::placeholder { color: var(--ink-faint); }
.bp-search-clear {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: none;
  place-items: center;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.bp-search.has-text .bp-search-clear { display: grid; }
.bp-search-clear:hover { background: var(--surface-card); color: var(--ink); }
.bp-search-clear svg { width: 14px; height: 14px; }
.bp-search-meta {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 12px;
  font-family: var(--font-body-latin);
  letter-spacing: 0.04em;
}
.bp-search-results { display: flex; flex-direction: column; gap: 10px; }

/* BP — Video player */
.bp-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.bp-video video { width: 100%; height: 100%; display: block; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink-strong);
  color: var(--bg-elev);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
  z-index: 200;
  transition: transform 0.4s var(--ease-spring);
  pointer-events: none;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* FOOTER */
.footer {
  margin-top: 60px;
  padding-block: 48px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { margin: 12px 0 0; color: var(--ink-soft); max-width: 38ch; font-size: 14px; }
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.footer-col a, .footer-col span { display: block; padding-block: 4px; font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-faint);
}
.footer-bottom .made { display: flex; align-items: center; gap: 6px; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; font-size: 22px; border-radius: 12px; }
}
@media (max-width: 540px) {
  .nav-actions { gap: 4px; }
  .lang-pill { padding: 6px 9px; font-size: 11px; }
  .icon-btn { width: 38px; height: 38px; }
  .cat-bar-wrap { top: 64px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-name { font-size: 13px; }
  .price { font-size: 14px; }
  .modal-price-row { flex-direction: column; align-items: stretch; }
  .btn-order { justify-content: center; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .search-trigger { flex: 0 0 auto; max-width: none; width: 100%; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
  .nav-inner { padding-block: 10px; }
  .bp-fav-thumb { width: 56px; height: 56px; }
}
@media (max-width: 360px) { .product-grid { grid-template-columns: 1fr; } }

body.no-scroll { overflow: hidden; }
