.sf-discover {
    position: relative;
    isolation: auto;
    min-width: 0;
    overflow: visible;
    padding: 0 0 7rem;
}

.sf-discover--hub {
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    max-width: 79rem;
    margin-inline: auto;
    padding: clamp(1.5rem, 5vw, 4.5rem) clamp(0.25rem, 2vw, 1.5rem) 8rem;
}

.sf-discover--hub::before {
    inset: 0;
    background-position: left center;
    opacity: 0.12;
}

.sf-discover-hub__intro {
    display: grid;
    gap: 0.65rem;
    max-width: 48rem;
}

.sf-discover-hub__intro h1,
.sf-discover-hub__intro p,
.sf-discover-hub__paths h2,
.sf-discover-hub__paths p {
    margin: 0;
}

.sf-discover-hub__intro h1 {
    max-width: 13ch;
    font-size: clamp(2.35rem, 7vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.sf-discover-hub__intro > p:last-child {
    max-width: 38rem;
    color: var(--sf-color-ink-muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.55;
}

.sf-discover-hub__eyebrow {
    color: var(--sf-color-ink-muted);
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sf-discover-hub__layout {
    display: grid;
    gap: clamp(1.5rem, 4vw, 4rem);
}

.sf-discover-hub__feature {
    position: relative;
    display: flex;
    min-height: 25rem;
    overflow: hidden;
    border-radius: clamp(1.1rem, 3vw, 2rem);
    background: #1d1916;
    color: #fffdfa;
    padding: clamp(1.35rem, 4vw, 3rem);
    flex-direction: column;
    text-decoration: none;
}

.sf-discover-hub__feature::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, transparent 0 52%, rgb(255 255 255 / 0.055) 52% 53%, transparent 53%),
        radial-gradient(circle at 88% 12%, rgb(255 255 255 / 0.13), transparent 31%);
    content: "";
    pointer-events: none;
}

.sf-discover-hub__feature > * {
    position: relative;
}

.sf-discover-hub__feature-kicker {
    color: rgb(255 253 250 / 0.7);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sf-discover-hub__feature-title {
    max-width: 8ch;
    margin-top: auto;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 850;
    line-height: 0.82;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.sf-discover-hub__feature-copy {
    max-width: 36rem;
    margin-top: 1.4rem;
    color: rgb(255 253 250 / 0.74);
    font-size: 0.95rem;
    line-height: 1.5;
}

.sf-discover-hub__decision {
    display: flex;
    margin-top: 1.6rem;
    border-top: 1px solid rgb(255 255 255 / 0.25);
    padding-top: 0.8rem;
    justify-content: space-between;
    color: rgb(255 253 250 / 0.62);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sf-discover-hub__feature-action {
    display: inline-flex;
    min-height: var(--sf-touch-target);
    margin-top: 1.15rem;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    background: #fffdfa;
    color: #1d1916;
    padding: 0.7rem 1rem;
    font-weight: 800;
}

.sf-discover-hub__paths {
    min-width: 0;
}

.sf-discover-hub__paths > header {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.sf-discover-hub__paths h2 {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    letter-spacing: -0.035em;
}

.sf-discover-hub__paths nav {
    border-top: 1px solid var(--sf-color-border);
}

.sf-discover-hub__paths nav > a {
    display: grid;
    min-height: 5rem;
    align-items: center;
    gap: 0.85rem;
    grid-template-columns: 2rem minmax(0, 1fr) 2rem;
    border-bottom: 1px solid var(--sf-color-border);
    color: var(--sf-color-ink);
    text-decoration: none;
}

.sf-discover-hub__paths nav > a > span:nth-child(2) {
    display: grid;
    gap: 0.15rem;
}

.sf-discover-hub__paths strong {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.sf-discover-hub__paths small,
.sf-discover-hub__path-number {
    color: var(--sf-color-ink-muted);
}

.sf-discover-hub__paths small {
    font-size: 0.82rem;
    line-height: 1.35;
}

.sf-discover-hub__path-number {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sf-discover-hub__path-arrow {
    font-size: 1.2rem;
    text-align: right;
    transition: translate 160ms ease;
}

.sf-discover-hub__feature:focus-visible,
.sf-discover-hub__paths a:focus-visible {
    outline: 0.2rem solid var(--sf-color-focus, currentColor);
    outline-offset: 0.25rem;
}

@media (hover: hover) {
    .sf-discover-hub__feature:hover .sf-discover-hub__feature-action span,
    .sf-discover-hub__paths a:hover .sf-discover-hub__path-arrow {
        translate: 0.25rem 0;
    }
}

@media (min-width: 64rem) {
    .sf-discover-hub__layout {
        align-items: stretch;
        grid-template-columns: minmax(0, 1.13fr) minmax(23rem, 0.87fr);
    }

    .sf-discover-hub__feature {
        min-height: 32rem;
    }
}

@media (max-width: 24rem) and (max-height: 46rem) {
    .sf-discover--hub {
        gap: 1.25rem;
        padding-top: 0.75rem;
    }

    .sf-discover-hub__intro {
        gap: 0.35rem;
    }

    .sf-discover-hub__intro h1 {
        font-size: clamp(2rem, 10vw, 2.55rem);
    }

    .sf-discover-hub__intro > p:last-child {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .sf-discover-hub__feature {
        min-height: 0;
        padding: 1.1rem;
    }

    .sf-discover-hub__feature-title {
        margin-top: 2.2rem;
        font-size: 2.65rem;
    }

    .sf-discover-hub__feature-copy,
    .sf-discover-hub__decision,
    .sf-discover-hub__feature-action {
        margin-top: 0.9rem;
    }

    .sf-discover-hub__feature-copy {
        font-size: 0.86rem;
    }
}

.sf-shell__main:has(> .sf-discover) > [data-context-navigation] {
    display: none;
}

.sf-discover::before {
    position: absolute;
    z-index: 0;
    inset: -1rem;
    border-radius: var(--sf-radius-panel);
    background: var(--sf-color-surface) image-set(
        url("/assets/storefront/discover/discover-texture-480.webp") 1x,
        url("/assets/storefront/discover/discover-texture-864.webp") 2x
    ) center / cover;
    content: "";
    opacity: 0.18;
    pointer-events: none;
}

.sf-discover > * {
    position: relative;
    z-index: 1;
}

.sf-discover__topbar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: start;
    margin-bottom: 0.75rem;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.sf-discover header.sf-discover__topbar {
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.sf-discover__mobile-summary h3,
.sf-discover__mobile-summary p,
.sf-discover__feedback,
.sf-discover__progress {
    margin: 0;
}

.sf-discover__header-actions {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.sf-discover__panel-trigger--header {
    border: 0;
    background: transparent;
    color: var(--sf-color-ink-muted);
    padding: 0.45rem;
    font: inherit;
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.sf-discover__panel-trigger--header {
    display: inline-flex;
    min-width: var(--sf-touch-target);
    min-height: var(--sf-touch-target);
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
}

.sf-discover__panel-trigger--header svg,
.sf-discover__action--details svg {
    width: 1.35rem;
    height: 1.35rem;
}

.sf-discover__active-filters {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
    overflow-x: auto;
}

.sf-discover__active-chip {
    flex: 0 0 auto;
    border: 1px solid var(--sf-color-border);
    border-radius: 999px;
    background: var(--sf-color-surface-raised);
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.sf-discover__feedback:empty {
    display: none;
}

.sf-discover__feedback {
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--sf-color-surface-raised) 92%, transparent);
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    text-align: center;
}

.sf-discover__workspace {
    display: grid;
    min-width: 0;
}

.sf-discover__stage {
    width: 100%;
    min-width: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    outline-offset: 0.3rem;
    touch-action: pan-y;
}

.sf-discover__deck {
    position: relative;
    width: min(100%, 35rem);
    max-width: 35rem;
    margin-inline: auto;
    padding: 0 0.45rem 0.45rem;
}

.sf-discover__photo,
.sf-discover__next-card {
    display: block;
    overflow: hidden;
    border-radius: clamp(1rem, 4vw, 1.65rem);
    background: var(--sf-color-surface-raised);
    box-shadow: 0 1rem 2.5rem rgb(30 22 17 / 0.16);
}

.sf-discover__photo {
    position: relative;
    z-index: 2;
    height: clamp(22rem, 54svh, 39rem);
    translate: var(--sf-discover-drag-x, 0) 0;
    rotate: var(--sf-discover-drag-rotate, 0deg);
    transition: translate 180ms ease, rotate 180ms ease;
    cursor: zoom-in;
}

.sf-discover__photo:focus-visible {
    outline: 0.2rem solid var(--sf-color-focus, currentColor);
    outline-offset: 0.2rem;
}

.sf-discover__stage[data-discovery-drag] .sf-discover__photo {
    transition: none;
}

.sf-discover__photo img,
.sf-discover__photo > svg,
.sf-discover__next-card img,
.sf-discover__next-card > svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-discover__photo .sf-responsive-image {
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: auto;
}

.sf-discover__next-card {
    position: absolute;
    z-index: 1;
    inset: 0 0.9rem -0.25rem;
    rotate: 1.75deg;
    opacity: 0.62;
}

.sf-discover__gallery-hint {
    position: absolute;
    z-index: 3;
    right: 0.8rem;
    bottom: 0.8rem;
    border: 1px solid rgb(255 255 255 / 0.62);
    border-radius: 999px;
    background: rgb(30 22 17 / 0.72);
    color: #fff;
    padding: 0.38rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(0.5rem);
}

.sf-discover__swipe-cue {
    position: absolute;
    top: 45%;
    border: 0.18rem solid currentColor;
    border-radius: 0.6rem;
    background: rgb(255 253 250 / 0.82);
    padding: 0.45rem 0.65rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    opacity: 0;
    text-transform: uppercase;
}

.sf-discover__swipe-cue--pass {
    left: 1rem;
    color: #7a3232;
    rotate: -8deg;
}

.sf-discover__swipe-cue--love {
    right: 1rem;
    color: #7c3153;
    rotate: 8deg;
}

.sf-discover__stage--pass .sf-discover__swipe-cue--pass,
.sf-discover__stage--love .sf-discover__swipe-cue--love,
.sf-discover__stage[data-discovery-drag="pass"] .sf-discover__swipe-cue--pass,
.sf-discover__stage[data-discovery-drag="love"] .sf-discover__swipe-cue--love {
    animation: sf-discover-cue 300ms ease both;
}

.sf-discover__stage--pass .sf-discover__photo {
    animation: sf-discover-card-pass 300ms ease both;
}

.sf-discover__stage--love .sf-discover__photo {
    animation: sf-discover-card-love 300ms ease both;
}

.sf-discover__stage--undo .sf-discover__photo {
    animation: sf-discover-card-undo 300ms ease both;
}

.sf-discover__mobile-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.1rem 0.8rem;
    max-width: 34rem;
    margin: 0.55rem auto 0;
    padding-inline: 0.35rem;
}

.sf-discover__mobile-summary h3 {
    font-size: 1.05rem;
    line-height: 1.15;
}

.sf-discover__mobile-summary p {
    grid-column: 1;
    color: var(--sf-color-ink-muted);
    font-size: 0.78rem;
}

.sf-discover__mobile-summary strong {
    grid-row: 1 / 3;
    grid-column: 2;
    font-size: 1.08rem;
}

.sf-discover__actions {
    position: fixed;
    z-index: var(--sf-z-persistent-action);
    right: 0.75rem;
    bottom: calc(var(--sf-bottom-nav-height) + var(--sf-touch-target) + var(--sf-space-2) + env(safe-area-inset-bottom));
    left: 0.75rem;
    display: grid;
    grid-template-columns: 0.58fr minmax(0, 1fr) 0.68fr;
    gap: 0.4rem;
    border: 1px solid color-mix(in srgb, var(--sf-color-border) 80%, transparent);
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--sf-color-surface-raised) 94%, transparent);
    box-shadow: 0 0.8rem 2rem rgb(30 22 17 / 0.18);
    padding: 0.55rem;
    backdrop-filter: blur(1rem);
}

.sf-discover__action.sf-discover__action--love-cart {
    position: relative;
    grid-column: 1 / -1;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 0.55rem;
    min-height: var(--sf-control-lg);
    border-color: var(--sf-color-ink);
    background: var(--sf-color-ink);
    color: var(--sf-color-surface);
    box-shadow: 0 0.45rem 1rem rgb(30 22 17 / 0.18);
    padding: 0 1rem;
    cursor: pointer;
    transition: translate 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.sf-discover__action--love-cart:is(:hover, :focus-visible):not(:disabled) {
    translate: 0 -1px;
    background: #3b2a31;
    box-shadow: 0 0.6rem 1.2rem rgb(30 22 17 / 0.22);
}

.sf-discover__want-copy {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.sf-discover__action--love-cart .sf-discover__want-copy strong {
    font-size: 1.02rem;
    letter-spacing: 0.02em;
}

.sf-discover__want-cart {
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
}

.sf-discover__want-cart svg {
    width: 1.2rem;
    height: 1.2rem;
}

.sf-discover__action--love-cart[data-cart-transfer-state='sending'] .sf-discover__want-cart {
    animation: sf-discover-want-cart 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-discover__action--love-cart[data-cart-transfer-state='sending'] .sf-discover__want-arrow {
    animation: sf-discover-want-arrow 520ms ease-in-out infinite alternate;
}

.sf-discover__action--love-cart[data-cart-transfer-state='refused'] {
    animation: sf-discover-want-refused 260ms ease-out;
}

.sf-discover__cart-flight {
    position: fixed;
    z-index: calc(var(--sf-z-modal) + 2);
    top: 0;
    left: 0;
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    overflow: hidden;
    border: 0.18rem solid #fff;
    border-radius: 50%;
    background: #6f294c;
    box-shadow: 0 0.85rem 1.6rem rgb(30 22 17 / 0.34);
    pointer-events: none;
    will-change: transform, opacity;
}

.sf-discover__cart-flight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-header-action='bag'].sf-discover__cart-receiving {
    animation: sf-discover-cart-receiving 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-discover__action {
    display: grid;
    min-height: var(--sf-control-lg);
    place-content: center;
    border: 1px solid var(--sf-color-border);
    border-radius: 999px;
    background: var(--sf-color-surface-raised);
    color: var(--sf-color-ink);
    font: inherit;
    line-height: 1;
}

.sf-discover__action span {
    font-size: 1.35rem;
}

.sf-discover__action strong,
.sf-discover__action small {
    font-size: 0.68rem;
}

.sf-discover__action--pass {
    border-color: color-mix(in srgb, var(--sf-color-ink-muted) 55%, var(--sf-color-border));
}

.sf-discover__action--details {
    cursor: pointer;
}

.sf-discover__action:disabled {
    opacity: 0.42;
}

.sf-discover__progress {
    margin-top: 0.55rem;
    color: var(--sf-color-ink-muted);
    font-size: 0.72rem;
    text-align: center;
}

.sf-discover__preferences,
.sf-discover__details {
    border: 1px solid var(--sf-color-border);
    border-radius: var(--sf-radius-card);
    background: color-mix(in srgb, var(--sf-color-surface-raised) 96%, transparent);
}

.sf-discover__preferences,
.sf-discover__details {
    margin-top: 0.65rem;
}

.sf-discover__preferences > summary,
.sf-discover__details > summary {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.8rem;
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 800;
    list-style: none;
}

.sf-discover__preferences > summary::-webkit-details-marker,
.sf-discover__details > summary::-webkit-details-marker {
    display: none;
}

.sf-discover__preferences > summary small {
    color: var(--sf-color-ink-muted);
    font-weight: 600;
}

.sf-discover__details > summary small {
    color: var(--sf-color-ink-muted);
    font-weight: 600;
}

.sf-discover__sheet-content {
    padding: 0.85rem;
}

.sf-discover__sheet-content h2,
.sf-discover__sheet-content p {
    margin-top: 0;
}

.sf-discover__choice-group {
    border: 0;
    padding: 0;
}

.sf-discover__choice-group legend {
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.sf-discover__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sf-discover__chip {
    position: relative;
}

.sf-discover__chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sf-discover__chip span {
    display: block;
    border: 1px solid var(--sf-color-border);
    border-radius: 999px;
    padding: 0.42rem 0.62rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.sf-discover__chip input:checked + span {
    border-color: var(--sf-color-ink);
    background: var(--sf-color-ink);
    color: var(--sf-color-surface);
}

.sf-discover__chip input:focus-visible + span {
    outline: 0.2rem solid var(--sf-color-focus, currentColor);
    outline-offset: 0.15rem;
}

.sf-discover__price-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.sf-discover__price-fields label {
    display: grid;
    gap: 0.25rem;
    color: var(--sf-color-ink-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.sf-discover__price-input {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--sf-color-border);
    border-radius: 0.8rem;
    background: var(--sf-color-surface-raised);
    padding-inline: 0.55rem;
}

.sf-discover__price-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sf-color-ink);
    font: inherit;
}

.sf-discover__price-input:focus-within {
    outline: 0.2rem solid var(--sf-color-focus, currentColor);
    outline-offset: 0.1rem;
}

.sf-discover__clear-filters {
    justify-self: start;
}

.sf-discover__details[open],
.sf-discover__preferences[open] {
    position: fixed;
    z-index: 55;
    right: 0.5rem;
    bottom: calc(4.2rem + env(safe-area-inset-bottom));
    left: 0.5rem;
    max-height: min(75svh, 42rem);
    overflow: auto;
    border-radius: 1.3rem 1.3rem 0 0;
    box-shadow: 0 -1rem 3rem rgb(0 0 0 / 0.28);
}

.sf-discover__facts {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0;
}

.sf-discover__facts div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--sf-color-border);
    padding-bottom: 0.35rem;
}

.sf-discover__facts dt {
    color: var(--sf-color-ink-muted);
}

.sf-discover__facts dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.sf-discover__price {
    font-size: 1.45rem;
    font-weight: 900;
}

.sf-discover__measurements h3 {
    margin: 1rem 0 0;
    font-size: 0.9rem;
}

.sf-discover__gallery {
    width: min(94vw, 62rem);
    max-width: none;
    max-height: 94svh;
    overflow: hidden;
    border: 0;
    border-radius: 1.25rem;
    background: var(--sf-color-surface-raised);
    color: var(--sf-color-ink);
    padding: 0;
    box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 0.35);
}

.sf-discover__gallery::backdrop {
    background: rgb(20 15 13 / 0.78);
    backdrop-filter: blur(0.35rem);
}

.sf-discover__gallery-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    gap: 0.7rem;
    max-height: 94svh;
    padding: 0.8rem;
}

.sf-discover__gallery header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sf-discover__gallery header p,
.sf-discover__gallery header h2,
.sf-discover__gallery-controls p {
    margin: 0;
}

.sf-discover__gallery header h2 {
    font-size: 1rem;
}

.sf-discover__gallery header button,
.sf-discover__gallery-controls button {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--sf-color-border);
    border-radius: 999px;
    background: var(--sf-color-surface-raised);
    color: var(--sf-color-ink);
}

.sf-discover__gallery header svg {
    width: 1.3rem;
    height: 1.3rem;
}

.sf-discover__gallery-viewport {
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    border-radius: 0.9rem;
    background: var(--sf-color-surface);
}

.sf-discover__gallery-viewport figure,
.sf-discover__gallery-viewport .sf-responsive-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
}

.sf-discover__gallery-viewport img {
    width: 100%;
    height: 100%;
    max-height: 66svh;
    object-fit: contain;
}

.sf-discover__gallery-controls {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.sf-discover__gallery-controls p {
    min-width: 6rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.sf-discover__gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    overflow-x: auto;
}

.sf-discover__gallery-thumbnails button {
    width: 3rem;
    height: 3.75rem;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 0.55rem;
    background: transparent;
    padding: 0;
}

.sf-discover__gallery-thumbnails button[aria-current="true"] {
    border-color: var(--sf-color-ink);
}

.sf-discover__gallery-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-discover__state {
    border-radius: var(--sf-radius-panel);
    background: color-mix(in srgb, var(--sf-color-surface-raised) 95%, transparent);
    padding: clamp(var(--sf-space-5), 5vw, var(--sf-space-7));
}

.sf-discover__tutorial {
    position: fixed;
    z-index: var(--sf-z-transient);
    inset: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    place-items: center;
    gap: 0.8rem;
    background: rgb(25 19 16 / 0.76);
    color: #fff;
    padding: 1rem;
    backdrop-filter: blur(0.45rem);
    pointer-events: none;
}

.sf-discover__tutorial[hidden] {
    display: none;
}

.sf-discover__tutorial button {
    position: absolute;
    top: calc(4.75rem + env(safe-area-inset-top));
    right: 1rem;
    bottom: auto;
    left: auto;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    pointer-events: auto;
}

.sf-discover__tutorial span,
.sf-discover__tutorial strong {
    text-align: center;
}

@media (max-width: 63.99rem) {
    .sf-discover__topbar {
        align-items: center;
        margin-bottom: 0.5rem;
    }

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

    .sf-discover__photo {
        height: clamp(18rem, calc(100svh - 24rem), 32rem);
    }

    .sf-discover__stage {
        padding-bottom: 0.35rem;
    }

    .sf-discover__mobile-summary {
        margin-top: 0.45rem;
        padding: 0 0.5rem 0.1rem;
    }

    .sf-discover__progress {
        margin-top: 0;
        line-height: 1.1;
        translate: 0 -0.4rem;
    }

    body:has(.sf-discover) {
        --sf-mobile-stack-height: calc(var(--sf-bottom-nav-height) + var(--sf-space-3) + env(safe-area-inset-bottom));
    }

    body:has(.sf-discover) .sf-footer {
        display: none;
    }

    .sf-discover__actions {
        bottom: calc(var(--sf-bottom-nav-height) + var(--sf-space-2) + env(safe-area-inset-bottom));
    }

    body:has(.sf-discover) .sf-contact-bubbles {
        display: none;
    }
}

@media (min-width: 64rem) {
    .sf-discover {
        min-height: calc(100svh - 10rem);
        padding: 0 0 1rem;
    }

    .sf-discover::before {
        inset: -1.5rem;
    }

    .sf-discover__topbar {
        align-items: center;
        margin-bottom: 1rem;
    }

    .sf-discover__panel-trigger {
        display: none;
    }

    .sf-discover__header-actions {
        position: static;
    }

    .sf-discover__actions {
        bottom: calc(var(--sf-touch-target) + var(--sf-space-2));
    }

    .sf-discover__workspace {
        grid-template-areas: "preferences stage details";
        grid-template-columns: clamp(14rem, 18vw, 17rem) minmax(28rem, 36rem) clamp(16rem, 20vw, 20rem);
        align-items: start;
        justify-content: center;
        gap: clamp(0.8rem, 1.35vw, 1.3rem);
        width: 100%;
        max-width: 80rem;
        min-height: 36rem;
        margin-inline: auto;
    }

    .sf-discover__preferences,
    .sf-discover__details {
        align-self: start;
        overflow: hidden;
        margin: 0;
        border-radius: 1.2rem;
        background: color-mix(in srgb, var(--sf-color-surface-raised) 98%, transparent);
        box-shadow: 0 0.7rem 2rem rgb(30 22 17 / 0.08);
    }

    .sf-discover__preferences {
        grid-area: preferences;
    }

    .sf-discover__stage {
        grid-area: stage;
        width: 100%;
        max-width: 36rem;
        border: 1px solid color-mix(in srgb, var(--sf-color-border) 78%, transparent);
        border-radius: 1.8rem;
        background: color-mix(in srgb, var(--sf-color-surface-raised) 98%, transparent);
        padding: 0.65rem;
        box-shadow: 0 1rem 2.6rem rgb(30 22 17 / 0.1);
    }

    .sf-discover__details {
        grid-area: details;
    }

    .sf-discover__preferences > summary,
    .sf-discover__details > summary {
        display: flex;
        border-bottom: 1px solid var(--sf-color-border);
        background: color-mix(in srgb, var(--sf-color-surface-raised) 96%, var(--sf-color-surface));
        padding: 0.72rem 0.85rem;
    }

    .sf-discover__preferences:not([open]) > .sf-discover__sheet-content,
    .sf-discover__details:not([open]) > .sf-discover__sheet-content {
        display: none;
    }

    .sf-discover__preferences[open],
    .sf-discover__details[open] {
        position: static;
        max-height: none;
        overflow: hidden;
        border-radius: var(--sf-radius-card);
        box-shadow: 0 0.7rem 2rem rgb(30 22 17 / 0.08);
    }

    .sf-discover__preferences > .sf-discover__sheet-content,
    .sf-discover__details > .sf-discover__sheet-content {
        max-height: min(34rem, calc(100svh - 12rem));
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .sf-discover__photo {
        height: clamp(27rem, 58svh, 34rem);
        min-height: 0;
        border-radius: 1.3rem;
        box-shadow: none;
    }

    .sf-discover__mobile-summary {
        display: grid;
        max-width: none;
        margin: 0.72rem 0.25rem 0;
        padding-inline: 0.15rem;
    }

    .sf-discover__mobile-summary h3 {
        font-size: 1.05rem;
    }

    .sf-discover__mobile-summary p {
        font-size: 0.74rem;
    }

    .sf-discover__mobile-summary strong {
        font-size: 1.08rem;
    }

    .sf-discover__actions {
        position: static;
        grid-template-columns: 3rem minmax(7rem, 1fr) minmax(8rem, 1fr);
        width: 100%;
        margin: 0.65rem auto 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        backdrop-filter: none;
    }

    .sf-discover__action.sf-discover__action--love-cart {
        grid-column: 3;
        grid-row: 1;
        min-height: var(--sf-control-lg);
    }

    .sf-discover__action--undo {
        grid-row: 1;
        grid-column: 1;
    }

    .sf-discover__action--pass {
        grid-row: 1;
        grid-column: 2;
    }

    .sf-discover__action {
        min-height: var(--sf-control-lg);
    }

    .sf-discover__action strong,
    .sf-discover__action small {
        font-size: 0.8rem;
    }

    .sf-discover__progress {
        font-size: 0.78rem;
    }

}

@media (min-width: 64rem) and (min-height: 50.01rem) {
    .sf-discover__photo {
        min-height: 32rem;
    }
}

@media (max-width: 24rem) {
    .sf-discover__photo {
        height: 48svh;
        min-height: 19rem;
    }

}

@media (max-width: 24rem) and (max-height: 42rem) {
    .sf-discover__stage {
        position: relative;
    }

    .sf-discover__photo {
        height: clamp(11.5rem, 32svh, 17rem);
        min-height: 0;
    }

    .sf-discover__mobile-summary {
        position: absolute;
        z-index: 12;
        right: 0.7rem;
        bottom: 1.75rem;
        left: 0.7rem;
        margin: 0;
        border: 1px solid rgb(255 255 255 / 0.56);
        border-radius: 0.85rem;
        background: rgb(255 253 250 / 0.9);
        padding: 0.45rem 0.6rem;
        box-shadow: 0 0.4rem 1rem rgb(30 22 17 / 0.14);
        backdrop-filter: blur(0.65rem);
    }

    .sf-discover__progress {
        display: none;
    }

    .sf-discover__mobile-summary {
        margin-top: 0;
        padding-bottom: 0;
    }
}

@media (prefers-color-scheme: dark) {
    .sf-discover::before {
        opacity: 0.08;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-discover__stage--pass .sf-discover__photo,
    .sf-discover__stage--love .sf-discover__photo,
    .sf-discover__stage--undo .sf-discover__photo,
    .sf-discover__stage--pass .sf-discover__swipe-cue--pass,
    .sf-discover__stage--love .sf-discover__swipe-cue--love {
        animation-duration: 0.01ms;
    }

    .sf-discover__action--love-cart,
    .sf-discover__want-cart,
    .sf-discover__want-arrow,
    [data-header-action='bag'].sf-discover__cart-receiving {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .sf-discover__cart-flight {
        display: none;
    }
}

@keyframes sf-discover-want-cart {
    0% { scale: 1; }
    48% { scale: 0.82; rotate: -8deg; }
    100% { scale: 1.06; rotate: 0deg; }
}

@keyframes sf-discover-want-arrow {
    to { translate: 0.14rem 0; }
}

@keyframes sf-discover-want-refused {
    35% { translate: -0.2rem 0; }
    70% { translate: 0.2rem 0; }
}

@keyframes sf-discover-cart-receiving {
    45% { scale: 1.22; rotate: -7deg; }
}

@keyframes sf-discover-card-pass {
    from { translate: -2rem 0; rotate: -3deg; opacity: 0.55; }
}

@keyframes sf-discover-card-love {
    from { translate: 2rem 0; rotate: 3deg; opacity: 0.55; }
}

@keyframes sf-discover-card-undo {
    from { scale: 0.96; opacity: 0.55; }
}

@keyframes sf-discover-cue {
    0% { scale: 0.85; opacity: 0; }
    35%, 75% { scale: 1; opacity: 1; }
    100% { opacity: 0; }
}
