/* Hisha Pharma — PWA styles
   Breakpoints: ≤1180 header wraps · ≤1024 tablet · ≤768 phone (tab bar) · ≤480 small phone */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3ece2;
  --ink: #1c1816;
  --ink-2: #3d3531;
  --muted: #70675e;
  --line: #e8e0d4;
  --line-2: #f0e9df;

  --brand: #ba563b;
  --brand-dark: #9e452c;
  --brand-tint: #f9ece8;
  --brand-tint-2: #f3dcd4;
  --gold: #b88942;
  --gold-ink: #8a6427;
  --gold-tint: #fbf4e8;
  --gold-line: #f1e3c6;
  --green: #2e7d32;
  --green-tint: #e6f1e6;
  --dark: #1c1816;
  --danger: #b3261e;

  --serif: 'Source Serif 4', 'Noto Serif Malayalam', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: Inter, 'Noto Sans Malayalam', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;

  --r-xl: 28px;
  --r-lg: 22px;
  --r: 18px;
  --r-sm: 12px;
  --pill: 999px;

  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1440px;
  --header-h: 84px;
  --tabbar-h: 0px;
  --shadow: 0 10px 30px -14px rgba(28, 24, 22, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(28, 24, 22, 0.35);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--brand);

  color-scheme: light;
}

/* ------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-tap-highlight-color: transparent; }
html.has-sheet { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
summary { cursor: pointer; }
[hidden] { display: none !important; }
/* Give visually-hidden text a containing block so it never escapes scrollers */
.btn, .pcard, .lcard, .dcard, .spec, .chip, .rail-sm, .chips, .catnav__row, .day-picker, .stepper, .hact, .tab, .card { position: relative; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.small { font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

.boot { flex: 1; display: grid; place-items: center; }
.boot__mark { width: 56px; height: 56px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(0.92); opacity: 0.7; } }
@keyframes topbar-cycle { 0% { opacity: 0; transform: translateY(6px); } 5%, 45% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .topbar__item { animation: none !important; opacity: 1 !important; } .topbar__item:nth-child(2) { display: none; } }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.main { flex: 1; outline: none; padding-bottom: clamp(40px, 6vw, 72px); }
.page { padding-top: clamp(16px, 2.6vw, 32px); }
.page--narrow { max-width: calc(720px + 2 * var(--gutter)); }

/* ------------------------------------------------------------- Type */

.display { font-family: var(--serif); font-weight: 500; font-size: clamp(31px, 1.2rem + 2.4vw, 52px); line-height: 1.08; letter-spacing: -0.015em; font-optical-sizing: auto; }
.display em { font-style: italic; font-weight: 400; color: var(--brand); }
.display--md { font-size: clamp(27px, 1rem + 1.65vw, 41px); }
.display--light { color: #fff; }
.display--light em { color: #e9c99a; }
.lead { font-size: clamp(15px, 0.85rem + 0.3vw, 18px); color: var(--ink-2); line-height: 1.5; }
.page-head { margin-bottom: clamp(18px, 2.4vw, 28px); display: grid; gap: 8px; }
.page-head--row { display: flex; align-items: baseline; gap: 12px; }
.page-title { font-size: clamp(24px, 1rem + 1.2vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.section { margin-top: clamp(32px, 4.2vw, 52px); }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(14px, 1.6vw, 20px); }
.section__title { font-size: clamp(19px, 0.9rem + 0.7vw, 25px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.see-all { color: var(--brand-dark); font-weight: 600; font-size: 15px; white-space: nowrap; padding: 6px 0; }
.see-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.fine-print { color: var(--muted); font-size: 13px; margin-top: 24px; }
.fine-print a { text-decoration: underline; }

/* ------------------------------------------------------------- Buttons */

.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--pill);
  border: 1.5px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.1;
  white-space: nowrap; text-align: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline { background: var(--surface); color: var(--brand-dark); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-tint); }
.btn--soft { background: var(--brand-tint); color: var(--brand-dark); }
.btn--soft:hover { background: var(--brand-tint-2); }
.btn--soft.is-done { background: var(--green-tint); color: var(--green); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #a87a37; }
.btn--ghost { color: var(--brand-dark); }
.btn--ghost:hover { background: var(--brand-tint); }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 16.5px; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }
.link-btn { color: var(--brand-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn--muted { color: var(--muted); font-weight: 500; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--line-2); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn--sm { width: 32px; height: 32px; }
.icon-btn--sm .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------- Topbar */

.topbar { background: var(--dark); color: #f4eee7; font-size: 13.5px; padding-top: env(safe-area-inset-top); }
.topbar__track { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 40px); height: 38px; padding-inline: var(--gutter); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.topbar__track::-webkit-scrollbar { display: none; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; font-size: inherit; color: inherit; }
.topbar__item .icon { width: 15px; height: 15px; }
button.topbar__item:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar__offline { display: none; align-items: center; gap: 6px; background: #f9ece8; color: var(--brand-dark); border-radius: var(--pill); padding: 2px 10px; font-weight: 600; font-size: 12.5px; }
.topbar__offline .icon { width: 14px; height: 14px; }
.is-offline .topbar__offline { display: inline-flex; }

/* ------------------------------------------------------------- Header */

.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.header__row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: 'logo loc search actions'; align-items: center; column-gap: clamp(16px, 2.2vw, 36px); min-height: var(--header-h); }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__word { font-family: var(--serif); font-size: 29px; line-height: 1; letter-spacing: -0.03em; font-weight: 300; color: #5d544e; white-space: nowrap; }
.logo__word b { font-weight: 700; color: var(--ink); letter-spacing: -0.035em; }
.logo--light .logo__word, .logo--light .logo__word b { color: #f6f0ea; }
.logo--light .logo__word { color: #cfc5bc; }

.loc { grid-area: loc; display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; color: var(--ink-2); padding: 8px 4px; border-radius: 10px; white-space: nowrap; }
.loc > .icon:first-child { color: var(--brand); width: 19px; height: 19px; }
.loc b { color: var(--ink); font-weight: 700; letter-spacing: 0.01em; }
.loc__chev { width: 16px; height: 16px; color: var(--muted); }
.loc:hover b { text-decoration: underline; text-underline-offset: 3px; }

.search { grid-area: search; position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 6px 0 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--pill); transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s; }
.search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.search__icon { width: 20px; height: 20px; color: var(--muted); }
.search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; }
.search__input::placeholder { color: #857b72; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__input:focus-visible { box-shadow: none; }
.search__rx { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: var(--pill); background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; white-space: nowrap; transition: background-color 0.15s; }
.search__rx:hover { background: var(--brand-tint-2); }
.search__rx .icon { width: 17px; height: 17px; }

.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 8px; max-height: min(70vh, 560px); overflow-y: auto; z-index: 60; }
.suggest__group + .suggest__group { border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 4px; }
.suggest__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 8px 12px 4px; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; }
.suggest__item:hover, .suggest__item:focus-visible { background: var(--bg); box-shadow: none; }
.suggest__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.suggest__icon .icon { width: 18px; height: 18px; }
.suggest__text { display: grid; min-width: 0; }
.suggest__text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__text small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 12px; border-radius: 12px; background: var(--bg); color: var(--brand-dark); font-weight: 600; }
.suggest__all .icon { width: 16px; height: 16px; }
.suggest__empty { padding: 14px 12px; color: var(--muted); }
.suggest__empty a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; }

.hactions { grid-area: actions; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.hact { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 500; white-space: nowrap; border-radius: 10px; }
.hact .icon { width: 22px; height: 22px; }
.hact--plan .icon { color: var(--gold); }
.hact:hover span:not(.badge) { text-decoration: underline; text-underline-offset: 3px; }
.badge { position: absolute; top: 0; right: -10px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; }
.badge:empty { display: none; }

/* ------------------------------------------------------------- Category nav */

.catnav { background: #fff; border-bottom: 1px solid var(--line); }
.catnav__row { display: flex; gap: clamp(22px, 2.8vw, 44px); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.catnav__row::-webkit-scrollbar { display: none; }
.catnav__link { position: relative; display: inline-flex; align-items: center; height: 56px; font-weight: 600; font-size: 15.5px; color: var(--ink-2); white-space: nowrap; scroll-snap-align: start; border-radius: 6px; }
.catnav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.catnav__link:hover { color: var(--ink); }
.catnav__link.is-active { color: var(--brand-dark); }
.catnav__link.is-active::after { background: var(--brand-dark); }

/* ------------------------------------------------------------- Footer */

.footer { background: var(--dark); color: #d8cfc6; padding: clamp(40px, 5vw, 64px) 0 calc(28px + var(--tabbar-h)); margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px clamp(20px, 3vw, 48px); }
.footer__brand p { margin-top: 18px; max-width: 46ch; line-height: 1.65; color: #cbc1b7; }
.footer__app { margin-top: 18px; display: none; align-items: center; gap: 8px; border: 1px solid #4a413b; color: #f4eee7; padding: 10px 16px; border-radius: var(--pill); font-weight: 600; }
.can-install .footer__app, .is-ios:not(.is-standalone) .footer__app { display: inline-flex; }
.footer__app:hover { background: #2b2420; }
.footer__h { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer__col ul { display: grid; gap: 4px; }
.footer__link { display: inline-block; padding: 4px 0; color: #cbc1b7; font-size: 15px; text-align: left; }
.footer__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid #3a322d; font-size: 14px; color: #b9aea4; }

/* ------------------------------------------------------------- Tab bar (phones) */

.tabbar { display: none; }

/* ------------------------------------------------------------- Toasts */

.toasts { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(520px, calc(100vw - 24px)); pointer-events: none; }
.has-paybar .toasts { bottom: calc(96px + var(--tabbar-h) + env(safe-area-inset-bottom)); }
.has-sheet .toasts { top: calc(16px + env(safe-area-inset-top)); bottom: auto; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; justify-content: space-between; background: var(--ink); color: #fff; padding: 12px 14px 12px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 14.5px; transform: translateY(12px); opacity: 0; transition: transform 0.22s ease, opacity 0.22s ease; }
.toast.is-in { transform: none; opacity: 1; }
.toast__action { color: #f0c3b3; font-weight: 700; white-space: nowrap; padding: 6px 8px; border-radius: 8px; }
.toast__action:hover { background: rgba(255, 255, 255, 0.08); }

/* ------------------------------------------------------------- Sheet / dialog */

.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(28, 24, 22, 0.45); opacity: 0; transition: opacity 0.22s ease; }
.sheet__panel { position: relative; width: min(520px, 100%); max-height: min(88vh, 860px); display: flex; flex-direction: column; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(0.98); opacity: 0; transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease; outline: none; }
.sheet--wide .sheet__panel { width: min(720px, 100%); }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; opacity: 1; }
.sheet__grab { display: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 8px 24px; }
.sheet__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.sheet__body { padding: 8px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.sheet-foot__price { display: grid; }
.sheet-foot__price small { color: var(--muted); font-size: 13px; }
.sheet-foot__price b { font-size: 22px; }

/* ------------------------------------------------------------- Forms */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 600; font-size: 14.5px; }
.field__label small { color: var(--muted); font-weight: 400; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error, .form-error { font-size: 13.5px; color: var(--danger); font-weight: 500; }
.form-error { margin-top: 12px; padding: 10px 14px; background: #fdecea; border-radius: 12px; }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #d9cfc3; border-radius: 14px; background: #fff; font-size: 16px; transition: border-color 0.15s, box-shadow 0.15s; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.input[aria-invalid='true'] { border-color: var(--danger); }
.input[readonly] { background: var(--bg); color: var(--muted); }
.input--lg { min-height: 56px; font-size: 20px; letter-spacing: 0.08em; font-weight: 600; }
.input--otp { font-size: 24px; letter-spacing: 0.5em; font-weight: 600; text-align: center; max-width: 220px; }
.input::placeholder { color: #a39a91; }
.input-group { display: flex; align-items: stretch; }
.input-group__pre { display: grid; place-items: center; padding: 0 14px; border: 1px solid #d9cfc3; border-right: 0; border-radius: 14px 0 0 14px; background: var(--bg); color: var(--muted); font-weight: 600; }
.input-group .input { border-radius: 0 14px 14px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--full { grid-column: 1 / -1; }
.fieldset { display: grid; gap: 10px; }
.fieldset__legend { font-weight: 600; font-size: 14.5px; margin-bottom: 10px; padding: 0; }

.choices { display: grid; gap: 12px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font-weight: 600; transition: border-color 0.15s, background-color 0.15s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #8b8178; flex: none; display: grid; place-items: center; }
.choice__dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform 0.15s; }
.choice__text { flex: 1; display: grid; gap: 2px; }
.choice__text small { font-weight: 400; color: var(--muted); font-size: 13px; }
.choice:hover { border-color: #d6c8bb; }
.choice:has(input:checked) { border: 2px solid var(--brand); background: var(--brand-tint); padding: 11px 17px; }
.choice input:checked + .choice__dot { border-color: var(--brand); }
.choice input:checked + .choice__dot::after { transform: scale(1); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--pill); width: 100%; max-width: 360px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; height: 40px; border-radius: var(--pill); font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(28, 24, 22, 0.12); }
.seg input:focus-visible + span { box-shadow: var(--focus); }

.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode { position: relative; }
.mode input { position: absolute; opacity: 0; }
.mode span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 78px; border: 1px solid var(--line); border-radius: 16px; font-weight: 600; cursor: pointer; }
.mode span .icon { width: 22px; height: 22px; color: var(--brand); }
.mode input:checked + span { border: 2px solid var(--brand); background: var(--brand-tint); color: var(--brand-dark); }
.mode input:focus-visible + span { box-shadow: var(--focus); }

.day-picker { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.day-picker::-webkit-scrollbar { display: none; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; }
.day span { display: grid; justify-items: center; gap: 0; padding: 10px 4px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; line-height: 1.25; }
.day small { font-size: 12px; color: var(--muted); }
.day b { font-size: 20px; }
.day input:checked + span { border: 2px solid var(--brand); background: var(--brand-tint); padding: 9px 3px; }
.day input:checked + span small { color: var(--brand-dark); }
.day input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.day input:focus-visible + span { box-shadow: var(--focus); }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-grid--4 { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: grid; place-items: center; min-height: 44px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; }
.slot input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.slot input:focus-visible + span { box-shadow: var(--focus); }

/* ------------------------------------------------------------- Shared bits */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.card__title .icon { color: var(--brand); width: 20px; height: 20px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 10px 0 0; }
.price__now { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.price__mrp { color: var(--muted); font-size: 14px; }
.price__off { color: var(--green); font-weight: 700; font-size: 14.5px; }
.price--xl { margin: 0; gap: 6px 12px; align-items: center; }
.price--xl .price__now { font-size: clamp(30px, 1.4rem + 1vw, 42px); }
.price--xl .price__mrp { font-size: 17px; }
.price--xl .price__off { background: var(--green-tint); padding: 4px 12px; border-radius: var(--pill); font-size: 15px; }
.price--sm { margin-top: 4px; }
.price--sm .price__now { font-size: 15.5px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; font-size: 14px; white-space: nowrap; }
.pill-tag .icon { width: 15px; height: 15px; }
.pill-tag--ok { background: var(--green-tint); color: var(--green); }
.pill-tag--brand { background: var(--surface-2); color: var(--ink-2); }
.pill-tag--gold { background: var(--gold-tint); color: var(--gold-ink); border: 1px solid var(--gold-line); }
.pill-tag--gold .icon { color: var(--gold); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 12px; padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; font-weight: 600; font-size: 14.5px; white-space: nowrap; color: var(--ink-2); transition: background-color 0.15s, border-color 0.15s; }
.chip:hover { border-color: #d6c8bb; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-count { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }

.demo-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--gold-ink); background: var(--gold-tint); border: 1px dashed var(--gold-line); padding: 8px 12px; border-radius: 12px; margin-top: 4px; }
.demo-note .icon { width: 16px; height: 16px; margin-top: 1px; }
.note-inline { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--bg); border-radius: 14px; font-size: 14px; color: var(--ink-2); }
.note-inline .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 1px; }
.note-inline--warn { background: #fdf1ee; }
.note-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); color: var(--ink-2); font-size: 14.5px; }
.note-card .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }
.note-card--rx { background: var(--brand-tint); }
.legal-note { margin-top: 18px; padding: 14px 18px; border-radius: 16px; background: var(--surface-2); color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.gold-note { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--gold-tint); border: 1px solid var(--gold-line); font-size: 15.5px; line-height: 1.45; transition: border-color 0.15s; }
.gold-note:hover { border-color: var(--gold); }
.gold-note .icon { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.6; }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: clamp(40px, 8vw, 88px) 16px; }
.empty__icon { width: 72px; height: 72px; border-radius: 22px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.empty__icon .icon { width: 32px; height: 32px; }
.empty__title { font-size: clamp(20px, 1rem + 0.8vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
.empty__text { color: var(--muted); max-width: 46ch; }
.empty .btn-row { margin-top: 10px; }
.empty-inline { color: var(--muted); padding: 24px 0; }
.empty-card { padding: 22px; display: grid; gap: 14px; justify-items: start; }

.crumbs { margin-bottom: 18px; font-size: 14.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: #b5aba1; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.back-link:hover { color: var(--ink); }

.avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: 20px; flex: none; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar--lg { width: 72px; height: 72px; font-size: 24px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2f9e44; box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.18); }

.stepper { display: flex; align-items: center; justify-content: space-between; height: 46px; border: 1.5px solid var(--brand); border-radius: var(--pill); background: var(--brand-tint); overflow: hidden; }
.stepper__btn { width: 46px; height: 100%; display: grid; place-items: center; color: var(--brand-dark); }
.stepper__btn:hover { background: var(--brand-tint-2); }
.stepper__btn .icon { width: 18px; height: 18px; }
.stepper__btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.stepper__qty { font-weight: 700; min-width: 28px; text-align: center; color: var(--brand-dark); }
.stepper--lg { height: 54px; min-width: 160px; }
.stepper--lg .stepper__btn { width: 54px; }
.detail-cart { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-cart .stepper { flex: 1; }

.success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px); outline: none; }
.success__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }
.success__icon .icon { width: 36px; height: 36px; }
.success__title { font-size: 20px; font-weight: 700; }
.success--sheet { padding: 8px 0 4px; }
.success .lead { max-width: 52ch; }
.success .btn-row { margin-top: 8px; }

.check-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--green); width: 18px; height: 18px; margin-top: 2px; }
.plain-list { display: grid; gap: 10px; }
.plain-list li { display: flex; gap: 10px; align-items: flex-start; }
.plain-list .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.next-list { display: grid; gap: 10px; text-align: left; width: 100%; max-width: 560px; margin-top: 8px; }
.next-list li { display: flex; gap: 12px; padding: 12px 16px; background: var(--bg); border-radius: 14px; }
.next-list .icon { color: var(--green); width: 18px; height: 18px; margin-top: 2px; }

.steps { counter-reset: step; display: grid; }
.steps__item { counter-increment: step; position: relative; display: grid; gap: 2px; padding: 14px 0 14px 66px; min-height: 72px; align-content: center; border-bottom: 1px solid var(--line); }
.steps__item::before { content: counter(step); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--brand-dark); color: #fff; font-weight: 700; font-size: 19px; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--brand-tint); }
.steps__item b { font-size: 17px; font-weight: 600; }
.steps__item span { color: var(--muted); font-size: 14.5px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.facts > div { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--line-2); }
.facts > div:nth-last-child(-n + 2) { border-bottom: 0; }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { font-weight: 600; font-size: 14.5px; }
.facts--stack { grid-template-columns: 1fr; border: 0; border-radius: 0; margin-bottom: 16px; }
.facts--stack > div { padding: 10px 0; border-right: 0 !important; border-bottom: 1px solid var(--line-2) !important; }

/* ------------------------------------------------------------- Grids */

.grid { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.grid--labs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--labs6 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.grid--labs6 .lcard { padding-inline: 16px; }
.grid--spec { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--spec8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.grid--products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--checkups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--doctors { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.grid--benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--offers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--guides { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ------------------------------------------------------------- Home */

.home-top { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: clamp(14px, 1.4vw, 22px); padding-top: clamp(16px, 2.2vw, 30px); }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: clamp(26px, 4vw, 56px) clamp(22px, 3.6vw, 48px); border-radius: var(--r-xl); background: linear-gradient(118deg, #f8ece7 0%, #f5ebe3 45%, #f0e8de 100%); }
.hero__copy { display: grid; gap: clamp(14px, 1.6vw, 20px); max-width: 600px; }
.hero .display { font-size: clamp(31px, 0.9rem + 1.95vw, 50px); }
.hero__art { width: clamp(120px, 11.5vw, 200px); margin-right: clamp(0px, 1.4vw, 24px); align-self: start; }
.hero__actions { margin-top: 6px; }
.rx-paper { width: 100%; height: auto; filter: drop-shadow(0 12px 20px rgba(28, 24, 22, 0.08)); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.tile { display: flex; flex-direction: column; padding: clamp(14px, 1.4vw, 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); min-height: 150px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.tile:hover { border-color: #dccfc2; transform: translateY(-2px); box-shadow: var(--shadow); }
.tile__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: auto; flex: none; }
.tile__icon .icon { width: 25px; height: 25px; }
.tile__title { margin-top: 16px; font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em; line-height: 1.2; }
.tile__sub { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.tile--feature { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.tile--feature .tile__icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.tile--feature .tile__sub { color: rgba(255, 255, 255, 0.86); }
.tile--feature:hover { border-color: var(--brand-dark); background: #8f3d26; }

.install-card { display: none; }
.can-install .install-card, .is-ios:not(.is-standalone) .install-card { display: block; }
.is-standalone .install-card { display: none !important; }
.install-card__inner { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--ink); color: #f4eee7; }
.install-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.install-card__icon .icon { width: 26px; height: 26px; }
.install-card__copy { flex: 1; }
.install-card__title { font-size: 18px; font-weight: 700; color: #fff; }
.install-card__copy p { color: #cbc1b7; font-size: 14.5px; }
.install-card__actions { display: flex; gap: 8px; }
.install-card .btn--ghost { color: #f0c3b3; }
.install-card .btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }
.install-btn { display: none; }
.can-install .install-btn, .is-ios:not(.is-standalone) .install-btn { display: inline-flex; }
.install-steps { display: grid; gap: 12px; margin: 16px 0 20px; }
.install-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--bg); border-radius: 14px; }
.install-steps__icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; flex: none; border: 1px solid var(--line); }

.section--trust { margin-top: clamp(28px, 3.4vw, 40px); }
.trust { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.trust__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 14.5px; line-height: 1.3; color: var(--ink-2); }
.trust__item .icon { width: 20px; height: 20px; color: var(--brand); }

/* ------------------------------------------------------------- Product card */

.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow 0.15s, border-color 0.15s; }
.pcard:hover { border-color: #dccfc2; box-shadow: var(--shadow); }
.pcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--media-bg, #fff); padding: 4%; border-bottom: 1px solid var(--line-2); }
.pcard__media .art, .pcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s ease; }
.pcard:hover .pcard__media .art { transform: scale(1.03); }
.pcard__flag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--brand-tint-2); color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.pcard__flag .icon { width: 13px; height: 13px; }
.pcard__body { flex: 1; display: flex; flex-direction: column; padding: 14px 14px 16px; }
.pcard__title { font-size: 15.5px; font-weight: 700; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title a:hover { color: var(--brand-dark); }
.pcard__sub { color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .price { margin-top: 8px; }
.pcard__refill { display: flex; align-items: center; gap: 5px; color: var(--brand-dark); font-weight: 600; font-size: 13px; margin-top: 4px; white-space: nowrap; letter-spacing: -0.01em; }
.pcard__refill .icon { width: 15px; height: 15px; }
.pcard__cta { margin-top: auto; padding-top: 14px; }

/* ------------------------------------------------------------- Lab card */

.lcard { display: flex; flex-direction: column; padding: 16px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow 0.15s, border-color 0.15s; }
.lcard:hover { border-color: #dccfc2; box-shadow: var(--shadow); }
.lcard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; }
.lcard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.lcard__meta .icon { width: 14px; height: 14px; color: var(--brand); }
.lcard__title { margin-top: 6px; font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.lcard__title a:hover { color: var(--brand-dark); }
.lcard__sub { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.lcard__cta { margin-top: auto; padding-top: 14px; }
.lcard .btn { --h: 50px; }

/* ------------------------------------------------------------- Speciality tile */

.spec { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: clamp(16px, 1.6vw, 22px) 10px; min-height: 124px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.spec:hover { border-color: #dccfc2; box-shadow: var(--shadow); transform: translateY(-2px); }
.spec__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.spec__icon .icon { width: 26px; height: 26px; }
.spec__name { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.grid--spec8 .spec__icon { border-radius: 16px; width: 56px; height: 56px; }
.spec.is-active { border: 2px solid var(--brand); background: var(--brand-tint); }
.spec.is-active .spec__icon { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------- Doctor card */

.dcard { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.dcard__top { display: flex; gap: 16px; align-items: flex-start; }
.dcard__info { min-width: 0; display: grid; gap: 2px; }
.dcard__name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.dcard__line { color: var(--muted); font-size: 14.5px; }
.dcard__avail { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.dcard__avail.is-now { color: #2b7a3a; }
.dcard__avail .icon { width: 15px; height: 15px; }
.dcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-left: 74px; }
.dcard__fee { font-size: 20px; font-weight: 700; }
.dcard__actions { display: flex; gap: 8px; }
.dcard__actions .btn { --h: 46px; padding: 0 18px; }
.doc-mini { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.doc-mini .avatar { width: 48px; height: 48px; font-size: 17px; }
.doc-mini > span:last-child { display: grid; }
.doc-mini small { color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------- Listings */

.rx-banner { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 18px; margin-bottom: 18px; border-radius: var(--r-lg); background: var(--brand-tint); border: 1px solid var(--brand-tint-2); }
.rx-banner__icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; flex: none; }
.rx-banner__text { flex: 1; font-size: 15px; }
.rx-banner:hover .btn { background: var(--brand-dark); }

/* ------------------------------------------------------------- Product detail */

.pdp { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr) minmax(0, 0.98fr); gap: clamp(20px, 2.6vw, 40px); align-items: start; }
.pdp__media { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 10%; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--media-bg, #fff); }
.pdp__media .art, .pdp__media img { width: 100%; height: 100%; object-fit: contain; }
.pdp__info { display: grid; gap: 14px; align-content: start; }
.pdp__title { font-size: clamp(26px, 1.1rem + 1.4vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin-top: 4px; }
.pdp__sub { font-size: clamp(16px, 0.9rem + 0.3vw, 19px); color: var(--muted); margin-top: -6px; }
.pdp__salt { font-size: clamp(16px, 0.9rem + 0.3vw, 19px); color: var(--muted); margin-top: -8px; }
.pdp__salt a { color: var(--brand-dark); font-weight: 600; }
.pdp__salt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp__price { display: grid; gap: 4px; margin-top: 6px; }
.pdp__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.pdp__actions--single { grid-template-columns: minmax(0, 360px); }
.pdp__actions .btn--lg { --h: 58px; }
.pdp__cart:has(.detail-cart) { grid-column: 1 / -1; }
.delivery-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font-size: 16px; }
.delivery-row > .icon { width: 22px; height: 22px; color: var(--brand); }
.delivery-row span { flex: 1; }
.delivery-row b { white-space: nowrap; }
.pdp__copy { display: grid; gap: 10px; font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-top: 6px; }
.pdp__copy b { color: var(--ink); }
.pdp__aside { display: grid; gap: 16px; }
.alt-card { padding: 20px 22px; }
.alt-list li + li { border-top: 1px solid var(--line); }
.alt { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; }
.alt:hover .alt__name b { color: var(--brand-dark); }
.alt__name, .alt__price { display: grid; gap: 2px; align-content: start; }
.alt__name { min-width: 0; }
.alt__price { flex: none; }
.alt__name b, .alt__price b { font-size: 16px; font-weight: 600; }
.alt__name small { color: var(--muted); font-size: 14px; }
.alt__price { text-align: right; justify-items: end; }
.alt__price small { color: var(--green); font-weight: 700; font-size: 14px; white-space: nowrap; }
.alt-note { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.plan-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--gold-tint); border: 1px solid var(--gold-line); transition: border-color 0.15s; }
.plan-card:hover { border-color: var(--gold); }
.plan-card > .icon { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.6; }
.plan-card > span { display: grid; flex: 1; }
.plan-card b { font-size: 16.5px; }
.plan-card small { font-size: 14.5px; color: var(--ink-2); }
.purchase { display: grid; gap: 10px; }
.purchase .choice b { font-size: 16px; }

/* ------------------------------------------------------------- Upload */

.upload-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 44px); align-items: start; }
.upload-main .page-head { margin-bottom: 22px; }
.picks { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 20px); }
.pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: clamp(150px, 15vw, 230px); padding: 18px 12px; text-align: center; background: #fff; border: 1.5px dashed #ddd2c6; border-radius: var(--r-lg); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.pick:hover { border-color: var(--brand); background: #fffdfb; }
.pick:focus-within { box-shadow: var(--focus); border-color: var(--brand); }
.pick__icon { width: clamp(56px, 5vw, 76px); height: clamp(56px, 5vw, 76px); border-radius: 18px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.pick__icon .icon { width: 30px; height: 30px; }
.pick__title { font-weight: 600; font-size: clamp(15px, 0.8rem + 0.4vw, 19px); line-height: 1.2; }
.pick__sub { color: var(--muted); font-size: 14px; }
.picks__drop { position: absolute; inset: 0; display: none; place-items: center; gap: 10px; border: 2px dashed var(--brand); border-radius: var(--r-lg); background: rgba(249, 236, 232, 0.94); color: var(--brand-dark); font-weight: 700; font-size: 18px; pointer-events: none; }
.picks__drop .icon { width: 28px; height: 28px; }
.picks.is-dragging .picks__drop { display: grid; }
.drop-hint { margin-top: 12px; color: var(--muted); font-size: 13.5px; text-align: center; }
.rx-review { margin-top: 22px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); padding: clamp(16px, 2vw, 24px); }
.rx-review__thumb { align-self: start; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--bg); margin-top: 52px; }
.rx-review__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rx-review__paper { width: 90%; height: auto; }
.rx-review__body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.rx-review__name { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.rx-review__body > .muted { margin-top: -10px; }
.file-list { display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px; background: var(--bg); border-radius: 12px; font-size: 14px; }
.file-list li > span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--muted); }
.file-list .icon { width: 16px; height: 16px; color: var(--brand); }
.add-page { cursor: pointer; justify-self: start; }
.add-page:focus-within { box-shadow: var(--focus); }
.rx-review .btn--lg { justify-self: start; margin-top: 4px; }
.upload-aside { display: grid; gap: 18px; }
.how { padding: 22px 24px 12px; }
.how .steps__item:last-child { border-bottom: 0; }

/* ------------------------------------------------------------- Labs */

.lab-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: center; gap: clamp(18px, 3vw, 48px); padding: clamp(24px, 3.4vw, 52px) clamp(20px, 4vw, 60px); border-radius: var(--r-xl); background: linear-gradient(118deg, #f8ece7 0%, #f3e9e1 60%, #efe7dd 100%); }
.lab-hero__copy { display: grid; gap: 18px; }
.lab-hero__points { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; font-size: 16px; color: var(--ink-2); }
.lab-hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.lab-hero__points .icon { color: var(--brand); width: 20px; height: 20px; }
.field-search { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--pill); }
.field-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7); }
.field-search .icon { width: 22px; height: 22px; color: var(--muted); }
.field-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; height: 100%; }
.field-search input:focus-visible { box-shadow: none; }

.checkup { display: flex; align-items: center; gap: 18px; padding: clamp(18px, 2vw, 28px); border-radius: var(--r-lg); transition: transform 0.15s, box-shadow 0.15s; }
.checkup:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.checkup--brand { background: var(--brand-tint); }
.checkup--gold { background: var(--gold-tint); }
.checkup--sand { background: var(--surface-2); }
.checkup__icon { width: 64px; height: 64px; border-radius: 16px; background: #fff; color: var(--brand); display: grid; place-items: center; flex: none; }
.checkup__icon .icon { width: 28px; height: 28px; }
.checkup__text { display: grid; }
.checkup__text b { font-size: 19px; }
.checkup__text small { color: var(--muted); font-size: 15px; }

.ldp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(20px, 3vw, 48px); align-items: start; }
.ldp__main { display: grid; gap: 16px; }
.ldp__main > .lead { margin-bottom: 4px; }
.info-card { padding: 22px 24px; display: grid; gap: 6px; }
.info-card .steps__item:last-child { border-bottom: 0; }
.buy-card { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; display: grid; gap: 16px; }
.buy-card__label { font-weight: 600; color: var(--muted); }
.buy-card__points { display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.buy-card__points li { display: flex; gap: 10px; align-items: center; }
.buy-card__points .icon { color: var(--brand); width: 18px; height: 18px; }
.booking__summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); border-radius: 16px; }
.booking__summary > span { display: grid; }
.booking__summary small { color: var(--muted); }
.booking__summary .price { margin: 0; justify-content: flex-end; }
.booking__where { display: flex; align-items: center; gap: 8px; }
.booking__where .icon { color: var(--brand); }

/* ------------------------------------------------------------- Consult */

.subhead { font-size: 17px; font-weight: 700; margin: 28px 0 14px; }
.consult-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(26px, 3.6vw, 52px) clamp(22px, 4vw, 60px); border-radius: var(--r-xl); background: var(--dark); color: #efe8e1; }
.consult-hero__copy { display: grid; gap: 12px; max-width: 720px; }
.consult-hero__copy p { font-size: clamp(15px, 0.85rem + 0.35vw, 19px); }
.consult-hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.consult-hero__wait { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.consult-hero .btn--gold { --h: 62px; font-size: 18px; padding: 0 30px; }

/* ------------------------------------------------------------- Cart and checkout */

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(18px, 2.6vw, 36px); align-items: start; }
.checkout-main { display: grid; gap: 16px; }
.checkout-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.cart-group, .form-card { padding: 20px 22px; }
.cart-list > li + li { border-top: 1px solid var(--line-2); }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; }
.cart-line__media { width: 76px; height: 76px; border-radius: 14px; background: var(--media-bg, #fff); border: 1px solid var(--line-2); padding: 6px; display: grid; place-items: center; }
.cart-line__media .art { width: 100%; height: 100%; }
.cart-line__icon { width: 52px; height: 52px; margin: 0 12px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.cart-line__icon .icon { width: 24px; height: 24px; }
.cart-line__icon--gold { background: var(--gold-tint); color: var(--gold); }
.cart-line__body { min-width: 0; display: grid; gap: 2px; }
.cart-line__name { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.cart-line__name:hover { color: var(--brand-dark); }
.cart-line__sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 13.5px; }
.cart-line__sub .icon { width: 14px; height: 14px; }
.cart-line__links { display: flex; gap: 16px; font-size: 14px; }
.cart-line__ctl { display: grid; justify-items: end; gap: 8px; }
.cart-line__ctl .stepper { height: 40px; min-width: 116px; }
.cart-line__ctl .stepper__btn { width: 40px; }
.cart-line__total { font-size: 16px; }
.rx-mini { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: 12px; }
.plan-card--row b { font-size: 16px; }
.summary { padding: 22px; display: grid; gap: 16px; }
.summary .card__title { margin-bottom: 0; }
.summary__cta { margin-top: 4px; }
.free-bar p { font-size: 14px; margin-bottom: 8px; }
.free-bar__track { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.free-bar__track span { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width 0.3s ease; }
.free-ok { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--green-tint); color: var(--green); font-weight: 600; font-size: 14px; }
.free-ok .icon { width: 18px; height: 18px; }
.coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.coupon .input { min-height: 44px; text-transform: uppercase; font-size: 15px; }
.coupon .input::placeholder { text-transform: none; }
.coupon__link { grid-column: 1 / -1; font-size: 13.5px; color: var(--brand-dark); font-weight: 600; justify-self: start; }
.coupon .field__error { grid-column: 1 / -1; }
.coupon__applied { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--green); background: var(--green-tint); color: var(--green); font-size: 14.5px; }
.coupon__applied span { flex: 1; }
.coupon__applied .icon { width: 18px; height: 18px; }
.sum-rows { display: grid; gap: 8px; font-size: 15px; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 12px; }
.sum-rows dt { color: var(--ink-2); }
.sum-rows .is-save dd { color: var(--green); font-weight: 600; }
.sum-rows .free { color: var(--green); font-weight: 600; }
.sum-total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 18px; font-weight: 700; }
.sum-total dt { color: var(--ink) !important; }
.saved-pill { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--green-tint); color: var(--green); font-weight: 600; font-size: 14px; }
.saved-pill .icon { width: 16px; height: 16px; }
.mini-lines { display: grid; gap: 8px; font-size: 14.5px; width: 100%; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; text-align: left; }
.mini-lines span { color: var(--ink-2); }
.success .sum-rows { width: 100%; max-width: 560px; text-align: left; }
.success .mini-lines { max-width: 560px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-dark); color: #fff; font-size: 14px; display: inline-grid; place-items: center; flex: none; }
.form-card .card__title { margin-bottom: 16px; }
.form-card > .muted { margin: -6px 0 14px; }
.form-card .choices + .btn { margin-top: 14px; }
.form-card .demo-note { margin-top: 14px; }
.paybar { display: none; }

/* ------------------------------------------------------------- Account */

.auth { display: grid; justify-items: center; text-align: center; gap: 10px; padding: clamp(24px, 4vw, 44px); }
.auth .form { width: 100%; text-align: left; margin-top: 14px; }
.auth .demo-note { width: 100%; text-align: left; }
.auth__mark { width: 60px; height: 60px; margin-bottom: 4px; }
.account-head { display: flex; align-items: center; gap: 18px; padding: 20px 22px; flex-wrap: wrap; }
.account-head__who { flex: 1; min-width: 160px; }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.quick-links > * { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; font-weight: 600; font-size: 14.5px; }
.quick-links > *:hover { border-color: #dccfc2; }
.quick-links .icon { width: 24px; height: 24px; color: var(--brand); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.account-grid > .card { padding: 20px 22px; }
.account-grid > .card > .btn { margin-top: 14px; }
.records { display: grid; }
.records > li + li { border-top: 1px solid var(--line-2); }
.rec { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
a.rec:hover b { color: var(--brand-dark); }
.rec__main { display: grid; min-width: 0; }
.rec__main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec__main small { color: var(--muted); font-size: 13.5px; }
.rec__side { display: grid; justify-items: end; gap: 4px; text-align: right; flex: none; }
.status { display: inline-block; padding: 2px 10px; border-radius: var(--pill); background: var(--gold-tint); color: var(--gold-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rec-empty { display: grid; gap: 12px; justify-items: start; padding: 4px 0; }

/* ------------------------------------------------------------- Content */

.plan-hero { padding: clamp(28px, 4vw, 60px) clamp(22px, 4vw, 60px); border-radius: var(--r-xl); background: linear-gradient(120deg, #fbf4e8 0%, #f8ecdc 100%); border: 1px solid var(--gold-line); }
.plan-hero__copy { display: grid; gap: 16px; max-width: 720px; }
.plan-hero__icon { width: 60px; height: 60px; border-radius: 18px; background: #fff; color: var(--gold); display: grid; place-items: center; }
.plan-hero__icon .icon { width: 30px; height: 30px; }
.plan-hero__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-hero__price b { font-size: 36px; letter-spacing: -0.02em; }
.plan-hero__price s { color: var(--muted); font-size: 18px; }
.plan-hero__price span { color: var(--ink-2); }
.benefit { padding: 22px; display: grid; gap: 8px; align-content: start; }
.benefit .tile__icon { margin-bottom: 8px; }
.benefit h3 { font-size: 17px; }
.example { padding: 24px; background: var(--surface-2); border: 0; }
.example p { font-size: 16px; line-height: 1.6; max-width: 70ch; }
.faq details { padding: 18px 22px; margin-bottom: 10px; }
.faq summary { font-weight: 600; font-size: 16px; }
.faq details p { margin-top: 10px; color: var(--ink-2); }
.coupon-card { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.coupon-card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.coupon-card__title { font-size: 18px; }
.coupon-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-weight: 700; font-size: 16px; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 10px; background: var(--bg); border: 1px dashed #cdbfb1; }
.offer-band { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--brand-tint); }
.offer-band > .icon:first-child { width: 30px; height: 30px; color: var(--brand); }
.offer-band > .icon:last-child { color: var(--muted); }
.offer-band span { display: grid; flex: 1; }
.offer-band small { color: var(--ink-2); }
.offer-band--gold { background: var(--gold-tint); }
.offer-band--gold > .icon:first-child { color: var(--gold); }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; transition: border-color 0.15s, box-shadow 0.15s; }
.guide-card:hover { border-color: #dccfc2; box-shadow: var(--shadow); }
.guide-card__tag { color: var(--brand-dark); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.guide-card__title { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.guide-card__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin-top: auto; }
.guide-card__meta .icon { width: 15px; height: 15px; }
.article { max-width: 720px; display: grid; gap: 16px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.article .display, .article .page-title { color: var(--ink); line-height: 1.15; }
.article__h { font-size: 19px; color: var(--ink); margin-top: 8px; }
.article .btn-row { margin-top: 8px; }

/* =============================================================  Responsive */

@media (max-width: 1440px) {
  .grid--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
}

@media (max-width: 1280px) {
  .pdp { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .pdp__aside { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--spec8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  :root { --header-h: 128px; }
  .header__row { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: 'logo loc . actions' 'search search search search'; row-gap: 10px; padding-block: 12px; min-height: 0; }
  .search { height: 52px; }
  .home-top { grid-template-columns: 1fr; }
  .grid--labs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .topbar__item--wide { display: none; }
  .upload-layout, .ldp, .checkout-layout { grid-template-columns: 1fr; }
  .checkout-aside { position: static; }
  .buy-card { position: static; }
  .lab-hero { grid-template-columns: 1fr; }
  .grid--spec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--checkups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__media { max-width: 520px; width: 100%; justify-self: center; aspect-ratio: 4 / 3; padding: 6%; }
  .hact--plan span { display: none; }
}

/* ------------------------------------------------------------- Phones */

@media (max-width: 768px) {
  :root { --header-h: 116px; --tabbar-h: calc(64px + env(safe-area-inset-bottom)); }
  body { font-size: 15px; padding-bottom: var(--tabbar-h); }

  .topbar { position: relative; }
  .topbar__track { display: grid; justify-content: center; height: 34px; font-size: 12.5px; overflow: hidden; }
  .topbar__item--wide { display: none; }
  .topbar__item { grid-area: 1 / 1; justify-self: center; opacity: 0; animation: topbar-cycle 9s infinite; }
  .topbar__item:nth-child(2) { animation-delay: -4.5s; }
  .topbar__offline { position: absolute; right: 10px; top: calc(env(safe-area-inset-top) + 6px); }

  .header__row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'logo loc actions' 'search search search'; column-gap: 8px; row-gap: 10px; padding-block: 10px 12px; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__word { font-size: 23px; }
  .loc { justify-self: end; font-size: 14px; gap: 4px; padding: 8px 2px; }
  .loc__label { display: none; }
  .hact--plan, .hact--user { display: none; }
  .hactions { gap: 6px; }
  .hact--cart { width: 44px; justify-content: center; }
  .badge { right: -2px; top: 1px; }
  .search { height: 48px; padding: 0 5px 0 14px; gap: 8px; }
  .search__icon { width: 18px; height: 18px; }
  .search__input { font-size: 16px; }
  .search__rx { height: 38px; padding: 0 12px; font-size: 14px; }
  .suggest { max-height: calc(100dvh - 240px); border-radius: 18px; }

  .catnav__link { height: 48px; font-size: 14.5px; }
  .catnav__row { gap: 22px; }

  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); border-radius: 12px; }
  .tab .icon { width: 23px; height: 23px; }
  .tab.is-active { color: var(--brand-dark); }
  .tab.is-active .icon { stroke-width: 2.2; }
  .tab--rx { color: var(--brand-dark); }
  .tab__bubble { width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; border: 4px solid #fff; box-shadow: 0 8px 18px -8px rgba(158, 69, 44, 0.75); }
  .tab__bubble .icon { width: 22px; height: 22px; }
  .tab--rx.is-active .tab__bubble { background: var(--brand-dark); }

  .footer { padding-bottom: 28px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer__bottom { flex-direction: column; }

  .hero { grid-template-columns: 1fr; padding: 26px 22px 24px; }
  .hero__art { position: absolute; top: 18px; right: -16px; width: 104px; opacity: 0.95; margin: 0; }
  .hero__copy .display { padding-right: 76px; }
  .hero__actions .btn { flex: 1 1 auto; }

  .tile { min-height: 0; padding: 14px 12px; border-radius: 18px; }
  .tile__icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
  .tile__icon .icon { width: 21px; height: 21px; }
  .tile__title { margin-top: 12px; font-size: 14.5px; }
  .tile__sub { font-size: 12.5px; }

  /* Horizontal rails on phones */
  .grid.rail-sm { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(82%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .rail-sm::-webkit-scrollbar { display: none; }
  .rail-sm > * { scroll-snap-align: start; }
  .grid.rail-sm--products { grid-auto-columns: min(46%, 210px); }

  .grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid--spec8 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .grid--spec { gap: 10px; }
  .spec { min-height: 0; padding: 14px 6px; gap: 8px; border-radius: 18px; }
  .spec__icon, .grid--spec8 .spec__icon { width: 46px; height: 46px; }
  .spec__icon .icon { width: 21px; height: 21px; }
  .spec__name { font-size: 13px; }
  .grid--benefits, .grid--2 { grid-template-columns: 1fr; }

  .pcard { border-radius: 18px; }
  .pcard__body { padding: 12px 12px 14px; }
  .pcard__title { font-size: 14.5px; }
  .pcard__sub { font-size: 13px; }
  .pcard .price__now { font-size: 16.5px; }
  .pcard .price__mrp { font-size: 13px; }
  .pcard .price__off { font-size: 13px; }
  .pcard__refill { font-size: 12.5px; }
  .pcard .btn, .pcard .stepper { --h: 42px; height: auto; min-height: 42px; }
  .pcard .stepper { height: 42px; }
  .pcard .stepper__btn { width: 42px; }

  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .trust__item { padding: 12px; font-size: 13.5px; gap: 10px; }

  .install-card__inner { flex-wrap: wrap; padding: 18px; }
  .install-card__copy { flex-basis: calc(100% - 70px); }
  .install-card__actions { width: 100%; }
  .install-card__actions .btn { flex: 1; }

  .picks { gap: 10px; }
  .pick { min-height: 132px; padding: 14px 6px; border-radius: 18px; }
  .pick__icon { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 10px; }
  .pick__icon .icon { width: 24px; height: 24px; }
  .pick__title { font-size: 14px; }
  .pick__sub { font-size: 12px; }
  .drop-hint { display: none; }
  .rx-review { grid-template-columns: 88px minmax(0, 1fr); }
  .rx-review__thumb { margin-top: 0; }
  .rx-review .btn--lg { justify-self: stretch; }

  .rx-banner { flex-wrap: wrap; }
  .rx-banner__text { flex: 1 1 calc(100% - 64px); }
  .rx-banner .btn { width: 100%; }
  .lab-hero__points { gap: 10px 20px; font-size: 14.5px; }
  .field-search { height: 54px; }
  .checkup { padding: 16px; gap: 12px; }
  .checkup__icon { width: 48px; height: 48px; border-radius: 14px; }
  .checkup__icon .icon { width: 22px; height: 22px; }
  .checkup__text b { font-size: 16px; }
  .checkup__text small { font-size: 13.5px; }

  .consult-hero { padding: 26px 22px; }
  .consult-hero__cta { width: 100%; }
  .consult-hero .btn--gold { --h: 56px; flex: 1; font-size: 17px; }

  .dcard { padding: 16px; }
  .dcard__top .avatar { width: 50px; height: 50px; font-size: 17px; }
  .dcard__foot { padding-left: 0; flex-wrap: wrap; }
  .dcard__actions { flex: 1; justify-content: flex-end; }
  .dcard__actions .btn { flex: 1; max-width: 170px; }

  .pdp__actions { grid-template-columns: 1fr; }
  .pdp__actions--single { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-right: 0 !important; border-bottom: 1px solid var(--line-2) !important; }
  .facts > div:last-child { border-bottom: 0 !important; }

  .form-grid { grid-template-columns: 1fr; }
  .cart-group, .form-card { padding: 16px; }
  .cart-line { grid-template-columns: 60px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .cart-line__media { width: 60px; height: 60px; grid-row: span 2; }
  .cart-line__icon { width: 44px; height: 44px; margin: 0 8px; grid-row: span 2; }
  .cart-line__ctl { grid-column: 2; display: flex; justify-content: space-between; align-items: center; width: 100%; }
  .cart-line--lab .cart-line__ctl { justify-content: flex-end; }

  .has-paybar .paybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 44; padding: 10px var(--gutter); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(28, 24, 22, 0.3); }
  .paybar__total { display: grid; line-height: 1.2; }
  .paybar__total small { color: var(--muted); font-size: 12.5px; }
  .paybar__total b { font-size: 20px; }
  .paybar .btn { flex: 1; max-width: 240px; }
  .has-paybar .main { padding-bottom: 96px; }
  .summary__cta { display: none; }

  .quick-links { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .quick-links > * { padding: 12px 4px; font-size: 12.5px; border-radius: 16px; }

  /* Sheets become bottom sheets */
  .sheet { place-items: end stretch; padding: 0; }
  .sheet__panel { width: 100%; max-height: calc(100dvh - 32px - env(safe-area-inset-top)); border-radius: 24px 24px 0 0; transform: translateY(100%); opacity: 1; padding-bottom: env(safe-area-inset-bottom); }
  .sheet--wide .sheet__panel { width: 100%; }
  .sheet.is-open .sheet__panel { transform: none; }
  .sheet__grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: #d9cfc3; margin: 8px auto 0; }
  .sheet__head { padding: 8px 12px 4px 20px; }
  .sheet__body { padding: 8px 20px 20px; }
  .sheet-foot { position: sticky; bottom: -20px; background: #fff; margin: 0 -20px -20px; padding: 12px 20px 16px; border-top: 1px solid var(--line-2); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .tiles { gap: 8px; }
  .tile { padding: 12px 10px; }
  .tile__title { font-size: 13.5px; }
  .grid--spec8 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .spec__name { font-size: 12px; }
  .grid--checkups { grid-template-columns: 1fr 1fr; gap: 10px; }
  .checkup { flex-direction: column; align-items: flex-start; }
  .mode span { height: 68px; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .slot-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .rx-review { grid-template-columns: 1fr; }
  .rx-review__thumb { width: 96px; }
  .footer__brand p { font-size: 14px; }
  .lab-hero__points { flex-direction: column; }
  .delivery-row { font-size: 15px; padding: 12px 14px; }
}

@media (max-width: 480px) {
  .search__rx { padding: 0 12px; gap: 5px; }
  .search__rx span { font-size: 0; }
  .search__rx span::after { content: 'Rx'; font-size: 14px; }
}

@media (max-width: 380px) {
  .logo__word { font-size: 20px; }
  .logo__mark { width: 30px; height: 30px; }
  .tile__sub { display: none; }
}

/* Installed app (standalone): native-feeling touches */
.is-standalone body { -webkit-user-select: none; user-select: none; }
.is-standalone input, .is-standalone textarea, .is-standalone .article, .is-standalone .pdp__copy { -webkit-user-select: text; user-select: text; }

/* Landscape phones: give the content more room */
@media (max-height: 500px) and (orientation: landscape) {
  .header { position: static; }
  .checkout-aside, .buy-card { position: static; }
}
@media (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
  :root { --tabbar-h: calc(52px + env(safe-area-inset-bottom)); }
  .tab > span:not(.tab__bubble) { display: none; }
  .tab__bubble { width: 42px; height: 42px; margin-top: 0; }
}

@media print {
  .topbar, .header, .catnav, .footer, .tabbar, .toasts, .paybar { display: none !important; }
}
