:root {
  --green: #0f7a3d;
  --green-600: #0b6532;
  --green-50: #e9f6ee;
  --orange: #f59e0b;
  --wa: #25d366;
  --wa-600: #1ebe5a;
  --ink: #17221b;
  --muted: #5f6b63;
  --line: #e4e8e2;
  --bg: #f6f8f4;
  --card: #ffffff;
  --danger: #d33c32;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 40, 24, .06), 0 6px 20px rgba(16, 40, 24, .06);
  --shadow-lg: 0 20px 50px rgba(16, 40, 24, .18);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-600); }
.btn--outline { background: #fff; border-color: var(--line); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.24); }
.btn--wa { background: var(--wa); color: #06341a; }
.btn--wa:hover { background: var(--wa-600); }
.link { background: none; border: 0; padding: 0; color: var(--green); font-weight: 700; }
.link:hover { text-decoration: underline; }
.link--danger { color: var(--danger); font-weight: 600; font-size: 14px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--bg); font-size: 18px; display: grid; place-items: center;
}
.icon-btn:hover { background: var(--line); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--orange); color: #1b1300; font-size: 13px; font-weight: 800;
  display: inline-grid; place-items: center; line-height: 1;
}
.badge.is-zero { background: var(--line); color: var(--muted); }
.badge--sm { min-width: 20px; height: 20px; font-size: 12px; background: var(--green); color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; flex-shrink: 0; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), #1a9e55);
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .5px;
  display: grid; place-items: center;
}
.logo__text strong { color: var(--green); font-weight: 800; }
.logo__text span { font-weight: 700; }
.nav { display: none; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--green); background: var(--green-50); }
.header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav + .header__actions { margin-inline-start: 0; }
.lang-btn {
  min-height: 42px; padding: 6px 14px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; font-weight: 700;
}
.lang-btn:hover { border-color: var(--green); color: var(--green); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 6px 14px; border-radius: 999px; border: 0;
  background: var(--green); color: #fff; font-weight: 700;
}
.cart-btn:hover { background: var(--green-600); }
.cart-btn__label { display: none; }
@media (min-width: 600px) { .cart-btn__label { display: inline; } }
@media (min-width: 960px) { .nav { display: flex; } }
@media (max-width: 380px) { .logo__text { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #0b6532 0%, #0f7a3d 45%, #19a35a 100%);
  color: #fff;
  overflow: hidden;
}
.hero__inner { display: grid; gap: 28px; padding-block: 40px 48px; align-items: center; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); font-weight: 600; font-size: 14px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.hero p { font-size: clamp(16px, 2.2vw, 19px); opacity: .92; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__cta .btn--primary { background: #fff; color: var(--green); }
.hero__cta .btn--primary:hover { background: #f1f7f3; }
.hero__perks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; font-size: 15px; opacity: .95; }
.hero__art { display: none; justify-content: center; }
.basket {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding: 26px; border-radius: 32px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.basket span {
  width: 92px; height: 92px; border-radius: 24px; background: #fff;
  display: grid; place-items: center; font-size: 46px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  animation: float 5s ease-in-out infinite;
}
.basket span:nth-child(2n) { animation-delay: -1.5s; }
.basket span:nth-child(3n) { animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .basket span { animation: none; } html { scroll-behavior: auto; } }
@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.15fr 1fr; padding-block: 64px 72px; }
  .hero__art { display: flex; }
}

/* ---------- Sections ---------- */
.section { padding-block: 40px; }
.section--shop { padding-top: 8px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }

/* Category tiles */
.cat-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 8px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  box-shadow: var(--shadow); text-align: center;
  transition: transform .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--green); }
.cat-card__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-50); display: grid; place-items: center; font-size: 30px;
}
.cat-card__name { font-weight: 700; font-size: 14px; line-height: 1.3; }

/* ---------- Toolbar ---------- */
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 12px; }
.search {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; padding-inline: 16px;
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  color: var(--muted);
}
.search:focus-within { border-color: var(--green); }
.search input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; font-size: 16px; color: var(--ink); }
.select {
  min-height: 46px; padding: 8px 40px 8px 16px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; font-weight: 600; font-size: 15px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6b63' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  min-width: 0;
}
[dir="rtl"] .select { padding: 8px 16px 8px 40px; background-position: left 16px center; }
.filter-toggle { min-height: 46px; }
@media (min-width: 640px) {
  .toolbar { grid-template-columns: 1fr auto auto; }
  .search { grid-column: auto; }
}
@media (min-width: 960px) { .filter-toggle { display: none; } }

/* Category chips */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; min-height: 40px; padding: 6px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px;
}
.chip:hover { border-color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Shop layout ---------- */
.shop { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .shop { grid-template-columns: 250px 1fr; } }

.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.filters__head h3 { font-size: 18px; font-weight: 800; }
.filters__head .icon-btn, .filters__foot { display: none; }
.filters__body { padding: 6px 18px 16px; }
.filter-group + .filter-group { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.filter-group h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 6px 0 6px; }
[dir="rtl"] .filter-group h4 { letter-spacing: 0; }
.check-list { display: flex; flex-direction: column; }
.check {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; border-radius: var(--radius-sm); cursor: pointer; font-size: 15px;
}
.check:hover { background: var(--bg); }
.check input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; margin: 0; }
.check span { flex: 1; }
.check small { color: var(--muted); font-size: 13px; }

@media (min-width: 960px) {
  .filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
}
@media (max-width: 959px) {
  .filters {
    position: fixed; z-index: 60; inset: auto 0 0 0;
    max-height: 85vh; display: flex; flex-direction: column;
    border-radius: 22px 22px 0 0; border: 0; box-shadow: var(--shadow-lg);
    transform: translateY(105%); transition: transform .28s ease;
    visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__head { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
  .filters__head .icon-btn { display: grid; }
  .filters__body { overflow-y: auto; flex: 1; }
  .filters__foot {
    display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  }
}

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.active-filters:not(:empty) { margin-bottom: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; border: 0;
  background: var(--green-50); color: var(--green); font-weight: 700; font-size: 14px;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.product:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16,40,24,.1); }
.product__media {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(180deg, #f3f7f1, #e9f1e7);
}
.product[data-cat="dairy"] .product__media { background: linear-gradient(180deg, #f2f6fb, #e5edf7); }
.product[data-cat="bakery"] .product__media { background: linear-gradient(180deg, #fbf5ec, #f4e8d6); }
.product[data-cat="meat"] .product__media { background: linear-gradient(180deg, #fbf0ef, #f5e0dd); }
.product[data-cat="frozen"] .product__media { background: linear-gradient(180deg, #eff8fb, #ddf0f6); }
.product[data-cat="rice-pantry"] .product__media { background: linear-gradient(180deg, #fbf8ee, #f2ecd5); }
.product[data-cat="snacks"] .product__media { background: linear-gradient(180deg, #fcf1f4, #f6e0e7); }
.product[data-cat="beverages"] .product__media { background: linear-gradient(180deg, #fdf5e9, #fbe7c9); }
.product[data-cat="cleaning"] .product__media { background: linear-gradient(180deg, #f1f3fc, #e2e6f7); }
.product[data-cat="personal-care"] .product__media { background: linear-gradient(180deg, #f6f1fb, #ebe1f6); }
.product__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product__emoji { font-size: clamp(48px, 9vw, 64px); filter: drop-shadow(0 6px 8px rgba(0,0,0,.12)); }
.product__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; flex: 1; }
.product__brand { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .5px; }
[dir="rtl"] .product__brand { letter-spacing: 0; }
.product__name { font-size: 15px; font-weight: 700; line-height: 1.35; }
.product__unit { font-size: 13px; color: var(--muted); }
.product__foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.product__price { font-size: 17px; font-weight: 800; }
.btn--add { min-height: 42px; width: 100%; padding: 8px 12px; font-size: 15px; }
@media (min-width: 600px) {
  .product__body { padding: 14px 14px 16px; }
  .product__name { font-size: 16px; }
}

.stepper {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 42px; border-radius: 999px; background: var(--green-50);
  border: 2px solid var(--green); overflow: hidden;
}
.stepper button {
  width: 42px; align-self: stretch; border: 0; background: var(--green); color: #fff;
  font-size: 22px; font-weight: 700; line-height: 1;
}
.stepper button:hover { background: var(--green-600); }
.stepper span { flex: 1; text-align: center; font-weight: 800; font-size: 16px; color: var(--green); min-width: 28px; }
.stepper--sm { min-height: 36px; width: 112px; }
.stepper--sm button { width: 34px; font-size: 18px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); display: grid; justify-items: center; gap: 12px; }
.empty__icon { font-size: 44px; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow); text-align: center;
}
.step__num {
  position: absolute; top: 14px; inset-inline-start: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.step__icon { display: block; font-size: 40px; margin-bottom: 8px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* ---------- Contact ---------- */
.section--contact { background: #fff; border-top: 1px solid var(--line); }
.contact { display: grid; gap: 28px; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.contact__list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  background: var(--green-50); display: grid; place-items: center; font-size: 22px;
}
.contact__list a { color: var(--green); font-weight: 700; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 300px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: #0c2a18; color: #c9d8cd; padding-block: 28px calc(28px + 70px); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.logo--light .logo__text strong, .logo--light .logo__text span { color: #fff; }
@media (min-width: 960px) { .footer { padding-bottom: 28px; } }

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
  position: fixed; z-index: 30; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  transition: transform .15s, bottom .2s;
}
.fab-wa:hover { transform: scale(1.06); }
body.has-cart .fab-wa { bottom: calc(90px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { body.has-cart .fab-wa { bottom: 24px; } }

/* ---------- Mobile cart bar ---------- */
.cart-bar {
  position: fixed; z-index: 35; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 10px 20px; border: 0; border-radius: 18px;
  background: var(--green); color: #fff; font-size: 16px; box-shadow: var(--shadow-lg);
  animation: rise .25s ease;
}
.cart-bar__count { background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.cart-bar__cta { font-weight: 800; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 960px) { .cart-bar { display: none !important; } }

/* ---------- Overlay & drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(10, 25, 15, .45); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; z-index: 60; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(440px, 100%); background: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .28s ease; visibility: hidden;
}
[dir="rtl"] .drawer { transform: translateX(-105%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 20px; font-weight: 800; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 18px 20px; overscroll-behavior: contain; }
.drawer__foot {
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: center;
  background: #fff;
}
.total-row { width: 100%; display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 700; }
.total-row strong { font-size: 24px; color: var(--green); }

.cart-empty { text-align: center; padding: 60px 10px; display: grid; justify-items: center; gap: 14px; color: var(--muted); }
.cart-empty__icon { font-size: 56px; }

.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item__media { width: 54px; height: 54px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-size: 28px; overflow: hidden; }
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__info { display: flex; flex-direction: column; min-width: 0; }
.cart-item__info strong { font-size: 15px; line-height: 1.3; }
.cart-item__info small { color: var(--muted); font-size: 13px; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item__side > strong { font-size: 15px; }

.order-form { margin-top: 18px; display: grid; gap: 12px; }
.order-form h4 { font-size: 17px; font-weight: 800; }
.field { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 16px; font-weight: 400; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--green); }
.field__error { display: none; color: var(--danger); font-weight: 600; }
.field.has-error textarea, .field.has-error input { border-color: var(--danger); background: #fff6f5; }
.field.has-error .field__error { display: block; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; top: calc(var(--header-h) + 12px);
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow-lg);
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Database-connected extras ---------- */
.btn--disabled, .btn--disabled:hover { background: var(--line); color: var(--muted); cursor: not-allowed; }
.product.is-out .product__media { filter: grayscale(.8); opacity: .6; }
.total-row--sub { font-size: 15px; font-weight: 600; color: var(--muted); }
.total-row--sub span:last-child { font-weight: 700; }
.order-done { padding: 40px 10px; color: var(--ink); }
.order-done h4 { font-size: 22px; font-weight: 800; color: var(--green); }
.order-done p { color: var(--muted); max-width: 30em; }
.order-done strong { color: var(--ink); font-size: 18px; }
#sendOrder:disabled { opacity: .6; cursor: wait; }

.unit-select {
  margin-top: 4px; width: 100%; min-height: 36px; padding: 4px 30px 4px 10px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--muted);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235f6b63' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
[dir="rtl"] .unit-select { padding: 4px 10px 4px 30px; background-position: left 10px center; }
.unit-select:focus { outline: 0; border-color: var(--green); }
