/* =====================================================================
 * Brandify storefront kit
 * Shared, theme-agnostic components for every store theme (Basic,
 * Classic, Peak, Raw). Static file: no Vite build needed.
 * Loaded by layouts/storefront-theme.blade.php, followed by the theme's
 * own file (minimalist.css / editorial.css / kinetic.css / brutalist.css)
 * which sets the --sf-* tokens and adds that theme's character.
 *
 * Rules: 4/8 spacing only. Body text >= 15px on mobile. No thin weights.
 * Text over photos always sits on a scrim or a solid block.
 * See docs/design-system.md.
 * ===================================================================== */

html[data-theme] {
    --sf-paper: #ffffff;
    --sf-ink: #111111;
    --sf-muted: #5f5f5f;
    --sf-line: #e5e5e5;
    --sf-soft: #f2f2f2;
    --sf-accent: #111111;
    --sf-on-accent: #ffffff;
    --sf-sale: #b42318;
    --sf-badge-bg: #ffffff;
    --sf-badge-ink: #111111;
    --sf-nav-bg: var(--sf-paper);
    --sf-nav-ink: var(--sf-ink);
    --sf-font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --sf-font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --sf-display-weight: 400;
    --sf-display-transform: none;
    --sf-display-tracking: 0;
    --sf-display-leading: 1.08;
    --sf-btn-weight: 500;
    --sf-btn-transform: none;
    --sf-btn-tracking: 0.02em;
    --sf-radius: 0px;
    --sf-radius-btn: 999px;
    --sf-border-w: 0px;
    --sf-gutter: 16px;
    --sf-max: 1360px;
    --sf-nav-h: 56px;
    --sf-bar-h: 64px;
    --sf-scrim: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.62) 38%, rgba(0,0,0,.22) 72%, rgba(0,0,0,.10) 100%);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--sf-nav-h) + 8px);
}
@media (min-width: 768px) {
    html[data-theme] { --sf-gutter: 32px; --sf-nav-h: 72px; }
}
@media (min-width: 1200px) {
    html[data-theme] { --sf-gutter: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    html[data-theme] { scroll-behavior: auto; }
}

/* ---- Page shell --------------------------------------------------- */
body.sf-body {
    margin: 0;
    background: var(--sf-paper);
    color: var(--sf-ink);
    font-family: var(--sf-font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.sf-page, .sf-page *, .sf-nav, .sf-nav *, .sf-footer, .sf-footer * { box-sizing: border-box; }
.sf-nav :where(p, ul), .sf-footer :where(p, ul) { margin: 0; }
.sf-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sf-paper);
    color: var(--sf-ink);
    font-family: var(--sf-font-body);
    font-size: 16px;
    line-height: 1.55;
}
.sf-page main { flex: 1 0 auto; }
.sf-page img, .sf-page video { display: block; max-width: 100%; }
.sf-page button { font: inherit; }
.sf-page :where(h1, h2, h3, p, ul, ol, figure, dl) { margin: 0; }
.sf-wrap {
    width: 100%;
    max-width: var(--sf-max);
    margin: 0 auto;
    padding-left: var(--sf-gutter);
    padding-right: var(--sf-gutter);
}
.sf-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sf-skip {
    position: absolute; left: 8px; top: 8px; z-index: 100;
    padding: 12px 16px; background: var(--sf-ink); color: var(--sf-paper);
    text-decoration: none; font-size: 15px;
}
.sf-skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sf-display {
    font-family: var(--sf-font-display);
    font-weight: var(--sf-display-weight);
    text-transform: var(--sf-display-transform);
    letter-spacing: var(--sf-display-tracking);
    line-height: var(--sf-display-leading);
}

/* =====================================================================
 * Buttons & links
 * ===================================================================== */
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 28px;
    border: 2px solid var(--sf-accent);
    border-radius: var(--sf-radius-btn);
    background: var(--sf-accent);
    color: var(--sf-on-accent);
    font-family: var(--sf-font-body);
    font-size: 15px;
    font-weight: var(--sf-btn-weight);
    text-transform: var(--sf-btn-transform);
    letter-spacing: var(--sf-btn-tracking);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.sf-btn:hover { box-shadow: inset 0 0 0 999px rgba(127,127,127,.18); }
.sf-btn:active { transform: translateY(1px); }
.sf-btn:focus-visible { outline: 3px solid var(--sf-ink); outline-offset: 3px; }
.sf-btn[disabled], .sf-btn[aria-disabled="true"] {
    background: var(--sf-soft); border-color: var(--sf-line); color: var(--sf-muted);
    cursor: not-allowed; transform: none; box-shadow: none;
}
.sf-btn--ghost { background: transparent; color: var(--sf-ink); border-color: var(--sf-ink); }
.sf-btn--ghost:hover { background: var(--sf-ink); color: var(--sf-paper); box-shadow: none; }
/* On a dark scrim: always white with near-black text (>= 15:1). */
.sf-btn--on-media { background: #ffffff; color: #0d0d0d; border-color: #ffffff; }
.sf-btn--on-media:focus-visible { outline-color: #ffffff; }
.sf-btn--block { width: 100%; }
.sf-btn svg { width: 18px; height: 18px; flex: none; }
.sf-btn.is-loading { opacity: .7; cursor: progress; }

.sf-link {
    color: var(--sf-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}
.sf-link:hover { text-decoration-thickness: 2px; }
.sf-page a:focus-visible, .sf-page button:focus-visible { outline: 3px solid var(--sf-ink); outline-offset: 2px; }

/* =====================================================================
 * Navigation + drawer
 * ===================================================================== */
.sf-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--sf-nav-bg);
    color: var(--sf-nav-ink);
    border-bottom: 1px solid var(--sf-line);
}
.sf-nav__bar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    grid-template-areas: "menu brand bag";
    align-items: center;
    gap: 8px;
    height: var(--sf-nav-h);
}
.sf-nav__menu, .sf-nav__bag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sf-nav-ink);
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--sf-radius);
}
.sf-nav__menu { grid-area: menu; justify-self: start; }
.sf-nav__bag { grid-area: bag; justify-self: end; position: relative; }
.sf-nav__menu svg, .sf-nav__bag svg { width: 24px; height: 24px; }
.sf-nav__menu:hover, .sf-nav__bag:hover { opacity: .72; }
.sf-nav__brand {
    grid-area: brand;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    color: var(--sf-nav-ink);
    text-decoration: none;
    font-family: var(--sf-font-display);
    font-weight: var(--sf-display-weight);
    text-transform: var(--sf-display-transform);
    letter-spacing: var(--sf-display-tracking);
    font-size: 18px;
    line-height: 1.1;
}
.sf-nav__brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-nav__logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sf-soft); }
.sf-nav__links { grid-area: links; display: none; }
.sf-nav__links a {
    color: var(--sf-nav-ink);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}
.sf-nav__links a:hover, .sf-nav__links a[aria-current="page"] { border-bottom-color: currentColor; }
.sf-nav__count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sf-accent);
    color: var(--sf-on-accent);
    font: 600 12px/20px var(--sf-font-body);
    letter-spacing: 0;
    text-align: center;
}
.sf-nav__count[data-count="0"] { display: none; }
.sf-nav__bag-label { display: none; font-size: 15px; }

@media (min-width: 900px) {
    .sf-nav__bar {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas: "links brand bag";
        gap: 24px;
    }
    .sf-nav__menu { display: none; }
    .sf-nav__links { display: flex; gap: 28px; align-items: center; justify-self: start; }
    .sf-nav__brand { font-size: 22px; max-width: 40vw; }
    .sf-nav__bag { width: auto; padding: 0 4px; }
    .sf-nav__bag-label { display: inline; }
    .sf-nav__count { position: static; }
}

.sf-drawer { position: fixed; inset: 0; z-index: 90; }
.sf-drawer[hidden] { display: none; }
.sf-drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.48); }
.sf-drawer__panel {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: min(88vw, 380px);
    display: flex;
    flex-direction: column;
    background: var(--sf-paper);
    color: var(--sf-ink);
    padding: 0 var(--sf-gutter) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    box-shadow: 8px 0 32px rgba(0,0,0,.18);
    animation: sf-drawer-in .22s cubic-bezier(.2,.7,.2,1);
}
@keyframes sf-drawer-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sf-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--sf-nav-h); border-bottom: 1px solid var(--sf-line); margin-bottom: 8px; }
.sf-drawer__title { font-family: var(--sf-font-display); font-weight: var(--sf-display-weight); text-transform: var(--sf-display-transform); letter-spacing: var(--sf-display-tracking); font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-drawer__close { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--sf-ink); cursor: pointer; }
.sf-drawer__close svg { width: 24px; height: 24px; }
.sf-drawer__list { list-style: none; padding: 0; margin: 0; }
.sf-drawer__list a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; padding: 8px 0;
    color: var(--sf-ink); text-decoration: none;
    font-size: 19px; border-bottom: 1px solid var(--sf-line);
}
.sf-drawer__list a:hover { padding-left: 4px; }
.sf-drawer__list a[aria-current="page"], .sf-drawer__list a[aria-current="true"] { font-weight: 600; }
.sf-drawer__label { margin: 24px 0 4px; font-size: 14px; color: var(--sf-muted); }
.sf-drawer__sub a { font-size: 17px; min-height: 48px; }
.sf-drawer__sub small { font-size: 14px; color: var(--sf-muted); }
.sf-drawer__foot { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--sf-muted); }
.sf-drawer__foot a { color: var(--sf-ink); }

/* =====================================================================
 * Hero
 * Variants: --overlay (text on scrim over media), --split (text on paper
 * beside media), --block (text on a solid panel), --type (no media).
 * Mobile height capped at ~52vh so the first product row peeks.
 * ===================================================================== */
.sf-hero { position: relative; color: var(--sf-ink); background: var(--sf-paper); }
.sf-hero__media { position: absolute; inset: 0; overflow: hidden; background: #1a1a1a; }
.sf-hero__media img, .sf-hero__media video {
    width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 30%;
}
.sf-hero__title {
    margin: 0;
    font-family: var(--sf-font-display);
    font-weight: var(--sf-display-weight);
    text-transform: var(--sf-display-transform);
    letter-spacing: var(--sf-display-tracking);
    line-height: var(--sf-display-leading);
    font-size: clamp(34px, 9.6vw, 80px);
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.sf-hero__tagline { margin: 0; font-size: 16px; line-height: 1.5; max-width: 46ch; text-wrap: pretty; }
.sf-hero__meta { font-size: 14px; line-height: 1.4; }
.sf-hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* Overlay */
.sf-hero--overlay {
    height: min(52svh, 460px);
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    color: #ffffff;
    background: #1a1a1a;
}
.sf-hero--overlay .sf-hero__media::after {
    content: ""; position: absolute; inset: 0; background: var(--sf-scrim); pointer-events: none;
}
.sf-hero--overlay .sf-hero__content {
    position: relative; z-index: 1; width: 100%;
    padding-top: 24px; padding-bottom: 28px;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.sf-hero--overlay .sf-hero__tagline, .sf-hero--overlay .sf-hero__meta { color: rgba(255,255,255,.92); }
@media (min-width: 768px) {
    .sf-hero--overlay { height: min(74vh, 760px); min-height: 480px; }
    .sf-hero--overlay .sf-hero__content { padding-bottom: 56px; gap: 16px; }
    .sf-hero__tagline { font-size: 18px; }
}

/* Mobile overlay: the media owns the top ~60% of the hero; the copy sits in the lower third
   on its own gradient (the scrim fades out above the text, so the video stays clear). */
@media (max-width: 767.98px) {
    .sf-hero--overlay { height: min(72svh, 620px); min-height: 440px; }
    .sf-hero--overlay .sf-hero__media::after {
        background: linear-gradient(to top, rgba(8,8,8,.9) 0%, rgba(8,8,8,.78) 22%, rgba(8,8,8,.42) 36%, rgba(8,8,8,0) 48%);
    }
    .sf-hero--overlay .sf-hero__content { gap: 8px; padding-top: 16px; padding-bottom: 24px; }
    .sf-hero--overlay .sf-hero__title { font-size: clamp(30px, 9vw, 40px); line-height: 1.05; }
    .sf-hero--overlay .sf-hero__tagline {
        font-size: 15px; line-height: 1.45;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .sf-hero--overlay .sf-hero__meta { display: none; }
}

/* Split (text on paper) */
.sf-hero--split { display: grid; }
.sf-hero--split .sf-hero__media { position: relative; inset: auto; height: 36svh; min-height: 220px; max-height: 340px; }
.sf-hero--split .sf-hero__content { padding-top: 20px; padding-bottom: 24px; }
.sf-hero--split .sf-hero__title { font-size: clamp(32px, 8.8vw, 72px); }
.sf-hero--split .sf-hero__tagline { color: var(--sf-muted); }
.sf-hero--split .sf-hero__meta { color: var(--sf-muted); }
@media (min-width: 900px) {
    .sf-hero--split {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        min-height: min(72vh, 720px);
        align-items: stretch;
    }
    .sf-hero--split .sf-hero__content {
        order: -1; justify-content: center; gap: 20px;
        padding: 64px 56px 64px max(var(--sf-gutter), calc((100vw - var(--sf-max)) / 2 + var(--sf-gutter)));
    }
    .sf-hero--split .sf-hero__media { height: auto; max-height: none; min-height: 0; }
}

/* Block (text on solid panel) */
.sf-hero--block .sf-hero__frame { position: relative; display: grid; }
.sf-hero--block .sf-hero__media { position: relative; inset: auto; height: 36svh; min-height: 220px; max-height: 340px; }
.sf-hero--block .sf-hero__content {
    position: relative;
    background: var(--sf-ink);
    color: var(--sf-paper);
    padding: 20px var(--sf-gutter) 24px;
}
.sf-hero--block .sf-hero__tagline, .sf-hero--block .sf-hero__meta { color: var(--sf-paper); }
@media (min-width: 900px) {
    .sf-hero--block .sf-hero__frame { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: min(70vh, 680px); }
    .sf-hero--block .sf-hero__media { height: auto; max-height: none; min-height: 0; }
    .sf-hero--block .sf-hero__content { justify-content: flex-end; padding: 40px; gap: 20px; }
}

/* Mobile: keep split/block heroes short enough for the first product row to peek. */
@media (max-width: 767.98px) {
    .sf-hero--split .sf-hero__meta, .sf-hero--block .sf-hero__meta { display: none; }
    .sf-hero--split .sf-hero__content, .sf-hero--block .sf-hero__content { gap: 8px; padding-top: 16px; padding-bottom: 20px; }
    .sf-hero--split .sf-hero__tagline, .sf-hero--block .sf-hero__tagline {
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
}

/* Type only (no hero media) */
.sf-hero--type { border-bottom: 1px solid var(--sf-line); }
.sf-hero--type .sf-hero__content { padding-top: 40px; padding-bottom: 36px; gap: 16px; }
.sf-hero--type .sf-hero__tagline, .sf-hero--type .sf-hero__meta { color: var(--sf-muted); }
@media (min-width: 768px) {
    .sf-hero--type .sf-hero__content { padding-top: 96px; padding-bottom: 80px; gap: 20px; }
    .sf-hero--type .sf-hero__title { font-size: clamp(48px, 7vw, 96px); max-width: 16ch; }
}

/* =====================================================================
 * Trust strip
 * ===================================================================== */
.sf-trust { background: var(--sf-paper); color: var(--sf-ink); border-bottom: 1px solid var(--sf-line); }
/* Mobile: stacked rows that wrap, so no fact is ever clipped or hidden off-screen. */
.sf-trust__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.sf-trust__item { padding: 12px 0; border-bottom: 1px solid var(--sf-line); }
.sf-trust__item:last-child { border-bottom: 0; }
.sf-trust__inner { display: flex; align-items: center; gap: 12px; color: var(--sf-ink); text-decoration: none; }
.sf-trust__icon { width: 22px; height: 22px; flex: none; }
.sf-trust__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-trust__title { font-size: 15px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.sf-trust__sub { font-size: 15px; line-height: 1.35; color: var(--sf-muted); overflow-wrap: anywhere; }
a.sf-trust__inner:hover .sf-trust__sub { color: var(--sf-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) {
    .sf-trust__list { flex-direction: row; }
    .sf-trust__item { flex: 1 1 0; min-width: 0; padding: 20px 24px; margin: 0; border-bottom: 0; border-right: 1px solid var(--sf-line); }
    .sf-trust__item:last-child { border-right: 0; }
    .sf-trust__item:first-child { padding-left: 0; }
    .sf-trust__item:last-child { padding-right: 0; }
    .sf-trust__title { font-size: 15px; }
    .sf-trust__sub { font-size: 14px; }
}

/* =====================================================================
 * Shop: header, category chips, grid, card, pager
 * ===================================================================== */
.sf-shop { padding: 24px 0 64px; scroll-margin-top: var(--sf-nav-h); }
@media (min-width: 768px) { .sf-shop { padding: 64px 0 120px; } }
.sf-shop__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sf-shop__title { font-size: 26px; }
.sf-shop__count { font-size: 14px; color: var(--sf-muted); white-space: nowrap; }
@media (min-width: 768px) {
    .sf-shop__head { margin-bottom: 24px; }
    .sf-shop__title { font-size: 36px; }
    .sf-shop__count { font-size: 15px; }
}

.sf-chips {
    display: flex;
    gap: 8px;
    margin: 0 calc(var(--sf-gutter) * -1) 20px;
    padding: 0 var(--sf-gutter) 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.sf-chips::-webkit-scrollbar { display: none; }
.sf-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-btn);
    background: var(--sf-paper);
    color: var(--sf-ink);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.sf-chip small { font-size: 13px; color: var(--sf-muted); }
.sf-chip:hover { border-color: var(--sf-ink); }
.sf-chip[aria-current="true"] { background: var(--sf-ink); border-color: var(--sf-ink); color: var(--sf-paper); }
.sf-chip[aria-current="true"] small { color: inherit; }
@media (min-width: 768px) { .sf-chips { margin: 0 0 32px; padding: 0; flex-wrap: wrap; overflow: visible; } }

.sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 20px; } }
@media (min-width: 1200px) { .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 24px; } }

.sf-card { position: relative; min-width: 0; }
.sf-card__link { display: flex; flex-direction: column; gap: 12px; height: 100%; color: inherit; text-decoration: none; }
.sf-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--sf-soft);
    border: var(--sf-border-w) solid var(--sf-ink);
    border-radius: var(--sf-radius);
}
.sf-card__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; max-width: none;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) { .sf-card__link:hover .sf-card__img { transform: scale(1.04); } }
.sf-card--sold-out .sf-card__img { opacity: .55; filter: grayscale(.4); }
.sf-card__badges { position: absolute; top: 8px; left: 8px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.sf-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--sf-badge-bg);
    color: var(--sf-badge-ink);
    font: 600 12px/1.25 var(--sf-font-body);
    letter-spacing: .02em;
    border-radius: var(--sf-radius);
}
.sf-badge--sale { background: var(--sf-sale); color: #ffffff; }
.sf-badge--ink { background: var(--sf-ink); color: var(--sf-paper); }
.sf-card__body { display: flex; flex-direction: column; gap: 4px; }
.sf-card__name {
    font-size: 15px;
    line-height: 1.35;
    color: var(--sf-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.sf-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 15px; font-weight: 600; color: var(--sf-ink); font-variant-numeric: tabular-nums; }
.sf-card__price--sale { color: var(--sf-sale); }
.sf-card__was { font-size: 14px; font-weight: 400; color: var(--sf-muted); text-decoration: line-through; }
.sf-card__note { font-size: 14px; color: var(--sf-muted); }
@media (min-width: 768px) { .sf-card__name, .sf-card__price { font-size: 16px; } }

.sf-pager { display: flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; margin-top: 56px; font-size: 15px; color: var(--sf-muted); }
.sf-pager .sf-btn { min-height: 44px; padding: 0 20px; }

/* =====================================================================
 * Empty store
 * ===================================================================== */
.sf-empty { padding: 32px 0 72px; }
.sf-empty__inner { display: grid; gap: 16px; justify-items: start; max-width: 640px; }
.sf-empty__title { font-size: 34px; }
.sf-empty__text { font-size: 17px; line-height: 1.6; color: var(--sf-muted); max-width: 46ch; }
.sf-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sf-empty__ghosts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.sf-empty__ghost { aspect-ratio: 4 / 5; background: var(--sf-soft); border-radius: var(--sf-radius); }
.sf-empty__ghost:nth-child(n+3) { display: none; }
@media (min-width: 768px) {
    .sf-empty { padding: 72px 0 120px; }
    .sf-empty__title { font-size: 56px; }
    .sf-empty__text { font-size: 18px; }
    .sf-empty__ghosts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
    .sf-empty__ghost:nth-child(n+3) { display: block; }
}

/* =====================================================================
 * About
 * ===================================================================== */
.sf-about { border-top: 1px solid var(--sf-line); padding: 56px 0; scroll-margin-top: var(--sf-nav-h); }
.sf-about__grid { display: grid; gap: 16px; }
.sf-about__title { font-size: 26px; }
.sf-about__text { font-size: 16px; line-height: 1.7; color: var(--sf-ink); max-width: 64ch; white-space: pre-line; }
.sf-about__meta { font-size: 15px; color: var(--sf-muted); margin-top: 16px; }
.sf-about__meta a { color: var(--sf-ink); }
@media (min-width: 900px) {
    .sf-about { padding: 120px 0; }
    .sf-about__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
    .sf-about__title { font-size: 40px; }
    .sf-about__text { font-size: 18px; }
}

/* =====================================================================
 * Footer
 * ===================================================================== */
.sf-footer { border-top: 1px solid var(--sf-line); background: var(--sf-paper); color: var(--sf-ink); padding: 40px 0 32px; }
.sf-footer__grid { display: grid; gap: 24px; margin-bottom: 32px; }
.sf-footer__name { font-size: 24px; overflow-wrap: anywhere; }
.sf-footer__loc { margin-top: 4px; font-size: 15px; color: var(--sf-muted); }
.sf-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.sf-footer__links a { display: inline-block; padding: 4px 0; color: var(--sf-ink); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sf-line); }
.sf-footer__links a:hover { text-decoration-color: currentColor; }
.sf-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--sf-line); font-size: 14px; color: var(--sf-muted); }
.sf-footer__legal a { color: var(--sf-muted); }
.sf-footer__legal a:hover { color: var(--sf-ink); }
@media (min-width: 900px) {
    .sf-footer { padding: 72px 0 40px; }
    .sf-footer__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; margin-bottom: 40px; }
    .sf-footer__name { font-size: 32px; }
}

/* =====================================================================
 * Mobile cart bar + owner preview pill
 * ===================================================================== */
.sf-cartbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 12px;
    padding: 8px var(--sf-gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--sf-paper); color: var(--sf-ink);
    border-top: 1px solid var(--sf-line);
    box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.sf-cartbar__bag { display: inline-flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; min-height: 48px; color: var(--sf-ink); text-decoration: none; }
.sf-cartbar__icon { position: relative; width: 24px; height: 24px; flex: none; }
.sf-cartbar__icon svg { width: 24px; height: 24px; }
.sf-cartbar__icon .sf-nav__count { top: -8px; right: -12px; }
.sf-cartbar__label { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sf-cartbar__label strong { font-weight: 600; font-size: 15px; }
.sf-cartbar__label span { font-size: 13px; color: var(--sf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-cartbar .sf-btn { min-height: 44px; padding: 0 20px; flex: none; }
.sf-has-bar { padding-bottom: calc(var(--sf-bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
    .sf-cartbar { display: none; }
    .sf-has-bar { padding-bottom: 0; }
}

.sf-preview {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 44px; padding: 4px var(--sf-gutter);
    background: #1d1d1f; color: #f5f5f5;
    font: 400 14px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: none; letter-spacing: 0;
}
.sf-preview strong { font-weight: 600; }
.sf-preview__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none; }
.sf-preview__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-preview a { display: inline-flex; align-items: center; flex: none; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #ffffff; color: #111111; font-weight: 500; text-decoration: none; white-space: nowrap; }
.sf-preview a:hover { background: #e9e9e9; }
.sf-preview a:active { background: #d4d4d4; }
.sf-preview a:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
@media (max-width: 479.98px) { .sf-preview__aside { display: none; } }

/* =====================================================================
 * Product detail
 * ===================================================================== */
.sf-pdp { padding: 0 0 48px; }
.sf-pdp__grid { display: grid; gap: 20px; }
.sf-crumb { display: none; font-size: 14px; color: var(--sf-muted); margin: 0 0 24px; }
.sf-crumb a { color: var(--sf-muted); text-decoration: none; }
.sf-crumb a:hover { color: var(--sf-ink); text-decoration: underline; text-underline-offset: 3px; }
.sf-crumb span[aria-hidden] { margin: 0 8px; }

.sf-gallery { position: relative; min-width: 0; }
.sf-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--sf-gutter) * -1); overscroll-behavior-x: contain; }
.sf-gallery__track::-webkit-scrollbar { display: none; }
.sf-gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; max-height: 46svh; background: var(--sf-soft); position: relative; margin: 0; }
.sf-gallery__slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.sf-gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(13,13,13,.78); color: #ffffff; font: 500 13px/1.4 var(--sf-font-body); letter-spacing: 0; pointer-events: none; }
.sf-gallery__thumbs { display: none; }

.sf-pdp__info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sf-pdp__head { display: flex; flex-direction: column; gap: 8px; }
.sf-pdp__brand { font-size: 14px; color: var(--sf-muted); }
.sf-pdp__title { font-size: 26px; overflow-wrap: anywhere; }
.sf-pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sf-pdp__price--sale { color: var(--sf-sale); }
.sf-pdp__was { font-size: 17px; font-weight: 400; color: var(--sf-muted); text-decoration: line-through; }
.sf-pdp__save { font-size: 14px; font-weight: 600; color: var(--sf-sale); }
.sf-pdp__desc { font-size: 16px; line-height: 1.7; color: var(--sf-ink); max-width: 62ch; white-space: pre-line; }
.sf-pdp__section-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }

.sf-opt { border: 0; margin: 0; padding: 0; min-width: 0; scroll-margin-top: calc(var(--sf-nav-h) + 24px); }
.sf-opt__legend { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 0; margin: 0 0 8px; font-size: 15px; color: var(--sf-muted); }
.sf-opt__legend strong { color: var(--sf-ink); font-weight: 600; }
.sf-opt__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-opt__chip {
    min-width: 56px; min-height: 48px; padding: 0 16px;
    border: 1px solid var(--sf-line); border-radius: var(--sf-radius);
    background: var(--sf-paper); color: var(--sf-ink);
    font-size: 15px; font-weight: 500; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.sf-opt__chip:hover { border-color: var(--sf-ink); }
.sf-opt__chip[aria-pressed="true"] { background: var(--sf-ink); border-color: var(--sf-ink); color: var(--sf-paper); }
.sf-opt__chip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.sf-opt__swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(127,127,127,.5); flex: none; }
.sf-opt--attention .sf-opt__legend, .sf-opt--attention .sf-opt__legend strong { color: var(--sf-sale); }
.sf-opt--attention .sf-opt__chip { border-color: var(--sf-sale); }

.sf-buy { display: flex; gap: 12px; align-items: stretch; }
.sf-qty { display: inline-flex; align-items: center; border: 1px solid var(--sf-line); border-radius: var(--sf-radius-btn); flex: none; }
.sf-qty button { width: 44px; height: 48px; border: 0; background: transparent; color: var(--sf-ink); cursor: pointer; border-radius: var(--sf-radius-btn); display: inline-flex; align-items: center; justify-content: center; }
.sf-qty button svg { width: 16px; height: 16px; }
.sf-qty button:hover { background: var(--sf-soft); }
.sf-qty button:disabled { color: var(--sf-muted); opacity: .5; cursor: not-allowed; }
.sf-qty output { min-width: 28px; text-align: center; font-size: 16px; font-weight: 600; }
.sf-buy .sf-btn { flex: 1 1 auto; }

.sf-msg { font-size: 15px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.sf-msg--ok { color: var(--sf-ink); }
.sf-msg--err { color: var(--sf-sale); }
.sf-msg a { color: inherit; font-weight: 600; }
.sf-note { font-size: 15px; color: var(--sf-muted); }

.sf-facts { list-style: none; margin: 8px 0 0; padding: 20px 0 0; border-top: 1px solid var(--sf-line); display: grid; gap: 12px; }
.sf-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--sf-ink); }
.sf-facts li span { color: var(--sf-muted); }
.sf-facts svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.sf-facts a { color: var(--sf-ink); }
.sf-facts__link { display: inline-block; }

.sf-specs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sf-line); }
.sf-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sf-line); font-size: 15px; }
.sf-specs li span:first-child { color: var(--sf-muted); }
.sf-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--sf-ink); text-decoration: none; align-self: flex-start; }
.sf-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.sf-back svg { width: 18px; height: 18px; }

/* Sticky add bar (mobile) */
.sf-addbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 16px;
    padding: 8px var(--sf-gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--sf-paper); color: var(--sf-ink);
    border-top: 1px solid var(--sf-line);
    box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.sf-addbar__price { display: flex; flex-direction: column; line-height: 1.2; flex: none; max-width: 42%; }
.sf-addbar__price strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sf-addbar__price span { font-size: 13px; color: var(--sf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-addbar .sf-btn { flex: 1 1 auto; min-height: 48px; padding: 0 16px; }
.sf-toast {
    position: fixed; left: var(--sf-gutter); right: var(--sf-gutter);
    bottom: calc(var(--sf-bar-h) + 12px + env(safe-area-inset-bottom)); z-index: 61;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 12px 12px 16px;
    background: var(--sf-ink); color: var(--sf-paper);
    border-radius: var(--sf-radius);
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    animation: sf-toast-in .25s ease-out;
}
.sf-toast--err { background: var(--sf-sale); color: #ffffff; }
.sf-toast a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@keyframes sf-toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 899.98px) {
    .sf-buy__btn, .sf-msg--desktop { display: none; }
}
@media (min-width: 900px) {
    .sf-pdp { padding: 40px 0 120px; }
    .sf-crumb { display: block; }
    .sf-pdp__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
    .sf-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
    .sf-gallery--single { grid-template-columns: minmax(0, 1fr); }
    .sf-gallery__track { grid-column: -2 / -1; grid-row: 1; margin: 0; display: block; overflow: visible; }
    .sf-gallery__slide { display: none; max-height: none; }
    .sf-gallery__slide.is-active { display: block; }
    .sf-gallery__count { display: none; }
    .sf-gallery__thumbs { display: flex; flex-direction: column; gap: 8px; grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--sf-nav-h) + 24px); }
    .sf-gallery__thumb { display: block; width: 100%; padding: 0; border: 2px solid transparent; background: var(--sf-soft); aspect-ratio: 4 / 5; cursor: pointer; border-radius: var(--sf-radius); overflow: hidden; opacity: .62; transition: opacity .15s ease, border-color .15s ease; }
    .sf-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
    .sf-gallery__thumb:hover { opacity: 1; }
    .sf-gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--sf-ink); }
    .sf-pdp__info { position: sticky; top: calc(var(--sf-nav-h) + 24px); gap: 24px; }
    .sf-pdp__title { font-size: 40px; }
    .sf-pdp__price { font-size: 24px; }
    .sf-addbar, .sf-toast { display: none; }
}

/* =====================================================================
 * Lookbook
 * ===================================================================== */
.sf-look { padding: 32px 0 72px; }
.sf-look__head { display: grid; gap: 8px; margin-bottom: 24px; }
.sf-look__title { font-size: 36px; }
.sf-look__sub { font-size: 16px; color: var(--sf-muted); max-width: 56ch; }
.sf-look__grid { columns: 2; column-gap: 12px; list-style: none; margin: 0; padding: 0; }
.sf-look__item { break-inside: avoid; margin: 0 0 12px; }
.sf-look__btn { display: block; width: 100%; padding: 0; border: var(--sf-border-w) solid var(--sf-ink); background: var(--sf-soft); cursor: zoom-in; border-radius: var(--sf-radius); overflow: hidden; }
.sf-look__btn img { width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .sf-look__btn:hover img { transform: scale(1.03); } }
.sf-look__empty { display: grid; gap: 16px; justify-items: start; padding: 8px 0 40px; }
.sf-look__empty p { font-size: 17px; color: var(--sf-muted); max-width: 44ch; }
.sf-look__foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
@media (min-width: 768px) {
    .sf-look { padding: 72px 0 120px; }
    .sf-look__head { margin-bottom: 40px; }
    .sf-look__title { font-size: 56px; }
    .sf-look__grid { columns: 3; column-gap: 20px; }
    .sf-look__item { margin-bottom: 20px; }
}
@media (min-width: 1200px) { .sf-look__grid { columns: 4; column-gap: 24px; } .sf-look__item { margin-bottom: 24px; } }

/* Lookbook variants: editorial (Classic, feature + grid) and index (Raw, numbered grid). */
.sf-look--editorial .sf-look__grid,
.sf-look--index .sf-look__grid { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-auto-flow: dense; }
.sf-look--editorial .sf-look__item,
.sf-look--index .sf-look__item { margin: 0; min-width: 0; }
.sf-look--editorial .sf-look__btn,
.sf-look--index .sf-look__btn { aspect-ratio: 4 / 5; height: 100%; }
.sf-look--editorial .sf-look__btn img,
.sf-look--index .sf-look__btn img { width: 100%; height: 100%; object-fit: cover; }
.sf-look--editorial .sf-look__item:nth-child(5n+1) { grid-column: 1 / -1; }
.sf-look--editorial .sf-look__item:nth-child(5n+1) .sf-look__btn { aspect-ratio: 4 / 3; }
.sf-look--index .sf-look__item { display: flex; flex-direction: column; }
.sf-look--index .sf-look__btn { height: auto; }
.sf-look__num { display: block; padding-top: 8px; font: 700 14px/1.2 var(--sf-font-body); color: var(--sf-ink); }
@media (min-width: 768px) {
    .sf-look--editorial .sf-look__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .sf-look--editorial .sf-look__item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
    .sf-look--editorial .sf-look__item:nth-child(5n+1) .sf-look__btn { aspect-ratio: auto; }
    .sf-look--index .sf-look__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (min-width: 1200px) { .sf-look--index .sf-look__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sf-lightbox { padding: 0; border: 0; margin: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(10,10,10,.94); color: #ffffff; }
.sf-lightbox::backdrop { background: rgba(10,10,10,.94); }
.sf-lightbox__fig { position: absolute; inset: 64px 16px 72px; display: flex; align-items: center; justify-content: center; margin: 0; }
.sf-lightbox__fig { touch-action: pan-y; }
.sf-lightbox__fig img { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.sf-lightbox__close {
    position: absolute; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #ffffff; cursor: pointer;
}
.sf-lightbox__close:hover { background: rgba(255,255,255,.26); }
.sf-lightbox__close:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.sf-lightbox__close { top: 12px; right: 12px; }
.sf-lightbox__count { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font: 500 14px/1 "Helvetica Neue", Arial, sans-serif; }
.sf-lightbox svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
    .sf-lightbox__fig { inset: 48px 96px; }
}

/* ---- Marquee (Peak) ----------------------------------------------- */
.sf-marquee { overflow: hidden; white-space: nowrap; }
.sf-marquee__track { display: inline-flex; animation: sf-marquee 32s linear infinite; }
.sf-marquee__track span { padding: 12px 20px; }
@keyframes sf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .sf-card__img, .sf-btn, .sf-look__btn img { transition: none; }
    .sf-marquee__track { animation: none; }
    .sf-drawer__panel, .sf-toast { animation: none; }
}
