/* ────────────────────────────────────────────────────────────────────────
   The shop.

   Loaded only on /shop pages, so it can be written plainly without fighting
   custom.min.css for specificity. Every colour comes from the brand tokens
   already defined on :root there; nothing here invents a new one.

   Laid out mobile-first, which on this site is not a preference: every change
   has to read and navigate properly at 375px before it is finished.
   ──────────────────────────────────────────────────────────────────────── */

.shop-body { background: #fff; }

/* ── breadcrumb ──────────────────────────────────────────────────────── */
.shop-crumbs { padding: 18px 0 0; font-size: 14px; }
.shop-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; color: #829796; }
.shop-crumbs li + li::before { content: "/"; margin-right: 6px; color: #B7C8C6; }
/* 28px rather than the 24px minimum: the breadcrumb links measured exactly 24
   on a phone, which passes but leaves nothing for a rounding difference. */
.shop-crumbs a { color: #11605e; display: inline-flex; align-items: center; min-height: 28px; }
.shop-crumbs a:hover { text-decoration: underline; }

/* ── hero ────────────────────────────────────────────────────────────── */
.shop-hero { padding: 26px 0 8px; }
.shop-hero__eyebrow {
    font-family: var(--accent-font); font-size: 12px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: #23a39f; margin: 0 0 8px;
}
.shop-hero h1 { font-size: clamp(30px, 7vw, 48px); line-height: 1.06; margin: 0 0 14px; }
.shop-hero__lede { font-size: 17px; line-height: 1.65; color: #546B69; max-width: 62ch; margin: 0; }
.shop-hero__ship {
    margin: 18px 0 0; font-size: 15px; color: #11605e; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.shop-hero--cat { padding-bottom: 4px; }

/* ── category blocks ─────────────────────────────────────────────────── */
.shop-cat { margin: 46px 0 0; }
.shop-cat__head h2 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 6px; }
.shop-cat__head h2 a { color: inherit; }
.shop-cat__head h2 a:hover { color: #23a39f; }
.shop-cat__head p { margin: 0 0 22px; color: #546B69; max-width: 68ch; }
.shop-cat__more { margin: 18px 0 0; }
.shop-cat__more a { color: #11605e; font-weight: 700; }
.shop-cat__more a:hover { text-decoration: underline; }

/* ── product grid ────────────────────────────────────────────────────── */
.shop-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.shop-card {
    border: 1px solid #DBE6E4; border-radius: 16px; overflow: hidden;
    background: #fff; transition: box-shadow .2s ease, transform .2s ease;
}
.shop-card:hover { box-shadow: 0 14px 30px rgba(17, 42, 43, .10); transform: translateY(-2px); }
.shop-card__link { display: block; color: inherit; }
.shop-card__img { background: #F2F8F7; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__noimg { display: block; width: 44px; height: 44px; border-radius: 50%; background: #DBE6E4; }
.shop-card__body { padding: 16px 16px 18px; }
.shop-card__brand { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #829796; }
.shop-card__name { font-size: 18px; line-height: 1.3; margin: 0 0 6px; color: #14201F; }
.shop-card__desc { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #546B69; }
.shop-card__price { margin: 0; font-family: var(--accent-font); font-size: 18px; color: #11605e; }
.shop-card__price s { color: #829796; font-weight: 400; font-size: 15px; margin-left: 8px; }

/* ── product page ────────────────────────────────────────────────────── */
.shop-product { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 24px 0 0; }
.shop-product__hero { width: 100%; height: auto; border-radius: 18px; background: #F2F8F7; }
.shop-product__hero--none { aspect-ratio: 1 / 1; }
.shop-product__thumbs { display: flex; gap: 10px; margin: 10px 0 0; flex-wrap: wrap; }
.shop-product__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid #DBE6E4; }

.shop-product__brand { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #829796; }
.shop-product__buy h1 { font-size: clamp(26px, 5.5vw, 38px); line-height: 1.12; margin: 0 0 12px; }
.shop-product__lede { font-size: 17px; line-height: 1.6; color: #546B69; margin: 0 0 18px; }
.shop-product__price { font-family: var(--accent-font); font-size: 30px; color: #11605e; margin: 0 0 18px; }
.shop-product__price s { font-size: 19px; color: #829796; font-weight: 400; margin-left: 10px; }
.shop-product__gst { display: block; font-family: var(--default-font); font-size: 13px; color: #829796; font-weight: 400; margin-top: 2px; }
.shop-product__collect { margin: 12px 0 0; font-size: 14px; color: #546B69; line-height: 1.55; }
.shop-product__oos { margin: 0 0 12px; font-weight: 600; color: #A2543F; }
.shop-product__ship { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid #E6EFEE; display: grid; gap: 10px; }
.shop-product__ship li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #546B69; }
.shop-product__ship i { color: #23a39f; width: 18px; text-align: center; }

.shop-product__words { max-width: 68ch; }
.shop-product__body p { font-size: 17px; line-height: 1.7; color: #3C4F4E; }
.shop-product__words h2 { font-size: 22px; margin: 30px 0 12px; }
.shop-product__list { margin: 0; padding-left: 20px; color: #546B69; line-height: 1.7; }
.shop-product__list li { margin-bottom: 6px; }
.shop-product__clin {
    margin: 30px 0 0; padding: 20px 22px; border-radius: 14px;
    background: #F2F8F7; border-left: 4px solid #23a39f;
}
.shop-product__clin h2 { margin: 0 0 10px; font-size: 20px; }
.shop-product__clin p { margin: 0 0 10px; color: #3C4F4E; line-height: 1.65; }
.shop-product__clin p:last-child { margin: 0; }

/* Therapeutic goods notice. Quiet but not hidden — it is required content,
   not a disclaimer to bury. */
.shop-tgnote {
    margin: 30px 0 0; padding: 16px 18px; border: 1px solid #E4DCC8;
    background: #FBF7EC; border-radius: 12px;
}
.shop-tgnote p { margin: 0; font-size: 14px; line-height: 1.6; color: #6A5C3C; }
.shop-tgnote strong { color: #4E4327; }

.shop-related { margin: 56px 0 0; }
.shop-related h2 { font-size: clamp(22px, 4vw, 28px); margin: 0 0 20px; }

.shop-empty { margin: 40px 0 20px; padding: 34px 26px; border: 1px solid #DBE6E4; border-radius: 18px; background: #F8FBFA; }
.shop-empty h2 { margin: 0 0 10px; font-size: 24px; }
.shop-empty p { margin: 0 0 18px; color: #546B69; max-width: 60ch; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.shop-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 13px 26px; border-radius: 99px;
    background: #23a39f; color: #fff; font-family: var(--accent-font);
    font-weight: 700; font-size: 16px; text-align: center;
    transition: background .2s ease;
}
.shop-btn:hover { background: #1a807d; color: #fff; }
.shop-btn:focus-visible { outline: 3px solid #11605e; outline-offset: 2px; }
.shop-btn--big { width: 100%; }
.shop-btn--ghost { background: #fff; color: #11605e; border: 1.5px solid #B7D8D6; }
.shop-btn--ghost:hover { background: #F2F8F7; color: #11605e; }

/* ── the closing prompt ──────────────────────────────────────────────── */
.shop-seebook { margin: 64px 0 0; padding: 0 0 10px; }
.shop-seebook__inner { background: #11605e; color: #fff; border-radius: 22px; padding: 34px 26px; }
.shop-seebook h2 { color: #fff; font-size: clamp(22px, 4.5vw, 30px); margin: 0 0 12px; }
.shop-seebook p { color: #CDE6E4; margin: 0 0 22px; line-height: 1.65; max-width: 62ch; }
.shop-seebook__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.shop-seebook .shop-btn { background: #fff; color: #11605e; }
.shop-seebook .shop-btn:hover { background: #E4F3F2; color: #11605e; }
.shop-seebook .shop-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.shop-seebook .shop-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── wider screens ───────────────────────────────────────────────────── */
@media (min-width: 576px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .shop-btn--big { width: auto; min-width: 260px; }
}

@media (min-width: 992px) {
    .shop-hero { padding: 40px 0 10px; }
    .shop-grid { grid-template-columns: repeat(4, 1fr); }
    .shop-cat { margin-top: 64px; }

    /* Image and buy box side by side, with the clinic's own writing running
       full width underneath rather than squeezed into a column beside a photo. */
    .shop-product {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 48px; row-gap: 44px; margin-top: 36px;
    }
    .shop-product__words { grid-column: 1 / -1; }
    .shop-seebook__inner { padding: 48px 54px; }
}

@media (min-width: 1200px) {
    .shop-product { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
}

/* ────────────────────────────────────────────────────────────────────────
   Basket, checkout, confirmation.
   ──────────────────────────────────────────────────────────────────────── */

.shop-crumbs .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-basket {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
    padding: 6px 16px; border-radius: 99px; border: 1.5px solid #DBE6E4;
    color: #11605e; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.shop-basket:hover { background: #F2F8F7; color: #11605e; }
.shop-basket.is-full { border-color: #23a39f; background: #23a39f; color: #fff; }
.shop-basket.is-full:hover { background: #1a807d; color: #fff; }
.shop-basket span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
    background: rgba(255,255,255,.25); font-size: 13px;
}

.shop-pagetitle { font-size: clamp(28px, 6vw, 40px); margin: 26px 0 18px; }

.shop-note { padding: 13px 16px; border-radius: 12px; font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.shop-note--ok { background: #EDF7F4; border: 1px solid #C5E4DA; color: #1E5C48; }
.shop-note--warn { background: #FBF3EC; border: 1px solid #E8D2BE; color: #7A4A23; }
.shop-note li { margin-left: 18px; }

/* ── basket ──────────────────────────────────────────────────────────── */
.shop-cartline {
    display: grid; grid-template-columns: 74px 1fr; gap: 8px 14px;
    align-items: center; padding: 16px 0; border-bottom: 1px solid #E6EFEE;
}
.shop-cartline__img { grid-row: span 3; align-self: start; }
.shop-cartline__img img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; }
.shop-cartline__what a { display: block; font-weight: 700; color: #14201F; line-height: 1.35; }
.shop-cartline__what a:hover { color: #23a39f; }
.shop-cartline__what span { display: block; font-size: 14px; color: #829796; margin-top: 2px; }
.shop-cartline__qty { display: flex; align-items: center; gap: 10px; }
.shop-cartline__qty label { font-size: 14px; color: #546B69; margin: 0; }
.shop-cartline__qty input {
    width: 74px; min-height: 44px; padding: 8px 10px;
    border: 1.5px solid #DBE6E4; border-radius: 10px; font-size: 16px;
}
.shop-cartline__line { font-family: var(--accent-font); font-weight: 700; color: #11605e; font-size: 17px; }
.shop-cartline__rm a { display: inline-flex; align-items: center; min-height: 28px; font-size: 14px; color: #8A6A5E; text-decoration: underline; }
.shop-cart__actions { margin: 18px 0 0; }

.shop-totals { margin: 26px 0 0; padding: 22px; border: 1px solid #DBE6E4; border-radius: 18px; background: #F8FBFA; }
.shop-totals__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 16px; color: #546B69; }
.shop-totals__row strong { color: #14201F; font-family: var(--accent-font); }
.shop-totals__row--big { border-top: 1px solid #DBE6E4; margin-top: 6px; padding-top: 14px; font-size: 20px; }
.shop-totals__row--big strong { font-size: 24px; color: #11605e; }
.shop-totals__hint { margin: 10px 0 0; font-size: 14px; color: #829796; line-height: 1.55; }
.shop-totals__hint a { color: #11605e; font-weight: 600; text-decoration: underline; }
.shop-totals .shop-btn--big { margin-top: 16px; }

/* ── add to basket ───────────────────────────────────────────────────── */
.shop-add { display: grid; grid-template-columns: auto 92px; gap: 10px 12px; align-items: center; }
.shop-add__qty { margin: 0; font-size: 15px; color: #546B69; }
.shop-add input {
    min-height: 48px; padding: 10px 12px; border: 1.5px solid #DBE6E4;
    border-radius: 10px; font-size: 16px; width: 100%;
}
.shop-add .shop-btn { grid-column: 1 / -1; }

/* ── checkout ────────────────────────────────────────────────────────── */
.shop-checkout { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 0 0 20px; }
.shop-field { border: 1px solid #DBE6E4; border-radius: 16px; padding: 20px; margin: 0 0 18px; }
.shop-field legend { float: none; width: auto; padding: 0 8px; font-family: var(--accent-font); font-weight: 800; font-size: 17px; color: #11605e; }
.shop-field label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 15px; color: #3C4F4E; }
.shop-field input[type="text"], .shop-field input[type="email"], .shop-field input[type="tel"], .shop-field select {
    width: 100%; min-height: 48px; padding: 11px 13px;
    border: 1.5px solid #DBE6E4; border-radius: 10px; font-size: 16px; background: #fff;
}
.shop-field input:focus, .shop-field select:focus { outline: 2px solid #23a39f; outline-offset: 1px; border-color: #23a39f; }
.shop-field small { display: block; margin: 5px 0 0; font-size: 13px; color: #829796; }
.shop-field__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-field__note { margin: 14px 0 0; font-size: 14px; color: #829796; }
.shop-opt { font-weight: 400; color: #829796; }

.shop-radio { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid #DBE6E4; border-radius: 12px; margin: 10px 0 0; cursor: pointer; }
.shop-radio:has(input:checked) { border-color: #23a39f; background: #F2F8F7; }
.shop-radio input { margin-top: 4px; width: 20px; height: 20px; accent-color: #23a39f; flex: none; }
.shop-radio strong { display: block; font-size: 16px; color: #14201F; }
.shop-radio small { display: block; margin-top: 3px; font-size: 14px; color: #546B69; line-height: 1.5; }

.shop-checkout__summary { border: 1px solid #DBE6E4; border-radius: 18px; padding: 22px; background: #F8FBFA; align-self: start; }
.shop-checkout__summary h2 { font-size: 20px; margin: 0 0 14px; }
.shop-sumline { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 15px; color: #546B69; }
.shop-sumline strong { color: #14201F; font-family: var(--accent-font); white-space: nowrap; }
.shop-sumline--sub { border-top: 1px solid #E6EFEE; margin-top: 6px; padding-top: 12px; }
.shop-sumline--total { border-top: 1px solid #DBE6E4; margin-top: 6px; padding-top: 13px; font-size: 19px; }
.shop-sumline--total strong { font-size: 23px; color: #11605e; }
.shop-checkout__summary .shop-btn--big { margin-top: 16px; }

/* ── confirmation ────────────────────────────────────────────────────── */
.shop-confirm { max-width: 640px; margin: 30px auto 0; }
.shop-confirm__tick {
    width: 56px; height: 56px; margin: 0 0 18px; border-radius: 50%;
    background: #23a39f; color: #fff; font-size: 30px; line-height: 56px;
    text-align: center;
}
.shop-confirm h1 { font-size: clamp(28px, 6vw, 38px); margin: 0 0 10px; }
.shop-confirm__ref { font-size: 17px; color: #546B69; margin: 0 0 20px; }
.shop-confirm__ref strong { font-family: var(--accent-font); color: #11605e; letter-spacing: .02em; }
.shop-confirm__lede { font-size: 17px; line-height: 1.65; color: #3C4F4E; }
.shop-confirm__next { padding: 20px 22px; border-radius: 14px; background: #F2F8F7; border-left: 4px solid #23a39f; margin: 0 0 26px; }
.shop-confirm__next h2 { font-size: 19px; margin: 0 0 10px; }
.shop-confirm__next p { margin: 0 0 10px; color: #3C4F4E; line-height: 1.65; }
.shop-confirm__next p:last-child { margin: 0; }
.shop-confirm__next a { color: #11605e; font-weight: 700; text-decoration: underline; }
.shop-confirm__order { border: 1px solid #DBE6E4; border-radius: 18px; padding: 22px; }
.shop-confirm__order h2 { font-size: 19px; margin: 0 0 12px; }
.shop-confirm__order h2 + p, .shop-confirm__addr { margin: 0; }
.shop-confirm__addr { color: #546B69; line-height: 1.7; }
.shop-confirm__order h2:not(:first-child) { margin-top: 24px; }
.shop-confirm__back { margin: 24px 0 0; }
.shop-confirm__back a { color: #11605e; font-weight: 700; text-decoration: underline; }

@media (min-width: 576px) {
    .shop-cartline { grid-template-columns: 90px 1fr auto auto; align-items: center; }
    .shop-cartline__img { grid-row: auto; }
    .shop-cartline__img img { width: 90px; height: 90px; }
    .shop-cartline__rm { grid-column: 2 / -1; }
    .shop-add { grid-template-columns: auto 100px 1fr; }
    .shop-add .shop-btn { grid-column: auto; width: 100%; min-width: 0; }
}

@media (min-width: 992px) {
    .shop-checkout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
    .shop-cartline { grid-template-columns: 90px 1fr 200px 120px 90px; }
    .shop-cartline__rm { grid-column: auto; text-align: right; }
    .shop-cartline__line { text-align: right; }
    .shop-totals { max-width: 460px; margin-left: auto; }
}

/* The last few under-24px targets on a phone: the inline links at the foot of
   the basket and checkout, the product name inside a basket line, and the
   delivery radios. The links are 19-22px because that is the line height of the
   text they sit in; inline-flex with a floor grows the box without moving the
   text. The radios sit inside a full-width label that is already easy to hit,
   but the control itself should clear the minimum on its own. */
.shop-totals__hint a,
.shop-cartline__what a,
.shop-product__collect a,
.shop-confirm__back a { display: inline-flex; align-items: center; min-height: 24px; }
.shop-radio input { width: 24px; height: 24px; }
