/* Store page - builds on the tokens and components in styles_v2.css */

:root {
    /* Muted champagne - used once, for the premium tag on the featured piece */
    --gold: #c9b37e;
    --card-radius: 8px;
}

/* Navbar: always on screen, clear over the hero, solid once scrolled past it */
.navbar[data-always] {
    transform: none;
    visibility: visible;
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.navbar[data-always].navbar-solid,
.navbar[data-always].navbar-open {
    background-color: rgba(13, 13, 13, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.navbar[data-always] .navbar-links {
    margin-left: auto;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 30px;
}

/* Cart pill */
.cart-button {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 8px 0 14px;
    background-color: rgba(13, 13, 13, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    color: var(--text-strong);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cart-button:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.cart-button svg {
    width: 18px;
    height: 18px;
}

.cart-button.is-bump {
    animation: cartBump 0.6s var(--ease-out);
}

@keyframes cartBump {
    0% { transform: scale(1); }
    35% { transform: scale(1.14); }
    100% { transform: scale(1); }
}

.cart-count {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--text-strong);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.2s ease;
}

.cart-count.has-items {
    background-color: var(--accent);
}

/* Hero: the home hero, slightly shorter so the collection is within reach */
.video-header--store {
    height: 72vh;
    height: 72svh;
    min-height: 460px;
}

/* Ticker under the hero */
.store-ticker {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-footer);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.store-ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 48s linear infinite;
}

.store-ticker span {
    display: flex;
    align-items: center;
    padding: 15px 0;
    color: var(--text-subtle);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-ticker span::after {
    content: '';
    width: 4px;
    height: 4px;
    margin: 0 34px;
    border-radius: 50%;
    background-color: var(--border-hover);
}

/* the track holds the phrase set four times; sliding by half of it loops seamlessly */
@keyframes ticker {
    to { transform: translateX(-50%); }
}

/* Section + heading */
.store-section {
    padding: var(--section-pad) 20px;
    background-color: var(--bg);
    min-height: 60vh;
}

.store-head {
    margin-bottom: clamp(40px, 5vw, 64px);
    text-align: center;
}

.store-title {
    font-size: clamp(1.5rem, 1.05rem + 2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: var(--text-strong);
}

.store-title sup {
    font-size: 0.42em;
    font-weight: 500;
    vertical-align: super;
    line-height: 0;
}

.store-from {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.store-from span {
    color: var(--text-subtle);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.store-from img {
    width: min(300px, 64vw);
    height: auto;
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 110ms);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Garment stage: a cut-out garment lit from behind */
.stage {
    position: relative;
    overflow: hidden;
    background-color: #0b0b0b;
    perspective: 1400px;
}

/* square by default: an in-flow spacer works in every browser, unlike aspect-ratio on stretched grid items */
.stage::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.stage-light {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at var(--mx, 50%) var(--my, 42%), rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05) 40%, transparent 68%);
    transition: opacity 0.5s ease;
    opacity: 0.75;
}

.stage:hover .stage-light {
    opacity: 1;
}

.stage-garment {
    position: absolute;
    inset: 0;
}

.stage-flipper {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.9s var(--ease-out);
}

.stage.is-back .stage-flipper,
.stage.is-peek:not(.is-back) .stage-flipper {
    transform: rotateY(180deg);
}

.stage-side {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.65));
}

.stage-back {
    transform: rotateY(180deg);
}

@media (hover: none) {
    .stage {
        perspective: none;
    }

    .stage-flipper {
        transform-style: flat;
        transition: none;
    }

    .stage.is-back .stage-flipper,
    .stage.is-peek:not(.is-back) .stage-flipper {
        transform: none;
    }

    .stage-side {
        -webkit-backface-visibility: visible;
        backface-visibility: visible;
        filter: none;
        transition: opacity 0.45s ease;
    }

    .stage-back {
        transform: none;
        opacity: 0;
    }

    .stage.is-back .stage-front {
        opacity: 0;
    }

    .stage.is-back .stage-back {
        opacity: 1;
    }
}

/* Featured piece hovers over its own shadow */
.stage-float .stage-garment {
    animation: garmentFloat 7s ease-in-out infinite;
}

.stage-shadow {
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 9%;
    height: 5%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
    animation: shadowBreathe 7s ease-in-out infinite;
}

@keyframes garmentFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2.2%); }
}

@keyframes shadowBreathe {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(0.86); opacity: 0.6; }
}

.stage-toggle {
    position: absolute;
    left: 50%;
    bottom: 14px;
    display: flex;
    padding: 3px;
    background-color: rgba(13, 13, 13, 0.7);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.stage-toggle-button {
    padding: 5px 13px;
    background: none;
    border: none;
    border-radius: 13px;
    color: var(--text-subtle);
    font-family: inherit;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.stage-toggle-button:hover {
    color: var(--text-strong);
}

.stage-toggle-button[aria-pressed="true"] {
    background-color: var(--text-strong);
    color: var(--bg);
}

.stage-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(201, 179, 126, 0.45);
    border-radius: var(--radius-sm);
    background-color: rgba(13, 13, 13, 0.6);
    color: var(--gold);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Creator zone: appears above everything else for visitors holding the creator key */
.creator-zone[hidden] {
    display: none;
}

.creator-zone > * + * {
    margin-top: 28px;
}

.creator-zone .featured-card {
    margin-bottom: 0;
}

.creator-zone {
    margin-bottom: 28px;
}

/* Small left-hand heading with a rule running to the edge */
.store-divider {
    display: flex;
    align-items: center;
    gap: 20px;
}

.creator-zone .store-divider:last-child {
    margin-top: clamp(44px, 6vw, 72px);
}

.store-section .store-divider h2 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    line-height: 1.4;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--border-strong);
}

.creator-note {
    color: var(--text-subtle);
    font-size: 0.78rem;
    white-space: nowrap;
}

/* Wide creator piece with one more piece beside it */
/* The row is wider than the page column: the hoodie card keeps close to its full size and the tee sits beside it */
.creator-row,
.creator-zone > .store-divider:first-child {
    --breakout: min(calc(100vw - 64px), 1540px);
    width: var(--breakout);
    margin-left: calc((100% - var(--breakout)) / 2);
}

.creator-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: stretch;
}

.creator-row .product-card {
    max-width: none;
}

/* the stage is taller than wide here: fit the whole garment instead of filling (which would clip the sleeves) */
.creator-row .featured-card .stage-side {
    object-fit: contain;
}

.creator-row .featured-copy {
    padding: clamp(28px, 3vw, 48px);
}

.creator-row .featured-facts li {
    padding: 0 14px;
}

.creator-row .featured-fact-value {
    font-size: clamp(1.15rem, 0.8rem + 0.8vw, 1.5rem);
}

@media (max-width: 1100px) {
    .creator-row,
    .creator-zone > .store-divider:first-child {
        width: auto;
        margin-left: 0;
    }

    .creator-row {
        grid-template-columns: 1fr;
    }

    .creator-row .product-card {
        width: 100%;
        max-width: 368px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .store-divider {
        flex-wrap: wrap;
        gap: 8px 16px;
    }
}

/* Featured card: stage left, copy and buy controls right */
.featured-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    margin-bottom: 28px;
    overflow: hidden;
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
}

.featured-card[hidden] {
    display: none;
}

/* the "little gold bar" */
.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 179, 126, 0.7) 30%, rgba(201, 179, 126, 0.7) 70%, transparent);
}

.featured-card .stage {
    height: 100%;
}

.featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 56px);
    border-left: 1px solid var(--border);
}

.featured-card .featured-name {
    margin-bottom: 18px;
    font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.25;
    text-align: left;
    color: var(--text-strong);
}

.featured-headline {
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-strong);
}

.featured-body {
    max-width: 54ch;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Three facts on one ruled line */
.featured-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 28px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
    list-style: none;
}

.featured-facts li {
    padding: 0 18px;
    border-left: 1px solid var(--border-strong);
}

.featured-facts li:first-child {
    padding-left: 0;
    border-left: none;
}

.featured-fact-value {
    display: block;
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.featured-fact-label {
    display: block;
    margin-top: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.featured-copy .product-price {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* Product grid */
/* Wrapping row: three across, and a short last row sits centred instead of hugging the left */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.product-grid > * {
    flex: 1 1 290px;
    max-width: 368px;
}

.product-grid:empty {
    display: none;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out), border-color 0.3s ease;
}

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

.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 24px;
    border-top: 1px solid var(--border);
}

.product-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.product-name {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.35;
    color: var(--text-strong);
}

.product-price {
    flex-shrink: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.product-price s {
    margin-right: 8px;
    font-weight: 400;
    color: var(--text-subtle);
}

.product-points {
    margin-top: 12px;
    list-style: none;
}

.product-points li {
    position: relative;
    padding-left: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.product-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--text-subtle);
}

.product-buy {
    margin-top: auto;
    padding-top: 20px;
}

/* Size picker */
.option-group {
    margin-bottom: 18px;
}

.option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.option-label {
    color: var(--text-subtle);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.option-label strong {
    margin-left: 8px;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.option-guide {
    padding: 2px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-hover);
    color: var(--text-subtle);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.option-guide:hover {
    color: var(--text-strong);
    border-bottom-color: var(--text-strong);
}

.option-values {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.option-values-wide {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.option-size {
    height: 40px;
    padding: 0 6px;
    background-color: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.option-size[aria-pressed="true"] {
    background-color: var(--text-strong);
    border-color: var(--text-strong);
    color: var(--bg);
}

.option-size:disabled {
    background-color: transparent;
    border-color: var(--border);
    border-style: dashed;
    color: #555555;
    cursor: not-allowed;
    text-decoration: line-through;
}

.product-add {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.product-add:disabled {
    background-color: transparent;
    border-color: var(--border-strong);
    color: var(--text-subtle);
    cursor: not-allowed;
}

.product-add.is-added,
.product-add.is-added:disabled {
    background-color: var(--text-strong);
    border-color: var(--text-strong);
    color: var(--bg);
    animation: addedPulse 0.65s var(--ease-out);
}

@keyframes addedPulse {
    0% { transform: scale(1); }
    40% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

.product-note {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--accent-bright);
}

.product-note:empty {
    display: none;
}

/* Skeletons while the catalogue loads */
.skeleton-block,
.skeleton-line {
    background: linear-gradient(100deg, var(--surface) 40%, var(--surface-hover) 50%, var(--surface) 60%);
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
}

.skeleton-block {
    aspect-ratio: 4 / 5;
    border-radius: var(--card-radius);
}

.skeleton-line {
    height: 12px;
    margin-top: 18px;
    width: 60%;
    border-radius: 2px;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* Empty / opening soon / error */
.store-state {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 0 20px;
    text-align: center;
}

.store-state[hidden] {
    display: none;
}

.store-state h2 {
    margin-bottom: 18px;
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-strong);
}

.store-state p {
    margin-bottom: 32px;
    color: var(--text-subtle);
    line-height: 1.7;
}

.store-state .game-links {
    justify-content: center;
}

/* Trust row */
.store-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(56px, 7vw, 88px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    list-style: none;
}

.store-trust[hidden] {
    display: none;
}

.store-trust li {
    padding: 28px 28px 28px 0;
}

.store-trust li + li {
    padding-left: 28px;
    border-left: 1px solid var(--border);
}

.store-trust strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-strong);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.store-trust span {
    color: var(--text-subtle);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Store FAQ - reuses the home page accordion, a touch smaller */
.store-faq h2 {
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
    margin-bottom: 36px;
}

.store-faq .faq-question {
    font-size: 0.98rem;
}

/* The label: close-up that melts into the page, one line of copy */
.label-section {
    padding: var(--section-pad) 20px;
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.label-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.label-photo img {
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, #000 52%, transparent 100%);
}

.label-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
    text-align: left;
}

.label-copy p {
    max-width: 40ch;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

/* Cart drawer */
.cart-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(440px, 100vw);
    height: 100%;
    max-height: none;
    max-width: none;
    margin: 0;
    padding: 0;
    background-color: var(--bg-alt);
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}

.cart-drawer[open] {
    transform: translateX(0);
}

@starting-style {
    .cart-drawer[open] {
        transform: translateX(100%);
    }
}

.cart-drawer::backdrop,
.guide-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.5s ease, overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}

.cart-drawer[open]::backdrop,
.guide-dialog[open]::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

@starting-style {
    .cart-drawer[open]::backdrop,
    .guide-dialog[open]::backdrop {
        background-color: rgba(0, 0, 0, 0);
    }
}

.cart-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-strong);
}

.cart-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: -10px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-close:hover {
    color: var(--text-strong);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 26px;
    overscroll-behavior: contain;
}

.cart-empty {
    padding: 70px 0;
    text-align: center;
    color: var(--text-subtle);
}

.cart-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-media {
    height: 84px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.1), transparent 65%), #0b0b0b;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.cart-item-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cart-item-name {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-strong);
}

.cart-item-price {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.cart-item-variant {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}

.qty button {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.qty button:hover {
    color: var(--text-strong);
}

.qty span {
    min-width: 26px;
    text-align: center;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.cart-remove {
    padding: 6px 0;
    background: none;
    border: none;
    color: var(--text-subtle);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-remove:hover {
    color: var(--accent-bright);
}

.cart-body.is-busy {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cart-error {
    margin: 14px 0 0;
    font-size: 0.85rem;
    color: var(--accent-bright);
}

.cart-footer {
    padding: 22px 26px 26px;
    border-top: 1px solid var(--border);
    background-color: var(--bg);
}

.cart-footer[hidden] {
    display: none;
}

/* Free-shipping progress */
.cart-shipping {
    margin-bottom: 20px;
}

.cart-shipping[hidden] {
    display: none;
}

.cart-shipping p {
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

.cart-shipping-bar {
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background-color: var(--border-strong);
}

.cart-shipping-bar span {
    display: block;
    height: 100%;
    background-color: var(--text-muted);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s var(--ease-out), background-color 0.3s ease;
}

.cart-shipping.is-unlocked .cart-shipping-bar span {
    background-color: var(--text-strong);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}

.cart-note {
    margin: 8px 0 18px;
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.cart-checkout {
    width: 100%;
    padding: 16px 28px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* Size guide dialog */
.guide-dialog {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    overflow: hidden auto;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-strong);
    border-radius: var(--card-radius);
    color: var(--text);
}

.guide-body {
    padding: 22px 26px 28px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Measurement table */
.guide-chart {
    margin-bottom: 22px;
}

.guide-units {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 3px;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
}

.guide-chart table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.guide-chart th,
.guide-chart td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.guide-chart thead th {
    color: var(--text-subtle);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: pre;
}

.guide-chart tbody th {
    color: var(--text-strong);
    font-weight: 600;
}

.guide-chart td {
    color: var(--text);
}

.guide-body img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    background-color: var(--text-strong);
}

.guide-body > * + * {
    margin-top: 0.6em;
}

/* Responsive */
@media (max-width: 900px) {
    .label-layout {
        grid-template-columns: 1fr;
    }

    .label-copy {
        text-align: center;
    }

    .label-copy h2 {
        text-align: center;
    }

    .label-copy p {
        margin: 0 auto;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-card .stage {
        height: auto;
    }

    .featured-copy {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .store-trust {
        grid-template-columns: 1fr;
    }

    .store-trust li,
    .store-trust li + li {
        padding: 22px 0;
        border-left: none;
    }

    .store-trust li + li {
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .navbar-actions {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    /* the container already pads 20px */
    .store-section {
        padding-left: 0;
        padding-right: 0;
    }

    .video-header--store {
        height: 62vh;
        height: 62svh;
        min-height: 380px;
    }

    .cart-label {
        display: none;
    }

    .cart-button {
        padding-left: 10px;
    }

    .featured-facts li {
        padding: 0 10px;
    }

    .featured-fact-label {
        letter-spacing: 1px;
    }

    .cart-header,
    .cart-body,
    .cart-footer,
    .guide-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .store-ticker-track,
    .stage-float .stage-garment,
    .stage-shadow,
    .skeleton-block,
    .skeleton-line,
    .cart-button.is-bump,
    .product-add.is-added {
        animation: none;
    }

    .stage-flipper,
    .cart-shipping-bar span,
    .cart-drawer,
    .cart-drawer::backdrop,
    .guide-dialog::backdrop {
        transition: none;
    }
}
