/* =========================================================
   Tazeresan — Design System
   Clean, professional, Persian-first (RTL)
   ========================================================= */

/* ---------- Font ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f6f6;
  --surface: #ffffff;
  --surface-soft: #f2f2f2;
  --border: #e7e7e7;
  --border-strong: #d6d6d6;
  --text: #3d3d3d;
  --text-soft: #5d5d5d;
  --muted: #8b8b8b;
  --primary: #02a0a4;
  --primary-dark: #017a7d;
  --primary-soft: #e6f7f8;
  --danger: #f01436;
  --danger-soft: #fee9ec;
  --warning: #b26a00;
  --warning-soft: #fff4e0;
  --info: #038fc6;
  --info-soft: #e6f5fb;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -18px rgba(0, 0, 0, .25);
  --font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  z-index: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--primary); color: #fff; }

/* ---------- Layout ---------- */
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.container-narrow { width: min(860px, calc(100% - 40px)); margin-inline: auto; }
.stack-2 > * + * { margin-top: 8px; }
.stack-3 > * + * { margin-top: 12px; }
.stack-4 > * + * { margin-top: 16px; }
.stack-6 > * + * { margin-top: 24px; }
.section { padding: 44px 0; }
.section-sm { padding: 28px 0; }
.muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.bold { font-weight: 700; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }

/* Icons: every inline SVG is bounded, even outside the navbar.
   Without this, SVGs fall back to the browser default 300x150. */
.nav-ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.breadcrumb .nav-ico { width: 14px; height: 14px; opacity: .55; }
.hero-eyebrow .nav-ico { width: 15px; height: 15px; }
.btn .nav-ico { width: 17px; height: 17px; }
.empty .nav-ico { width: 26px; height: 26px; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .5); }
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.4px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); line-height: 1.2; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 9px;
  color: var(--text-soft); font-weight: 500; font-size: clamp(.78rem, .8vw, .92rem);
  transition: background .15s, color .15s, transform .15s;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 160px;
}
.nav-links a:hover { background: var(--surface-soft); color: var(--text); transform: translateY(-1px); }
.nav-links a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.nav-links .nav-ico { width: 18px; height: 18px; flex: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--border); background: #fff; font-size: .9rem; font-weight: 600; }
.cart-link:hover { border-color: var(--border-strong); }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; }
.header-user { display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: .88rem; font-weight: 600; }
.header-user > span:not(.avatar) { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand { flex: none; }
.header-actions { flex: none; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; font-size: .8rem; flex: none; }
.avatar-lg { width: 58px; height: 58px; font-size: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #fff; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 0 28px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 10px; }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: .9rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--surface-soft); color: var(--text);
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { background: #eeeeee; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-soft); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: #fbd9d6; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-soft); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; min-height: 0; padding: 0; }
.btn.is-loading, .is-loading { opacity: .7; cursor: progress; pointer-events: none; }

/* ---------- Forms ---------- */
.field { display: block; }
.field > label, .label {
  display: block; margin-bottom: 6px;
  font-size: .88rem; font-weight: 600; color: var(--text-soft);
}
.input, select.input, textarea.input {
  width: 100%; min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.7; }
.input::placeholder { color: #9aa69c; }
.input:focus, select.input:focus, textarea.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 115, 71, .12);
}
.input[dir="ltr"] { text-align: left; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ---------- Cards & panels ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.card-body { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h3 { font-size: 1rem; line-height: 1.5; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.panel-body { padding: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { font-size: 1.08rem; }
.section-head p { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.auth-box { width: 100%; max-width: 460px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand .brand { justify-content: center; font-size: 1.5rem; }
.auth-brand p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .3); padding: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-soft); border-radius: 12px; margin-bottom: 22px; }
.auth-tabs a, .auth-tabs button {
  display: block; text-align: center; padding: 11px 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text-soft); font-weight: 700; font-size: .95rem; cursor: pointer;
}
.auth-tabs .active { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth-foot { text-align: center; margin-top: 18px; font-size: .85rem; color: var(--muted); }
.auth-foot a { color: var(--primary); font-weight: 600; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid transparent; }
.alert-success { background: var(--primary-soft); color: var(--primary-dark); border-color: #cdeff0; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f7cfcb; }
.alert-info { background: var(--info-soft); color: var(--info); border-color: #d3e1fb; }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: #f5e0b8; }
.app-flash { margin-bottom: 14px; padding: 12px 15px; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid transparent; }
.app-flash.bg-emerald-500 { background: var(--primary-soft); color: var(--primary-dark); border-color: #cdeff0; }
.app-flash.bg-red-500 { background: var(--danger-soft); color: var(--danger); border-color: #f7cfcb; }
.app-flash.bg-sky-500 { background: var(--info-soft); color: var(--info); border-color: #d3e1fb; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 12px; }
.hero-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 24px;
  background: radial-gradient(140% 120% at 10% 0%, #f3fbfb 0%, #ecf7f7 100%);
  border: 1px solid #d9efef;
  box-shadow: 0 40px 70px -56px rgba(0, 0, 0, .45);
}
.hero-panel > * { min-width: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .78rem; font-weight: 600; color: var(--primary-dark); }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.32; letter-spacing: -.6px; margin: 14px 0 10px; }
.hero p { color: var(--text-soft); font-size: 1rem; max-width: 46ch; }
.hero-search { display: flex; gap: 8px; margin-top: 20px; max-width: 500px; position: relative; }
.hero-search .input { min-height: 50px; border-radius: 12px; padding-inline-end: 50px; }
.hero-search .search-submit { inset-inline-end: 8px; width: 36px; height: 36px; }
.hero-media { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-stats { display: flex; gap: clamp(16px, 4vw, 28px); margin-top: 24px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.22rem; }
.hero-stats span { font-size: .8rem; color: var(--muted); }

/* ---------- Category chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: .88rem; font-weight: 600; color: var(--text-soft);
}
.chip:hover { border-color: var(--border-strong); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Category tile slider ---------- */
.cat-section { position: relative; }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cat-head-copy { display: flex; flex-direction: column; gap: 4px; }
.cat-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; color: var(--primary-dark); }
.cat-kicker .nav-ico { width: 15px; height: 15px; }
.cat-head h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -.3px; margin: 0; }
.cat-tools { display: flex; align-items: center; gap: 8px; }
.cat-tools:not(.has-overflow) .cat-scroll-btn { display: none; }
.cat-reset { font-size: .78rem; font-weight: 700; color: var(--primary-dark); padding: 7px 12px; border-radius: 999px; background: var(--primary-soft); }
.cat-reset:hover { background: #d5f1f2; }
.cat-scroll-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--text-soft);
  cursor: pointer; box-shadow: 0 6px 14px -12px rgba(0, 0, 0, .4);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.cat-scroll-btn:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); transform: translateY(-1px); }
.cat-scroll-btn:active { transform: translateY(0) scale(.96); }
.cat-scroll-btn:disabled { opacity: .38; cursor: default; transform: none; background: #fff; border-color: var(--border); color: var(--text-soft); box-shadow: none; }
.cat-scroll-btn .nav-ico { width: 18px; height: 18px; }
.cat-bar {
  display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 6px 2px 14px; perspective: 1200px; scroll-behavior: smooth;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 20px; }
.cat-tile {
  --cat-tint: #dff3f2;
  --cat-ink: #0b6f71;
  position: relative; isolation: isolate;
  flex: 1 1 0; min-width: 208px;
  display: flex; align-items: center; gap: 13px;
  min-height: 104px; padding: 18px 17px;
  border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(145deg, #ffffff 0%, #f8fbfb 62%, #f2f8f7 100%);
  box-shadow: 0 12px 24px -22px rgba(13, 68, 69, .55), inset 0 1px 0 #fff;
  color: var(--text); overflow: hidden; scroll-snap-align: start;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .3s, border-color .3s;
}
.cat-tile::before {
  content: ''; position: absolute; z-index: 0; width: 140px; height: 140px;
  inset-inline-start: -42px; top: -64px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 36% 36%, var(--cat-tint), transparent 72%);
}
.cat-tile::after {
  content: ''; position: absolute; z-index: 3; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .6) 50%, transparent 58%);
  transform: translateX(-130%) rotate(8deg); opacity: 0;
}
.cat-tile > * { position: relative; z-index: 1; }
.cat-tile-all { --cat-tint: #c9f0ef; --cat-ink: #0b7b7e; }
.cat-tile[data-cat="fruits"] { --cat-tint: #ffe2bd; --cat-ink: #c56a00; }
.cat-tile[data-cat="vegetables"] { --cat-tint: #d8f2c9; --cat-ink: #3f7d1e; }
.cat-tile[data-cat="animals"] { --cat-tint: #e6e0c6; --cat-ink: #6f6431; }
.cat-tile[data-cat="ready-food"] { --cat-tint: #ffd9c9; --cat-ink: #b54a24; }
.cat-tile[data-cat="home-goods"] { --cat-tint: #d9e5ff; --cat-ink: #355fa8; }
.cat-tile[data-cat="office"] { --cat-tint: #e4ddff; --cat-ink: #5b43a8; }
.cat-tile[data-cat="medical"] { --cat-tint: #d4f0fa; --cat-ink: #167392; }
.cat-tile[data-cat="traditional"] { --cat-tint: #f5dfc0; --cat-ink: #8a5a1c; }
.cat-tile[data-cat="special"] { --cat-tint: #ffe0f1; --cat-ink: #a33570; }
.cat-tile[data-cat="others"] { --cat-tint: #e7e7e7; --cat-ink: #555; }
.cat-tile-icon {
  flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center;
  font-size: 1.72rem; line-height: 1; border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, var(--cat-tint));
  border: 1px solid rgba(13, 68, 69, .09);
  box-shadow: 0 14px 20px -16px rgba(13, 68, 69, .65), inset 0 1px 0 #fff;
  transform: perspective(620px) rotateX(7deg) rotateY(-7deg);
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), box-shadow .35s;
}
.cat-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cat-tile-body strong { font-size: .98rem; font-weight: 800; line-height: 1.45; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tile-body small { font-size: .72rem; color: var(--muted); }
.cat-tile-body small b { color: var(--cat-ink); font-weight: 800; }
.cat-tile-go {
  flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: #eef6f5; color: var(--cat-ink);
  font-size: .95rem; font-weight: 800;
  transition: transform .3s, background .3s, color .3s;
}
.cat-tile.active {
  border-color: transparent; color: #fff;
  background: linear-gradient(140deg, #018b8f 0%, #02a0a4 55%, #06b6ab 100%);
  box-shadow: 0 22px 34px -24px rgba(2, 120, 122, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cat-tile.active::before { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .42), transparent 70%); }
.cat-tile.active .cat-tile-body strong,
.cat-tile.active .cat-tile-body small,
.cat-tile.active .cat-tile-body small b { color: #fff; }
.cat-tile.active .cat-tile-body small { opacity: .82; }
.cat-tile.active .cat-tile-icon {
  background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 20px -14px rgba(0, 0, 0, .4);
}
.cat-tile.active .cat-tile-go { background: rgba(255, 255, 255, .2); color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .cat-tile:hover {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-7px) scale(1.015);
    border-color: rgba(2, 160, 164, .42);
    box-shadow: 0 30px 44px -28px rgba(10, 60, 61, .6), inset 0 1px 0 #fff;
  }
  .cat-tile:hover .cat-tile-icon {
    transform: perspective(620px) rotateX(-9deg) rotateY(11deg) translateY(-3px) scale(1.08);
    box-shadow: 0 22px 30px -18px rgba(10, 60, 61, .55), inset 0 1px 0 #fff;
  }
  .cat-tile:hover .cat-tile-go { transform: translateX(-5px); background: var(--primary); color: #fff; }
  .cat-tile:hover::after { animation: catShine .8s ease; }
  .cat-tile.active:hover { border-color: transparent; }
  .cat-tile.is-tilting { transition-duration: .08s; }
}

@keyframes catShine {
  0% { opacity: 0; transform: translateX(-130%) rotate(8deg); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: translateX(130%) rotate(8deg); }
}

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  overflow: visible;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.product-card:hover { border-color: #cfcfcf; box-shadow: 0 12px 26px -20px rgba(0,0,0,.32); transform: translateY(-2px); }
.product-card:target { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), 0 12px 26px -20px rgba(0,0,0,.32); }

/* Image stage — centered product on a clean white surface (Okala style) */
.product-thumb {
  position: relative; aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 12px 12px 0 0;
  overflow: visible;
}
.product-thumb::before {
  content: ''; position: absolute; inset: 10% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, #f5f7f7 0%, #fff 70%);
  opacity: .9; pointer-events: none;
}
.product-thumb-link {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 18px; border-radius: inherit;
}
.product-thumb-link img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .35s ease;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.08));
}
.product-card:hover .product-thumb-link img { transform: scale(1.05); }
.product-thumb .badge { position: absolute; top: 10px; right: 10px; z-index: 3; }
.product-badge-discount {
  background: var(--danger); color: #fff;
  border-radius: 6px; padding: 2px 8px;
  font-size: .69rem; font-weight: 700;
  box-shadow: 0 4px 10px -6px rgba(240,20,54,.7);
}

/* Blue multiplier / bundle badge — top-left */
.product-multiplier {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; padding: 3px 8px;
  border-radius: 999px;
  background: var(--info); color: #fff;
  font-size: .72rem; font-weight: 800; line-height: 1.4;
  letter-spacing: .01em;
  box-shadow: 0 6px 14px -8px rgba(3,143,198,.8);
}

/* Floating quick-add — white circle, red outline, mid-right */
.quick-add-form {
  position: absolute; top: 50%; right: 12px; z-index: 4;
  transform: translateY(-50%);
  margin: 0;
}
.quick-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  background: #fff; color: var(--danger);
  border: 2px solid var(--danger);
  font-size: 1.5rem; font-weight: 800; line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px -10px rgba(180,35,24,.55);
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.quick-add:hover { background: var(--danger); color: #fff; transform: scale(1.06); box-shadow: 0 14px 24px -10px rgba(180,35,24,.65); }
.quick-add:active { transform: scale(.96); }
.quick-add:focus-visible { outline: 3px solid var(--danger-soft); outline-offset: 2px; }
.quick-add:disabled { cursor: progress; opacity: .85; }
.quick-add.is-loading { font-size: 0; color: transparent; position: relative; opacity: 1; }
.quick-add.is-loading::after {
  content: ''; width: 18px; height: 18px;
  border: 2px solid var(--danger-soft); border-top-color: var(--danger);
  border-radius: 50%; animation: spin .7s linear infinite;
}

/* Body — right-aligned RTL typography */
.product-body {
  display: flex; flex-direction: column; gap: 4px;
  padding: 11px 12px 13px; flex: 1;
  text-align: right; direction: rtl;
}
.product-name {
  font-weight: 700; font-size: .9rem; line-height: 1.65; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 3.3em;
}
.product-name:hover { color: var(--primary-dark); }
.product-vendor { font-size: .73rem; color: var(--muted); font-weight: 500; }
.product-desc {
  font-size: .75rem; line-height: 1.7; color: var(--text-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-foot { margin-top: auto; padding-top: 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.product-price { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; min-width: 0; }
.price { font-weight: 800; font-size: 1.02rem; white-space: nowrap; color: var(--danger); letter-spacing: -.01em; }
.price small { font-weight: 500; font-size: .67rem; color: var(--muted); }
.old-price { color: #a6a6a6; text-decoration: line-through; font-size: .73rem; font-weight: 500; }

/* Card quantity stepper — always visible, mobile first */
.card-qty {
  display: inline-flex; align-items: center; flex: none;
  border: 1.5px solid var(--danger); border-radius: 9px;
  background: #fff; overflow: hidden;
}
.card-qty-btn {
  width: 31px; height: 31px; padding: 0; border: 0;
  background: #fff; color: var(--danger);
  font-size: 1.1rem; font-weight: 800; line-height: 1;
  cursor: pointer; transition: background .15s, color .15s;
}
.card-qty-btn:hover:not(:disabled) { background: var(--danger); color: #fff; }
.card-qty-btn:active:not(:disabled) { background: var(--danger-soft); }
.card-qty-btn:disabled { opacity: .3; cursor: default; }
.card-qty-value { min-width: 27px; text-align: center; font-size: .8rem; font-weight: 800; color: var(--text); }
.product-name { border: 0; background: none; padding: 0; width: 100%; text-align: right; font-family: inherit; cursor: pointer; }
.product-thumb-link { border: 0; background: transparent; cursor: zoom-in; }
.product-out { margin-top: 6px; align-self: flex-start; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.6; }
.badge-green { background: var(--primary-soft); color: var(--primary-dark); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }
.badge-blue { background: var(--info-soft); color: var(--info); }
.badge-gray { background: #f1f1f1; color: var(--text-soft); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: right; padding: 12px 16px; background: #fafafa; color: var(--text-soft); font-size: .79rem; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--border); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfbfb; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.stat-card:hover { border-color: #c9e8e9; box-shadow: 0 16px 30px -26px rgba(0, 0, 0, .5); transform: translateY(-2px); }
.stat-card .stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat-card .stat-label { font-size: .84rem; color: var(--text-soft); font-weight: 600; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; margin-top: 4px; line-height: 1.25; }
.stat-card .stat-value small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.stat-card .stat-hint { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.stat-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); flex: none; }
.stat-card .stat-icon { margin-bottom: 0; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty:not(:has(.empty-ico)) { padding: 40px 24px; }
.empty .empty-ico {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
}
.empty .empty-ico .nav-ico { width: 28px; height: 28px; }
.empty h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }
.empty p { font-size: .9rem; margin-bottom: 18px; max-width: 38ch; margin-inline: auto; }
.empty .btn { min-height: 42px; }

/* ---------- Admin / vendor shell ---------- */
.admin-shell { display: flex; min-height: 100vh; background: #f4f7f4; }
.admin-sidebar {
  width: 264px; flex: none;
  background: #fff; border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.admin-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 18px; font-weight: 800; font-size: 1.12rem;
  border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
.admin-brand img { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); padding: 4px; }
.admin-brand span small { display: block; font-size: .7rem; color: var(--muted); font-weight: 500; line-height: 1.3; margin-top: 1px; }
.admin-brand-sub {
  margin: 0 12px 8px; padding: 9px 12px;
  border-radius: 10px; background: var(--primary-soft);
  color: var(--primary-dark); font-size: .82rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-nav { padding: 4px 12px 16px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }
.admin-nav-label { padding: 10px 12px 6px; font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .2px; }
.admin-nav a {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  min-height: 46px; padding: 11px 12px; border-radius: 10px;
  color: var(--text-soft); font-weight: 600; font-size: .95rem;
  transition: background .15s, color .15s;
}
.admin-nav a:hover { background: var(--surface-soft); color: var(--text); }
.admin-nav a.active { background: var(--primary-soft); color: var(--primary-dark); box-shadow: inset 0 0 0 1px #d6e9dc; }
.admin-nav a.active::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px; background: var(--primary);
}
.admin-nav .nav-ico { width: 21px; height: 21px; flex: none; opacity: .88; }
.admin-nav .nav-badge { margin-inline-start: auto; background: var(--danger); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .7rem; font-weight: 700; }
.admin-sidebar-foot { padding: 16px; border-top: 1px solid var(--border); background: #fbfbfb; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 32px; background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.admin-topbar h1 { font-size: 1.28rem; letter-spacing: -.3px; line-height: 1.4; }
.admin-topbar p { font-size: .84rem; color: var(--muted); margin-top: 1px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; }
.admin-content { padding: 26px 32px 56px; width: 100%; max-width: 1320px; margin-inline: auto; }
.admin-user {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: var(--text-soft);
  background: #f8faf8; border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px 5px 7px;
}
.admin-user .avatar { width: 32px; height: 32px; }
.admin-section-title { font-size: 1.02rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.admin-section-title .muted { font-weight: 500; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Dashboard hero + grid */
.admin-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 26px; margin-bottom: 22px;
  border-radius: 18px; border: 1px solid #dbe9dd;
  background: linear-gradient(150deg, #f2f8f3 0%, #eaf3ec 100%);
}
.admin-hero h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; }
.admin-hero p { color: var(--text-soft); font-size: .9rem; margin-top: 4px; max-width: 62ch; }
.admin-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel-list { display: flex; flex-direction: column; }
.panel-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 20px; border-bottom: 1px solid var(--border);
}
.panel-item:last-child { border-bottom: 0; }
.panel-item:hover { background: #fbfbfb; }
.panel-item .pi-main { min-width: 0; }
.panel-item .pi-title { font-size: .9rem; font-weight: 600; }
.panel-item .pi-meta { font-size: .74rem; color: var(--muted); }
.panel-empty { padding: 30px 20px; text-align: center; color: var(--muted); font-size: .86rem; }

/* Admin quick big-button grid */
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.quick-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-height: 130px; padding: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  font-weight: 700; font-size: .98rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.quick-card:hover { border-color: #c9e8e9; background: #fbfbfb; transform: translateY(-2px); box-shadow: 0 14px 28px -24px rgba(0, 0, 0, .45); }
.quick-card .q-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); flex: none; }
.quick-card .q-title { display: flex; align-items: center; gap: 8px; }
.quick-card .q-desc { font-size: .77rem; font-weight: 500; color: var(--muted); line-height: 1.65; margin-top: -4px; }

/* ---------- Customer account panel ---------- */
.account-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 28px; margin-bottom: 22px;
  border: 1px solid #dbe9dd; border-radius: 20px;
  background: linear-gradient(150deg, #f2fbfb 0%, #e9f2eb 55%, #f6faf7 100%);
}
.account-hero::after {
  content: ''; position: absolute; inset-inline-end: -70px; top: -80px;
  width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 115, 71, .12), transparent 70%);
  pointer-events: none;
}
.account-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-id .avatar { width: 66px; height: 66px; font-size: 1.35rem; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .6); }
.account-id h1 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.4; }
.account-id .account-phone { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-soft); margin-top: 2px; }
.account-id .account-meta { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.account-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.account-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 86px; }
.account-menu { display: flex; flex-direction: column; padding: 6px; }
.account-menu a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 10px;
  color: var(--text-soft); font-size: .9rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.account-menu a:hover { background: var(--surface-soft); color: var(--text); }
.account-menu a .nav-ico { width: 19px; height: 19px; color: var(--muted); }
.account-menu a .menu-badge { margin-inline-start: auto; background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 0 8px; font-size: .7rem; font-weight: 700; }
.account-hero .stat-grid { margin: 0; }
.account-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 10px 14px; font-size: .9rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; background: none; border-top: 0; border-inline: 0; cursor: pointer; }
.tabs a.active, .tabs button.active { color: var(--primary-dark); border-bottom-color: var(--primary); }

/* ---------- Ticket chat ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 11px 14px; border-radius: 14px; font-size: .92rem; }
.msg .meta { display: block; font-size: .7rem; color: var(--muted); margin-bottom: 3px; }
.msg-user { align-self: flex-start; background: var(--surface-soft); border: 1px solid var(--border); }
.msg-admin { align-self: flex-end; background: var(--primary-soft); border: 1px solid #cdeff0; }
.msg img { margin-top: 8px; border-radius: 10px; max-width: 240px; border: 1px solid var(--border); }

/* ---------- Cart / checkout ---------- */
.cart-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); background: #f1f4f1; }
.qty-form { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden; }
.qty-form button { width: 32px; height: 34px; border: 0; background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--text-soft); }
.qty-form button:hover { background: var(--surface-soft); }
.qty-form input { width: 46px; height: 34px; border: 0; text-align: center; font-weight: 700; outline: none; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .92rem; color: var(--text-soft); }
.summary-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--border); font-weight: 800; font-size: 1.1rem; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.tag { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: .74rem; background: var(--surface-soft); color: var(--text-soft); }
.breadcrumb { display: flex; gap: 7px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; text-align: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: .88rem; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-panel { grid-template-columns: 1fr; padding: 32px; }
  .hero-media { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; min-height: 62px; gap: 10px; padding-top: 8px; padding-bottom: 4px; }
  .nav-links { order: 3; flex-basis: 100%; overflow-x: auto; gap: 2px; padding-bottom: 4px; }
  .nav-links a { padding: 7px 9px; white-space: nowrap; }
  .hidden-sm { display: none !important; }
  .brand { font-size: 1.1rem; }
  .brand small { display: none; }
  .admin-shell { display: block; }
  .admin-sidebar { position: static; width: auto; height: auto; border-left: 0; border-bottom: 1px solid var(--border); }
  .admin-nav { flex-direction: row; overflow-x: auto; padding: 8px 12px 12px; }
  .admin-nav a { white-space: nowrap; padding: 9px 12px; font-size: .9rem; }
  .admin-nav .nav-badge { display: none; }
  .admin-sidebar-foot { display: none; }
  .admin-content, .admin-topbar { padding-inline: 18px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .product-thumb-link { padding: 16px; }
  .product-body { padding: 12px 12px 14px; }
  .product-name { font-size: .9rem; min-height: 3.2em; }
  .quick-add { width: 38px; height: 38px; font-size: 1.3rem; }
  .quick-add-form { right: 8px; }
  .cart-row { grid-template-columns: 60px 1fr; }
  .cart-thumb { width: 60px; height: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 520px) {
  .container, .container-narrow { width: calc(100% - 28px); }
  .hero { padding-top: 22px; }
  .hero-panel { padding: 24px 20px; border-radius: 18px; }
  .hero-search { flex-direction: column; }
  .section { padding: 30px 0; }
  .panel-body, .card-body { padding: 18px; }
  .product-name { font-size: .88rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 1.3rem; }
  .quick-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Search experience
   ========================================================= */
.header-search {
  position: relative; display: flex; align-items: center;
  flex: 0 1 268px; min-width: 200px;
}
.header-search .search-ico {
  position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted); pointer-events: none;
}
.header-search input {
  width: 100%; min-height: 40px; padding-inline: 36px 12px; border-radius: 999px;
  font-size: .85rem; background: var(--surface-soft); border-color: transparent;
}
.header-search input:focus { background: #fff; }
.search-submit {
  position: absolute; inset-inline-end: 7px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); cursor: pointer; z-index: 2;
  transition: background .15s, color .15s;
}
.search-submit:hover { background: var(--surface-soft); color: var(--primary-dark); }
.search-submit .nav-ico { width: 18px; height: 18px; }
.search-toggle { display: none; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--text-soft); cursor: pointer; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-soft); border-color: var(--border-strong); }
.icon-btn .nav-ico { width: 19px; height: 19px; }

.search-suggest {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 90;
  display: none; padding: 8px; text-align: right;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .45);
  max-height: min(62vh, 430px); overflow: auto;
  overscroll-behavior: contain;
}
.search-suggest.open { display: block; animation: sgPop .16s ease both; }
.search-suggest .sg-label {
  padding: 8px 10px 4px; font-size: .72rem; font-weight: 700; color: var(--muted);
}
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px 8px; }
.sg-chips .chip { padding: 5px 12px; font-size: .78rem; }
.sg-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; min-height: 58px;
}
.sg-item:hover, .sg-item.active { background: var(--surface-soft); }
.sg-item img {
  width: 44px; height: 44px; border-radius: 9px; object-fit: cover;
  border: 1px solid var(--border); background: #f1f4f1; flex: none;
}
.sg-item .sg-name { font-size: .88rem; font-weight: 600; line-height: 1.5; }
.sg-info { display: flex; flex-direction: column; min-width: 0; }
.sg-info .sg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-item .sg-meta { font-size: .72rem; color: var(--muted); line-height: 1.5; }
.sg-item .sg-price { margin-inline-start: auto; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.sg-empty { padding: 24px 12px; font-size: .85rem; color: var(--muted); text-align: center; }
.sg-loading { padding: 18px 12px; font-size: .82rem; color: var(--muted); text-align: center; }
.sg-loading::after { content: ''; display: inline-block; width: 13px; height: 13px; margin-inline-start: 8px; border: 2px solid var(--border-strong); border-top-color: var(--primary); border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }

.search-overlay {
  position: fixed; inset: 0; z-index: 200; padding: 8vh 16px 16px;
  display: grid; place-items: start center;
}
.search-overlay[hidden] { display: none !important; }
.search-overlay-scrim { position: absolute; inset: 0; background: rgba(9, 20, 13, .48); backdrop-filter: blur(4px); }
.search-overlay-panel {
  position: relative; width: min(580px, 100%);
  background: #fff; border-radius: 20px; padding: 20px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
  animation: sgPop .2s ease both;
  max-height: min(84vh, 720px); overflow: auto;
}
.search-overlay-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.search-overlay-head h3 { font-size: 1.02rem; }
.search-overlay-form { position: relative; display: block; }
.search-overlay-form .input { min-height: 48px; border-radius: 12px; padding-inline-end: 50px; }
.search-overlay-form .search-submit { inset-inline-end: 8px; width: 36px; height: 36px; }
.search-overlay-form .search-suggest {
  position: static; display: block; border: 0; box-shadow: none;
  padding: 10px 0 0; max-height: 48vh; background: transparent;
}
.search-overlay-form .search-suggest:empty { display: none; }
.search-popular { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.search-popular > span { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
.search-popular .chips { gap: 8px; }
.search-popular .chip { padding: 6px 13px; font-size: .8rem; }
body.search-open { overflow: hidden; }

/* =========================================================
   3D fruit hero showcase
   ========================================================= */
.hero-media { position: relative; display: flex; justify-content: center; align-items: center; }
.fruit-stage {
  position: relative; width: 100%; max-width: 360px; margin-inline: auto; padding: 8px;
  perspective: 1100px;
  animation: fruitIn .75s cubic-bezier(.22, .61, .36, 1) both;
}
.fruit-stage::before {
  content: ''; position: absolute; inset: 12% 6% 4%;
  background: radial-gradient(circle at 50% 58%, rgba(21, 115, 71, .18), rgba(21, 115, 71, 0) 68%);
  border-radius: 50%; filter: blur(6px); z-index: 0;
}
.fruit-decor-wrap {
  position: absolute; z-index: 0; width: 46%; top: -5%; inset-inline-end: -10%;
  pointer-events: none; filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .2));
  transform: translate3d(calc(var(--par-x, 0px) * 1.2), calc(var(--par-y, 0px) * 1.2), 0);
  transition: transform .35s ease-out;
}
.fruit-decor-wrap img { width: 100%; height: auto; animation: fruitFloat 7s ease-in-out infinite; }
.fruit-decor-wrap picture, .fruit-banner-art picture { display: block; width: 100%; height: 100%; }
.fruit-card a { color: inherit; }
.fruit-card {
  position: relative; z-index: 1; display: block; width: 100%; max-width: 320px;
  margin-inline: auto; padding: 16px;
  background: linear-gradient(165deg, #ffffff, #f4faf5);
  border: 1px solid #d9e8da; border-radius: 22px;
  box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .42), inset 0 1px 0 #fff;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease;
}
.fruit-stage.is-tilting .fruit-card { transition-duration: .08s; }
.fruit-card:hover { box-shadow: 0 36px 64px -32px rgba(0, 0, 0, .5); }
.fruit-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: .74rem; font-weight: 700;
}
.fruit-image-wrap {
  width: 100%; aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden; background: #edf6ee;
  transform: translateZ(24px);
  box-shadow: 0 14px 24px -20px rgba(0, 0, 0, .45);
}
.fruit-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fruit-card:hover .fruit-image-wrap img { transform: scale(1.035); }
.fruit-info { margin-top: 12px; transform: translateZ(14px); }
.fruit-info strong { display: block; font-size: 1.06rem; line-height: 1.45; }
.fruit-info .fruit-vendor { display: block; font-size: .76rem; color: var(--muted); line-height: 1.5; }
.fruit-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.fruit-price { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.fruit-price small { font-size: .7rem; font-weight: 500; color: var(--muted); }
.fruit-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 12px; transform: translateZ(10px);
}
.fruit-actions .btn { width: 100%; min-height: 42px; padding: 8px 10px; font-size: .84rem; }
.fruit-swap { animation: fruitSwap .45s ease both; }

/* =========================================================
   3D banner bar
   ========================================================= */
.fruit-banner {
  position: relative; overflow: hidden; perspective: 1400px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(16px, 4vw, 28px); align-items: center;
  min-height: 208px; padding: clamp(20px, 4.5vw, 32px);
  border-radius: 24px;
  border: 1px solid #d9e8da;
  background: linear-gradient(115deg, #edf7ef 0%, #f8fcf5 58%, #fffaf0 100%);
  box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .42);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.fruit-banner.is-tilting { transition-duration: .08s; }
.fruit-banner-copy { position: relative; z-index: 2; max-width: none; transform: translateZ(32px); display: flex; flex-direction: column; align-items: flex-start; }
.fruit-banner-copy h2 { font-size: clamp(1.12rem, 2.1vw, 1.62rem); line-height: 1.45; margin: 10px 0 6px; letter-spacing: -.3px; }
.fruit-banner-copy p { color: var(--text-soft); font-size: .94rem; max-width: 42ch; }
.fruit-banner-copy .row { margin-top: 16px; gap: 10px; }
.fruit-banner-art {
  position: relative; z-index: 1; width: 100%; align-self: end;
  pointer-events: none;
  transform: translate3d(calc(var(--par-x, 0px) * -0.8), calc(var(--par-y, 0px) * -0.8), 36px);
  transition: transform .35s ease-out;
}
.fruit-banner-art img {
  width: 100%; height: auto; max-height: 188px; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .16));
}
.fruit-banner-glow {
  position: absolute; inset-inline-start: 10%; top: -36%; width: 40%; height: 160%;
  background: radial-gradient(circle, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 70%);
  z-index: 0; pointer-events: none;
}

/* =========================================================
   Desktop-only 3D interactions (phones stay flat & fast)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .hero-panel { position: relative; overflow: hidden; }
  .hero-panel > * { position: relative; z-index: 1; }
  .hero-panel::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 72%) var(--my, 28%), rgba(21, 115, 71, .12), transparent 62%);
    opacity: 0; transition: opacity .35s ease;
  }
  .hero-panel:hover::after { opacity: 1; }

  .product-card {
    perspective: 900px; transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition: transform .5s cubic-bezier(.22, .61, .36, 1), border-color .18s, box-shadow .25s;
  }
  .product-card:hover {
    --lift: -4px;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    box-shadow: 0 26px 44px -26px rgba(0, 0, 0, .45);
  }
  .product-card.is-tilting { transition-duration: .08s, .18s, .25s; }
  .product-thumb { transform-style: preserve-3d; }
  .product-thumb-link { transform-style: preserve-3d; overflow: hidden; }
  .product-thumb-link img { transform: translateZ(12px) scale(1.01); }
  .product-card:hover .product-thumb-link img { transform: translateZ(22px) scale(1.05); }
  .product-thumb-link::after {
    content: ''; position: absolute; inset: -30% -60%; z-index: 2; pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
    transform: translateX(-130%) rotate(6deg); opacity: 0;
  }
  .product-card:hover .product-thumb-link::after { animation: cardShine .85s ease .05s; }
  .product-multiplier, .quick-add-form { transform: translateZ(18px); }
  .quick-add-form { transform: translateZ(18px) translateY(-50%); }
  .product-card .product-body { transform: translateZ(6px); }

  .btn-primary { box-shadow: 0 8px 16px -10px rgba(21, 115, 71, .85); }
  .btn-primary:hover { transform: translateY(-1px); }
  .chip:hover, .category-card:hover { transform: translateY(-2px); }
  .fruit-banner:hover { box-shadow: 0 38px 70px -42px rgba(0, 0, 0, .5); }
}

/* Scroll reveal (added by JS only) */
.js-reveal {
  opacity: 0; translate: 0 18px;
  transition: opacity .6s ease, translate .65s cubic-bezier(.22, .61, .36, 1);
}
.js-reveal.in { opacity: 1; translate: 0 0; }

@keyframes fruitFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
@keyframes fruitIn {
  from { opacity: 0; translate: 0 22px; scale: .97; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes fruitSwap {
  0% { opacity: .2; transform: scale(.96) rotateY(-8deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes cardShine {
  0% { transform: translateX(-130%) rotate(6deg); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateX(130%) rotate(6deg); opacity: 0; }
}
@keyframes sgPop {
  from { opacity: 0; transform: translateY(-6px) scale(.99); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Store page ---------- */
.store-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px 22px; margin-bottom: 20px;
}
.store-head h1 { font-size: 1.3rem; line-height: 1.4; }
.store-head .store-avatar { width: 64px; height: 64px; font-size: 1.2rem; }
.store-head p { margin-top: 2px; }
.store-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.store-search {
  display: block;
  width: min(420px, 100%); position: relative;
}
.store-search .input { min-height: 46px; padding-inline-end: 50px; }
.store-search .search-submit { inset-inline-end: 7px; width: 34px; height: 34px; }
.store-search .search-suggest { top: calc(100% + 6px); }
.store-clear { color: var(--primary); font-weight: 600; white-space: nowrap; }
.store-chips { margin-bottom: 20px; gap: 8px; }
.store-chips .chip { min-height: 38px; }

/* =========================================================
   Location, distance and store maps
   ========================================================= */
.geo-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.geo-status { font-size: .78rem; color: var(--muted); }
.geo-status.ok { color: var(--primary-dark); font-weight: 600; }
.geo-status.err { color: var(--danger); }
.btn-geo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--text-soft); font-weight: 700; font-size: .84rem; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn-geo:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }
.btn-geo .nav-ico { width: 17px; height: 17px; }
.distance-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-soft); color: var(--text-soft); border: 1px solid var(--border); white-space: nowrap; }
.distance-pill.is-near { background: var(--primary-soft); color: var(--primary-dark); border-color: #cdeff0; }
.distance-pill.is-mid { background: var(--warning-soft); color: var(--warning); border-color: #f5e0b8; }
.distance-pill.is-far { background: var(--danger-soft); color: var(--danger); border-color: #f7cfcb; }

.map-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: center;
  padding: clamp(22px, 4vw, 38px); border-radius: 24px; border: 1px solid #d9e8da;
  background: linear-gradient(120deg, #edf7ef 0%, #f7fbf4 60%, #fff8e9 100%);
  box-shadow: 0 34px 62px -48px rgba(0, 0, 0, .5);
}
.map-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.4; margin: 12px 0 8px; letter-spacing: -.4px; }
.map-hero p { color: var(--text-soft); max-width: 52ch; }
.map-hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.map-hero-art img { width: min(100%, 330px); height: auto; filter: drop-shadow(0 26px 30px rgba(0,0,0,.18)); animation: fruitFloat 8s ease-in-out infinite; }
.map-hero-badge { position: absolute; inset-inline-end: 2%; bottom: 8%; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 24px -18px rgba(0,0,0,.5); font-size: .76rem; font-weight: 700; color: var(--primary-dark); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.map-shell { position: relative; isolation: isolate; border: 1px solid #d9eded; border-radius: 20px; overflow: hidden; background: #edf7f7; box-shadow: 0 26px 46px -34px rgba(0,0,0,.5); }
.map-canvas { width: 100%; height: 470px; background: #edf7f7; }
.map-canvas.is-compact { height: 300px; }
.map-canvas.leaflet-container { font-family: var(--font); }
.map-canvas .leaflet-control-zoom a { color: var(--text); border-radius: 8px; }
.map-canvas .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.5); }
.map-canvas .leaflet-popup-content { margin: 12px 14px; font-family: var(--font); direction: rtl; text-align: right; }
.map-float { position: absolute; z-index: 950; top: 14px; inset-inline-start: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 28px); }
.map-float .btn, .map-float .btn-geo { min-height: 38px; padding: 7px 12px; font-size: .8rem; background: #fff; box-shadow: 0 10px 22px -18px rgba(0,0,0,.5); }
.map-float .distance-pill { background: #fff; box-shadow: 0 10px 22px -18px rgba(0,0,0,.5); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.map-hint { position: absolute; z-index: 890; bottom: 12px; inset-inline-start: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.94); border: 1px solid var(--border); font-size: .72rem; color: var(--text-soft); }
.store-list { display: flex; flex-direction: column; max-height: 520px; overflow: auto; padding: 6px; }
.store-list-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border-bottom: 1px solid var(--border); transition: background .15s, transform .15s; }
.store-list-item:last-child { border-bottom: 0; }
.store-list-item:hover { background: #fbfbfb; }
.store-list-item .store-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); flex: none; font-weight: 800; }
.store-list-item .sl-main { min-width: 0; flex: 1; }
.store-list-item .sl-name { display: block; font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-list-item .sl-meta { display: block; font-size: .74rem; color: var(--muted); }
.store-list-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: .86rem; }

/* ---------- Route buttons and directions panel ---------- */
.route-btn {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 1px solid var(--border-strong); border-radius: 10px; background: #fff;
  color: var(--primary-dark); cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.route-btn:hover { background: var(--primary-soft); border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 8px 16px -12px rgba(0,0,0,.5); }
.route-btn .nav-ico { width: 18px; height: 18px; }
.map-float .route-btn { box-shadow: 0 10px 22px -18px rgba(0,0,0,.5); }

.route-panel {
  position: absolute; z-index: 900; inset-inline-start: 14px; bottom: 14px;
  width: min(338px, calc(100% - 28px)); padding: 14px;
  border-radius: 16px; border: 1px solid #cdeff0;
  background: linear-gradient(160deg, rgba(255,255,255,.99) 0%, rgba(240,249,243,.99) 100%);
  box-shadow: 0 26px 48px -24px rgba(0, 0, 0, .55), 0 1px 0 #fff inset;
  transform: translateY(10px) scale(.97); opacity: 0; pointer-events: none;
  transition: transform .28s ease, opacity .22s ease;
}
.route-panel[hidden] { display: none; }
.route-panel.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.route-panel.is-inline { position: static; width: 100%; margin-top: 12px; }
.route-panel-head { display: flex; align-items: flex-start; gap: 10px; }
.route-panel-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--primary-soft); color: var(--primary-dark); box-shadow: inset 0 -2px 0 rgba(21,115,71,.12); }
.route-panel-icon svg { width: 20px; height: 20px; }
.route-panel-copy { min-width: 0; flex: 1; }
.route-panel-copy strong { display: block; font-size: .9rem; line-height: 1.5; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-panel-copy span { display: block; font-size: .72rem; color: var(--text-soft); line-height: 1.6; margin-top: 1px; }
.route-panel-close { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.05rem; line-height: 1; cursor: pointer; }
.route-panel-close:hover { background: rgba(0,0,0,.06); color: var(--text); }
.route-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.route-stat { padding: 9px 11px; border-radius: 11px; background: #fff; border: 1px solid var(--border); }
.route-stat strong { display: block; font-size: .9rem; color: var(--primary-dark); font-weight: 800; }
.route-stat span { display: block; font-size: .66rem; color: var(--muted); margin-top: 1px; }
.route-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.route-actions .btn { flex: 1 1 auto; min-height: 34px; padding: 6px 10px; font-size: .78rem; }
.leaflet-route-line { animation: routeDash 1.15s linear infinite; }
@keyframes routeDash { to { stroke-dashoffset: -48; } }

/* OpenStreetMap controls, accuracy and location */
.map-canvas .leaflet-bar {
  border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden;
  box-shadow: 0 14px 26px -20px rgba(0,0,0,.6);
}
.map-canvas .leaflet-bar a {
  width: 34px; height: 34px; line-height: 34px;
  background: #fff; color: var(--text); border-bottom-color: var(--border);
}
.map-canvas .leaflet-bar a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.map-canvas .leaflet-bar a:last-child { border-bottom: 0; }
.tz-map-controls .tz-map-locate { display: grid; place-items: center; }
.tz-map-controls .tz-map-locate svg { width: 17px; height: 17px; }
.map-canvas .leaflet-control-scale-line {
  border: 1px solid rgba(0,0,0,.35); border-top: 0;
  background: rgba(255,255,255,.82); color: var(--text-soft);
  border-radius: 0 0 6px 6px; padding: 1px 6px; font-size: .64rem;
  box-shadow: 0 6px 14px -12px rgba(0,0,0,.5);
}
.map-canvas .leaflet-control-attribution {
  background: rgba(255,255,255,.86); color: var(--text-soft);
  font-size: 10px; padding: 1px 6px; border-radius: 8px 0 0 0;
}
.map-canvas .leaflet-control-attribution a { color: var(--primary-dark); }
.map-canvas.leaflet-container { background: #e7ece6; }
.map-canvas .leaflet-popup-content-wrapper { border: 1px solid var(--border); }

/* Leaflet popup content */
.map-popup { direction: rtl; text-align: right; font-family: var(--font); }
.map-popup-title { font-size: .95rem; display: block; }
.map-popup-address { font-size: .76rem; color: #748077; margin-top: 2px; line-height: 1.6; }
.map-popup-distance { font-size: .78rem; color: #017a7d; margin-top: 4px; font-weight: 700; }
.map-popup-accuracy { font-size: .72rem; color: #748077; margin-top: 3px; line-height: 1.6; }
.map-popup-note { font-size: .68rem; color: var(--muted); }
.map-popup-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.map-popup-btn { border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-family: inherit; font-weight: 700; font-size: .76rem; padding: 6px 10px; cursor: pointer; transition: background .15s; }
.map-popup-btn:hover { background: var(--primary-dark); }
.map-popup-link { font-size: .76rem; font-weight: 700; color: var(--primary-dark); }

/* Checkout location panel */
.location-panel { border: 1px solid #d9eded; background: linear-gradient(160deg, #fbfbfb, #f2fbfb); }
.location-panel .location-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.location-panel .location-head h3 { font-size: 1rem; }
.location-panel .location-head .badge { flex: none; }
.location-panel .geo-map-mini { height: 230px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin-top: 12px; background: #edf7f7; }
.location-panel .vendor-distances { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.location-panel .vendor-distance { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: .82rem; }
.location-panel .vendor-distance strong { font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.location-panel .vendor-distance .route-btn { width: 32px; height: 32px; }

/* Small pulsing user marker */
.tz-map-marker { position: relative; display: grid; place-items: center; width: 26px; height: 26px; }
.tz-map-marker::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(21, 115, 71, .22); animation: tzPulse 2.2s ease-out infinite; }
.tz-map-marker span { position: relative; width: 13px; height: 13px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.tz-store-marker { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #fff; border: 2px solid var(--primary); color: var(--primary-dark); box-shadow: 0 10px 20px -12px rgba(0,0,0,.6); font-weight: 800; font-size: .8rem; transition: transform .16s ease, box-shadow .16s ease; }
.tz-store-marker:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 16px 26px -14px rgba(0,0,0,.7); }
.tz-store-tip { direction: rtl; font-family: var(--font); background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 9px; box-shadow: 0 12px 26px -16px rgba(0,0,0,.55); display: inline-flex; align-items: center; gap: 6px; }
.tz-store-tip::before { border-top-color: #fff; }
.tz-store-tip-name { font-size: .72rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.tz-store-tip-distance { font-size: .68rem; font-weight: 800; color: var(--primary-dark); background: var(--primary-soft); padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.leaflet-tooltip.tz-store-tip { margin-top: -6px; }
@keyframes tzPulse { 0% { transform: scale(.7); opacity: .9; } 70% { transform: scale(2.1); opacity: 0; } 100% { opacity: 0; } }

/* =========================================================
   Free-shipping left toast
   ========================================================= */
.promo-toast {
  position: fixed; left: 18px; bottom: 24px; z-index: 210;
  display: flex; align-items: center; gap: 12px;
  width: min(370px, calc(100% - 36px)); padding: 13px 14px 13px 12px;
  background: linear-gradient(150deg, #ffffff 0%, #eef8f1 100%);
  border: 1px solid #cdeff0; border-radius: 16px;
  box-shadow: 0 30px 54px -28px rgba(0, 0, 0, .55), 0 2px 0 #fff inset;
  transform: translateX(-130%) rotateY(12deg) scale(.96); transform-origin: left center;
  opacity: 0; pointer-events: none;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1), opacity .4s ease;
}
.promo-toast.is-visible { transform: translateX(0) rotateY(0) scale(1); opacity: 1; pointer-events: auto; }
.promo-toast-art { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--primary-soft); overflow: hidden; }
.promo-toast-art img { width: 50px; height: 50px; object-fit: contain; }
.promo-toast-copy { min-width: 0; flex: 1; }
.promo-toast-copy strong { display: block; font-size: .88rem; line-height: 1.55; color: var(--primary-dark); }
.promo-toast-copy span { display: block; font-size: .73rem; color: var(--text-soft); line-height: 1.6; }
.promo-toast-close { align-self: flex-start; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; flex: none; }
.promo-toast-close:hover { background: rgba(0,0,0,.06); color: var(--text); }

/* =========================================================
   Optional location dialog (shown once when adding to cart)
   ========================================================= */
.tz-geo-modal { position: fixed; inset: 0; z-index: 320; display: none; align-items: center; justify-content: center; padding: 16px; }
.tz-geo-modal.open { display: flex; }
.tz-geo-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); backdrop-filter: blur(3px); }
.tz-geo-card {
  position: relative; width: min(430px, 100%); padding: 24px;
  border-radius: 20px; border: 1px solid #d6e7da; background: linear-gradient(160deg, #fff, #f2f9f4);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  transform: perspective(900px) rotateX(5deg) translateY(14px) scale(.97); opacity: 0;
  transition: transform .3s ease, opacity .25s ease; text-align: center;
}
.tz-geo-modal.open .tz-geo-card { transform: perspective(900px) rotateX(0) translateY(0) scale(1); opacity: 1; }
.tz-geo-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-dark); box-shadow: inset 0 -3px 0 rgba(21,115,71,.12); }
.tz-geo-icon .nav-ico { width: 28px; height: 28px; }
.tz-geo-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.tz-geo-card p { font-size: .88rem; color: var(--text-soft); line-height: 1.8; }
.tz-geo-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.tz-geo-actions .btn { width: 100%; }

/* Extra 3D depth for panels on desktop */
@media (hover: hover) and (pointer: fine) {
  .stat-card, .quick-card, .account-hero, .store-head, .vendor-card {
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .25s, border-color .18s;
  }
  .stat-card:hover, .quick-card:hover, .account-hero:hover, .store-head:hover, .vendor-card:hover {
    --lift: -3px; box-shadow: 0 26px 46px -30px rgba(0,0,0,.48);
  }
  .stat-card.is-tilting, .quick-card.is-tilting, .account-hero.is-tilting, .store-head.is-tilting, .vendor-card.is-tilting { transition-duration: .08s, .25s, .18s; }
  .cart-row:hover { background: #fbfbfb; }
}

/* ---------- Extra responsive rules ---------- */
@media (max-width: 1366px) {
  .header-search { display: none; }
  .search-toggle { display: inline-grid; }
}
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .hero-panel { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; display: flex; }
  .fruit-stage { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; min-height: 60px; gap: 10px; padding-block: 8px 6px; }
  .nav-links { order: 3; flex-basis: 100%; overflow-x: auto; gap: 2px; padding-bottom: 4px; }
  .nav-links a { font-size: clamp(.74rem, 1.9vw, .86rem); padding: 6px 9px; gap: 5px; }
  .nav-links .nav-ico { width: 16px; height: 16px; }
  .header-actions { gap: 6px; }
  .cart-link { padding: 7px 9px; }
  .header-user { padding: 4px; }
  .hidden-sm { display: none !important; }
  .brand { font-size: 1.1rem; }
  .brand small { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .product-name { font-size: .9rem; }
  .cart-row { grid-template-columns: 60px 1fr; }
  .cart-thumb { width: 60px; height: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 24px; }
  .admin-shell { display: block; }
  .admin-sidebar { position: static; width: auto; height: auto; border-left: 0; border-bottom: 1px solid var(--border); }
  .admin-nav { flex-direction: row; overflow-x: auto; padding: 8px 12px 12px; }
  .admin-nav a { white-space: nowrap; padding: 9px 12px; font-size: .9rem; }
  .admin-nav .nav-badge { display: none; }
  .admin-sidebar-foot { display: none; }
  .admin-content, .admin-topbar { padding-inline: 18px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .fruit-banner { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .fruit-banner-art { max-width: 520px; margin-inline: auto; }
  .fruit-banner-art img { max-height: 180px; }
  .store-head { padding: 16px; gap: 14px; }
  .store-head .store-avatar { width: 54px; height: 54px; font-size: 1.05rem; }
  .store-head h1 { font-size: 1.15rem; }
  .search-overlay { padding-top: 4vh; }
}
.mobile-dock { display: none; }
@media (max-width: 640px) {
  .hero { padding-top: 16px; }
  .hero-panel { padding: 20px; border-radius: 18px; gap: 16px; }
  .hero h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .hero p { font-size: .92rem; }
  .hero-search { flex-direction: column; gap: 8px; }
  .hero-search .btn { width: 100%; }
  .hero-stats { gap: 16px; margin-top: 18px; }
  .fruit-stage { max-width: 290px; }
  .fruit-card { padding: 12px; border-radius: 18px; }
  .fruit-image-wrap { border-radius: 12px; }
  .fruit-info strong { font-size: 1rem; }
  .fruit-actions { gap: 6px; }
  .fruit-actions .btn { font-size: .78rem; min-height: 40px; padding-inline: 8px; }
  .fruit-decor-wrap { width: 42%; top: -4%; inset-inline-end: -6%; }
  .section { padding: 28px 0; }
  .section-sm { padding: 20px 0; }
  .cat-head { align-items: center; margin-bottom: 12px; }
  .cat-scroll-btn { display: none; }
  .cat-bar { gap: 10px; margin-inline: -14px; padding: 6px 14px 12px; scroll-padding-inline: 14px; }
  .cat-tile { flex: 0 0 clamp(220px, 80vw, 300px); min-width: 0; max-width: none; min-height: 96px; padding: 14px; border-radius: 16px; }
  .cat-tile-icon { flex-basis: 50px; width: 50px; height: 50px; font-size: 1.5rem; border-radius: 14px; }
  .cat-tile-body strong { font-size: .92rem; }
  .cat-tile-go { flex-basis: 28px; width: 28px; height: 28px; }
  .product-grid { gap: 12px; }
  .product-body { padding: 12px; }
  .product-name { font-size: .85rem; min-height: 2.9em; }
  .product-foot { gap: 6px; }
  .product-foot .btn { padding: 6px 10px; }
  .chips { gap: 6px; }
  .chip { padding: 7px 12px; font-size: .82rem; }
  .search-overlay { padding: 3vh 10px 10px; }
  .search-overlay-panel { padding: 16px; border-radius: 16px; max-height: 90vh; }
  .search-overlay-form .btn { padding-inline: 14px; }
  .search-overlay-form .search-suggest { max-height: 46vh; }
  .store-search { width: 100%; }
  .store-toolbar { gap: 10px; }
  .store-clear { margin-inline-start: auto; }

  body.has-dock { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-dock {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; inset-inline: 0; bottom: 0; z-index: 120;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 30px -24px rgba(0, 0, 0, .5);
  }
  .mobile-dock a, .mobile-dock button {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 4px 2px; border: 0; border-radius: 10px;
    background: none; color: var(--muted); font-family: inherit;
    font-size: .68rem; font-weight: 600; cursor: pointer; position: relative;
  }
  .mobile-dock .nav-ico { width: 21px; height: 21px; }
  .mobile-dock a:active, .mobile-dock button:active { background: var(--primary-soft); color: var(--primary-dark); }
  .mobile-dock .dock-badge {
    position: absolute; top: 1px; inset-inline-end: calc(50% - 23px);
    min-width: 17px; height: 17px; padding: 0 4px;
    display: grid; place-items: center;
    background: var(--primary); color: #fff; border-radius: 999px;
    font-size: .62rem; font-weight: 700;
  }
}
@media (max-width: 520px) {
  .container, .container-narrow { width: calc(100% - 28px); }
  .hero-panel { padding: 18px; }
  .hero h1 { font-size: 1.5rem; }
  .nav-links a { font-size: .74rem; padding: 6px 7px; }
  .nav-links .nav-ico { width: 15px; height: 15px; }
  .header-actions { gap: 4px; }
  .header-actions > .btn { display: none; }
  .header-user { padding: 4px; border: 0; background: transparent; }
  .header-user .avatar { width: 26px; height: 26px; font-size: .72rem; }
  .header-user > span:not(.avatar) { display: none; }
  .cart-link { font-size: .78rem; padding: 6px 8px; }
  .icon-btn, .search-toggle { width: 36px; height: 36px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-foot { flex-wrap: wrap; }
  .product-thumb-link { padding: 12px; }
  .product-body { padding: 10px 10px 12px; gap: 3px; }
  .product-name { font-size: .84rem; min-height: 3.3em; }
  .product-vendor, .product-desc { font-size: .72rem; }
  .price { font-size: .98rem; }
  .old-price { font-size: .72rem; }
  .card-qty-btn { width: 30px; height: 30px; font-size: 1.05rem; }
  .card-qty-value { min-width: 24px; font-size: .78rem; }
  .product-multiplier { top: 8px; left: 8px; min-width: 28px; padding: 3px 7px; font-size: .68rem; }
  .product-thumb .badge { top: 8px; right: 8px; font-size: .66rem; padding: 2px 7px; }
  .quick-add { width: 34px; height: 34px; font-size: 1.15rem; border-width: 2px; }
  .quick-add-form { right: 6px; }
  .fruit-card { padding: 10px; }
  .fruit-info strong { font-size: .95rem; }
  .fruit-price { font-size: .95rem; }
  .fruit-actions { grid-template-columns: 1fr; }
  .panel-body, .card-body { padding: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 1.3rem; }
  .quick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
}
@media (max-width: 640px) {
  .account-hero { padding: 20px; border-radius: 16px; }
  .account-id { gap: 12px; }
  .account-id .avatar { width: 54px; height: 54px; font-size: 1.1rem; }
  .account-hero-actions { width: 100%; }
  .account-hero-actions .btn { flex: 1; min-height: 42px; padding-inline: 10px; font-size: .84rem; }
  .account-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .map-grid { grid-template-columns: 1fr; }
  .store-list { max-height: 420px; }
}
@media (max-width: 640px) {
  .map-hero { grid-template-columns: 1fr; padding: 20px; gap: 12px; }
  .map-hero-art { display: none; }
  .map-canvas { height: 330px; }
  .map-canvas.is-compact { height: 250px; }
  .map-float { top: 10px; inset-inline-start: 10px; gap: 6px; }
  .map-float .btn, .map-float .btn-geo { min-height: 36px; font-size: .76rem; padding: 6px 10px; }
  .map-hint { display: none; }
  .route-panel { inset-inline: 10px; bottom: 10px; width: auto; padding: 12px; }
  .route-panel.route-panel.is-inline { inset-inline: auto; }
  .route-stats { gap: 6px; }
  .route-actions .btn { flex: 1 1 100%; }
  .map-canvas .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; }
  .promo-toast { left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; }
  .promo-toast-art { width: 46px; height: 46px; }
  .promo-toast-art img { width: 42px; height: 42px; }
  .location-panel .geo-map-mini { height: 200px; }
}
/* ---------- Android / small-screen hardening ---------- */
.vendor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vendor-grid > a { min-width: 0; }
.product-grid > *, .vendor-grid > *, .stat-grid > *, .quick-grid > *, .footer-grid > * { min-width: 0; }
.table-wrap { -webkit-overflow-scrolling: touch; }
.auth-wrap { min-height: 100dvh; }
.msg { overflow-wrap: anywhere; }

@media (max-width: 1080px) {
  .vendor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .cart-row { row-gap: 10px; }
  .cart-row > :last-child {
    grid-column: 1 / -1;
    justify-content: flex-start !important;
    padding-inline-start: 74px;
  }
  .cart-row > :last-child form { margin: 0; }
  .admin-nav-label { display: none; }
  .admin-nav { scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-brand { padding-block: 12px; margin-bottom: 0; }
}

@media (max-width: 640px) {
  .vendor-grid { grid-template-columns: 1fr; gap: 12px; }
  .vendor-grid > a { gap: 12px; }
  .admin-topbar { gap: 10px; padding-block: 12px; }
  .admin-topbar h1 { font-size: 1.06rem; }
  .admin-topbar p { font-size: .76rem; }
  .admin-topbar-actions { gap: 6px; }
  .admin-user { padding: 3px; border: 0; background: transparent; }
  .admin-user > div { display: none; }
  .rec-row { flex-wrap: wrap; }
  .rec-row > select { flex: 1 1 100%; min-width: 0; }
  .rec-row > input { flex: 1 1 0; min-width: 0; max-width: none !important; }
  .gallery-card { width: 100% !important; }
  .msg { max-width: 88%; }
  .msg img { max-width: 100%; }
  .store-head .geo-inline { width: 100%; justify-content: flex-start !important; }
  .store-head .geo-inline .btn,
  .store-head .geo-inline .btn-geo { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  .card-head, .section-head { gap: 10px; }
  .card-head .btn, .section-head .btn { flex: 1 1 auto; }
  .admin-actions, .form-actions { gap: 8px; }
  .admin-actions .btn, .form-actions .btn { flex: 1 1 auto; }
  .table th, .table td { padding: 10px 12px; font-size: .82rem; }
  .pagination a, .pagination span { min-width: 34px; padding: 6px 8px; }
  .alert { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  .cart-row > :last-child { padding-inline-start: 0; }
  .cat-tile { flex-basis: 86vw; }
  .fruit-actions { gap: 4px; }
  .fruit-actions .btn { font-size: .72rem; padding-inline: 6px; }
  .mobile-dock a, .mobile-dock button { font-size: .62rem; }
  .price { font-size: .9rem; }
  .product-body { padding: 10px; }
  .product-foot .btn { font-size: .72rem; padding: 5px 8px; }
  .auth-wrap { padding: 20px 12px; }
  .auth-card { padding: 18px; }
  .search-overlay { padding-inline: 8px; }
  .search-overlay-panel { padding: 14px; }
  .stat-grid { grid-template-columns: 1fr; }
  .store-list-item { flex-wrap: wrap; row-gap: 8px; }
  .store-list-item .sl-main { flex: 1 1 calc(100% - 56px); }
  .store-list-item .distance-pill { margin-inline-start: 52px; }
  .store-list-item .route-btn { margin-inline-start: auto; }
  .location-panel .vendor-distance { flex-wrap: wrap; }
  .location-panel .vendor-distance strong { flex: 1 1 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-reveal { opacity: 1; translate: 0 0; }
  .fruit-decor-wrap, .fruit-banner-art { transform: none !important; }
}

/* =========================================================
   Product detail modal
   ========================================================= */
.product-modal {
  position: fixed; inset: 0; z-index: 320;
  display: grid; place-items: center; padding: 18px;
}
.product-modal[hidden] { display: none !important; }
.product-modal-scrim {
  position: absolute; inset: 0;
  background: rgba(9, 20, 13, .56);
}
.product-modal-card {
  position: relative; z-index: 1;
  width: min(900px, 100%); max-height: min(92vh, 720px); overflow: auto;
  display: grid; grid-template-columns: .92fr 1.08fr;
  background: #fff; border-radius: 24px;
  box-shadow: 0 48px 110px -32px rgba(0, 0, 0, .55);
  animation: pmPop .2s ease both;
}
@keyframes pmPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.product-modal-close {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--text-soft);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5);
}
.product-modal-close:hover { background: #fff; color: var(--danger); }
.product-modal-media {
  display: grid; place-items: center; padding: 32px;
  min-height: 300px;
  background: linear-gradient(180deg, #fafafa 0%, #edf4ee 100%);
  border-radius: 24px 0 0 24px;
}
.product-modal-media img { max-width: 100%; max-height: 360px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.14)); }
.product-modal-body { padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.product-modal-cat {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: .74rem; font-weight: 700;
}
.product-modal-body h2 { font-size: 1.35rem; line-height: 1.65; font-weight: 800; margin: 0; }
.product-modal-field { display: flex; flex-direction: column; gap: 8px; }
.product-modal-label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.weight-options { display: flex; gap: 8px; flex-wrap: wrap; }
.weight-options label {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 1.5px solid var(--border-strong);
  border-radius: 12px; font-size: .86rem; font-weight: 600;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.weight-options label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.weight-options input { accent-color: var(--primary); width: 16px; height: 16px; }
.qty-stepper {
  display: inline-flex; align-items: center; width: fit-content;
  border: 1.5px solid var(--border-strong); border-radius: 12px; overflow: hidden;
}
.qty-stepper button {
  width: 42px; height: 40px; border: 0; background: #fff;
  font-size: 1.25rem; font-weight: 800; color: var(--text-soft); cursor: pointer;
}
.qty-stepper button:hover { background: var(--surface-soft); color: var(--primary-dark); }
.qty-stepper span { min-width: 44px; text-align: center; font-weight: 800; }
.product-modal-price {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.product-modal-price span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.product-modal-price strong { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); }
.product-modal-body .btn { min-height: 48px; }
.product-modal-note { min-height: 1em; margin: 0; font-size: .75rem; color: var(--muted); }
.product-modal-note.is-error { color: var(--danger); }

@media (max-width: 720px) {
  .product-modal { padding: 10px; }
  .product-modal-card { grid-template-columns: 1fr; border-radius: 20px; max-height: 94vh; }
  .product-modal-media { min-height: 210px; padding: 20px; border-radius: 20px 20px 0 0; }
  .product-modal-media img { max-height: 220px; }
  .product-modal-body { padding: 20px; gap: 13px; }
  .product-modal-body h2 { font-size: 1.12rem; }
}

/* =========================================================
   Sticky bottom cart bar
   ========================================================= */
.cart-bar {
  position: fixed; inset-inline: 0; bottom: 16px; z-index: 110;
  pointer-events: none;
  transform: translateZ(0);
}
.cart-bar[hidden] { display: none !important; }
.cart-bar-inner {
  pointer-events: auto;
  width: min(760px, calc(100% - 32px)); margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: #fff; border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .5);
}
.cart-bar-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--text); }
.cart-bar-info:hover { color: var(--text); }
.cart-bar-ico {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark);
}
.cart-bar-ico .nav-ico { width: 22px; height: 22px; }
.cart-bar-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cart-bar-copy strong { font-size: .88rem; font-weight: 800; line-height: 1.5; }
.cart-bar-copy span { font-size: .74rem; color: var(--muted); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-bar-cta { flex: none; min-height: 40px; padding: 8px 16px; font-size: .84rem; }
body.has-cart-bar .promo-toast { bottom: 100px; }
body.has-cart-bar .site-footer { padding-bottom: 80px; }

/* AJAX toast */
.tz-toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 400;
  transform: translateX(-50%) translateY(14px);
  max-width: min(90vw, 420px);
  padding: 11px 18px; border-radius: 12px;
  background: var(--primary-dark); color: #fff;
  font-size: .85rem; font-weight: 600; text-align: center;
  box-shadow: 0 18px 38px -14px rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.tz-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.tz-toast.is-error { background: var(--danger); }

@media (max-width: 640px) {
  .cart-bar { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .cart-bar-inner { width: calc(100% - 20px); padding: 8px 10px; gap: 8px; border-radius: 14px; }
  .cart-bar-ico { width: 36px; height: 36px; border-radius: 10px; }
  .cart-bar-copy strong { font-size: .8rem; }
  .cart-bar-copy span { font-size: .68rem; }
  .cart-bar-cta { min-height: 36px; padding: 6px 12px; font-size: .76rem; }
  .tz-toast { bottom: calc(138px + env(safe-area-inset-bottom)); }
  body.has-cart-bar .site-footer { padding-bottom: 140px; }
  body.has-cart-bar .promo-toast { bottom: calc(148px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   Okala-inspired theme refinements
   White surfaces on #f6f6f6, teal actions, red prices.
   ========================================================= */
.site-header { background: rgba(255,255,255,.98); border-bottom: 1px solid #ededed; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -22px rgba(0,0,0,.45); }
.brand { color: var(--text); }
.brand:hover { color: var(--primary-dark); }
.nav-links a { color: var(--text-soft); font-weight: 500; }
.nav-links a:hover { background: var(--surface-soft); color: var(--text); }
.nav-links a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.header-search input { background: #f4f4f4; border: 1px solid transparent; }
.header-search input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip:hover { border-color: var(--border-strong); background: #fff; }
.chip.active:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.hero { padding: 26px 0 10px; }
.hero-panel {
  background: linear-gradient(135deg, #e9fbfb 0%, #f7fbfb 52%, #fff8f8 100%);
  border: 1px solid #d9efef;
  box-shadow: 0 30px 60px -54px rgba(0, 120, 124, .4);
  border-radius: 20px;
}
.hero-eyebrow { color: var(--primary-dark); border-color: #c9eded; background: #fff; }
.hero-search .input { border-radius: 12px; border-color: var(--border); }
.hero-search .input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-submit { color: var(--primary-dark); }
.search-submit:hover { background: var(--primary-soft); color: var(--primary-dark); }
.section-sm { padding-top: 26px; }

/* Product cards: airy white tiles with compact typography */
.product-card { box-shadow: 0 1px 2px rgba(0,0,0,.02); }
.product-card:hover { box-shadow: 0 14px 28px -24px rgba(0,0,0,.4); }
.product-thumb .badge-green { background: var(--primary); color: #fff; }
.product-name { color: #3d3d3d; }
.product-name:hover { color: var(--primary-dark); }
.price { color: var(--danger); }
.product-out { font-size: .68rem; }

/* Product detail modal */
.product-modal-scrim { background: rgba(0,0,0,.55); }
.product-modal-card { border-radius: 18px; }
.product-modal-media { background: linear-gradient(180deg, #f7fbfb 0%, #eef7f7 100%); }
.product-modal-cat { background: var(--primary-soft); color: var(--primary-dark); }
.weight-options label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.qty-stepper { border-radius: 10px; }
.product-modal-price strong { color: var(--danger); font-size: 1.42rem; }
.product-modal-price { border-top: 1px solid var(--border); }
.product-modal-close:hover { color: var(--danger); }

/* Sticky cart bar — compact white pill with teal CTA */
.cart-bar-inner { border-radius: 14px; border-color: #e2e2e2; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }
.cart-bar-ico { background: var(--primary-soft); color: var(--primary-dark); }
.cart-bar-cta { background: var(--primary); }
.cart-bar-cta:hover { background: var(--primary-dark); }

/* Footer */
.site-footer { border-top: 1px solid #ededed; background: #fff; }
.footer-grid a:hover { color: var(--primary-dark); }

/* Modal extra detail rows */
.product-modal-vendor { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.product-modal-vendor a { color: var(--primary-dark); font-weight: 700; }
.product-modal-desc { margin: 0; font-size: .82rem; line-height: 1.85; color: var(--text-soft); }
.product-modal-old { color: #a6a6a6; font-size: .76rem; font-weight: 500; margin-inline-start: 6px; }
.product-modal-price span { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }

html { scroll-padding-top: 82px; }
button, a, input, label { touch-action: manipulation; }

@media (max-width: 640px) {
  .hero { padding-top: 18px; }
  .hero-panel { border-radius: 16px; }
  .product-grid { gap: 10px; }
  .product-body { padding: 9px 10px 11px; }
  .product-name { font-size: .85rem; min-height: 3.3em; }
  .price { font-size: .95rem; }
  .old-price { font-size: .68rem; }
  .card-qty-btn { width: 36px; height: 36px; font-size: 1.12rem; }
  .card-qty-value { min-width: 26px; font-size: .78rem; }
  .product-badge-discount { font-size: .64rem; padding: 2px 6px; }
  .product-multiplier { min-width: 28px; padding: 2px 6px; font-size: .66rem; }
  .product-modal { padding: 0; }
  .product-modal-card {
    width: 100%; height: 100dvh; max-height: 100dvh;
    border-radius: 0; grid-template-columns: 1fr;
  }
  .product-modal-media {
    min-height: 168px; max-height: 34dvh; padding: 16px;
    border-radius: 0;
  }
  .product-modal-media img { max-height: 100%; }
  .product-modal-body {
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .product-modal-close { position: fixed; top: 10px; left: 10px; }
  .product-modal-body .btn[data-modal-add] {
    position: sticky; bottom: 0; z-index: 2; min-height: 50px;
    box-shadow: 0 -10px 24px -18px rgba(0,0,0,.45);
  }
  .weight-options label { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .qty-stepper { width: 100%; justify-content: space-between; }
  .qty-stepper button { flex: 1; }
}

@media (max-width: 520px) {
  .product-foot { flex-direction: column; align-items: stretch; }
  .product-price { align-items: flex-start; }
  .card-qty { width: 100%; justify-content: space-between; }
  .card-qty-btn { flex: 1; height: 38px; }
  .product-modal-body { padding-inline: 13px; }
  .product-modal-body h2 { font-size: 1.05rem; }
}

/* =========================================================
   Fruit art layer — supplied 3D fruit renders + glow
   ========================================================= */
.fruit-decor { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.fruit-canvas { position: fixed; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }
.fruit-orb { position: absolute; display: block; width: clamp(76px, 7vw, 112px); pointer-events: auto; isolation: isolate; }
.fruit-orb picture { position: relative; z-index: 2; display: block; animation: fruitOrbBob 7.5s ease-in-out infinite; }
.fruit-orb img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .16)) drop-shadow(0 0 16px var(--glow)); transition: transform .45s cubic-bezier(.22, .61, .36, 1), filter .35s; }
.fruit-orb-halo { position: absolute; z-index: 0; inset: -18%; border-radius: 50%; background: radial-gradient(circle, var(--halo) 0%, transparent 68%); filter: blur(10px); animation: fruitHaloPulse 5s ease-in-out infinite; }
.fruit-orb-ring { position: absolute; z-index: 1; inset: -7%; border-radius: 50%; border: 1.5px dashed var(--ring); opacity: .55; animation: fruitRingSpin 28s linear infinite; }
.fruit-orb-tip { position: absolute; z-index: 3; left: 50%; bottom: -10px; transform: translate(-50%, 8px); opacity: 0; pointer-events: none; white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .45); font-size: .68rem; font-weight: 800; color: var(--text); transition: opacity .25s, transform .25s; }
.fruit-orb:hover img, .fruit-orb:focus-visible img { transform: scale(1.08) rotate(-3deg); filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .2)) drop-shadow(0 0 26px var(--glow)); }
.fruit-orb:hover .fruit-orb-tip, .fruit-orb:focus-visible .fruit-orb-tip { opacity: 1; transform: translate(-50%, 0); }
.fruit-orb--banana { inset-inline-start: 1.4vw; top: 15%; --glow: rgba(255, 209, 55, .78); --halo: rgba(255, 209, 55, .3); --ring: rgba(255, 184, 0, .45); }
.fruit-orb--apricot { inset-inline-end: .8vw; top: 37%; width: clamp(70px, 6.4vw, 104px); --glow: rgba(255, 154, 60, .75); --halo: rgba(255, 154, 60, .27); --ring: rgba(255, 132, 24, .42); }
.fruit-orb--tomato { inset-inline-start: 1.2vw; bottom: 15%; width: clamp(70px, 6.2vw, 100px); --glow: rgba(255, 75, 62, .78); --halo: rgba(255, 75, 62, .26); --ring: rgba(255, 75, 62, .44); }
.fruit-orb--harvest { inset-inline-end: .4vw; bottom: 3%; width: clamp(88px, 7.6vw, 122px); --glow: rgba(255, 164, 54, .72); --halo: rgba(255, 164, 54, .25); --ring: rgba(255, 164, 54, .38); }
.fruit-orb--apricot picture { animation-delay: -2.2s; }
.fruit-orb--tomato picture { animation-delay: -4s; }
.fruit-orb--harvest picture { animation-delay: -1.4s; }
.fruit-orb--apricot .fruit-orb-halo { animation-delay: -1.2s; }
.fruit-orb--tomato .fruit-orb-halo { animation-delay: -2.6s; }
.fruit-orb--harvest .fruit-orb-halo { animation-delay: -3.4s; }

@media (max-width: 1439px) {
  .fruit-decor, .fruit-canvas { display: none; }
}

@keyframes fruitOrbBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes fruitHaloPulse {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.07); }
}
@keyframes fruitRingSpin { to { transform: rotate(360deg); } }
@keyframes fruitMiniBob {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-3px) rotate(calc(var(--tilt, 0deg) + 2deg)); }
}

/* =========================================================
   Category banner icon + fruit tile icons
   ========================================================= */
.cat-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-banner-icon { position: relative; display: inline-flex; align-items: flex-end; width: 112px; height: 46px; margin-inline-start: 2px; }
.cat-banner-fruit { position: absolute; bottom: 0; width: 50px; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)) drop-shadow(0 0 8px var(--glow)); animation: fruitMiniBob 5.5s ease-in-out infinite; }
.cat-banner-fruit--banana { inset-inline-start: 0; width: 54px; --tilt: -8deg; --glow: rgba(255, 209, 55, .55); z-index: 1; animation-delay: -.6s; }
.cat-banner-fruit--apricot { inset-inline-start: 37px; bottom: 3px; width: 46px; --tilt: 5deg; --glow: rgba(255, 154, 60, .5); z-index: 2; animation-delay: -1.8s; }
.cat-banner-fruit--tomato { inset-inline-end: 0; width: 42px; --tilt: 8deg; --glow: rgba(255, 75, 62, .5); z-index: 3; animation-delay: -3s; }
.cat-tile-icon picture { display: block; width: 100%; height: 100%; }
.cat-tile-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(13, 68, 69, .28)) drop-shadow(0 0 7px var(--cat-tint)); transition: transform .4s cubic-bezier(.22, .61, .36, 1); }
.cat-tile:hover .cat-tile-icon img { transform: scale(1.08) rotate(-3deg); }
.cat-tile.active .cat-tile-icon img { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)) drop-shadow(0 0 10px rgba(255, 255, 255, .38)); }

/* =========================================================
   Friendly tips + fun messages
   ========================================================= */
.fun-tip {
  --tip-a: #ffd23f; --tip-b: #ff9f1c;
  --tip-glow: rgba(255, 210, 63, .24);
  --tip-glow2: rgba(255, 210, 63, .55);
  position: relative; display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; padding: 13px 16px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .97), #fff);
  border: 1px solid var(--border);
  box-shadow: 0 16px 34px -30px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.fun-tip::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: linear-gradient(var(--tip-a), var(--tip-b)); }
.fun-tip::after { content: ''; position: absolute; width: 130px; height: 130px; inset-inline-end: -34px; top: -56px; border-radius: 50%; background: radial-gradient(circle, var(--tip-glow), transparent 68%); pointer-events: none; }
.fun-tip-art { position: relative; z-index: 1; flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff; border: 1px solid #eef2f1; box-shadow: inset 0 1px 0 #fff, 0 8px 18px -14px rgba(0, 0, 0, .4); }
.fun-tip-art picture { display: block; animation: fruitMiniBob 6s ease-in-out infinite; }
.fun-tip-art img { max-width: 44px; max-height: 44px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .16)) drop-shadow(0 0 7px var(--tip-glow2)); }
.fun-tip-art--lg { flex-basis: 64px; width: 64px; height: 64px; }
.fun-tip-art--lg img { max-width: 60px; max-height: 60px; }
.fun-tip-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fun-tip-copy strong { font-size: .9rem; line-height: 1.5; }
.fun-tip-copy span { font-size: .78rem; color: var(--muted); line-height: 1.7; }
.fun-tip-badge { position: relative; z-index: 1; flex: none; font-size: .66rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); }
.fun-tip-cta { position: relative; z-index: 1; flex: none; }
.fun-tip--banana { --tip-a: #ffd23f; --tip-b: #ff9f1c; --tip-glow: rgba(255, 210, 63, .25); --tip-glow2: rgba(255, 210, 63, .55); }
.fun-tip--tomato { --tip-a: #ff5b4e; --tip-b: #d7192d; --tip-glow: rgba(255, 75, 62, .2); --tip-glow2: rgba(255, 75, 62, .5); }
.fun-tip--harvest { --tip-a: #ffb347; --tip-b: #ff7a3d; --tip-glow: rgba(255, 164, 54, .22); --tip-glow2: rgba(255, 164, 54, .5); }
.fun-tip.is-swapping .fun-tip-copy { animation: tipSwap .5s ease; }
.fun-tip .fun-tip-art picture { animation-delay: -1.5s; }
.fun-tip--cta { background: linear-gradient(120deg, #fffaf0, #f7fcf6 58%, #eefafa); }

@keyframes tipSwap {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-tip { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(120deg, #f7fcf6, #fffaf0); border: 1px solid #e3efe2; font-size: .82rem; color: var(--text-soft); }
.footer-tip-art { flex: none; width: 46px; height: 34px; display: grid; place-items: center; }
.footer-tip-art img { max-width: 44px; max-height: 34px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15)); }
.footer-tip strong { color: var(--text); }

@media (max-width: 640px) {
  .fun-tip { padding: 11px 12px; gap: 10px; border-radius: 14px; }
  .fun-tip-badge { display: none; }
  .fun-tip-copy strong { font-size: .84rem; }
  .fun-tip-copy span { font-size: .75rem; }
  .fun-tip-art { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
  .fun-tip-art img { max-width: 38px; max-height: 38px; }
  .fun-tip-art--lg { flex-basis: 52px; width: 52px; height: 52px; }
  .fun-tip-art--lg img { max-width: 48px; max-height: 48px; }
  .fun-tip--cta { flex-wrap: wrap; }
  .fun-tip--cta .fun-tip-cta { width: 100%; }
  .cat-banner-icon { width: 92px; height: 40px; }
  .cat-banner-fruit--banana { width: 46px; }
  .cat-banner-fruit--apricot { inset-inline-start: 30px; width: 38px; }
  .cat-banner-fruit--tomato { width: 36px; }
  .footer-tip { align-items: flex-start; font-size: .76rem; }
  .footer-tip-art { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .fruit-orb picture, .fruit-orb-halo, .fruit-orb-ring, .cat-banner-fruit, .fun-tip-art picture { animation: none !important; }
}
