@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    color-scheme: light;
    --pine: #143529;
    --pine-dark: #10291f;
    --ink: #142c23;
    --body: #40544b;
    --cream: #f6f5ec;
    --paper: #fffef8;
    --line: #d8ded3;
    --lime: #d9ec9c;
    --sage: #e8efdd;
    --red: #8d352b;
    --radius: 1.25rem;
    --shadow: 0 16px 45px rgb(20 53 41 / 8%);
    --font: 'DM Sans', system-ui, sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.6 var(--font); }
body, input, select, textarea, button { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; }
a { color: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 3px solid #517d37; outline-offset: 4px; }
.site-footer :focus-visible, .dark :focus-visible { outline-color: var(--lime); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0 0 .8em; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(3.25rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2.25rem, 4.8vw, 4rem); }
h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
address { font-style: normal; }
fieldset { min-inline-size: 0; }
.wrap { width: min(100% - clamp(2rem, 7vw, 7rem), 82rem); margin-inline: auto; }
.narrow { width: min(100% - clamp(2rem, 7vw, 7rem), 48rem); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 8vw, 7rem); }
.section--compact { padding-block: clamp(2rem, 5vw, 4rem); }
.section--white { background: var(--paper); }
.eyebrow { margin: 0 0 1rem; font-size: .75rem; line-height: 1.3; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.lead { max-width: 37rem; color: var(--body); font-size: clamp(1.04rem, 2vw, 1.23rem); }
.muted { color: var(--body); }
.small { font-size: .88rem; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 10; inset: .75rem auto auto .75rem; background: var(--paper); color: var(--pine); padding: .7rem 1rem; border-radius: .5rem; }

.site-header { position: sticky; inset-block-start: 0; z-index: 5; background: rgb(246 245 236 / 95%); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(12px)) {
    .site-header { background: rgb(246 245 236 / 84%); backdrop-filter: blur(16px); }
}
.header-content { min-height: 4.85rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; line-height: 1; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .7rem; background: var(--pine); color: var(--lime); font-size: 1.35rem; }
.brand-name { display: block; font-weight: 700; letter-spacing: .055em; }
.brand-detail { display: block; margin-top: .3rem; font-size: .69rem; font-weight: 500; letter-spacing: 0; }
.desktop-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(.5rem, 2.1vw, 2rem); }
.desktop-nav a, .mobile-menu nav a { text-decoration: none; font-size: .92rem; font-weight: 700; }
.desktop-nav a:hover, .mobile-menu nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .28em; }
.desktop-nav a[aria-current='page'], .mobile-menu nav a[aria-current='page'] { color: #396144; text-decoration: underline; text-underline-offset: .28em; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.cart-nav { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .38rem .75rem; text-decoration: none; border-radius: 100px; border: 1px solid var(--line); background: var(--paper); color: var(--pine); font-size: .9rem; font-weight: 700; }
.cart-count { display: grid; place-items: center; min-width: 1.4rem; min-height: 1.4rem; padding-inline: .3rem; background: var(--sage); border-radius: 100px; font-size: .7rem; }
.mobile-menu { display: none; }
.mobile-menu summary { display: flex; align-items: center; min-height: 2.75rem; padding: .38rem .75rem; list-style: none; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); font-weight: 700; font-size: .9rem; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; inset: 100% 0 auto; display: grid; gap: .25rem; padding: .85rem max(1rem, 3.5vw) 1.15rem; background: var(--paper); border-top: 1px solid var(--line); border-radius: 0 0 1rem 1rem; box-shadow: var(--shadow); }
.mobile-menu nav a { min-height: 2.75rem; display: flex; align-items: center; padding: .35rem .55rem; }
.mobile-menu:not([open]) nav { display: none; }

.button, .inline-link { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 2.85rem; width: fit-content; text-align: center; border-radius: 100px; font-weight: 700; font-size: .92rem; text-decoration: none; line-height: 1.2; transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
.button { padding: .75rem 1.18rem; border: 1px solid transparent; background: var(--pine); color: white; }
.button:hover:not(:disabled) { background: #255440; transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: default; }
.button--light { color: var(--pine-dark); background: var(--lime); }
.button--light:hover:not(:disabled) { color: var(--pine-dark); background: #e7f6b8; }
.button--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button--outline:hover:not(:disabled) { background: var(--sage); }
.dark .button--outline { color: var(--paper); border-color: rgb(255 255 255 / 35%); }
.dark .button--outline:hover:not(:disabled) { background: rgb(255 255 255 / 12%); }
.button--wide { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.button-row.centered { justify-content: center; }
.inline-link { justify-content: flex-start; padding: 0; text-underline-offset: .25em; }
.inline-link:hover { text-decoration: underline; }

.dark { background: var(--pine); color: var(--paper); }
.dark .lead, .dark .muted { color: #deeadc; }
.hero { background: radial-gradient(ellipse at 60% 20%, #25493a, var(--pine-dark) 68%); padding-block: clamp(1.75rem, 4vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.8rem, 5vw, 6rem); align-items: center; }
.hero-copy { padding-block: 1rem; animation: enter .55s ease-out both; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-weight: inherit; color: var(--lime); }
.hero .lead { margin-bottom: 1.55rem; }
.hero-figure { position: relative; min-width: 0; margin: 0; border-radius: clamp(1.25rem, 3vw, 2.5rem); overflow: hidden; background: #2b4c3e; aspect-ratio: 1.12; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-location { position: absolute; inset: auto .85rem .85rem .85rem; width: fit-content; max-width: calc(100% - 1.7rem); padding: .6rem .9rem; background: rgb(16 41 31 / 88%); color: white; border: 1px solid rgb(255 255 255 / 35%); border-radius: 1rem; font-size: .8rem; line-height: 1.35; backdrop-filter: blur(14px); }
.hero-location strong { display: block; font-size: .93rem; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1.2rem; margin-bottom: 1.7rem; }
.section-heading h2, .section-heading .lead { margin-bottom: 0; }
.service-categories { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
.featured-grid { margin-top: 1rem; }
.page-intro { padding-block: clamp(2.5rem, 6vw, 5.75rem); border-bottom: 1px solid var(--line); }
.page-intro h1 { margin-bottom: .2em; }
.page-intro .lead { margin-bottom: 0; }
.shop-intro { background: linear-gradient(115deg, #e1edcc, #f0f2df 55%, var(--cream)); }
.intro-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.intro-links a { color: var(--body); text-underline-offset: .2em; }
.clinic-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.clinic-link { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: clamp(1.2rem, 3vw, 2rem); }
.clinic-link h2 { font-size: clamp(2rem, 4vw, 3rem); }
.callout { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center; padding: clamp(1.4rem, 4vw, 3rem); border-radius: var(--radius); }
.callout h2 { margin-bottom: .2em; }
.callout p { max-width: 36rem; margin-bottom: 0; }

.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tile, .panel, .empty-state { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tile { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.tile-body h3 { margin-bottom: .4em; overflow-wrap: anywhere; }
.tile-body :last-child { margin-bottom: 0; }
.tile-body .inline-link { margin-top: auto; }
.tile.simple { padding: 1.4rem; gap: .3rem; transition: border-color .18s, box-shadow .18s; }
.tile.simple:hover { border-color: #899e88; box-shadow: var(--shadow); }
.tile.simple h3 { margin-bottom: 0; }
.tile.simple p { margin-bottom: .25rem; }
.tile.simple .inline-link { margin-top: auto; }
.tile-media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sage); }
.product-image { object-fit: contain; padding: .85rem; background: #f4f6ee; }
.image-empty { display: grid; place-items: center; color: var(--body); text-align: center; padding: .65rem; font-size: .8rem; }
.tile a.title-link { text-decoration: none; }
.tile a.title-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.tag { display: inline-flex; width: fit-content; padding: .22rem .65rem; border-radius: 100px; background: var(--sage); color: var(--pine); font-size: .76rem; font-weight: 700; line-height: 1.4; }
.tag--amber { background: #fbecd6; color: #70410f; }
.price { font-weight: 700; color: var(--pine-dark); font-variant-numeric: tabular-nums; }
.price-currency { margin-inline-start: .18rem; font-size: .67em; vertical-align: baseline; }
.product-info .price { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .5rem; }
.tile-price { display: flex; flex-wrap: wrap; align-items: baseline; min-height: 2rem; gap: .32rem; margin-bottom: .25rem; }
.panel, .empty-state { padding: clamp(1.1rem, 3.5vw, 2rem); }
.empty-state { text-align: center; padding-block: clamp(2.5rem, 7vw, 5rem); }
.empty-state :last-child { margin-bottom: 0; }
.detail-grid, .order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: start; gap: clamp(1.2rem, 5vw, 4rem); }
.detail-media { display: block; width: 100%; aspect-ratio: 1.15; min-width: 0; border-radius: var(--radius); overflow: hidden; }
.detail-media.image-empty { display: grid; }
.product-info h1 { font-size: clamp(3rem, 6vw, 5.4rem); margin-bottom: .25em; }
.product-info h1, .article-title { overflow-wrap: anywhere; }
.product-info > .tag { margin-bottom: .75rem; }
.buy-panel { margin-top: 1.5rem; padding: .9rem 1rem; }
.buy-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .8rem; }
.buy-form input[type='number'] { width: 6rem; }
.article-media { width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: var(--radius); margin-block: 1.5rem; }
.article-copy { color: var(--body); white-space: pre-line; overflow-wrap: anywhere; }
.article-copy:last-child { margin-bottom: 0; }

.search-bar { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.25fr) auto; align-items: end; gap: .7rem; margin-bottom: 1.5rem; }
.search-bar .button, .search-bar .button-row { min-height: 2.85rem; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: 1.5rem; }
.pager .button { min-width: 6rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.field--full { grid-column: 1 / -1; }
.field-label { display: block; color: var(--ink); font-size: .9rem; font-weight: 700; margin-bottom: .28rem; }
input:not([type='hidden'], [type='radio'], [type='checkbox']), select, textarea { width: 100%; min-height: 2.85rem; border: 1px solid #bac8be; border-radius: .65rem; background: var(--paper); color: var(--ink); padding: .57rem .7rem; }
input[type='number'] { padding-inline: .45rem; }
input[type='radio'], input[type='checkbox'] { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--pine); }
textarea { min-height: 6rem; resize: vertical; }
.field-error { margin: .3rem 0 0; color: var(--red); font-size: .86rem; }
.notice { padding: .85rem 1rem; margin-block: 1rem; border-radius: .75rem; border: 1px solid #d4e1d1; background: #e8f1e5; color: var(--pine); }
.notice--error { border-color: #e8c8c0; background: #fae9e6; color: var(--red); }
.notice ul { margin: .45rem 0 0; padding-inline-start: 1.25rem; }
.payment-options { margin: 0; padding: 0; border: 0; }
.payment-options legend { margin-bottom: .55rem; }
.checkout-option { display: flex; align-items: center; gap: .7rem; min-height: 3.4rem; padding: .55rem .75rem; margin-bottom: .45rem; border: 1px solid var(--line); border-radius: .65rem; cursor: pointer; }
.checkout-option:has(input:checked) { background: var(--sage); border-color: #688366; }
.checkout-option span { line-height: 1.4; }
.checkout-option small { display: block; color: var(--body); }

.order-grid { grid-template-columns: minmax(0, 1fr) minmax(18rem, .58fr); gap: clamp(1.15rem, 3.5vw, 3rem); }
.summary { position: sticky; top: 6rem; }
.summary h2, .panel-heading { font-family: var(--font); font-weight: 700; font-size: 1.14rem; letter-spacing: -.025em; line-height: 1.4; margin-bottom: .75rem; }
.summary-lines { display: grid; gap: .48rem; margin: 0 0 1rem; }
.summary-lines div { display: flex; align-items: baseline; justify-content: space-between; gap: .55rem; }
.summary-lines dd { margin: 0; font-weight: 600; text-align: right; }
.summary-total { border-top: 1px solid var(--line); padding-top: .65rem; margin-top: .15rem; font-size: 1.1rem; font-weight: 700; }
.order-lines { margin: 0 0 1rem; padding: 0; list-style: none; }
.order-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: .5rem; border-bottom: 1px solid var(--line); }
.order-lines li strong { text-align: right; }
.cart-items { padding: 0; margin: 0; list-style: none; }
.cart-save { margin-top: 1.2rem; }
.pending-order { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-bottom: 1.5rem; }
.pending-order p { margin: 0; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 1rem; row-gap: .5rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { padding-bottom: 0; border-bottom: 0; }
.cart-item h3 { margin-bottom: .15rem; overflow-wrap: anywhere; }
.cart-item .price { align-self: start; text-align: right; }
.cart-item-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem; grid-column: 1 / -1; }
.cart-item-actions .field-label { font-size: .79rem; }
.cart-item-actions input[type='number'] { width: 4.1rem; }
.checkout-form { display: grid; gap: 1.1rem; }
.checkout-form .panel-heading { margin-bottom: .2rem; }
.checkout-form .panel { display: grid; gap: .75rem; }
.status-layout { display: grid; gap: 1rem; }
.status-layout .panel { min-width: 0; }
.status-layout h2 { font-size: clamp(2rem, 4vw, 3rem); }
.order-reference { overflow-wrap: anywhere; }
.refresh-payment { margin-top: 1rem; }
.contact-card { display: grid; gap: .95rem; }
.contact-card h2 { margin-bottom: .15em; }
.contact-card address { margin-bottom: .65rem; }

.site-main { min-height: 56vh; }
.site-footer { margin-top: auto; padding-block: 2rem; background: var(--pine-dark); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.4rem; }
.site-footer .brand-mark { background: var(--lime); color: var(--pine-dark); }
.site-footer .brand { margin-bottom: .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-contact strong { display: block; }
.footer-meta { border-top: 1px solid rgb(255 255 255 / 19%); margin-top: 1.25rem; padding-top: .8rem; color: #d2e1d5; font-size: .8rem; }

@media (min-width: 75rem) {
    .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 59rem) {
    .desktop-nav { display: none; }
    .mobile-menu { display: block; }
    .hero-grid { gap: clamp(1.3rem, 3vw, 2.4rem); }
}

@media (max-width: 45rem) {
    html { scroll-padding-top: 4.9rem; }
    .header-content { min-height: 4rem; gap: .5rem; }
    .brand-detail { display: none; }
    .hero-grid, .detail-grid, .order-grid, .footer-grid, .callout, .clinic-links { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { gap: 1rem; }
    .hero-copy { padding-block: .5rem; }
    .hero-figure { aspect-ratio: 1.55; }
    .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .tile.simple { padding: 1rem; }
    .tile-body { padding: .85rem; }
    .tile-body h3 { font-size: 1rem; }
    .search-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .search-bar > :first-child { grid-column: 1 / -1; }
    .summary { position: static; }
    .footer-grid { gap: 1rem; }
}

@media (max-width: 25rem) {
    .brand-mark { width: 1.95rem; height: 1.95rem; }
    .brand { gap: .4rem; }
    .brand-name { font-size: .92rem; }
    .cart-nav, .mobile-menu summary { padding-inline: .6rem; font-size: .83rem; }
    .field-grid, .search-bar, .tile-grid:not(.catalog-grid) { grid-template-columns: minmax(0, 1fr); }
    .pager .button { min-width: auto; padding-inline: .65rem; }
}

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