/*!
 * Aigen Commerce — base storefront styles.
 * Structure and components shared by every theme, driven by design tokens (custom properties).
 * Themes set the tokens and add their own look in css/theme.css (@layer theme).
 */

@layer reset, base, layout, components, pages, responsive, theme, utilities;

:root {
    color-scheme: light;

    --accent: #111216;
    --accent-2: #5a5d66;
    --accent-contrast: #ffffff;
    /* Text on a filled accent-2 or sale colour; a store's own colours get dark text when white would not read (ThemeManager, FRONT-14). */
    --accent-2-contrast: #ffffff;
    --sale-contrast: #ffffff;
    --sale: #d92d20;
    --success: #0f9d58;
    --star: #ffb020;

    --bg: light-dark(#ffffff, #0b0c10);
    --surface: light-dark(#f4f5f7, #14161c);
    --surface-2: light-dark(#eceef2, #1c1f27);
    --elevated: light-dark(#ffffff, #171a21);
    --media-bg: light-dark(#f2f3f5, #e6e8ec);
    --text: light-dark(#0e1016, #f3f4f7);
    --text-2: light-dark(#3a3d47, #c7c9d1);
    --muted: light-dark(#6b6f7b, #9499a6);
    --line: light-dark(rgb(14 16 22 / 0.09), rgb(255 255 255 / 0.09));
    --line-strong: light-dark(rgb(14 16 22 / 0.18), rgb(255 255 255 / 0.18));
    --accent-soft: color-mix(in oklab, var(--accent) 10%, transparent);
    --accent-text: light-dark(var(--accent), color-mix(in oklab, var(--accent) 62%, white));

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-btn: 999px;
    --radius-field: 12px;

    --btn-height: 46px;
    --btn-pad: 1.35rem;
    --btn-weight: 650;
    --btn-size: 0.95rem;
    --btn-transform: none;
    --btn-tracking: 0;

    --shadow-sm: 0 1px 2px rgb(10 12 20 / 0.06), 0 1px 1px rgb(10 12 20 / 0.04);
    --shadow: 0 14px 34px -16px rgb(10 12 20 / 0.28), 0 2px 6px -2px rgb(10 12 20 / 0.06);
    --shadow-lg: 0 32px 70px -24px rgb(10 12 20 / 0.42);

    --container: 1360px;
    --container-narrow: 880px;
    --gutter: clamp(1rem, 3vw, 2.5rem);
    --section: clamp(2.75rem, 5vw, 4.75rem);

    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: var(--font-sans);
    --display-weight: 800;
    --display-tracking: -0.03em;
    --label-tracking: 0.14em;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.95-4.7 4.58 1.1 6.47L12 17.45 6.2 20.5l1.1-6.47L2.6 9.45l6.5-.95z'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

@view-transition {
    navigation: auto;
}

/* Reset ------------------------------------------------------------------------------------------ */

@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    * { margin: 0; }
    html { -webkit-text-size-adjust: none; text-size-adjust: none; interpolate-size: allow-keywords; }
    body { min-height: 100dvh; }
    img, picture, svg, video { display: block; max-width: 100%; }
    img { height: auto; }
    input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
    button { padding: 0; border: 0; background: none; cursor: pointer; }
    a { color: inherit; text-decoration: none; }
    ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }
    h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; text-wrap: balance; }
    p { text-wrap: pretty; }
    s { text-decoration-thickness: 1px; }
    fieldset { min-width: 0; padding: 0; border: 0; }
    address { font-style: normal; }
    table { border-collapse: collapse; }
    [hidden] { display: none !important; }
    dialog, [popover] { padding: 0; border: 0; color: inherit; background: none; max-width: none; max-height: none; }
}

@media (prefers-reduced-motion: no-preference) {
    html:focus-within { scroll-behavior: smooth; }
}

/* Base ------------------------------------------------------------------------------------------- */

@layer base {
    html { background: var(--bg); }

    body {
        display: flex;
        flex-direction: column;
        font-family: var(--font-sans);
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text);
        background: var(--bg);
        font-optical-sizing: auto;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        overflow-wrap: break-word;
    }

    /* Long words (Greek runs ~40% longer than English) wrap instead of spilling out; hyphenation follows the page's lang. */
    :where(p, li, dd, dt, td, th, blockquote, figcaption, label, legend, summary, .prose) { hyphens: auto; hyphenate-limit-chars: 8 4 4; }

    main { flex: 1 0 auto; }
    main:focus { outline: none; }
    html:has(dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }

    h1, h2, h3 {
        font-family: var(--font-display);
        font-weight: var(--display-weight);
        letter-spacing: var(--display-tracking);
        line-height: 1.1;
    }

    ::selection { background: var(--accent); color: var(--accent-contrast); }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

    .icon {
        width: 1.25em;
        height: 1.25em;
        flex: none;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.85;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .icon--sm { width: 1em; height: 1em; }
    .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

    .skip-link {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 100;
        padding: 0.75rem 1.25rem;
        border-radius: var(--radius-btn);
        background: var(--text);
        color: var(--bg);
        font-weight: 600;
        translate: 0 -200%;
        transition: translate 0.2s;
    }
    .skip-link:focus { translate: 0 0; }

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

    .muted { color: var(--muted); }
}

/* Layout ----------------------------------------------------------------------------------------- */

@layer layout {
    .container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
    .container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }

    .section { padding-block: calc(var(--section) / 2); }
    .section--surface { margin-block: calc(var(--section) / 2); padding-block: var(--section); background: var(--surface); }
    .section--flush-top { padding-top: 0; }
    .section--tight-top { padding-top: clamp(1.25rem, 2.5vw, 2rem); }

    .section-head {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem 2rem;
        margin-bottom: clamp(1.25rem, 2.4vw, 2rem);
    }
    .section-title { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.5rem); }
    .section-sub { margin-top: 0.5rem; color: var(--muted); }

    .eyebrow {
        margin-bottom: 0.6rem;
        color: var(--accent-text);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: var(--label-tracking);
        text-transform: uppercase;
    }

    .link-arrow {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.95rem;
        font-weight: 650;
        text-wrap: balance;
        transition: color 0.2s;
    }
    .link-arrow .icon { transition: translate 0.3s var(--ease); }
    .link-arrow:hover { color: var(--accent-text); }
    .link-arrow:hover .icon:last-child { translate: 3px 0; }

    .page-head { margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
    .page-head--center { text-align: center; }
    .page-head__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
    .page-head__count { color: var(--muted); font-weight: 500; }
    .page-head__text { max-width: 60ch; margin-top: 0.6rem; color: var(--muted); }
    .page-head--center .page-head__text { margin-inline: auto; }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(1.25rem, 2.2vw, 2rem) clamp(0.75rem, 1.6vw, 1.25rem);
    }
    .product-grid--spaced { margin-top: clamp(2rem, 4vw, 3rem); }

    /* Stacks never grow wider than their container because of one wide child (long words, button rows). */
    :is(.pdp__info, .pdp__form, .pdp__pricing, .checkout__main, .summary, .cart-table, .content-blocks, .order-details, .track-result,
        .drawer__foot, .mini-lines, .choices, .contact-form, .contact-info, .review-list, .journal-lead__body) { grid-template-columns: minmax(0, 1fr); }
}

/* Components ------------------------------------------------------------------------------------- */

@layer components {
    .btn {
        --btn-bg: var(--text);
        --btn-fg: var(--bg);
        --btn-border: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        min-height: var(--btn-height);
        padding: 0 var(--btn-pad);
        border: 1px solid var(--btn-border);
        border-radius: var(--radius-btn);
        background: var(--btn-bg);
        color: var(--btn-fg);
        padding-block: 0.5em;
        font-size: var(--btn-size);
        font-weight: var(--btn-weight);
        line-height: 1.2;
        letter-spacing: var(--btn-tracking);
        text-align: center;
        text-transform: var(--btn-transform);
        text-wrap: balance;
        transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
    }
    .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
    .btn:active { transform: translateY(0) scale(0.98); }
    .btn .icon { width: 1.15em; height: 1.15em; }
    .btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-contrast); }
    .btn--accent:hover { --btn-bg: color-mix(in oklab, var(--accent) 86%, black); }
    .btn--light { --btn-bg: #fff; --btn-fg: #0a0b0f; }
    .btn--glass {
        --btn-bg: rgb(255 255 255 / 0.1);
        --btn-fg: #fff;
        --btn-border: rgb(255 255 255 / 0.28);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }
    .btn--glass:hover { --btn-bg: rgb(255 255 255 / 0.2); }
    .btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-border: var(--line-strong); }
    .btn--ghost:hover { --btn-bg: var(--surface); box-shadow: none; }
    .btn--sm { min-height: 40px; padding-inline: 1rem; font-size: 0.875rem; }
    .btn--lg { min-height: calc(var(--btn-height) + 8px); padding-inline: calc(var(--btn-pad) + 0.4rem); font-size: calc(var(--btn-size) + 0.05rem); }
    .btn--block { width: 100%; }
    .btn:disabled, .btn.is-loading { opacity: 0.6; pointer-events: none; }

    .icon-btn {
        position: relative;
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        color: var(--text);
        transition: background-color 0.2s;
    }
    .icon-btn:hover { background: var(--surface); }
    .icon-btn .icon { width: 22px; height: 22px; }

    .round-btn {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-btn);
        background: var(--bg);
        color: var(--text);
        transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
    }
    .round-btn:hover:not(:disabled) { border-color: var(--text); background: var(--text); color: var(--bg); }
    .round-btn:disabled { opacity: 0.35; cursor: default; }

    .count-badge {
        position: absolute;
        top: 3px;
        right: 1px;
        display: grid;
        place-items: center;
        min-width: 19px;
        height: 19px;
        padding-inline: 5px;
        border: 2px solid var(--bg);
        border-radius: 999px;
        background: var(--sale);
        color: var(--sale-contrast);
        font-size: 0.66rem;
        font-weight: 750;
        line-height: 1;
    }

    .pill {
        display: inline-flex;
        align-items: center;
        height: 24px;
        padding-inline: 0.6rem;
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 750;
        letter-spacing: 0.01em;
        white-space: nowrap;
        max-width: 100%;
    }
    .pill--sale { background: var(--sale); color: var(--sale-contrast); }
    .pill--new { background: #0a0b0f; color: #fff; }
    .pill--best { background: #fff; color: #0a0b0f; box-shadow: var(--shadow-sm); }

    .stars {
        --size: 14px;
        display: inline-block;
        flex: none;
        width: calc(var(--size) * 5);
        height: var(--size);
        background: linear-gradient(90deg, var(--star) calc(var(--rating, 0) / 5 * 100%), var(--line-strong) 0);
        -webkit-mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x;
        mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x;
    }
    .stars--lg { --size: 22px; }

    .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.55rem; }
    .price > * { min-width: 0; }
    .price__now { color: var(--text); font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
    .price--sale .price__now { color: var(--sale); }
    .price__was { color: var(--muted); font-size: 0.88rem; }
    .price__from { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
    .price__save { padding: 0.25rem 0.6rem; white-space: nowrap; border-radius: 999px; background: color-mix(in oklab, var(--sale) 12%, transparent); color: var(--sale); font-size: 0.82rem; font-weight: 700; }
    .price--lg .price__now { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); }
    .price--lg .price__was { font-size: 1rem; }
    .price__ref { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.82rem; }
    .price__unit { flex-basis: 100%; color: var(--muted); font-size: 0.78rem; font-weight: 500; }

    .meter { height: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
    .meter > span {
        display: block;
        width: var(--value, 0%);
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
        transition: width 0.6s var(--ease);
    }

    .popover-menu {
        position: fixed;
        inset: auto;
        top: 46px;
        right: max(var(--gutter), (100vw - var(--container)) / 2);
        min-width: 220px;
        margin: 0;
        padding: 0.5rem;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--elevated);
        color: var(--text);
        box-shadow: var(--shadow-lg);
    }
    .popover-menu:popover-open { animation: pop-in 0.2s var(--ease); }
    .popover-menu__title { padding: 0.4rem 0.7rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
    .popover-menu a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.7rem; border-radius: 10px; font-size: 0.92rem; font-weight: 550; }
    .popover-menu a:hover { background: var(--surface); }
    .popover-menu a[aria-current] { color: var(--accent-text); }

    .toasts {
        position: fixed;
        inset: auto 0 max(1.25rem, env(safe-area-inset-bottom)) 0;
        z-index: 90;
        display: grid;
        justify-items: center;
        gap: 0.5rem;
        pointer-events: none;
    }
    .toast {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.85rem 1.15rem;
        border-radius: 14px;
        background: #111216;
        color: #fff;
        font-size: 0.92rem;
        font-weight: 600;
        box-shadow: var(--shadow-lg);
        pointer-events: auto;
        animation: toast-in 0.4s var(--ease) both;
    }
    .toast .icon { color: #4ade80; }
    .toast--error .icon { color: #ff7b7b; }
    .toast.is-leaving { animation: toast-out 0.3s ease forwards; }

    .qty { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); }
    .qty button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-btn); transition: background-color 0.15s; }
    .qty button:hover:not(:disabled) { background: var(--surface); }
    .qty button:disabled { opacity: 0.35; cursor: default; }
    .qty .icon { width: 15px; height: 15px; }
    .qty output, .qty input { width: 32px; border: 0; background: none; font-size: 0.9rem; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
    .qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
    .qty input:focus-visible { outline: none; }
    .qty--lg { height: calc(var(--btn-height) + 8px); }
    .qty--lg button { width: 46px; height: 100%; }
    .qty--lg input { width: 38px; font-size: 1rem; }

    .tabs { display: inline-flex; gap: 0.25rem; max-width: 100%; padding: 0.3rem; overflow-x: auto; border-radius: var(--radius-btn); background: var(--surface); scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab {
        height: 40px;
        padding-inline: 1.1rem;
        border-radius: var(--radius-btn);
        color: var(--muted);
        font-size: 0.9rem;
        font-weight: 650;
        white-space: nowrap;
        transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
    }
    .tab:hover { color: var(--text); }
    .tab[aria-selected="true"] { background: var(--elevated); color: var(--text); box-shadow: var(--shadow-sm); }
    [role="tabpanel"] { animation: fade-up 0.5s var(--ease); }

    .carousel {
        --per-view: 4;
        --gap: clamp(0.75rem, 1.6vw, 1.25rem);
        display: grid;
        grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
        grid-auto-flow: column;
        gap: var(--gap);
        padding-bottom: 0.25rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .carousel::-webkit-scrollbar { display: none; }
    .carousel__item { min-width: 0; scroll-snap-align: start; }
    .carousel__nav { display: flex; align-items: center; gap: 0.5rem; }
    .carousel__nav .link-arrow { margin-right: 0.75rem; }

    /* Product card (default) */
    .product { position: relative; display: flex; flex-direction: column; container-type: inline-size; }
    .product__media { position: relative; isolation: isolate; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--media-bg); }
    .product__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.7s var(--ease); }
    .product:hover .product__media img { transform: scale(1.06); }
    .product__badges { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
    .product__wish {
        position: absolute;
        top: 0.55rem;
        right: 0.55rem;
        z-index: 3;
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 999px;
        background: rgb(255 255 255 / 0.92);
        color: #0a0b0f;
        box-shadow: var(--shadow-sm);
        transition: transform 0.25s var(--spring), color 0.2s;
    }
    .product__wish:hover { transform: scale(1.1); }
    .product__wish .icon { width: 18px; height: 18px; }
    [data-wishlist][aria-pressed="true"] { color: var(--sale); }
    [data-wishlist][aria-pressed="true"] .icon { fill: currentColor; }
    .product__body { display: flex; flex: 1; flex-direction: column; gap: 0.3rem; min-width: 0; padding: 0.95rem 0.2rem 0; }
    .product__brand { overflow: hidden; color: var(--muted); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
    .product__title {
        display: -webkit-box;
        min-height: 2.8em;
        overflow: hidden;
        font-family: var(--font-sans);
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: -0.005em;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .product__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
    .product:hover .product__title a { color: var(--accent-text); }
    .product__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.8rem; }
    .product__score { color: var(--text); font-weight: 700; }
    .product__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.55rem; }
    .product__soldout { color: var(--muted); font-size: 0.82rem; font-weight: 650; }
    .product__note { min-width: 0; margin: auto 0 0; color: var(--muted); font-size: 0.8rem; font-weight: 650; line-height: 1.35; }
    .product__note + .product__foot { margin-top: 0; }

    .add-btn {
        position: relative;
        z-index: 2;
        display: grid;
        flex: none;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        background: var(--text);
        color: var(--bg);
        transition: transform 0.3s var(--spring), background-color 0.2s, color 0.2s;
    }
    .add-btn:hover { background: var(--accent); color: var(--accent-contrast); transform: scale(1.08); }
    .add-btn .icon { width: 20px; height: 20px; }
    .add-btn__done { display: none; }
    .add-btn.is-added { background: var(--success); color: #fff; }
    .add-btn.is-added .icon { display: none; }
    .add-btn.is-added .add-btn__done { display: block; }
    .add-btn.is-loading { opacity: 0.7; pointer-events: none; }

    @container (max-width: 210px) {
        .product__title { font-size: 0.875rem; }
        .price__now { font-size: 1.05rem; }
        .price__was { font-size: 0.8rem; }
        .add-btn { width: 38px; height: 38px; }
        .product__reviews { display: none; }
    }

    .swatch {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: var(--swatch, #ccc);
        box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
    }

    /* Search suggestions */
    .search__panel {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        z-index: 60;
        display: none;
        max-height: min(70vh, 560px);
        padding: 0.5rem;
        overflow: auto;
        overscroll-behavior: contain;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--elevated);
        color: var(--text);
        box-shadow: var(--shadow-lg);
        text-align: left;
    }
    .search.is-open .search__panel { display: block; animation: pop-in 0.2s var(--ease); }
    .suggest__heading { padding: 0.6rem 0.75rem 0.35rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
    .suggest__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 0.6rem 0.4rem; }
    .suggest__chip { padding: 0.4rem 0.85rem; border-radius: var(--radius-btn); background: var(--surface); font-size: 0.85rem; font-weight: 600; }
    .suggest__chip:hover, .suggest__chip[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-text); }
    .suggest__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; padding: 0.5rem 0.6rem; border-radius: 12px; }
    .suggest__item:hover, .suggest__item[aria-selected="true"] { background: var(--surface); }
    .suggest__item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--media-bg); }
    .suggest__brand { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
    .suggest__name { display: block; overflow: hidden; font-size: 0.9rem; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
    .suggest__name mark { background: none; color: var(--accent-text); }
    .suggest__price { font-size: 0.9rem; font-weight: 750; text-align: right; }
    .suggest__price s { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
    .suggest__all {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        margin-top: 0.35rem;
        padding: 0.75rem;
        border-radius: 12px;
        background: var(--accent-soft);
        color: var(--accent-text);
        font-size: 0.9rem;
        font-weight: 650;
    }
    .suggest__all[aria-selected="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
    .suggest__empty { padding: 1.25rem; color: var(--muted); text-align: center; }

    /* Priority navigation (header bars): scripts move what does not fit into "More"; without them the bar scrolls. */
    .pnav { display: flex; align-items: center; min-width: 0; }
    .pnav__list { display: flex; flex: 0 1 auto; align-items: center; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
    .pnav__list::-webkit-scrollbar { display: none; }
    .pnav__list > li, .pnav__more { flex: none; }
    .pnav[data-pnav-ready] .pnav__list { overflow: visible; }
    .pnav__toggle .icon { width: 1em; height: 1em; }
    .pnav__menu { right: auto; min-width: 220px; max-width: min(340px, 100vw - 24px); }
    .pnav__menu button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.6rem 0.7rem; border-radius: 10px; font-size: 0.92rem; font-weight: 550; text-align: start; }
    .pnav__menu button:hover { background: var(--surface); }
    /* Rows that scroll sideways fade out at the end while there is more to see. */
    @supports (animation-timeline: scroll()) {
        .pnav:not([data-pnav-ready]) .pnav__list, .subnav, .tabs { animation: pnav-fade linear both; animation-timeline: scroll(self inline); }
    }

    /* Mega menu positioning (content is styled by the theme) */
    .mega {
        position: fixed;
        inset: auto;
        top: var(--mega-top, 140px);
        left: 50%;
        translate: -50% 0;
        width: min(100vw - 2 * var(--gutter), var(--container));
        max-height: calc(100dvh - var(--mega-top, 140px) - 16px);
        margin: 0;
        overflow: auto;
        color: var(--text);
    }

    /* Drawers (cart, menus, filters) */
    .drawer {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(440px, 100vw);
        height: 100dvh;
        margin: 0;
        background: var(--bg);
        color: var(--text);
        box-shadow: var(--shadow-lg);
        translate: 100% 0;
        transition: translate 0.45s var(--ease), display 0.45s allow-discrete, overlay 0.45s allow-discrete;
    }
    .drawer--left { inset: 0 auto 0 0; width: min(400px, 100vw); translate: -100% 0; }
    .drawer[open] { display: flex; flex-direction: column; translate: 0 0; }
    .drawer::backdrop, .modal::backdrop { background: rgb(5 6 10 / 0); transition: background-color 0.45s, display 0.45s allow-discrete, overlay 0.45s allow-discrete; }
    .drawer[open]::backdrop, .modal[open]::backdrop { background: rgb(5 6 10 / 0.5); }
    .drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
    .drawer__title { font-size: 1.25rem; letter-spacing: -0.02em; }
    .drawer__count { color: var(--muted); font-weight: 600; }
    .drawer__body { flex: 1; padding: 1rem 1.25rem; overflow-y: auto; overscroll-behavior: contain; }
    .drawer__foot { display: grid; gap: 0.65rem; padding: 1.1rem 1.25rem max(1.1rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
    .drawer__foot--muted { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: var(--muted); font-size: 0.88rem; }
    .drawer__foot--muted a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text); font-weight: 650; }

    .modal {
        width: min(720px, 100vw - 2rem);
        max-height: min(86dvh, 820px);
        margin: auto;
        overflow: auto;
        border-radius: var(--radius-lg);
        background: var(--bg);
        color: var(--text);
        box-shadow: var(--shadow-lg);
    }
    .modal[open] { animation: pop-in 0.3s var(--ease); }
    .modal__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--bg); }
    .modal__title { font-size: 1.3rem; }
    .modal__body { display: grid; gap: 1rem; padding: 1.4rem; }
    .modal__text { color: var(--text-2); }
    .modal__note { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.88rem; }

    .ship-meter { display: grid; gap: 0.55rem; padding: 0.9rem 1.25rem; background: var(--surface); }
    .ship-meter--inline { margin-bottom: 1.25rem; border-radius: var(--radius); }
    .ship-meter__text { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; font-weight: 600; }
    .ship-meter__text .icon { color: var(--accent-text); }
    .ship-meter.is-qualified .ship-meter__text, .ship-meter.is-qualified .icon { color: var(--success); }
    .ship-meter.is-qualified .meter > span { background: var(--success); }

    .cart-empty { display: grid; justify-items: center; gap: 0.6rem; padding: 3rem 1rem; color: var(--muted); text-align: center; }
    .cart-empty__icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 0.5rem; border-radius: 50%; background: var(--surface); color: var(--text); }
    .cart-empty__icon .icon { width: 30px; height: 30px; }
    .cart-empty__title { color: var(--text); font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--display-weight); }
    .cart-empty .btn { margin-top: 0.75rem; }
    .cart-lines { display: grid; gap: 1rem; }
    .cart-line {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr) auto;
        align-items: start;
        gap: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--line);
        animation: fade-up 0.35s var(--ease);
    }
    .cart-line__media { display: block; width: 88px; height: 88px; overflow: hidden; border-radius: var(--radius-sm); background: var(--media-bg); }
    .cart-line__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
    .cart-line__brand { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
    .cart-line__name { display: -webkit-box; margin: 0.15rem 0 0.2rem; overflow: hidden; font-size: 0.9rem; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .cart-line__variant { display: block; margin-bottom: 0.55rem; color: var(--muted); font-size: 0.8rem; }
    .cart-line__variant:empty { display: none; }
    .cart-line__info { min-width: 0; }
    .cart-line__end { display: grid; justify-items: end; gap: 0.6rem; white-space: nowrap; }
    .cart-line__end strong { font-size: 0.95rem; font-weight: 800; }
    .cart-line__remove { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
    .cart-line__remove:hover { background: color-mix(in oklab, var(--sale) 10%, transparent); color: var(--sale); }
    .cart-line__remove .icon { width: 17px; height: 17px; }
    .cart-total { display: flex; align-items: baseline; justify-content: space-between; }
    .cart-total strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
    .cart-note { margin-top: -0.3rem; color: var(--muted); font-size: 0.8rem; }

    .mnav { display: grid; gap: 0.25rem; }
    .mnav__group summary { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.5rem; border-radius: 12px; font-weight: 650; list-style: none; cursor: pointer; }
    .mnav__group summary::-webkit-details-marker { display: none; }
    .mnav__group summary:hover { background: var(--surface); }
    .mnav__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface); color: var(--accent-text); }
    .mnav__icon .icon { width: 19px; height: 19px; }
    .mnav__label { flex: 1; }
    .mnav__chevron { color: var(--muted); transition: rotate 0.3s var(--ease); }
    .mnav__group[open] .mnav__chevron { rotate: 180deg; }
    .mnav__group ul { display: grid; gap: 0.1rem; padding: 0.25rem 0 0.75rem calc(38px + 1.25rem); }
    .mnav__group ul a { display: block; padding: 0.4rem 0; color: var(--text-2); font-size: 0.93rem; }
    .mnav__group ul a:hover { color: var(--accent-text); }
    .mnav__links { display: grid; gap: 0.15rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
    .mnav__links a { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.5rem; border-radius: 12px; font-weight: 600; }
    .mnav__links a:hover { background: var(--surface); }
    .mnav__links .icon { color: var(--muted); }

    .breadcrumbs { margin-bottom: 1rem; color: var(--muted); font-size: 0.84rem; }
    .breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
    .breadcrumbs li { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; }
    .breadcrumbs li > :not(.icon) { overflow-wrap: anywhere; }
    .breadcrumbs a:hover { color: var(--text); }
    .breadcrumbs .icon { width: 14px; height: 14px; }
    .breadcrumbs [aria-current] { color: var(--text-2); }

    /* Forms */
    .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .field { display: grid; gap: 0.4rem; align-content: start; }
    .field--wide { grid-column: 1 / -1; }
    .field__label { color: var(--text-2); font-size: 0.85rem; font-weight: 600; }
    .field__label em { color: var(--muted); font-style: normal; font-weight: 500; }
    .field__input {
        width: 100%;
        min-height: 48px;
        padding: 0.7rem 0.95rem;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-field);
        background: var(--bg);
        color: var(--text);
        font-size: 1rem;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    textarea.field__input { min-height: 96px; resize: vertical; }
    .field__input::placeholder { color: var(--muted); }
    .field__input, .search input { text-overflow: ellipsis; }
    .field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
    .field__input[aria-invalid="true"] { border-color: var(--sale); }
    .field__error { display: flex; align-items: center; gap: 0.35rem; color: var(--sale); font-size: 0.82rem; font-weight: 600; }
    .field__error .icon { width: 15px; height: 15px; }
    .field__hint { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.82rem; }
    .field--compact .field__input { min-height: 42px; padding: 0.5rem 0.75rem; font-size: 0.92rem; }
    .select { position: relative; display: block; }
    .select select { padding-right: 2.5rem; appearance: none; cursor: pointer; }
    .select .icon { position: absolute; top: 50%; right: 0.9rem; width: 18px; height: 18px; color: var(--muted); translate: 0 -50%; pointer-events: none; }

    .check { display: flex; align-items: center; gap: 0.65rem; padding: 0.35rem 0; cursor: pointer; font-size: 0.92rem; }
    .check input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); cursor: pointer; }
    .check__label { flex: 1; }
    .check__count { color: var(--muted); font-size: 0.8rem; }
    .check--plain { margin-top: 0.75rem; }
    .check a { text-decoration: underline; text-underline-offset: 2px; }

    .chip-check, .swatch-check { position: relative; cursor: pointer; }
    .chip-check input, .swatch-check input, .variant__value input, .choice input, .segmented input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
    .chip-check span {
        display: grid;
        place-items: center;
        min-width: 46px;
        min-height: 40px;
        padding: 0.3rem 0.75rem;
        line-height: 1.2;
        text-align: center;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-field);
        font-size: 0.86rem;
        font-weight: 600;
        transition: border-color 0.15s, background-color 0.15s, color 0.15s;
    }
    .chip-check:hover span { border-color: var(--text); }
    .chip-check input:checked + span { border-color: var(--text); background: var(--text); color: var(--bg); }
    .chip-check input:focus-visible + span, .swatch-check input:focus-visible + .swatch { outline: 2px solid var(--accent); outline-offset: 2px; }
    .swatch-check { display: grid; justify-items: center; align-content: start; gap: 0.3rem; min-width: 52px; max-width: 96px; text-align: center; }
    .swatch-check .swatch { width: 32px; height: 32px; transition: box-shadow 0.15s; }
    .swatch-check input:checked + .swatch { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12), 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
    .swatch-check__label { max-width: 100%; color: var(--muted); font-size: 0.72rem; line-height: 1.25; }

    .choices { display: grid; gap: 0.6rem; }
    .choice {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.9rem;
        padding: 1rem 1.1rem;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius);
        cursor: pointer;
        transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    }
    .choice::before {
        content: "";
        width: 20px;
        height: 20px;
        flex: none;
        border: 1.5px solid var(--line-strong);
        border-radius: 50%;
        transition: border 0.15s;
    }
    .choice:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--surface); }
    .choice:has(input:checked)::before { border: 6px solid var(--text); }
    .choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
    .choice__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--bg); color: var(--accent-text); box-shadow: var(--shadow-sm); }
    .choice__body { display: grid; flex: 1; gap: 0.1rem; min-width: 0; }
    .choice__body strong { font-size: 0.95rem; }
    .choice__body span { color: var(--muted); font-size: 0.84rem; }
    .choice__price { font-weight: 700; white-space: nowrap; }
    .choice.is-disabled { opacity: 0.5; cursor: not-allowed; }
    .checkout__refresh { margin-bottom: 0.75rem; }
    .checkout-page .summary .ship-meter { margin-top: 0.75rem; }

    .segmented { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; max-width: 100%; margin-bottom: 1rem; padding: 0.3rem; border-radius: var(--radius-btn); background: var(--surface); }
    .segmented label { position: relative; cursor: pointer; }
    .segmented span { display: block; padding: 0.55rem 1.2rem; border-radius: var(--radius-btn); color: var(--muted); font-size: 0.9rem; font-weight: 650; transition: background-color 0.2s, color 0.2s; }
    .segmented input:checked + span { background: var(--elevated); color: var(--text); box-shadow: var(--shadow-sm); }

    .panel { padding: clamp(1.25rem, 2.6vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--elevated); }
    .panel__title { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.1rem; font-size: 1.15rem; letter-spacing: -0.02em; }
    legend.panel__title { float: left; width: 100%; padding: 0; }
    legend.panel__title ~ * { clear: both; }
    .panel__title .icon { color: var(--accent-text); }
    .panel__step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); font-family: var(--font-sans); font-size: 0.8rem; font-weight: 750; letter-spacing: 0; }

    .alert { display: flex; align-items: center; gap: 0.6rem; min-width: 0; margin-bottom: 1.25rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); font-weight: 600; }
    .alert--error { background: color-mix(in oklab, var(--sale) 10%, var(--bg)); color: var(--sale); }
    .notice { display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; margin-top: 0.9rem; padding: 0.55rem 0.9rem; border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2); font-size: 0.85rem; }
    .notice--success { background: color-mix(in oklab, var(--success, #1f8a4c) 12%, var(--surface)); color: var(--success, #1f8a4c); }
    .notice--error { background: color-mix(in oklab, var(--sale, #c2410c) 12%, var(--surface)); color: var(--sale, #c2410c); }
    .order-pay { margin-top: 1.1rem; }
    .order-pay .btn { gap: 0.5rem; }
    .payment-handoff { display: grid; justify-items: center; gap: 0.75rem; padding-block: 3rem; text-align: center; }
    .payment-handoff__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--surface); color: var(--accent); }
    .payment-handoff__icon .icon { width: 1.6rem; height: 1.6rem; }
    .payment-handoff__title { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
    .payment-handoff__note { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
    .notice .icon { color: var(--accent-text); width: 18px; height: 18px; }

    .empty-state { display: grid; justify-items: center; gap: 0.75rem; max-width: 520px; margin: clamp(1.5rem, 5vw, 3rem) auto; color: var(--muted); text-align: center; }
    .empty-state__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--surface); color: var(--text); }
    .empty-state__icon .icon { width: 30px; height: 30px; }
    .empty-state__title { color: var(--text); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
    .empty-state .btn { margin-top: 0.5rem; }

    .accordion { display: grid; border-top: 1px solid var(--line); }
    .accordion__item { border-bottom: 1px solid var(--line); }
    .accordion__item summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1.05rem 0.1rem;
        font-weight: 650;
        list-style: none;
        cursor: pointer;
    }
    .accordion__item summary::-webkit-details-marker { display: none; }
    .accordion__item summary .icon { color: var(--muted); transition: rotate 0.3s var(--ease); }
    .accordion__item[open] summary .icon { rotate: 180deg; }
    .accordion__body { padding: 0 0.1rem 1.25rem; color: var(--text-2); }

    .prose { color: var(--text-2); }
    .prose > * + * { margin-top: 0.9rem; }
    .prose h2 { margin-top: 2rem; color: var(--text); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
    .prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
    .prose blockquote { margin-block: 1.75rem; padding-left: 1.25rem; border-left: 3px solid var(--accent); color: var(--text); font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.4; }

    /* Formatted product descriptions (RichText): lists, headings, tables and pictures in the theme's colours. */
    .rich-text h2, .rich-text h3, .rich-text h4 { margin-top: 1.5rem; color: var(--text); font-weight: 700; line-height: 1.3; }
    .rich-text h2 { font-size: 1.2rem; }
    .rich-text h3 { font-size: 1.08rem; }
    .rich-text h4 { font-size: 1rem; }
    .rich-text :is(ul, ol) { padding-left: 1.3rem; }
    .rich-text li + li { margin-top: 0.3rem; }
    .rich-text li > :is(ul, ol) { margin-top: 0.3rem; }
    .rich-text strong { color: var(--text); font-weight: 650; }
    .rich-text img { width: auto; max-width: 100%; height: auto; border-radius: var(--radius-sm, 8px); }
    .rich-text figure { margin-block: 1rem; }
    .rich-text figcaption { margin-top: 0.4rem; color: var(--muted); font-size: 0.86rem; }
    .rich-text hr { border: 0; border-top: 1px solid var(--line); }
    .rich-text dl { display: grid; gap: 0.25rem; }
    .rich-text dt { color: var(--text); font-weight: 650; }
    .rich-text__table { max-width: 100%; overflow-x: auto; }
    .rich-text table { width: 100%; min-width: min(100%, 420px); font-size: 0.92rem; }
    .rich-text :is(th, td) { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
    .rich-text th { color: var(--text); font-weight: 650; }
    .rich-text caption { padding-bottom: 0.4rem; color: var(--muted); font-size: 0.86rem; text-align: left; }
    .rich-text tr:last-child > :is(th, td) { border-bottom: 0; }
    .ticks, .dots { display: grid; gap: 0.55rem; }
    .ticks li { display: flex; align-items: flex-start; gap: 0.55rem; }
    .ticks .icon { width: 18px; height: 18px; margin-top: 0.2rem; color: var(--success); }
    .dots li { position: relative; padding-left: 1.1rem; }
    .dots li::before { content: ""; position: absolute; top: 0.65em; left: 0.1rem; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; }

    .specs { width: 100%; font-size: 0.92rem; }
    .specs th, .specs td { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
    .specs th { width: 40%; color: var(--muted); font-weight: 600; }
    .specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

    .table-scroll { overflow-x: auto; }
    .size-table { width: 100%; min-width: 480px; font-size: 0.9rem; text-align: center; }
    .size-table th, .size-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); }
    .size-table thead th { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
    .size-table tbody th { font-weight: 750; }

    .status-card {
        display: grid;
        justify-items: center;
        gap: 0.9rem;
        max-width: 660px;
        margin-inline: auto;
        padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
        border-radius: var(--radius-xl);
        background: var(--surface);
        text-align: center;
    }
    .status-card__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 0.5rem; border-radius: 20px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-contrast); }
    .status-card__icon .icon { width: 28px; height: 28px; }
    .status-card__code {
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-family: var(--font-display);
        font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem);
        font-weight: var(--display-weight);
        line-height: 1;
        letter-spacing: -0.06em;
    }
    .status-card__title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); }
    .status-card__text { max-width: 46ch; color: var(--muted); }
    .status-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; margin-top: 0.75rem; }
    .status-card__debug { width: 100%; max-height: 360px; padding: 1rem; overflow: auto; border-radius: 12px; background: #0a0b0f; color: #fca5a5; font-size: 0.75rem; text-align: left; white-space: pre-wrap; }

    .demo-switch { position: relative; z-index: 52; display: flex; justify-content: center; padding: 0.3rem var(--gutter); background: #111216; }
    .demo-switch__toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        height: 34px;
        padding: 0 0.95rem;
        border-radius: 999px;
        background: rgb(255 255 255 / 0.1);
        color: #fff;
        font-family: system-ui, sans-serif;
        font-size: 0.86rem;
        font-weight: 650;
        letter-spacing: 0;
        text-transform: none;
        transition: background-color 0.2s;
    }
    .demo-switch__toggle:hover { background: rgb(255 255 255 / 0.18); }
    .demo-switch--back { justify-content: space-between; gap: 1rem; }
    .demo-switch__back { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; color: #d4d7de; font-family: system-ui, sans-serif; font-size: 0.86rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
    .demo-switch__back:hover { color: #fff; }
    .demo-switch__back .icon { width: 16px; height: 16px; flex: none; }
    .demo-switch__toggle .icon { width: 18px; height: 18px; }
    .demo-switch__menu {
        position: fixed;
        inset: 50px auto auto 50%;
        translate: -50% 0;
        width: min(340px, 100vw - 2rem);
        margin: 0;
        padding: 0.6rem;
        border-radius: 18px;
        background: #ffffff;
        color: #111216;
        font-family: system-ui, sans-serif;
        letter-spacing: 0;
        box-shadow: 0 30px 70px -20px rgb(0 0 0 / 0.45);
    }
    .demo-switch__menu:popover-open { animation: pop-in 0.25s var(--ease); }
    .demo-switch__title { padding: 0.5rem 0.6rem; color: #6b6f7b; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
    .demo-switch__item { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem; border-radius: 12px; transition: background-color 0.15s; }
    .demo-switch__item:hover, .demo-switch__item.is-active { background: #f2f3f5; }
    .demo-switch__item > .icon { margin-left: auto; color: #0f9d58; }
    .demo-switch__swatch { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--swatch); color: #fff; }
    .demo-switch__swatch .icon { width: 20px; height: 20px; }
    .demo-switch__text { display: grid; line-height: 1.3; }
    .demo-switch__text strong { font-size: 0.95rem; }
    .demo-switch__text span { color: #6b6f7b; font-size: 0.8rem; }
    .demo-switch__note { padding: 0.6rem 0.6rem 0.35rem; color: #6b6f7b; font-size: 0.76rem; line-height: 1.45; }


    /* Shared home sections */
    .usps-section { padding-top: clamp(0.75rem, 1.2vw, 1rem); }
    .usps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.5rem, 1vw, 0.9rem); }
    .usp { display: flex; align-items: center; gap: 0.9rem; min-width: 0; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--surface); }
    .usp__icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--elevated); color: var(--accent-text); box-shadow: var(--shadow-sm); }
    .usp__text { min-width: 0; }
    .usp strong { display: block; font-size: 0.93rem; font-weight: 700; line-height: 1.3; }
    .usp__text > span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

    .brands { padding-block: calc(var(--section) / 2); }
    .brands__title { margin-bottom: 1.6rem; padding-inline: var(--gutter); color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: var(--label-tracking); text-align: center; text-transform: uppercase; }
    .marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
    .marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
    .marquee:hover .marquee__track { animation-play-state: paused; }
    .marquee__list { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); padding-right: clamp(2.5rem, 5vw, 4.5rem); }
    .brand { display: block; color: var(--text); font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; opacity: 0.38; transition: opacity 0.25s, color 0.25s; }
    .brand:hover { color: var(--accent-text); opacity: 1; }

    .services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1rem); }
    .service { display: flex; flex-direction: column; gap: 0.7rem; padding: clamp(1.25rem, 2vw, 1.75rem); border: 1px solid transparent; border-radius: var(--radius-lg); background: var(--surface); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s, border-color 0.35s; }
    .service:hover { transform: translateY(-4px); border-color: var(--line); background: var(--elevated); box-shadow: var(--shadow); }
    .service__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 0.35rem; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-contrast); }
    .service__title { font-size: 1.12rem; letter-spacing: -0.02em; }
    .service p { color: var(--muted); font-size: 0.92rem; }

    .reviews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
    .reviews__score { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
    .reviews__score strong { font-family: var(--font-display); font-size: clamp(3.5rem, 2.5rem + 3vw, 5.25rem); font-weight: var(--display-weight); line-height: 1; letter-spacing: -0.05em; }
    .reviews__score > span { display: grid; gap: 0.4rem; }
    .reviews__count { color: var(--muted); font-size: 0.88rem; }
    .review-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .review { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--elevated); box-shadow: var(--shadow-sm); }
    .review__top { display: flex; align-items: center; justify-content: space-between; }
    .review__quote { width: 30px; height: 30px; color: color-mix(in oklab, var(--accent) 24%, transparent); }
    .review blockquote { flex: 1; color: var(--text-2); font-size: 0.95rem; line-height: 1.65; }
    .review__author { display: flex; align-items: center; gap: 0.75rem; }
    .avatar { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, oklch(0.66 0.19 var(--hue)), oklch(0.5 0.21 calc(var(--hue) + 40))); color: #fff; font-weight: 800; }
    .review__author strong { display: block; font-size: 0.93rem; }
    .review__meta { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--muted); font-size: 0.8rem; }
    .review__meta .icon { width: 15px; height: 15px; color: var(--success); }
    .review__product { padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--accent-text); font-size: 0.8rem; font-weight: 650; }

    .articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
    .article { display: flex; flex-direction: column; gap: 0.8rem; }
    .article__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
    .article__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
    .article:hover .article__media img { transform: scale(1.05); }
    .article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; color: var(--muted); font-size: 0.8rem; }
    .article__tag { padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.75rem; font-weight: 700; }
    .article__title { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.02em; }
    .article__title a { transition: color 0.2s; }
    .article__title a:hover { color: var(--accent-text); }
    .article__excerpt { color: var(--muted); font-size: 0.93rem; }

    .newsletter { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
    .newsletter__eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; }
    .newsletter__title { margin: 0.75rem 0; font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
    .newsletter__text { max-width: 48ch; }
    .newsletter__form { display: flex; gap: 0.4rem; }
    .newsletter__form input { flex: 1; min-width: 0; padding: 0 1.1rem; border: 0; outline: 0; background: none; color: inherit; font-size: 1rem; }
    .newsletter__message { min-height: 1.6em; margin-top: 0.8rem; font-size: 0.92rem; font-weight: 600; }
    .newsletter__note { font-size: 0.8rem; opacity: 0.7; }

    /* Footer structure (colours come from the theme) */
    .site-footer { margin-top: calc(var(--section) / 2); padding-top: clamp(3rem, 6vw, 5rem); background: var(--footer-bg, var(--surface)); color: var(--footer-text, var(--text-2)); font-size: 0.92rem; }
    .footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
    .footer-brand > p { max-width: 36ch; margin: 1.25rem 0 1.5rem; }
    .footer-contact { display: grid; gap: 0.7rem; }
    .footer-contact li { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
    .footer-contact a, .footer-contact span { min-width: 0; overflow-wrap: anywhere; }
    .footer-contact .icon { width: 17px; height: 17px; color: var(--footer-accent, var(--accent-text)); }
    .footer-col__title { margin-bottom: 1.1rem; color: var(--footer-heading, var(--text)); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
    .footer-col ul { display: grid; gap: 0.65rem; }
    .site-footer a { transition: color 0.2s, background-color 0.2s; }
    .site-footer a:hover { color: var(--footer-heading, var(--text)); }
    .footer-col .socials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
    .socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--footer-line, var(--line-strong)); border-radius: 50%; color: var(--footer-heading, var(--text)); }
    .socials a:hover { background: var(--footer-heading, var(--text)); color: var(--footer-bg, var(--bg)); }
    .socials .icon { width: 19px; height: 19px; }
    .payments, .footer-col .payments { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .pay { display: inline-grid; place-items: center; height: 28px; padding: 0 0.55rem; border-radius: 6px; background: #fff; color: #0a0b0f; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
    .pay--visa { color: #1a1f71; font-size: 0.78rem; font-style: italic; letter-spacing: 0.04em; }
    .pay--paypal { color: #003087; }
    .pay--mc { display: inline-flex; align-items: center; }
    .pay--mc span { width: 15px; height: 15px; border-radius: 50%; background: #eb001b; }
    .pay--mc span + span { margin-left: -6px; background: #f79e1b; mix-blend-mode: multiply; }
    .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: 1.5rem; border-top: 1px solid var(--footer-line, var(--line)); font-size: 0.82rem; }
    .footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
    .footer-credit { opacity: 0.65; }
    .footer-identity { flex-basis: 100%; order: 3; opacity: 0.75; font-size: 0.78rem; line-height: 1.6; }

    /* Announcement bar (colours come from the theme) */
    .announce { position: relative; z-index: 51; background: var(--announce-bg, var(--text)); color: var(--announce-text, var(--bg)); font-size: 0.8rem; }
    .announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 40px; }
    .announce__messages { display: grid; flex: 1; min-width: 0; }
    .announce__message { grid-area: 1 / 1; display: flex; align-items: center; gap: 0.55rem; min-width: 0; visibility: hidden; opacity: 0; translate: 0 6px; transition: opacity 0.5s var(--ease), translate 0.5s var(--ease), visibility 0.5s; }
    .announce__message span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* On phones a message may take two lines rather than lose its amount to an ellipsis. */
    @media (max-width: 760px) {
        .announce__message span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; line-height: 1.35; }
    }
    .announce__message.is-active { visibility: visible; opacity: 1; translate: 0 0; }
    .announce__message .icon { width: 16px; height: 16px; opacity: 0.8; }
    .announce__links { display: flex; align-items: center; gap: 1.4rem; white-space: nowrap; }
    .announce__links a, .announce__locale { opacity: 0.85; transition: opacity 0.2s; }
    .announce__links a:hover, .announce__locale:hover { opacity: 1; }
    .announce__locale { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; }
    .announce__locale .icon { width: 15px; height: 15px; }

    /* Shared sections: shop the look, wide banner */
    /* Lookbook */
    .lookbook { margin-block: calc(var(--section) / 2); padding-block: var(--section); background: var(--surface); }
    .lookbook__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
    .lookbook__media { position: relative; }
    .lookbook__media img { width: 100%; border-radius: var(--radius-lg); }
    .hotspot { position: absolute; top: var(--y); left: var(--x); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / 0.94); color: var(--text); font-size: 0.78rem; font-weight: 600; box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.45); translate: -50% -50%; transition: transform 0.25s var(--spring); }
    .hotspot::before { content: ""; position: absolute; inset: -7px; border: 1px solid rgb(255 255 255 / 0.85); border-radius: 50%; animation: ring 2.4s ease-out infinite; }
    .hotspot:hover { transform: scale(1.12); }
    .hotspot-card { position: fixed; border-radius: var(--radius); inset: auto; top: var(--pop-top, 40%); left: var(--pop-left, 40%); width: min(300px, 100vw - 24px); margin: 0; padding: 0.75rem; background: var(--bg); color: var(--text); box-shadow: var(--shadow-lg); }
    .hotspot-card:popover-open { animation: pop-in 0.25s var(--ease); }
    .hotspot-card__link { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 0.9rem; }
    .hotspot-card__media { display: block; border-radius: var(--radius-sm); aspect-ratio: 4 / 5; overflow: hidden; background: var(--media-bg); }
    .hotspot-card__media img { width: 100%; height: 100%; object-fit: cover; }
    .hotspot-card__body { display: grid; gap: 0.25rem; font-size: 0.88rem; }
    .hotspot-card__body strong { font-weight: 500; }
    .lookbook__title { margin: 0.5rem 0 1rem; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); }
    .lookbook__text { margin-bottom: 1.75rem; color: var(--text-2); }
    .lookbook__list { display: grid; border-top: 1px solid var(--line-strong); }
    .look-item { display: grid; grid-template-columns: 28px 60px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line-strong); }
    .look-item__number { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.72rem; }
    .look-item__media { display: block; border-radius: var(--radius-sm); width: 60px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--media-bg); }
    .look-item__media img { width: 100%; height: 100%; object-fit: cover; }
    .look-item__info { display: grid; gap: 0.15rem; min-width: 0; font-size: 0.9rem; }
    .look-item__info a:hover { text-decoration: underline; text-underline-offset: 3px; }
    .look-item__info span { color: var(--muted); }
    .look-item__go { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
    .look-item__go:hover { border-color: var(--text); background: var(--text); color: var(--bg); }
    .look-item__go .icon { width: 16px; height: 16px; }

    /* Wide banner */
    .wide-banner { position: relative; isolation: isolate; border-radius: var(--radius-xl); display: grid; place-items: center; min-height: clamp(380px, 40vw, 580px); overflow: hidden; color: #fff; text-align: center; }
    .wide-banner__media { position: absolute; inset: 0; z-index: -2; }
    .wide-banner__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
    .wide-banner:hover .wide-banner__media img { transform: scale(1.03); }
    .wide-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(20 16 12 / 0.4); }
    .wide-banner__body { display: grid; justify-items: center; gap: 0.8rem; max-width: 40rem; padding: 2rem; }
    .wide-banner .eyebrow { margin: 0; color: #fff; }
    .wide-banner__title { font-family: var(--font-display); font-size: clamp(2.8rem, 1.6rem + 4.4vw, 6rem); line-height: 0.98; }
    .wide-banner__text { margin-bottom: 0.75rem; font-size: 1.05rem; opacity: 0.92; }

}

/* Pages ------------------------------------------------------------------------------------------ */

@layer pages {
    /* Catalog */
    .catalog-hero { position: relative; isolation: isolate; padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.25rem); }
    .catalog-hero__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); }
    .catalog-hero__text { max-width: 62ch; margin-top: 0.6rem; color: var(--muted); }
    .catalog-hero--image .catalog-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
    .catalog-hero__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-xl); background: var(--media-bg); }
    .catalog-hero__media img { width: 100%; height: 100%; object-fit: cover; }

    .subnav { margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
    .subnav ul { display: flex; gap: 0.5rem; }
    .subnav__link { display: block; padding: 0.55rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); font-size: 0.88rem; font-weight: 600; white-space: nowrap; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
    .subnav__link:hover { border-color: var(--text); }
    .subnav__link.is-active { border-color: var(--text); background: var(--text); color: var(--bg); }

    .catalog__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 3vw, 3rem); padding-bottom: calc(var(--section) / 2); }
    .catalog__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.25rem; }
    .catalog__toolbar > * { min-width: 0; }
    .catalog__filter-btn { display: none; }
    .catalog__badge { display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 6px; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); font-size: 0.72rem; }
    .catalog__count { margin-right: auto; color: var(--muted); font-size: 0.9rem; }
    .sort { position: relative; display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
    .sort__label { color: var(--muted); }
    .sort__select { max-width: 100%; min-height: 40px; padding: 0 2.25rem 0 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-field); background: var(--bg); color: var(--text); font-weight: 600; appearance: none; cursor: pointer; }
    .sort .icon { position: absolute; right: 0.7rem; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
    .active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
    .active-filter { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.6rem 0.4rem 0.85rem; border-radius: var(--radius-btn); background: var(--surface); font-size: 0.84rem; font-weight: 600; transition: background-color 0.2s; }
    .active-filter:hover { background: var(--surface-2); }
    .active-filter .icon { width: 14px; height: 14px; }
    .active-filters__clear { margin-left: 0.25rem; color: var(--muted); font-size: 0.84rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
    .product-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .filters { position: sticky; top: calc(var(--header-h, 76px) + 1rem); max-height: calc(100dvh - var(--header-h, 76px) - 2rem); overflow-y: auto; scrollbar-width: thin; }
    .filters__head { display: none; }
    .filters__foot { display: none; }
    .filter { border-bottom: 1px solid var(--line); }
    .filter__title { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 0; font-size: 0.92rem; font-weight: 700; list-style: none; cursor: pointer; }
    .filter__title::-webkit-details-marker { display: none; }
    .filter__title .icon { width: 18px; height: 18px; color: var(--muted); transition: rotate 0.3s var(--ease); }
    .filter[open] .filter__title .icon { rotate: 180deg; }
    .filter__values { display: grid; gap: 0.1rem; padding-bottom: 1rem; }
    .filter__values--chips, .filter__values--swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .filter__price { display: flex; align-items: flex-end; gap: 0.5rem; padding-bottom: 1rem; }
    .filter__dash { padding-bottom: 0.7rem; color: var(--muted); }

    .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: clamp(2rem, 4vw, 3rem); }
    .pagination__page, .pagination__step { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 0.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); font-weight: 650; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
    .pagination__page:hover, .pagination__step:hover { border-color: var(--text); }
    .pagination__page.is-current { border-color: var(--text); background: var(--text); color: var(--bg); }
    .pagination__gap { align-self: center; color: var(--muted); }

    /* Product page */
    .pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
    .pdp__gallery { position: sticky; top: calc(var(--header-h, 76px) + 1rem); display: grid; gap: 0.75rem; min-width: 0; }
    .pdp__slides { display: grid; grid-auto-columns: 100%; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-xl); background: var(--media-bg); }
    .pdp__slides::-webkit-scrollbar { display: none; }
    .pdp__slide { aspect-ratio: 1; scroll-snap-align: start; overflow: hidden; }
    .pdp__slide img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
    .pdp__badge { position: absolute; top: 1.1rem; left: 1.1rem; height: 30px; font-size: 0.85rem; }
    .pdp__thumbs { display: flex; gap: 0.6rem; overflow-x: auto; scrollbar-width: none; }
    .pdp__thumb { width: 76px; height: 76px; flex: none; overflow: hidden; border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--media-bg); transition: border-color 0.2s, opacity 0.2s; opacity: 0.7; }
    .pdp__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
    .pdp__thumb:hover { opacity: 1; }
    .pdp__thumb.is-active { border-color: var(--text); opacity: 1; }

    .pdp__info { display: grid; align-content: start; gap: 1.1rem; min-width: 0; }
    .pdp__brand { width: fit-content; color: var(--accent-text); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
    .pdp__title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); }
    .pdp__rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; width: fit-content; color: var(--muted); font-size: 0.9rem; }
    .pdp__rating strong { color: var(--text); }
    .pdp__rating:hover span:last-child { text-decoration: underline; }
    .pdp__pricing { display: grid; gap: 0.35rem; padding-block: 0.25rem; }
    .pdp__installments { display: flex; align-items: center; gap: 0.45rem; color: var(--text-2); font-size: 0.9rem; }
    .pdp__installments .icon { width: 18px; height: 18px; color: var(--accent-text); }
    .pdp__tax { color: var(--muted); font-size: 0.8rem; }
    .pdp__summary { color: var(--text-2); font-size: 1.02rem; }
    .pdp__form { display: grid; gap: 1.1rem; }
    .pdp__stock { display: flex; align-items: center; gap: 0.5rem; color: var(--success); font-size: 0.9rem; font-weight: 650; }
    .pdp__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in oklab, currentColor 20%, transparent); }
    .pdp__stock.is-low { color: #c2410c; }
    .pdp__stock.is-out { color: var(--sale); }
    .pdp__stock.is-backorder { color: #b45309; }
    .pdp__buy { display: flex; gap: 0.6rem; }
    .pdp__add { flex: 1; min-width: 0; }
    .pdp__wish { flex: none; width: calc(var(--btn-height) + 8px); padding: 0; }
    .pdp__wish .icon { width: 22px; height: 22px; }
    .pdp__perks { display: grid; gap: 0.7rem; padding: 1.15rem 1.25rem; border-radius: var(--radius); background: var(--surface); font-size: 0.9rem; }
    .pdp__perks li { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
    .pdp__perks .icon { width: 20px; height: 20px; color: var(--accent-text); }

    .variant { display: grid; gap: 0.65rem; }
    .variant__legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 1rem; width: 100%; margin-bottom: 0.65rem; font-size: 0.9rem; }
    .variant__legend strong { font-weight: 700; }
    .variant__guide { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-2); font-size: 0.84rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
    .variant__guide .icon { width: 17px; height: 17px; }
    .variant__values { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .variant__value { position: relative; cursor: pointer; }
    .variant__text {
        display: grid;
        place-items: center;
        min-width: 52px;
        min-height: 46px;
        padding: 0.35rem 0.95rem;
        line-height: 1.2;
        text-align: center;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-field);
        font-size: 0.9rem;
        font-weight: 650;
        transition: border-color 0.15s, background-color 0.15s, color 0.15s;
    }
    .variant__value:hover .variant__text { border-color: var(--text); }
    .variant__value input:checked + .variant__text { border-color: var(--text); background: var(--text); color: var(--bg); }
    .variant__value input:focus-visible + .variant__text, .variant__value input:focus-visible + .swatch { outline: 2px solid var(--accent); outline-offset: 2px; }
    .variant__value.is-unavailable .variant__text { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in oklab, currentColor 60%, transparent); }
    .variant__values--color .variant__value { width: 40px; height: 40px; }
    .variant__values--color .swatch { transition: box-shadow 0.15s; }
    .variant__values--color input:checked + .swatch { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12), 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
    .variant__values--color .is-unavailable .swatch { opacity: 0.45; }

    .reviews-block__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 4rem); padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
    .reviews-block__score { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; }
    .reviews-block__score strong { font-family: var(--font-display); font-size: 3.6rem; font-weight: var(--display-weight); line-height: 1; letter-spacing: -0.04em; }
    .reviews-block__score > span { display: grid; gap: 0.35rem; }
    .reviews-block__count { color: var(--muted); font-size: 0.88rem; }
    .bars { display: grid; gap: 0.45rem; }
    .bars__row { display: grid; grid-template-columns: max-content minmax(0, 1fr) 2.75rem; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.84rem; }
    .bars__row .meter > span { background: var(--star); }
    .bars__value { text-align: right; }
    .review-list { display: grid; gap: 1.25rem; }
    .review-item { display: grid; gap: 0.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
    .review-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
    .review-item p { color: var(--text-2); }
    .review-item__meta { display: flex; align-items: center; gap: 0.35rem; color: var(--muted) !important; font-size: 0.84rem; }
    .review-item__meta .icon { width: 16px; height: 16px; color: var(--success); }

    .pdp-bar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 40;
        display: none;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem var(--gutter) max(0.75rem, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: color-mix(in oklab, var(--bg) 92%, transparent);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        visibility: hidden;
        translate: 0 110%;
        transition: translate 0.35s var(--ease), visibility 0.35s;
    }
    .pdp-bar.is-visible { visibility: visible; translate: 0 0; }
    .pdp-bar__info { display: grid; min-width: 0; line-height: 1.3; }
    .pdp-bar__info strong { overflow: hidden; font-size: 0.88rem; text-overflow: ellipsis; white-space: nowrap; }
    .pdp-bar__info span { font-weight: 750; }

    /* Cart page */
    .cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: clamp(1.5rem, 3vw, 3rem); }
    .cart-table { display: grid; border-top: 1px solid var(--line); }
    .cart-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto auto; align-items: center; gap: 1.25rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
    .cart-row__media { width: 112px; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--media-bg); }
    .cart-row__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
    .cart-row__info { display: grid; gap: 0.2rem; min-width: 0; }
    .cart-row__brand { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
    .cart-row__name { font-weight: 650; line-height: 1.35; }
    .cart-row__name:hover { color: var(--accent-text); }
    .cart-row__options { display: flex; flex-wrap: wrap; min-width: 0; gap: 0.2rem 0.9rem; color: var(--muted); font-size: 0.84rem; }
    .cart-row__options strong { color: var(--text-2); font-weight: 600; }
    .cart-row__unit { color: var(--muted); font-size: 0.86rem; }
    .cart-row__note { color: #b45309; font-size: 0.86rem; overflow-wrap: anywhere; }
    .cart-row__total { min-width: 6.5rem; font-size: 1.02rem; text-align: right; white-space: nowrap; }
    .cart-row__remove .icon-btn { color: var(--muted); }
    .cart-row__remove .icon-btn:hover { background: color-mix(in oklab, var(--sale) 10%, transparent); color: var(--sale); }
    .cart-layout__back { margin-top: 1.5rem; }

    .summary { display: grid; gap: 1rem; padding: clamp(1.25rem, 2.4vw, 1.75rem); border-radius: var(--radius-lg); background: var(--surface); }
    .summary--sticky { position: sticky; top: calc(var(--header-h, 76px) + 1rem); }
    .summary__title { font-size: 1.3rem; }
    .summary__note { color: var(--muted); font-size: 0.82rem; }
    .summary__trust { display: grid; gap: 0.5rem; color: var(--text-2); font-size: 0.86rem; }
    .summary__trust li, .summary__secure { display: flex; align-items: center; gap: 0.5rem; }
    .summary__trust .icon, .summary__secure .icon { width: 18px; height: 18px; color: var(--success); }
    .summary__secure { justify-content: center; color: var(--muted); font-size: 0.82rem; }
    .totals { display: grid; gap: 0.6rem; padding-block: 0.9rem; border-block: 1px solid var(--line); }
    .totals > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.94rem; }
    .totals dt { color: var(--text-2); }
    .totals dd { font-weight: 650; text-align: right; white-space: nowrap; }
    .totals__discount dd { color: var(--success); }
    .totals__grand { padding-top: 0.6rem; border-top: 1px dashed var(--line-strong); }
    .totals__grand dt { color: var(--text); font-weight: 700; }
    .totals__grand dd { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
    .totals--vat { gap: 0.2rem; padding-block: 0.35rem 0; border-block: 0; }
    .totals--vat > div { font-size: 0.8rem; }
    .totals--vat dt, .totals--vat dd { color: var(--muted); font-weight: 400; }
    /* The code field keeps room for its placeholder; without it the button moves under the field, full width. */
    .coupon { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .coupon .field__input { flex: 999 1 12rem; min-width: 0; min-height: 46px; }
    .coupon:not(.coupon--applied) .btn { flex: 1 0 auto; }
    .coupon--applied { align-items: center; justify-content: space-between; padding: 0.75rem 0.9rem; border: 1px dashed var(--success); border-radius: var(--radius-field); color: var(--success); font-size: 0.9rem; }
    .coupon--applied span { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
    .coupon--applied .icon { width: 17px; height: 17px; }
    .coupon__remove { color: var(--muted); font-size: 0.84rem; font-weight: 600; text-decoration: underline; }
    .coupon__hint { margin-top: -0.5rem; color: var(--muted); font-size: 0.8rem; }
    .coupon__hint.is-error { color: var(--sale); font-weight: 600; }
    .payments--light .pay { background: var(--bg); }

    /* Checkout */
    .steps { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-bottom: 0.9rem; color: var(--muted); font-size: 0.86rem; font-weight: 600; counter-reset: step; }
    .steps li { display: flex; align-items: center; gap: 0.5rem; counter-increment: step; }
    .steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.75rem; }
    .steps .is-done::before { content: "✓"; border-color: var(--success); background: var(--success); color: #fff; }
    .steps .is-current { color: var(--text); }
    .steps .is-current::before { border-color: var(--text); background: var(--text); color: var(--bg); }
    .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; gap: clamp(1.5rem, 3vw, 3rem); }
    .checkout__main { display: grid; gap: 1.25rem; }
    .checkout__notes { margin-top: 1rem; }
    .checkout__terms { font-size: 0.86rem; }
    .invoice-fields { margin-top: 0.25rem; }
    .mini-lines { display: grid; gap: 0.9rem; }
    .mini-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 0.85rem; }
    .mini-line__media { position: relative; width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--media-bg); }
    .mini-line__media img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; mix-blend-mode: multiply; }
    .mini-line__qty { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 5px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 0.72rem; font-weight: 750; }
    .mini-line__info { display: grid; min-width: 0; font-size: 0.88rem; line-height: 1.35; }
    .mini-line__info strong { display: -webkit-box; overflow: hidden; font-weight: 650; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .mini-line__info span { color: var(--muted); font-size: 0.8rem; }
    .mini-line__info .mini-line__note { color: #b45309; }
    .mini-line__total { font-size: 0.9rem; font-weight: 700; white-space: nowrap; }

    /* Order confirmation & tracking */
    .order-hero { display: grid; justify-items: center; gap: 0.6rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
    .order-hero__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); animation: pop-in 0.6s var(--spring); }
    .order-hero__icon .icon { width: 40px; height: 40px; }
    .order-hero__title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
    .order-hero__text { max-width: 54ch; color: var(--muted); }
    .order-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
    .order-grid .totals { margin-top: 1.25rem; }
    .order-details { display: grid; gap: 1.25rem; }
    .order-details address { line-height: 1.7; }
    .consent { position: fixed; inset: auto 1rem 1rem; z-index: 90; display: grid; gap: 1rem; max-width: 46rem; margin-inline: auto; padding: 1.25rem 1.35rem; border-radius: var(--radius-sm); background: var(--surface, #fff); color: var(--text); box-shadow: 0 18px 50px rgb(0 0 0 / 0.18); border: 1px solid var(--border, #e5e7eb); }
    .consent[hidden] { display: none; }
    .consent__title { margin: 0 0 0.35rem; font-size: 1.05rem; }
    .consent__body p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-2, inherit); }
    .consent__choices { display: grid; gap: 0.6rem; margin-top: 0.9rem; }
    .consent__choices[hidden] { display: none; }
    .consent__choice { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.45; }
    .consent__choice input { margin-top: 0.2rem; accent-color: var(--accent); }
    .consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
    .consent__actions [hidden] { display: none; }
    @media (max-width: 560px) { .consent__actions .btn { flex: 1 1 auto; } }
    .logo--image { display: inline-flex; align-items: center; }
    .logo__image { display: block; height: 2.5rem; width: auto; max-width: 13rem; object-fit: contain; }
    .order-instructions { padding: 0.85rem 1rem; border-radius: var(--radius-sm, 10px); background: var(--surface-2, #f6f6f4); line-height: 1.65; font-size: 0.95rem; overflow-wrap: anywhere; }
    .order-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
    .track-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
    .track-result { display: grid; gap: 1.25rem; }
    .track-result__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
    .track-result__total { font-size: 1.25rem; }
    .timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; color: var(--muted); font-size: 0.84rem; font-weight: 600; text-align: center; }
    .timeline li { display: grid; justify-items: center; gap: 0.5rem; }
    .timeline span { width: 100%; height: 6px; border-radius: 999px; background: var(--line); }
    .timeline .is-done span { background: var(--success); }
    .timeline .is-current span { background: linear-gradient(90deg, var(--success) 50%, var(--line) 50%); }
    .timeline .is-done, .timeline .is-current { color: var(--text); }

    /* Content pages */
    .content-hero { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem); background: var(--surface); }
    .content-hero__title { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); }
    .content-hero__intro { max-width: 62ch; margin-top: 0.85rem; color: var(--text-2); font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); }
    .content-blocks { display: grid; gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(2rem, 5vw, 3.5rem) calc(var(--section) / 2); }
    .block__title { margin-bottom: 1.1rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); }
    .info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
    .info-card { display: grid; align-content: start; gap: 0.5rem; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--surface); }
    .info-card h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
    .info-card p { color: var(--muted); font-size: 0.92rem; }
    .info-card__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; margin-bottom: 0.25rem; border-radius: 14px; background: var(--bg); color: var(--accent-text); box-shadow: var(--shadow-sm); }
    .step-list { display: grid; gap: 1.1rem; }
    .step-list li { display: flex; gap: 1rem; }
    .step-list li > div { min-width: 0; }
    .step-list h3 { margin-bottom: 0.2rem; font-size: 1.05rem; }
    .step-list p { color: var(--muted); }
    .step-list__number { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 750; }
    .contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
    .contact-form { display: grid; gap: 1rem; }
    .contact-form .btn { justify-self: start; }
    .form-message { min-height: 1.5em; font-weight: 600; }
    .form-message.is-success { color: var(--success); }
    .form-message.is-error { color: var(--sale); }
    .contact-info { display: grid; gap: 1.25rem; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--surface); }
    .contact-info li { display: flex; gap: 0.9rem; }
    .contact-info li > div { min-width: 0; overflow-wrap: anywhere; }
    .contact-info h3 { font-size: 1rem; }
    .contact-info p { color: var(--muted); font-size: 0.92rem; }
    .contact-info a { color: var(--text); font-weight: 600; }
    .content-help { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
    .content-help h2 { font-size: 1.15rem; }
    .content-help p { color: var(--muted); font-size: 0.92rem; }
    .content-help div { flex: 1 1 200px; min-width: 0; }

    /* Journal */
    .journal-lead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 4vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
    .journal-lead__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-xl); }
    .journal-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
    .journal-lead:hover img { transform: scale(1.04); }
    .journal-lead__body { display: grid; gap: 0.9rem; }
    .journal-lead__title { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); font-weight: var(--display-weight); line-height: 1.12; letter-spacing: var(--display-tracking); }
    .articles--grid { row-gap: clamp(1.5rem, 3vw, 2.5rem); }

    .article-hero { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
    .article-hero__title { margin-top: 1rem; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.8rem); line-height: 1.06; }
    .article-hero__lead { margin-top: 1rem; color: var(--text-2); font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); }
    .article-hero__media { margin-top: clamp(1.5rem, 4vw, 2.75rem); }
    .article-hero__media img { width: 100%; max-height: 640px; border-radius: var(--radius-xl); object-fit: cover; }
    .article-body { padding-block: clamp(2rem, 4vw, 3rem) calc(var(--section) / 2); font-size: 1.06rem; line-height: 1.75; }
    .article-body__author { color: var(--muted); font-size: 0.92rem; font-style: italic; }
}

/* Motion ----------------------------------------------------------------------------------------- */

@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.985); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes bump { 40% { transform: scale(1.35); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0.6); }
    70%, 100% { box-shadow: 0 0 0 10px rgb(74 222 128 / 0); }
}

@starting-style {
    .drawer[open] { translate: 100% 0; }
    .drawer--left[open] { translate: -100% 0; }
    .drawer[open]::backdrop, .modal[open]::backdrop { background: rgb(5 6 10 / 0); }
}

.mnav__group::details-content, .accordion__item::details-content, .filter::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}
.mnav__group[open]::details-content, .accordion__item[open]::details-content, .filter[open]::details-content { block-size: auto; }
/* Closed accordions keep their content out of sight (and out of the accessibility tree and layout checks). */
:is(.mnav__group, .accordion__item, .filter) > :not(summary) { transition: visibility 0.35s; }
:is(.mnav__group, .accordion__item, .filter):not([open]) > :not(summary) { visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .reveal {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 22%;
        }
        @keyframes reveal { from { opacity: 0; transform: translateY(36px); } }
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; }
    .marquee__list[aria-hidden="true"] { display: none; }
    /* Without rotation every top-bar message shows, one after the other (wrapping onto more lines when needed). */
    .announce__messages { display: flex; flex-wrap: wrap; gap: 0.15rem 1.75rem; padding-block: 0.45rem; }
    .announce__message { visibility: visible; opacity: 1; translate: none; }
}

/* Responsive ------------------------------------------------------------------------------------- */

@layer responsive {
    @media (max-width: 1140px) {
        .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .reviews { grid-template-columns: minmax(0, 1fr); }
        .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        .footer-brand { grid-column: 1 / -1; }
        .product-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .cart-layout, .checkout { grid-template-columns: minmax(0, 1fr) 340px; }
    }

    @media (max-width: 1199px) {
        .announce__links a[href^="tel:"] { display: none; }
    }

    @media (max-width: 1023px) {
        .announce__links a:not(:first-child) { display: none; }
        .product-grid, .product-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .carousel { --per-view: 3; }
        .usps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

        .catalog__layout { grid-template-columns: minmax(0, 1fr); }
        .catalog__filter-btn { display: inline-flex; }
        .filters {
            position: fixed;
            inset: 0 auto 0 0;
            z-index: 70;
            width: min(380px, 100vw);
            max-height: none;
            background: var(--bg);
            box-shadow: var(--shadow-lg);
            visibility: hidden;
            translate: -105% 0;
            transition: translate 0.4s var(--ease), visibility 0.4s;
        }
        .filters.is-open { visibility: visible; translate: 0 0; }
        .filters__form { display: flex; flex-direction: column; height: 100%; }
        .filters__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
        .filters__title { font-size: 1.2rem; }
        .filters__body { flex: 1; padding: 0 1.25rem; overflow-y: auto; }
        .filters__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
        .filters-backdrop { position: fixed; inset: 0; z-index: 69; background: rgb(5 6 10 / 0.45); animation: fade-in 0.3s ease; }

        .pdp { grid-template-columns: minmax(0, 1fr); }
        .pdp__gallery { position: relative; top: auto; margin-inline: calc(-1 * var(--gutter)); }
        .pdp__slides { border-radius: 0; }
        .pdp__thumbs { padding-inline: var(--gutter); }
        .pdp-bar { display: flex; }
        .reviews-block__grid { grid-template-columns: minmax(0, 1fr); }

        .cart-layout, .checkout { grid-template-columns: minmax(0, 1fr); }
        .summary--sticky { position: static; }
        .order-grid, .contact-grid, .journal-lead, .lookbook__grid { grid-template-columns: minmax(0, 1fr); }
        .newsletter { grid-template-columns: minmax(0, 1fr); }
    }

    @media (max-width: 760px) {
        .hide-sm { display: none !important; }
        .product-grid, .product-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .carousel { --per-view: 2.15; }
        .usps { grid-auto-columns: 78%; grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
        .usp { scroll-snap-align: start; }
        .articles:not(.articles--grid) {
            grid-auto-columns: 82%;
            grid-auto-flow: column;
            grid-template-columns: none;
            margin-inline: calc(-1 * var(--gutter));
            padding: 0 var(--gutter) 0.25rem;
            overflow-x: auto;
            scroll-padding-inline: var(--gutter);
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
        }
        .articles:not(.articles--grid) > li { scroll-snap-align: start; }
        .articles--grid { grid-template-columns: minmax(0, 1fr); }
        .services, .review-cards { grid-template-columns: minmax(0, 1fr); }
        .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .footer-bottom { flex-direction: column; align-items: flex-start; }
        .form-grid { grid-template-columns: minmax(0, 1fr); }
        .section-head > * { min-width: 0; max-width: 100%; }
        .section-head .tabs { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; width: 100%; }
        .tab { height: auto; min-height: 40px; padding: 0.45rem 0.6rem; line-height: 1.25; white-space: normal; text-wrap: balance; }
        .catalog__count { order: 3; width: 100%; }
        .catalog-hero--image .catalog-hero__inner { grid-template-columns: 1fr; }
        .catalog-hero--image .catalog-hero__media { display: none; }
        .sort__label { display: none; }
        /* The name gets the whole width beside the photo; quantity, total and remove share the line below. */
        .cart-row { grid-template-columns: 84px auto minmax(0, 1fr) auto; grid-template-areas: "media info info info" "media qty total remove"; gap: 0.5rem 0.6rem; }
        .cart-row__media { grid-area: media; width: 84px; }
        .cart-row__info { grid-area: info; }
        .cart-row__qty { grid-area: qty; }
        .cart-row__total { grid-area: total; min-width: 0; justify-self: end; }
        .cart-row__remove { grid-area: remove; justify-self: end; }
        .track-form { grid-template-columns: minmax(0, 1fr); }
        .newsletter__form { flex-direction: column; }
    }

    @media (max-width: 480px) {
        .pdp__buy { gap: 0.5rem; }
        .pdp__buy .qty--lg button { width: 38px; }
        .pdp__buy .qty--lg input { width: 30px; }
        .pdp__add { padding-inline: 1rem; }
        .pdp__add .icon { display: none; }
        .pdp__wish { width: var(--btn-height); }
        .choice { gap: 0.75rem; padding: 0.9rem; }
        .choice__icon { display: none; }
    }
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes pnav-fade {
    from, 99% { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
    to { -webkit-mask-image: none; mask-image: none; }
}
@keyframes ring {
    0% { opacity: 1; transform: scale(0.85); }
    100% { opacity: 0; transform: scale(1.6); }
}

@layer components {
    .preview-bar { position: sticky; top: 0; z-index: 200; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 8px 16px; background: #1b1b1f; color: #fff; font-size: 13px; font-weight: 500; }
    .preview-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
}

.order-tracking { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border, #e5e7eb); font-size: 14px; }
.order-receipt { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border, #e5e7eb); font-size: 14px; }
/* The SVG carries its own size (whole pixels per module, at least 160px): scaling it down would make it unreadable on 1x screens. */
.order-receipt__qr { flex: none; line-height: 0; }
.order-receipt__qr svg { display: block; }
