/* ===========================================================================
   Foldfern Home

   Design language, adapted from the client's supplied reference:
     - content sits inside inset, heavily rounded "shells" against a flat page
     - media shells carry a scrim so text stays readable over photography
     - glass pills and cards float over the media
     - one architectural cut-out corner, built with two inverted corner fills
     - a hairline-divided stat band
     - a bento feature grid with oversized low opacity icon watermarks

   SHAPE RULE (one system, applied everywhere):
     shells   1.5rem mobile / 3rem desktop
     cards    1.25rem mobile / 1.75rem desktop
     inputs   0.75rem
     buttons  full pill
     Nothing else invents its own radius.

   COLOUR RULE:
     Client palette. Plum is the only accent, used for actions and accents.
     Verified contrast:
       charcoal on warm white 14.00:1   white on plum        7.62:1
       charcoal on oat        12.08:1   white on deep plum  10.52:1
       plum on warm white      7.19:1   plum on oat          6.20:1
     Pale stone is 1.43:1 on warm white, so it is decorative only. Control
     edges use --control-border (plum), which clears the 3:1 requirement.

   MEDIA RULE:
     Two scrim intensities, one device. The hero keeps charcoal text over a
     warm light scrim. CTA bands put white text over a charcoal scrim strong
     enough to survive a near white photograph.
   ======================================================================== */

/* --------------------------------------------------------------- fonts --- */

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans.woff2") format("woff2");
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------------------- tokens --- */

:root {
    /* Palette */
    --warm-white: #FAF8F5;
    --oat:        #EDE7DF;
    --charcoal:   #28272B;
    --plum:       #654C60;
    --deep-plum:  #4D3949;
    --stone:      #D8D1C9;
    --white:      #FFFFFF;

    /* Semantic roles. Rules use these, not the raw palette. */
    --bg:             var(--warm-white);
    --surface:        var(--oat);
    --card:           var(--white);
    --field:          var(--white);
    --text:           var(--charcoal);
    --muted:          #5A5860;
    --accent:         var(--plum);
    --accent-hover:   var(--deep-plum);
    --border:         var(--stone);
    --control-border: var(--plum);
    --on-accent:      var(--white);

    --scrim-dark: rgba(40, 39, 43, 0.66);
    --tint:        rgba(101, 76, 96, 0.03);
    --tint-border: rgba(101, 76, 96, 0.09);

    /* Spacing, 4px based */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4.5rem;
    --space-8: 6rem;

    /* Shape */
    --r-shell: 1.5rem;
    --r-card:  1.25rem;
    --r-input: 0.75rem;
    --r-pill:  999px;

    --gutter: 1rem;      /* one rail: .wrap and .shell-frame share this */
    --wrap:   1536px;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 180ms;
    --t-base: 280ms;

    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (min-width: 768px) {
    :root {
        --r-shell: 3rem;
        --r-card:  1.75rem;
        --gutter:  1.5rem;
    }
}

/* ---------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-3);
    text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.6rem + 3.1vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p, ul, ol, dl { margin: 0 0 var(--space-3); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 2px; border-radius: 2px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.narrow { max-width: 68ch; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { margin-top: var(--space-6); }
.prose h3 { margin-top: var(--space-5); }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    background: var(--accent);
    color: var(--on-accent);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--r-pill);
    z-index: 100;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

.icon { flex: none; }

/* ------------------------------------------------------------- buttons --- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 46px;
    padding: 0 var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--t-base) var(--ease),
                color var(--t-base) var(--ease),
                border-color var(--t-base) var(--ease),
                transform var(--t-fast) var(--ease);
}
.button:active { transform: scale(0.985); }

.button--primary { background: var(--accent); color: var(--on-accent); }
.button--primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.button--secondary { background: transparent; border-color: var(--control-border); color: var(--accent); }
.button--secondary:hover { background: var(--surface); color: var(--accent-hover); }

.button--quiet {
    background: none; border: 0; min-height: 44px; padding-inline: 0;
    color: var(--accent); text-decoration: underline;
}
.button--quiet:hover { color: var(--accent-hover); }

.button--large { min-height: 54px; padding-inline: var(--space-5); font-size: 1rem; }

/* The reference's pill holding a smaller inner pill with the arrow. */
.button__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    margin-right: -0.5rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.2);
    transition: transform var(--t-base) var(--ease);
}
.button:hover .button__chip { transform: translate(2px, -2px); }
.button--secondary .button__chip,
.button--onlight .button__chip { background: rgba(101, 76, 96, 0.12); }

.link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-height: 44px;
    font-weight: 500;
    font-size: 0.95rem;
}
.link .icon { transition: transform var(--t-base) var(--ease); }
.link:hover .icon { transform: translate(2px, -2px); }

/* -------------------------------------------------------------- shells --- */

.shell-frame {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding: 0 var(--gutter);
}

.shell {
    position: relative;
    width: 100%;
    border-radius: var(--r-shell);
    overflow: hidden;
    isolation: isolate;
    background: var(--surface);
}

.shell__media {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}

.shell__scrim { position: absolute; inset: 0; z-index: -1; }
/* Hero scrim, tuned against the actual supplied photographs rather than
   guessed. Charcoal text needs 4.5:1 over the darkest 2% of the area it
   covers. On a phone the text spans the container, so the scrim stays strong
   right across it. From 768px the text is left aligned, so the scrim falls
   away on the right and lets more of the photograph show.
     phone   worst measured 8.06:1
     desktop worst measured 7.57:1  (was 4.09:1 on hero-shop with a flat 0.50) */
.shell--light .shell__scrim {
    background: linear-gradient(90deg,
        rgba(250, 248, 245, 0.84) 0%,
        rgba(250, 248, 245, 0.76) 70%,
        rgba(250, 248, 245, 0.66) 100%);
}

@media (min-width: 768px) {
    .shell--light .shell__scrim {
        background: linear-gradient(90deg,
            rgba(250, 248, 245, 0.82) 0%,
            rgba(250, 248, 245, 0.74) 45%,
            rgba(250, 248, 245, 0.45) 62%,
            rgba(250, 248, 245, 0.22) 100%);
    }
}
.shell--dark .shell__scrim { background: var(--scrim-dark); }
.shell--dark { color: var(--white); }
.shell--dark h1, .shell--dark h2 { color: var(--white); }

/* --------------------------------------------------------------- glass --- */

.glass {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
                0 10px 30px rgba(40, 39, 43, 0.08);
}
.glass--strong {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

@media (prefers-reduced-transparency: reduce) {
    .glass, .glass--strong {
        background: var(--warm-white);
        backdrop-filter: none; -webkit-backdrop-filter: none;
    }
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.42rem 0.95rem 0.42rem 0.75rem;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}
.badge-pill .icon { color: var(--accent); }

/* ----------------------------------------------------------- hero shell --- */

.hero-shell {
    display: flex;
    flex-direction: column;
    min-height: clamp(30rem, 72dvh, 44rem);
    padding: var(--space-5) var(--space-4) 0;
}
.hero-shell__body { max-width: 46rem; margin-bottom: auto; }
.hero-shell h1 { margin-top: var(--space-4); }

.hero__intro {
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    max-width: 46ch;
    color: var(--text);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-5);
}

.hero-shell__floor {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    margin-top: var(--space-5);
}
.floating-card {
    border-radius: var(--r-card);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
    width: fit-content;
    max-width: 100%;
}
.floating-card__stat { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; margin: 0; }
.floating-card__label { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Architectural cut-out. Two inverted corner fills make the inner curve
   read as one continuous shape, as in the reference. */
.cutout {
    position: absolute;
    right: 0; bottom: 0;
    background: var(--bg);
    border-top-left-radius: 3.5rem;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--text);
    z-index: 2;
}
.cutout__corner { position: absolute; color: var(--bg); }
.cutout__corner--top  { top: -3.5rem; right: 0; }
.cutout__corner--left { bottom: 0; left: -3.5rem; }
.cutout__ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    color: var(--accent);
    transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.cutout:hover .cutout__ring { background: var(--surface); transform: translate(2px, -2px); }
.cutout__text { font-size: 0.85rem; line-height: 1.35; }
.cutout__text strong { display: block; font-weight: 500; }
.cutout__text span { color: var(--muted); }

@media (max-width: 767px) { .cutout { display: none; } }

/* --------------------------------------------------------------- header --- */

.top-strip {
    background: var(--surface);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.top-strip a { color: var(--accent); display: inline-flex; align-items: center; min-height: 28px; }
.top-strip a:hover { color: var(--accent-hover); }
.top-strip__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding-block: var(--space-2);
}
.top-strip p { margin: 0; }
.top-strip__contact { display: flex; gap: var(--space-4); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg);
    transition: box-shadow var(--t-base) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--border), 0 10px 30px rgba(40, 39, 43, 0.05); }
.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-height: 72px;
    padding-block: var(--space-2);
}

.wordmark {
    min-height: 44px;
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    margin-right: auto;
    display: inline-flex;
    align-items: center;
}
.wordmark:hover { color: var(--accent); }
.wordmark--footer { margin: 0 0 var(--space-2); font-size: 1.5rem; }
.wordmark__logo { height: 42px; width: auto; }

.main-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    min-height: 44px;
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
    position: relative;
}
.main-nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 11px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease);
}
.main-nav__link:hover { color: var(--accent); }
.main-nav__link:hover::after, .main-nav__link.is-current::after { transform: scaleX(1); }
.main-nav__link.is-current { color: var(--accent); font-weight: 500; }

.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; min-height: 44px;
    border-radius: var(--r-pill);
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: background var(--t-base) var(--ease);
}
.icon-link:hover { background: var(--surface); color: var(--accent); }
.cart-count {
    position: absolute;
    top: 3px; right: 1px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--on-accent);
    font-size: 0.7rem;
    line-height: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    background: none;
    border: 1px solid var(--control-border);
    border-radius: var(--r-pill);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.mobile-menu {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--space-4) var(--space-5);
}
.mobile-menu__list { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.mobile-menu__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.mobile-menu__list a[aria-current="page"] { color: var(--accent); font-weight: 500; }
.mobile-menu__contact { margin-top: var(--space-4); }
.mobile-menu__contact h2 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.mobile-menu__contact ul { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.mobile-menu__contact li a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.mobile-menu__contact > p { font-size: 0.9rem; color: var(--muted); }

/* ------------------------------------------------------------- sections --- */

section { padding-block: var(--space-7); }
.hero--home { padding-block: 0; }
.hero--page { padding-block: var(--space-7) var(--space-5); }
.hero--page .hero__intro { margin-top: var(--space-3); color: var(--muted); }

.section-head { max-width: 42ch; margin-bottom: var(--space-6); }
.section-intro { color: var(--muted); max-width: 56ch; }
.section-more { margin-top: var(--space-5); }

.section-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}
.section-bar .section-head { margin-bottom: 0; }

/* -------------------------------------------- stat band (the trust strip) --- */

.trust-strip { padding-block: var(--space-5); }
.trust-strip__inner {
    background: var(--tint);
    border: 1px solid var(--tint-border);
    border-radius: var(--r-shell);
    padding: var(--space-5) var(--space-4);
    display: grid;
    grid-template-columns: 1fr;
}
.trust-strip__item { padding: var(--space-4) 0; border-top: 1px solid var(--tint-border); }
.trust-strip__item:first-child { border-top: 0; padding-top: 0; }
.trust-strip__value {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem);
    line-height: 1;
    margin: 0 0 var(--space-2);
    font-variant-numeric: tabular-nums;
}
.trust-strip__label { font-size: 0.95rem; color: var(--muted); margin: 0 0 var(--space-1); }
.trust-strip__item .link { font-size: 0.9rem; }

/* ----------------------------------------------------------------- grids --- */

/* These reset margin and padding, so they must never share an element with
   .wrap: the reset beats .wrap's margin-inline auto and the section ends up
   uncentred and full bleed. Always nest them inside a .wrap instead. */
.category-grid, .product-grid, .contact-blocks__grid, .account-shortcuts {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-card {
    position: relative;
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.category-card:hover { box-shadow: 0 8px 30px rgba(40, 39, 43, 0.06); transform: translateY(-2px); }
.category-card__media { overflow: hidden; background: var(--surface); }
.category-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 600ms var(--ease);
}
.category-card:hover .category-card__media img { transform: scale(1.04); }
.category-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.category-card__body h3 { margin: 0; }
.category-card__body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.category-card__count { font-size: 0.85rem; color: var(--muted); }
.category-card .link { margin-top: auto; }
.category-card__link { text-decoration: none; color: inherit; }
.category-card__link::after { content: ""; position: absolute; inset: 0; }

/* ------------------------------------------------------------ CTA shells --- */

.cta-band { padding-block: var(--space-5); }
.cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-3);
    min-height: clamp(19rem, 44dvh, 28rem);
    padding: var(--space-6) var(--space-4);
    max-width: 46rem;
}
.cta-band__heading { color: var(--white); margin: 0; }
.cta-band__text { color: rgba(255, 255, 255, 0.94); max-width: 46ch; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }

.button--onlight { background: var(--white); color: var(--charcoal); }
.button--onlight:hover { background: var(--oat); color: var(--charcoal); }
.button--onglass {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
}
.button--onglass:hover { background: rgba(255, 255, 255, 0.28); color: var(--white); }

/* --------------------------------------------------------- about / bento --- */

.about-intro__inner, .about-story__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    align-items: center;
}
.about-intro__inner img, .about-story__inner img {
    width: 100%;
    border-radius: var(--r-card);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.about-story__inner img { aspect-ratio: 4 / 5; }
.about-intro__inner p { color: var(--muted); }

.why-us__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}
.bento-cell {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-height: 15rem;
    transition: box-shadow var(--t-base) var(--ease);
}
.bento-cell:hover { box-shadow: 0 8px 30px rgba(40, 39, 43, 0.05); }
.bento-cell h3 { margin: 0; max-width: 20ch; position: relative; }
.bento-cell p { margin: 0; color: var(--muted); max-width: 46ch; position: relative; }
.bento-cell__foot { margin-top: auto; position: relative; }
.bento-cell__mark {
    position: absolute;
    right: -2.5rem; bottom: -3.5rem;
    color: var(--charcoal);
    opacity: 0.045;
    pointer-events: none;
    transition: transform 700ms var(--ease);
}
.bento-cell:hover .bento-cell__mark { transform: scale(1.1); }
.bento-cell--tall .bento-cell__mark { right: -4rem; bottom: -4rem; }

/* --------------------------------------------------------- product cards --- */

.product-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.product-card:hover { box-shadow: 0 8px 30px rgba(40, 39, 43, 0.06); transform: translateY(-2px); }
.product-card__link { text-decoration: none; color: inherit; display: block; }
.product-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card__media { overflow: hidden; background: var(--surface); }
.product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 600ms var(--ease);
}
.product-card:hover .product-card__image { transform: scale(1.04); }
.product-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); flex: 1; }
.product-card__category { font-size: 0.8rem; color: var(--muted); margin: 0; }
.product-card__name { margin: var(--space-1) 0 0; font-size: 1.3rem; }
.product-card__line { font-size: 0.9rem; color: var(--muted); margin: var(--space-1) 0 0; }
.product-card__price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
    margin: var(--space-2) 0 0;
}
.product-card__colours { font-size: 0.85rem; color: var(--muted); margin: 0; }
.product-card__foot {
    margin-top: auto;
    padding-top: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.product-card .button--secondary { position: relative; z-index: 2; }

.stock { font-size: 0.85rem; margin: 0; }
/* Stock state is carried by the words, never by colour alone. */
.stock--out { font-weight: 500; }
.stock--partial, .stock--in { color: var(--muted); }

/* ---------------------------------------------------------- product page --- */

.breadcrumb { padding-block: var(--space-4) 0; }
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0 auto;
    padding: 0 var(--space-4);
    max-width: var(--wrap);
    font-size: 0.85rem;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: "/"; color: var(--border); }

.product__layout, .product__detail { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.product__gallery { align-self: start; }
.product__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--r-card);
    background: var(--surface);
}
.product__thumbs { display: flex; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.product__thumb {
    width: 84px;
    padding: 0;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r-input);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.product__thumb img { aspect-ratio: 1 / 1; object-fit: cover; }
.product__thumb[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.product__category { font-size: 0.85rem; color: var(--muted); margin: 0; }
.product__buy h1 { margin: var(--space-2) 0 var(--space-3); }
.product__price { font-family: var(--font-display); font-size: 2rem; font-variant-numeric: tabular-nums; margin: 0; }
.product__price-note { font-size: 0.85rem; color: var(--muted); margin: var(--space-1) 0 var(--space-4); }
.product__short { font-size: 1.05rem; color: var(--muted); }
.product__sku { font-size: 0.85rem; color: var(--muted); }

.product__colours { border: 0; padding: 0; margin: var(--space-4) 0 var(--space-3); }
.product__colours legend { font-weight: 500; padding: 0; margin-bottom: var(--space-2); }
.colour-option {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 46px;
    padding: 0 var(--space-3);
    margin: 0 var(--space-2) var(--space-2) 0;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.colour-option input { accent-color: var(--accent); }
.colour-option:hover { border-color: var(--control-border); }
.colour-option:has(input:checked) { border-color: var(--accent); background: var(--surface); }
.colour-option.is-unavailable { opacity: 0.6; cursor: not-allowed; }
.colour-option__note { font-size: 0.78rem; color: var(--muted); }

.product__form .button--large { width: 100%; }

.product__delivery { margin-top: var(--space-5); border-top: 1px solid var(--border); padding-top: var(--space-4); }
.product__delivery h2 { font-size: 1.25rem; }
.product__delivery p { font-size: 0.95rem; color: var(--muted); }
.product__delivery .link + .link { margin-left: var(--space-4); }

.product__specs, .product__care {
    background: var(--tint);
    border: 1px solid var(--tint-border);
    border-radius: var(--r-card);
    padding: var(--space-5);
}
.product__specs h2, .product__care h2 { font-size: 1.5rem; }
.spec-row { display: grid; grid-template-columns: 1fr; gap: var(--space-1); padding-block: var(--space-3); border-bottom: 1px solid var(--tint-border); }
.spec-row:last-of-type { border-bottom: 0; }
.spec-row dt { font-weight: 500; font-size: 0.9rem; }
.spec-row dd { margin: 0; color: var(--muted); }
.product__packed { font-size: 0.85rem; color: var(--muted); margin-top: var(--space-3); }
.product__care ul { margin: 0; padding-left: 1.15rem; }
.product__care li { margin-bottom: var(--space-2); color: var(--muted); }

/* ------------------------------------------------------------------ shop --- */

.shop__layout { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: start; }

.shop-filters {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: var(--space-4);
}
.shop-filters__title { font-size: 1.2rem; margin-bottom: var(--space-3); }
.shop-filters .field { margin-bottom: var(--space-4); }
.shop-filters fieldset { margin-bottom: var(--space-4); }
.shop-filters fieldset label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 40px;
    font-weight: 400;
    margin-bottom: 0;
}
.shop-filters fieldset input { width: auto; min-height: 0; accent-color: var(--accent); }
.shop-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: var(--space-4);
}
.shop-filters__toggle {
    display: none;
    align-items: center;
    gap: var(--space-2);
    min-height: 46px;
    padding-inline: var(--space-4);
    background: none;
    border: 1px solid var(--control-border);
    border-radius: var(--r-pill);
    color: var(--text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: var(--space-3);
}
.shop-results__count { font-size: 0.9rem; color: var(--muted); margin-bottom: var(--space-4); }

/* ----------------------------------------------------------------- forms --- */

.field { margin-bottom: var(--space-4); }
.field label, .field legend { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: var(--space-2); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem var(--space-3);
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--field);
    border: 1px solid var(--control-border);
    border-radius: var(--r-input);
    transition: box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(101, 76, 96, 0.16); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field__help { font-size: 0.85rem; color: var(--muted); margin: var(--space-2) 0 0; }
.field__help--block { margin-bottom: var(--space-3); }
.field__check { display: flex; align-items: center; gap: var(--space-2); font-weight: 400; }
.field__check input { width: auto; min-height: 0; accent-color: var(--accent); }
.field--quantity input { max-width: 8rem; }
.required { font-weight: 400; font-size: 0.85rem; color: var(--muted); }

fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); }
fieldset legend h2 { margin: 0 0 var(--space-3); }

.field-row { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }

.password-toggle {
    background: none; border: 0;
    padding: var(--space-2) 0 0;
    min-height: 40px;
    font: inherit; font-size: 0.85rem;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.form__note { font-size: 0.85rem; color: var(--muted); }

.alert { padding: var(--space-4); border-radius: var(--r-card); margin-top: var(--space-4); }
.alert h3 { margin-top: 0; }
/* The palette carries no status colours, so success and failure are told
   apart by wording, heading weight and bar thickness. */
.alert--success { background: var(--surface); border-left: 4px solid var(--accent); }
.alert--error { background: var(--surface); border-left: 6px solid var(--charcoal); }
.alert--error h3 { font-weight: 700; }

.notice { background: var(--surface); padding: var(--space-4); border-radius: var(--r-card); margin-bottom: var(--space-5); }
.notice h2 { font-size: 1.2rem; }
.notice p { margin: 0; }

.empty-state {
    background: var(--tint);
    border: 1px solid var(--tint-border);
    border-radius: var(--r-card);
    padding: var(--space-7) var(--space-4);
    text-align: center;
}
.empty-state p { color: var(--muted); max-width: 44ch; margin-inline: auto; }

/* ---------------------------------------------------------------- tables --- */

.cart-table, .orders-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td, .orders-table th, .orders-table td {
    text-align: left;
    padding: var(--space-4) var(--space-2);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.cart-table thead th, .orders-table thead th {
    font-size: 0.8rem; font-weight: 500; color: var(--muted); padding-block: var(--space-2);
}
.cart-table__product { display: flex; gap: var(--space-3); font-weight: 400; }
.cart-table__product img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-input); }
.cart-table__product a { font-weight: 500; text-decoration: none; }
.cart-table__meta { display: block; font-size: 0.85rem; color: var(--muted); }
.cart-table input[type="number"] { max-width: 5.5rem; }
.cart-table td, .orders-table td { font-variant-numeric: tabular-nums; }

.cart__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-block: var(--space-4); }
.coupon { border-top: 1px solid var(--border); padding-top: var(--space-5); margin-top: var(--space-4); }
.coupon h2 { font-size: 1.3rem; }

/* ---------------------------------------------------------------- panels --- */

.cart__layout, .checkout__layout, .order-detail__layout, .account__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.cart__summary, .checkout__summary, .order-detail__side {
    background: var(--tint);
    border: 1px solid var(--tint-border);
    border-radius: var(--r-card);
    padding: var(--space-5);
    align-self: start;
}
.cart__summary h2, .checkout__summary h2, .order-detail__side h2 { font-size: 1.5rem; }
.cart__summary-note { font-size: 0.85rem; color: var(--muted); margin-top: var(--space-3); }

.totals { margin: 0 0 var(--space-4); }
.totals__row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--tint-border);
}
.totals__row dt { margin: 0; }
.totals__row dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__row--total { border-bottom: 0; font-weight: 500; }
.totals__row--total dd { font-family: var(--font-display); font-size: 1.5rem; }
.totals__note { font-size: 0.9rem; color: var(--muted); }
.totals__vat { font-size: 0.78rem; color: var(--muted); }

.summary-lines { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.summary-lines li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--tint-border);
}
.summary-lines__meta { display: block; font-size: 0.85rem; color: var(--muted); }
.summary-lines__price { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --------------------------------------------------------- checkout steps --- */

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-4);
    list-style: none;
    padding: 0;
    margin-top: var(--space-4);
    font-size: 0.9rem;
    color: var(--muted);
}
.steps__item { display: flex; align-items: center; gap: var(--space-2); }
.steps__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem; height: 1.85rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--control-border);
    font-size: 0.85rem;
}
.steps__item.is-current { font-weight: 500; color: var(--text); }
.steps__item.is-current .steps__number { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.steps__item.is-done .steps__number { background: var(--border); color: var(--text); border-color: var(--border); }

.checkout__section { border-top: 1px solid var(--border); padding-top: var(--space-5); }
.checkout__terms { font-size: 0.9rem; color: var(--muted); }
.delivery-option, .payment-option { background: var(--surface); padding: var(--space-4); border-radius: var(--r-card); }
.delivery-option__name, .payment-option__name {
    font-weight: 500; display: flex; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2);
}
.delivery-option p, .payment-option p { font-size: 0.95rem; color: var(--muted); }
.delivery-option p:last-child, .payment-option p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------- order / account --- */

.order-status { padding-block: var(--space-6); }
.order-status__inner {
    background: var(--tint);
    border: 1px solid var(--tint-border);
    border-radius: var(--r-shell);
    padding: var(--space-6) var(--space-5);
}
.order-status__lead { font-size: 1.1rem; max-width: 60ch; color: var(--muted); }
.order-status__lead strong { color: var(--text); }
.next-steps { padding-left: 1.2rem; }
.next-steps li { margin-bottom: var(--space-3); max-width: 58ch; color: var(--muted); }
.order-detail__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.order-detail__main h2 { margin-top: var(--space-5); }
.order-detail__main h2:first-child { margin-top: 0; }

.detail-list { margin: 0 0 var(--space-4); }
.detail-list div {
    display: flex; justify-content: space-between; gap: var(--space-3);
    padding-block: var(--space-3); border-bottom: 1px solid var(--tint-border);
}
.detail-list dt { font-weight: 500; font-size: 0.9rem; }
.detail-list dd { margin: 0; text-align: right; color: var(--muted); }
.address { font-style: normal; color: var(--muted); }

.account__intro { max-width: 60ch; color: var(--muted); }
.account__auth-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--space-5); }
.card h2 { font-size: 1.6rem; }
.card p { color: var(--muted); }

.account-menu { align-self: start; }
.account-menu ul { list-style: none; padding: 0; margin: 0; }
.account-menu a {
    display: block;
    min-height: 46px;
    line-height: 46px;
    padding-left: var(--space-3);
    border-left: 2px solid var(--border);
    text-decoration: none;
    color: var(--text);
}
.account-menu a:hover { color: var(--accent); border-left-color: var(--accent); }
.account-menu a[aria-current="page"] { font-weight: 500; color: var(--accent); border-left-color: var(--accent); }
.account-menu__logout { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.account-shortcuts .card h3 { margin-bottom: var(--space-2); }
.account-shortcuts .card p { font-size: 0.95rem; }

/* --------------------------------------------------------------- contact --- */

.contact-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.contact-block__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--accent);
    margin-bottom: var(--space-2);
}
.contact-block h2 { font-size: 1.35rem; margin: 0; }
.contact-block p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.contact-block p a { font-size: 1.05rem; font-weight: 500; }

/* ------------------------------------------------------------------ FAQs --- */

.faqs__group {
    margin-top: var(--space-6);
    font-size: 1rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.faq-list { border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--border); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    cursor: pointer;
    padding-block: var(--space-4);
    font-weight: 500;
    font-size: 1.05rem;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    flex: none;
    width: 11px; height: 11px;
    border-right: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform var(--t-base) var(--ease);
}
.faq[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent); }
.faq__answer { padding-bottom: var(--space-4); }
.faq__answer p { max-width: 68ch; color: var(--muted); margin: 0; }

/* -------------------------------------------------------------- policies --- */

.policy .prose h2 { font-size: 1.7rem; }
.policy .prose h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 500; }
.policy .prose p, .policy .prose li { color: var(--muted); }
.policy .prose strong { color: var(--text); }

/* ---------------------------------------------------------------- footer --- */

.site-footer {
    background: var(--surface);
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-block: var(--space-7) var(--space-4);
    margin-top: var(--space-6);
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__groups { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.site-footer__brand p { color: var(--muted); max-width: 34ch; }
.site-footer h2 {
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    margin-bottom: var(--space-2);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; font-size: 0.95rem; }
.site-footer__group > p { font-size: 0.9rem; color: var(--muted); }
.site-footer__legal {
    border-top: 1px solid var(--border);
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    font-size: 0.85rem;
    color: var(--muted);
}
.site-footer__legal p { margin: 0; }

/* ---------------------------------------------------------------- motion --- */
/* Entrances are applied by JS only. Without JS everything renders visible,
   so no content is ever trapped behind a script. */

.js [data-reveal] { opacity: 0; }
/* If the motion module never loads, put everything back. */
.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ------------------------------------------------------------ breakpoints --- */

/* The filter panel collapses behind a toggle below the sidebar breakpoint.
   Without JavaScript the panel stays open and the toggle stays hidden.
   The full navigation only fits from 1024px, so the mobile menu covers
   phones and tablets. At 768px the five links wrapped onto two lines. */
@media (max-width: 1023px) {
    .js .shop-filters__toggle { display: inline-flex; }
    .top-strip { display: none; }
    .main-nav { display: none; }
    .site-header__shop { display: none; }
    .js .menu-toggle { display: inline-flex; }
    .js .mobile-menu { display: none; }
    .js .mobile-menu.is-open { display: block; }
}

@media (max-width: 767px) {

    .cart-table thead, .orders-table thead { display: none; }
    .cart-table tr, .orders-table tr {
        display: grid;
        gap: var(--space-2);
        padding-block: var(--space-4);
        border-bottom: 1px solid var(--border);
    }
    .cart-table th, .cart-table td, .orders-table th, .orders-table td { border: 0; padding: 0; }
    .cart-table td::before, .orders-table td::before {
        content: attr(data-label) ": ";
        font-size: 0.8rem;
        color: var(--muted);
    }
}

@media (min-width: 640px) {
    .field-row { grid-template-columns: 1fr 1fr; }
    .trust-strip__inner { grid-template-columns: 1fr 1fr; column-gap: var(--space-5); }
    .trust-strip__item { padding: var(--space-4) 0; }
    .trust-strip__item:nth-child(2) { border-top: 0; padding-top: 0; }
    .product-grid, .category-grid, .contact-blocks__grid, .account-shortcuts { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    section { padding-block: var(--space-8); }
    .hero--home { padding-block: 0; }
    .hero--page { padding-block: var(--space-8) var(--space-6); }

    .hero-shell { padding: var(--space-6) var(--space-6) 0; }
    .hero-shell__floor { grid-template-columns: 1fr auto; }
    .cta-band__inner { padding: var(--space-8) var(--space-7); }

    .about-intro__inner, .about-story__inner { grid-template-columns: 1fr 1fr; }
    .product__layout { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
    .product__gallery { position: sticky; top: 96px; }
    .product__detail { grid-template-columns: 1fr 1fr; }
    .spec-row { grid-template-columns: 11rem 1fr; gap: var(--space-3); }
    .product__form .button--large { width: auto; min-width: 16rem; }

    .account__auth-grid { grid-template-columns: 1fr 1fr; }
    .account__layout { grid-template-columns: 15rem 1fr; gap: var(--space-6); }

    /* Bento: tall left, wide top right, two below. Four reasons, four cells. */
    .why-us__list { grid-template-columns: repeat(3, 1fr); }
    .why-us__list > li:nth-child(1) { grid-row: span 2; }
    .why-us__list > li:nth-child(2) { grid-column: span 2; }
    .bento-cell--tall { min-height: 28rem; }
}

@media (min-width: 1024px) {
    .mobile-menu { display: none; }
    .menu-toggle { display: none; }

    .trust-strip__inner { grid-template-columns: repeat(4, 1fr); padding: var(--space-6); column-gap: 0; }
    .trust-strip__item {
        border-top: 0;
        border-left: 1px solid var(--tint-border);
        padding: 0 var(--space-5);
    }
    .trust-strip__item:first-child { border-left: 0; padding-left: 0; }
    .trust-strip__item:last-child { padding-right: 0; }

    .product-grid, .category-grid, .account-shortcuts { grid-template-columns: repeat(3, 1fr); }
    .contact-blocks__grid { grid-template-columns: repeat(4, 1fr); }

    .shop__layout { grid-template-columns: 17rem 1fr; gap: var(--space-6); }
    .shop-filters { position: sticky; top: 96px; }

    .cart__layout, .checkout__layout, .order-detail__layout {
        grid-template-columns: minmax(0, 1fr) 23rem;
        gap: var(--space-6);
    }

    .site-footer__groups { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------ additions --- */

#header-sentinel { display: block; height: 1px; margin-bottom: -1px; }

.bento-cell--tinted { background: var(--surface); }
.bento-cell__links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.bento-cell--tall .bento-cell__foot p { font-size: 0.9rem; }

.hero--page .badge-pill { margin-bottom: var(--space-4); }
.hero--page .hero__intro { max-width: 52ch; }

/* The hero badge and floating card need spacing when stacked. */
.hero-shell__body .badge-pill { margin-bottom: var(--space-2); }

/* Table links need a real touch target, not just their text box. */
.cart-table__product a,
.orders-table th a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* ------------------------------------------------------------ page heroes --- */
/* Every page hero is a light media shell, shorter than the home hero. */

.hero--media { padding-block: var(--space-5) 0; }

.page-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: clamp(15rem, 32dvh, 21rem);
    padding: var(--space-6) var(--space-4) var(--space-5);
}
.page-hero--compact { min-height: clamp(10rem, 20dvh, 14rem); }
.page-hero h1 { margin-bottom: var(--space-2); }
.page-hero .hero__intro { margin: 0; max-width: 54ch; color: var(--text); }
.page-hero .badge-pill { margin-bottom: var(--space-3); }
.page-hero .steps { margin-top: var(--space-4); color: var(--text); }

@media (min-width: 768px) {
    .page-hero { padding: var(--space-7) var(--space-6) var(--space-6); }
    .page-hero--compact { padding: var(--space-6) var(--space-6) var(--space-5); }
}

/* Supplied logo and the pending photograph note. */
img.wordmark--footer { height: 44px; width: auto; margin-bottom: var(--space-3); }

.colour-note {
    display: block;
    width: 100%;
    margin: var(--space-2) 0 0;
    padding: var(--space-2) var(--space-3);
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-input);
    font-size: 0.88rem;
    color: var(--text);
}
.colour-note[hidden] { display: none; }

@media (max-width: 767px) {
    /* Clear the last of the page from under the floating cart bubble. */
    .site-footer { padding-bottom: calc(var(--space-7) + env(safe-area-inset-bottom, 0px)); }
}

/* ------------------------------------------------- client changes 21 Sep --- */

/* A hairline under the two small headings in the About story column. */
.about-story .prose h3 {
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
}
.about-story__action { margin-top: var(--space-5); }

/* The left bento cell carries the accent. White on plum measures 7.62:1 and
   the body copy at 86% white measures 6.0:1, both clear of AA. */
.bento-cell--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}
.bento-cell--accent h3 { color: var(--on-accent); }
.bento-cell--accent p { color: rgba(255, 255, 255, 0.86); }
.bento-cell--accent .bento-cell__mark { color: var(--white); opacity: 0.09; }
.bento-cell--accent:hover { box-shadow: 0 8px 30px rgba(77, 57, 73, 0.18); }

/* Footer column titles. */
.site-footer h5 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    margin: 0 0 var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
}
.site-footer__brand h5 { border-bottom: 0; }

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    min-height: 40px;
    padding-block: var(--space-1);
    font-size: 0.95rem;
}
.site-footer__contact .icon { margin-top: 0.7rem; color: var(--accent); }
.site-footer__contact li a { min-height: 0; }
.site-footer__contact li span { padding-block: var(--space-2); color: var(--muted); }

/* ------------------------------------------------- floating cart bubble --- */

.cart-bubble {
    position: fixed;
    right: var(--space-3);
    bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--on-accent);
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(40, 39, 43, 0.24);
    transition: background var(--t-base) var(--ease),
                transform var(--t-base) var(--ease),
                opacity var(--t-base) var(--ease);
}
.cart-bubble:hover {
    background: var(--accent-hover);
    color: var(--on-accent);
    transform: translateY(-2px);
}

.cart-bubble__count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: var(--r-pill);
    border: 2px solid var(--bg);
    background: var(--charcoal);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* On the home page the hero owns the bottom right corner with its cut-out,
   so the bubble steps aside while that corner is on screen. The sticky header
   carries a cart icon the whole time, so the cart is never out of reach.
   Defaults to visible: if the observer never runs, the bubble is still there. */
.js .cart-bubble--deferred.is-hidden {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    pointer-events: none;
}

/* ------------------------------------------------------------ side cart --- */

/* The open state is a class, not an animation, so the panel lands in the
   right place even if the transition never runs. */
.side-cart {
    position: fixed;
    inset: 0;
    z-index: 60;
}
.side-cart[hidden] { display: none; }

.side-cart__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(40, 39, 43, 0.45);
    opacity: 0;
    transition: opacity var(--t-base) var(--ease);
}
.side-cart.is-open .side-cart__backdrop { opacity: 1; }

.side-cart__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(26rem, 100%);
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(40, 39, 43, 0.16);
    transform: translateX(100%);
    transition: transform var(--t-base) var(--ease);
}
.side-cart.is-open .side-cart__panel { transform: none; }

.side-cart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-4) var(--space-3);
    border-bottom: 1px solid var(--border);
}
.side-cart__head h2 { margin: 0; font-size: 1.6rem; }

.side-cart__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--control-border);
    border-radius: var(--r-pill);
    color: var(--text);
    cursor: pointer;
}
.side-cart__close:hover { background: var(--surface); }

.side-cart__lines {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: var(--space-3) var(--space-4);
}
.side-cart__line {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: var(--space-3);
    align-items: start;
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--border);
}
.side-cart__line:last-child { border-bottom: 0; }
.side-cart__thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-input); }
.side-cart__detail a { font-weight: 500; text-decoration: none; }
.side-cart__meta { margin: var(--space-1) 0 0; font-size: 0.85rem; color: var(--muted); }
.side-cart__price { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }

.side-cart__foot {
    padding: var(--space-4);
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.side-cart__totals { margin: 0 0 var(--space-3); }
.side-cart__totals div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding-block: var(--space-1);
}
.side-cart__totals dt { margin: 0; font-size: 0.92rem; }
.side-cart__totals dd { margin: 0; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.side-cart__total { padding-top: var(--space-2); border-top: 1px solid var(--border); font-weight: 500; }
.side-cart__total dd { font-family: var(--font-display); font-size: 1.35rem; }
.side-cart__note { font-size: 0.85rem; color: var(--muted); margin-bottom: var(--space-3); }
.side-cart__view { margin-top: var(--space-2); }

.side-cart__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-4);
}
.side-cart__empty p { color: var(--muted); }
.side-cart__empty .button { margin-top: var(--space-3); }

/* The page behind must not scroll while the panel is open. */
body.side-cart-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .side-cart__backdrop, .side-cart__panel { transition: none; }
}

/* ------------------------------------------------------ form field errors --- */
/* Errors sit below their field and are announced by their wording, not by
   colour alone. The palette has no red, so weight and a rule carry it. */
.field__error {
    margin: var(--space-2) 0 0;
    padding-left: var(--space-3);
    border-left: 3px solid var(--charcoal);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}
.field:has(.field__error) input,
.field:has(.field__error) select,
.field:has(.field__error) textarea { border-width: 2px; }

