/* =========================================================================
   The shop (/shop), 2026-09-30 (picked from three comps; the magnifier and
   the big first tile came out the same night, so every piece gets an even
   tile; 2026-10-01 the side menu came back: Collection and Colour on the
   left, colours five to a row). Quiet on purpose: vintage tokens, Oswald
   controls, square ink buttons, the ink panel of the new FAQ and Contact
   pages. Page-local, sc- prefix, no new Tailwind utilities, so
   no css:build. The vsa- store styles in vintage.css stay for the product page
   and the crewnecks and hoodies page. 1rem = 10px.
   ========================================================================= */
.sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-tools button:focus-visible, .sc-tools select:focus-visible, .sc-body a:focus-visible, .sc-body button:focus-visible { outline: 2px solid var(--vh-ink); outline-offset: 3px; }

/* -- the toolbar: sticks under the header while you browse ----------------- */
.sc-tools { position: relative; z-index: 30; background: var(--vh-cream); border-bottom: 1px solid var(--vh-line); }
/* desktop: the toolbar stays under the header while you browse (on phones it
   would eat a quarter of the screen, so it scrolls away there) */
@media (min-width: 901px) { .sc-tools { position: sticky; top: var(--nav-height, 8rem); } }
/* flex-start: if the buttons ever wrap, the panels stay level with the first row */
.sc-tools__in { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.4rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.sc-picks { display: flex; flex-wrap: wrap; gap: .8rem; min-width: 0; }
/* the garment buttons: ink with white type; the one you're on turns paper */
.sc-pick { display: inline-flex; align-items: center; gap: .7rem; min-height: 4.2rem; padding: .6rem 1.4rem; background: var(--vh-ink); border: 1.5px solid var(--vh-ink); border-radius: 3px; font-family: var(--vh-display); font-weight: 500; font-size: 1.3rem; line-height: 1.15; letter-spacing: .07em; text-transform: uppercase; color: var(--vh-white); white-space: nowrap; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.sc-pick span { font-weight: 400; letter-spacing: .04em; color: rgba(253, 252, 247, .62); }
.sc-pick:hover { background: #3A342A; border-color: #3A342A; }
.sc-pick.is-on, .sc-pick.is-on:hover { background: var(--vh-white); border-color: var(--vh-ink); box-shadow: inset 0 0 0 1px var(--vh-ink); color: var(--vh-ink); font-weight: 600; }
.sc-pick.is-on span { color: var(--vh-muted); }
.sc-pick:disabled { opacity: .35; cursor: default; }
.sc-pick:disabled:hover { background: var(--vh-ink); border-color: var(--vh-ink); }
.sc-right { display: flex; align-items: center; gap: 1.6rem; flex: none; }
.sc-total { margin: 0; font-family: var(--vh-display); font-weight: 500; font-size: 1.2rem; letter-spacing: .16em; text-transform: uppercase; color: var(--vh-muted); white-space: nowrap; }
.sc-total b { font-weight: 600; color: var(--vh-ink); }
.sc-show, .sc-sheet__x { display: none; }

.sc-sort select, .sc-filterbtn { display: inline-flex; align-items: center; gap: .7rem; min-height: 4.2rem; padding: .6rem 1.2rem .6rem 1.4rem; background: transparent; border: 1.5px solid var(--vh-line-strong); border-radius: 3px; font-family: var(--vh-display); font-weight: 500; font-size: 1.3rem; letter-spacing: .07em; text-transform: uppercase; color: var(--vh-ink); cursor: pointer; }
.sc-sort select:hover { border-color: var(--vh-ink); }
.sc-chev { width: 1.4rem; height: 1.4rem; transition: transform .15s ease; }
.sc-pop:not(.is-open) .sc-chev { transform: rotate(-90deg); }

/* -- the side menu (desktop): Collection and Colour, always to hand ---------- */
.sc-body--side { display: grid; grid-template-columns: 21rem minmax(0, 1fr); gap: 4.8rem; align-items: start; }
.sc-sheet { position: sticky; top: calc(var(--nav-height, 8rem) + 10rem); max-height: calc(100vh - var(--nav-height, 8rem) - 12rem); overflow-y: auto; scrollbar-width: thin; }
.sc-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 0 0 1.2rem; border-bottom: 2px solid var(--vh-ink); font-family: var(--vh-display); font-weight: 600; font-size: 1.3rem; letter-spacing: .2em; text-transform: uppercase; color: var(--vh-ink); }
.sc-sideclear { padding: 0; background: none; border: 0; font-family: var(--vh-body); font-size: 1.3rem; letter-spacing: 0; text-transform: none; color: var(--vh-ink); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.sc-sideclear[hidden] { display: none; }
.sc-pop { border-bottom: 1px solid var(--vh-line); }
.sc-popbtn { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 5rem; padding: 0; background: none; border: 0; font-family: var(--vh-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .16em; text-transform: uppercase; color: var(--vh-ink); text-align: left; cursor: pointer; }
.sc-popbtn .sc-chev { margin-left: auto; }
.sc-popbtn:hover { color: var(--vh-muted); }
.sc-sidelinks { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; margin: 2rem 0 0; font-size: 1.3rem; }
.sc-sidelinks a { color: var(--vh-muted); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.sc-sidelinks a:hover { color: var(--vh-ink); }
.sc-count, .sc-badge { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding: 0 .5rem; border-radius: 1rem; background: var(--vh-ink); font-size: 1.1rem; letter-spacing: 0; color: var(--vh-white); }
.sc-count[hidden], .sc-badge[hidden] { display: none; }
.sc-filterbtn { display: none; }
.sc-sort select { -webkit-appearance: none; appearance: none; padding-right: 3.4rem; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181510' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1.1rem center / 1.4rem; }

.sc-panel { display: none; padding: 0 0 1.6rem; }
.sc-pop.is-open .sc-panel { display: block; }
.sc-opt { display: flex; align-items: center; gap: 1.1rem; min-height: 3.6rem; font-size: 1.4rem; color: var(--vh-muted); cursor: pointer; }
.sc-opt:hover, .sc-opt:has(input:checked) { color: var(--vh-ink); }
.sc-opt input { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 1.6rem; height: 1.6rem; margin: 0; border: 1.5px solid var(--vh-line-strong); border-radius: 2px; background: #FFFFFF; cursor: pointer; }
.sc-opt input:checked { background: var(--vh-ink); border-color: var(--vh-ink); }
.sc-opt input:checked::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--vh-white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sc-opt .n { flex: 1; }
.sc-opt .c { font-size: 1.2rem; color: var(--vh-text-faint); }
/* five colours to a row */
.sc-swatches { display: grid; grid-template-columns: repeat(5, 3rem); justify-content: space-between; gap: 1.2rem .6rem; padding: .4rem .3rem; }
.sc-sw { position: relative; display: block; width: 3rem; height: 3rem; cursor: pointer; }
.sc-sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sc-dot { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(24, 21, 16, .22); pointer-events: none; }
.sc-sw input:checked + .sc-dot { box-shadow: inset 0 0 0 1px rgba(24, 21, 16, .22), 0 0 0 2px var(--vh-white), 0 0 0 3.5px var(--vh-ink); }
.sc-sw input:focus-visible + .sc-dot { outline: 2px solid var(--vh-ink); outline-offset: 4px; }
.sc-swname { margin: 1rem 0 .2rem; padding-top: 1rem; border-top: 1px solid var(--vh-line); font-size: 1.35rem; color: var(--vh-muted); }

/* -- what's applied ---------------------------------------------------------- */
.sc-body { padding-top: 3.2rem; padding-bottom: 6.4rem; }
.sc-applied { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 0 0 2.8rem; }
.sc-applied[hidden] { display: none; }
.sc-tag { display: inline-flex; align-items: center; gap: .8rem; min-height: 3.6rem; padding: .4rem 1rem .4rem 1.4rem; background: #FFFFFF; border: 1.5px solid var(--vh-ink); border-radius: 3px; font-family: var(--vh-display); font-weight: 500; font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vh-ink); cursor: pointer; }
.sc-tag svg { width: 1.3rem; height: 1.3rem; }
.sc-tag:hover { background: var(--vh-ink); color: var(--vh-white); }
.sc-clear { min-height: 3.6rem; padding: 0 .6rem; background: none; border: 0; font-family: var(--vh-body); font-size: 1.3rem; color: var(--vh-muted); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }

/* -- the grid: photos get the room, three to a row beside the side menu ----- */
.sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4.8rem 2.4rem; }
.sc-body--side .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4.4rem 2.4rem; }
.sc-body--side .sc-help { display: none; }
.sc-card { display: flex; flex-direction: column; min-width: 0; color: var(--vh-ink); text-decoration: none; }
.sc-card[hidden] { display: none; }
.sc-ph { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--vh-white); }
.sc-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-fallback { display: grid; place-items: center; height: 100%; font-family: var(--vh-display); font-weight: 600; font-size: 6rem; color: var(--vh-line-strong); }
.sc-info { padding-top: 1.6rem; }
.sc-name { margin: 0; font-family: var(--vh-display); font-weight: 600; font-size: 1.9rem; line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; }
.sc-card:hover .sc-name { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1.5px; }
.sc-meta { margin: .6rem 0 0; font-size: 1.35rem; line-height: 1.4; color: var(--vh-muted); }
.sc-meta span:not(.sep) { white-space: nowrap; }
.sc-price { margin: .6rem 0 0; font-size: 1.45rem; color: var(--vh-muted); }
.sc-stars { margin: .5rem 0 0; font-size: 1.25rem; color: var(--vh-muted); }
.sc-stars span { letter-spacing: .12em; color: var(--vh-ink); }
.sc-none { margin: 0 0 3.2rem; font-size: 1.6rem; color: var(--vh-muted); }
.sc-none a { color: var(--vh-ink); text-decoration: underline; text-underline-offset: .22em; }
.sc-price b { font-weight: 600; color: var(--vh-ink); }

.sc-empty { grid-column: 1 / -1; padding: 6rem 0; text-align: center; }
.sc-empty p { margin: 0 0 1.4rem; font-family: var(--vh-display); font-size: 1.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vh-muted); }
.sc-help { margin: 6.4rem 0 0; text-align: center; font-size: 1.4rem; color: var(--vh-muted); }
.sc-help a { color: var(--vh-ink); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }

/* -- closing: the two ways on, in ink ------------------------------------------ */
.sc-close { padding: 0 0 10.4rem; background: var(--vh-cream); }
.sc-doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--vh-ink); border-radius: 6px; color: #FDFCF7; }
.sc-doors--one { grid-template-columns: minmax(0, 1fr); }
.sc-door { display: flex; flex-direction: column; align-items: flex-start; padding: 4.8rem 5.2rem 5.2rem; }
.sc-door + .sc-door { border-left: 1px solid rgba(253, 252, 247, .16); }
.sc-door__eb { margin: 0; font-family: var(--vh-display); font-weight: 500; font-size: 1.2rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(253, 252, 247, .56); }
.sc-door__t { margin: 1.2rem 0 0; font-family: var(--vh-display); font-weight: 600; font-size: 3.2rem; line-height: 1.05; text-transform: uppercase; color: #FDFCF7; }
.sc-door__p { flex: 1; margin: 1.6rem 0 3.2rem; max-width: 46ch; font-size: 1.55rem; line-height: 1.6; color: rgba(253, 252, 247, .74); }
.sc-btn { display: inline-flex; align-items: center; gap: 1.2rem; min-height: 5.6rem; padding: 0 3rem; background: #FDFCF7; border: 1.5px solid #FDFCF7; font-family: var(--vh-display); font-weight: 600; font-size: 1.5rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--vh-ink); }
.sc-btn svg { width: 1.6rem; height: 1.6rem; transition: transform .2s ease; }
.sc-btn:hover svg { transform: translateX(3px); }
.sc-btn:focus-visible { outline: 2px solid #FDFCF7; outline-offset: 3px; }

/* -- responsive ---------------------------------------------------------------- */
@media (max-width: 1199px) {
    .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sc-body--side { grid-template-columns: 19rem minmax(0, 1fr); gap: 3.2rem; }
    .sc-body--side .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* a little tighter, so the toolbar keeps to one row on a 1024 screen */
    .sc-picks { gap: .6rem; }
    .sc-right { gap: 1.2rem; }
    .sc-tools__in { gap: 1.6rem; }
    .sc-pick { padding: .6rem 1.1rem; }
    .sc-swatches { grid-template-columns: repeat(5, 2.8rem); }
    .sc-sw { width: 2.8rem; height: 2.8rem; }
}
@media (max-width: 900px) {
    html.sc-locked { overflow: hidden; }
    .sc-tools__in { flex-direction: column; align-items: stretch; gap: 1.2rem; }
    /* contain: the chips scroll sideways instead of widening the page */
    .sc-picks { flex-wrap: nowrap; overflow-x: auto; contain: inline-size; margin-right: -2rem; padding-right: 2rem; scrollbar-width: none; }
    .sc-picks::-webkit-scrollbar { display: none; }
    .sc-right { justify-content: flex-end; gap: .8rem; }
    .sc-total { margin-right: auto; }
    .sc-filterbtn { display: inline-flex; }
    .sc-body--side { display: block; }
    .sc-body--side .sc-help { display: block; }
    .sc-sidelinks { display: none; }
    .sc-scrim { position: fixed; inset: 0; z-index: 55; display: none; background: rgba(24, 21, 16, .45); }
    .sc-scrim.is-open { display: block; }
    /* the panels become one sheet that rises from the bottom */
    .sc-sheet { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column; align-items: stretch; gap: 0; max-height: 82vh; padding: 0 2rem 2rem; overflow-y: auto; background: var(--vh-cream); border-radius: 12px 12px 0 0; box-shadow: 0 -10px 40px rgba(24, 21, 16, .25); transform: translateY(105%); transition: transform .28s ease, visibility 0s linear .28s; visibility: hidden; }
    /* closed, it is out of the tab order and hidden from screen readers too (CX21) */
    .sc-sheet.is-open { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
    .sc-sheet__head { position: sticky; top: 0; z-index: 1; padding: 1.4rem 0 1.2rem; background: var(--vh-cream); font-size: 1.4rem; }
    .sc-sideclear { margin-left: auto; }
    .sc-sheet__x { display: inline-grid; place-items: center; width: 4.4rem; height: 4.4rem; margin-right: -1rem; background: none; border: 0; color: var(--vh-ink); cursor: pointer; }
    .sc-sheet__x svg { width: 2rem; height: 2rem; }
    .sc-popbtn { min-height: 5.2rem; pointer-events: none; letter-spacing: .14em; }
    .sc-popbtn .sc-chev { display: none; }
    .sc-panel, .sc-pop:not(.is-open) .sc-panel { display: block; }
    .sc-swatches { grid-template-columns: repeat(auto-fill, 3.6rem); gap: 1.2rem .8rem; }
    .sc-sw { width: 3.6rem; height: 3.6rem; }
    .sc-swname { display: none; }
    .sc-show { display: block; width: 100%; min-height: 5.2rem; margin-top: 2rem; background: var(--vh-ink); border: 0; font-family: var(--vh-display); font-weight: 600; font-size: 1.45rem; letter-spacing: .1em; text-transform: uppercase; color: var(--vh-white); cursor: pointer; }
    .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.6rem 1.6rem; }
    .sc-doors { grid-template-columns: minmax(0, 1fr); }
    .sc-door + .sc-door { border-left: 0; border-top: 1px solid rgba(253, 252, 247, .16); }
}
@media (max-width: 640px) {
    .sc-body { padding-top: 2.4rem; padding-bottom: 4rem; }
    .sc-name { font-size: 1.7rem; }
    .sc-meta .sep { display: none; }
    .sc-meta span:last-child { display: block; }
    .sc-meta span:first-child { white-space: normal; }
    .sc-help { margin-top: 4.8rem; }
    .sc-close { padding: 0 0 3.2rem; }
    .sc-door { padding: 3.2rem 2.4rem 3.6rem; }
    .sc-door__t { font-size: 2.6rem; }
    .sc-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-sheet, .sc-chev, .sc-btn svg { transition: none; }
}

/* -- details ------------------------------------------------------------------- */
.sc-stick { height: 0; }
@media (min-width: 901px) {
    .sc-tools { transition: box-shadow .2s ease; }
    .sc-tools.is-stuck { box-shadow: 0 10px 20px -16px rgba(24, 21, 16, .45); }
}
/* anything that would show nothing is dimmed and can't be picked */
.sc-sw.is-off { cursor: default; }
.sc-sw.is-off .sc-dot { opacity: .22; }
.sc-sw.is-off input { cursor: default; }
.sc-opt.is-off { opacity: .4; cursor: default; }
.sc-swfoot { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--vh-line); }
.sc-swfoot .sc-swname { margin: 0; padding: 0; border: 0; }
.sc-swclear { padding: 0; background: none; border: 0; font-family: var(--vh-body); font-size: 1.3rem; color: var(--vh-ink); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.sc-swclear[hidden] { display: none; }
@media (max-width: 900px) {
    .sc-swfoot { margin-top: .4rem; padding-top: 0; border-top: 0; justify-content: flex-end; }
    .sc-swfoot .sc-swname { display: none; }
}
/* photos still loading fade in rather than pop in */
.sc-ph img.sc-fade { opacity: 0; transition: opacity .35s ease; }
.sc-ph img.sc-fade.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sc-ph img.sc-fade { transition: none; } }
