/* One stylesheet, two brands.
 *
 * The shared half is structure: the wrap, the grids, the rail, the drawer,
 * the gallery — everything that is the same shop whichever door you came in
 * by. The brand halves are the skin the design sample specifies, keyed by
 * `[data-brand]` on the body.
 *
 * Why one file rather than kv.css and ts.css: the two brands share far more
 * than they differ (one grid, one drawer, one gallery, one filter rail), and
 * two files would have meant maintaining that structure twice or inventing a
 * third shared file to import. One file is also one cache entry for a browser
 * that visits both domains, and the brand is decided by an attribute the
 * server already writes, so nothing here can load the wrong skin.
 *
 * Brand colours are never written here. They are custom properties emitted per
 * request from `brand.palette`, so a colour pushed from the review page takes
 * effect without touching this file. The only literals are neutral and
 * unbranded: the black scrim behind the drawer, the black gradient that keeps
 * a collection tile's label legible over any photo, and the white that label
 * is set in.
 *
 * Phone first throughout: the base rules are the 390px layout and every
 * `@media` widens it.
 */

/* A brand may reuse one hue for two roles across themes: Thrifting Season's
 * `forest` is a deep green in light and the sunflower itself in dark, which
 * would print yellow text on a yellow sticker. `--on-bright` is the ink for
 * anything set on the brand's brightest block, and it is the only token this
 * file defines rather than receives. */
:root { --on-bright: var(--forest, var(--ink)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --on-bright: var(--bg); }
}
:root[data-theme="dark"] { --on-bright: var(--bg); }

/* ------------------------------------------------------------- resets */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

/* `height: auto` is load-bearing. Every photo carries its source pixel
 * dimensions as width/height attributes so the browser reserves the box before
 * the image arrives; without this, that attribute is a definite height and it
 * beats the `aspect-ratio` the layout actually wants. Boxes that set their own
 * height (a card figure, a collection tile) override it explicitly. */
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.linkish {
  background: none; border: 0; padding: 0;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
}

.empty, .notice, .done {
  color: var(--ink2);
  padding: 18px 0;
  max-width: 60ch;
}
.notice {
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  background: var(--bg2);
  color: var(--ink);
}

/* ---------------------------------------------------------------- nav */

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(19px, 5vw, 24px);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark i { display: none; }

/* On a phone the collections become a scrolling row under the brand rather
 * than disappearing behind a menu button: six links is a row, not a menu, and
 * a hidden nav is how a shopper ends up with only the footer to navigate by. */
.nav-links {
  display: flex;
  order: 3;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 2px 0;
  gap: 18px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.nav-end { display: flex; align-items: center; gap: 10px; }

.nav-search {
  display: flex;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  background: var(--bg2);
}
.nav-search input {
  border: 0; background: transparent; padding: 8px 10px;
  flex: 1 1 auto; min-width: 0; width: 100%; font-size: 13px;
}
.nav-search button {
  border: 0; background: transparent; padding: 8px 10px; display: flex;
}

/* An anchor, not a button: it links to /bag and the script upgrades it into
 * the drawer opener, so the underline an anchor would carry comes off. */
.bag-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 8px 12px;
  white-space: nowrap;
  text-decoration: none;
}

@media (min-width: 900px) {
  .nav-search { flex: 0 0 auto; width: 280px; }
  .nav-links { width: auto; overflow: visible; padding: 0; gap: 22px; }
  .brand-mark { margin-right: 0; }
  .site-nav { justify-content: space-between; padding: 22px 0; }
  .nav-links { order: 2; }
  .nav-end { order: 3; }
}

/* -------------------------------------------------------------- marquee */

.marquee {
  overflow: hidden;
  background: var(--forest, var(--ink));
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 0;
  white-space: nowrap;
}
.marquee div { display: inline-block; animation: marq 32s linear infinite; padding-left: 100%; }
.marquee span { margin-right: 44px; }
.marquee span::before { content: "\2726"; margin-right: 14px; color: var(--accent); }
@keyframes marq { to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 6vw, 80px) 0 32px;
}
.hero-copy { min-width: 0; }

.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink2);
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 92px);
  line-height: .96;
  letter-spacing: -.02em;
  margin: 14px 0 20px;
  text-wrap: balance;
}

.lede {
  font-size: clamp(15px, 4vw, 19px);
  max-width: 44ch;
  color: var(--ink2);
  margin: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  justify-content: center;
}
.cta span {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}
.cta.small { padding: 12px 18px; margin-top: 0; }
.cta:disabled, .add:disabled { opacity: .5; cursor: not-allowed; }

.heroimg { position: relative; margin: 0; }
.heroimg img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.heroimg figcaption {
  position: absolute;
  left: 0;
  bottom: 20px;
  background: var(--bg);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  border-left: 2px solid var(--accent);
  max-width: 88%;
}
.heroimg figcaption b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  margin-bottom: 3px;
}

/* The stacked hero: three pieces overlapping, rotated, each with its price on
 * a sticker. Percentage positions inside a square box, so it holds its
 * arrangement from 390px up without a second set of coordinates. */
.stack { position: relative; aspect-ratio: 1 / 1; }
.stk {
  position: absolute;
  width: 62%;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--bg2);
  transition: transform .3s;
  text-decoration: none;
}
.stk img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.stk .ph { aspect-ratio: 4 / 5; }
.stk1 { left: 0; top: 6%; transform: rotate(-6deg); }
.stk2 { right: 0; top: 0; transform: rotate(4deg); }
.stk3 { left: 20%; bottom: 0; transform: rotate(1deg); z-index: 2; }
.stk:hover, .stk:focus-visible { transform: rotate(0) scale(1.02); z-index: 3; }
.stk .tag {
  position: absolute;
  left: 8px; top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 6px;
  transform: rotate(-8deg);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s;
}
.stk:hover .tag { transform: rotate(0); }

/* Type-ahead suggestions under the nav search field. Anchors, so a keyboard
 * tabs through them and a middle click opens one in a tab. */
/* The panel is exactly as wide as the field it hangs under, which is the only
 * width that cannot fall off the page: the nav row puts that field at the left
 * on a phone and at the right on a wide screen, and a panel wider than its
 * field overflows on one of the two. The field is given room instead. */
.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 220px;
  z-index: 40;
  background: var(--bg);
  border: 1px solid var(--rule);
  max-height: 60vh;
  overflow-y: auto;
}
.suggestion {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 40%, transparent);
}
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover, .suggestion:focus-visible { background: var(--bg2); }
.suggestion img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.suggestion b { font-family: var(--font-mono); font-size: 12px; }

.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 18px 0 0; padding: 0;
}
.chip {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  background: var(--bg);
}

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: end; }
  .heroimg figcaption { left: -18px; }
}

/* ------------------------------------------------------------ sections */

.rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding: 18px 0 20px;
  margin-top: 40px;
}
.rule h1, .rule h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 38px);
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.1;
}
.rule a, .rule span, .rule button {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.rule a { border-bottom: 1px solid var(--rule); padding-bottom: 3px; }
.rule .count { font-family: var(--font-mono); color: var(--ink2); }

h2.label, h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink2);
  margin: 28px 0 10px;
}

/* ----------------------------------------------------------- item cards */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 3vw, 28px);
}
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1040px) { .rail-grid { grid-template-columns: repeat(6, 1fr); } }

.card { text-decoration: none; display: block; position: relative; min-width: 0; }
.card figure {
  margin: 0;
  overflow: hidden;
  background: var(--bg2);
  aspect-ratio: 4 / 5;
  position: relative;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .t {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  margin: 12px 0 2px;
  line-height: 1.25;
}
.card .m {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink2);
}
.card .m b { color: var(--ink); font-weight: 500; }
.card .m s { color: var(--ink2); font-weight: 400; margin-left: 6px; }
.card .tagprice { display: none; }

.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--bg2);
  color: var(--ink2);
  font-family: var(--font-display);
  font-size: 14px;
  text-align: center;
  padding: 10px;
}

.card.is-sold figure { filter: grayscale(1); opacity: .55; }
.card.is-sold .m b { color: var(--ink2); text-decoration: line-through; }
.stamp {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  border: 2px solid var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.stamp.big { font-size: 18px; padding: 10px 20px; }

/* ------------------------------------------------------- collections grid */

.cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  gap: 12px;
}
.col {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: var(--bg2);
}
.col img, .col .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.col::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55));
}
.col span, .col small { position: absolute; z-index: 2; color: #fff; }
.col span {
  left: 16px; bottom: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
.col small {
  right: 14px; top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
}
@media (min-width: 820px) {
  .cols { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; }
  .cols .col:first-child { grid-row: span 2; }
}

/* ------------------------------------------------------------- editorial */

.editorial {
  display: grid;
  gap: 24px;
  margin: 56px 0;
  padding: 44px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.editorial > p {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
.editorial .side { font-size: 15px; color: var(--ink2); max-width: 46ch; }
.editorial .side p { margin-top: 0; }
@media (min-width: 820px) {
  .editorial { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}

.news {
  display: flex;
  max-width: 520px;
  margin-top: 16px;
  border-bottom: 1px solid var(--ink);
}
.news input { flex: 1; border: 0; background: transparent; padding: 12px 0; min-width: 0; }
.news button {
  border: 0; background: transparent;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}

.band { background: var(--sun, var(--bg2)); color: var(--on-bright); padding: 26px 0; }
.band .wrap { display: grid; gap: 18px; }
.band b {
  font-family: var(--font-display);
  font-size: 20px;
  display: block;
  letter-spacing: -.02em;
}
.band span { font-size: 14px; }
@media (min-width: 820px) { .band .wrap { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 40px 0 56px;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink2);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
}

/* ------------------------------------------------------------- listing */

.listing { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .listing { grid-template-columns: 232px 1fr; gap: 40px; } }

.rail { font-size: 14px; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; }
.rail-head h2 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.rail-group { border-top: 1px solid color-mix(in srgb, var(--rule) 50%, transparent); padding: 8px 0; }
.rail-group summary {
  cursor: pointer;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink2);
}
.facets { display: grid; gap: 4px; padding: 6px 0 10px; }
.facet { display: flex; align-items: center; gap: 8px; }
.facet span { flex: 1; text-transform: capitalize; }
.facet small { font-family: var(--font-mono); color: var(--ink2); font-size: 11px; }

.sortline { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.sortline span, .range span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink2);
}
.sortline select, .range input, .stack-form input {
  border: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  background: var(--bg2);
  padding: 8px 10px;
  min-width: 0;
  width: 100%;
}
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0 10px; }
.range label { display: grid; gap: 4px; }

.rail .cta { width: 100%; margin-top: 16px; }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ------------------------------------------------------------------ pdp */

.pdp { display: grid; gap: clamp(20px, 4vw, 56px); padding: 24px 0 48px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.15fr .85fr; } }

.gal { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .gal { grid-template-columns: 76px 1fr; align-items: start; position: sticky; top: 16px; }
}

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; order: 2; }
@media (min-width: 900px) { .thumbs { grid-template-columns: 1fr; order: 0; gap: 10px; } }
.thumbs a { display: block; border: 1px solid transparent; }
.thumbs a[aria-current="true"] { border-color: var(--ink); }
.thumbs img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.main { margin: 0; background: var(--bg2); overflow: hidden; position: relative; }
.main img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.main.zoomed { cursor: zoom-out; }
.main.zoomed img { transform: scale(2); }
.main:not(.zoomed) img { cursor: zoom-in; }
.main .ph { aspect-ratio: 4 / 5; }

.pdp-body { min-width: 0; }
.crumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink2);
  margin: 0 0 12px;
  text-transform: capitalize;
}
.pdp h1 { font-size: clamp(28px, 7vw, 46px); margin: 6px 0 10px; line-height: 1.02; }

.price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 20px;
  margin: 6px 0 4px;
}
.price s { color: var(--ink2); font-size: 15px; }
.price small {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.one {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink2);
  margin: 6px 0 20px;
}
.one i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.one[data-state="held"] i { background: var(--sun, var(--rule)); }
.one[data-state="sold"] i { background: var(--ink2); }

.buy { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 8px 0 24px; }
.buy form { display: contents; }
.add {
  width: 100%;
  padding: 18px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.save {
  padding: 18px 20px;
  background: transparent;
  border: 1px solid var(--ink);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.save[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.desc { font-size: 15.5px; max-width: 60ch; }
.desc p { margin: 0 0 12px; }
.sku { font-family: var(--font-mono); font-size: 12px; color: var(--ink2); }

.measurements {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.measurements td {
  padding: 9px 0;
  border-top: 1px solid color-mix(in srgb, var(--rule) 45%, transparent);
}
.measurements td:last-child { text-align: right; font-family: var(--font-mono); }

.fit {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg2);
  font-size: 13.5px;
  border-left: 2px solid var(--rule);
}
.notes { font-size: 13.5px; color: var(--ink2); padding-left: 18px; margin: 0; }
.notes li { margin: 4px 0; }

.final {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink2);
  margin-top: 18px;
}
.share { font-size: 13px; }

/* ------------------------------------------------------------ bag + drawer */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  z-index: 55;
}

.drawer {
  position: fixed;
  right: 0; top: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--rule);
  transform: translateX(105%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  z-index: 60;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-head button { background: none; border: 0; font-size: 24px; line-height: 1; }
.drawer-body { display: grid; gap: 14px; }
.drawer-link { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.drawer-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 14px;
  border-top: 1px solid color-mix(in srgb, var(--rule) 50%, transparent);
  padding-top: 10px;
}
.drawer form { margin: 0; }
.drawer .cta { width: 100%; margin-top: 0; }

.line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  font-size: 14px;
}
.line img, .line .ph { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.line-body { display: grid; gap: 3px; min-width: 0; }
.line-title { text-decoration: none; }
.line-note { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.line-end { display: grid; gap: 6px; justify-items: end; font-family: var(--font-mono); }
.line.is-sold { opacity: .6; }

.ship .bar {
  height: 3px;
  background: var(--bg2);
  position: relative;
  margin: 6px 0;
}
.ship .bar i {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--accent);
  transition: width .4s ease;
}
.upsell { border: 1px solid var(--rule); padding: 14px; font-size: 13.5px; }
.upsell b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

.bagpage { display: grid; gap: 32px; padding-top: 16px; }
@media (min-width: 900px) { .bagpage { grid-template-columns: 1fr 340px; gap: 48px; } }
.baglines { display: grid; gap: 18px; }
.bagside { display: grid; gap: 14px; align-content: start; }

/* ------------------------------------------------------------- prose pages */

.prose { max-width: 68ch; padding-top: 24px; padding-bottom: 48px; }
.prose h1 { font-size: clamp(30px, 7vw, 48px); }
.prose p { font-size: 16px; }
.big-link { font-family: var(--font-mono); font-size: 18px; }

.stack-form { display: grid; gap: 14px; max-width: 420px; margin: 24px 0; }
.stack-form label { display: grid; gap: 6px; }
.stack-form span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink2);
}
.stack-form .cta { justify-self: start; }

.searchbig { display: flex; gap: 10px; padding: 24px 0 0; }
.searchbig input {
  flex: 1;
  border: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  background: var(--bg2);
  padding: 12px 14px;
  min-width: 0;
}

/* ------------------------------------------------------------- motion */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy .rise:nth-child(2) { animation-delay: .08s; }
.hero-copy .rise:nth-child(3) { animation-delay: .16s; }
.hero-copy .rise:nth-child(4) { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee div { animation: none; padding-left: 0; }
  .rise { animation: none; }
}

/* ==================================================== Kit & Vixen skin ==== */
/* Editorial and quiet: serif display at large sizes with tight leading, a
 * brass rule, one photo allowed to bleed, a slow zoom on a card, and paper
 * grain over the ground. */

[data-brand="kit_and_vixen"] { font-weight: 300; }

[data-brand="kit_and_vixen"] main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .06 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
[data-brand="kit_and_vixen"] main > * { position: relative; z-index: 1; }

[data-brand="kit_and_vixen"] .brand-mark { font-weight: 400; letter-spacing: .02em; }
[data-brand="kit_and_vixen"] h1 { font-weight: 300; }
[data-brand="kit_and_vixen"] .rule h1,
[data-brand="kit_and_vixen"] .rule h2 { font-weight: 400; }
[data-brand="kit_and_vixen"] .card img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
[data-brand="kit_and_vixen"] .card:hover img { transform: scale(1.04); }
[data-brand="kit_and_vixen"] .main:hover img { transform: scale(1.03); }
[data-brand="kit_and_vixen"] .main.zoomed:hover img { transform: scale(2); }
[data-brand="kit_and_vixen"] .chips { display: none; }
[data-brand="kit_and_vixen"] .editorial > p em,
[data-brand="kit_and_vixen"] h1 em { color: var(--accent); font-style: italic; }
@media (min-width: 820px) {
  [data-brand="kit_and_vixen"] .heroimg { margin-right: calc(-1 * clamp(16px, 4vw, 48px)); }
  [data-brand="kit_and_vixen"] .heroimg img { filter: saturate(.92) contrast(1.02); }
}

/* ================================================ Thrifting Season skin ==== */
/* Warm and price-forward: chunky display type, hard borders with a printed
 * offset shadow, a rotated price sticker on every card, sunflower blocks. */

[data-brand="thrifting_season"] .brand-mark { font-weight: 800; letter-spacing: -.03em; }
[data-brand="thrifting_season"] .brand-mark i {
  display: block;
  width: 14px; height: 14px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
[data-brand="thrifting_season"] h1 { font-weight: 800; letter-spacing: -.045em; line-height: .9; }
[data-brand="thrifting_season"] .rule h1,
[data-brand="thrifting_season"] .rule h2 { font-weight: 800; letter-spacing: -.03em; }
[data-brand="thrifting_season"] .nav-links { font-weight: 700; font-size: 14px; letter-spacing: 0; text-transform: none; }
[data-brand="thrifting_season"] .bag-btn {
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--forest);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
}
[data-brand="thrifting_season"] .cta {
  background: var(--sun);
  color: var(--on-bright);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s;
}
[data-brand="thrifting_season"] .cta:hover { transform: translate(-2px, -2px); }
[data-brand="thrifting_season"] .cta span { font-size: 15px; }
[data-brand="thrifting_season"] .heroimg img,
[data-brand="thrifting_season"] .card figure {
  border: 2px solid var(--ink);
  border-radius: 8px;
}
[data-brand="thrifting_season"] .heroimg img {
  transform: rotate(-1.5deg);
  box-shadow: 8px 8px 0 var(--ink);
}
[data-brand="thrifting_season"] .heroimg { padding: 0 10px 12px 0; }
[data-brand="thrifting_season"] .card .t { font-family: var(--font-body); font-weight: 700; font-size: 15px; }
[data-brand="thrifting_season"] .card .m b { display: none; }
[data-brand="thrifting_season"] .card .tagprice {
  display: block;
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: var(--sun);
  color: var(--on-bright);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 4px 9px;
  border-radius: 5px;
  transform: rotate(-5deg);
  transition: transform .2s;
}
[data-brand="thrifting_season"] .card:hover .tagprice { transform: rotate(0); }
[data-brand="thrifting_season"] .card.is-sold .tagprice { background: var(--bg2); }
[data-brand="thrifting_season"] .add {
  border-radius: 999px;
  background: var(--forest);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
}
[data-brand="thrifting_season"] .save { border-radius: 999px; border-width: 2px; }
[data-brand="thrifting_season"] .col { border: 2px solid var(--ink); border-radius: 8px; }
[data-brand="thrifting_season"] .editorial { border-color: var(--rule); }
