/* Zain Pharmacy homepage.
   The look comes from the pharmacy's own street sign: deep blue, the yellow label band
   ("لحياة صحية أفضل"), the orange mortar logo, on warm paper. Flat colours, no background gradients.
   Spacing steps: 4 8 12 16 24 32 40 48 64 80 96. */

.zh {
  --ink: #133d5a;
  --blue: #1e5a84;
  --blue-soft: #e6f0f7;
  --sun: #f4c430;
  --sun-soft: #fdf3d0;
  --clay: #c2570c;
  --clay-dark: #a3480a;
  --clay-soft: #fbe9dc;
  --sage-soft: #e7efe6;
  --paper: #ffffff;
  --cream: #fcf9f3;
  --line: #e6e2d8;
  --text: #1f2a33;
  --muted: #5b6670;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color: var(--text);
  padding-top: 0;
}
.zh *, .zh *::before, .zh *::after { box-sizing: border-box; }
.zh h1, .zh h2, .zh h3, .zh p { margin: 0; }
.zh h1, .zh h2, .zh h3 { text-wrap: balance; }
.zh p { text-wrap: pretty; }
.zh .ic { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; line-height: 1; direction: ltr;
  display: inline-block; white-space: nowrap; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; }

.zh-wrap { width: 100%; max-width: 1152px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .zh-wrap { padding-inline: 24px; } }
.zh-section { margin-top: 64px; }
@media (min-width: 768px) { .zh-section { margin-top: 96px; } }

/* ---------- type ---------- */
.zh-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--blue); }
.zh-eyebrow::before { content: ""; width: 24px; height: 4px; border-radius: 4px; background: var(--sun); }
.zh-h2 { font-size: 30px; line-height: 36px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
@media (min-width: 768px) { .zh-h2 { font-size: 36px; line-height: 48px; } }
.zh-lead { font-size: 16px; line-height: 28px; color: var(--muted); max-width: 560px; }
.zh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.zh-head > div { display: grid; gap: 8px; }
.zh-more { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 14px; line-height: 20px; font-weight: 600;
  color: var(--blue); padding: 8px 12px; border-radius: 999px; transition: background-color .3s var(--ease); }
.zh-more:hover { background: var(--blue-soft); }
.zh-more .ic { font-size: 18px; transition: transform .3s var(--ease); }
.zh-more:hover .ic { transform: translateX(-4px); }

/* ---------- buttons ---------- */
.zh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 24px;
  border-radius: 16px; font-size: 16px; line-height: 24px; font-weight: 700; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease); }
.zh-btn .ic { font-size: 20px; }
.zh-btn:active { transform: scale(.98); }
.zh-btn--main { background: var(--clay); color: #fff; box-shadow: 0 8px 24px -12px rgb(194 87 12 / 70%); }
.zh-btn--main:hover { background: var(--clay-dark); transform: translateY(-2px); }
.zh-btn--quiet { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.zh-btn--quiet:hover { border-color: var(--blue); transform: translateY(-2px); }
.zh-btn--light { background: #fff; color: var(--ink); }
.zh-btn--light:hover { background: var(--sun-soft); transform: translateY(-2px); }
.zh-btn--ghost-light { color: #fff; border: 1px solid rgb(255 255 255 / 35%); }
.zh-btn--ghost-light:hover { background: rgb(255 255 255 / 10%); transform: translateY(-2px); }

/* ---------- hero ---------- */
.zh-hero { padding-top: 24px; }
@media (min-width: 768px) { .zh-hero { padding-top: 48px; } }
.zh-hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .zh-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.zh-hero__copy { display: grid; gap: 24px; max-width: 680px; }
.zh-hero h1 { font-size: 36px; line-height: 48px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
@media (min-width: 640px) { .zh-hero h1 { font-size: 48px; line-height: 64px; } }
@media (min-width: 1100px) { .zh-hero h1 { font-size: 60px; line-height: 80px; } }
.zh-mark { position: relative; white-space: nowrap; z-index: 0; }
.zh-mark::after { content: ""; position: absolute; z-index: -1; inset-inline: -4px; bottom: .12em; height: .42em; border-radius: 8px;
  background: var(--sun); transform-origin: right; animation: zh-mark .9s var(--ease) .35s both; }
@keyframes zh-mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.zh-hero__sub { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 560px; }
.zh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.zh-proof { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); }
.zh-proof span { display: inline-flex; align-items: center; gap: 4px; }
.zh-proof .ic { font-size: 18px; color: var(--blue); }

.zh-arch { position: relative; margin-inline: auto; width: min(100%, 440px); padding: 0 8px 24px; }
.zh-arch__sun { position: absolute; z-index: 0; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--sun);
  top: -4%; inset-inline-start: -6%; }
.zh-arch__frame { position: relative; z-index: 1; aspect-ratio: 4 / 4.6; border-radius: 999px 999px 32px 32px; overflow: hidden;
  border: 8px solid var(--paper); box-shadow: 0 32px 64px -32px rgb(19 61 90 / 45%); background: var(--blue-soft); }
.zh-arch__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; display: block;
  animation: zh-zoom 1.4s var(--ease) both; }
@keyframes zh-zoom { from { transform: scale(1.08); } to { transform: none; } }
@media (max-width: 899px) { .zh-arch__frame { aspect-ratio: 4 / 3.6; } }

.zh-status { position: absolute; z-index: 2; bottom: 0; inset-inline-end: -4px; display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 16px 32px -16px rgb(19 61 90 / 35%); animation: zh-rise .8s var(--ease) .5s both; }
.zh-status__dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa3ab; flex-shrink: 0; }
.zh-status:has([data-open-chip].bg-\[\#e3f3e6\]) .zh-status__dot { background: #22a447; box-shadow: 0 0 0 4px rgb(34 164 71 / 18%); }
.zh-status strong { display: block; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.zh-status small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.zh-status [data-open-chip] { font-size: 12px; line-height: 16px; font-weight: 700; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }

@keyframes zh-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- facts strip ---------- */
.zh-facts { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .zh-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; } }
.zh-fact { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 16px; display: grid; gap: 4px; }
@media (min-width: 640px) { .zh-fact { padding: 24px; } }
.zh-fact .ic { font-size: 24px; color: var(--blue); margin-bottom: 8px; }
.zh-fact strong { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--ink); }
.zh-fact span:last-child { font-size: 14px; line-height: 20px; color: var(--muted); }

/* ---------- categories ---------- */
.zh-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .zh-cats { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.zh-cat { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 152px; padding: 16px; border-radius: 24px; color: var(--ink);
  transition: transform .5s var(--ease); }
@media (min-width: 640px) { .zh-cat { padding: 24px; min-height: 176px; } }
.zh-cat:hover { transform: translateY(-4px); }
.zh-cat:active { transform: scale(.98); }
.zh-cat__icon { width: 48px; height: 48px; border-radius: 16px; background: rgb(255 255 255 / 70%); display: grid; place-items: center; }
.zh-cat__icon .ic { font-size: 26px; }
.zh-cat strong { display: block; font-size: 18px; line-height: 28px; font-weight: 700; }
.zh-cat small { display: block; font-size: 14px; line-height: 20px; color: var(--muted); }
.zh-cat > span:not(.zh-cat__art):not(.zh-cat__go) { position: relative; z-index: 1; }
.zh-cat__go { z-index: 1; }
.zh-cat__go { position: absolute; top: 16px; inset-inline-end: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: rgb(255 255 255 / 70%); display: grid; place-items: center; transition: transform .5s var(--ease); }
.zh-cat:hover .zh-cat__go { transform: translateX(-4px) rotate(-8deg); }
.zh-cat--med { background: var(--blue-soft); }
.zh-cat--mom { background: var(--sun-soft); }
.zh-cat--dev { background: var(--sage-soft); }
.zh-cat--skin { background: var(--clay-soft); }
@media (min-width: 900px) {
  .zh-cat--med { grid-row: span 2; min-height: 368px; }
  .zh-cat--med strong { font-size: 24px; line-height: 32px; }
  .zh-cat--med .zh-cat__art { display: block; }
  .zh-cat--skin { grid-column: span 2; }
}
.zh-cat__art { display: none; position: absolute; inset-inline-end: -32px; bottom: -32px; width: 52%; max-width: 240px; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 8px solid rgb(255 255 255 / 70%); }
.zh-cat__art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- product cards ---------- */
.zh-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 8px;
  scrollbar-width: none; }
.zh-rail::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .zh-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; margin: 0; padding: 0; } }
.zh-card { position: relative; flex: 0 0 auto; width: 46%; min-width: 160px; scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 8px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@media (min-width: 640px) { .zh-card { width: 30%; } }
@media (min-width: 900px) { .zh-card { width: auto; min-width: 0; padding: 12px; } }
.zh-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgb(19 61 90 / 35%); }
.zh-card__img { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--cream); }
@media (min-width: 900px) { .zh-card__img { border-radius: 12px; } }
.zh-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.zh-card:hover .zh-card__img img { transform: scale(1.04); }
.zh-tag { position: absolute; top: 8px; inset-inline-start: 8px; font-size: 12px; line-height: 16px; font-weight: 700;
  padding: 4px 8px; border-radius: 8px; }
.zh-tag--rx { background: var(--ink); color: #fff; }
.zh-tag--save { background: var(--sun); color: var(--ink); }
.zh-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 4px 4px; flex: 1; }
.zh-card__meta { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zh-card h3 { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); min-height: 40px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .zh-card h3 { font-size: 16px; line-height: 24px; min-height: 48px; } }
.zh-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.zh-price b { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--clay); }
.zh-price s { font-size: 14px; line-height: 20px; color: var(--muted); }
.zh-add { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; width: 100%;
  border-radius: 12px; border: 1px solid rgb(30 90 132 / 25%); background: transparent; color: var(--blue);
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 700; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.zh-add .ic { font-size: 18px; }
.zh-add:hover { background: var(--blue); color: #fff; }
.zh-add:active { transform: scale(.98); }
@media (min-width: 900px) { .zh-add { border-radius: 8px; } }

/* offers frame */
.zh-offers { background: var(--sun-soft); border-radius: 32px; padding: 24px 16px; }
@media (min-width: 640px) { .zh-offers { padding: 40px; } }
.zh-offers .zh-rail { margin-inline: -16px; }
@media (min-width: 640px) { .zh-offers .zh-rail { margin-inline: -40px; padding-inline: 40px; } }
@media (min-width: 900px) { .zh-offers .zh-rail { margin: 0; padding: 0; } }
.zh-offers .zh-add { background: var(--clay); color: #fff; border-color: var(--clay); }
.zh-offers .zh-add:hover { background: var(--clay-dark); }

/* ---------- tagline reveal ---------- */
.zh-tagline { background: var(--ink); color: #fff; padding: 80px 0; }
@media (min-width: 768px) { .zh-tagline { padding: 96px 0; } }
.zh-tagline__inner { display: grid; gap: 32px; }
.zh-tagline__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sun); }
.zh-tagline__kicker .ic { font-size: 20px; }
.zh-tagline p.zh-words { font-size: 30px; line-height: 48px; font-weight: 700; max-width: 900px; letter-spacing: -.01em; }
@media (min-width: 768px) { .zh-tagline p.zh-words { font-size: 48px; line-height: 72px; } }
.zh-words .w { color: rgb(255 255 255 / 28%); transition: color 1s var(--ease); }
.zh-words .w.on { color: #fff; }
.zh-words .w.sun.on { color: var(--sun); }

/* ---------- how to order: receipt ---------- */
.zh-how { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .zh-how { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.zh-how__copy { display: grid; gap: 16px; align-content: start; }
.zh-how__copy .zh-btn { justify-self: start; margin-top: 8px; }
.zh-receipt { position: relative; background: var(--paper); border-radius: 24px; padding: 24px;
  box-shadow: 0 32px 64px -40px rgb(19 61 90 / 45%); border: 1px solid var(--line); }
@media (min-width: 640px) { .zh-receipt { padding: 32px 40px; } }
.zh-receipt__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; }
.zh-receipt__top strong { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--ink); }
.zh-receipt__top span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.zh-cut { position: relative; height: 0; border-top: 2px dashed var(--line); margin-inline: -24px; }
@media (min-width: 640px) { .zh-cut { margin-inline: -40px; } }
.zh-cut::before, .zh-cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream);
  border: 1px solid var(--line); }
.zh-cut::before { inset-inline-start: -12px; }
.zh-cut::after { inset-inline-end: -12px; }
.zh-steps { list-style: none; margin: 0; padding: 8px 0; counter-reset: s; }
.zh-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; align-items: start; }
.zh-step + .zh-step { border-top: 1px dashed var(--line); }
.zh-step__n { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center;
  font-size: 16px; line-height: 24px; font-weight: 700; }
.zh-step strong { display: block; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.zh-step p { font-size: 14px; line-height: 24px; color: var(--muted); margin-top: 4px; }
.zh-receipt__total { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.zh-receipt__total span { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); }
.zh-receipt__total b { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--clay); }

/* ---------- branches ---------- */
.zh-branches { display: grid; gap: 16px; }
@media (min-width: 640px) { .zh-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .zh-branches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zh-branch { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 8px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.zh-branch:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgb(19 61 90 / 35%); }
.zh-branch__img { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--ink); }
.zh-branch__img img { width: 100%; height: 100%; object-fit: cover; }
.zh-branch__img--logo { display: grid; place-items: center; }
.zh-branch__img--logo img { width: 88px; height: 88px; object-fit: contain; }
.zh-branch__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.zh-branch__top [data-open-chip] { font-size: 12px; line-height: 16px; font-weight: 700; padding: 4px 8px; border-radius: 999px; white-space: nowrap;
  background: #f1eee7; color: var(--muted); }
.zh-branch__body { display: grid; gap: 4px; padding: 16px 8px 8px; flex: 1; align-content: start; }
.zh-branch__city { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--blue); }
.zh-branch h3 { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--ink); }
.zh-branch p { font-size: 14px; line-height: 20px; color: var(--muted); }
.zh-branch__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.zh-branch__actions a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; border-radius: 8px;
  font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); background: var(--cream); border: 1px solid var(--line);
  transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.zh-branch__actions a:hover { border-color: var(--blue); background: var(--blue-soft); }
.zh-branch__actions .ic { font-size: 18px; color: var(--blue); }

/* ---------- FAQ ---------- */
.zh-faq { display: grid; gap: 32px; }
@media (min-width: 900px) { .zh-faq { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.zh-faq__intro { display: grid; gap: 16px; }
@media (min-width: 900px) { .zh-faq__intro { position: sticky; top: 96px; } }
.zh-qs { display: grid; gap: 8px; }
.zh-q { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s var(--ease); }
.zh-q[open] { border-color: rgb(30 90 132 / 35%); }
.zh-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); border-radius: 16px; }
@media (min-width: 640px) { .zh-q summary { padding: 16px 24px; } }
.zh-q summary::-webkit-details-marker { display: none; }
.zh-q summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform .5s var(--ease); }
.zh-q[open] summary::after { transform: rotate(45deg); }
.zh-q p { padding: 0 16px 16px; font-size: 16px; line-height: 28px; color: var(--muted); }
@media (min-width: 640px) { .zh-q p { padding: 0 24px 24px; } }

/* ---------- final call ---------- */
.zh-final { position: relative; overflow: hidden; background: var(--clay); color: #fff; border-radius: 32px; padding: 40px 24px; display: grid; gap: 24px; }
@media (min-width: 768px) { .zh-final { padding: 64px; grid-template-columns: 1fr auto; align-items: center; } }
.zh-final::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--sun); opacity: .18;
  inset-inline-start: -96px; bottom: -160px; }
.zh-final > * { position: relative; }
.zh-final h2 { font-size: 30px; line-height: 36px; font-weight: 700; }
@media (min-width: 768px) { .zh-final h2 { font-size: 36px; line-height: 48px; } }
.zh-final p { font-size: 16px; line-height: 28px; color: rgb(255 255 255 / 85%); margin-top: 8px; max-width: 520px; }
.zh-final__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- scroll reveal (home.js adds .zh-in) ---------- */
.zh-js .zh-rv { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.zh-js .zh-rv.zh-in { opacity: 1; transform: none; }

/* site.js paints the live open/closed chip with these two utility classes */
.zh [data-open-chip].bg-\[\#e3f3e6\] { background: #e3f3e6; color: #1f7a3a; }
.zh [data-open-chip].bg-surface-container { background: #f1eee7; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .zh *, .zh *::before, .zh *::after { animation: none !important; transition: opacity .3s linear !important; }
  .zh-js .zh-rv { transform: none; }
  .zh-words .w { color: #fff; }
  .zh-words .w.sun { color: var(--sun); }
}

/* Phones: branches as compact rows (photo beside the text) instead of four tall cards */
@media (max-width: 639px) {
  .zh-branches { gap: 12px; }
  .zh-branch { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 4px; }
  .zh-branch__img { aspect-ratio: 1; border-radius: 16px; }
  .zh-branch__img--logo img { width: 56px; height: 56px; }
  .zh-branch__body { padding: 4px 8px; align-content: center; }
  .zh-branch h3 { font-size: 16px; line-height: 24px; }
  .zh-branch__actions { grid-column: 1 / -1; padding: 8px 0 0; }
}

/* Nothing on the homepage may widen the page on a phone (decorative circles, the skip link) */
html { overflow-x: clip; }

/* Icons pop in on scroll (home.js adds .zh-pop, then .zh-in when the icon is on screen) */
.zh-pop-ready .zh-pop { opacity: 0; transform: scale(.4) rotate(-14deg);
  transition: opacity .8s var(--ease), transform 1.2s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: calc(var(--i, 0) * 140ms + 200ms); }
.zh-pop-ready .zh-pop.zh-in { opacity: 1; transform: none; }
/* inside a block that rises in, the icon pops only after its block is up */
.zh-up-ready .zh-up:not(.zh-shown) .zh-pop.zh-in { opacity: 0; transform: scale(.4) rotate(-14deg); }
.zh-up-ready .zh-shown .zh-pop.zh-in { transition-delay: calc(var(--i, 0) * 140ms + 550ms); }
/* inline icons need a box to scale */
.zh-proof .ic.zh-pop, .zh-branch__actions .ic.zh-pop, .zh-final .ic.zh-pop, .zh-tagline__kicker .ic.zh-pop { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .zh-pop-ready .zh-pop { opacity: 1; transform: none; } }

/* Everything rises and pops in on scroll (home.js adds .zh-up, then .zh-shown on screen).
   The old whole-section fade from site.js is switched off here so the two do not stack. */
.zh .z-reveal { opacity: 1 !important; transform: none !important; }
.zh-up-ready .zh-up { opacity: .7; transform: translateY(12px);
  transition: opacity .28s var(--ease), transform .35s var(--ease), translate .3s var(--ease), box-shadow .3s var(--ease);
  transition-delay: calc(var(--d, 0) * 35ms), calc(var(--d, 0) * 35ms), 0s, 0s; }
.zh-up-ready .zh-up.zh-shown { opacity: 1; transform: none; }
/* once in place, cards keep their own quick hover lift */
/* the hover lift uses the separate translate property, so it stays quick while the entrance stays slow */
.zh-up-ready .zh-card.zh-shown:hover, .zh-up-ready .zh-cat.zh-shown:hover, .zh-up-ready .zh-branch.zh-shown:hover { transform: none; translate: 0 -4px; }
@media (prefers-reduced-motion: reduce) { .zh-up-ready .zh-up { opacity: 1; transform: none; } }

/* The four facts always sit side by side in one row; below desktop they shrink into compact centred tiles */
.zh-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 899px) {
  .zh-fact { padding: 12px 8px; border-radius: 16px; justify-items: center; text-align: center; gap: 2px; }
  .zh-fact .ic { font-size: 20px; margin-bottom: 4px; }
  .zh-fact strong { font-size: 14px; line-height: 20px; }
  .zh-fact span:last-child { font-size: 12px; line-height: 16px; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .zh-facts { gap: 12px; }
  .zh-fact { padding: 16px 12px; }
  .zh-fact strong { font-size: 16px; line-height: 24px; }
}
@media (max-width: 479px) {
  .zh-facts { gap: 6px; margin-top: 32px; }
  .zh-fact { padding: 12px 4px; border-radius: 12px; }
  .zh-fact strong { font-size: 12px; line-height: 16px; font-weight: 700; }
  .zh-fact span:last-child { display: none; }   /* phones keep only the short headline of each fact */
}

/* Categories: four tiles side by side in one row at every size, like the facts above them */
.zh-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; gap: 8px; }
.zh-cat, .zh-cat--med, .zh-cat--skin { grid-row: auto; grid-column: auto; min-height: 0; }
.zh-cat__art { display: none !important; }
.zh-cat { padding: 16px 12px; gap: 12px; border-radius: 20px; justify-content: flex-start; }
.zh-cat__icon { width: 40px; height: 40px; border-radius: 12px; }
.zh-cat__icon .ic { font-size: 22px; }
.zh-cat strong, .zh-cat--med strong { font-size: 16px; line-height: 24px; }
.zh-cat small { font-size: 12px; line-height: 16px; }
.zh-cat__go { width: 28px; height: 28px; top: 12px; inset-inline-end: 12px; }
.zh-cat__go .ic { font-size: 18px; }
@media (min-width: 900px) {
  .zh-cats { gap: 16px; }
  .zh-cat { padding: 24px; gap: 24px; min-height: 176px; justify-content: space-between; }
  .zh-cat__icon { width: 48px; height: 48px; border-radius: 16px; }
  .zh-cat__icon .ic { font-size: 26px; }
  .zh-cat strong, .zh-cat--med strong { font-size: 18px; line-height: 28px; }
  .zh-cat small { font-size: 14px; line-height: 20px; }
  .zh-cat__go { width: 36px; height: 36px; top: 16px; inset-inline-end: 16px; }
}
@media (max-width: 639px) {
  .zh-cat { padding: 12px 4px; gap: 8px; border-radius: 16px; align-items: center; text-align: center; }
  .zh-cat__icon { width: 36px; height: 36px; border-radius: 10px; }
  .zh-cat__icon .ic { font-size: 20px; }
  .zh-cat strong, .zh-cat--med strong { font-size: 12px; line-height: 16px; }
  .zh-cat small, .zh-cat__go { display: none; }
}

/* Product rails: smaller cards. From tablet up all four sit in one row; phones scroll sideways with
   about two and a half cards in view, so it is clear there is more to swipe. */
@media (min-width: 640px) {
  .zh-rail, .zh-offers .zh-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
    overflow: visible; margin: 0; padding: 0; }
  .zh-card { width: auto; min-width: 0; }
}
@media (max-width: 899px) {
  .zh-card { padding: 6px; border-radius: 16px; }
  .zh-card__img { border-radius: 12px; }
  .zh-card__body { padding: 8px 2px 2px; gap: 2px; }
  .zh-card h3 { font-size: 13px; line-height: 18px; min-height: 36px; }
  .zh-card__meta { font-size: 11px; line-height: 16px; }
  .zh-price b { font-size: 15px; line-height: 20px; }
  .zh-price s { font-size: 12px; line-height: 16px; }
  .zh-add { min-height: 34px; font-size: 12px; line-height: 16px; border-radius: 10px; margin-top: 6px; }
  .zh-add .ic { font-size: 16px; }
  .zh-tag { top: 6px; inset-inline-start: 6px; font-size: 11px; line-height: 14px; padding: 3px 6px; border-radius: 6px; }
  .zh-offers { padding: 20px 16px; border-radius: 24px; }
}
@media (max-width: 639px) {
  .zh-card { width: 40%; min-width: 136px; }
  .zh-rail { gap: 8px; }
  .zh-offers .zh-rail { margin-inline: -16px; padding-inline: 16px; }
}
@media (min-width: 480px) and (max-width: 639px) { .zh-card { width: 30%; min-width: 0; } }

/* Offers: the same scrollable rail handles touch, trackpads, buttons and automatic movement. */
.zh-offers .zh-rail.zh-marquee { display: flex; gap: 12px; overflow-x: auto; margin-inline: -16px;
  padding: 4px 16px 8px; overscroll-behavior-x: contain; scroll-snap-type: none; scrollbar-width: thin; }
@media (min-width: 640px) { .zh-offers .zh-rail.zh-marquee { margin-inline: -40px; } }
.zh-marquee .zh-card { flex: none; width: 160px; min-width: 0; scroll-snap-align: none; }
@media (min-width: 640px) { .zh-marquee .zh-card { width: 184px; } }
@media (min-width: 900px) { .zh-marquee .zh-card { width: 220px; } }
.zh-offer-controls { display: flex; justify-content: center; gap: 8px; direction: ltr; margin-top: 8px; }
.zh-offer-controls[hidden] { display: none; }
.zh-offer-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--clay);
  border-radius: 50%; background: #fff; color: var(--clay-dark); }
.zh-offer-arrow:hover { background: var(--clay); color: #fff; }
.zh-offer-arrow[data-offer-scroll="1"] .ic { transform: rotate(180deg); }
.zh-offer-arrow:focus-visible, .zh-marquee:focus-visible { outline: 2px solid var(--clay-dark); outline-offset: 2px; }

/* Shelf: one row of products per category, stacked under each other */
.zh-shelves { display: grid; gap: 32px; }
@media (min-width: 900px) { .zh-shelves { gap: 40px; } }
.zh-shelf { display: grid; gap: 12px; }
.zh-shelf[hidden] { display: none; }
.zh-shelf__head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.zh-shelf__head h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 28px; font-weight: 700; color: var(--ink); }
.zh-shelf__ic { width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.zh-shelf__ic .ic { font-size: 18px; }
.zh-shelf .zh-more { padding: 4px 8px; font-size: 13px; }
@media (max-width: 639px) { .zh-shelf__head h3 { font-size: 16px; line-height: 24px; } }

/* Shelf rows: four products side by side at every size. On phones the cards become small tiles:
   two-line name, price, and an icon-only add button. */
@media (max-width: 639px) {
  .zh-shelf .zh-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
    overflow: visible; margin: 0; padding: 0; }
  .zh-shelf .zh-card { width: auto; min-width: 0; padding: 4px; border-radius: 12px; }
  .zh-shelf .zh-card__img { border-radius: 8px; }
  .zh-shelf .zh-card__body { padding: 6px 2px 2px; }
  .zh-shelf .zh-card__meta { display: none; }
  .zh-shelf .zh-card h3 { font-size: 11px; line-height: 16px; min-height: 32px; }
  .zh-shelf .zh-price { flex-wrap: wrap; gap: 0 4px; }
  .zh-shelf .zh-price b { font-size: 13px; line-height: 18px; }
  .zh-shelf .zh-price s { font-size: 10px; line-height: 14px; }
  .zh-shelf .zh-add { font-size: 0; min-height: 30px; border-radius: 8px; margin-top: 4px; gap: 0; }
  .zh-shelf .zh-add .ic { font-size: 18px; }
  .zh-shelf .zh-tag { font-size: 9px; line-height: 12px; padding: 2px 4px; top: 4px; inset-inline-start: 4px; border-radius: 4px; }
}

/* ---------- Offers v2: three small cards in view, inside a glowing orange-red frame whose light travels around it ---------- */
@property --zh-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.zh-offers { position: relative; isolation: isolate; background: #fff6ef;
  animation: zh-offers-glow 2.6s ease-in-out infinite; }
.zh-offers::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 3px;
  background: conic-gradient(from var(--zh-angle), #c2410c, #e8402a 18%, #ff8a3d 32%, #ffd27a 40%, #ff8a3d 48%, #e8402a 62%, #b42318 80%, #c2410c);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: zh-angle 3.2s linear infinite; }
@keyframes zh-angle { to { --zh-angle: 360deg; } }
@keyframes zh-offers-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgb(232 64 42 / 0%), 0 16px 40px -20px rgb(194 65 12 / 45%); }
  50% { box-shadow: 0 0 28px 2px rgb(232 64 42 / 35%), 0 16px 40px -16px rgb(194 65 12 / 55%); }
}
.zh-offers .zh-eyebrow { color: #c2410c; }
.zh-offers .zh-eyebrow::before { background: #e8402a; }
.zh-offers .zh-h2 { color: #9a2a12; }

/* three cards in view below desktop: the strip measures its own width */
.zh-offers .zh-rail.zh-marquee { container-type: inline-size; }
@media (max-width: 899px) {
  .zh-marquee .zh-card { width: calc((100cqw - 32px - 24px) / 3); padding: 4px; border-radius: 12px; }
  .zh-marquee .zh-card__img { border-radius: 8px; }
  .zh-marquee .zh-card__body { padding: 6px 2px 2px; gap: 2px; }
  .zh-marquee .zh-card__meta { display: none; }
  .zh-marquee .zh-card h3 { font-size: 12px; line-height: 16px; min-height: 32px; }
  .zh-marquee .zh-price { flex-wrap: wrap; gap: 0 4px; }
  .zh-marquee .zh-price b { font-size: 14px; line-height: 20px; }
  .zh-marquee .zh-price s { font-size: 11px; line-height: 16px; }
  .zh-marquee .zh-add { font-size: 0; min-height: 30px; border-radius: 8px; margin-top: 4px; gap: 0; }
  .zh-marquee .zh-add .ic { font-size: 18px; }
  .zh-marquee .zh-tag { font-size: 10px; line-height: 12px; padding: 2px 4px; top: 4px; inset-inline-start: 4px; border-radius: 4px; }
}
@media (min-width: 900px) { .zh-marquee .zh-card { width: 200px; } }

@media (prefers-reduced-motion: reduce) {
  .zh-offers, .zh-offers::before { animation: none !important; }
}

/* Offers v3: no frame around the box. Instead a glowing orange-red line sits under the words
   "عروض حالية", and its light keeps running along it. */
.zh-offers { animation: none; }
.zh-offers::before { content: none; }
.zh-offers .zh-h2 { position: relative; display: inline-block; padding-bottom: 12px; }
.zh-offers .zh-h2::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #b42318, #e8402a, #ff8a3d, #ffd27a, #ff8a3d, #e8402a, #b42318) 0 0 / 200% 100%;
  box-shadow: 0 0 12px 1px rgb(232 64 42 / 55%);
  animation: zh-line 2.4s linear infinite, zh-line-glow 1.8s ease-in-out infinite; }
@keyframes zh-line { to { background-position: -200% 0; } }
@keyframes zh-line-glow { 50% { box-shadow: 0 0 20px 3px rgb(255 120 50 / 75%); } }
@media (prefers-reduced-motion: reduce) { .zh-offers .zh-h2::after { animation: none !important; } }

/* The same glowing, running line sits above the price in each offer card */
.zh-marquee .zh-price { position: relative; padding-top: 10px; margin-top: auto; }
.zh-marquee .zh-price::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #b42318, #e8402a, #ff8a3d, #ffd27a, #ff8a3d, #e8402a, #b42318) 0 0 / 200% 100%;
  box-shadow: 0 0 8px 1px rgb(232 64 42 / 50%);
  animation: zh-line 2.4s linear infinite, zh-line-glow 1.8s ease-in-out infinite; }
@media (max-width: 899px) { .zh-marquee .zh-price { padding-top: 8px; } .zh-marquee .zh-price::before { height: 2px; } }
@media (prefers-reduced-motion: reduce) { .zh-marquee .zh-price::before { animation: none !important; } }

/* Offer cards: a small red corner ribbon reading "عروض" instead of the "وفّر" tag */
.zh-marquee .zh-tag--save { display: none; }
.zh-marquee .zh-card__img::after { content: "عروض"; position: absolute; z-index: 2; top: 12px; left: -30px; width: 104px;
  transform: rotate(-45deg); background: #d92d20; color: #fff; text-align: center;
  font-size: 11px; line-height: 20px; font-weight: 700; box-shadow: 0 2px 6px rgb(217 45 32 / 40%); }
@media (max-width: 899px) {
  .zh-marquee .zh-card__img::after { top: 8px; left: -28px; width: 88px; font-size: 9px; line-height: 16px; }
}

/* Tighter rhythm: sections and their headings sit closer together */
.zh-section { margin-top: 40px; }
@media (min-width: 768px) { .zh-section { margin-top: 56px; } }
.zh-head { margin-bottom: 16px; }
.zh-head > div { gap: 4px; }
.zh-facts { margin-top: 32px; }
@media (min-width: 900px) { .zh-facts { margin-top: 40px; } }
/* category tiles: no tall empty middle */
@media (min-width: 900px) {
  .zh-cat { min-height: 0; padding: 20px; gap: 16px; justify-content: flex-start; }
}
.zh-shelves { gap: 24px; }
@media (min-width: 900px) { .zh-shelves { gap: 32px; } }

/* The offers follow the facts row closely instead of starting a new far-away block */
.zh-hero + .zh-section { margin-top: 16px; }
@media (min-width: 768px) { .zh-hero + .zh-section { margin-top: 24px; } }
@media (max-width: 767px) { .zh-section { margin-top: 32px; } .zh-hero + .zh-section { margin-top: 16px; } }

/* Phones and tablets: a tighter hero so the sign photo shows on the first screen with the buttons */
@media (max-width: 899px) {
  .zh-hero { padding-top: 16px; }
  .zh-hero__grid { gap: 20px; }
  .zh-hero__copy { gap: 12px; }
  .zh-hero__sub { font-size: 15px; line-height: 24px; }
  .zh-arch { width: 100%; max-width: 560px; padding: 0 0 16px; }
  .zh-arch__frame { aspect-ratio: 16 / 9; border-radius: 160px 160px 24px 24px; border-width: 6px; }
  .zh-arch__frame img { object-position: 58% 30%; }
  .zh-arch__sun { width: 44%; top: -10%; inset-inline-start: -4%; }
  .zh-status { padding: 8px 12px; inset-inline-end: auto; inset-inline-start: 8px; }
}
@media (max-width: 479px) {
  .zh-hero h1 { font-size: 30px; line-height: 40px; }
  .zh-hero__actions .zh-btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
  .zh-proof { font-size: 12px; line-height: 16px; gap: 4px 12px; }
}

/* Phones and tablets v2: the photo comes right after the headline, shown almost whole
   (gentle arch, no hard crop), then the text and buttons. */
@media (max-width: 899px) {
  .zh-hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .zh-hero__copy { display: contents; }
  .zh-hero__copy > .zh-eyebrow { order: 1; }
  .zh-hero h1 { order: 2; }
  .zh-arch { order: 3; margin: 4px 0 0; }
  .zh-hero__sub { order: 4; }
  .zh-hero__actions { order: 5; }
  .zh-proof { order: 6; }
  .zh-arch__frame { aspect-ratio: 4 / 3; border-radius: 96px 96px 24px 24px; }
  .zh-arch__frame img { object-position: 55% 45%; }
  .zh-arch__sun { width: 40%; top: -6%; }
  .zh-status { bottom: 0; inset-inline-start: 12px; }
}
@media (min-width: 480px) and (max-width: 899px) { .zh-arch { width: 100%; max-width: 480px; align-self: center; } .zh-arch__frame { aspect-ratio: 16 / 11; } }

/* Offers countdown under the title (shown by home.js only when an end time is set) */
.zh-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px;
  font-size: 13px; line-height: 20px; font-weight: 600; color: #9a2a12; }
.zh-timer[hidden] { display: none; }
.zh-timer > .ic { font-size: 18px; color: #e8402a; animation: zh-tick 1s steps(1) infinite; }
@keyframes zh-tick { 50% { opacity: .45; } }
.zh-timer__units { display: inline-flex; align-items: baseline; gap: 4px; }
.zh-timer__units b { min-width: 32px; padding: 2px 6px; border-radius: 8px; background: #b42318; color: #fff; text-align: center;
  font-size: 15px; line-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px -2px rgb(180 35 24 / 50%); }
.zh-timer__units i { font-style: normal; font-size: 11px; color: #9a2a12; margin-inline-end: 4px; }
.zh-timer__units [hidden] { display: none; }
@media (max-width: 479px) { .zh-timer__units b { min-width: 28px; font-size: 13px; line-height: 20px; padding: 2px 4px; } }
@media (prefers-reduced-motion: reduce) { .zh-timer > .ic { animation: none; } }

[data-no-offers] { display: none; }
