/* ============================================================
 * HEALTHY SHOP — Kirkuk
 *
 * Design notes, so later edits stay coherent:
 *  - The palette is sampled straight from the shop's logo: leaf green
 *    #18793C, wheat gold #F7BA20, wordmark navy #0A2840, cream #FFFCF7.
 *    Nothing here is invented.
 *  - Green carries the surfaces and the actions. Gold is an accent for
 *    small marks only — a rule, a discount tag, a highlight — never a
 *    large fill, or the page turns into a warning sign.
 *  - The two darks have separate jobs: green for the "visit us" band
 *    (it belongs to the leaf), navy for headings and the footer (it
 *    belongs to the wordmark). Using either for both flattens the brand.
 *  - Corners are moderate (10–18px). Pills are reserved for chips
 *    and tags, so a pill always means "filter or label", never "button".
 *  - Cairo carries the headings, Tajawal the running text. Two Arabic
 *    faces with clearly different weights read as a designed pair;
 *    one face at many weights reads as a template.
 *  - Prices use Latin digits: they are scanned, not read.
 * ============================================================ */

:root {
  --green-900: #0B3D1E;
  --green-800: #12602F;
  --green-700: #18793C;
  --green-600: #1E8C47;
  --green-500: #27A455;
  --green-050: #E9F3EC;
  --gold: #F7BA20;
  --gold-050: #FEF6E0;

  --navy: #0A2840;
  --navy-700: #123152;

  --ink: #0A2840;
  --body: #4E5F6B;
  --muted: #8494A0;
  --bg: #FFFFFF;
  --tint: #FBF9F2;
  --line: #E7E3D8;

  --red: #C6402F;
  --red-050: #FBEEEC;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 26px;

  --sh-1: 0 1px 2px rgba(10, 40, 64, 0.05);
  --sh-2: 0 6px 18px rgba(10, 40, 64, 0.07);
  --sh-3: 0 18px 44px rgba(10, 40, 64, 0.13);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 68px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Tajawal', system-ui, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: 'Cairo', 'Tajawal', sans-serif; color: var(--ink); line-height: 1.35; font-weight: 800; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; border-radius: 4px; }

/* The script shows and hides blocks with the `hidden` attribute. Any class here
 * that sets `display` outranks the UA's `[hidden] { display: none }`, which is
 * how the empty-cart panel ended up rendering underneath a full cart. One rule
 * settles it for every toggled element instead of per component. */
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 2000;
  background: var(--green-700); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
}
.skip:focus { inset-inline-start: 12px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-sm);
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 0.95rem;
  line-height: 1.4; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--green-800); }
.btn--ghost { background: transparent; color: var(--green-800); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--green-600); background: var(--green-050); }
.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { background: var(--gold-050); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,0.42); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ===== SECTION HEADS ===== */
.head { margin-bottom: 30px; }
.head__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 0.78rem;
  letter-spacing: .04em; color: var(--green-600); margin-bottom: 8px;
}
.head__kicker::before {
  content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--gold);
}
.head__kicker--light { color: var(--gold); }
.head__title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.head__link { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .9rem; color: var(--green-700); }
.head__link:hover { color: var(--green-500); }
.head--start { text-align: start; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt strong { font-family: 'Cairo', sans-serif; font-size: 1.02rem; color: var(--ink); font-weight: 800; }
.brand__txt small { font-size: .72rem; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 8px 14px; border-radius: var(--r-sm);
  font-weight: 500; font-size: .95rem; color: var(--body);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover { background: var(--green-050); color: var(--green-800); }
.nav__link.is-on { color: var(--green-800); font-weight: 700; background: var(--green-050); }
.nav__link--cart { display: inline-flex; align-items: center; gap: 7px; }

.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--green-700); color: #fff;
  font-family: 'Cairo', sans-serif; font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.badge.is-zero { background: var(--line); color: var(--muted); }
.nav__cart-m { display: none; position: relative; padding: 8px; color: var(--ink); }
.badge--float { position: absolute; top: -1px; inset-inline-end: -3px; }
.badge--float.is-zero { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -8%, var(--gold-050), transparent 62%),
    linear-gradient(180deg, var(--tint), #fff 88%);
}
.hero__in {
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center;
  gap: 40px; padding-block: clamp(48px, 7vw, 88px);
}
.eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .78rem; color: var(--green-700);
  margin-bottom: 18px;
}
.hero__title { font-size: clamp(2.1rem, 5.4vw, 3.35rem); line-height: 1.22; letter-spacing: -0.01em; }
.hero__lead { margin-top: 16px; font-size: clamp(1rem, 1.6vw, 1.1rem); max-width: 46ch; color: var(--body); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.hero__facts b {
  display: block; font-family: 'Cairo', sans-serif; font-size: 1.25rem;
  font-weight: 800; color: var(--ink);
}

.hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 400px; margin-inline: auto; width: 100%; }
/* The logo is multicolour on cream, so it needs a light ground — reversing it
 * out of a dark disc would mean recolouring the artwork, and a recoloured logo
 * is not the logo. */
.hero__disc {
  position: absolute; inset: 7%;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: 0 26px 60px rgba(10, 40, 64, 0.10);
}
.hero__disc::after {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed rgba(24, 121, 60, 0.3);
}
.hero__disc img { width: 60%; height: auto; }
.pill {
  position: absolute; padding: 8px 15px; border-radius: 999px;
  background: #fff; box-shadow: var(--sh-2);
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .8rem; color: var(--green-800);
  white-space: nowrap;
}
.pill--a { top: 4%; inset-inline-start: -4%; }
.pill--b { top: 46%; inset-inline-end: -8%; }
.pill--c { bottom: 6%; inset-inline-start: 6%; }

/* ===== TRUST STRIP ===== */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip__in {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding-block: 22px;
}
.strip__item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.strip__item + .strip__item { border-inline-start: 1px solid var(--line); }
.strip__item svg {
  width: 34px; height: 34px; flex: none; padding: 7px;
  border-radius: var(--r-sm); background: var(--gold-050); color: var(--green-700);
}
.strip__item strong { display: block; font-family: 'Cairo', sans-serif; font-size: .92rem; color: var(--ink); line-height: 1.4; }
.strip__item span { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ===== SECTIONS ===== */
.cats { padding-block: clamp(48px, 6vw, 76px); }
.cats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .95rem; color: var(--ink);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.cat:hover { border-color: var(--green-500); transform: translateY(-2px); box-shadow: var(--sh-2); }
.cat__ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--tint); font-size: 1.15rem;
}

.picks { padding-bottom: clamp(48px, 6vw, 76px); }
.picks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pick {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.pick:hover { border-color: var(--green-500); transform: translateY(-3px); box-shadow: var(--sh-2); }
.pick__img { position: relative; aspect-ratio: 4 / 3; background: var(--tint); }
.pick__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pick__body { padding: 14px 16px 16px; }
.pick__cat { font-size: .74rem; color: var(--green-600); font-weight: 700; }
.pick__name {
  font-size: .98rem; margin: 4px 0 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pick__price { display: flex; align-items: baseline; gap: 6px; }

.price { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.02rem; color: var(--green-800); }
.price__old { font-size: .82rem; color: var(--muted); text-decoration: line-through; }
.price__from { font-size: .76rem; color: var(--muted); }

/* ===== ABOUT ===== */
.about { background: var(--tint); padding-block: clamp(52px, 6vw, 82px); }
.about__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.about__copy p { margin-top: 14px; max-width: 54ch; }
.about__list { display: grid; gap: 12px; }
.about__list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; border-inline-start: 3px solid var(--gold);
}
.about__list b { display: block; font-family: 'Cairo', sans-serif; color: var(--ink); font-size: .98rem; }
.about__list span { font-size: .9rem; }

/* ===== VISIT ===== */
.visit { padding-block: clamp(40px, 5vw, 64px); }
.visit__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px;
  background: linear-gradient(135deg, var(--green-800), var(--green-900) 70%);
  border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.visit__in::after {
  content: ''; position: absolute; inset-inline-end: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(247, 186, 32, 0.13);
}
.visit__text { position: relative; }
.visit__title { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.visit__text p { color: rgba(255,255,255,0.74); margin-top: 8px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

/* ===== STORE ===== */
.page { padding-block: clamp(28px, 4vw, 44px) clamp(56px, 7vw, 88px); }

.shelf__bar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 14px; background: #fff; max-width: 380px;
  transition: border-color .18s var(--ease);
}
.search:focus-within { border-color: var(--green-500); }
.search svg { color: var(--muted); flex: none; }
.search input { flex: 1; border: none; outline: none; padding: 11px 0; background: none; font-size: .95rem; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .85rem; color: var(--body);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--green-500); color: var(--green-800); }
.chip--on { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }
.shelf__empty { text-align: center; padding: 60px 20px; color: var(--muted); }

.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover { border-color: var(--green-500); transform: translateY(-3px); box-shadow: var(--sh-2); }
.card--out { opacity: .62; }
.card--out:hover { transform: none; border-color: var(--line); box-shadow: none; }
.card__media { position: relative; aspect-ratio: 1 / 1; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.card__body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: .73rem; color: var(--green-600); font-weight: 700; }
.card__name {
  font-size: .95rem; margin: 3px 0 2px; line-height: 1.5; min-height: 2.9em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { font-size: .78rem; color: var(--muted); min-height: 1.4em; }
.card__meta--empty { min-height: 1.4em; }
.card__price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 12px; }
.card__actions { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.card__btn {
  flex: 1; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--green-050); color: var(--green-800);
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .86rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.card__btn:hover:not(:disabled) { background: var(--green-700); color: #fff; }
.card__btn:disabled { background: var(--tint); color: var(--muted); cursor: not-allowed; }
.card__trash {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--red); background: var(--red-050);
  transition: background .18s var(--ease);
}
.card__trash:hover { background: #F6DDD9; }

.tag {
  position: absolute; top: 10px; inset-inline-start: 10px;
  padding: 3px 10px; border-radius: 999px;
  font-family: 'Cairo', sans-serif; font-size: .72rem; font-weight: 700;
}
.tag--sale { background: var(--gold); color: var(--navy); }
.tag--out { background: var(--ink); color: #fff; }

.qty {
  display: inline-flex; align-items: center; gap: 2px; flex: 1;
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
}
.qty button {
  width: 34px; height: 36px; font-size: 1.1rem; color: var(--green-800);
  transition: background .15s var(--ease);
}
.qty button:hover { background: var(--green-050); }
.qty span {
  flex: 1; text-align: center; font-family: 'Cairo', sans-serif; font-weight: 700;
  font-size: .95rem; color: var(--ink);
}
.qty--lg button { width: 42px; height: 44px; font-size: 1.25rem; }
.qty--lg { flex: none; min-width: 132px; }

/* ===== PRODUCT DETAIL ===== */
.pd__overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 40, 64, 0.5);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.pd__overlay.is-open { opacity: 1; visibility: visible; }
/* Anchored to the inline START — the right edge in this RTL site — and hidden
 * by sliding it out over that same edge. transform is not direction-aware, so
 * the sign has to be flipped per direction by hand; getting this pair out of
 * step is what leaves the drawer parked in the middle of the page. */
.pd {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 1001;
  width: min(540px, 100%); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  /* visibility flips instantly on open and only after the slide-out on close,
   * so the panel is never animating while invisible. */
  transition: transform .32s var(--ease), visibility 0s linear .32s;
  box-shadow: var(--sh-3);
}
html[dir="rtl"] .pd { transform: translateX(100%); }
.pd.is-open, html[dir="rtl"] .pd.is-open {
  transform: translateX(0); visibility: visible;
  transition: transform .32s var(--ease), visibility 0s;
}
.pd__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); flex: none;
}
.pd__title { font-size: .95rem; color: var(--green-700); font-weight: 700; }
.pd__close {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--ink);
}
.pd__close:hover { background: var(--tint); }
.pd__body { overflow-y: auto; padding: 20px; flex: 1; overscroll-behavior: contain; }

.pd__image {
  aspect-ratio: 4 / 3; background: var(--tint); border-radius: var(--r-md); overflow: hidden;
}
.pd__image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.pd__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd__thumb {
  width: 58px; height: 58px; flex: none; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--tint); overflow: hidden; padding: 4px;
}
.pd__thumb.is-on { border-color: var(--green-600); }
.pd__thumb img { width: 100%; height: 100%; object-fit: contain; }

.pd__info { padding-top: 20px; }
.pd__cat { font-size: .78rem; font-weight: 700; color: var(--green-600); }
.pd__name { font-size: 1.3rem; margin: 4px 0 6px; }
.pd__weight { font-size: .88rem; color: var(--muted); }
.pd__sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.pd__sizes-label { font-size: .85rem; color: var(--muted); margin-inline-end: 2px; }
.pd__size {
  padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .85rem; color: var(--body);
  transition: all .18s var(--ease);
}
.pd__size:hover { border-color: var(--green-500); }
.pd__size.is-on { background: var(--green-700); border-color: var(--green-700); color: #fff; }
/* Flavour swatches: a scrollable strip of packshots. Picking one swaps the
 * main image above, so the row has to stay visible while it is used — hence
 * its own line rather than sharing the size row. */
.pd__flavors { margin: 16px 0 4px; }
.pd__flavors .pd__sizes-label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.pd__swatches {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.pd__swatch {
  flex: none; width: 76px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center;
}
.pd__swatch-img {
  width: 68px; height: 68px; display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: var(--r-sm);
  background: var(--tint); overflow: hidden; padding: 4px;
  transition: border-color .18s var(--ease);
}
.pd__swatch-img img { width: 100%; height: 100%; object-fit: contain; }
.pd__swatch:hover .pd__swatch-img { border-color: var(--green-500); }
.pd__swatch.is-on .pd__swatch-img { border-color: var(--green-700); }
.pd__swatch-name {
  font-size: .74rem; line-height: 1.35; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pd__swatch.is-on .pd__swatch-name { color: var(--green-800); font-weight: 700; }
.pd__flavor-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.pd__pricing { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.pd__pricing .price { font-size: 1.5rem; }

.stock {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  padding: 5px 13px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  font-family: 'Cairo', sans-serif;
}
.stock i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--in { background: var(--green-050); color: var(--green-700); }
.stock--out { background: var(--red-050); color: var(--red); }

.pd__facts {
  margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.pd__fact {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 14px; font-size: .88rem;
}
.pd__fact + .pd__fact { border-top: 1px solid var(--line); }
.pd__fact span { color: var(--muted); }
.pd__fact strong { color: var(--ink); font-weight: 700; text-align: end; }

.pd__block { margin-top: 22px; }
.pd__h {
  font-size: .95rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.pd__h::before { content: ''; width: 16px; height: 3px; border-radius: 3px; background: var(--gold); }
.pd__p { font-size: .93rem; }
.pd__benefits { display: grid; gap: 9px; }
.pd__benefits li { display: flex; gap: 10px; font-size: .9rem; align-items: flex-start; }
.pd__benefit-icon {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: 8px; background: var(--gold-050); font-size: .95rem;
}
.pd__benefits strong { color: var(--ink); }
.pd__outro {
  font-size: .9rem; font-style: normal; color: var(--green-800);
  background: var(--green-050); border-radius: var(--r-md); padding: 13px 15px;
}

.pd__actions { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.pd__add { flex: 1; }
.pd__go-cart { flex: 1; }
.pd__askwrap { margin-top: 14px; }
.pd__note { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.pd__ask-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 11px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .88rem; color: var(--green-800);
  transition: all .18s var(--ease);
}
.pd__ask-btn:hover { border-color: var(--green-500); background: var(--green-050); }

/* ===== CART ===== */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 70px 20px; text-align: center; color: var(--muted);
}
.empty svg { color: var(--line); }
.empty h2 { font-size: 1.2rem; }
.empty .btn { margin-top: 12px; }

.checkout { display: grid; grid-template-columns: 1.35fr .95fr; gap: 24px; align-items: start; }
.checkout__items { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.checkout__items-head {
  display: flex; justify-content: space-between;
  padding: 12px 18px; background: var(--tint); border-bottom: 1px solid var(--line);
  font-family: 'Cairo', sans-serif; font-size: .82rem; font-weight: 700; color: var(--muted);
}
.line { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.line + .line { border-top: 1px solid var(--line); }
.line--out { background: var(--red-050); }
.line__img {
  width: 66px; height: 66px; flex: none; border-radius: var(--r-sm);
  background: var(--tint); overflow: hidden;
}
.line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.line__info { flex: 1; min-width: 0; }
.line__name { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .95rem; color: var(--ink); line-height: 1.5; }
.line__outtag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .7rem; vertical-align: middle;
}
.line__meta { font-size: .82rem; color: var(--muted); }
.line__controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.line__controls .qty { flex: none; min-width: 112px; }
.line__remove { font-size: .82rem; color: var(--red); font-weight: 500; }
.line__remove:hover { text-decoration: underline; }
.line__total {
  font-family: 'Cairo', sans-serif; font-weight: 800; font-size: .95rem;
  color: var(--ink); white-space: nowrap;
}

.checkout__side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 16px); }
.sum, .form { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; background: #fff; }
.sum__title, .form__title { font-size: 1.02rem; margin-bottom: 14px; }
.sum__row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: .88rem; padding: 5px 0;
}
.sum__row--muted { color: var(--muted); }
.sum__totals { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sum__grand {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--ink);
  font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.08rem; color: var(--ink);
}
.sum__note { font-size: .78rem; color: var(--muted); margin-top: 10px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; font-size: .95rem;
  transition: border-color .18s var(--ease);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); }
.field input::placeholder, .field textarea::placeholder { color: #AEBDB4; }
.form__warn {
  background: var(--red-050); color: var(--red); border-radius: var(--r-sm);
  padding: 10px 13px; font-size: .85rem; margin-bottom: 12px;
}
.form__submit { width: 100%; }

/* ===== FOOTER ===== */
.foot { background: var(--navy); color: rgba(255,255,255,0.7); padding-block: 34px; }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.foot__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Cairo', sans-serif; font-weight: 700; }
.foot__brand img { border-radius: 50%; background: #fff; padding: 4px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .9rem; }
.foot__links a:hover { color: var(--gold); }
.foot__social a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2); color: #fff;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.foot__social a:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); }
.foot__copy { font-size: .78rem; color: rgba(255,255,255,0.45); }

/* ===== MOBILE TAB BAR ===== */
.tabs { display: none; }

/* ===== TOAST ===== */
.toast {
  position: fixed; z-index: 1200; inset-inline: 16px;
  bottom: calc(-140px - var(--safe-b));
  margin-inline: auto; max-width: 420px;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 13px 18px; border-radius: var(--r-md); box-shadow: var(--sh-3);
  font-size: .9rem; transition: bottom .35s var(--ease);
}
.toast.show { bottom: calc(24px + var(--safe-b)); }
.toast svg { flex: none; color: var(--gold); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

@media (max-width: 1000px) {
  .hero__in { grid-template-columns: 1fr; gap: 34px; }
  .hero__art { max-width: 320px; order: -1; }
  .hero__facts { gap: 20px; }
  .about__in { grid-template-columns: 1fr; gap: 28px; }
  .checkout { grid-template-columns: 1fr; }
  .checkout__side { position: static; }
  .strip__in { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(odd) { border-inline-start: none; }
  .strip__item:nth-child(3), .strip__item:nth-child(4) { border-top: 1px solid var(--line); padding-top: 16px; }
  .cats__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav__links { display: none; }
  .nav__cart-m { display: block; }

  .hero__title { line-height: 1.28; }
  .hero__cta .btn { flex: 1; }
  .hero__facts { gap: 16px 24px; }
  .hero__facts li { font-size: .82rem; }

  .cats__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat { padding: 12px 13px; font-size: .87rem; gap: 10px; }
  .cat__ico { width: 34px; height: 34px; font-size: 1rem; }

  .picks__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .card__body { padding: 11px 12px 12px; }
  .card__name { font-size: .88rem; min-height: 2.7em; }
  .card__btn { font-size: .8rem; padding: 9px 8px; }
  .card__trash { width: 34px; height: 34px; }
  .qty button { width: 30px; height: 34px; }

  .visit__in { flex-direction: column; align-items: flex-start; }
  .visit__actions { width: 100%; }
  .visit__actions .btn { flex: 1; }

  .pd { width: 100%; inset-inline: 0; top: auto; height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .pd, html[dir="rtl"] .pd { transform: translateY(100%); }
  .pd.is-open, html[dir="rtl"] .pd.is-open { transform: translateY(0); }
  .pd__body { padding: 16px; padding-bottom: calc(24px + var(--safe-b)); }

  .line { padding: 13px 14px; gap: 11px; }
  .line__img { width: 56px; height: 56px; }
  .line__total { font-size: .88rem; }

  /* Bottom tab bar replaces the header links on phones. */
  .tabs {
    display: flex; position: fixed; z-index: 950; inset-inline: 0; bottom: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: var(--safe-b);
  }
  .tabs__t {
    flex: 1; position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 4px 8px; color: var(--muted); font-size: .7rem; font-weight: 500;
  }
  .tabs__t svg { width: 21px; height: 21px; }
  .tabs__t.is-on { color: var(--green-700); font-weight: 700; }
  .tabs__badge {
    position: absolute; top: 4px; inset-inline-end: calc(50% - 20px);
    min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
    background: var(--green-700); color: #fff;
    font-family: 'Cairo', sans-serif; font-size: .66rem; font-weight: 700;
    display: grid; place-items: center;
  }
  .tabs__badge:empty { display: none; }

  /* Clear the tab bar. */
  body { padding-bottom: calc(58px + var(--safe-b)); }
  .toast.show { bottom: calc(70px + var(--safe-b)); }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 15px; }
  .brand__txt small { display: none; }
  .hero__art { max-width: 260px; }
  .pill { font-size: .72rem; padding: 6px 12px; }
  .pill--b { inset-inline-end: -2%; }
  .strip__in { grid-template-columns: 1fr; }
  .strip__item { border-inline-start: none !important; }
  .strip__item + .strip__item { border-top: 1px solid var(--line); padding-top: 14px; }
  .card__actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
