/* ==========================================================================
   Unicrop Biochem — public site theme
   ========================================================================== */

:root {
    --forest: #0f3d2e;
    --forest-2: #164e3b;
    --forest-3: #1f6b4e;
    --leaf: #3fa66b;
    --leaf-soft: #e9f4e4;
    --lime: #c8e86b;
    --lime-2: #d6f07f;
    --soil: #b8752f;
    --cream: #f7f4ec;
    --paper: #ffffff;
    --ink: #17231d;
    --muted: #5b6b62;
    --line: #e3ddd0;
    --wa: #1faa55;
    --wa-soft: #e7f7ec;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 61, 46, .06), 0 2px 6px rgba(15, 61, 46, .05);
    --shadow: 0 10px 30px -12px rgba(15, 61, 46, .25);
    --shadow-lg: 0 30px 60px -20px rgba(8, 30, 22, .45);

    --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: Fraunces, Georgia, "Times New Roman", serif;

    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
.icon { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-2); }
.btn--lime { background: var(--lime); color: var(--forest); }
.btn--lime:hover { background: var(--lime-2); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--line); background: var(--paper); color: var(--forest); }
.btn--outline:hover { border-color: var(--forest); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #179447; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--forest); }
.link-arrow:hover { gap: 10px; }
.link-arrow .icon { transition: transform .15s; }

.icon-btn {
    position: relative; display: inline-grid; place-items: center;
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--paper); color: var(--forest);
}
.icon-btn:hover { border-color: var(--forest); }
.icon-btn .badge {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--soil); color: #fff; font-size: 11px; font-weight: 700;
    display: grid; place-items: center; border: 2px solid var(--cream);
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__img { max-height: 44px; width: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__text b { font-family: var(--font-serif); font-size: 21px; letter-spacing: -.01em; color: var(--forest); white-space: nowrap; }
.brand__text small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: -3px; white-space: nowrap; }
.brand--light .brand__text b { color: #fff; }
.brand--light .brand__text small { color: #a9c4b6; }

/* ---------- Top bar ---------- */
.topbar { background: var(--forest); color: #d9e8df; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.topbar__msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__links { display: flex; gap: 18px; flex: none; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.topbar__links a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(247, 244, 236, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav__link:hover, .nav__link.is-active { color: var(--forest); background: rgba(15, 61, 46, .06); }
.nav__link.is-active { box-shadow: inset 0 -2px 0 var(--leaf); border-radius: 10px 10px 4px 4px; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.mega {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
    width: min(760px, 90vw); padding: 18px; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega__link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.mega__link:hover { background: var(--leaf-soft); color: var(--forest); }
.mega__icon { width: 32px; height: 32px; border-radius: 9px; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; flex: none; }
.mega__all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding: 11px; border-radius: 10px; background: var(--cream); font-weight: 600; color: var(--forest); font-size: 14px; }
.mega__all:hover { background: var(--leaf-soft); }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 30, 22, .5); animation: fade .2s; }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
    background: var(--cream); display: flex; flex-direction: column; overflow-y: auto;
    animation: slide .22s ease-out; box-shadow: var(--shadow-lg);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer__link { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; font-weight: 600; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.drawer__link::-webkit-details-marker { display: none; }
.drawer__group[open] > summary .icon { transform: rotate(180deg); }
.drawer__sublink { display: block; padding: 10px 20px 10px 34px; font-size: 15px; color: var(--muted); border-bottom: 1px solid rgba(227, 221, 208, .6); }
.drawer__sublink:hover { color: var(--forest); background: var(--leaf-soft); }
.drawer__actions { display: grid; gap: 10px; padding: 20px; margin-top: auto; }
body.drawer-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1100px 520px at 88% -10%, var(--forest-3) 0%, var(--forest) 58%); }
.hero::after {
    content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 232, 107, .16), transparent 65%); pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(200, 232, 107, .4); padding: 6px 12px; border-radius: 999px; }
.hero__title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(36px, 5vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin: 18px 0; }
.hero__lead { font-size: 18px; color: #cfe1d6; max-width: 580px; }
.hero-search {
    display: flex; align-items: center; gap: 10px; margin: 28px 0 22px; max-width: 580px;
    background: #fff; border-radius: 14px; padding: 6px 6px 6px 16px; color: var(--muted); box-shadow: var(--shadow);
}
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--ink); background: transparent; padding: 8px 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions--center { justify-content: center; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 26px 0 0; font-size: 14px; color: #cfe1d6; }
.hero__points li { display: inline-flex; align-items: center; gap: 6px; }
.hero__points .icon { color: var(--lime); }

/* Product card (hero preview; reused in Phase 2 listings) */
.pcard { background: var(--paper); color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pcard--float { max-width: 380px; margin-left: auto; transform: rotate(1.5deg); }
.pcard__media { position: relative; height: 210px; display: grid; place-items: center; background: linear-gradient(135deg, #eef6de, #cfe8c1); }
.pcard__media svg { width: 120px; height: 120px; }
.pcard__tag { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--forest); color: var(--lime); padding: 5px 10px; border-radius: 999px; }
.pcard__body { padding: 18px 20px 20px; }
.pcard__cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); }
.pcard__name { display: block; font-family: var(--font-serif); font-size: 21px; margin: 4px 0 10px; }
.pcard__chips { display: flex; gap: 6px; }
.pcard__chips span { font-size: 12px; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }
.pcard__chips span:first-child { border-color: var(--forest); background: var(--leaf-soft); }
.pcard__price { font-size: 13px; color: var(--muted); margin: 12px 0 14px; }
.pcard__btns { display: flex; gap: 8px; }
.pcard__btns .btn--primary { flex: 1; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--white { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center > div { max-width: 720px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soil); margin-bottom: 8px; }
.section__title { font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.015em; color: var(--forest); }
.prose-lead { font-size: 17px; color: var(--muted); margin: 14px 0 22px; max-width: 620px; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--leaf); box-shadow: var(--shadow); }
.cat-card__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--leaf-soft); color: var(--leaf); margin-bottom: 8px; transition: background .15s, color .15s; }
.cat-card:hover .cat-card__icon { background: var(--forest); color: var(--lime); }
.cat-card__name { font-weight: 700; font-size: 16px; color: var(--forest); padding-right: 24px; }
.cat-card__blurb { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cat-card__go { position: absolute; top: 22px; right: 20px; color: var(--line); transition: color .15s, transform .15s; }
.cat-card:hover .cat-card__go { color: var(--leaf); transform: translateX(3px); }
.cat-grid--compact { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--cream); }
.feature__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--forest); color: var(--lime); margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; color: var(--forest); }
.feature p { font-size: 15px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-serif); font-size: 36px; color: var(--soil); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Split + contact card */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.contact-card { padding: 30px; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line); }
.contact-card h2, .contact-card h3 { font-family: var(--font-serif); font-size: 24px; color: var(--forest); margin-bottom: 8px; }
.contact-card > p { color: var(--muted); margin-bottom: 20px; }
.contact-card__btns { display: grid; gap: 10px; }
.contact-card--form { background: var(--paper); box-shadow: var(--shadow-sm); }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 48px; border-radius: 28px; color: #fff; background: linear-gradient(120deg, var(--forest), var(--forest-3)); }
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.cta-band p { color: #cfe1d6; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--forest); color: #fff; padding: 36px 0 44px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #a9c4b6; margin-bottom: 14px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: var(--lime); }
.page-hero__title { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 46px); letter-spacing: -.015em; }
.page-hero__lead { margin-top: 10px; color: #cfe1d6; max-width: 640px; font-size: 17px; }

.prose { max-width: 780px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); font-size: 16.5px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-serif); font-size: 26px; color: var(--forest); margin-top: 1.6em; }
.prose h3 { font-size: 19px; color: var(--forest); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--leaf); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); }

/* Catalogue */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.catalog__side { position: sticky; top: calc(var(--header-h) + 16px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.catalog__side-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.catalog__side ul { list-style: none; margin: 0; padding: 0; }
.catalog__side a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; }
.catalog__side a:hover { background: var(--leaf-soft); }
.catalog__side a.is-active { background: var(--forest); color: #fff; font-weight: 600; }
.notice { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--radius); background: var(--leaf-soft); border: 1px solid #cfe3c6; color: var(--forest); }
.notice p { color: var(--muted); margin-top: 4px; }
.notice__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.skeleton-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.skeleton-card div { height: 150px; border-radius: 12px; background: linear-gradient(90deg, #eee9dc, #f6f2e8, #eee9dc); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.skeleton-card span { display: block; height: 12px; border-radius: 6px; background: #eee9dc; margin-top: 12px; }
.skeleton-card span + span { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.contact-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { display: flex; gap: 14px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; min-width: 0; }
a.tile:hover { border-color: var(--leaf); }
.tile__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf-soft); color: var(--leaf); }
.tile--wa .tile__icon { background: var(--wa-soft); color: var(--wa); }
.tile small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile strong { display: block; color: var(--forest); overflow-wrap: anywhere; }
.tile em { display: block; font-style: normal; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.tile__addr { font-weight: 500; }
.map { margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Empty / 404 */
.empty-state { text-align: center; max-width: 560px; }
.empty-state__code { font-family: var(--font-serif); font-size: 96px; line-height: 1; color: var(--lime); -webkit-text-stroke: 2px var(--forest); }
.empty-state h1 { font-family: var(--font-serif); font-size: 34px; color: var(--forest); margin: 12px 0; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.footer { background: #0b2f23; color: #b9cdc2; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer__brand p { margin: 16px 0 20px; font-size: 14.5px; line-height: 1.65; max-width: 340px; }
.footer__title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__links, .footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__links a:hover, .footer__contact a:hover { color: var(--lime); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { margin-top: 3px; color: var(--lime); }
.footer__contact a, .footer__contact span { overflow-wrap: anywhere; }
.social { display: flex; gap: 8px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; }
.social a:hover { background: var(--lime); color: var(--forest); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; }

/* Floating WhatsApp */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 25px -6px rgba(31, 170, 85, .6);
    transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    :root { --header-h: 66px; }
    .nav, .header__cta { display: none; }
    .nav-toggle { display: inline-grid; }
    .header__actions { margin-left: auto; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; padding-bottom: 64px; }
    .pcard--float { margin: 0 auto; transform: none; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .split, .contact-grid { grid-template-columns: 1fr; }
    .catalog { grid-template-columns: 1fr; }
    .catalog__side { position: static; }
    .catalog__side ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
    .catalog__side a { white-space: nowrap; border: 1px solid var(--line); }
}
@media (max-width: 720px) {
    .topbar__links { display: none; }
    .section { padding: 56px 0; }
    .section__head { flex-direction: column; align-items: flex-start; }
    .section__head--center { align-items: center; }
    .cat-grid, .cat-grid--compact, .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-card { padding: 16px; }
    .cat-card__blurb { display: none; }
    .cat-card__go { display: none; }
    .cat-card__name { padding-right: 0; font-size: 15px; }
    .contact-tiles { grid-template-columns: 1fr; }
    .cta-band { padding: 32px 24px; }
    .hero__lead { font-size: 16.5px; }
}
@media (max-width: 520px) {
    .wrap { padding: 0 16px; }
    .feature-grid, .steps, .footer__grid { grid-template-columns: 1fr; }
    .hero-search { padding-left: 12px; }
    .hero-search .btn { padding: 11px 14px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .brand__text b { font-size: 18px; }
    .header__actions { gap: 6px; }
    .header__actions .icon-btn[aria-label="Search products"] { display: none; }
    .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Phase 2 — catalogue
   ========================================================================== */
.section--tight { padding: 40px 0 64px; }
.page-hero--compact { padding: 28px 0 34px; }
.crumbs--dark { color: var(--muted); padding: 18px 0 0; margin: 0; }
.crumbs--dark a:hover { color: var(--forest); }
.crumbs--dark [aria-current] { color: var(--forest); font-weight: 600; }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--leaf-soft); color: var(--forest); white-space: nowrap; }
.chip--line { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.btn--icon { padding-left: 11px; padding-right: 11px; }
.cat-card__count { font-size: 12.5px; font-weight: 600; color: var(--leaf); margin-top: 4px; }

/* Product image / placeholder */
.pimg { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pimg--ph { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(135deg, #eef6de, #d4eac7); padding: 14px; text-align: center; }
.pimg__pack { width: 44%; max-width: 110px; height: auto; }
.pimg__icon { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.7); color: var(--leaf); }
.pimg__name { font-family: var(--font-serif); font-weight: 700; font-size: 14px; color: var(--forest); line-height: 1.25; max-width: 90%; }

/* Product card */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-p { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s, transform .15s; }
.card-p:hover { border-color: #cfe3c6; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-p__media { position: relative; display: block; aspect-ratio: 1 / 1; border-bottom: 1px solid var(--line); }
.card-p__badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--soil); color: #fff; padding: 3px 9px; border-radius: 999px; }
.card-p__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-p__cat { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--leaf); }
.card-p__name { font-size: 16px; line-height: 1.3; color: var(--ink); }
.card-p__name a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.card-p__meta { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; }
.card-p__price { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.card-p__actions { display: flex; gap: 8px; margin-top: 6px; }
.card-p__actions .btn--primary { flex: 1; }

/* Listing */
.filters { display: grid; gap: 22px; }
.filters__title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.filters__cats { list-style: none; margin: 0; padding: 0; }
.filters__cats a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; }
.filters__cats a span { color: var(--muted); font-size: 12.5px; }
.filters__cats a:hover { background: var(--leaf-soft); }
.filters__cats a.is-active { background: var(--forest); color: #fff; font-weight: 600; }
.filters__cats a.is-active span { color: var(--lime); }
.filters__check { display: flex; align-items: center; gap: 9px; padding: 5px 2px; font-size: 14px; cursor: pointer; }
.filters__check input { width: 17px; height: 17px; accent-color: var(--forest); }
.filters__check em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); }
.filters__clear { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soil); }
.catalog__bar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog__search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--muted); }
.catalog__search:focus-within { border-color: var(--leaf); }
.catalog__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; padding: 11px 0; color: var(--ink); }
.catalog__count { font-size: 14px; color: var(--muted); }
.catalog__sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.catalog__sort select { font: inherit; font-size: 14px; padding: 9px 30px 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.catalog__about { margin-top: 32px; max-width: none; }
.prose--flat { background: transparent; border: 0; padding: 0; max-width: 820px; }

.paging { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.paging__item { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; }
a.paging__item:hover { border-color: var(--forest); }
.paging__item.is-current { background: var(--forest); color: #fff; border-color: var(--forest); }
.paging__item.is-disabled { opacity: .4; }
.paging__item.is-gap { border: 0; background: none; }

/* Header search */
.search-pop { position: sticky; top: var(--header-h); z-index: 39; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 0; }
.search-pop[hidden] { display: none; }
.search-pop__form { display: flex; align-items: center; gap: 10px; border: 2px solid var(--forest); border-radius: 12px; padding: 4px 4px 4px 14px; color: var(--muted); }
.search-pop__form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 8px 0; background: transparent; color: var(--ink); }
.suggest { list-style: none; margin: 8px 0 0; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); max-height: 60vh; overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; }
.suggest a:hover, .suggest a.is-active { background: var(--leaf-soft); }
.suggest__img { width: 40px; height: 40px; border-radius: 8px; flex: none; overflow: hidden; background: var(--leaf-soft); display: grid; place-items: center; color: var(--leaf); }
.suggest__img img { width: 100%; height: 100%; object-fit: cover; }
.suggest strong { display: block; font-size: 14.5px; }
.suggest small { color: var(--muted); font-size: 12.5px; }
.suggest__all { justify-content: center; font-weight: 600; color: var(--forest); font-size: 14px; }
.suggest__empty { padding: 10px 12px; color: var(--muted); font-size: 14px; }
.drawer__search { display: flex; align-items: center; gap: 8px; margin: 14px 18px 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); }
.drawer__search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; padding: 11px 0; }

/* Product page */
.pdp { padding: 22px 0 40px; }
.pdp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.pdp__stage { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.pdp__stage .pimg__pack { width: 36%; }
.pdp__stage .pimg__name { font-size: 20px; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.pdp__thumb { width: 72px; height: 72px; flex: none; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb.is-active { border-color: var(--forest); }
.pdp__cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.pdp__title { font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.015em; color: var(--forest); margin: 6px 0 10px; }
.pdp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pdp__sku { font-size: 13px; color: var(--muted); }
.pdp__lead { font-size: 16.5px; color: var(--muted); margin-bottom: 20px; }
.pdp__buy { display: grid; gap: 18px; padding: 22px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pdp__price strong { display: block; font-size: 22px; color: var(--forest); }
.pdp__price span { font-size: 13.5px; color: var(--muted); }
.pdp__packs { border: 0; margin: 0; padding: 0; }
.pdp__packs legend, .pdp__qty label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.packs { display: flex; flex-wrap: wrap; gap: 8px; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14.5px; cursor: pointer; background: #fff; }
.pack input:checked + span { border-color: var(--forest); background: var(--leaf-soft); color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.pack input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.pdp__note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pdp__qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pdp__qty label { width: 100%; margin: 0; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty__btn { width: 42px; border: 0; background: var(--cream); font-size: 18px; font-weight: 600; color: var(--forest); }
.qty__btn:hover { background: var(--leaf-soft); }
.qty input { width: 72px; border: 0; text-align: center; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 4px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__moq { font-size: 14px; color: var(--muted); }
.pdp__actions { display: flex; gap: 10px; }
.pdp__actions .btn--primary, .pdp__actions .btn--wa { flex: 1; }
.pdp__trust { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.pdp__trust li { display: flex; align-items: center; gap: 10px; }
.pdp__trust .icon { color: var(--leaf); }

.ptabs { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.ptabs__list { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; padding: 0 12px; }
.ptabs__tab { border: 0; background: none; padding: 16px 16px 14px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.ptabs__tab[aria-selected="true"] { color: var(--forest); border-bottom-color: var(--leaf); }
.ptabs__panel { padding: 26px clamp(20px, 3vw, 34px) 30px; }
.crop-list { display: flex; flex-wrap: wrap; gap: 6px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.docs a:hover { border-color: var(--leaf); }
.docs .icon { color: var(--soil); }
.docs small { display: block; color: var(--muted); font-size: 12.5px; }
.help-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--forest), var(--forest-3)); color: #fff; }
.help-strip h2 { font-family: var(--font-serif); font-size: 24px; margin-bottom: 4px; }
.help-strip p { color: #cfe1d6; }
.help-strip__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-bar { display: none; }

.enquiry-for { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.enquiry-for .pimg { width: 56px; height: 56px; border-radius: 8px; flex: none; overflow: hidden; }
.enquiry-for .pimg--ph { padding: 4px; }
.enquiry-for .pimg__name, .enquiry-for .pimg__icon { display: none; }
.enquiry-for .pimg__pack { width: 70%; }
.enquiry-for small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.enquiry-for strong { color: var(--forest); }

@media (max-width: 1100px) {
    .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .pdp__grid { grid-template-columns: 1fr; gap: 24px; }
    .pdp__gallery { position: static; }
    .pdp__stage { max-width: 520px; margin: 0 auto; }
    .filters__cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
    .filters__cats a { white-space: nowrap; border: 1px solid var(--line); }
    .filters { gap: 14px; }
    .filters__group:has(.filters__check) { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
    .filters__group:has(.filters__check) .filters__title { width: 100%; margin-bottom: 2px; }
}
@media (max-width: 720px) {
    .product-grid, .product-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-p__body { padding: 12px; }
    .card-p__name { font-size: 14.5px; }
    .card-p__actions .btn--primary { font-size: 13px; padding: 8px 10px; }
    .catalog__count { order: 3; width: 100%; }
    .pdp { padding-bottom: 20px; }
    .pdp__buy { padding: 18px; }
    .pdp-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,61,46,.08); }
    .pdp-bar .btn { flex: 1; }
    body:has(.pdp-bar) .wa-float { bottom: 84px; }
    body:has(.pdp-bar) .footer { padding-bottom: 70px; }
    .help-strip { padding: 24px 20px; }
}
@media (max-width: 380px) {
    .card-p__actions .btn--icon { display: none; }
}
/* Grid children must be allowed to shrink below their content width (long filter rows, thumbnails) */
.catalog > *, .pdp__grid > *, .product-grid > * { min-width: 0; }
.filters > *, .pdp__buy > * { min-width: 0; }
.pdp__actions { flex-wrap: wrap; }
.pdp__actions .btn--primary { flex: 1 1 180px; }
.pdp__actions .btn--wa { flex: 1 1 130px; }

/* ==========================================================================
   Phase 3 — enquiry cart & lead forms
   ========================================================================== */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn--lg { padding: 15px 22px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: progress; }

.lead-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.f { display: grid; gap: 5px; min-width: 0; border: 0; margin: 0; padding: 0; }
.f--full { grid-column: 1 / -1; }
.f label, .f legend { font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 0; }
.f label b { color: var(--soil); }
.f label small { font-weight: 400; color: var(--muted); }
.f input, .f select, .f textarea { width: 100%; padding: 11px 13px; border: 1.5px solid #d9d3c4; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(63, 166, 107, .18); }
.f textarea { resize: vertical; }
.f__err { font-size: 13px; color: #b42318; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }
.form-note a { text-decoration: underline; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.seg__opt input { position: absolute; opacity: 0; }
.seg__opt span { display: inline-block; padding: 8px 13px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: #fff; }
.seg__opt input:checked + span { border-color: var(--forest); background: var(--forest); color: #fff; }
.seg__opt input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font-size: 13px; color: var(--muted); }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.contact-card__row { display: flex; gap: 10px; }
.contact-card__row .btn { flex: 1; }
.contact-card__btns--row { display: flex; gap: 10px; margin-top: 12px; }
.lead-form--compact { gap: 10px; }
.pdp__alt { font-size: 14px; font-weight: 600; color: var(--forest); text-align: center; }
.pdp__alt:hover { text-decoration: underline; }

.flash { padding: 12px 16px; border-radius: 12px; background: var(--leaf-soft); color: var(--forest); margin-bottom: 18px; font-weight: 500; }
.flash--err { background: #fdecea; color: #b42318; }

/* Toast */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--forest); color: #fff; box-shadow: var(--shadow-lg); font-size: 14.5px; }
.toast[hidden] { display: none; }
.toast .icon { color: var(--lime); }
.toast.is-in { animation: toast-in .25s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Cart / checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.checkout__items, .checkout__form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.checkout__form { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; }
.checkout__form h2, .checkout__head h2 { font-family: var(--font-serif); font-size: 24px; color: var(--forest); }
.checkout__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 36px; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.line__img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.line__img .pimg--ph { padding: 4px; }
.line__img .pimg__name, .line__img .pimg__icon { display: none; }
.line__img .pimg__pack { width: 60%; }
.line__info { display: grid; gap: 4px; min-width: 0; }
.line__name { font-weight: 700; color: var(--forest); }
.line__name:hover { text-decoration: underline; }
.line__meta { font-size: 13px; color: var(--muted); }
.line__notes { margin-top: 4px; width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13.5px; }
.line__qty { display: grid; gap: 4px; justify-items: center; }
.line__qty label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qty--sm .qty__btn { width: 34px; }
.qty--sm input { width: 56px; padding: 8px 2px; }
.line__remove { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; }
.line__remove:hover { color: #b42318; border-color: #f1c4bf; }
.empty-cart, .thanks { max-width: 560px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 40px 0; }
.empty-cart__icon, .thanks__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-soft); color: var(--leaf); }
.thanks__icon { background: var(--leaf); color: #fff; }
.empty-cart h2, .thanks h1 { font-family: var(--font-serif); font-size: 32px; color: var(--forest); }
.empty-cart p, .thanks__msg { color: var(--muted); }
.thanks__ref { font-size: 17px; }
.thanks__ref strong { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--lime); color: var(--forest); padding: 3px 10px; border-radius: 8px; }

/* Footer newsletter */
.newsletter { margin: 0 0 20px; display: grid; gap: 8px; max-width: 360px; }
.newsletter label { font-size: 13px; font-weight: 600; color: #fff; }
.newsletter__row { display: flex; gap: 6px; }
.newsletter input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 14px; }
.newsletter input::placeholder { color: #8fae9f; }
.newsletter__ok { color: var(--lime); font-size: 13.5px; }
.footer .f__err { color: #ffb4a8; }

@media (max-width: 960px) {
    .checkout { grid-template-columns: 1fr; }
    .checkout__form { position: static; }
}
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .line { grid-template-columns: 60px minmax(0, 1fr) 36px; }
    .line__img { width: 60px; height: 60px; }
    .line__qty { grid-column: 2 / 3; justify-items: start; grid-row: 2; }
    .line__remove { grid-row: 1; grid-column: 3; }
    .checkout__items, .checkout__form { padding: 16px; }
    .toast { bottom: 88px; }
}
.contact-grid > *, .contact-card, .lead-form, .seg { min-width: 0; }
/* Visually hidden radios stay inside their label */
.seg__opt, .pack, .icon-picker__item { position: relative; }
.seg__opt input, .pack input { inset: 0; width: 100%; height: 100%; margin: 0; }
@media (max-width: 720px) {
    .card-p__actions { flex-wrap: wrap; }
    .card-p__actions .btn--primary { flex: 1 1 100%; }
    .card-p__actions form, .card-p__actions .btn--wa { flex: 1 1 0; }
    .card-p__actions form .btn { width: 100%; }
}
@media (max-width: 380px) {
    .card-p__actions .btn--icon { display: inline-flex; }
}
.contact-card__btns--row { flex-wrap: wrap; }
.contact-card__btns--row .btn { flex: 1 1 140px; width: auto; }

/* Phase 4 — cookie notice */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 65; max-width: 420px; display: grid; gap: 12px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; color: var(--ink); }
.consent[hidden] { display: none; }
.consent a { color: var(--leaf); text-decoration: underline; }
.consent__btns { display: flex; justify-content: flex-end; gap: 8px; }
.btn--ghost-dark { border-color: var(--line); color: var(--muted); background: transparent; }
.btn--ghost-dark:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 560px) { .consent { left: 10px; right: 10px; bottom: 10px; max-width: none; } body:has(.pdp-bar) .consent { bottom: 80px; } }

/* Product FAQs */
.faqs { display: grid; gap: 8px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--forest); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--leaf); font-weight: 700; }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 16px 14px; color: var(--muted); }

/* Phase 7 — customer quotation page */
.quote { max-width: 900px; display: grid; gap: 18px; }
.quote__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.quote__title { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 40px); color: var(--forest); }
.qbadge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #eeece5; color: var(--muted); font-weight: 700; font-size: 13px; }
.qbadge--ok { background: var(--leaf-soft); color: #23703f; }
.qbadge--warn { background: #fdf1e3; color: var(--soil); }
.quote__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 8px 18px; }
.table-wrap { overflow-x: auto; }
.qtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.qtable th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); }
.qtable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qtable small { display: block; color: var(--muted); }
.qtable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qtotals { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; max-width: 360px; margin: 14px 12px 0 auto; font-size: 14.5px; }
.qtotals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.qtotals__grand { font-size: 20px; font-weight: 700; color: var(--forest); padding-top: 8px; border-top: 2px solid var(--forest); }
.quote__actions { display: grid; gap: 12px; }
.quote__accept { display: flex; gap: 10px; flex-wrap: wrap; }
.quote__accept input { flex: 1 1 260px; padding: 13px 14px; border: 1.5px solid #d9d3c4; border-radius: 12px; font: inherit; }
.quote__more { display: flex; gap: 10px; flex-wrap: wrap; }
.quote__notes h3 { font-size: 17px; color: var(--forest); }
@media (max-width: 640px) {
    .qtable thead { display: none; }
    .qtable tr { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 4px; border-bottom: 1px solid var(--line); }
    .qtable td { border: 0; padding: 3px 8px; }
    .qtable td:first-child { grid-column: 1 / -1; }
    .qtable td.num { text-align: left; }
    .qtable td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
    .qtotals { margin-right: 8px; }
}
