/* ============================================================
   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; }

/* Thin, brand-tinted scrollbar for the page and any scrollable inner panel.
   Firefox: scrollbar-width / scrollbar-color   ·   WebKit/Blink: ::-webkit-scrollbar */
html, .bp-body {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 70%, transparent) transparent;
}
html::-webkit-scrollbar,
.bp-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html::-webkit-scrollbar-track,
.bp-body::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb,
.bp-body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 60%, transparent);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover,
.bp-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  background-clip: padding-box;
  border: 2px solid transparent;
}
[data-theme="dark"] html,
[data-theme="dark"] .bp-body {
  scrollbar-color: color-mix(in srgb, var(--brand-green-500) 60%, transparent) transparent;
}
[data-theme="dark"] html::-webkit-scrollbar-thumb,
[data-theme="dark"] .bp-body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand-green-500) 55%, transparent);
  background-clip: padding-box;
}
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;
  /* display: grid; */
  place-items: center;
  position: relative;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.35));
}
.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; }

/* Language dropdown — globe trigger + popover menu */
.lang-wrap {
  position: relative;
}
.lang-trigger { /* uses base .icon-btn styles */ }
.lang-trigger[aria-expanded="true"] {
  background: var(--bg-tint);
  color: var(--primary);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s var(--ease-out);
}
.lang-menu[hidden] { display: none; }
.lang-menu:not([hidden]) {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: start;
}
.lang-option:hover { background: var(--bg-tint); color: var(--ink-strong); }
.lang-option .lang-check { width: 16px; height: 16px; opacity: 0; transition: opacity 0.15s ease; color: var(--primary); }
.lang-option.active { color: var(--ink-strong); background: var(--bg-tint); }
.lang-option.active .lang-check { opacity: 1; }

/* Shared count badge for cart & favorites icon buttons */
.fav-btn .count, .cart-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,
.cart-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 100%; 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 — slide-by-slide, 3 visible on desktop */
.ads { padding-block: clamp(8px, 1.5vw, 16px) clamp(20px, 3vw, 32px); }
.ad-viewport {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y; /* still allow vertical page scroll while dragging horizontally */
  /* Force LTR layout so the track always starts at the LEFT inside the
     viewport. Without this, an RTL page right-aligns the oversized track
     and the user only sees the trailing cards. */
  direction: ltr;
  /* Negative-margin trick gives the cards breathing room on hover/scale
     without changing the carousel's outer placement. */
  padding-block: 14px;
  margin-block: -14px;
}
.ad-viewport.dragging { cursor: grabbing; }
.ad-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.ad-card {
  flex: 0 0 calc((var(--ad-vp-w, 1200px) - 40px) / 3);
  max-width: 100%;
  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: block;
  text-decoration: none;
  color: inherit;
}
.ad-viewport:not(.dragging) .ad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: var(--line-strong);
}
@media (max-width: 880px) {
  .ad-track { gap: 16px; }
  .ad-card { flex-basis: calc((var(--ad-vp-w, 720px) - 16px) / 2); }
}
@media (max-width: 540px) {
  .ad-track { gap: 12px; }
  .ad-card { flex-basis: calc(var(--ad-vp-w, 360px) * 0.82); }
}

.ad-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tint);
}
.ad-card-media img,
.ad-card-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* Gradient overlay at the bottom of every card so the white title is readable
   on any photo or video frame. */
.ad-card-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.5) 35%,
    rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 1;
}
.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: 3;
  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; }

/* Title overlay — sits on top of the media with white text + soft shadow */
.ad-card-title {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 14px 20px 16px;
  font-weight: 800;
  font-size: clamp(14px, 1.5vw, 17px);
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
  z-index: 2;
  /* Title follows page direction so Arabic/Kurdish reads RTL even though
     the carousel layout is forced LTR. */
  direction: rtl;
  text-align: start;
  pointer-events: none;
}
html[lang="en"] .ad-card-title { direction: ltr; }

/* CATEGORY TABS */
.cat-bar-wrap {
  position: sticky;
  top: 70px;
  z-index: 60;
  margin-top: 4px;
  background: transparent;
  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); }

.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%);
  min-height: max(320px, 42vh);
  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;
  /* Off-screen and invisible by default. Adding 80px extra makes sure
     the shadow doesn't bleed up into the viewport while closed. */
  transform: translate(-50%, calc(100% + 80px));
  visibility: hidden;
  transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
  will-change: transform;
}
.bottom-panel.open {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.45s var(--ease-out), visibility 0s linear 0s;
}
@media (min-width: 768px) {
  .bottom-panel { border-radius: 28px; max-height: 80vh; }
  /* Lift it 24px above the viewport bottom on desktop for a floating feel */
  .bottom-panel.open { transform: translate(-50%, -24px); }
}
.bp-handle {
  width: 44px;
  height: 4px;
  background: var(--line-strong);
  border-radius: 999px;
  margin: 12px auto 0;
  cursor: grab;
  touch-action: none;
}
.bottom-panel.dragging .bp-handle { cursor: grabbing; }
.bottom-panel.dragging { transition: none; }
.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;
  overscroll-behavior: contain;
}

/* Wider drag-affordance: clicking anywhere in the top band also drags */
.bp-drag-band {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  cursor: grab;
  touch-action: none;
  z-index: 1;
}
.bottom-panel.dragging .bp-drag-band { cursor: grabbing; }

/* BP — Product details */
.bp-product { padding-top: 4px; }
.bp-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bp-product-cat {
  display: inline-block;
  background: var(--bg-tint);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bp-product-title {
  font-family: var(--font-display-active);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin: 0;
  flex: 1;
  min-width: 0;
}
html[lang="en"] .bp-product-title { font-style: italic; }
/* Image card: image fills, share button hangs in the top-trailing corner.
   On desktop we cap the height so the photo doesn't dominate the panel. */
.bp-product-img {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tint);
  margin-bottom: 18px;
  max-height: 420px;
}
@media (min-width: 768px) {
  .bp-product-img {
    aspect-ratio: auto;
    height: 340px;
    max-height: 40vh;
  }
}
.bp-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-share-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.96);
  color: var(--brand-green-900);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px -4px rgba(0,0,0,0.35);
  transition: transform 0.2s var(--ease-spring), background 0.2s ease;
  z-index: 2;
}
.bp-share-btn:hover { transform: scale(1.08); background: #fff; }
.bp-share-btn:active { transform: scale(0.94); }
.bp-share-btn svg { width: 18px; height: 18px; }
.bp-product-desc {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.bp-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.bp-product-price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.bp-product-price-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-family: var(--font-body-latin);
  margin-bottom: 4px;
}
.bp-product-price-value {
  font-family: var(--font-body-latin);
  font-weight: 800;
  font-size: 28px;
  color: var(--brand-orange-deep);
}
[data-theme="dark"] .bp-product-price-value { color: var(--brand-yellow); }
.bp-product-price-value .unit { font-size: 14px; color: var(--ink-soft); font-weight: 600; margin-inline-start: 4px; }
.bp-product-order {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.bp-product-order:hover { transform: translateY(-2px); background: var(--brand-green-700); }
[data-theme="dark"] .bp-product-order:hover { background: var(--brand-green-500); }
.bp-product-order svg { width: 18px; height: 18px; }
html[dir="rtl"] .bp-product-order svg { transform: scaleX(-1); }

/* 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; }

/* ============================================================
   CART  (rendered in the Bottom Panel)
============================================================ */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg-tint);
  border-radius: var(--radius-md);
}
.cart-item-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elev);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-item-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-unit-price {
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--font-body-latin);
}
.cart-item-remove {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.cart-item-remove:hover { color: #dc2626; background: var(--bg-elev); }
.cart-item-remove svg { width: 16px; height: 16px; }

.cart-item-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed var(--line);
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-strong);
  transition: background 0.15s ease;
}
.qty-btn:hover { background: var(--bg-tint); color: var(--primary); }
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-btn svg { width: 14px; height: 14px; }
.qty-value {
  font-family: var(--font-body-latin);
  font-weight: 800;
  min-width: 22px;
  text-align: center;
  font-size: 14px;
}
.cart-item-line-total {
  font-family: var(--font-body-latin);
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-orange-deep);
}
[data-theme="dark"] .cart-item-line-total { color: var(--brand-yellow); }
.cart-item-line-total .unit { font-size: 11px; color: var(--ink-soft); margin-inline-start: 4px; font-weight: 600; }

.cart-totals {
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.cart-totals-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.cart-totals-row.subtotal {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
}
.cart-totals-label {
  color: var(--ink-soft);
  font-weight: 600;
}
.cart-totals-row.subtotal .cart-totals-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-strong);
}
.cart-totals-value {
  font-family: var(--font-body-latin);
  font-weight: 800;
  color: var(--ink-strong);
}
.cart-totals-row.subtotal .cart-totals-value {
  font-size: 22px;
  color: var(--brand-orange-deep);
}
[data-theme="dark"] .cart-totals-row.subtotal .cart-totals-value { color: var(--brand-yellow); }
.cart-totals-value .unit { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-inline-start: 4px; }

/* Bottom Panel step actions (Continue + Back / Continue + Continue Shopping) */
.bp-step-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-green-700); }
[data-theme="dark"] .btn-primary:hover { background: var(--brand-green-500); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--ink-strong);
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.btn-secondary:hover { background: var(--bg-tint); border-color: var(--primary); }

/* ============================================================
   CHECKOUT STEPS  (location / details / summary)
============================================================ */
.bp-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 14px;
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 700;
}
.bp-stepper .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.2s ease, transform 0.2s ease;
}
.bp-stepper .dot.active { background: var(--primary); transform: scale(1.3); }
.bp-stepper .dot.done { background: var(--primary); }
.bp-stepper .line { flex: 1; height: 1px; background: var(--line); }

/* Location step */
.loc-gps {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-strong);
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
  margin-bottom: 14px;
  text-align: start;
  font-family: inherit;
}
.loc-gps:hover { border-color: var(--primary); background: var(--bg-elev); }
.loc-gps svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.loc-gps:disabled { opacity: 0.6; cursor: wait; }
.loc-map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tint);
  margin-bottom: 8px;
  border: 1px solid var(--line);
  z-index: 0;  /* Leaflet pane defaults to 400+, keep map under BP UI */
}
.loc-status {
  padding: 8px 4px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
.loc-status.success { color: var(--primary); font-weight: 700; }
.loc-status.error { color: #dc2626; }

/* Details step */
.bp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.bp-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-form .label-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-strong);
}
.bp-form .label-text .required { color: #dc2626; margin-inline-start: 4px; }
.bp-form input,
.bp-form textarea {
  padding: 12px 16px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink-strong);
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}
.bp-form input:focus,
.bp-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-elev);
}
.bp-form input::placeholder,
.bp-form textarea::placeholder { color: var(--ink-faint); }
.bp-form textarea { resize: vertical; min-height: 80px; font-family: inherit; }

/* Summary step */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
.summary-table th,
.summary-table td {
  padding: 10px 12px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}
.summary-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-tint);
}
.summary-table th:nth-child(2),
.summary-table td:nth-child(2) { text-align: center; }
.summary-table th:last-child,
.summary-table td:last-child { text-align: end; font-family: var(--font-body-latin); font-weight: 700; }
.summary-table tfoot td {
  font-weight: 800;
  font-size: 15px;
  border-bottom: none;
  border-top: 2px solid var(--line-strong);
  padding-top: 14px;
  color: var(--ink-strong);
}
.summary-table tfoot td:last-child { color: var(--brand-orange-deep); font-size: 18px; }
[data-theme="dark"] .summary-table tfoot td:last-child { color: var(--brand-yellow); }

.summary-info {
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.summary-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.summary-info-row .key {
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 80px;
  flex-shrink: 0;
}
.summary-info-row .val {
  color: var(--ink-strong);
  word-break: break-word;
  flex: 1;
}

.payment-section {
  margin-bottom: 16px;
}
.payment-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong);
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-tint);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-elev));
}
.payment-option input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
}
.payment-option .pm-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-strong);
}


/* ============================================================
   FIRST-VISIT LANGUAGE PICKER
   - Fixed full-viewport overlay with blurred backdrop.
   - Cannot be dismissed except by picking a language.
   - Hidden by default; JS toggles `hidden` after checking sessionStorage.
============================================================ */
.lang-picker {
  position: fixed;
  inset: 0;
  z-index: 200;                  /* above the bottom panel (105) and toolbar (90) */
  background: color-mix(in srgb, var(--brand-green-900) 55%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: ltr;                /* keep the modal LTR regardless of page lang */
  animation: lp-fade 0.4s ease;
}
.lang-picker[hidden] { display: none; }
.lang-picker.closing { animation: lp-fade-out 0.32s ease forwards; }
@keyframes lp-fade     { from { opacity: 0; }                            to { opacity: 1; } }
@keyframes lp-fade-out { from { opacity: 1; pointer-events: auto; }      to { opacity: 0; pointer-events: none; } }

.lang-picker-card {
  background: var(--bg-elev);
  border-radius: 28px;
  padding: 36px 28px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  text-align: center;
  animation: lp-pop 0.5s var(--ease-spring);
}
.lang-picker.closing .lang-picker-card { animation: lp-pop-out 0.3s ease forwards; }
@keyframes lp-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes lp-pop-out {
  from { opacity: 1; transform: translateY(0)     scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(0.96); }
}

.lang-picker-logo {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  /* display: grid; */
  place-items: center;
}
.lang-picker-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(245, 158, 11, 0.4));
}
.lang-picker-title {
  font-family: var(--font-display-active);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink-strong);
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}
.lang-picker-title .dot,
.lang-picker-sub   .dot { color: var(--brand-orange); }
.lang-picker-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.lang-picker-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-picker-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-tint);
  border: 2px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
  text-align: start;
  width: 100%;
  animation: lp-slide-in 0.55s var(--ease-out) both;
}
.lang-picker-btn:nth-child(1) { animation-delay: 0.18s; }
.lang-picker-btn:nth-child(2) { animation-delay: 0.28s; }
.lang-picker-btn:nth-child(3) { animation-delay: 0.38s; }
.lang-picker-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--bg-elev);
  box-shadow: 0 14px 32px -10px color-mix(in srgb, var(--accent) 45%, transparent);
}
.lang-picker-btn:active { transform: translateY(0); }
.lang-picker-btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
@keyframes lp-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-mark {
  width: 50px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 6px 14px -4px rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.lp-mark svg { width: 100%; height: 100%; display: block; }
.lang-picker-btn:hover .lp-mark { transform: scale(1.08) rotate(-2deg); }

.lp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-name {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink-strong);
  line-height: 1.15;
}
.lp-name-en {
  font-family: var(--font-body-latin);
  font-style: italic;
}
.lp-hint {
  font-size: 10.5px;
  color: var(--ink-faint);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body-latin);
}
.lp-go {
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}
.lang-picker-btn:hover .lp-go { transform: translateX(5px); }
.lp-go svg { width: 20px; height: 20px; display: block; }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  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;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease, visibility 0s linear 0.4s;
  pointer-events: none;
  max-width: 90vw;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease, visibility 0s linear 0s;
}

/* 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; flex-wrap: wrap; }
.footer-bottom .made .heart { color: var(--brand-orange); font-size: 14px; }
.footer-bottom .made .davinda-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-strong);
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  font-family: var(--font-body-latin);
  letter-spacing: 0.02em;
}
.footer-bottom .made .davinda-mark img { width: 14px; height: 14px; object-fit: contain; display: block; }

/* =========================================================
   BOTTOM TOOLBAR  (sticky action bar above the footer area)
========================================================= */
/* The toolbar is position:fixed; we reserve room for it on the FOOTER
   (rather than the body) so the footer background extends all the way
   to the screen edge — no page background bleeds through underneath. */
.footer { padding-bottom: 96px; }
@media (min-width: 768px) { .footer { padding-bottom: 104px; } }

.toolbar {
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 90;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 32px -10px rgba(0,0,0,0.28);
  padding: 6px;
  display: flex;
  gap: 6px;
  max-width: 520px;
  margin-inline: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
}
.toolbar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-strong);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}
.toolbar-btn:hover { background: var(--bg-tint); color: var(--primary); }
.toolbar-btn:first-child { background: var(--primary); color: var(--primary-ink); }
.toolbar-btn:first-child:hover { background: var(--brand-green-700); color: var(--primary-ink); }
[data-theme="dark"] .toolbar-btn:first-child:hover { background: var(--brand-green-500); }
.toolbar-btn svg { width: 18px; height: 18px; }

/* =========================================================
   CONTACT-US PANEL
========================================================= */
.contact-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.contact-logo {
  width: 60px; height: 60px;
  /* display: grid; */
  place-items: center;
  flex-shrink: 0;
}
.contact-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.3));
}
.contact-head-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-head-info .name {
  font-family: var(--font-display-active);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink-strong);
  line-height: 1.1;
}
html[lang="en"] .contact-head-info .name { font-style: italic; }
.contact-head-info .tag { font-size: 12px; font-weight: 700; color: var(--brand-orange); letter-spacing: 0.06em; }

.contact-quick {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-quick-btn {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  font-family: inherit;
}
.contact-quick-btn:hover { border-color: var(--primary); background: var(--bg-elev); color: var(--primary); }
.contact-quick-btn svg { width: 22px; height: 22px; color: var(--primary); }

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.contact-row[href]:hover { background: var(--bg-elev); transform: translateY(-1px); }
.contact-row .icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-row .icon svg { width: 18px; height: 18px; }
.contact-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-row .body .label { font-size: 11px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-row .body .value { font-size: 14px; font-weight: 700; color: var(--ink-strong); word-break: break-word; }
.contact-row .arrow { color: var(--ink-faint); }
.contact-row .arrow svg { width: 16px; height: 16px; }
html[dir="rtl"] .contact-row .arrow svg { transform: scaleX(-1); }

.contact-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 22px 0 12px;
}
.contact-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.contact-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 6px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease;
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.contact-social:hover { transform: translateY(-3px); border-color: var(--primary); }
.contact-social svg { width: 22px; height: 22px; }
.contact-social.wa svg { color: #25D366; }
.contact-social.fb svg { color: #1877F2; }
.contact-social.ig svg { color: #E4405F; }
.contact-social.tt svg { color: #000; }
[data-theme="dark"] .contact-social.tt svg { color: #fff; }

/* ratings block */
.ratings-overall {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-yellow) 20%, var(--bg-tint)), var(--bg-tint));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.ratings-overall .score {
  font-family: var(--font-body-latin);
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  color: var(--brand-orange-deep);
}
[data-theme="dark"] .ratings-overall .score { color: var(--brand-yellow); }
.ratings-overall .meta { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ratings-overall .meta .stars-row { display: flex; gap: 2px; }
.ratings-overall .meta .count { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.stars-row svg { width: 16px; height: 16px; color: var(--brand-yellow); }
.stars-row svg.empty { color: var(--line-strong); }

.ratings-breakdown { display: flex; flex-direction: column; gap: 10px; }
.ratings-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-tint);
  border-radius: 12px;
  font-size: 13px;
}
.ratings-row .label { font-weight: 700; color: var(--ink-strong); }
.ratings-row .stars-row svg { width: 14px; height: 14px; }
.ratings-row .num {
  font-family: var(--font-body-latin);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-strong);
  min-width: 32px;
  text-align: end;
}

/* =========================================================
   RATE PANEL  (write-a-review form)
========================================================= */
.rate-block {
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.rate-block .rate-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 8px;
}
.rate-block.overall {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-yellow) 14%, var(--bg-tint)), var(--bg-tint));
}
.rate-block.overall .rate-label { font-size: 14px; }

/* Interactive star rating component */
.star-rating {
  display: inline-flex;
  gap: 4px;
  direction: ltr; /* always LTR so stars 1→5 read left-to-right */
}
.star-rating .star {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--line-strong);
  transition: transform 0.15s var(--ease-spring), color 0.15s ease;
}
.star-rating .star svg { width: 24px; height: 24px; display: block; }
.star-rating.large .star svg { width: 32px; height: 32px; }
.star-rating .star:hover { transform: scale(1.15); }
.star-rating .star.filled { color: var(--brand-yellow); }
.star-rating .star.filled svg { fill: currentColor; }

.rate-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rate-sub-row:last-child { border-bottom: none; }
.rate-sub-row .label { font-weight: 700; font-size: 13px; color: var(--ink-strong); }

/* RESPONSIVE */
@media (max-width: 640px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
}
@media (max-width: 540px) {
  .nav-actions { gap: 4px; }
  .icon-btn { width: 38px; height: 38px; }
  .cat-bar-wrap { top: 66px; }
  .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; }
  .cat-bar-wrap { top: 58px; }
  .bp-fav-thumb { width: 56px; height: 56px; }
}
@media (max-width: 360px) { .product-grid { grid-template-columns: 1fr; } }

/* Locked scroll while a bottom panel or overlay is open.
   We lock the html element's overflow only. This prevents the document
   from scrolling but keeps the body at its current position — so there
   is no flicker or jump when locking/unlocking. */
html.no-scroll {
  overflow: hidden !important;
  overscroll-behavior: contain;
}
