/*
 * LMT Merch katalogs — theme stylesheet
 *
 * Desktop values (1440px viewport) are carried 1:1 from the client design
 * "LMT Merch Katalogs.dc.html". Responsive overrides live at the end of the file.
 *
 * Sections
 *  1. Fonts (self-hosted Poppins, latin + latin-ext)
 *  2. Design tokens
 *  3. Base
 *  4. Utilities
 *  5. Shell (site, header, cart link, footer)
 *  6. Shared components (buttons, links, back link, chips, quantity stepper, alerts)
 *  7. Home (hero, catalogue tabs, product grid, product card)
 *  8. Product page
 *  9. Request page (lines, contact form, fields)
 * 10. Sent page, status pages
 * 11. Legal pages (sections, prose, cookie table)
 * 12. AJAX framework integration (validation, flash messages, progress bar)
 * 13. Responsive
 * 14. Motion, forced colours, print
 */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-latin-ext-300-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-latin-300-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-latin-ext-600-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Design tokens -------------------------------------------------------- */

:root {
    color-scheme: light;

    --font-sans: 'Geometria Narrow', 'Poppins', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --color-text: #000100;
    /* Design greys. Note: #75787b is 4.44:1 and #97999b 2.86:1 on white (WCAG AA needs 4.5:1);
       use #6e7174 / #767676 here if the client wants AA-compliant secondary text. */
    --color-muted: #75787b;
    --color-muted-2: #97999b;
    --color-body: #3a3a3a;
    --color-label: #53565a;
    --color-border: #e4e4e2;
    --color-border-strong: #c8c9c7;
    --color-divider: #d5d5d3;
    --color-input-border: #97999b;
    --color-surface: #f5f5f5;
    --color-surface-hover: #e9e9e7;
    --color-image-bg: #f0f0ee;
    --color-hero-light: #f4f4f2;
    --color-white: #fff;
    --color-primary: #c8102e;
    --color-primary-hover: #a70a25;
    --color-primary-active: #930d22;
    --color-dark-red: #9d2235;
    --color-orange: #fa4616;
    --color-link: #fa4616;
    --color-link-hover: #9d2235;
    /* Links inside running text follow the design (orange). For WCAG AA use var(--color-primary) (5.88:1). */
    --color-prose-link: var(--color-link);
    --color-focus: #8a8a8a;
    --color-error: #c8102e;

    /* Overridden per site from the catalogue settings (inline on <body>). */
    --acc: var(--color-orange);
    --acc-contrast: var(--color-text); /* black or white, whichever reads better on --acc */
    --cols: 4;

    --container-max: 1360px;
    --gutter: 40px;
    --control-height: 48px;
    --radius-xs: 4px;
    --radius: 6px;
    --radius-card: 14px;
    --ease-out: cubic-bezier(.2, .7, .2, 1);
    --shadow-card: 0 16px 34px rgba(0, 0, 0, .12);
    --focus-ring: 3px solid var(--color-focus);
    --focus-ring-strong: 4px solid var(--color-focus);
}

/* 3. Base ----------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--color-white);
    font-family: var(--font-sans);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    color: var(--color-link-hover);
}

input,
button,
select,
textarea {
    font-family: inherit;
}

input::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

button {
    font-size: inherit;
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

:where(h1, h2, h3, h4, p, dl, dd, figure, blockquote) {
    margin: 0;
}

:where(ul[class], ol[class]) {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

/* 4. Utilities ------------------------------------------------------------ */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Honeypot: off-screen but not display:none, so naive bots still fill it in. */
.visually-hidden-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.skip-link {
    position: absolute;
    top: -200px;
    left: 16px;
    z-index: 100;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--color-text);
    color: var(--color-white);
    font-size: 15px;
}

.skip-link:focus,
.skip-link:hover {
    top: 16px;
    color: var(--color-white);
}

.container {
    width: 100%;
    max-width: calc(var(--container-max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* 5. Shell ---------------------------------------------------------------- */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}

.site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    animation: page-in 320ms var(--ease-out) both;
}

.site-main:focus {
    outline: none;
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.site-header__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand tagline cart";
    align-items: center;
    column-gap: 20px;
    padding: 24px 0;
}

.site-header__brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.site-header__logo {
    display: block;
    flex: none;
    border-radius: 2px;
}

.site-header__logo img {
    display: block;
    height: 32px;
    width: auto;
}

.site-header__divider {
    flex: none;
    width: 1px;
    height: 26px;
    background: var(--color-divider);
}

.site-header__title {
    min-width: 0;
    overflow: hidden;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: .5px;
    color: var(--color-text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-header__tagline {
    grid-area: tagline;
    font-size: 16px;
    color: var(--color-muted);
    text-align: right;
}

.site-header__cart {
    grid-area: cart;
    display: flex;
}

.header-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -6px -10px -6px 0;
    border-radius: var(--radius);
    color: var(--color-text);
    transition: background-color .15s ease, color .15s ease;
}

.header-cart:hover {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.header-cart:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 0;
}

.header-cart__icon {
    display: block;
    flex: none;
}

.header-cart__badge {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--acc);
    box-shadow: 0 0 0 2px var(--color-white);
    color: var(--acc-contrast);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-white);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 0 48px;
    font-size: 16px;
    color: var(--color-text);
}

.site-footer__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.site-footer__logo {
    display: block;
    transition: opacity .15s ease;
}

.site-footer__logo:hover {
    opacity: .7;
}

.site-footer__logo img {
    display: block;
    height: 24px;
    width: auto;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.site-footer__link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.site-footer__link:hover {
    color: var(--color-primary);
}

.site-footer__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.site-footer__mail,
.site-footer__mail:hover {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 6. Shared components ---------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-height);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, color .15s ease;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
}

.btn--primary:active {
    background-color: var(--color-primary-active);
}

.btn--primary:focus-visible {
    background-color: var(--color-primary-hover);
    outline: var(--focus-ring-strong);
    outline-offset: 2px;
}

.btn--outline {
    min-height: 0;
    padding: 17px 40px;
    border: 1px solid var(--color-text);
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}

.btn--outline:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.btn--outline:focus-visible {
    outline: var(--focus-ring-strong);
    outline-offset: 2px;
}

.btn:disabled,
.btn.jax-attach-loader {
    cursor: progress;
}

.text-link {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-link:hover {
    color: var(--color-orange);
}

.text-link--red:hover {
    color: var(--color-primary);
}

.text-link--button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    font-size: 18px;
    color: var(--color-muted);
    cursor: pointer;
    transition: color .15s ease;
}

.back-link:hover {
    color: var(--color-text);
}

.back-link__icon {
    display: block;
    flex: none;
}

/* Option chips (size / colour) */

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    margin: 0;
    border: 1px solid var(--color-border-strong);
    border-radius: 0;
    background: var(--color-white);
    color: var(--color-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    transition: border-color .15s ease;
}

.chip:hover {
    border-color: var(--color-text);
}

.chip:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.chip--size {
    min-width: 80px;
    padding: 12px 14px;
    text-align: center;
}

.chip--size.is-selected,
.chip--size[aria-checked="true"] {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-white);
}

.chip--color {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 11px;
    text-align: left;
}

.chip--color.is-selected,
.chip--color[aria-checked="true"] {
    border-color: var(--color-text);
    background: var(--color-image-bg);
}

.chip__swatch {
    box-sizing: content-box;
    flex: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 50%;
    background: var(--swatch, var(--color-text));
}

/* Quantity stepper */

.qty {
    display: flex;
    flex: none;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
}

.qty form {
    display: flex;
    margin: 0;
}

.qty__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-label);
    font-family: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease;
}

.qty__btn:hover {
    background: var(--color-surface-hover);
}

.qty__btn:focus-visible {
    outline: var(--focus-ring);
    outline-offset: -3px;
}

.qty__btn:disabled,
.qty__btn[aria-disabled="true"] {
    color: var(--color-border-strong);
    background: transparent;
    cursor: default;
}

.qty__value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.qty--sm .qty__btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
}

.qty--sm .qty__value {
    min-width: 36px;
    height: 36px;
    font-size: 15px;
}

/* Inline alerts (validation summary / general errors) */

.form-alert {
    flex-basis: 100%;
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-error);
}

.form-alert:focus {
    outline: none;
}

.form-alert p {
    margin: 0;
}

.form-alert p + p {
    margin-top: 4px;
}

/* 7. Home ----------------------------------------------------------------- */

.hero {
    --hero-bg: var(--color-text);
    --hero-fg: var(--color-white);
    background: var(--hero-bg);
    color: var(--hero-fg);
}

.hero--light {
    --hero-bg: var(--color-hero-light);
    --hero-fg: var(--color-text);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 56px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 96px 0 100px;
}

/* Keeps the 10px spacer row of the design below the intro text. */
.hero__content::after {
    content: "";
    flex: none;
    height: 10px;
}

.hero__badge {
    align-self: flex-start;
    padding: 7px 10px;
    border-radius: var(--radius-xs);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.hero__title {
    font-size: clamp(46px, 4.9vw, 64px); /* 64px (design) from 1306px up; smaller so "Apģērbs un lietas" stays on one line */
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -1px;
    text-wrap: pretty;
}

.hero__text {
    max-width: 520px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.4;
    opacity: .82;
    text-wrap: pretty;
}

.hero__media {
    position: relative;
    min-width: 0;
    min-height: 460px;
    margin-bottom: -1px;
    overflow: hidden;
}

.hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Catalogue */

.catalog {
    padding: 64px 0 96px;
}

.catalog__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 32px;
}

.catalog__title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -.3px;
    text-align: center;
}

.catalog__brand-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    color: var(--color-muted);
}

.catalog-tabs-form {
    margin: 0;
}

.catalog-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 40px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Baseline drawn as an inset shadow: a border plus the tabs' overlap would give the scroller 1px of vertical scroll and clip the active underline. */
    box-shadow: inset 0 -1px 0 var(--color-border);
}

.catalog-tabs::-webkit-scrollbar {
    display: none;
}

.catalog-tab {
    flex: none;
    margin: 0;
    padding: 14px 20px 13px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 4px 4px 0 0;
    background-color: transparent;
    color: var(--color-label);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    transition: background-color .15s ease;
}

/* Auto margins centre the row while it fits and fall back to 0 when it overflows, so the first tab stays reachable. */
.catalog-tab:first-child {
    margin-inline-start: auto;
}

.catalog-tab:last-child {
    margin-inline-end: auto;
}

.catalog-tab:hover {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.catalog-tab.is-active,
.catalog-tab[aria-selected="true"] {
    border-bottom-color: var(--color-text);
    color: var(--color-text);
}

.catalog-tab:focus-visible {
    outline: var(--focus-ring);
    outline-offset: -3px;
    border-radius: var(--radius);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    gap: 40px 32px;
}

.catalog-grid__item {
    display: flex;
    min-width: 0;
}

.catalog__empty {
    padding: 48px 0;
    font-size: 18px;
    font-weight: 300;
    color: var(--color-body);
    text-align: center;
}

.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-white);
    color: var(--color-text);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    color: var(--color-text);
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-card);
    }
}

.product-card:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
}

.product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-image-bg);
}

.product-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 22px 26px;
}

.product-card__category {
    font-size: 14px;
    color: var(--color-muted);
}

.product-card__name {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.25;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.product-card__price {
    font-size: 19px;
    font-weight: 700;
}

/* 8. Product page --------------------------------------------------------- */

.page-product {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 32px var(--gutter) 96px;
}

.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 72px;
}

.product__gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.product__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--color-image-bg);
}

.product__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--color-image-bg);
    cursor: pointer;
    transition: opacity .15s ease;
}

.product-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Selection ring drawn above the image (outline stays free for keyboard focus). */
.product-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    pointer-events: none;
}

.product-thumb.is-active::after,
.product-thumb[aria-pressed="true"]::after {
    border-color: var(--acc);
}

.product-thumb:hover {
    opacity: .75;
}

.product-thumb:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.product__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 4px;
}

.product__category {
    align-self: flex-start;
    padding: 6px 9px;
    border-radius: var(--radius-xs);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: background-color .15s ease;
}

.product__category:hover {
    background-color: var(--color-dark-red);
    color: var(--color-white);
}

.product__title {
    margin-top: 12px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.5px;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

.product__pricing {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
}

.product__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
}

.product__price {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.5px;
}

.product__price-for {
    font-size: 15px;
    color: var(--color-muted);
}

.product__price-range {
    font-size: 13px;
    color: var(--color-muted-2);
}

.product__description {
    max-width: 540px;
    margin-top: 20px;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-body);
    text-wrap: pretty;
}

.product__specs {
    display: grid;
    grid-template-columns: minmax(0, 155px) minmax(0, 1fr);
    row-gap: 14px;
    column-gap: 24px;
    margin-top: 28px;
    padding: 22px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
}

.product__spec {
    display: contents;
}

.product__spec dt {
    font-weight: 600;
    color: var(--color-text);
}

.product__spec dd {
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.product__option {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product__option--sizes {
    margin-top: 26px;
}

.product__option--colors {
    margin-top: 24px;
}

.product__option-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.product__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.product__form {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    margin: 0;
}

.product__cta {
    flex: 1;
    min-width: 220px;
    padding-inline: 16px;
}

.product__unavailable {
    font-size: 15px;
    color: var(--color-muted);
}

.product__note {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-muted);
}

.product__note + .product__note--terms {
    margin-top: 8px;
}

/* 9. Request page --------------------------------------------------------- */

.page-request {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px var(--gutter) 96px;
}

.page-title {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -.6px;
    overflow-wrap: break-word;
}

.page-intro {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 300;
    color: var(--color-body);
}

.page-intro--request {
    max-width: 560px;
}

.request {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 56px;
    margin-top: 48px;
}

.request.is-empty {
    grid-template-columns: minmax(0, 1fr);
}

.request__col {
    min-width: 0;
}

.request__lines {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.request__heading {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
}

.request__heading:focus {
    outline: none;
}

.request-lines {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.request-line {
    display: flex;
    gap: 22px;
}

.request-line__media {
    position: relative;
    flex: none;
    width: 132px;
    height: 132px;
    background: var(--color-image-bg);
}

.request-line__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.request-line__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.request-line__name {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.request-line__name a {
    color: inherit;
}

.request-line__name a:hover {
    color: var(--color-primary);
}

.request-line__summary {
    font-size: 15px;
    line-height: 1.45;
    color: var(--color-muted);
}

.request-line__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-top: 6px;
}

.request-line__price {
    font-size: 18px;
    font-weight: 700;
}

.request-line__total {
    font-size: 15px;
    color: var(--color-muted);
}

.request-line__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 4px;
}

.request-line__controls > form {
    margin: 0;
}

.request-line__remove {
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--color-muted);
    font-family: inherit;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .15s ease;
}

.request-line__remove:hover {
    color: var(--color-primary);
}

.request-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.request-total__label {
    font-size: 18px;
    font-weight: 600;
}

.request-total__value {
    font-size: 22px;
    font-weight: 700;
}

.request-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.request-empty__text {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-body);
}

/* Contact form */

.request-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: var(--color-label);
}

.field--full {
    grid-column: 1 / -1;
}

.field__label {
    font-size: 13px;
    color: var(--color-label);
}

.field__control {
    position: relative;
    display: flex;
}

.field__input {
    flex: 1;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius);
    background-color: var(--color-white);
    color: var(--color-body);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.field__input:hover {
    background-color: var(--color-surface);
    border-color: var(--color-body);
}

.field__input:focus {
    background-color: var(--color-white);
    border-color: var(--color-body);
    outline: var(--focus-ring-strong);
    outline-offset: 0;
}

.field__icon {
    position: absolute;
    top: 13px;
    right: 16px;
    display: none;
    color: var(--color-error);
    pointer-events: none;
}

.field.is-invalid .field__input,
.field:has(.field__error.jax-visible) .field__input {
    padding-right: 48px;
    border-color: var(--color-error);
}

.field.is-invalid .field__input:hover,
.field.is-invalid .field__input:focus,
.field:has(.field__error.jax-visible) .field__input:hover,
.field:has(.field__error.jax-visible) .field__input:focus {
    border-color: var(--color-error);
}

.field.is-invalid .field__icon,
.field:has(.field__error.jax-visible) .field__icon {
    display: block;
}

.field__error {
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-error);
}

.request-form__submit {
    width: 100%;
    margin-top: 14px;
    padding: 0 40px;
}

.request-form__note {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-muted);
}

.request-form__note--privacy {
    margin-top: 4px;
}

/* 10. Sent page, status pages -------------------------------------------- */

.page-sent,
.page-status {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 120px var(--gutter);
}

.sent,
.status {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
    max-width: 560px;
}

.sent__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--acc, var(--color-orange));
    color: var(--color-white);
    font-size: 30px;
    font-weight: 600;
}

.sent__title,
.status__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.6px;
}

.sent__text,
.status__text {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-body);
}

.sent__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}

.sent-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sent-item__media {
    position: relative;
    flex: none;
    width: 88px;
    height: 88px;
    background: var(--color-image-bg);
}

.sent-item__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sent-item__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.sent-item__name {
    font-size: 18px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.sent-item__summary {
    font-size: 16px;
    color: var(--color-muted);
}

.sent__number {
    font-size: 16px;
    color: var(--color-muted);
}

.sent__number strong {
    font-weight: 600;
    color: var(--color-text);
}

.sent__back,
.status__btn {
    align-self: flex-start;
    margin-top: 10px;
}

.status__btn {
    padding: 0 40px;
}

.status__code {
    align-self: flex-start;
    padding: 7px 10px;
    border-radius: var(--radius-xs);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

/* 11. Legal pages --------------------------------------------------------- */

.page-legal {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 32px var(--gutter) 96px;
}

.page-intro--legal {
    max-width: 620px;
    line-height: 1.5;
    text-wrap: pretty;
}

.legal-sections {
    display: flex;
    flex-direction: column;
    margin-top: 48px;
}

.legal-section {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--color-border);
}

.legal-section:last-child {
    border-bottom: 1px solid var(--color-border);
}

.legal-section__heading {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--color-muted-2);
}

.legal-section__body {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    text-wrap: pretty;
}

.legal-content {
    margin-top: 48px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
}

.legal-updated {
    margin-top: 48px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-muted);
}

/* Rich text from the backend editor */

.prose {
    overflow-wrap: break-word;
}

.prose > :first-child {
    margin-top: 0;
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose a {
    color: var(--color-prose-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--color-link-hover);
}

/* Cookie-settings links in the policy text do nothing while the consent banner is off (theme.js turns them into plain text). */
body:not(.has-cookie-consent) .prose [data-cookie-settings] {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose blockquote {
    margin: 0 0 1em;
}

.prose h2 {
    margin: 40px 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.prose h3 {
    margin: 28px 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.prose h4 {
    margin: 24px 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.prose ul,
.prose ol {
    padding-left: 1.4em;
}

.prose li + li {
    margin-top: 6px;
}

.prose strong,
.prose b {
    font-weight: 600;
}

.prose blockquote {
    padding-left: 16px;
    border-left: 3px solid var(--color-border);
    color: var(--color-body);
}

.prose hr {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.45;
}

.prose th,
.prose td {
    padding: 10px 16px 10px 0;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.prose th {
    font-weight: 600;
}

/* Cookie table */

.cookie-table {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
}

.cookie-table__title {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    font-size: 22px;
    font-weight: 600;
}

.cookie-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-category__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.cookie-category__name {
    font-size: 18px;
    font-weight: 600;
}

.cookie-category__badge {
    padding: 5px 8px;
    border-radius: var(--radius-xs);
    background: var(--color-image-bg);
    color: var(--color-label);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.cookie-category__description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-body);
}

.cookie-category__empty,
.cookie-table__settings {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-muted);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.45;
}

.data-table th,
.data-table td {
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.data-table th:last-child,
.data-table td:last-child {
    padding-right: 0;
}

.data-table thead th {
    border-bottom-color: var(--color-border-strong);
    color: var(--color-muted-2);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.data-table tbody th {
    font-weight: 500;
}

.cookie-category__table-wrap {
    overflow-x: auto;
}

.data-table code {
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    background: var(--color-surface);
    font-family: var(--font-mono);
    font-size: 14px;
    white-space: nowrap;
}

/* 12. AJAX framework integration ----------------------------------------- */

/* Same rule as framework-extras.css, repeated here so empty error slots never flash in before that file loads. */
[data-validate-for]:not(.jax-visible),
[data-validate-error]:not(.jax-visible) {
    display: none;
}

.jax-flash-message {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.45;
}

.jax-flash-message.success {
    background: var(--color-text);
}

.jax-flash-message.error {
    background: var(--color-primary);
}

.jax-flash-message.warning {
    background: var(--color-dark-red);
}

.jax-flash-message.info,
.jax-flash-message.loading {
    background: var(--color-label);
}

.jax-flash-message a.flash-close:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.jax-progress-bar {
    background: var(--acc);
}

.jax-attach-loader {
    opacity: .9;
}

/* No-JS fallback for server-side flash messages (the AJAX framework turns these into toasts). */
.flash-fallback {
    width: calc(100% - 2 * var(--gutter));
    max-width: var(--container-max);
    margin: 24px auto 0;
    padding: 12px 16px;
    border-left: 4px solid var(--color-label);
    border-radius: var(--radius);
    background: var(--color-surface);
    font-size: 15px;
    line-height: 1.45;
}

.flash-fallback--error {
    border-left-color: var(--color-error);
}

.flash-fallback--success {
    border-left-color: var(--color-text);
}

/* 13. Responsive ---------------------------------------------------------- */

@media (max-width: 1180px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product {
        gap: 48px;
    }
}

@media (max-width: 960px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .hero__content {
        padding: 64px 0 48px;
    }

    .hero__content::after {
        display: none;
    }

    .hero__title {
        font-size: 56px;
    }

    .hero__media {
        min-height: 0;
        margin: 0 calc(-1 * var(--gutter));
        aspect-ratio: 16 / 10;
    }

    /* Tabs are cut at the viewport edge instead of inside the gutter. */
    .catalog-tabs {
        margin: 0 calc(-1 * var(--gutter)) 40px;
        padding: 0 var(--gutter);
    }

    .catalog-tabs::after {
        content: "";
        flex: 0 0 1px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .product {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .product__gallery {
        width: 100%;
        max-width: 640px;
    }

    .product__description {
        max-width: none;
    }

    .request {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .page-sent,
    .page-status {
        padding: 80px var(--gutter);
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 90px;
    }

    /* Header: brand + cart on the first row, tagline wraps below. */
    .site-header__row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand cart"
            "tagline cart";
        column-gap: 12px;
        row-gap: 2px;
        padding: 12px 0;
    }

    .site-header__brand {
        gap: 12px;
    }

    .site-header__logo img {
        height: 26px;
    }

    .site-header__divider {
        height: 22px;
    }

    .site-header__title {
        font-size: 17px;
        letter-spacing: .3px;
    }

    .site-header__tagline {
        font-size: 12px;
        line-height: 1.4;
        text-align: left;
    }

    .header-cart {
        margin: 0 -10px 0 0;
    }
}

@media (max-width: 600px) {
    :root {
        --gutter: 16px;
    }

    .hero__content {
        gap: 20px;
        padding: 44px 0 36px;
    }

    .hero__title {
        font-size: 40px;
        line-height: 1.05;
        letter-spacing: -.6px;
    }

    .hero__text {
        font-size: 18px;
    }

    .hero__media {
        aspect-ratio: 4 / 3;
    }

    .catalog {
        padding: 40px 0 64px;
    }

    .catalog__head {
        padding-bottom: 20px;
    }

    .catalog__title {
        font-size: 28px;
    }

    .catalog-tabs {
        margin-bottom: 24px;
    }

    .catalog-tab {
        padding: 12px 14px 11px;
        font-size: 15px;
    }

    .catalog-grid {
        gap: 24px 12px;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-card__body {
        gap: 4px;
        padding: 14px 12px 18px;
    }

    .product-card__category {
        font-size: 12px;
    }

    .product-card__name,
    .product-card__price {
        font-size: 15px;
    }

    /* Larger hit area, same look: the 10px padding is taken back by the margins. */
    .back-link {
        gap: 10px;
        padding-block: 10px;
        margin-block: -10px 14px;
        font-size: 16px;
    }

    .page-product,
    .page-request,
    .page-legal {
        padding: 20px var(--gutter) 64px;
    }

    .product {
        gap: 28px;
    }

    .product__thumbs {
        gap: 8px;
    }

    .product-thumb {
        width: 64px;
        height: 64px;
    }

    .product__title {
        font-size: 30px;
        letter-spacing: -.3px;
    }

    .product__price {
        font-size: 28px;
    }

    .product__description {
        font-size: 16px;
    }

    .product__specs {
        grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
        column-gap: 16px;
    }

    .chip--size {
        min-width: 64px;
        padding: 10px 12px;
    }

    .product__actions {
        margin-top: 28px;
        padding-top: 28px;
    }

    .product__cta {
        min-width: 0;
    }

    .product__note {
        margin-top: 20px;
        font-size: 14px;
    }

    .page-title {
        font-size: 32px;
        line-height: 1.1;
        letter-spacing: -.4px;
    }

    /* Compensates the tighter title leading so the title-to-intro gap stays the same. */
    .page-intro {
        margin-top: 22px;
        font-size: 16px;
    }

    .request {
        gap: 40px;
        margin-top: 32px;
    }

    .request-line {
        gap: 16px;
    }

    .request-line__media {
        width: 96px;
        height: 96px;
    }

    .request-line__name {
        font-size: 16px;
    }

    .request-line__summary {
        font-size: 14px;
    }

    .request-line__controls {
        gap: 16px 20px;
    }

    .qty--sm .qty__btn {
        width: 44px;
        height: 44px;
    }

    .qty--sm .qty__value {
        min-width: 40px;
        height: 44px;
    }

    .request-line__remove {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 4px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-sent,
    .page-status {
        align-items: flex-start;
        padding: 56px var(--gutter) 64px;
    }

    .sent__title,
    .status__title {
        font-size: 32px;
    }

    .sent__text,
    .status__text {
        font-size: 18px;
    }

    .sent-item {
        gap: 16px;
    }

    .sent-item__media {
        width: 72px;
        height: 72px;
    }

    .btn--outline {
        padding: 15px 28px;
        font-size: 15px;
    }

    .legal-sections,
    .legal-content,
    .cookie-table,
    .legal-updated {
        margin-top: 32px;
    }

    .legal-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 22px 0;
    }

    .legal-section__body,
    .legal-content {
        font-size: 16px;
    }

    /* Cookie table: one card per cookie. */
    .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table th,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .data-table tbody th,
    .data-table td {
        display: grid;
        grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
        gap: 12px;
        padding: 4px 0;
        border: 0;
    }

    .data-table code {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .data-table tbody th::before,
    .data-table td::before {
        content: attr(data-label);
        color: var(--color-muted-2);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .8px;
        line-height: 1.8;
        text-transform: uppercase;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 32px 0 40px;
        font-size: 15px;
    }

    .site-footer__group {
        gap: 12px 20px;
    }

    /* 44px tall link rows instead of 21px text lines with a 12px gap. */
    .site-footer__links {
        gap: 0 20px;
    }

    .site-footer__link,
    .site-footer__mail {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .site-footer__group {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .site-header__brand {
        gap: 10px;
    }

    .site-header__logo img {
        height: 22px;
    }

    .site-header__divider {
        height: 20px;
    }

    .site-header__title {
        font-size: 15px;
    }

    .hero__title {
        font-size: 36px;
    }

    .catalog-grid {
        gap: 20px 10px;
    }

    .product-card__body {
        padding: 12px 10px 16px;
    }
}

/* 14. Motion, forced colours, print -------------------------------------- */

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

    .product-card:hover {
        transform: none;
    }
}

@media (forced-colors: active) {
    .chip[aria-checked="true"] {
        outline: 2px solid Highlight;
        outline-offset: 2px;
    }

    .catalog-tabs {
        box-shadow: none;
        border-bottom: 1px solid CanvasText;
    }

    .catalog-tab[aria-selected="true"] {
        border-bottom-color: Highlight;
    }

    .product-thumb[aria-pressed="true"]::after {
        border-color: Highlight;
    }

    .header-cart__badge {
        border: 1px solid CanvasText;
    }
}

@media print {
    .site-header {
        position: static;
    }

    .skip-link,
    .site-header__cart,
    .catalog-tabs,
    .site-footer__links,
    .request-line__controls,
    .request__col--contact {
        display: none !important;
    }

    .site-main {
        animation: none;
    }
}
