/* Selixora design system. Mobile styles live here; wider screens are in responsive.css.

   Colour works in two layers. The brand palette comes straight from the logo.
   Components never use it directly: they read the semantic tokens below, and a
   dark area such as the men's storefront only has to redefine those tokens. */

:root {
    /* Brand palette, from the logo */
    --selixora-forest: #0f4d3a;
    --selixora-forest-deep: #0a3528;
    --selixora-ink: #06231a;
    --selixora-noir: #1f1f1f;
    --selixora-gold-light: #ecc880;
    --selixora-gold: #c8a45c;
    --selixora-gold-dark: #9e7d36;
    --selixora-gold-text: #7a5c22;
    --selixora-ivory: #faf7f2;
    --selixora-sand: #f3ece1;
    --selixora-champagne: #efe3cb;
    --selixora-blush: #e8c4c0;
    --selixora-charcoal: #1f1f1f;
    --selixora-white: #ffffff;
    --gold-gradient: linear-gradient(135deg, var(--selixora-gold-light) 0%, var(--selixora-gold) 45%, var(--selixora-gold-dark) 100%);

    /* Shared names, also used by admin.css */
    --emerald: var(--selixora-forest);
    --emerald-dark: var(--selixora-forest-deep);
    --gold: var(--selixora-gold);
    --ivory: var(--selixora-ivory);
    --sand: var(--selixora-sand);
    --blush: var(--selixora-champagne);
    --charcoal: var(--selixora-charcoal);
    --white: var(--selixora-white);
    --muted: #555555;
    --border: #e6dfd2;
    --border-strong: #8a8678;
    --border-soft: #b9b2a3;

    /* Validation only. The palette has no error colour and advises against bright red. */
    --error: #8c2f2f;
    --error-dark: #6f2424;

    /* Semantic tokens: the light theme */
    --surface: var(--selixora-ivory);
    --surface-raised: var(--selixora-white);
    --surface-sunken: var(--selixora-sand);
    --text: var(--charcoal);
    --text-muted: var(--muted);
    --heading: var(--charcoal);
    --accent: var(--selixora-gold-text);
    --line: var(--border);
    --line-strong: var(--border-strong);
    --field-bg: var(--selixora-white);
    --action-bg: var(--selixora-gold);
    --action-text: var(--charcoal);
    --action-hover-bg: var(--charcoal);
    --action-hover-text: var(--selixora-gold-light);
    --focus: var(--selixora-gold-dark);

    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --section: clamp(3.5rem, 2.5rem + 5vw, 7.5rem);

    --radius: 10px;
    --radius-large: 16px;
    --shadow-card: 0 10px 30px rgb(31 31 31 / 7%);
    --shadow-float: 0 18px 48px rgb(31 31 31 / 18%);
    --chamfer: 18px;
    --tap: 44px;
    --gutter: 1.25rem;
    --page-width: 1360px;
    --header-height: 64px;
    --bottom-nav-height: 62px;
    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --slide-duration: 1400ms;

    /* Corners cut like the octagon around the logo */
    --octagon: polygon(
        var(--chamfer) 0, calc(100% - var(--chamfer)) 0,
        100% var(--chamfer), 100% calc(100% - var(--chamfer)),
        calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%,
        0 calc(100% - var(--chamfer)), 0 var(--chamfer)
    );
    --sparkle: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
    interpolate-size: allow-keywords;
}

/* The footer is the one dark surface below the header: gold and ivory on charcoal. */
.site-footer {
    --surface: var(--selixora-charcoal);
    --surface-raised: #2a2a2a;
    --surface-sunken: #2a2a2a;
    --text: var(--selixora-ivory);
    --text-muted: #c9c5bc;
    --heading: var(--selixora-ivory);
    --accent: var(--selixora-gold);
    --line: rgb(236 200 128 / 18%);
    --line-strong: rgb(236 200 128 / 42%);
    --field-bg: #2a2a2a;
    --action-bg: var(--selixora-gold);
    --action-text: var(--selixora-charcoal);
    --action-hover-bg: var(--selixora-ivory);
    --action-hover-text: var(--selixora-charcoal);
    --focus: var(--selixora-gold);
}

/* Green belongs to the header and its menu, and nowhere else on the storefront. */
.site-header,
.drawer__panel {
    --surface: var(--selixora-forest);
    --surface-raised: var(--selixora-forest-deep);
    --surface-sunken: var(--selixora-forest-deep);
    --text: var(--selixora-ivory);
    --text-muted: #b8c4bd;
    --heading: var(--selixora-ivory);
    --accent: var(--selixora-gold-light);
    --line: rgb(236 200 128 / 22%);
    --line-strong: rgb(236 200 128 / 46%);
    --field-bg: var(--selixora-white);
    --action-bg: var(--selixora-gold);
    --action-text: var(--selixora-charcoal);
    --action-hover-bg: var(--selixora-ivory);
    --action-hover-text: var(--selixora-charcoal);
    --focus: var(--selixora-gold-light);
}

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

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

html,
body {
    font-family: var(--font-primary);
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
fieldset {
    margin: 0;
    padding: 0;
}

fieldset {
    border: 0;
    min-width: 0;
}

ul {
    list-style: none;
}

a {
    color: var(--heading);
}

::selection {
    background: var(--selixora-gold);
    color: var(--selixora-noir);
}

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

.admin-sidebar :focus-visible {
    outline-color: var(--gold);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.heading,
.section-title,
.hero-title {
    font-family: var(--font-heading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.12;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 1.75rem + 2.2vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
}

h3 {
    font-size: clamp(1.375rem, 1.3rem + 0.4vw, 1.75rem);
}

h4 {
    font-size: clamp(1.25rem, 1.2rem + 0.25vw, 1.5rem);
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

.editorial {
    font-family: var(--font-heading);
    font-style: italic;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-decoration: none;
    text-transform: uppercase;
}

.kicker::before,
.hero__kicker::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    background: currentColor;
    clip-path: var(--sparkle);
}

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

.skip-link {
    position: absolute;
    left: -999px;
    z-index: 60;
    padding: var(--space-3) var(--space-4);
    background: var(--charcoal);
    color: var(--ivory);
}

.skip-link:focus {
    left: var(--space-2);
    top: var(--space-2);
}

/* Layout helpers */
.container {
    width: 100%;
    max-width: var(--page-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.narrow {
    max-width: 680px;
}

.section {
    padding-block: var(--section);
}

.section + .section {
    padding-top: 0;
}

.section--tight {
    padding-block: var(--space-6) var(--space-8);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.split {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* The hairline with the logo's four-point star at its centre */
.dot-rule {
    position: relative;
    width: 120px;
    height: 1px;
    margin: var(--space-4) auto;
    background: linear-gradient(90deg, transparent, var(--selixora-gold) 30%, var(--selixora-gold) 70%, transparent);
}

.dot-rule::after {
    content: "";
    position: absolute;
    top: -6px;
    left: calc(50% - 6.5px);
    width: 13px;
    height: 13px;
    background: var(--selixora-gold);
    clip-path: var(--sparkle);
}

/* The logo drawn as line art, for decorative use */
.brand-mark {
    display: block;
    fill: none;
    stroke: var(--selixora-gold);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-mark__ring {
    stroke-width: 0.7;
    stroke-opacity: 0.55;
}

.brand-mark__stroke {
    stroke-width: 1.4;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.brand-mark__star {
    fill: var(--selixora-gold);
    stroke: none;
}

@keyframes draw-stroke {
    from {
        stroke-dashoffset: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

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

@keyframes slow-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes drift-in {
    from {
        transform: scale(1.08);
    }
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.82);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Buttons */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--action-bg);
    border-radius: var(--radius);
    background: var(--action-bg);
    color: var(--action-text);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.2s var(--ease);
}

.button:hover {
    border-color: var(--action-hover-bg);
    background: var(--action-hover-bg);
    color: var(--action-hover-text);
}

.button:active {
    transform: scale(0.985);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* The spinner sits beside the message Livewire shows while a form is saving. */
.button__loading::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 0.5rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.button--ghost {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--heading);
}

.button--ghost:hover {
    border-color: var(--action-bg);
    background: var(--action-bg);
    color: var(--action-text);
}

.button--gold {
    border-color: var(--selixora-gold);
    background: var(--selixora-gold);
    color: var(--selixora-noir);
}

.button--gold:hover {
    border-color: var(--action-hover-bg);
    background: var(--action-hover-bg);
    color: var(--action-hover-text);
}

.button--block {
    width: 100%;
}

/* On the storefront, a colour wipes across the button instead of snapping. */
.store .button {
    z-index: 0;
    min-height: 50px;
    padding-inline: 1.875rem;
    overflow: hidden;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.45s var(--ease-out-expo), border-color 0.45s var(--ease-out-expo), transform 0.2s var(--ease);
}

.store .button::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: var(--action-hover-bg);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.55s var(--ease-out-expo);
}

.store .button:hover:not(:disabled) {
    background: var(--action-bg);
}

.store .button:hover:not(:disabled)::before {
    transform: scaleX(1);
    transform-origin: left;
}

.store .button--ghost:hover:not(:disabled) {
    border-color: var(--action-bg);
    background: transparent;
}

.store .button--ghost::before {
    background: var(--action-bg);
}

.store .button--gold:hover:not(:disabled) {
    background: var(--selixora-gold);
}

.store .button--gold::before {
    background: var(--action-hover-bg);
}

.text-link {
    position: relative;
    display: inline-flex;
    padding: 0 0 2px;
    border: 0;
    background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
    color: var(--heading);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background-size 0.45s var(--ease-out-expo), color 0.2s;
}

.text-link:hover {
    background-position: right bottom;
    background-size: 0 1px;
}

.icon {
    display: block;
    width: 24px;
    height: 24px;
}

.icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 0;
    background: none;
    color: var(--heading);
    cursor: pointer;
}

.icon-button--light {
    color: var(--ivory);
}

/* Forms */
.field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.field__label {
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 500;
}

.field__label .field__required {
    margin-left: 0.1875rem;
    color: var(--error);
}

.field__control {
    position: relative;
}

.field__input {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--field-bg);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    box-shadow: 0 1px 2px rgb(31 31 31 / 4%);
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.field__input:hover {
    border-color: var(--line-strong);
}

.field__input:focus {
    border-color: var(--selixora-gold);
    outline: 0;
    box-shadow: 0 0 0 4px rgb(200 164 92 / 22%);
}

.field__input:disabled {
    background: var(--surface-sunken);
    color: var(--text-muted);
    cursor: not-allowed;
}

textarea.field__input {
    min-height: 132px;
    resize: vertical;
}

.field__control:has(.field__toggle) .field__input {
    padding-right: 3.25rem;
}

.field__toggle {
    position: absolute;
    top: 50%;
    right: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s;
}

.field__toggle:hover,
.field__toggle[aria-pressed="true"] {
    color: var(--text);
}

.field__toggle .icon {
    width: 20px;
    height: 20px;
}

/* A line through the eye once the password is showing */
.field__toggle::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(-45deg) scaleX(0);
    transition: transform 0.25s var(--ease);
}

.field__toggle[aria-pressed="true"]::after {
    transform: rotate(-45deg) scaleX(1);
}

.field__input::placeholder {
    color: var(--text-muted);
}

select.field__input {
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239E7D36' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.875rem center;
    background-size: 18px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.field__input--invalid,
.field__input--invalid:hover {
    border-color: var(--error);
    background-color: rgb(232 196 192 / 12%);
}

.field__input--invalid:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgb(140 47 47 / 14%);
}

.field__error {
    color: var(--error);
    font-size: 0.8125rem;
    font-weight: 500;
    animation: rise-in 0.4s var(--ease-out-expo);
}

.field__hint {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.checkbox,
.radio {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--tap);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox input,
.radio input {
    display: grid;
    flex: none;
    place-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: var(--field-bg);
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.radio input {
    border-radius: 50%;
}

.checkbox input:hover,
.radio input:hover {
    border-color: var(--selixora-gold);
}

.checkbox input:focus-visible,
.radio input:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgb(200 164 92 / 26%);
}

.checkbox input:checked,
.radio input:checked {
    border-color: var(--selixora-gold);
    background: var(--selixora-gold);
}

.checkbox input::after {
    content: "";
    width: 11px;
    height: 6px;
    margin-top: -2px;
    border-bottom: 2px solid var(--charcoal);
    border-left: 2px solid var(--charcoal);
    opacity: 0;
    transform: rotate(-45deg);
    transition: opacity 0.15s;
}

.radio input::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--charcoal);
    opacity: 0;
    transition: opacity 0.15s;
}

.checkbox input:checked::after,
.radio input:checked::after {
    opacity: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-group__title {
    margin-bottom: var(--space-3);
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 500;
}

.status,
.notice {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--heading);
    border-radius: var(--radius);
    background: var(--surface-raised);
    color: var(--heading);
    font-size: 0.875rem;
}

.notice {
    margin-bottom: var(--space-5);
}

.notice--error {
    border-color: var(--error);
    color: var(--error);
}

.notice--error a {
    color: inherit;
}

/* Logo */
.logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.625rem;
    color: var(--heading);
    text-decoration: none;
}

.logo__icon {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    transition: transform 0.9s var(--ease-out-expo);
}

.logo:hover .logo__icon {
    transform: rotate(45deg);
}

.logo__name {
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    line-height: 1;
    text-transform: uppercase;
}

/* Announcement and header */
.announcement {
    padding: 0.4375rem var(--gutter);
    background: var(--selixora-ink);
    color: var(--selixora-gold-light);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgb(15 77 58 / 97%);
    color: var(--text);
    transition: background-color 0.4s, box-shadow 0.4s;
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--selixora-gold) 20%, var(--selixora-gold-light) 50%, var(--selixora-gold) 80%, transparent);
    opacity: 0.35;
    transition: opacity 0.4s;
}

.site-header.is-scrolled {
    background: rgb(10 53 40 / 90%);
    box-shadow: 0 14px 40px rgb(31 31 31 / 24%);
    backdrop-filter: blur(14px) saturate(140%);
}

.site-header.is-scrolled::after {
    opacity: 0.8;
}

.site-header__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--header-height);
    max-width: var(--page-width);
    margin-inline: auto;
    padding-inline: var(--space-1);
}

.site-header .icon-button {
    color: var(--text);
    transition: color 0.25s, transform 0.25s var(--ease);
}

.site-header .icon {
    width: 21px;
    height: 21px;
    stroke-width: 1.5;
}

.site-header .logo {
    color: var(--text);
}

.site-header__logo {
    justify-self: center;
}

.site-header__actions {
    display: flex;
    justify-content: flex-end;
}

.site-header__account,
.site-nav {
    display: none;
}

.cart-count {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding-inline: 4px;
    border-radius: 9px;
    background: var(--selixora-gold);
    color: var(--selixora-noir);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.cart-count.is-empty {
    display: none;
}

.is-bumped {
    animation: bag-bump 0.6s var(--ease-out-expo);
}

@keyframes bag-bump {
    30% {
        transform: scale(1.22);
    }
}

.site-search {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--gutter) var(--space-3);
    animation: rise-in 0.45s var(--ease-out-expo);
}

.site-search[hidden] {
    display: none;
}

.site-search--page {
    max-width: 640px;
    margin-inline: auto;
    padding-inline: 0;
    animation: none;
}

/* Drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.drawer[hidden] {
    display: none;
}

.drawer__scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgb(31 31 31 / 58%);
    opacity: 0;
    transition: opacity 0.45s;
}

.drawer__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(86vw, 360px);
    height: 100%;
    padding: var(--space-3) var(--space-5) var(--space-5);
    overflow-y: auto;
    background: var(--surface);
    transform: translateX(-100%);
    transition: transform 0.55s var(--ease-out-expo);
}

.drawer.is-open .drawer__scrim {
    opacity: 1;
}

.drawer.is-open .drawer__panel {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.drawer__head .logo {
    color: var(--text);
}

.drawer__link {
    display: flex;
    align-items: center;
    min-height: 52px;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), color 0.2s;
}

.drawer.is-open .drawer__link {
    opacity: 1;
    transform: none;
}

.drawer.is-open .drawer__link:nth-child(2) { transition-delay: 0.08s; }
.drawer.is-open .drawer__link:nth-child(3) { transition-delay: 0.12s; }
.drawer.is-open .drawer__link:nth-child(4) { transition-delay: 0.16s; }
.drawer.is-open .drawer__link:nth-child(5) { transition-delay: 0.2s; }
.drawer.is-open .drawer__link:nth-child(6) { transition-delay: 0.24s; }
.drawer.is-open .drawer__link:nth-child(n+7) { transition-delay: 0.28s; }

.drawer__link:hover {
    color: var(--accent);
}

.drawer__link--small {
    min-height: var(--tap);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.drawer__rule {
    width: 48px;
    height: 1px;
    margin-block: var(--space-4);
    background: var(--selixora-gold);
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--border);
    background: rgb(250 247 242 / 94%);
    backdrop-filter: blur(14px);
}

.bottom-nav__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: var(--bottom-nav-height);
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s;
}

.bottom-nav__link .icon {
    width: 21px;
    height: 21px;
}

.bottom-nav__link::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 32%;
    right: 32%;
    height: 2px;
    background: var(--selixora-gold);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out-expo);
}

.bottom-nav__link.is-current {
    color: var(--charcoal);
}

.bottom-nav__link.is-current::before {
    transform: scaleX(1);
}

.bottom-nav__icon {
    position: relative;
}

.bottom-nav__icon .cart-count {
    top: -5px;
    right: -9px;
}

/* Room for the fixed bottom navigation, so it never covers the end of the page. */
.store--with-nav {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

/* Hero */
.hero {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(60% 70% at 88% 18%, rgb(239 227 203 / 75%), transparent 70%),
        var(--surface);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
    max-width: var(--page-width);
    margin-inline: auto;
    padding: var(--space-7) var(--gutter) var(--space-5);
}

.hero__copy {
    text-align: center;
}

.hero__copy > * {
    animation: rise-in 1.1s var(--ease-out-expo) backwards;
}

.hero__copy > :nth-child(2) { animation-delay: 0.1s; }
.hero__copy > :nth-child(3) { animation-delay: 0.22s; }
.hero__copy > :nth-child(4) { animation-delay: 0.34s; }

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: var(--space-4);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.hero .hero-title {
    font-size: clamp(2.875rem, 1.75rem + 5.2vw, 6.25rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 0.98;
}

.hero__text {
    max-width: 29rem;
    margin: var(--space-5) auto var(--space-6);
    color: var(--text-muted);
    font-size: 1.0625rem;
    font-weight: 300;
}

.hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.hero__actions .button {
    padding-inline: var(--space-2);
}

/* With no images, as on the men's storefront, the logo itself carries the hero. */
.hero--text-only {
    display: grid;
    align-items: center;
    min-height: min(82svh, 760px);
    background:
        radial-gradient(52% 62% at 50% 46%, rgb(239 227 203 / 80%), transparent 72%),
        var(--surface);
}

.hero__mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(128vw, 780px);
    margin: calc(min(128vw, 780px) / -2);
    opacity: 0.2;
    pointer-events: none;
}

.hero__mark .brand-mark__ring {
    transform-origin: center;
    animation: slow-spin 120s linear infinite;
}

.hero__mark .brand-mark__stroke {
    animation: draw-stroke 3.4s var(--ease-out-expo) 0.2s backwards;
}

.hero--text-only .hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: var(--space-8);
}

.hero--text-only .hero__copy {
    max-width: 48rem;
    margin-inline: auto;
}

.hero--text-only .hero__text {
    margin-inline: auto;
}

/* Hero slideshow. The fixed 4:5 frame keeps sliding from moving the page. Images
   cross-fade with a slow settle, and only the entering and leaving slides show. */
.slideshow {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
}

.slideshow__frame {
    --chamfer: 26px;
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-sunken);
    clip-path: var(--octagon);
}

.slideshow__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.slideshow__slide.is-active,
.slideshow__slide.is-leaving {
    opacity: 1;
}

.slideshow__slide.is-active {
    z-index: 2;
    transition: opacity var(--slide-duration) ease;
}

.slideshow__slide.is-leaving {
    z-index: 1;
}

.slideshow__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow__slide.is-active img {
    animation: drift-in 7s var(--ease-out-expo);
}

.slideshow__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
}

.slideshow__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: var(--tap);
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.slideshow__dot::after {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--line-strong);
    transition: background-color 0.4s, transform 0.4s var(--ease-out-expo);
}

.slideshow__dot[aria-current="true"]::after {
    background: var(--selixora-gold);
    transform: scaleY(1.5);
}

.slideshow__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 0;
    background: none;
    color: var(--heading);
    cursor: pointer;
}

.js .slideshow__toggle {
    display: flex;
}

.slideshow__toggle .icon {
    width: 16px;
    height: 16px;
}

.slideshow__toggle .icon-play,
.slideshow__toggle.is-paused .icon-pause {
    display: none;
}

.slideshow__toggle.is-paused .icon-play {
    display: block;
}

:focus-visible.slideshow__dot,
:focus-visible.slideshow__toggle {
    outline-offset: -4px;
}

/* Section headings */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.section-head .kicker {
    margin-bottom: var(--space-2);
}

.section-title {
    font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
    font-weight: 500;
}

.section-head .text-link {
    flex: none;
    margin-bottom: 0.5rem;
}

/* Page header */
.page-header {
    padding-block: var(--space-7);
    background:
        radial-gradient(46% 120% at 50% 0%, rgb(236 200 128 / 16%), transparent 70%),
        var(--surface-sunken);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
}

.page-header .dot-rule {
    margin-bottom: 0;
}

.page-header__text {
    margin-top: var(--space-4);
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Categories */
.category-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    gap: var(--space-3);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}

.category-rail::-webkit-scrollbar,
.review-rail::-webkit-scrollbar {
    display: none;
}

.category-card {
    position: relative;
    display: block;
    color: var(--selixora-ivory);
    text-decoration: none;
    scroll-snap-align: start;
    clip-path: var(--octagon);
}

.category-card__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-sunken);
}

.category-card__image::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent, rgb(31 31 31 / 78%));
    transition: opacity 0.5s;
}

.category-card__image img:not(.product-image__fallback) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-out-expo);
}

.category-card__image .product-image__fallback {
    position: relative;
    top: -6%;
    width: 72px;
    height: 72px;
    opacity: 0.9;
}

.category-card__name {
    position: absolute;
    right: var(--space-5);
    bottom: var(--space-4);
    left: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.1;
}

.category-card__name .icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--selixora-gold-light);
    transition: transform 0.5s var(--ease-out-expo);
}

/* Product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-3);
}

.product-grid-wrap {
    transition: opacity 0.3s;
}

.product-grid-wrap.is-loading {
    opacity: 0.45;
}

/* The image and the buying action share a grid row so that, on devices with a
   pointer, the action can rise over the image without extra wrapping markup. */
.product-card {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: var(--space-1);
    min-width: 0;
}

.product-card__media {
    position: relative;
    display: block;
    grid-row: 1;
    grid-column: 1;
    margin-bottom: var(--space-2);
    overflow: hidden;
    background: var(--surface-sunken);
}

.product-card__image--alternate {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.product-card__badge {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 1;
    padding: 0.1875rem 0.5rem;
    background: var(--selixora-ivory);
    color: var(--charcoal);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-card__link {
    grid-row: 2;
    color: inherit;
    text-decoration: none;
}

.product-card__name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    transition: color 0.25s;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card__link:hover .product-card__name {
    color: var(--accent);
}

.product-card .price {
    grid-row: 3;
}

.product-card__action {
    grid-row: 4;
    align-self: end;
    margin-top: var(--space-2);
}

.product-card .button {
    width: 100%;
    min-height: var(--tap);
    padding-inline: var(--space-2);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-sunken);
}

.product-image img:not(.product-image__fallback) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
}

.product-image__fallback {
    width: 72px;
    height: 72px;
    opacity: 0.55;
}

.price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-2);
}

.price__now {
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
}

.price__was {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.price__badge {
    padding: 0.0625rem 0.375rem;
    border-radius: 4px;
    background: var(--selixora-blush);
    color: var(--charcoal);
    font-size: 0.6875rem;
    font-weight: 600;
}

.stock {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--heading);
    font-size: 0.8125rem;
    font-weight: 500;
}

.stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--selixora-gold);
}

.stock--out {
    color: var(--text-muted);
}

.stock--out::before {
    background: var(--border-strong);
}

/* Listing toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
}

.toolbar__count {
    color: var(--text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

.toolbar__sort {
    width: 190px;
}

.toolbar__sort .field__input {
    min-height: var(--tap);
    border-color: transparent;
    background-color: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: right;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-7);
    color: var(--text);
    font-size: 0.8125rem;
}

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-7) var(--space-5);
    border: 1px solid var(--line);
    background: var(--surface-raised);
    text-align: center;
}

.empty-state img {
    margin-bottom: var(--space-2);
}

.empty-state__title {
    font-size: 1.75rem;
}

.empty-state__text {
    max-width: 30rem;
    color: var(--text-muted);
}

.empty-state .button {
    margin-top: var(--space-3);
}

/* Promotional banner */
.promo {
    padding: 0 var(--gutter) var(--section);
}

.story + .promo {
    padding-top: var(--section);
}

.promo__frame {
    --chamfer: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    max-width: calc(var(--page-width) - var(--gutter) * 2);
    margin-inline: auto;
    padding: var(--space-7) var(--space-5);
    background:
        radial-gradient(70% 90% at 50% 0%, rgb(255 255 255 / 55%), transparent 70%),
        var(--promo-surface, var(--selixora-champagne));
    color: var(--text);
    text-align: center;
    clip-path: var(--octagon);
}

/* Blush is the palette's soft highlight, kept to this one banner on the women's side. */
.theme-women .promo__frame {
    --promo-surface: rgb(232 196 192 / 58%);
}

.promo__media {
    width: 100%;
}

.promo__image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.promo__title {
    font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.promo__text {
    max-width: 34rem;
    color: var(--text-muted);
}

/* Promises */
.promises {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.promise {
    padding: var(--space-5) var(--space-3);
    border-bottom: 1px solid var(--line);
}

.promise:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--line);
}

.promise__icon {
    width: 26px;
    height: 26px;
    margin-bottom: var(--space-3);
    color: var(--accent);
    transition: transform 0.6s var(--ease-out-expo);
}

.promise__title {
    font-size: 1.375rem;
}

.promise__text {
    margin-top: var(--space-1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Reviews */
.review-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: var(--space-3);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-5) var(--space-5);
    border: 1px solid var(--line);
    background: var(--surface-raised);
    scroll-snap-align: start;
    transition: border-color 0.4s, transform 0.6s var(--ease-out-expo);
}

.review-card::before {
    content: "\201C";
    position: absolute;
    top: 0.25rem;
    right: var(--space-4);
    color: var(--selixora-gold);
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1;
    opacity: 0.4;
}

.review-card__stars {
    color: var(--selixora-gold);
    font-size: 0.8125rem;
    letter-spacing: 0.16em;
}

.review-card blockquote {
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.375rem;
    line-height: 1.3;
}

.review-card figcaption {
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-card a {
    color: var(--accent);
}

/* Newsletter */
.newsletter {
    padding: var(--section) var(--gutter);
    background:
        radial-gradient(50% 100% at 50% 100%, rgb(236 200 128 / 20%), transparent 70%),
        var(--surface-sunken);
    text-align: center;
}

.newsletter__inner {
    max-width: 540px;
    margin-inline: auto;
}

.newsletter__title {
    font-size: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
}

.newsletter .dot-rule {
    margin-block: var(--space-4);
}

.newsletter__text {
    margin-bottom: var(--space-5);
    color: var(--text-muted);
}

.newsletter-form__row {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.newsletter-form__row .button--gold {
    border-color: var(--action-bg);
    background: var(--action-bg);
    color: var(--action-text);
}

.newsletter-form__row .button--gold::before {
    background: var(--action-hover-bg);
}

.newsletter-form__row .button--gold:hover:not(:disabled) {
    background: var(--action-bg);
    color: var(--action-hover-text);
}

.newsletter-form__field {
    flex: 1;
}

.newsletter-form__field .field__input {
    min-height: 50px;
}

.newsletter-form__message {
    margin-top: var(--space-2);
    color: var(--heading);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--surface);
    color: var(--text);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-4);
    padding-block: var(--space-8) var(--space-7);
}

.site-footer__brand {
    grid-column: 1 / -1;
}

.site-footer .logo {
    color: var(--text);
}

.site-footer .logo__icon {
    width: 3rem;
    height: 3rem;
}

.site-footer .logo__name {
    font-size: 1.375rem;
}

.site-footer__about {
    margin-top: var(--space-4);
    max-width: 24rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 300;
}

.site-footer__slogan {
    margin-top: var(--space-3);
    color: var(--selixora-gold-light);
    font-size: 1.5rem;
}

.site-footer__title {
    margin-bottom: var(--space-3);
    color: var(--selixora-gold);
    font-family: var(--font-primary);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.site-footer__list {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.site-footer__list li {
    overflow-wrap: anywhere;
}

.site-footer__list a {
    display: inline-block;
    padding-block: 0.3125rem;
    background: linear-gradient(currentColor, currentColor) left calc(100% - 4px) / 0 1px no-repeat;
    color: var(--text-muted);
    text-decoration: none;
    transition: background-size 0.45s var(--ease-out-expo), color 0.25s;
}

.site-footer__list a:hover {
    background-size: 100% 1px;
    color: var(--selixora-ivory);
}

.site-footer__legal {
    padding: var(--space-4) var(--gutter);
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-align: center;
}

/* Product page */
.product {
    display: flex;
    flex-direction: column;
    padding-inline: 0;
    padding-bottom: 92px;
}

.gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
    display: none;
}

.gallery__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.gallery__thumbs {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--gutter) 0;
    overflow-x: auto;
}

.gallery__thumb {
    flex: 0 0 60px;
    padding: 0;
    border: 1px solid transparent;
    background: none;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s, border-color 0.3s;
}

.gallery__thumb:hover {
    opacity: 1;
}

.gallery__thumb.is-active {
    border-color: var(--selixora-gold);
    opacity: 1;
}

.product__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5) var(--gutter) 0;
}

.product__name {
    font-size: clamp(2.125rem, 1.625rem + 2vw, 3.375rem);
    line-height: 1.04;
}

.product__label {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.product__short {
    color: var(--text-muted);
    font-weight: 300;
}

.purchase {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.purchase__price .price__now {
    font-size: 1.5rem;
    font-weight: 500;
}

.options .field__label {
    display: block;
    color: var(--text-muted);
}

.options__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.option {
    min-height: var(--tap);
    padding: 0.5rem 1.125rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.option:hover {
    border-color: var(--heading);
}

.option.is-selected {
    border-color: var(--action-bg);
    background: var(--action-bg);
    color: var(--action-text);
}

.option.is-unavailable {
    color: var(--text-muted);
    text-decoration: line-through;
}

.quantity {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--text);
}

.quantity__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 0;
    background: none;
    color: var(--heading);
    cursor: pointer;
    transition: color 0.2s;
}

.quantity__button:hover:not(:disabled) {
    color: var(--accent);
}

.quantity__button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.quantity__button .icon {
    width: 16px;
    height: 16px;
}

.quantity__value {
    min-width: 2rem;
    color: var(--text);
    font-weight: 600;
    text-align: center;
}

.buy-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    padding: var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.buy-bar .button {
    padding-inline: var(--space-2);
}

.details-list {
    margin-top: var(--space-4);
    border-top: 1px solid var(--line);
}

.detail {
    border-bottom: 1px solid var(--line);
}

.detail::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.45s var(--ease-out-expo), content-visibility 0.45s allow-discrete;
}

.detail[open]::details-content {
    block-size: auto;
}

.detail summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    color: var(--heading);
    font-size: 0.875rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.detail summary::-webkit-details-marker {
    display: none;
}

.detail summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.45s var(--ease-out-expo);
}

.detail[open] summary::after {
    transform: rotate(135deg);
}

.detail__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-bottom: var(--space-4);
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.detail__body a {
    color: var(--accent);
}

/* Cart, checkout and orders */
.line-items {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.line-item {
    display: flex;
    gap: var(--space-4);
    padding-block: var(--space-5);
    border-bottom: 1px solid var(--line);
}

.line-item:first-child {
    padding-top: 0;
}

.line-item__image {
    flex: 0 0 88px;
    width: 88px;
    height: fit-content;
}

.line-item__image .product-image__fallback,
.line-item .product-image__fallback {
    width: 36px;
    height: 36px;
}

.line-item__body {
    flex: 1;
    min-width: 0;
}

.line-item__name {
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.line-item__meta {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.line-item__total {
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
}

.line-item__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-3);
}

.quantity--small .quantity__button {
    width: 38px;
    height: 38px;
}

.line-items--compact .line-item {
    padding-block: var(--space-2);
}

.summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    border-top: 2px solid var(--selixora-gold);
    background: var(--surface-raised);
    box-shadow: 0 18px 50px rgb(31 31 31 / 7%);
}

.summary__title {
    font-size: 1.625rem;
}

.totals {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.9375rem;
}

.totals > div,
.facts > div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
}

.totals dt {
    color: var(--text-muted);
}

.totals__grand {
    margin-top: var(--space-1);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
    font-size: 1.125rem;
    font-weight: 600;
}

.totals__grand dt {
    color: var(--text);
}

.checkout-action {
    position: sticky;
    bottom: 0;
    padding-block: var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom));
    background: var(--surface-raised);
}

.facts {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    border: 1px solid var(--line);
    background: var(--surface-raised);
    font-size: 0.9375rem;
}

.facts dt {
    flex: 0 0 90px;
    color: var(--text-muted);
}

.facts dd {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.order-list {
    border-top: 1px solid var(--line);
}

.order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 72px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    transition: padding 0.4s var(--ease-out-expo), color 0.2s;
}

.order-row:hover {
    padding-inline: var(--space-2);
    color: var(--accent);
}

.order-row__number {
    display: block;
    font-weight: 600;
}

.order-row__meta {
    display: block;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.order-row__total {
    font-weight: 600;
}

/* Content pages */
.prose {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    color: var(--text);
}

.prose h2 {
    margin-top: var(--space-5);
    font-size: 1.875rem;
}

.prose ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.prose li + li {
    margin-top: var(--space-1);
}

.prose li::marker {
    color: var(--selixora-gold);
}

.prose__lead {
    color: var(--heading);
    font-size: 1.75rem;
    line-height: 1.3;
}

/* About page */
.about {
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
}

.about__lead {
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}

.about__lead p + p {
    margin-top: var(--space-3);
    color: var(--text-muted);
}

.about__photo {
    overflow: hidden;
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-large);
}

.about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__experience {
    display: grid;
    gap: var(--space-5);
    padding: var(--space-6) var(--space-5);
    border-top: 2px solid var(--selixora-gold);
    border-radius: var(--radius-large);
    background: var(--surface-sunken);
}

.about__stat {
    color: var(--selixora-gold-text);
    font-family: var(--font-heading);
    font-size: clamp(3.75rem, 3rem + 3vw, 6rem);
    font-weight: 500;
    line-height: 1;
}

.about__stat-label {
    margin-top: var(--space-2);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about__values {
    display: grid;
    gap: var(--space-3);
}

.about__value {
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
    background: var(--surface-raised);
}

.about__value h3 {
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
}

.about__value p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.about__close {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    max-width: 40rem;
    margin-inline: auto;
    text-align: center;
}

.about__close p {
    color: var(--text-muted);
}

.about__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

/* Auth pages */
.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--surface);
}

.auth-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 168px;
    padding: var(--space-4) var(--gutter);
    overflow: hidden;
    background-color: var(--charcoal);
    color: var(--selixora-ivory);
}

.auth-visual__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: drift-in 14s var(--ease-out-expo);
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgb(31 31 31 / 18%) 0%, rgb(31 31 31 / 82%) 100%);
}

.auth-visual__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    animation: rise-in 1s var(--ease-out-expo) 0.1s backwards;
}

.auth-visual__kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--selixora-gold-light);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.auth-visual__kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    background: currentColor;
    clip-path: var(--sparkle);
    animation: twinkle 2.6s ease-in-out infinite;
}

.auth-visual__title {
    color: var(--selixora-ivory);
    font-size: clamp(1.75rem, 1.4rem + 1.8vw, 3.25rem);
    font-weight: 500;
    line-height: 1.06;
}

.auth-visual__text,
.auth-benefits {
    display: none;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5) var(--gutter) var(--space-6);
}

.auth {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 27rem;
    gap: var(--space-4);
    animation: rise-in 0.9s var(--ease-out-expo);
}

.auth__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.auth__title {
    font-size: clamp(2rem, 1.75rem + 1vw, 2.75rem);
}

.auth__lead {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.auth__text {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

.auth__text a,
.auth__link {
    color: var(--accent);
    font-weight: 600;
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.auth__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.auth__link {
    font-size: 0.875rem;
}

.auth__legal {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}

.auth__legal a {
    color: inherit;
}

/* Guest layout, used by error pages */
.guest {
    min-height: 100vh;
}

.guest__main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-6) var(--gutter);
    background: radial-gradient(50% 60% at 50% 40%, rgb(239 227 203 / 80%), transparent 72%), var(--surface);
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
    animation: rise-in 0.9s var(--ease-out-expo);
}

.error-page__logo {
    margin-bottom: var(--space-5);
}

.error-page__code {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.28em;
}

.error-page__title {
    font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.error-page__message {
    max-width: 30rem;
    margin-bottom: var(--space-3);
    color: var(--text-muted);
}

/* Toasts. Top right on large screens, full width under the header on phones. */
.toast-region {
    position: fixed;
    top: calc(var(--header-height) + var(--space-3));
    right: var(--space-3);
    left: var(--space-3);
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    pointer-events: none;
}

.toast {
    --toast-accent: var(--selixora-gold);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: 0.875rem 0.625rem 0.9375rem var(--space-4);
    overflow: hidden;
    border: 1px solid var(--border);
    border-left: 3px solid var(--toast-accent);
    border-radius: var(--radius);
    background: var(--selixora-white);
    color: var(--charcoal);
    opacity: 0;
    box-shadow: var(--shadow-float);
    transform: translateX(28px);
    pointer-events: auto;
    transition: opacity 0.3s, transform 0.5s var(--ease-out-expo);
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast--error {
    --toast-accent: var(--error);
}

.toast--warning {
    --toast-accent: var(--selixora-gold-dark);
}

.toast--info {
    --toast-accent: var(--selixora-charcoal);
}

.toast__icon {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: var(--toast-accent);
}

.toast__body {
    flex: 1;
    min-width: 0;
}

.toast__title {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
}

.toast__message {
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.toast__close {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: -5px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.toast__close:hover {
    background: var(--selixora-sand);
    color: var(--charcoal);
}

.toast__close svg {
    width: 16px;
    height: 16px;
}

.toast__timer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--toast-accent);
    opacity: 0.5;
    transform-origin: left;
    animation: toast-timer var(--toast-duration) linear forwards;
}

.toast:hover .toast__timer {
    animation-play-state: paused;
}

@keyframes toast-timer {
    to {
        transform: scaleX(0);
    }
}

/* Page progress */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--selixora-gold-dark), var(--selixora-gold), var(--selixora-gold-light));
    box-shadow: 0 0 10px rgb(236 200 128 / 70%);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
    transition: transform 0.28s var(--ease-out-expo), opacity 0.3s 0.1s;
}

.page-progress.is-active {
    opacity: 1;
    transition: transform 0.28s var(--ease-out-expo), opacity 0.1s;
}

/* Image loading. The space is held by each image's frame, so nothing jumps.
   The hero keeps its own timing because delaying it would slow the first paint. */
/* :where() keeps this from overriding frames that position themselves. */
:where(.skeleton) {
    position: relative;
    background-color: var(--surface-sunken);
}

.js .skeleton::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 62%) 50%, transparent 70%) 0 0 / 240% 100%;
    pointer-events: none;
    animation: shimmer 1.5s ease-in-out infinite;
}

.js .skeleton.is-loaded::before,
.js .skeleton.is-failed::before {
    display: none;
}

.js .skeleton img:not([fetchpriority="high"]) {
    opacity: 0;
    transition: opacity 0.5s ease, transform 1.2s var(--ease-out-expo);
    animation: show-image-anyway 0.01s linear 6s forwards;
}

.js .skeleton.is-loaded img {
    opacity: 1;
    animation: none;
}

.skeleton.is-failed {
    background: var(--surface-sunken) url("../images/logo.svg") center / 56px no-repeat;
}

.skeleton.is-failed img {
    display: none;
}

@keyframes shimmer {
    from {
        background-position: 130% 0;
    }

    to {
        background-position: -30% 0;
    }
}

/* If a script ever fails, images still appear. */
@keyframes show-image-anyway {
    to {
        opacity: 1;
    }
}

/* Collection videos */
.video-showcase {
    padding-block: var(--section);
    background: var(--surface-sunken);
}

.video-showcase__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
}

.video-showcase__head {
    max-width: 40rem;
    margin-bottom: var(--space-6);
    padding-inline: var(--space-5);
    text-align: center;
}

.video-showcase__text {
    color: var(--text-muted);
    font-size: 1.0625rem;
    font-weight: 300;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--charcoal);
}

.video-player iframe {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-player__poster {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.video-player__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-out-expo);
}

.video-player__poster.is-unavailable img {
    display: none;
}

.video-player__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    color: var(--selixora-noir);
    background: var(--gold-gradient);
    clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
    transform: translate(-50%, -50%);
    transition: transform 0.6s var(--ease-out-expo);
}

.video-player__play .icon {
    width: 26px;
    height: 26px;
    margin-left: 3px;
    fill: currentColor;
}

.video-player__poster:focus-visible {
    outline-offset: -6px;
    outline-color: var(--selixora-white);
}

.video-showcase__cta {
    gap: var(--space-2);
    min-width: 220px;
    margin-top: var(--space-6);
}

.video-showcase__cta .icon,
.storefront-choice__cta .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.5s var(--ease-out-expo);
}

/* Storefront selection */
.storefront-choices {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.storefront-choice {
    position: relative;
    display: flex;
    min-height: 44svh;
    overflow: hidden;
    background: var(--surface);
    text-decoration: none;
    transition: flex-grow 0.9s var(--ease-out-expo);
}

.storefront-choice::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 70% at 50% 45%, rgb(239 227 203 / 85%), transparent 72%);
}

.storefront-choice__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.6s var(--ease-out-expo);
}

.storefront-choice--image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(31 31 31 / 22%), rgb(31 31 31 / 66%));
}

.storefront-choice__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin: var(--space-3);
    padding: var(--space-6) var(--space-4);
    border: 1px solid var(--line-strong);
    text-align: center;
    animation: rise-in 1.2s var(--ease-out-expo) backwards;
}

.theme-men .storefront-choice__body {
    animation-delay: 0.14s;
}

.storefront-choice__title {
    color: var(--heading);
    font-size: clamp(3.5rem, 2.4rem + 5vw, 7.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 0.98;
}

.storefront-choice__rule {
    position: relative;
    width: 96px;
    height: 1px;
    background: var(--selixora-gold);
    transition: width 0.9s var(--ease-out-expo);
}

.storefront-choice__rule::after {
    content: "";
    position: absolute;
    top: -6px;
    left: calc(50% - 6.5px);
    width: 13px;
    height: 13px;
    background: var(--selixora-gold);
    clip-path: var(--sparkle);
}

.storefront-choice__text {
    margin-bottom: var(--space-3);
    color: var(--text-muted);
    font-weight: 300;
}

.storefront-choice--image .storefront-choice__title,
.storefront-choice--image .storefront-choice__text {
    color: var(--selixora-ivory);
}

.storefront-choice__cta {
    gap: var(--space-2);
}

.storefront-seal {
    display: none;
}

/* Header storefront switcher */
.storefront-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    color: var(--text);
}

.storefront-switcher--desktop {
    display: none;
}

.storefront-switcher--mobile {
    border-top: 1px solid var(--line);
}

.storefront-switcher__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding-inline: var(--space-3);
    color: var(--text);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.72;
    transition: opacity 0.3s;
}

.storefront-switcher__link::after {
    content: "";
    position: absolute;
    right: var(--space-3);
    bottom: 10px;
    left: var(--space-3);
    height: 1px;
    background: var(--selixora-gold);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out-expo);
}

.storefront-switcher__link:hover,
.storefront-switcher__link.is-active {
    opacity: 1;
}

.storefront-switcher__link.is-active::after {
    transform: scaleX(1);
}

.storefront-switcher__divider {
    width: 1px;
    height: 12px;
    background: var(--line-strong);
}

/* Colour themes. Everything else follows from the tokens at the top of this file. */
.theme-women,
.theme-men {
    background: var(--surface);
    color: var(--text);
}

.store-main.theme-men,
.store-main.theme-women {
    min-height: 60vh;
}

/* Timeless style */
.story {
    position: relative;
    padding: var(--section) var(--gutter);
    overflow: hidden;
    background: var(--surface-sunken);
    color: var(--text);
    text-align: center;
}

.story__mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 620px;
    margin: -310px;
    opacity: 0.16;
    pointer-events: none;
}

.js .story .brand-mark__stroke {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 3.2s var(--ease-out-expo) 0.2s;
}

.js .story.is-visible .brand-mark__stroke {
    stroke-dashoffset: 0;
}

.story__inner {
    position: relative;
    max-width: 44rem;
    margin-inline: auto;
}

.story__kicker {
    margin-bottom: var(--space-4);
}

.story__title {
    font-size: clamp(2.5rem, 1.75rem + 3.6vw, 4.75rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.04;
}

.story__text {
    color: var(--text-muted);
    font-size: 1.0625rem;
    font-weight: 300;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

/* Page changes, such as choosing a storefront, fade across supporting browsers. */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    @view-transition {
        navigation: auto;
    }

    ::view-transition-old(root) {
        animation: page-out 0.22s ease both;
    }

    ::view-transition-new(root) {
        animation: page-in 0.45s var(--ease-out-expo) both;
    }
}

@keyframes page-out {
    to {
        opacity: 0;
    }
}

@keyframes page-in {
    from {
        opacity: 0;
    }
}

/* Scroll reveal. Hidden only once the script has confirmed it can show it again.
   Items in a group arrive one after another, using the --stagger set by app.js. */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.js .reveal [style*="--stagger"] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-out-expo) calc(var(--stagger) * 80ms), transform 1s var(--ease-out-expo) calc(var(--stagger) * 80ms);
}

.js .reveal.is-visible [style*="--stagger"] {
    opacity: 1;
    transform: none;
}

/* Listings are not scroll-revealed, so their first page arrives row by row on load. */
.product-grid-wrap .product-card {
    animation: rise-in 0.9s var(--ease-out-expo) backwards;
}

.product-grid-wrap .product-card:nth-child(4n+2) { animation-delay: 0.07s; }
.product-grid-wrap .product-card:nth-child(4n+3) { animation-delay: 0.14s; }
.product-grid-wrap .product-card:nth-child(4n+4) { animation-delay: 0.21s; }

/* The buying action rises over the image only where there is a pointer to reveal it. */
@media (hover: hover) and (pointer: fine) {
    .product-card__action {
        z-index: 2;
        grid-row: 1;
        grid-column: 1;
        margin: 0 var(--space-2) calc(var(--space-2) * 2);
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.4s, transform 0.6s var(--ease-out-expo);
    }

    .product-card:hover .product-card__action,
    .product-card:focus-within .product-card__action {
        opacity: 1;
        transform: none;
    }

    .product-card:hover .product-card__image--alternate {
        opacity: 1;
    }

    .product-card:hover .product-image img:not(.product-image__fallback),
    .category-card:hover .category-card__image img:not(.product-image__fallback) {
        transform: scale(1.05);
    }

    .storefront-choice:hover .storefront-choice__image {
        transform: scale(1.05);
    }

    .storefront-choice:hover .storefront-choice__rule {
        width: 160px;
    }

    .category-card:hover .category-card__name .icon,
    .storefront-choice:hover .storefront-choice__cta .icon,
    .video-showcase__cta:hover .icon {
        transform: translateX(5px);
    }

    .promise:hover .promise__icon {
        transform: translateY(-3px);
    }

    .review-card:hover {
        border-color: var(--line-strong);
        transform: translateY(-4px);
    }

    .site-header .icon-button:hover {
        color: var(--accent);
    }

    .video-player__poster:hover img {
        transform: scale(1.03);
    }

    .video-player__poster:hover .video-player__play {
        transform: translate(-50%, -50%) scale(1.08) rotate(45deg);
    }

    .video-player__poster:hover .video-player__play .icon {
        transform: rotate(-45deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .js .reveal,
    .js .reveal [style*="--stagger"] {
        opacity: 1;
        transform: none;
    }
}
