/* OFFCUT catalogue, checkout and management workspace. */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f1f1f7;
  --surface-3: #e9e7f1;
  --ink: #222238;
  --ink-2: #504f67;
  --ink-3: #656479;
  --line: #e2dfeb;
  --line-2: #ccc8da;
  --accent: #5542a9;
  --accent-2: #9e3f36;
  --accent-soft: #efeaff;
  --danger-soft: #fbebe8;
  --ok: #2f6949;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 78px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #0B0B0A; }

.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 52px; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--accent); color: #0B0B0A; height: 32px;
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid #0B0B0A;
}
.announce-track {
  display: flex; gap: 34px; white-space: nowrap;
  font-size: 10px; letter-spacing: .26em; font-weight: 600; text-transform: uppercase;
  animation: marquee 34s linear infinite;
}
.announce-track i { font-style: normal; opacity: .45; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 11, 10, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  height: 84px; max-width: 1440px; margin: 0 auto; padding: 0 52px;
}
.brand {
  font-family: var(--serif); font-size: 36px; line-height: 1;
  letter-spacing: -.02em; white-space: nowrap;
}
.brand-reg { font-family: var(--sans); font-size: 11px; vertical-align: top; margin-left: 5px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 32px; margin-right: auto; margin-left: 30px; }
.nav a {
  position: relative; font-size: 10px; font-weight: 500; letter-spacing: .2em;
  color: var(--ink-2); padding: 8px 0; text-transform: uppercase; transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 2px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.lang { position: relative; }
.lang-trigger {
  background: transparent; border: 1px solid var(--line-2); color: var(--ink);
  padding: 9px 13px; font-size: 10px; letter-spacing: .16em; min-width: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: border-color .2s, background .2s;
}
.lang-trigger:hover, .lang.open .lang-trigger { border-color: var(--accent); }
.lang-trigger i { font-style: normal; color: var(--ink-3); font-size: 9px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 178px;
  background: var(--surface); border: 1px solid var(--line-2); padding: 6px;
  display: none; z-index: 70; box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.lang.open .lang-menu { display: block; }
.lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; background: transparent; border: 0; color: var(--ink-2);
  padding: 10px 12px; font-size: 12px; text-align: left; transition: .18s;
}
.lang-item:hover { background: var(--surface-3); color: var(--ink); }
.lang-item.on { color: var(--accent); }
.lang-item small { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--ink-3); }

.mode-pill {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--ink-3);
  border: 1px solid var(--line); padding: 9px 11px; white-space: nowrap; text-transform: uppercase;
}
.mode-pill.api { color: var(--accent); border-color: #4B5220; background: var(--accent-soft); }
.selection-btn {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--ink); color: #0B0B0A; padding: 12px 18px;
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background .22s, color .22s; white-space: nowrap;
}
.selection-btn:hover { background: var(--accent); }
.selection-btn b { font-size: 15px; font-weight: 600; }
.sel-sep, .selection-btn span:last-child { color: #7C7A70; font-weight: 400; }

/* ---------- Type & shared ---------- */
main { min-height: 70vh; }
.section { padding: 110px 0; }
.section-sm { padding: 64px 0; }
.eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 22px;
}
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; line-height: .92; margin: 0; }
.display em { font-style: italic; color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h2 { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.025em; }
h3 { font-size: 16px; }
p { margin: 0 0 14px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--ink); background: var(--ink); color: #0B0B0A;
  padding: 15px 30px; font-size: 10px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; transition: .22s cubic-bezier(.2,.7,.2,1); white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #0B0B0A; border-color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: #F0FF8C; border-color: #F0FF8C; }
.btn-outline-light { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline-light:hover { background: var(--ink); color: #0B0B0A; border-color: var(--ink); }
.btn:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: var(--ink); border-color: var(--ink); color: #0B0B0A; transform: none; }
.btn-sm { padding: 10px 18px; font-size: 9px; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--line-2); color: var(--ink-2); background: transparent;
}
.tag-accent { background: var(--accent); border-color: var(--accent); color: #0B0B0A; font-weight: 600; }
.tag-a { color: var(--ok); border-color: #3C5C42; }
.tag-b { color: #E7C67A; border-color: #5C4E2A; }
.tag-c { color: var(--accent-2); border-color: #6A3527; }
.link-btn {
  background: none; border: 0; font-size: 10px; letter-spacing: .16em;
  color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding: 0 0 4px; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.link-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; } .reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; } .reveal.d4 { transition-delay: .36s; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; animation: marquee 26s linear infinite; }
.ticker-track span {
  font-family: var(--serif); font-size: clamp(44px, 6vw, 88px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); letter-spacing: -.02em;
}
.ticker-track span:nth-child(even) { color: var(--accent); -webkit-text-stroke: 0; font-style: italic; }
.ticker.reverse .ticker-track { animation-duration: 34s; animation-direction: reverse; }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 700px; }
.hero-copy {
  padding: 96px 60px 80px 0; display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.hero h1 { font-size: clamp(56px, 7vw, 118px); margin-bottom: 30px; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-lead { font-size: 14px; color: var(--ink-2); max-width: 470px; line-height: 2; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 40px; margin-top: 62px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta b { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--accent); }
.hero-meta span { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; }
.hero-visual {
  position: relative; overflow: hidden; border-left: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  background: var(--surface);
}
.hv-cell { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.hv-cell:nth-child(2n) { border-right: 0; }
.hv-cell:nth-child(n+3) { border-bottom: 0; }
.hv-cell svg, .hv-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s; }
.hv-cell:hover svg, .hv-cell:hover img { transform: scale(1.07); filter: brightness(1.12); }
.hv-cell .hv-num {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .1em;
}
.hv-stamp {
  position: absolute; right: 22px; bottom: 20px; z-index: 3;
  background: var(--accent); color: #0B0B0A; padding: 12px 16px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.hero-scroll {
  position: absolute; bottom: 22px; left: 52px; z-index: 3;
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.hero-scroll::before { content: ''; width: 34px; height: 1px; background: var(--ink-3); }

/* ---------- Entry cards ---------- */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.entry-card {
  background: var(--surface); padding: 54px 48px 42px; display: block; position: relative;
  min-height: 320px; transition: .3s cubic-bezier(.2,.7,.2,1); overflow: hidden;
}
.entry-card::before {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.7,.2,1); z-index: 0;
}
.entry-card:hover::before { transform: translateY(0); }
.entry-card > * { position: relative; z-index: 1; }
.entry-card:hover { color: #0B0B0A; }
.entry-card.dark { background: var(--bg); }
.entry-card .ec-index { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-3); margin-bottom: 44px; }
.entry-card:hover .ec-index { color: #3A3D16; }
.entry-card h3 { font-family: var(--serif); font-size: clamp(34px, 3.8vw, 54px); line-height: 1.02; margin-bottom: 10px; }
.entry-card .ec-cn { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-3); margin-bottom: 24px; text-transform: uppercase; }
.entry-card:hover .ec-cn { color: #3A3D16; }
.entry-card p { font-size: 13px; color: var(--ink-2); max-width: 400px; line-height: 1.95; margin-bottom: 38px; }
.entry-card:hover p { color: #2A2C12; }
.ec-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-2); padding-top: 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
}
.entry-card:hover .ec-foot { border-color: rgba(11,11,10,.35); }
.ec-arrow { font-size: 22px; transition: transform .3s; }
.entry-card:hover .ec-arrow { transform: translateX(10px); }

/* ---------- Section heads & product grid ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.section-head h2 { margin-top: 10px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.card { position: relative; display: block; }
.card-img-wrap { position: relative; overflow: hidden; background: var(--surface-2); }
.card-img {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2);
}
.card-img > svg, .card-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .45s; }
.card-img .img-outline { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-img > svg, .card:hover .card-img > img:not(.img-outline) { transform: scale(1.06); }
.card:hover .card-img .img-outline { opacity: 1; transform: scale(1.06); }
.card-num {
  position: absolute; top: 12px; left: 14px; z-index: 3;
  font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .1em;
}
.card-corner { position: absolute; top: 10px; right: 10px; z-index: 3; }
.card-add {
  position: absolute; right: 0; bottom: 0; z-index: 4;
  background: var(--accent); color: #0B0B0A; border: 0;
  padding: 12px 16px; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transform: translateY(101%); transition: transform .28s cubic-bezier(.2,.7,.2,1), background .2s;
}
.card:hover .card-add, .card-add:focus-visible { transform: translateY(0); }
.card-add:hover { background: #F0FF8C; }
.card-add.added { background: var(--accent-2); color: #fff; transform: translateY(0); }
.card-body { padding: 15px 0 4px; display: block; }
.card-en {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-title { font-size: 13px; line-height: 1.55; margin-bottom: 8px; transition: color .2s; }
.card:hover .card-title { color: var(--accent); }
.card-meta { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-bottom: 11px; letter-spacing: .04em; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.price { font-family: var(--serif); font-size: 25px; color: var(--accent); }
.price-old { font-size: 10px; color: var(--ink-3); text-decoration: line-through; margin-left: 8px; font-family: var(--sans); }
.card-hint { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.poa { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.empty { padding: 100px 0; text-align: center; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.empty h3 { color: var(--ink); margin-bottom: 8px; font-family: var(--serif); font-size: 30px; }

/* ---------- Page head / filters ---------- */
.page-head { padding: 78px 0 42px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--serif); font-size: clamp(54px, 7vw, 104px); font-weight: 400; line-height: .94; margin-bottom: 16px; }
.page-head .lead { color: var(--ink-2); max-width: 720px; font-size: 14px; line-height: 1.95; }
.zone-flag { font-family: var(--mono); font-size: 10px; letter-spacing: .26em; color: var(--accent); margin-bottom: 22px; text-transform: uppercase; }
.zone-flag.regular { color: var(--ink-3); }
.moq-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--accent); color: #0B0B0A; padding: 16px 24px; margin-top: 30px;
}
.moq-banner strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.moq-banner span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.filterbar { border-bottom: 1px solid var(--line); padding: 24px 0 10px; }
.filter-row { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.filter-key {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); width: 96px; flex: none; padding-top: 9px;
}
.filter-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 11px; padding: 7px 14px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-2); transition: .18s; letter-spacing: .04em;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #0B0B0A; font-weight: 600; }
.chip:disabled { opacity: .25; cursor: not-allowed; text-decoration: line-through; }
.filter-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 28px; }
.result-count { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.result-count b { color: var(--accent); font-weight: 600; font-size: 16px; }
.sort-select { border: 1px solid var(--line-2); background: var(--surface); padding: 9px 12px; font-size: 10px; color: var(--ink-2); letter-spacing: .08em; }

/* ---------- Sticky selection bar ---------- */
.sel-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: #101010; color: var(--ink); border-top: 1px solid var(--line-2);
}
.sel-bar-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 52px; height: 78px;
  display: flex; align-items: center; gap: 32px;
}
.sel-bar-label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.sel-bar-label b { font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 0 5px; color: var(--accent); letter-spacing: 0; }
.sel-bar-label .of { color: var(--ink-3); }
.moq-track { flex: 1; height: 3px; background: var(--line-2); position: relative; min-width: 60px; }
.moq-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.moq-fill.full { background: var(--ok); }
.sel-bar-msg { font-family: var(--mono); font-size: 10px; color: var(--ink-3); white-space: nowrap; letter-spacing: .1em; text-transform: uppercase; }
.sel-bar-msg.ready { color: var(--ok); }
.sel-bar .btn { padding: 12px 24px; }

/* ---------- Selection page ---------- */
.sel-page { padding: 78px 0 116px; }
.sel-page h1 { font-family: var(--serif); font-size: clamp(52px, 7vw, 96px); font-weight: 400; line-height: .94; margin-bottom: 12px; }
.sel-summary { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 40px 0 50px; }
.sel-summary > div { background: var(--surface); padding: 30px 32px; }
.sel-progress-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.sel-progress-label b { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--accent); letter-spacing: 0; }
.moq-track.light { background: var(--line-2); height: 4px; }
.sel-total { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.sel-total span { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sel-total b { font-family: var(--serif); font-size: 46px; font-weight: 400; color: var(--accent); }
.sel-list { border-top: 1px solid var(--line); }
.sel-item { display: grid; grid-template-columns: 76px 1fr auto auto; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sel-item-thumb { width: 76px; height: 96px; background: var(--surface-2); overflow: hidden; }
.sel-item-thumb svg, .sel-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sel-item-name { font-size: 13px; margin-bottom: 3px; }
.sel-item-en { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sel-item-meta { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.sel-item-price { font-family: var(--serif); font-size: 23px; color: var(--accent); white-space: nowrap; }
.sel-remove { background: none; border: 0; color: var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.sel-remove:hover { color: var(--accent-2); }
.sel-actions { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; align-items: center; }

/* ---------- Product detail ---------- */
.pd { padding: 46px 0 110px; }
.crumb { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 36px; text-transform: uppercase; }
.crumb a:hover { color: var(--accent); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: start; }
.pd-main-img { background: var(--surface-2); aspect-ratio: 3 / 4; overflow: hidden; position: relative; }
.pd-main-img svg, .pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumb { width: 68px; height: 86px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.thumb svg, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--accent); }
.view-switch { display: flex; gap: 8px; margin-top: 14px; }
.pd-badges { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.pd-en { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.pd-title { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 60px); line-height: 1.06; margin-bottom: 20px; }
.pd-price { font-family: var(--serif); font-size: 44px; color: var(--accent); margin-bottom: 8px; }
.pd-price small { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-left: 12px; letter-spacing: .08em; }
.pd-price.poa { font-family: var(--mono); font-size: 16px; letter-spacing: .18em; color: var(--ink-2); }
.pd-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-bottom: 30px; }
.pd-block { border-top: 1px solid var(--line); padding: 24px 0; }
.pd-block h3 { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.id-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.id-table th, .id-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.id-table th { width: 140px; color: var(--ink-3); font-weight: 400; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.defect-card { background: var(--surface-2); border-left: 2px solid var(--accent-2); padding: 15px 18px; font-size: 13px; color: var(--ink-2); }
.defect-card.clean { border-left-color: var(--ok); }
.buy-area { display: flex; gap: 10px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.buy-note { font-size: 11px; color: var(--ink-3); margin-top: 14px; line-height: 1.9; }
.sold-banner { background: var(--danger-soft); border: 1px solid #6A3527; color: var(--accent-2); padding: 20px 24px; font-size: 13px; }

/* ---------- Checkout ---------- */
.checkout { max-width: 760px; margin: 0 auto; padding: 82px 0 116px; }
.checkout h1 { font-family: var(--serif); font-size: clamp(50px, 5.6vw, 80px); font-weight: 400; line-height: .94; margin-bottom: 14px; }
.pay-flow { display: flex; gap: 0; margin: 44px 0 32px; }
.pay-step { flex: 1; text-align: center; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-top: 2px solid var(--line-2); padding-top: 14px; }
.pay-step.on { border-top-color: var(--accent); color: var(--accent); }
.co-box { border: 1px solid var(--line); background: var(--surface); padding: 38px; }
.co-line { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.co-line span:first-child { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.co-total { display: flex; justify-content: space-between; padding: 22px 0 6px; font-family: var(--serif); font-size: 34px; color: var(--accent); }
.co-note { font-size: 11px; color: var(--ink-3); line-height: 1.9; margin-top: 22px; }

/* ---------- Workbench ---------- */
.wb-toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 20px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px;
}
.wb-tool {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 12px 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; transition: .2s; display: inline-flex; align-items: center; gap: 9px;
}
.wb-tool:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.wb-tool.primary { background: var(--accent); border-color: var(--accent); color: #0B0B0A; font-weight: 600; }
.wb-tool.primary:hover:not(:disabled) { background: #F0FF8C; color: #0B0B0A; }
.wb-tool:disabled { opacity: .35; cursor: not-allowed; }
.wb-tool .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wb-toolbar .spacer { flex: 1; }
.wb-layout { display: grid; grid-template-columns: 246px 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.wb-tree, .wb-main { background: var(--bg); padding: 26px; }
.wb-panel-title { font-family: var(--serif); font-size: 26px; margin-bottom: 6px; }
.wb-desc { font-size: 11px; color: var(--ink-3); margin-bottom: 22px; line-height: 1.85; }
.tree-node { margin-left: 0; }
.tree-node .tree-node { margin-left: 14px; border-left: 1px solid var(--line); padding-left: 10px; }
.tree-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; cursor: pointer;
  font-size: 12px; color: var(--ink-2); transition: .16s; border: 1px solid transparent;
}
.tree-row:hover { background: var(--surface-2); color: var(--ink); }
.tree-row.on { background: var(--accent); color: #0B0B0A; font-weight: 600; }
.tree-caret { font-family: var(--mono); font-size: 9px; width: 12px; color: var(--ink-3); }
.tree-row.on .tree-caret { color: #3A3D16; }
.tree-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-count { font-family: var(--mono); font-size: 9px; color: var(--ink-3); }
.tree-row.on .tree-count { color: #3A3D16; }
.tree-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex: none; }
.tree-dot.raw { background: var(--accent-2); }
.tree-dot.edited { background: var(--accent); }
.tree-dot.published { background: var(--ok); }

.wb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 22px; }
.stat { background: var(--surface); padding: 16px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; margin-bottom: 4px; }
.stat.raw b { color: var(--accent-2); } .stat.edited b { color: var(--accent); } .stat.published b { color: var(--ok); }
.stat span { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.wb-filterbar { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.wb-grid-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.asset-card {
  border: 1px solid var(--line); background: var(--surface); position: relative;
  transition: .22s cubic-bezier(.2,.7,.2,1); cursor: pointer;
}
.asset-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.asset-card.selected { border-color: var(--accent); }
.asset-card.published { opacity: .72; }
.asset-thumb { aspect-ratio: 3 / 4; background: var(--surface-2); overflow: hidden; position: relative; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.asset-card:hover .asset-thumb img { transform: scale(1.05); }
.asset-thumb .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .1em; }
.asset-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em; padding: 4px 7px;
  text-transform: uppercase; font-weight: 600;
}
.asset-badge.raw { background: var(--accent-2); color: #fff; }
.asset-badge.edited { background: var(--accent); color: #0B0B0A; }
.asset-badge.published { background: var(--ok); color: #0B0B0A; }
.asset-check {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 20px; height: 20px;
  border: 1px solid var(--line-2); background: rgba(11,11,10,.7); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.asset-card.selected .asset-check { background: var(--accent); color: #0B0B0A; border-color: var(--accent); }
.asset-info { padding: 11px 12px 13px; }
.asset-code { font-family: var(--mono); font-size: 11px; color: var(--ink); margin-bottom: 3px; }
.asset-path { font-family: var(--mono); font-size: 9px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-rec { font-family: var(--mono); font-size: 9px; color: var(--accent); margin-top: 6px; letter-spacing: .04em; }
.wb-empty { padding: 60px 20px; text-align: center; color: var(--ink-3); font-size: 12px; grid-column: 1 / -1; border: 1px dashed var(--line-2); }

.wb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 26px; }
.wb-card { background: var(--surface); padding: 30px; }
.wb-card h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 6px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.kv code { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.log-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.log-table th { text-align: left; color: var(--ink-3); font-weight: 400; padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.log-table td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.log-table td:first-child { color: var(--ink-3); white-space: nowrap; padding-right: 14px; font-family: var(--mono); font-size: 10px; }
.log-kind { display: inline-block; padding: 2px 8px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.log-kind.delisted { color: var(--accent-2); border-color: #6A3527; background: var(--danger-soft); }
.log-kind.pub { color: var(--accent); border-color: #4B5220; background: var(--accent-soft); }
.wb-wide { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.footer { background: #080808; color: var(--ink); padding: 84px 0 30px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 66px; border-bottom: 1px solid var(--line); }
.footer-mark { font-family: var(--serif); font-size: clamp(76px, 12vw, 168px); line-height: .8; letter-spacing: -.05em; }
.footer-mark span { font-family: var(--sans); font-size: 14px; vertical-align: top; margin-left: 8px; letter-spacing: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 16px; }
.footer-cols h4 { font-family: var(--mono); font-size: 9px; letter-spacing: .24em; color: var(--ink-3); margin-bottom: 20px; text-transform: uppercase; }
.footer-cols a, .footer-cols span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 11px; transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }
.footer-note { padding: 30px 0 26px; border-bottom: 1px solid var(--line); }
.footer-note p { font-size: 11px; color: var(--ink-3); line-height: 1.95; margin: 0; max-width: 760px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; flex-wrap: wrap; }

/* ---------- Toast / modal ---------- */
.toast-wrap { position: fixed; right: 24px; bottom: 98px; z-index: 95; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #0B0B0A; padding: 14px 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; max-width: 400px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: tin .25s ease-out;
}
.toast.ok { background: var(--accent); }
.toast.warn { background: var(--accent-2); color: #fff; }
@keyframes tin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.modal-mask { position: fixed; inset: 0; background: rgba(4,4,4,.78); backdrop-filter: blur(6px); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--surface); border: 1px solid var(--line-2); max-width: 560px; width: 100%; padding: 40px; max-height: 82vh; overflow: auto; }
.modal h2 { font-size: 40px; margin-bottom: 20px; }
.modal p { font-size: 13px; color: var(--ink-2); line-height: 1.95; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.enquire-list { border-top: 1px solid var(--line); margin-top: 20px; }
.enquire-list div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.enquire-list span { color: var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Colour dots on cards ---------- */
.cdot-row { display: flex; gap: 6px; margin: 4px 0 10px; }
.cdot {
  width: 16px; height: 16px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.cdot i { display: block; width: 100%; height: 100%; }
.cdot:hover { transform: scale(1.18); }
.cdot.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---------- Side line (deadstock teaser) ---------- */
.side-line {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  border: 1px solid var(--line); padding: 20px 24px; background: var(--surface);
  transition: border-color .25s, background .25s;
}
.side-line:hover { border-color: var(--accent); background: var(--surface-2); }
.sl-tag { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--accent-2); text-transform: uppercase; }
.sl-text { font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.sl-count { font-family: var(--serif); font-size: 26px; color: var(--accent); }

/* ---------- Swatches & size matrix ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font-size: 11px; transition: .2s;
}
.swatch i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.swatch:hover { border-color: var(--accent); color: var(--ink); }
.swatch.on { border-color: var(--accent); color: var(--ink); background: rgba(226,255,74,.06); }

.mx { width: 100%; border-collapse: collapse; font-size: 12px; }
.mx th, .mx td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: center; }
.mx thead th { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-3); font-weight: 400; }
.mx tbody th {
  text-align: left; font-weight: 400; font-size: 12px; color: var(--ink); white-space: nowrap;
  padding-left: 0;
}
.mx-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: baseline; }
.mx-cell { position: relative; }
.mx-input {
  width: 64px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink);
  padding: 7px 6px; font-family: var(--mono); font-size: 12px; text-align: center;
}
.mx-input:focus { outline: none; border-color: var(--accent); }
.mx-stock { display: block; font-family: var(--mono); font-size: 8px; color: var(--ink-3); margin-top: 4px; letter-spacing: .04em; }
.mx-out { color: var(--ink-3); }

/* ---------- Enquiry ---------- */
.enq-list { border-top: 1px solid var(--line); margin-bottom: 34px; }
.enq-line {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 20px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.enq-name b { display: block; font-size: 13px; font-weight: 400; }
.enq-name span { display: block; font-family: var(--mono); font-size: 9px; color: var(--ink-3); letter-spacing: .08em; margin-top: 3px; }
.enq-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.enq-qty { font-family: var(--serif); font-size: 24px; color: var(--accent); min-width: 48px; text-align: right; }
.enq-contact { border: 1px solid var(--line); background: var(--surface); padding: 30px; }
.enq-contact h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid label > span { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.form-grid input, .form-grid select, .form-grid textarea {
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink);
  padding: 11px 12px; font-family: var(--sans); font-size: 13px; width: 100%;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--accent); }
.form-grid select { appearance: none; }

/* ---------- Workbench steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 34px 0 0; }
.step {
  background: var(--surface); border: 0; color: var(--ink-3); text-align: left;
  padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px;
  align-items: center; transition: .2s; font-family: var(--mono);
}
.step i { font-style: normal; font-size: 10px; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.step b { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.step:hover { color: var(--ink); background: var(--surface-2); }
.step.on { color: #0B0B0A; background: var(--accent); }
.step.on i { border-color: rgba(11,11,10,.4); }
.step.on b { color: #0B0B0A; }
.step-hint { font-size: 12px; color: var(--ink-3); margin: 14px 0 0; line-height: 1.9; }

/* ---------- Style cards ---------- */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.style-card {
  border: 1px solid var(--line); background: var(--surface); padding: 16px;
  transition: .2s; cursor: pointer;
}
.style-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.style-card.editing { border-color: var(--accent); }
.style-card.published { opacity: .7; }
.style-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.style-head b { font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 600; }
.style-head > span:last-child { font-family: var(--mono); font-size: 8px; color: var(--ink-3); width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.style-title { font-size: 13px; margin-bottom: 12px; }
.wb-colors { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.wb-color { width: 54px; }
.wb-color-img { width: 54px; height: 68px; background: var(--surface-2); overflow: hidden; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; }
.wb-color-img img { width: 100%; height: 100%; object-fit: cover; }
.wb-color-img .ph { font-family: var(--mono); font-size: 9px; color: var(--ink-3); }
.wb-color > span { display: block; font-family: var(--mono); font-size: 8px; color: var(--ink-3); text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.style-meta { font-family: var(--mono); font-size: 9px; color: var(--ink-3); letter-spacing: .04em; }
.wb-warn { margin-top: 10px; font-size: 10px; color: var(--accent-2); line-height: 1.7; border-top: 1px dashed #5A2E22; padding-top: 8px; }
.asset-check { width: 22px; height: 22px; border: 1px solid var(--line-2); background: transparent; color: var(--accent); font-size: 12px; margin-left: auto; }
.asset-check.on { background: var(--accent); color: #0B0B0A; border-color: var(--accent); }

/* ---------- Details form ---------- */
.detail-form { border: 1px solid var(--line); background: var(--surface); padding: 24px; }
.df-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.df-head h3 { font-family: var(--serif); font-size: 24px; }
.df-head span { font-family: var(--mono); font-size: 9px; color: var(--ink-3); }
.df-block { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.df-block h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 14px; }
.df-foot { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.df-missing { font-size: 11px; color: var(--accent-2); }
.stock-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stock-colour { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.stock-cells { display: flex; gap: 8px; flex-wrap: wrap; }
.stock-cell { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.stock-cell span { font-family: var(--mono); font-size: 8px; color: var(--ink-3); }
.stock-cell input { width: 46px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); padding: 6px 4px; font-family: var(--mono); font-size: 11px; text-align: center; }
.stock-cell input:focus { outline: none; border-color: var(--accent); }

/* ---------- Type panel ---------- */
.type-panel { border: 1px solid var(--line-2); background: var(--surface); padding: 26px; margin-top: 26px; }
.wb-layout.with-form { grid-template-columns: 280px 1fr; }
.tree-dot.ready { background: var(--accent); }
.tree-row.is-style .tree-name { font-family: var(--mono); font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 78px 0 60px; }
  .hero-visual { min-height: 440px; border-left: 0; border-top: 1px solid var(--line); }
  .pd-grid { grid-template-columns: 1fr; gap: 44px; }
  .sel-summary { grid-template-columns: 1fr; }
  .wb-layout { grid-template-columns: 1fr; }
  .wb-tree { max-height: 260px; overflow: auto; }
}
@media (max-width: 820px) {
  .wrap, .topbar-inner, .sel-bar-inner { padding-left: 20px; padding-right: 20px; }
  .topbar-inner { height: 68px; gap: 12px; }
  .brand { font-size: 27px; }
  .nav { gap: 14px; margin-left: 4px; }
  .nav a { font-size: 9px; letter-spacing: .1em; }
  .mode-pill { display: none; }
  .selection-btn { padding: 10px 12px; font-size: 9px; letter-spacing: .1em; }
  .lang-trigger { padding: 8px 9px; min-width: 56px; font-size: 9px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .entry-grid, .footer-top, .wb-grid, .wb-stats { grid-template-columns: 1fr 1fr; }
  .wb-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 58px; }
  .hero-scroll { left: 20px; }
  .hero-meta { flex-wrap: wrap; gap: 22px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 68px 0; }
  .page-head { padding: 50px 0 32px; }
  .filter-row { flex-direction: column; gap: 7px; }
  .filter-key { width: auto; padding-top: 0; }
  .sel-bar-inner { height: 68px; gap: 14px; }
  .sel-bar-msg { display: none; }
  .sel-bar .btn { padding: 10px 14px; font-size: 9px; }
  .sel-item { grid-template-columns: 56px 1fr auto; gap: 12px; }
  .sel-item-thumb { width: 56px; height: 72px; }
  .sel-item-price { display: none; }
  .co-box { padding: 24px; }
  .wb-grid-assets { grid-template-columns: repeat(2, 1fr); }
  body { padding-bottom: 68px; }
}
@media (max-width: 520px) {
  .entry-grid, .wb-grid, .sel-summary { grid-template-columns: 1fr; }
  .wb-stats { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .topbar-right { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.entry-grid.single { grid-template-columns: 1fr; }
.footer-tail { color: inherit; }
.manage-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pd-description { white-space: pre-line; margin: 12px 0; }
.form-grid textarea { width: 100%; resize: vertical; }

.admin-mode > .announce, .admin-mode > .topbar, .admin-mode > .footer { display: none; }
.admin-shell { padding-bottom: 60px; }
.admin-top, .admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-top { min-height: 68px; border-bottom: 1px solid var(--line); }
.admin-top a { color: var(--ink-2); }
.admin-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; padding-top: 24px; }
.admin-layout > nav { display: grid; align-content: start; gap: 6px; }
.admin-layout > nav a { padding: 9px 12px; border-radius: 4px; color: var(--ink-2); }
.admin-layout > nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.admin-heading { margin-bottom: 20px; }
.admin-heading h1 { font-size: clamp(24px, 3vw, 36px); }
.admin-content > .wrap { width: 100%; max-width: none; padding: 0; }
.admin-content > .wrap > .eyebrow, .admin-content > .wrap > h2 { display: none; }
.admin-record { margin-bottom: 12px; overflow-wrap: anywhere; }
.admin-record p, .admin-record ul { margin: 8px 0; }
.admin-record ul { padding-left: 22px; }
.sel-summary:has(.sel-total:only-child) { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .admin-layout { grid-template-columns: 1fr; gap: 18px; }
  .admin-layout > nav { display: flex; flex-wrap: wrap; }
}

.sel-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.admin-shell .tree-children { padding-left: 12px; border-left: 1px solid var(--line); }

/* Bright catalogue and account workspace */
body { padding-bottom: 0; }
body:has(.sel-bar) { padding-bottom: 72px; }
.topbar { background: rgba(255,255,255,.96); }
.topbar-inner { height: 72px; }
.nav a, .account-link { font-size: 13px; letter-spacing: .025em; font-weight: 600; }
.nav a[data-route="tail"] { color: var(--ink-3); }
.nav a[data-route="tail"].active, .nav a[data-route="tail"]:hover { color: var(--accent); }
.selection-btn, .btn, .btn-ghost:hover, .btn-outline-light:hover, .chip.on, .card-add, .wb-tool.primary, .toast { color: white; }
.selection-btn { background: var(--accent-soft); color: var(--accent); }
.selection-btn span:last-child { color: inherit; }
.btn-accent, .wb-tool.primary { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover, .wb-tool.primary:hover:not(:disabled), .card-add:hover { background: #443188; border-color: #443188; color: white; }
.btn-ghost, .btn-outline-light { color: var(--ink); }
.btn:disabled:hover { color: white; }
.tag-accent { color: white; }
.tag-a { background: #eaf4ee; border-color: #c6ddcf; }
.tag-b { color: #79521d; background: #fbf1df; border-color: #e4ccac; }
.tag-c { background: #f9e9ea; border-color: #ebc4c4; }
.footer { background: #f0edf6; padding-top: 44px; }
.footer-top { padding-bottom: 34px; }
.sel-bar { background: #fff; box-shadow: 0 -6px 24px #33225512; }
.lang-menu, .toast { box-shadow: 0 12px 38px #24203825; }
.card-img-wrap, .card-img, .pd-main-img { border-radius: 8px; }
.card:hover .card-img .img-outline { opacity: 0; }
.card-add { transform: none; border-radius: 5px 0 0 0; }
.section-head { padding-bottom: 14px; margin-bottom: 24px; }
.card-title { font-size: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fashion-hero { background: linear-gradient(130deg,#f3eaff,#fdebe4); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; min-height: 390px; }
.fashion-copy { align-self: center; padding: clamp(24px, 6vw, 78px); }
.fashion-copy h1 { font-size: clamp(44px, 7vw, 100px); line-height: 1.02; letter-spacing: -.04em; margin: 12px 0 16px; }
.fashion-copy p:not(.eyebrow) { max-width: 33ch; margin-bottom: 26px; color: var(--ink-2); }
.fashion-feature { position: relative; display: block; min-height: 360px; background: #f0e9fb; }
.fashion-feature img, .fashion-feature svg { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.fashion-blank { min-height: 240px; background: #ecdfdf url("../img/editorial-rail.webp") center 43% / cover no-repeat; }
.fashion-catalog { padding-top: 56px; padding-bottom: 70px; }
.guest-mode .nav, .guest-mode .selection-btn, .guest-mode .account-link { display: none; }
.auth-page { min-height: 65vh; max-width: 1050px; display: grid; grid-template-columns: 1fr minmax(320px, 440px); align-items: stretch; margin: 44px auto; }
.auth-visual { min-height: 330px; border-radius: 16px 0 0 16px; background: #ecdfdf url("../img/editorial-rail.webp") center 38% / cover no-repeat; }
.auth-panel { background: white; border: 1px solid var(--line); padding: clamp(22px,4vw,44px); border-radius: 0 16px 16px 0; }
.auth-panel h1 { font-size: 31px; line-height: 1.3; margin-bottom: 8px; }
.auth-panel form { margin: 24px 0; }
.auth-panel label { display: grid; gap: 5px; margin: 12px 0; font-weight: 600; }
.auth-panel input, .draft-filters input, .draft-filters select, .listing-form input:not([type=checkbox]), .listing-form select, .listing-form textarea,
.import-form input:not([type=checkbox]), .import-form select, .admin-content .wb-toolbar input:not([type=checkbox]), .admin-content select {
  font: inherit; color: var(--ink); background: #fff; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 6px;
}
.auth-actions, .session-links, .listing-toolbar, .listing-actions, .import-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.form-error { color: var(--accent-2); font-size: 13px; }
.form-error:empty, .listing-job:empty { display: none; }
.password-panel { border-radius: 12px; max-width: 480px; }
.account-page { padding-top: 46px; padding-bottom: 60px; }
.account-heading, .listing-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.account-heading { margin-bottom: 22px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 18px; align-items: start; }
.account-grid .wb-card { margin-bottom: 14px; }
.admin-mode { background: #f7f7fb; }
.admin-top { min-height: 58px; }
.admin-layout { grid-template-columns: 150px minmax(0, 1fr); }
.listing-toolbar { margin-bottom: 14px; }
.listing-layout { display: grid; grid-template-columns: minmax(210px, 285px) minmax(0, 1fr); gap: 16px; align-items: start; }
.draft-list, .listing-form { background: white; border: 1px solid var(--line); border-radius: 10px; }
.draft-list { min-width: 0; overflow: hidden; }
.draft-filters { display: grid; gap: 7px; padding: 14px; border-bottom: 1px solid var(--line); }
.draft-filters h2, .listing-heading h2 { font-size: 17px; line-height: 1.4; margin: 0; }
#draftRows { max-height: 72vh; overflow-y: auto; }
.draft-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px; align-items: center; text-align: left; width: 100%; padding: 9px 10px; background: white; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.draft-row.current, .draft-row:hover { background: var(--accent-soft); }
.draft-row img, .draft-placeholder { width: 38px; height: 48px; object-fit: cover; background: var(--surface-2); border-radius: 4px; }
.draft-row-title { display: grid; gap: 2px; min-width: 0; }
.draft-row-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-row-title small { color: var(--ink-3); }
.draft-state { padding: 3px 7px; border-radius: 20px; background: #f0edf5; color: #544667; font-size: 11px; white-space: nowrap; }
.draft-state.ready, .draft-state.published { background: #e3f3e9; color: #2b6444; }
.listing-form { padding: 18px; }
.listing-form .listing-section { padding: 14px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.listing-section h3 { font-size: 15px; margin: 0 0 9px; }
.listing-translations { margin-top: 12px; }
.listing-translations summary { color: var(--accent); cursor: pointer; }
.listing-gallery { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; }
.listing-gallery a { width: 94px; font-size: 11px; color: var(--ink-2); }
.listing-gallery img { width: 94px; height: 116px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #f6f4f8; }
.listing-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.listing-job { background: var(--accent-soft); color: var(--accent); padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }
.import-form { margin-bottom: 14px; }
.import-row { display: grid; grid-template-columns: minmax(90px,160px) minmax(0,1fr) auto; gap: 8px; align-items: center; margin: 9px 0; }
.import-actions { justify-content: flex-start; }
@media (max-width: 850px) {
  .listing-layout { grid-template-columns: 1fr; }
  #draftRows { max-height: 270px; }
}
@media (max-width: 720px) {
  .admin-layout { grid-template-columns: 1fr; }
  .fashion-hero, .auth-page, .account-grid { grid-template-columns: 1fr; }
  .fashion-feature { min-height: 280px; }
  .auth-page { margin: 18px auto; }
  .auth-visual { min-height: 140px; border-radius: 12px 12px 0 0; }
  .auth-panel { border-radius: 0 0 12px 12px; }
  .password-panel { border-radius: 12px; }
  .account-link { font-size: 11px; white-space: nowrap; }
  .import-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 520px) {
  .topbar-inner { display: grid; grid-template-columns: auto 1fr; min-height: 60px; height: auto; row-gap: 2px; }
  .topbar-right { grid-column: 2; grid-row: 1; padding: 8px 0; }
  body:not(.guest-mode) .nav { display: flex; grid-column: 1 / -1; grid-row: 2; margin: 0; gap: 22px; }
  body:not(.guest-mode) .nav a { font-size: 12px; padding-top: 2px; }
  .listing-heading { flex-wrap: wrap; }
  .listing-toolbar .btn { padding-inline: 12px; }
}

.auth-page, .admin-layout, .listing-layout { min-width: 0; }
.auth-panel, .listing-editor, .draft-filters, .form-grid label { min-width: 0; }
.auth-panel input { width: 100%; min-width: 0; }
.listing-form .form-grid, .import-form .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.listing-form .form-grid label > span, .import-form .form-grid label > span { font: 600 12px/1.5 var(--sans); letter-spacing: 0; }
.listing-footer { position: sticky; bottom: 0; z-index: 5; background: white; margin: 6px -18px -18px; padding: 12px 18px; border-radius: 0 0 10px 10px; box-shadow: 0 -5px 12px #3322550c; }
@media (max-width: 720px) {
  .auth-page, .admin-layout, .listing-layout, .listing-form .form-grid, .import-form .form-grid { grid-template-columns: minmax(0,1fr); }
  .listing-footer .listing-actions { margin-left: auto; }
}

.pd-gallery { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 3px; }
.pd-gallery-thumb { border: 1px solid var(--line-2); border-radius: 5px; background: white; padding: 3px; flex: 0 0 68px; height: 84px; }
.pd-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery-thumb.on { border: 2px solid var(--accent); }

.admin-preview .wrap { padding-inline: 0; }
.admin-preview .buy-area, .admin-preview .buy-note, .admin-preview .crumb { display: none; }
.admin-preview .pd-grid { margin-top: 14px; }
