.header-main.pharmacy-header {grid-template-columns:auto minmax(0,1fr)}
.pharmacy-header .header-actions {justify-self:end}
.pharmacy {padding-block:1rem 2.25rem}
.pharmacy h1 {font:530 clamp(1.9rem,4vw,3.2rem)/1.06 var(--serif);letter-spacing:-.038em;margin:0 0 .3rem}
.pharmacy-cover {padding:clamp(.85rem,2.8vw,1.65rem);border-radius:1.04rem;background:radial-gradient(ellipse at 95% 0%,#2d7963 0%,transparent 62%),linear-gradient(120deg,#144b40,#0b3d34 78%);color:white}
.pharmacy-cover-title {display:flex;align-items:flex-start;justify-content:space-between;gap:.58rem}
.pharmacy-cover-title p {color:#e2f4eb;font-size:.91rem;max-width:54ch}
.pharmacy-cart-link {display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:2.6rem;padding:.36rem .66rem;border:1px solid #f8d574;border-radius:.64rem;background:#f8d574;color:#392a0e;text-decoration:none;font-size:.85rem;font-weight:780;white-space:nowrap}
.pharmacy-cart-link .icon {width:1rem;height:1rem}
.pharmacy-cart-link:hover {background:#f1c75b}
.pharmacy-count {display:grid;place-items:center;min-width:1.23rem;min-height:1.23rem;padding-inline:.16rem;border-radius:1rem;color:white;background:#175343;font:740 .78rem/1 var(--sans)}
.pharmacy-search {position:relative;margin-top:.78rem;max-width:46rem;color:var(--accent-strong)}
.pharmacy-search .icon {position:absolute;width:1rem;height:1rem;left:.79rem;top:50%;transform:translateY(-50%)}
.pharmacy-search input[type=search] {display:block;width:100%;min-height:2.83rem;padding:.51rem .74rem .51rem 2.15rem;border:1px solid #bcd9cb;border-radius:.68rem;background:white;color:var(--ink);font:600 .95rem/1.35 var(--sans)}
.pharmacy-offers {display:grid;gap:.5rem;margin-block:.7rem 0;padding:.59rem .72rem;border:1px solid #efd48a;border-radius:.76rem;background:linear-gradient(105deg,#fff6d4,#fffdf3);color:#51370e}
.pharmacy-offers>strong {font-weight:780;font-size:.91rem}
.pharmacy-offers ul {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;margin:0;list-style:none;gap:.38rem}
.pharmacy-offers li {display:grid;gap:.1rem;padding:.28rem .37rem;border-left:2px solid #e7b636;line-height:1.22}
.pharmacy-offers b {font-size:1rem;color:#3f2a08}
.pharmacy-offers span {font-size:.77rem;color:#59461e}
.pharmacy-category-section {margin-block:1.3rem .9rem}
.pharmacy .section-heading h2 {font:520 clamp(1.29rem,2.5vw,1.9rem)/1.15 var(--serif);margin:0}
.pharmacy .section-heading {margin-bottom:.55rem}
.pharmacy-categories {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.58rem}
.pharmacy-category {display:grid;grid-template-rows:1fr auto;align-items:center;justify-items:center;padding:.4rem .4rem .5rem;gap:.24rem;border:1px solid var(--tone-edge);border-radius:.78rem;text-align:center;background:linear-gradient(160deg,var(--tone-highlight),var(--tone));text-decoration:none;color:var(--ink);line-height:1.18}
.pharmacy-category [alt] {width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.pharmacy-category span {display:block;width:min(100%,7rem);height:4rem}
.pharmacy-category strong {font-size:.86rem}
.pharmacy-category:hover,.pharmacy-category[aria-current] {border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.pharmacy-store {display:grid;grid-template-columns:minmax(0,1fr) minmax(17.5rem,23rem);gap:1rem;align-items:start;scroll-margin-block:1rem}
.pharmacy-results {min-width:0}
.pharmacy-mini-cart {position:sticky;top:1rem;max-height:calc(100vh - 2rem);overflow:auto;margin-top:.5rem}
.pharmacy-shelf {margin-block:.72rem 1.24rem;scroll-margin-block:1rem}
.pharmacy-products {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.61rem}
.pharmacy-product {display:flex;flex-direction:column;gap:.35rem;min-width:0;padding:.58rem;border:1px solid var(--line);border-radius:.76rem;background:white}
.pharmacy-pack-image {display:block;min-width:0;height:clamp(5.4rem,12vw,8.8rem);border-radius:.58rem;background:#f3f8f4;overflow:hidden}
.pharmacy-pack-image img,.pharmacy-detail-photo img {display:block;box-sizing:border-box;max-width:100%;max-height:100%;object-position:center;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;padding:.31rem}
.pharmacy-product-copy h3 {font:760 .94rem/1.22 var(--sans);text-wrap:initial;margin:0}
.pharmacy-product-copy h3 a {color:var(--ink);text-decoration:none}
.pharmacy-product-copy h3 a:hover {text-decoration:underline}
.pharmacy-product-copy p {font-size:.8rem;color:var(--muted);line-height:1.28;margin:.12rem 0 0}
.pharmacy-product-footer {display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:.23rem;padding-top:.17rem;margin-top:auto}
.pharmacy-product-footer>span {display:grid;line-height:1.24}
.pharmacy-product-footer small,.pharmacy-detail-price span {font-size:.7rem;font-weight:660;letter-spacing:.03em;color:var(--muted)}
.pharmacy-product-footer strong {font-size:1.04rem;color:var(--ink);font-weight:780}
.pharmacy-quantity {min-width:0}
.pharmacy-add.btn,.pharmacy-stepper {min-height:2.39rem;border:1px solid #397762;border-radius:.51rem;background:#e8f6ed;color:#104a36}
.pharmacy-add.btn {font:780 .88rem/1.1 var(--sans);padding:.32rem .59rem;min-width:3.3rem}
.pharmacy-add.btn:hover {background:#d5efde}
.pharmacy-stepper {display:flex;align-items:center;justify-content:center;gap:0;white-space:nowrap;overflow:hidden}
.pharmacy-stepper button {display:grid;place-items:center;min-width:1.73rem;min-height:2.3rem;padding:.1rem;background:transparent;border:0;color:inherit;font:800 1.05rem/1 var(--sans);cursor:pointer}
.pharmacy-stepper button:disabled {opacity:.55;cursor:default}
.pharmacy-stepper button:hover:not(:disabled) {background:#cdecd6}
.pharmacy-stepper button:focus-visible {outline-offset:-2px}
.pharmacy-stepper span {min-width:1.05rem;text-align:center;font-size:.83rem;font-weight:770;color:inherit}
.pharmacy-support {margin-top:.75rem;padding:1rem;background:#f2faf5;border:1px solid var(--line);border-radius:.76rem}
.pharmacy-support p {font-size:.91rem;max-width:75ch}
.pharmacy-dock {display:none}
.pharmacy-page-head {padding:1.05rem 1.2rem;margin-bottom:.9rem;border:1px solid var(--line);border-radius:.9rem;background:linear-gradient(120deg,#e7f7eb,#fff5d4)}
.pharmacy-cart-layout {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(15rem,1fr);gap:.9rem;align-items:start}
.pharmacy-cart-layout>aside {display:grid;gap:.6rem}
.pharmacy-cart-layout>aside .pharmacy-offers,.pharmacy-cart-layout .actions {margin-top:0}
.pharmacy .basket-panel {width:100%;margin:0;padding:.85rem;border:1px solid var(--line);box-shadow:0 6px 22px #163f2e0d;border-radius:.77rem;background:#fff}
.pharmacy-cart-heading {display:flex;justify-content:space-between;align-items:center;gap:.4rem;margin-bottom:.38rem}
.pharmacy-cart-heading h2 {font:740 1.13rem/1.22 var(--sans);margin:0}
.pharmacy-cart-heading [data-basket-count] {color:var(--muted);font-size:.81rem}
.pharmacy .pharmacy-line {display:grid;grid-template-columns:2.58rem minmax(0,1fr) auto;align-items:center;gap:.38rem;padding:.53rem 0;border-bottom:1px solid var(--line)}
.pharmacy-line-photo {width:2.55rem;height:2.55rem;object-fit:contain;background:#f7faf7;border-radius:.45rem}
.pharmacy-line-details,.pharmacy-line-controls {display:grid;gap:.14rem;line-height:1.23}
.pharmacy-line-details strong {font-size:.86rem;overflow-wrap:anywhere}
.pharmacy-line-details small {color:var(--muted);font-size:.76rem}
.pharmacy-line-controls {justify-items:end;font-size:.85rem}
.pharmacy-totals {display:grid;gap:.42rem;margin:.65rem 0}
.pharmacy-totals>div {display:flex;justify-content:space-between;gap:.35rem;font-size:.88rem}
.pharmacy-totals dd {margin:0;white-space:nowrap;font-weight:740}
.pharmacy-totals .pharmacy-saving {color:#1d6247}
.pharmacy-totals .pharmacy-total {border-top:1px solid var(--line);padding-top:.43rem;font-weight:790;font-size:.97rem}
.pharmacy-next-tier {background:#fff5d6;border-radius:.46rem;color:#614515;font-size:.83rem;padding:.38rem .5rem;margin-bottom:.64rem}
.pharmacy-checkout-form {display:grid;align-items:start;justify-items:start;gap:.38rem;margin-top:.75rem}
.pharmacy-checkout-form label {font-size:.89rem;font-weight:740}
.pharmacy-checkout-form input {min-height:2.72rem;width:min(100%,13.5rem);padding:.42rem .58rem;border:1px solid #85aaa0;border-radius:.55rem;font:inherit}
.pharmacy-checkout-form p {font-size:.85rem;color:var(--muted);margin-bottom:.16rem}
.pharmacy-detail-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.27fr);gap:1rem;padding:1rem;border:1px solid var(--line);border-radius:.86rem;background:#fff}
.pharmacy-detail-grid h1 {margin-top:.51rem}
.pharmacy-detail-photo {height:clamp(11rem,26vw,20rem);padding:.46rem;border-radius:.6rem;background:#f3f8f4}
.pharmacy-detail-price {display:flex;align-items:baseline;gap:.38rem;margin:.43rem 0;color:var(--accent-strong)}
.pharmacy-detail-price strong {font-size:1.47rem}
.pharmacy-detail-actions {display:flex;flex-wrap:wrap;align-items:center;gap:.43rem}
.pharmacy-detail-grid .small-note {margin-top:.55rem}
.pharmacy-detail-grid .flow-delivery-form {margin-top:.62rem}

@media(max-width:59rem) {
  .pharmacy-mini-cart {display:none}
  .pharmacy-store {grid-template-columns:1fr}
  .pharmacy-dock:not([hidden]) {position:fixed;display:flex;align-items:center;justify-content:space-between;gap:.42rem;z-index:8;bottom:.72rem;left:max(.6rem,env(safe-area-inset-left));right:max(.6rem,env(safe-area-inset-right));padding:.5rem .6rem;border-radius:.72rem;border:1px solid #357a62;background:#0f493b;color:#fff;box-shadow:0 7px 20px #164c3c33}
  .pharmacy-dock>div {display:grid;gap:.08rem;line-height:1.2}
  .pharmacy-dock>div span {font-size:.76rem;color:#e5f5ec}
  .pharmacy-dock>.btn {min-height:2.48rem;padding:.35rem .52rem;white-space:nowrap}
  body:has(.pharmacy-dock:not([hidden])) .floating-actions {bottom:4.47rem}
  body:has(.pharmacy-dock:not([hidden])) .site-footer {padding-bottom:7.5rem}
}
@media(max-width:52rem) {
  .pharmacy-dock:not([hidden]) {bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + .38rem)}
  body:has(.pharmacy-dock:not([hidden])) .floating-actions {bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 4.12rem)}
  .pharmacy-categories {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:39rem) {
  .pharmacy-categories,.pharmacy-products {gap:.42rem}
  .pharmacy-products {grid-template-columns:repeat(2,minmax(0,1fr))}
  .pharmacy-product {padding:.42rem}
  .pharmacy-product-copy h3 {font-size:.88rem}
  .pharmacy-category span {height:3.47rem}
  .pharmacy-category strong {font-size:.8rem}
  .pharmacy-cart-layout,.pharmacy-detail-grid {grid-template-columns:1fr}
  .pharmacy-cover-title p {font-size:.83rem}
  .pharmacy-cart-link {padding-inline:.43rem;font-size:.79rem}
  .pharmacy-cover-title h1 {font-size:clamp(1.55rem,5.6vw,1.92rem)}
}
@media(max-width:23rem) {
  .pharmacy-stepper button {min-width:1.45rem}
  .pharmacy-product-footer strong {font-size:.96rem}
  .pharmacy .pharmacy-line {grid-template-columns:2rem minmax(0,1fr) auto}
  .pharmacy-line-photo {width:2rem;height:2rem}
}
