/* =====================================================================
   style.css — Adam Roastery (محمص آدم)
   Luxury roastery theme: espresso brown · brushed gold · cream
   Mobile-first, RTL-native.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brown-900: #271913;
  --brown-800: #34221a;
  --brown-700: #432d20;
  --brown-600: #573a28;
  --brown-500: #6f4a31;
  --brown-400: #8a6244;
  --gold: #caa65b;
  --gold-light: #ecd49a;
  --gold-dark: #a8802f;
  --cream: #faf5ec;
  --cream-2: #f3ead8;
  --beige: #e7d9bf;
  --beige-2: #ddc9a6;
  --ink: #2c1c11;
  --muted: #8a7559;
  --danger: #b4452f;
  --success: #5c7a3f;

  --bg: var(--cream);
  --card: #fffdf8;
  --line: rgba(120, 90, 50, 0.16);
  --shadow-sm: 0 2px 10px rgba(60, 40, 20, 0.08);
  --shadow-md: 0 10px 30px rgba(60, 40, 20, 0.14);
  --shadow-lg: 0 22px 60px rgba(40, 25, 12, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --header-h: 76px;
  --bottomnav-h: 66px;
  --shell-max: 540px;

  --font-scale: 1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Per-language fonts ---------- */
html[lang="ar"] { --font-head: "El Messiri", "Cormorant Garamond", serif; --font-body: "Tajawal", system-ui, sans-serif; }
html[lang="he"] { --font-head: "Frank Ruhl Libre", "Cormorant Garamond", serif; --font-body: "Heebo", system-ui, sans-serif; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: calc(16px * var(--font-scale));
  line-height: 1.6;
  color: var(--ink);
  background: var(--brown-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4, .display { font-family: var(--font-head); font-weight: 700; line-height: 1.25; }

/* ---------- App shell (phone-like frame on desktop) ---------- */
.app-shell {
  position: relative;
  max-width: var(--shell-max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
  overflow: hidden;
  padding-bottom: calc(var(--bottomnav-h) + 12px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(39,25,19,0.98), rgba(39,25,19,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(202,166,91,0.22);
}
.header-left, .header-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(202,166,91,0.28);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.icon-btn:hover { background: rgba(202,166,91,0.18); transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.whatsapp { background: #1faa55; border-color: #25d366; color: #fff; }
.icon-btn.whatsapp:hover { background: #25d366; }

.brand-badge {
  width: 66px; height: 66px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, var(--brown-600), var(--brown-900));
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 0 0 3px rgba(202,166,91,0.12);
  overflow: hidden;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

.lang-pill {
  display: flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 14px;
  border-radius: 22px;
  color: var(--cream);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(202,166,91,0.4);
  font-size: 13.5px; font-weight: 600;
  transition: background .25s, transform .25s var(--ease);
}
.lang-pill:hover { background: rgba(202,166,91,0.2); }
.lang-pill svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 22px 30px;
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(39,25,19,0.28) 0%, rgba(39,25,19,0.48) 55%, rgba(39,25,19,0.92) 100%),
    url("../assets/images/logo/logo.svg.png");
  background-color: #241710;
  background-size: cover, contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 14px; letter-spacing: 1px; color: var(--gold-light);
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.hero-title {
  font-size: clamp(34px, 9vw, 46px);
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}
.hero-title .dot { color: var(--gold); }
.hero-sub { font-size: 15px; color: var(--cream-2); max-width: 30ch; margin-bottom: 18px; opacity: 0.95; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (min-width: 1200px) {
  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(39,25,19,0.25) 0%, rgba(39,25,19,0.55) 55%, rgba(39,25,19,0.95) 100%),
      url("../assets/images/logo/profile.jpeg");
    background-size: cover;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700; font-size: 14.5px;
  transition: transform .2s var(--ease), box-shadow .25s, background .25s, filter .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.96); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: var(--brown-900);
  box-shadow: 0 8px 20px rgba(168,128,47,0.35);
}
.btn-gold:hover { filter: brightness(1.05); box-shadow: 0 12px 26px rgba(168,128,47,0.45); transform: translateY(-2px); }
.btn-outline { background: rgba(255,255,255,0.08); color: var(--cream); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: rgba(202,166,91,0.2); }
.btn-brown { background: var(--brown-700); color: var(--cream); }
.btn-brown:hover { background: var(--brown-600); }
.btn-block { width: 100%; }

/* ---------- Search ---------- */
.search-wrap { position: relative; padding: 18px 16px 6px; z-index: 15; }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px 6px 4px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .25s;
}
.search-bar:focus-within { border-color: var(--gold); box-shadow: 0 6px 22px rgba(168,128,47,0.18); }
.search-bar input { flex: 1; border: none; background: none; padding: 12px 0; font-size: 15px; }
.search-bar input:focus { outline: none; }
.search-bar .search-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--brown-900); }
.search-bar .search-ico svg { width: 18px; height: 18px; }
.search-clear { color: var(--muted); padding: 6px; display: none; }
.search-bar.has-text .search-clear { display: block; }
.search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline: 16px;
  z-index: 30;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(202,166,91,.35);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-lg);
}
.search-suggest.hidden { display: none; }
.search-suggest-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px;
  border-radius: 12px;
  text-align: start;
  color: var(--brown-800);
  background: transparent;
}
.search-suggest-item:hover,
.search-suggest-item:focus-visible {
  background: rgba(236,212,154,.26);
}
.search-suggest-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--cream);
}
.search-suggest-text {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.search-suggest-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.35;
}
.search-suggest-text small {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
}

/* ---------- Section headers ---------- */
.section { padding: 22px 16px 6px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.section-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 20px; color: var(--brown-800);
}
.section-title .crown { color: var(--gold-dark); width: 22px; height: 22px; }
.section-title::after {
  content: ""; flex: 1;
}
.link-all { font-size: 13px; color: var(--gold-dark); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link-all svg { width: 14px; height: 14px; }

/* divider flourish */
.flourish { display: flex; align-items: center; gap: 10px; color: var(--gold); justify-content: center; padding: 6px 0; }
.flourish::before, .flourish::after { content: ""; height: 1px; width: 46px; background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- Categories slider ---------- */
.cats-wrap {
  position: relative;
  margin-inline: -2px;
}
.cats {
  display: flex; gap: 14px; overflow-x: auto; padding: 8px 34px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; width: 84px; text-align: center; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.cat-thumb {
  width: 78px; height: 78px; border-radius: 50%;
  border: 2px solid transparent; padding: 3px;
  background: linear-gradient(var(--card), var(--card)) padding-box,
             linear-gradient(135deg, var(--gold-light), var(--gold-dark)) border-box;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.cat-thumb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cat:hover .cat-thumb, .cat.active .cat-thumb { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow-md); }
.cat.active .cat-thumb { padding: 4px; }
.cat-name { font-size: 12.5px; font-weight: 600; color: var(--brown-700); line-height: 1.2; }
.cat.active .cat-name { color: var(--gold-dark); }
.cats-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(202,166,91,.44);
  background: rgba(255,255,255,.88);
  color: var(--brown-800);
  box-shadow: 0 8px 20px rgba(59,34,18,.14);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: opacity .18s, transform .18s var(--ease);
}
.cats-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.cats-arrow-prev { inset-inline-start: 8px; }
.cats-arrow-prev::before { transform: rotate(45deg); }
.cats-arrow-next { inset-inline-end: 8px; }
.cats-arrow-next::before { transform: rotate(225deg); }
.cats-arrow:active { transform: translateY(-50%) scale(.92); }
.cats-arrow.hidden,
.cats-wrap.no-scroll .cats-arrow {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Subcategory chips ---------- */
.subcats {
  display: none;
  gap: 8px; overflow-x: auto; padding: 2px 0 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.subcats.show { display: flex; }
.subcats::-webkit-scrollbar { display: none; }
.subcat {
  flex: 0 0 auto; scroll-snap-align: start;
  padding: 8px 16px; border-radius: 22px;
  font-size: 13px; font-weight: 700; color: var(--brown-700);
  background: var(--card); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.subcat:hover { border-color: var(--gold); }
.subcat:active { transform: scale(0.95); }
.subcat.active {
  color: var(--brown-900);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold-dark);
}

/* ---------- Product grid & horizontal rails ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.product-rail {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.product-rail::-webkit-scrollbar { height: 0; }
.product-rail .product-card { flex: 0 0 64%; max-width: 230px; scroll-snap-align: start; }

/* ---------- Product card ---------- */
.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(202,166,91,0.5); }
.product-card.unavailable {
  opacity: .48;
  filter: grayscale(.75);
}
.product-card.unavailable:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}
.pc-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.07); }
.product-card.unavailable:hover .pc-media img { transform: none; }
.pc-badges { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; gap: 5px; }
.badge {
  font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 4px; box-shadow: var(--shadow-sm);
}
.badge svg { width: 11px; height: 11px; }
.badge-best { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--brown-900); }
.badge-offer { background: var(--danger); color: #fff; }
.fav-btn {
  position: absolute; top: 8px; inset-inline-end: 8px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  padding: 8px;
  background: rgba(255,253,248,0.92); color: var(--brown-500);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), color .2s, background .2s;
  overflow: visible;
  z-index: 3;
}
.fav-btn svg { width: 22px; height: 22px; display: block; overflow: visible; }
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.active { color: var(--danger); background: #fff; }
.fav-btn.active svg { fill: var(--danger); }

.pc-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pc-name { font-size: 14.5px; font-weight: 700; color: var(--brown-800); line-height: 1.35; min-height: 2.1em;
  text-align: start; background: none; border: none; padding: 0; cursor: pointer; }
.pc-media { cursor: pointer; }
.pc-desc {
  font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: -3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.1em;
}
.pc-price-row { display: flex; align-items: baseline; gap: 6px; }
.pc-price { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--gold-dark); }
.pc-price .cur { font-size: 14px; }
.pc-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.pc-unit { font-size: 11.5px; color: var(--muted); }
.promo-hint {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(47, 125, 87, .1);
  color: #2f7d57;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.45;
}
.qv-promo-hint {
  margin: 0 auto 4px;
  justify-content: center;
  text-align: center;
}

.weight-select, .qty-mini {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--cream);
}
.weight-select select {
  flex: 1; border: none; background: none; padding: 8px 10px; font-size: 13px; font-weight: 600;
  color: var(--brown-700); appearance: none; text-align: center;
}
.weight-select select:focus { outline: none; }
.weight-select .wlabel { font-size: 11px; color: var(--muted); padding-inline-start: 10px; }

.pc-actions { display: flex; gap: 8px; align-items: center; }
.add-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--brown-600), var(--brown-800));
  color: var(--cream);
  border: 1px solid rgba(202,166,91,0.35);
  transition: transform .2s var(--ease), filter .2s, box-shadow .25s;
}
.add-btn svg { width: 16px; height: 16px; }
.add-btn:hover { filter: brightness(1.12); box-shadow: 0 8px 18px rgba(40,25,12,0.3); }
.add-btn:active { transform: scale(0.95); }
.add-btn.done { background: linear-gradient(135deg, var(--success), #46612f); }
.add-btn:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.65);
  box-shadow: none;
}

/* ---------- Quick-view detail ---------- */
.qv-media {
  position: relative;
  border: 0;
  padding: 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  background: var(--cream);
  color: inherit;
  display: grid;
  place-items: center;
}
.qv-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.qv-media-click { cursor: zoom-in; }
.qv-badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.qv-badge2 { position: absolute; top: 12px; inset-inline-end: 12px; }
.qv-cat { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--gold-dark);
  text-transform: uppercase; letter-spacing: .5px; }
.qv-name { font-size: 23px; color: var(--brown-900); margin: 2px 0 8px; }
.qv-desc { font-size: 14.5px; line-height: 1.75; color: var(--brown-700); margin-bottom: 6px; }
.btn.active-fav { color: var(--danger) !important; border-color: var(--danger) !important; background: rgba(180,69,47,0.06); }
.btn.active-fav svg { fill: var(--danger); }

/* ---------- Offer banner ---------- */
.offer-banner {
  margin: 18px 16px;
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brown-800), var(--brown-600) 70%);
  color: var(--cream);
  overflow: hidden;
  border: 1px solid rgba(202,166,91,0.3);
  box-shadow: var(--shadow-md);
}
.offer-banner::after {
  content: ""; position: absolute; inset-inline-end: -30px; top: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(202,166,91,0.35), transparent 70%);
}
.offer-ico {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; color: var(--gold-light);
  background: rgba(202,166,91,0.14); border: 1px solid rgba(202,166,91,0.4);
}
.offer-ico svg { width: 30px; height: 30px; }
.offer-text { flex: 1; z-index: 1; }
.offer-title { font-family: var(--font-head); color: var(--gold-light); font-size: 17px; margin-bottom: 3px; }
.offer-desc { font-size: 13px; opacity: 0.92; line-height: 1.4; }
.offer-banner .btn { z-index: 1; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: var(--shell-max);
  height: var(--bottomnav-h);
  display: flex; justify-content: space-around; align-items: center;
  background: linear-gradient(180deg, rgba(52,34,26,0.97), rgba(39,25,19,0.99));
  border-top: 1px solid rgba(202,166,91,0.28);
  backdrop-filter: blur(10px);
  z-index: 70;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: rgba(231,217,191,0.6); font-size: 10.5px; font-weight: 600;
  position: relative; padding: 6px 2px; transition: color .2s; flex: 1;
  min-width: 0;
}
.nav-item svg { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.nav-item > span:last-child {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item .nav-badge {
  position: absolute; top: 0; inset-inline-end: 24%;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--gold); color: var(--brown-900);
  border-radius: 9px; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
}
.nav-item.active { color: var(--gold-light); }
.nav-item.active svg { transform: translateY(-2px) scale(1.1); }
.nav-item.center {
  margin-top: -22px;
}
.nav-item.center .nav-ico {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 2px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--brown-900);
  box-shadow: 0 6px 16px rgba(168,128,47,0.5);
  border: 3px solid var(--brown-900);
}
.nav-item.center svg { width: 24px; height: 24px; }

/* ---------- Floating cart summary ---------- */
.floating-cart {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: calc(var(--bottomnav-h) + 12px);
  width: calc(100% - 28px); max-width: calc(var(--shell-max) - 28px);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px;
  background: linear-gradient(120deg, var(--brown-800), var(--brown-600));
  border: 1px solid rgba(202,166,91,0.4);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  z-index: 65;
  opacity: 0;
  transition: transform .4s var(--ease), opacity .3s;
}
.floating-cart.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.fc-ico { position: relative; width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; background: rgba(202,166,91,0.18); color: var(--gold-light); }
.fc-ico svg { width: 22px; height: 22px; }
.fc-count { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 19px; height: 19px;
  background: var(--gold); color: var(--brown-900); border-radius: 10px; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; padding: 0 4px; }
.fc-info { flex: 1; color: var(--cream); line-height: 1.2; }
.fc-info .fc-items { font-size: 12px; opacity: 0.85; }
.fc-info .fc-total { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--gold-light); }

/* ---------- Floating action buttons (FABs) ---------- */
.fab-stack {
  position: fixed; inset-inline-end: 12px; bottom: calc(var(--bottomnav-h) + 80px);
  display: flex; flex-direction: column; gap: 10px; z-index: 64;
}
.fab {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); color: var(--brown-700);
  border: 1px solid rgba(202,166,91,0.5);
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), background .25s, color .25s, opacity .3s;
}
.fab.instagram {
  color: #fff;
  background: #c13584;
  box-shadow: 0 5px 18px rgba(193, 53, 132, 0.34);
}
.fab svg { width: 21px; height: 21px; }
.fab:hover { transform: translateY(-3px) scale(1.06); }
.fab.whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.fab.accessibility-fab {
  color: var(--cream);
  background: var(--brown-700);
  border: 1px solid var(--gold);
  box-shadow: 0 5px 18px rgba(39,25,19,.28), inset 0 0 0 2px rgba(236,212,154,.12);
}
.fab.accessibility-fab svg { width: 25px; height: 25px; }
.fab.accessibility-fab:hover {
  color: var(--brown-900);
  background: var(--gold-light);
}
.fab.scrolltop {
  opacity: 0;
  pointer-events: none;
  color: var(--cream);
  background: var(--brown-700);
  border-color: var(--gold);
  transform: translateY(14px) scale(.82);
}
.fab.scrolltop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: scrollTopFloat 2.2s ease-in-out infinite;
}
.fab.scrolltop.show svg { animation: scrollTopArrow 1.35s ease-in-out infinite; }
.fab.scrolltop.show:hover {
  color: var(--brown-900);
  background: var(--gold-light);
  animation-play-state: paused;
}
.fab.scrolltop.show:hover svg { animation-play-state: paused; }
.fab.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--brown-900); border: none; }

/* ---------- Drawers & overlay ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(25,15,8,0.55);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(92%, 460px);
  background: var(--bg);
  z-index: 100;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  box-shadow: var(--shadow-lg);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.show { transform: translateX(0) !important; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  background: var(--brown-800); color: var(--cream);
}
.drawer-head h3 { font-size: 18px; color: var(--gold-light); display: flex; align-items: center; gap: 8px; }
.drawer-head h3 svg { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 16px; background: var(--card); }
.close-x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: var(--cream); }
.close-x svg { width: 18px; height: 18px; }

.drawer.bottom-sheet {
  top: auto;
  bottom: var(--bottomnav-h);
  inset-inline-end: auto;
  right: auto !important;
  left: 50% !important;
  width: min(100%, var(--shell-max));
  max-height: calc(100vh - var(--bottomnav-h) - 18px);
  border-radius: 14px 14px 0 0;
  transform: translate(-50%, calc(105% + var(--bottomnav-h)));
  pointer-events: none;
}
html[dir="rtl"] .drawer.bottom-sheet { transform: translate(-50%, calc(105% + var(--bottomnav-h))); }
.drawer.bottom-sheet.show { transform: translate(-50%, 0) !important; pointer-events: auto; }
body:has(.drawer.bottom-sheet.show) .bottom-nav { z-index: 110; }
.drawer.cart-sheet {
  max-height: calc(100vh - var(--bottomnav-h) - 18px);
  height: min(82vh, 700px);
  border-radius: 24px 24px 0 0;
}
.drawer.favorites-sheet {
  height: min(76vh, 660px);
  border-radius: 24px 24px 0 0;
}
.favorites-sheet .drawer-head h3 {
  flex: 1;
  justify-content: center;
}
.favorites-sheet .drawer-body { padding: 16px; }
.favorites-sheet .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cart-sheet .drawer-head {
  flex: 0 0 auto;
  min-height: 68px;
  padding: 14px 20px;
}
.cart-sheet .drawer-head h3 {
  flex: 1;
  justify-content: center;
  font-size: 19px;
}
.cart-sheet .drawer-head h3 svg { display: none; }
.cart-sheet .drawer-body { padding: 4px 18px 10px; }
.cart-sheet .drawer-foot {
  flex: 0 0 auto;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(50, 31, 20, 0.08);
}
.hours-body { text-align: center; padding: 28px 22px 32px; }
.hours-body p { margin: 12px 0 22px; color: var(--brown-800); font-size: 17px; font-weight: 700; }
.hours-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-dark);
  background: var(--cream-2);
}
.hours-icon svg { width: 30px; height: 30px; }

/* side menu list */
.menu-list { display: flex; flex-direction: column; gap: 4px; }
.menu-list a, .menu-list button {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; border-radius: var(--radius-sm);
  font-size: 15.5px; font-weight: 600; color: var(--brown-800); text-align: start; width: 100%;
  transition: background .2s;
}
.menu-list a:hover, .menu-list button:hover { background: var(--cream-2); }
.menu-list svg { width: 22px; height: 22px; color: var(--gold-dark); flex: 0 0 auto; }
.menu-sep { height: 1px; background: var(--line); margin: 8px 0; }

/* ---------- Cart items ---------- */
.cart-item {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.ci-img { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-name { font-weight: 700; font-size: 14.5px; color: var(--brown-800); }
.ci-variant { font-size: 12px; color: var(--muted); }
.ci-remove { color: var(--danger); padding: 2px; flex: 0 0 auto; }
.ci-remove svg { width: 18px; height: 18px; }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ci-price { font-family: var(--font-head); font-weight: 700; color: var(--gold-dark); font-size: 16px; }

.cart-sheet-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 16px 0;
}
.cart-sheet-item .ci-img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
}
.cart-sheet-item .ci-main {
  align-self: center;
  gap: 3px;
}
.cart-sheet-item .ci-name {
  font-size: 15px;
  line-height: 1.35;
}
.cart-sheet-item .ci-variant { font-size: 13px; }
.cart-sheet-item .ci-price {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}
.cart-sheet-item .ci-promo {
  margin-top: 4px;
  color: #2f7d57;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.cart-sheet-item .ci-notes {
  max-width: 32ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cart-sheet-item .qty {
  border: 0;
  background: transparent;
  gap: 7px;
  overflow: visible;
  direction: ltr;
}
.cart-sheet-item .qty button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
}
.cart-sheet-item .qty span { min-width: 22px; }
.cart-sheet-item .ci-tools { gap: 8px; }
.cart-sheet-item .ci-edit {
  min-height: 28px;
  padding: 0 7px;
  font-size: 11px;
  background: transparent;
}
.cart-sheet-item .ci-remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.cart-sheet .totals {
  position: relative;
  margin-bottom: 12px;
}
.cart-sheet .totals .row {
  font-size: 17px;
  font-weight: 800;
  color: var(--brown-900);
  padding-inline-end: 42px;
}
.cart-clear-icon {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--danger);
  border: 1px solid rgba(174, 62, 62, 0.28);
  border-radius: 50%;
}
.cart-clear-icon svg { width: 17px; height: 17px; }
.cart-checkout { min-height: 52px; border-radius: 26px; font-size: 16px; }

.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; background: var(--cream);
}
.qty button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--brown-700); font-size: 18px; font-weight: 700; transition: background .15s; }
.qty button:hover { background: var(--beige); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }

.ci-weight select {
  border: 1px solid var(--line); border-radius: 16px; background: var(--cream);
  padding: 5px 8px; font-size: 12px; font-weight: 600; color: var(--brown-700); appearance: none;
}

/* totals */
.totals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.totals .row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--brown-700); }
.totals .row.grand { font-size: 18px; font-weight: 800; color: var(--brown-900); padding-top: 8px; border-top: 1px dashed var(--line); }
.totals .row.grand .v { font-family: var(--font-head); color: var(--gold-dark); }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state svg { width: 72px; height: 72px; color: var(--beige-2); margin-bottom: 14px; }
.empty-state h4 { font-size: 18px; color: var(--brown-700); margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ---------- Forms (checkout) ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--brown-700); margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(202,166,91,0.18); }
.field textarea { resize: vertical; min-height: 80px; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 12.5px; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }

.order-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.otype {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 700; font-size: 14px; color: var(--brown-700);
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.otype svg { width: 26px; height: 26px; color: var(--gold-dark); }
.otype.active { border-color: var(--gold); background: linear-gradient(135deg, rgba(236,212,154,0.4), rgba(202,166,91,0.15)); }
.otype:active { transform: scale(0.97); }
.free-delivery-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 16px;
  padding: 12px 13px;
  border: 1px solid rgba(202,166,91,.45);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(236,212,154,.35), rgba(255,255,255,.72));
  color: var(--brown-800);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}
.free-delivery-note.unlocked {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(202,166,91,.52), rgba(236,212,154,.2));
}
.free-delivery-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brown-700);
  color: var(--gold-light);
}
.free-delivery-ico svg { width: 18px; height: 18px; }
.free-delivery-text { flex: 1; }
.delivery-fields { display: none; }
.delivery-fields.show { display: block; animation: fadeSlide .35s var(--ease); }
.order-send-followup {
  margin: 12px 0 4px;
  padding: 14px;
  border: 1px solid rgba(202,166,91,.42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236,212,154,.28), rgba(255,255,255,.78));
  box-shadow: 0 10px 26px rgba(59,34,18,.08);
  display: grid;
  gap: 10px;
  text-align: center;
  animation: fadeSlide .28s var(--ease);
}
.order-send-followup strong {
  color: var(--brown-800);
  font-size: 15px;
  line-height: 1.45;
}
.order-send-followup p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.order-send-followup .btn {
  min-height: 44px;
}
.order-copy-btn {
  color: var(--brown-700);
  border-color: var(--line);
}

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottomnav-h) + 90px);
  z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--brown-800); color: var(--cream);
  padding: 12px 18px; border-radius: 30px;
  border: 1px solid rgba(202,166,91,0.45);
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600;
  animation: toastIn .3s var(--ease);
}
.toast svg { width: 18px; height: 18px; color: var(--gold-light); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }

/* ---------- Loading screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 40%, var(--brown-700), var(--brown-900));
  display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; color: var(--cream); }
.loader-badge {
  width: 110px; height: 110px; margin: 0 auto 18px;
  border-radius: 50%; border: 2px solid var(--gold);
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, var(--brown-600), var(--brown-900));
  animation: pulseGlow 1.8s ease-in-out infinite;
}
.loader-badge img { width: 86%; }
.loader-title { font-family: var(--font-head); font-size: 22px; color: var(--gold-light); letter-spacing: 1px; }
.loader-bar { width: 140px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); margin: 16px auto 0; overflow: hidden; }
.loader-bar::after { content: ""; display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark)); border-radius: 4px;
  animation: loaderSlide 1.1s ease-in-out infinite; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-900); color: var(--cream-2);
  padding: 28px 20px; text-align: center;
}
.footer-badge { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--gold);
  display: grid; place-items: center; background: var(--brown-800); overflow: hidden; }
.footer-badge img { width: 100%; }
.footer-name { font-family: var(--font-head); color: var(--gold-light); font-size: 19px; margin-bottom: 4px; }
.footer-tag { font-size: 13px; opacity: 0.8; margin-bottom: 16px; }
.footer-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { font-size: 13px; color: var(--gold-light); border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer-links a:hover { border-color: var(--gold); }
.footer-social { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(202,166,91,0.4); color: var(--gold-light); transition: background .2s, transform .2s; }
.footer-social a:hover { background: rgba(202,166,91,0.2); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-dev { font-size: 12.5px; opacity: 0.7; }
.footer-dev a { color: var(--gold-light); font-weight: 700; }
.footer-rights { font-size: 11.5px; opacity: 0.55; margin-top: 8px; }

/* ---------- QR share card ---------- */
.qr-card {
  text-align: center;
  background: linear-gradient(160deg, var(--card), var(--cream-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}
.qr-frame {
  width: 244px; max-width: 80%; aspect-ratio: 1; margin: 0 auto 16px;
  background: #fff; padding: 14px; border-radius: var(--radius);
  border: 2px solid var(--gold);
  box-shadow: 0 10px 26px rgba(40,25,12,0.18);
}
.qr-frame img { width: 100%; height: 100%; }
.qr-store { font-family: var(--font-head); font-size: 21px; color: var(--brown-800); }
.qr-hint { font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.qr-url {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--gold-dark);
  word-break: break-all; border-bottom: 1px solid transparent; transition: border-color .2s;
  direction: ltr;
}
.qr-url:hover { border-color: var(--gold); }

/* ---------- Legal pages ---------- */
.legal {
  padding: 24px 20px 40px; color: var(--brown-800); background: var(--bg);
}
.legal h1 { font-size: 28px; color: var(--brown-900); margin-bottom: 6px; }
.legal .legal-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.legal h2 { font-size: 19px; color: var(--gold-dark); margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.8; }
.legal ul { padding-inline-start: 22px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-dark); font-weight: 700; margin-top: 24px; }

/* language-conditional content (legal pages) */
html[lang="ar"] .only-he { display: none; }
html[lang="he"] .only-ar { display: none; }

/* utility */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.scroll-lock { overflow: hidden; }


/* ---------- Product order modal ---------- */
.drawer.product-modal {
  inset: 50% auto auto 50% !important;
  width: min(92vw, 430px);
  max-height: min(86vh, 720px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
  transform: translate(-50%, -46%) scale(0.96) !important;
  opacity: 0;
  pointer-events: none;
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}
html[dir="rtl"] .drawer.product-modal { transform: translate(-50%, -46%) scale(0.96) !important; }
.drawer.product-modal.show { transform: translate(-50%, -50%) scale(1) !important; opacity: 1; pointer-events: auto; }
html[dir="rtl"] .drawer.product-modal.show { transform: translate(-50%, -50%) scale(1) !important; }
.product-modal .drawer-body { max-height: calc(min(86vh, 720px) - 71px); padding-bottom: 18px; }
.product-modal .drawer-head {
  position: relative;
  justify-content: center;
  text-align: center;
}
.product-modal .drawer-head h3 { justify-content: center; text-align: center; }
.product-modal .drawer-head .close-x {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.product-modal .drawer-body { text-align: center; }
.product-modal .qv-media { max-height: 220px; margin-inline: auto; }
.product-modal .qv-media img { width: 100%; height: 100%; object-fit: contain; object-position: center center; }
.product-modal .qv-cat,
.product-modal .qv-name,
.product-modal .qv-desc,
.product-modal .pc-price-row,
.product-modal .mix-title { text-align: center; }
.product-modal .pc-price-row,
.product-modal .weight-buttons,
.product-modal .qv-actions { justify-content: center; }
.product-modal .field label { display: block; text-align: center; }
.product-note-field { margin-top: 12px; text-align: center; }
.product-notes { min-height: 74px; }
.qv-actions { display: flex; gap: 10px; margin-top: 16px; }
.qv-actions .btn { min-height: 46px; }

.image-zoom-layer {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(39, 25, 19, .82);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}
.image-zoom-layer.show {
  opacity: 1;
  pointer-events: auto;
}
.image-zoom-layer img {
  max-width: min(94vw, 760px);
  max-height: min(84vh, 720px);
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  transform: scale(.94);
  transition: transform .22s var(--ease);
}
.image-zoom-layer.show img { transform: scale(1); }
.image-zoom-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  inset-inline-end: max(18px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  color: var(--brown-800);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  z-index: 1;
}
.image-zoom-close svg { width: 22px; height: 22px; }

.fav-btn {
  background: rgba(255,255,255,0.94);
  color: var(--brown-700);
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.fav-btn svg { stroke-width: 2; fill: transparent; stroke-linecap: round; stroke-linejoin: round; }
.fav-btn.active {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}
.fav-btn.active svg { fill: currentColor; stroke: currentColor; }
.active-fav svg { fill: var(--danger); color: var(--danger); }

.ci-notes {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}
.current-location-box {
  display: grid;
  gap: 9px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}
.current-location-text { color: var(--brown-700); font-size: 13px; line-height: 1.45; }
.use-location { color: var(--brown-700); border-color: var(--line); }
.nav-item[data-nav="instagram"].active,
.nav-item[data-nav="instagram"]:hover { color: var(--gold-light); }

@media (max-width: 420px) {
  .nav-item { font-size: 9px; }
  .nav-item svg { width: 20px; height: 20px; }
  .nav-item.center .nav-ico { width: 46px; height: 46px; }
  .drawer.product-modal { width: calc(100vw - 24px); max-height: 84vh; border-radius: 18px; }
  .product-modal .qv-media { max-height: 190px; }
  .qv-actions { flex-direction: column; }
  .qv-actions .btn { width: 100%; }
  .drawer.cart-sheet { height: calc(100vh - var(--bottomnav-h) - 18px); max-height: calc(100vh - var(--bottomnav-h) - 18px); }
  .drawer.favorites-sheet { height: min(74vh, 620px); }
  .cart-sheet .drawer-body { padding-inline: 14px; }
  .cart-sheet-item {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 102px;
  }
  .cart-sheet-item .ci-img { width: 66px; height: 66px; }
  .cart-sheet-item .qty { gap: 4px; }
  .cart-sheet-item .qty button { width: 30px; height: 30px; }
  .cart-sheet-item .ci-edit span { display: none; }
}


/* ---------- Weight buttons and mix builder ---------- */
.weight-buttons { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px; }
.weight-chip { border: 1px solid var(--line); background: var(--card); color: var(--brown-700); border-radius: 999px; padding: 8px 10px; font-size: 12.5px; font-weight: 700; min-width: 70px; }
.weight-chip.active { background: var(--gold); color: var(--brown-900); border-color: var(--gold-dark); box-shadow: 0 4px 12px rgba(202,166,91,.25); }
.weight-button-wrap { display: block; overflow: visible; }
.weight-button-wrap .wlabel { display: block; padding: 9px 10px 0; }
.cart-weight-buttons { padding: 4px 0 0; }
.cart-weight-buttons .weight-chip { min-width: 58px; padding: 6px 8px; font-size: 11.5px; }
.ci-tools { display: flex; align-items: center; gap: 6px; }
.ci-edit { min-height: 32px; border-radius: 999px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; background: var(--cream); color: var(--brown-700); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.ci-edit svg { width: 14px; height: 14px; }
.mix-builder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.mix-card {
  position: relative;
  min-width: 0;
  min-height: 142px;
  padding: 0 0 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--brown-800);
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.mix-card:active { transform: scale(.98); }
.mix-card img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  background: var(--cream-2);
}
.mix-card strong {
  min-height: 34px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  line-height: 1.35;
}
.mix-card small {
  padding-inline: 4px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.mix-card-check {
  position: absolute;
  top: 5px;
  inset-inline-end: 5px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 7px rgba(0,0,0,.14);
}
.mix-card-check svg { width: 14px; height: 14px; }
.mix-card.active {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 2px rgba(202,166,91,.18);
}
.mix-card.active .mix-card-check {
  color: var(--brown-900);
  background: var(--gold);
  border-color: var(--gold-light);
}
.mix-card.unavailable,
.mix-card:disabled {
  opacity: .45;
  filter: grayscale(.75);
  cursor: not-allowed;
  box-shadow: none;
}
.mix-card.unavailable:active,
.mix-card:disabled:active {
  transform: none;
}
.mix-weight-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(31,19,12,.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .2s ease;
}
.mix-weight-layer.show { opacity: 1; }
.mix-weight-dialog {
  position: relative;
  width: min(100%, 340px);
  max-height: calc(100% - 12px);
  overflow-y: auto;
  padding: 20px 16px 16px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--card);
  color: var(--brown-800);
  text-align: center;
  box-shadow: 0 22px 60px rgba(0,0,0,.36);
  transform: translateY(10px) scale(.96);
  transition: transform .2s ease;
}
.mix-weight-layer.show .mix-weight-dialog { transform: translateY(0) scale(1); }
.mix-dialog-close {
  position: absolute;
  top: 9px;
  inset-inline-start: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: var(--brown-700);
}
.mix-dialog-close svg { width: 16px; height: 16px; }
.mix-dialog-image {
  width: 82px;
  height: 82px;
  margin: 0 auto 10px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.mix-weight-dialog h3 { font-size: 18px; color: var(--brown-900); }
.mix-weight-dialog p { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.mix-weight-dialog .weight-buttons { padding: 8px 0 4px; justify-content: center; }
.mix-weight-dialog .weight-chip { min-width: 62px; padding: 8px 6px; font-size: 11px; }
.mix-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.mix-dialog-actions .btn { min-height: 42px; padding: 9px 13px; font-size: 12px; }
.mix-remove { color: var(--danger); border-color: rgba(174,62,62,.3); }
.mix-remove svg { width: 15px; height: 15px; }
.mix-total { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); font-weight: 800; }
.mix-title { font-size: 15px; color: var(--brown-800); margin-top: 12px; }
.offer-builder { margin-bottom: 14px; }
.offer-total strong { color: var(--gold-dark); font-family: var(--font-head); font-size: 20px; }
.offer-count-row {
  margin: 8px 0 4px;
  display: flex;
  justify-content: center;
}
.offer-count {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(47,125,87,.1);
  color: #2f7d57;
  font-size: 13px;
  font-weight: 900;
}
.offer-card {
  cursor: pointer;
}
.offer-card-controls {
  display: grid;
  grid-template-columns: 28px minmax(20px, 1fr) 28px;
  align-items: center;
  gap: 4px;
  width: calc(100% - 12px);
  margin: 6px auto 0;
  direction: ltr;
}
.offer-card-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--brown-800);
  display: grid;
  place-items: center;
}
.offer-card-step:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.offer-card-step svg {
  width: 14px;
  height: 14px;
}
.offer-card-qty {
  min-width: 20px;
  color: var(--brown-900);
  font-weight: 900;
  font-size: 13px;
}
@media (max-width: 420px) {
  .brand-badge { width: 60px; height: 60px; }
  .weight-chip { min-width: 62px; padding: 8px 9px; }
  .mix-builder { gap: 6px; }
  .mix-card { min-height: 132px; }
  .mix-card strong { font-size: 10.5px; }
  .mix-card small { font-size: 8.5px; }
  .mix-weight-layer { padding: 12px; }
  .mix-weight-dialog { width: min(100%, 320px); padding-inline: 12px; }
  .mix-dialog-actions { flex-direction: column-reverse; }
  .mix-dialog-actions .btn { width: 100%; }
}

/* ---------- Accessibility panel ---------- */
.drawer.a11y-panel {
  width: min(94%, 520px);
  background: var(--bg);
}
.a11y-head {
  align-items: flex-start;
  padding: 20px 18px;
}
.a11y-head > div { min-width: 0; }
.a11y-head h3 { font-size: 20px; }
.a11y-head p {
  margin-top: 5px;
  color: var(--cream-2);
  font-size: 13px;
  opacity: .82;
}
.a11y-body { padding: 0 18px 28px; }
.a11y-font-section,
.a11y-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.a11y-font-heading,
.a11y-section h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brown-800);
}
.a11y-section h4 {
  justify-content: flex-start;
  font-size: 17px;
}
.a11y-section h4 svg { width: 21px; height: 21px; color: var(--gold-dark); }
.a11y-font-heading strong { font-size: 17px; }
#a11yFontVal { color: var(--gold-dark); font-weight: 800; direction: ltr; }
.a11y-font-controls {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
}
.a11y-font-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--brown-800);
  font-size: 27px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.a11y-font-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cream-2);
}
.a11y-font-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width .2s ease;
}
.a11y-option {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--brown-800);
  text-align: start;
}
.a11y-option-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 600;
}
.a11y-row-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  color: var(--gold-dark);
}
.a11y-row-icon svg { width: 20px; height: 20px; }
.a11y-letter-icon { font-family: Arial, sans-serif; font-size: 17px; font-weight: 800; }
.a11y-switch {
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  padding: 3px;
  border-radius: 999px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.a11y-switch span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s;
}
.a11y-option.active .a11y-switch {
  background: var(--gold);
  border-color: var(--gold-dark);
}
.a11y-option.active .a11y-switch span { transform: translateX(20px); }
html[dir="rtl"] .a11y-option.active .a11y-switch span { transform: translateX(-20px); }
.a11y-filter-block { margin-top: 14px; }
.a11y-filter-title {
  margin-bottom: 10px;
  color: var(--brown-800);
  font-size: 14px;
  font-weight: 700;
}
.a11y-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.a11y-filter-grid button {
  min-height: 45px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--brown-700);
  font-size: 14px;
  font-weight: 700;
}
.a11y-filter-grid button.active {
  border-color: var(--gold-dark);
  background: var(--gold);
  color: var(--brown-900);
}
.a11y-reset {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--brown-800);
  font-size: 15px;
  font-weight: 800;
}
.a11y-reset svg { width: 19px; height: 19px; }

/* ---------- Accessibility effects ---------- */
html.a11y-filtered { filter: var(--a11y-page-filter); }
html.a11y-highlight-links a {
  outline: 3px solid #f5c542 !important;
  outline-offset: 2px !important;
  background: #fff2a8 !important;
  color: #111 !important;
}
html.a11y-underline-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-hide-images img { visibility: hidden !important; }
html.a11y-readable-font body,
html.a11y-readable-font button,
html.a11y-readable-font input,
html.a11y-readable-font textarea,
html.a11y-readable-font select { font-family: Arial, Tahoma, sans-serif !important; }
html.a11y-line-spacing p,
html.a11y-line-spacing li,
html.a11y-line-spacing span,
html.a11y-line-spacing h1,
html.a11y-line-spacing h2,
html.a11y-line-spacing h3,
html.a11y-line-spacing h4 { line-height: 1.9 !important; }
html.a11y-letter-spacing body,
html.a11y-letter-spacing button,
html.a11y-letter-spacing input,
html.a11y-letter-spacing textarea { letter-spacing: .08em !important; }
html.a11y-align-left p,
html.a11y-align-left li,
html.a11y-align-left h1,
html.a11y-align-left h2,
html.a11y-align-left h3,
html.a11y-align-left h4,
html.a11y-align-left .pc-name,
html.a11y-align-left .offer-text { text-align: left !important; }
html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 2l20 18-9 1 5 8-4 2-5-9-7 6z' fill='white' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 3 2, auto !important;
}
html.a11y-big-cursor a,
html.a11y-big-cursor button {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 2l20 18-9 1 5 8-4 2-5-9-7 6z' fill='%23ecd49a' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 3 2, pointer !important;
}
html.a11y-reduce-motion { scroll-behavior: auto !important; }
html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}
html.a11y-stop-animations *,
html.a11y-stop-animations *::before,
html.a11y-stop-animations *::after {
  animation: none !important;
}

@media (max-width: 420px) {
  .drawer.a11y-panel { width: 94%; }
  .a11y-head { padding: 17px 15px; }
  .a11y-body { padding-inline: 15px; }
  .a11y-section, .a11y-font-section { padding-block: 18px; }
}
