@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --page: #e9f4ef;
  --surface: #fcfdfb;
  --ink: #173029;
  --muted: #466059;
  --line: #d5e7e1;
  --pine: #08665b;
  --pine-dark: #08473f;
  --soft: #e9f4ef;
  --soft-border: #bfdbd2;
  --accent: #e3c640;
  --accent-soft: #fbf5d7;
  --accent-border: #ecdfa6;
  --focus: #087467;
  --radius: 1rem;
  font-family: Manrope, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-weight: 500; line-height: 1.5; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
a, button { touch-action: manipulation; }
a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -.04em; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h3 { font-size: 1rem; line-height: 1.35; letter-spacing: -.02em; }
svg { width: 1.15em; height: 1.15em; flex: none; vertical-align: middle; }
.wrap { width: min(100% - 4rem, 1160px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 4; background: white; padding: .6rem .9rem; }

.launch-splash {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .55rem;
  padding: 1.5rem;
  background: radial-gradient(ellipse at 50% 42%, #126658 0%, #0b4c43 44%, #07382f 100%);
  color: var(--surface);
  text-align: center;
  pointer-events: none;
  animation: dismiss-launch-splash 260ms ease-in 1000ms forwards;
}
.launch-wordmark {
  font-size: clamp(3.75rem, 16vw, 7rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.07em;
}
.launch-credit { font-size: clamp(.9rem, 2.5vw, 1.125rem); font-weight: 700; letter-spacing: .04em; color: #c8e5db; }
@keyframes dismiss-launch-splash {
  to { opacity: 0; visibility: hidden; }
}
body:has(:focus-visible) .launch-splash { display: none; }
@media (prefers-reduced-motion: reduce) {
  .launch-splash { display: none; }
}

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 5.3rem; }
.brand { justify-self: start; display: flex; align-items: center; width: min(100%, 13.25rem); min-width: 0; color: var(--pine-dark); text-decoration: none; padding-block: .25rem; }
.brand-lockup { display: grid; width: 100%; }
.brand-lockup img { grid-area: 1 / 1; display: block; width: 100%; height: auto; min-width: 0; }
/* Both logo assets place the emblem in the first quarter of the viewBox. */
.brand-emblem { clip-path: inset(0 75% 0 0); }
.brand-lettering { clip-path: inset(0 0 0 25%); opacity: var(--logo-idle-opacity); }
.brand-lettering-english { --logo-idle-opacity: 1; --logo-switched-opacity: 0; }
.brand-lettering-urdu { --logo-idle-opacity: 0; --logo-switched-opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .brand-lettering { animation: switch-pharmacy-logo 6.8s ease-in-out 1.45s infinite both; }
}
@keyframes switch-pharmacy-logo {
  0%, 14%, 79%, 100% { opacity: var(--logo-idle-opacity); }
  23%, 70% { opacity: var(--logo-switched-opacity); }
}
.brand-wordmark { display: grid; min-width: 0; }
.brand-name { font-size: 1.03rem; font-weight: 800; line-height: 1.23; letter-spacing: -.025em; overflow-wrap: anywhere; }
.nav { display: flex; gap: .22rem; }
.nav a { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem .78rem; border-radius: .55rem; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .9rem; font-weight: 800; }
.nav a[aria-current="page"], .nav a:hover { background: var(--soft); color: var(--pine-dark); }
.demo-pill { justify-self: end; border: 1px solid var(--soft-border); border-radius: 2rem; padding: .25rem .7rem; background: var(--soft); color: var(--pine-dark); font-size: .78rem; font-weight: 800; white-space: nowrap; }

main { min-height: 70vh; }
.hero { display: grid; grid-template-columns: 1.06fr 1fr; min-height: 18rem; margin-top: 1.6rem; overflow: hidden; color: var(--surface); background: var(--pine-dark); border-radius: 1.2rem; }
.hero-content { align-self: center; padding: clamp(1.75rem, 4.4vw, 3.75rem); }
.hero h1 { max-width: 12ch; font-size: clamp(2.8rem, 5.6vw, 4.7rem); line-height: 1; letter-spacing: -.072em; }
.hero-content p { max-width: 32ch; margin-top: .95rem; color: var(--soft); }
.hero-image { position: relative; min-height: 100%; background: #cbd8bf; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid transparent; font-weight: 800; line-height: 1.25; text-decoration: none; transition: background-color .15s, border-color .15s; }
.button { min-height: 2.75rem; padding: .58rem .88rem; border-radius: .55rem; font-size: .88rem; white-space: nowrap; }
.button-primary { color: white; background: var(--pine); }
.button-primary:hover { background: var(--pine-dark); }
.button-secondary { color: var(--pine-dark); background: var(--surface); border-color: var(--line); }
.button-secondary:hover, .icon-button:hover { background: var(--soft); border-color: var(--soft-border); }
.button-offer { color: var(--pine-dark); background: var(--accent); }
.button-offer:hover { border-color: var(--pine-dark); }
.button:disabled { background: #eef2ed; border-color: var(--line); color: #506456; cursor: default; }
.full { width: 100%; }

.catalog { min-width: 0; scroll-margin-top: 1rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.search { display: flex; align-items: center; gap: .5rem; min-width: 0; max-width: 15rem; padding: .58rem .68rem; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: .55rem; }
.search:focus-within { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .9rem; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.filter { min-height: 2.5rem; padding: .35rem .68rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); color: var(--muted); font-size: .85rem; font-weight: 800; }
.filter[aria-pressed="true"], .filter:hover { background: var(--soft); border-color: var(--soft-border); color: var(--pine-dark); }

.card, .rx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.product { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .64rem; min-width: 0; padding: .75rem; background: var(--surface); }
.product-photo { display: block; width: 3.4rem; aspect-ratio: 1; border-radius: .62rem; background: var(--soft) url("assets/catalog-items.webp") 0 0 / 300% 200% no-repeat; }
.product-photo--ors { background-position: 50% 0; }
.product-photo--bandages { background-position: 100% 0; }
.product-photo--thermometer { background-position: 0 100%; }
.product-photo--wipes { background-position: 50% 100%; }
.product-photo--gauze { background-position: 100% 100%; }
.product-copy p, .rx-card p { margin-top: .1rem; color: var(--muted); font-size: .83rem; }
.product-bottom { display: grid; justify-items: end; gap: .3rem; }
.price { white-space: nowrap; font-weight: 800; font-size: .85rem; }
.product-bottom .button { padding-inline: .55rem; }
.product-bottom .button svg { width: .94rem; height: .94rem; }
.empty-message { grid-column: 1 / -1; padding: 1rem; color: var(--muted); font-size: .9rem; border: 0; border-radius: 0; }
.rx-card { display: flex; align-items: center; gap: .65rem; margin-top: .75rem; padding: .78rem; }
.rx-card > div { flex: 1; }
.rx-card h2 { font-size: 1.15rem; }
.rx-card .rx-language { width: fit-content; font-size: .95rem; }
.mini-icon { display: grid; place-items: center; flex: none; width: 2.45rem; height: 2.45rem; border-radius: .55rem; background: var(--soft); color: var(--pine); }
.mini-icon svg { width: 1.25rem; height: 1.25rem; }
.basket { position: sticky; top: .9rem; padding: 1rem; }
.card-heading { margin-bottom: .55rem; }
.card-heading h2 { font-size: 1.24rem; }
.empty-basket { padding-block: .35rem .2rem; color: var(--muted); font-size: .88rem; }
.items { margin: 0; padding: 0; list-style: none; }
.item { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .89rem; }
.item-body { min-width: 0; }
.item strong, .item small { display: block; }
.item small { margin-top: .06rem; color: var(--muted); font-size: .8rem; }
.quantity { display: flex; align-items: center; gap: .34rem; flex: none; font-weight: 800; }
.icon-button { min-height: 2.5rem; min-width: 2.5rem; padding: .3rem; border-radius: .48rem; background: var(--surface); color: var(--pine); border-color: var(--line); }
.icon-button svg { width: 1rem; height: 1rem; }
.bill { display: grid; gap: .28rem; margin: .8rem 0; font-size: .89rem; }
.bill div { display: flex; justify-content: space-between; gap: .6rem; }
.bill dt, .bill dd { margin: 0; }
.bill dt { color: var(--muted); }
.bill dd { text-align: right; font-weight: 800; }
.bill .total { margin-top: .25rem; padding-top: .5rem; border-top: 1px solid var(--line); font-size: .97rem; }
.bill .total dt { color: var(--ink); font-weight: 800; }

.page-heading { padding-block: 2rem 1rem; }
.page-heading h1 { font-size: clamp(2rem, 5.3vw, 3.2rem); letter-spacing: -.062em; }
.eyebrow { color: var(--pine); font-weight: 800; font-size: .85rem; }
.empty-page { max-width: 40rem; margin-bottom: 2rem; padding: 1.4rem; }
.empty-page p { margin: .35rem 0 .75rem; color: var(--muted); font-size: .92rem; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 1rem; margin-bottom: 2rem; }
.order-card { min-width: 0; padding: clamp(1rem, 2.4vw, 1.5rem); }
.order-top { display: flex; align-items: start; justify-content: space-between; gap: .55rem; margin-bottom: .8rem; }
.order-top .eyebrow { margin-bottom: .22rem; overflow-wrap: anywhere; }
.status { display: inline-flex; flex: none; border-radius: 2rem; padding: .27rem .61rem; background: #edf3ed; color: #365446; white-space: nowrap; font-size: .8rem; font-weight: 800; }
.status.status-0 { background: #fff0cf; color: #684613; }
.status.status-2, .status.status-3 { background: #e5edf6; color: #254762; }
.status.status-4 { background: #e3f0dc; color: #2e5427; }
.status.status-5 { background: #f8e8e4; color: #792a20; }
.tracking-layout { grid-template-columns: minmax(0, 1.75fr) minmax(16rem, 1fr); }
.tracking-card { container-type: inline-size; }
.tracking-sync { flex: none; padding-top: .15rem; color: var(--pine); font-size: .8rem; font-weight: 800; }
.order-flow { display: grid; gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.flow-step { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: center; gap: .65rem; min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: .8rem; color: var(--muted); }
.flow-step:not(:last-child)::after { content: ""; position: absolute; bottom: -.66rem; left: 1.65rem; width: .46rem; height: .46rem; border: solid #64897f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.flow-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .55rem; color: var(--pine-dark); background: var(--soft); }
.flow-step.is-complete { color: var(--pine-dark); border-color: var(--soft-border); background: var(--soft); }
.is-complete .flow-icon { color: white; background: var(--pine); }
.flow-step.is-current { color: white; border-color: var(--pine-dark); background: var(--pine-dark); }
.flow-step.is-closed { border-color: #792a20; background: #792a20; }
.is-closed .flow-icon { color: #792a20; background: #f8e8e4; }
.flow-text { display: grid; gap: .18rem; }
.flow-text strong { font-size: .89rem; line-height: 1.2; overflow-wrap: anywhere; }
.flow-state, .flow-text time { font-size: .75rem; }
.flow-state { font-weight: 800; }
.is-current .flow-state, .is-current time { color: #e9f4ef; }
.is-closed .flow-state, .is-closed time { color: #f8e8e4; }
.flow-detail { margin-top: .9rem; color: var(--muted); font-size: .9rem; }
@container (min-width: 35rem) {
  .order-flow { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .95rem; }
  .flow-step { grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: start; gap: .5rem; padding: .65rem .5rem; }
  .flow-step:not(:last-child)::after { top: calc(50% - .23rem); right: -.68rem; bottom: auto; left: auto; transform: rotate(-45deg); }
}
.order-summary > h3:not(:first-child), #tracking-summary > h3:not(:first-child) { margin-top: .85rem; }
.order-summary > p, #tracking-summary > p { margin-top: .25rem; color: var(--muted); font-size: .89rem; }
.order-summary > .button, .order-action { margin-top: .7rem; }
.link-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .55rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.link-panel h3 { font-size: .88rem; }
.link-panel input { width: 100%; padding: .42rem; border: 1px solid var(--line); border-radius: .4rem; font-size: .8rem; }
.order-summary .share-note { margin-top: .45rem; font-size: .8rem; }
.desk-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.result-panel { margin-block: .8rem; padding: .8rem; border-radius: .6rem; background: var(--soft); }
.result-panel p, .refresh-label { margin-top: .22rem; color: var(--muted); font-size: .85rem; }
.refresh-label { margin-top: .7rem; }
.review-note { display: flex; align-items: start; gap: .56rem; margin-block: .75rem; padding: .6rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--soft); color: var(--pine-dark); font-size: .86rem; }
.prescription-hold { background: #fff0cf; border-color: #f1d69b; color: #684613; }
.prescription-hold-action { margin-bottom: .7rem; }
.review-check { display: flex; align-items: start; gap: .5rem; margin-block: .75rem; font-size: .9rem; font-weight: 800; }
.review-check input { flex: none; width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--pine); }
.desk-issue { margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.desk-issue summary { color: var(--pine); font-weight: 800; font-size: .9rem; cursor: pointer; }
.desk-issue .fields { margin-top: .55rem; }
.muted { color: var(--muted); }

dialog { width: min(100% - 2rem, 29rem); max-height: calc(100% - 2rem); padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: 0 12px 45px #14271f30; }
dialog::backdrop { background: #172b22a0; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dialog-note { margin: .6rem 0 .8rem; color: var(--muted); font-size: .9rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: .75rem; }
.fields label { display: grid; gap: .22rem; font-size: .85rem; font-weight: 800; }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields select { min-width: 0; width: 100%; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--ink); background: white; font-size: .9rem; }
.fields input[readonly] { background: var(--page); color: var(--muted); }
.payment { display: flex; align-items: center; gap: .6rem; padding: .6rem .72rem; border-radius: .55rem; color: var(--pine-dark); background: var(--soft); font-size: .88rem; }
.payment small { display: block; color: var(--muted); font-size: .8rem; }
.form-error { color: #90291f; font-size: .89rem; margin-block: .6rem; }
.toast { position: fixed; z-index: 3; bottom: 1rem; left: 50%; max-width: calc(100% - 2rem); transform: translateX(-50%); padding: .55rem .85rem; border-radius: .65rem; color: white; background: var(--pine-dark); text-align: center; pointer-events: none; font-size: .9rem; font-weight: 800; }
.footer { display: flex; justify-content: space-between; gap: .6rem; padding-block: .85rem 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer a { text-underline-offset: .18em; }

.storefront-header .storefront-basket { justify-self: end; }
.storefront-basket[aria-current] { background: var(--soft); border-color: var(--soft-border); }
.storefront-main { padding-block: clamp(1.2rem, 3.5vw, 2.75rem) clamp(2.5rem, 6vw, 5rem); min-height: 70vh; }
.storefront-main .hero { margin: 0; min-height: clamp(14rem, 27vw, 20rem); }
.storefront-main .hero-content p { max-width: 34ch; }
.store-catalogue { margin-top: clamp(2rem, 5vw, 3.75rem); }
.storefront-main .section-head { margin-bottom: 1rem; }
.storefront-main .filters { margin-bottom: 1.2rem; gap: .5rem; }
.storefront-main .product-grid { gap: .9rem; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.storefront-main .product { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; gap: .85rem; }
.storefront-main .empty-message { border: 1px solid var(--line); border-radius: var(--radius); }
.storefront-main .rx-card { margin-top: 1.2rem; padding: 1rem; }
.storefront-main .page-heading { padding-block: .3rem 1.5rem; }
.storefront-main .page-heading p { margin-top: .55rem; color: var(--muted); }
.storefront-main .order-layout { gap: 1.35rem; }
.storefront-main .order-card, .storefront-main .basket { padding: clamp(1.1rem, 3vw, 1.8rem); }
.storefront-narrow { width: min(100%, 39rem); margin-inline: auto; }
.storefront-narrow .basket { position: static; }
.storefront-narrow .empty-basket { margin-bottom: .8rem; }
.storefront-narrow .fields { gap: 1rem; margin-bottom: 1.2rem; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: space-between; margin-top: 1.2rem; }
.rider-handoff { margin-bottom: 1rem; }
.rider-handoff > a { margin-top: .75rem; }
.rider-stops { display: grid; gap: .8rem; margin-block: 1.2rem; }
.rider-stops > div { padding-block: .55rem; border-bottom: 1px solid var(--line); }
.rider-stops dt { font-weight: 800; font-size: .875rem; }
.rider-stops dd { margin: .2rem 0 0; color: var(--muted); }
.rider-card .desk-issue button { margin-top: .7rem; }

@media (max-width: 1020px) {
  .wrap { width: min(100% - 2rem, 1160px); }
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 875px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .55rem; min-height: auto; padding-top: .5rem; }
  .nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: .2rem .53rem; }
  .nav a { padding-inline: .24rem; font-size: .84rem; white-space: normal; text-align: center; }
  .storefront-header .nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .brand { width: min(100%, 12.5rem); padding-block: .18rem 0; }
  .brand-name { font-size: .91rem; }
  .hero { grid-template-columns: 1fr; margin-top: .7rem; min-height: 0; border-radius: var(--radius); }
  .hero-content { padding: 1.15rem; }
  .hero h1 { max-width: none; font-size: clamp(2.25rem, 9.4vw, 3.25rem); }
  .hero-content p { margin-top: .6rem; font-size: .95rem; }
  .hero-image { display: none; }
  .order-layout, .desk-layout { grid-template-columns: minmax(0, 1fr); }
  .basket { position: static; }
  .search { max-width: 9.5rem; padding-inline: .5rem; }
  .search input { font-size: .84rem; }
  .product { padding: .65rem; }
  .product-photo { width: 3.2rem; }
  .product-bottom { grid-auto-flow: column; align-items: center; gap: .43rem; }
  .rx-card { flex-wrap: wrap; }
  .page-heading { padding-block: 1.3rem .8rem; }
  .storefront-main .hero { min-height: 0; }
  .storefront-main .hero-content { padding: 1.45rem; }
  .storefront-main .section-head { flex-wrap: wrap; }
  .storefront-main .search { max-width: none; }
  .storefront-main .product { padding: .85rem; gap: .65rem; }
  .storefront-main .order-layout { gap: 1rem; }
  .storefront-main .tracking-layout { grid-template-columns: minmax(0, 1fr); }
  .storefront-main ~ .footer { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .storefront-header .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .storefront-main .section-head { align-items: start; flex-direction: column; }
  .storefront-main .search { width: 100%; }
  .checkout-actions > * { flex: 1 1 9rem; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 1.25rem); }
  .section-head { align-items: start; flex-direction: column; gap: .5rem; }
  .search { width: 100%; max-width: none; }
  .product-bottom { grid-auto-flow: row; gap: .15rem; }
  .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
