:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --ink: #16181d;
  --ink-soft: #5a6070;
  --ink-faint: #9aa0ae;
  --line: #e4e6eb;
  --accent: #16181d;
  --accent-ink: #ffffff;
  --price: #0a7d43;
  --price-soft: #f2faf6;
  --danger: #c0392b;
  --thumb-bg: #ececf0;
  --topbar-bg: rgba(255, 255, 255, 0.92);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 28, 0.06), 0 8px 24px -18px rgba(20, 22, 28, 0.35);
  --shadow-hover: 0 2px 4px rgba(20, 22, 28, 0.07), 0 16px 32px -18px rgba(20, 22, 28, 0.45);
}

html[data-theme="dark"] {
  --bg: #101216;
  --surface: #1a1d24;
  --surface-2: #14161c;
  --ink: #e8eaef;
  --ink-soft: #a4aab8;
  --ink-faint: #6b7180;
  --line: #2a2e38;
  --accent: #e8eaef;
  --accent-ink: #14161c;
  --price: #3ecf8e;
  --price-soft: #16241d;
  --danger: #e06456;
  --thumb-bg: #23262e;
  --topbar-bg: rgba(16, 18, 22, 0.92);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -18px rgba(0, 0, 0, 0.8);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 32px -18px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}
img { display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.promo-banner {
  padding: 9px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.staff-view-banner {
  padding: 7px 18px;
  background: #7c2d12;
  color: #fff7ed;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1px;
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--price);
  box-shadow: 0 0 0 4px rgba(10, 125, 67, 0.15);
}
.brand .muted { color: var(--ink-faint); font-weight: 600; font-size: 13px; }

.search {
  flex: 1;
  min-width: 180px;
  max-width: 480px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 14px;
  outline: none;
}
.search input:focus { border-color: var(--ink-soft); background: var(--surface); }
.search .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-faint);
  pointer-events: none;
}

.top-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink-soft); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.staff-view-active { background: #7c2d12; color: #fff7ed; border-color: #9a3412; }
.btn.danger { color: var(--danger); border-color: #eccfcb; }
.btn:disabled { opacity: 0.5; cursor: default; }

.staff-view-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(5px);
}
.staff-view-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}
.staff-view-dialog h2 { margin: 0 34px 6px 0; }
.staff-view-dialog p { margin: 0 0 18px; color: var(--ink-faint); }
.staff-view-dialog label { display: grid; gap: 7px; margin-bottom: 14px; font-weight: 700; }
.staff-view-dialog input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.staff-view-dialog input:focus { border-color: var(--price); }
.staff-view-dialog .form-msg { display: block; margin-top: 10px; }
.staff-view-close {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-faint);
  font-size: 25px;
  line-height: 1;
}
.staff-view-close:hover { background: var(--bg); color: var(--ink); }

/* ---------- filter bar ---------- */
.filters {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .n { opacity: 0.55; font-weight: 500; margin-left: 4px; font-size: 12px; }
.row-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-faint);
  min-width: 72px;
}
.result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 2px;
}
.result-meta select {
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--ink);
}

/* ---------- grid ---------- */
.wrap { max-width: 1400px; margin: 0 auto; padding: 16px 20px 60px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { translate: 0 -3px; box-shadow: var(--shadow-hover); }
.card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--thumb-bg);
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(16, 18, 24, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card .body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.card .title {
  font-size: 13.5px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.card .price { margin-top: auto; font-size: 15px; font-weight: 800; color: var(--price); }
.card .price.ask { color: var(--ink-faint); font-weight: 600; font-size: 13px; }
.card-select-wrap { position: relative; min-width: 0; }
.card-select-wrap .card { height: 100%; }
.card-select-wrap.selected .card {
  outline: 3px solid var(--price);
  outline-offset: -3px;
  box-shadow: 0 12px 30px var(--price-soft);
}
.item-select {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(16, 18, 24, 0.7);
  color: transparent;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: scale 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.item-select:hover { scale: 1.08; }
.item-select span { font-size: 16px; font-weight: 900; line-height: 1; }
.item-select.selected {
  border-color: var(--price);
  background: var(--price);
  color: #fff;
}
.bulk-edit-notice {
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid var(--price);
  border-radius: 10px;
  background: var(--price-soft);
  color: var(--price);
  font-size: 13.5px;
  font-weight: 800;
}
.delivery-note {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid var(--price);
  border-radius: 9px;
  background: var(--price-soft);
  color: var(--price);
  font-size: 13px;
  font-weight: 800;
}
.bulk-edit-bar {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  width: min(92vw, 560px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px 11px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}
.bulk-edit-bar[hidden], .bulk-edit-overlay[hidden] { display: none; }
.bulk-edit-bar-actions { display: flex; gap: 8px; }
.bulk-edit-overlay {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(5px);
}
.bulk-edit-dialog {
  width: min(94vw, 600px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}
.bulk-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.bulk-edit-head h2 { margin: 0 0 3px; font-size: 20px; }
.bulk-edit-head p { margin: 0; color: var(--price); font-size: 13px; font-weight: 800; }
.bulk-edit-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 23px;
  line-height: 1;
}
.bulk-edit-help {
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}
.bulk-edit-field {
  margin-top: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
}
.bulk-edit-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 800;
}
.bulk-edit-choice input { accent-color: var(--price); }
.bulk-edit-field > input[type="text"],
.bulk-edit-field > textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  outline: none;
}
.bulk-edit-field > input:focus,
.bulk-edit-field > textarea:focus { border-color: var(--price); }
.bulk-edit-field > input:disabled,
.bulk-edit-field > textarea:disabled { opacity: 0.45; }
.bulk-edit-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 17px;
}

.empty {
  text-align: center;
  color: var(--ink-faint);
  padding: 80px 20px;
  font-size: 15px;
}

/* ---------- landing (brand cards) ---------- */
.hero { padding: 22px 4px 20px; }
.hero h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: 0.2px; }
.hero p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.brand-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: translate 0.15s ease, box-shadow 0.15s ease;
}
.brand-card:hover { translate: 0 -3px; box-shadow: var(--shadow-hover); }
.brand-card .thumb { aspect-ratio: 16 / 10; background: var(--thumb-bg); overflow: hidden; }
.brand-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.25s ease; }
.brand-card:hover .thumb img { scale: 1.05; }
.brand-card .body {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.brand-card .name { font-size: 17px; font-weight: 800; }
.brand-card .meta { font-size: 13px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.shop-section-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.shop-section-card .thumb { position: relative; aspect-ratio: 4 / 3; }
.shop-section-card .body { align-items: flex-start; }
.section-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.section-desc {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.35;
}
.shop-section-card .meta { text-align: right; line-height: 1.45; }
.section-kicker {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(16, 18, 24, 0.76);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.browse-all-link { display: flex; justify-content: center; margin-top: 20px; }
.brand-step-hero .crumb { margin-bottom: 14px; }
.step-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--price);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.product-step-title { padding: 2px 0 3px; }
.product-step-title .step-label { margin-bottom: 3px; }
.product-step-title h1 { margin: 0; font-size: 24px; }

/* Owner-only cover controls, layered over the card's image corner. */
.brand-card-wrap { position: relative; }
.cover-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.brand-card-wrap:hover .cover-edit,
.cover-edit:focus-within { opacity: 1; }
.cover-edit button {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(4px);
}
.cover-edit button:hover { background: rgba(0, 0, 0, 0.85); }
/* Touch devices have no hover, so keep the controls visible there. */
@media (hover: none) {
  .cover-edit { opacity: 1; }
}
.shop-cover-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.shop-cover-select-label {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.shop-cover-select-label select {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}
.shop-cover-select-label select:focus { border-color: var(--ink-soft); }
.shop-cover-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
}
.shop-cover-preview img {
  width: 94px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: var(--thumb-bg);
}
.shop-cover-preview b,
.shop-cover-preview span {
  display: block;
}
.shop-cover-preview b { color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.shop-cover-empty { line-height: 1.45; }
.shop-cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.shop-cover-actions input[type="file"] {
  min-width: 220px;
  max-width: 100%;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12.5px;
}
@media (max-width: 640px) {
  .shop-cover-picker { grid-template-columns: 1fr; }
  .shop-cover-actions { align-items: stretch; flex-direction: column; }
  .shop-cover-actions .btn { width: 100%; }
}

/* ---------- upcoming brands ---------- */
.coming-soon {
  margin-top: 30px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1.3fr);
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, var(--price-soft), var(--surface) 58%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}
.coming-soon-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--price);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.coming-soon-intro h2 { margin: 0 0 6px; font-size: 22px; }
.coming-soon-intro p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
.coming-brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.coming-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}
.coming-brand button {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin: -3px -7px -3px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1;
}
.coming-brand button:hover { background: var(--danger); color: #fff; }
.coming-brand button:disabled { opacity: 0.5; cursor: default; }
.coming-soon-empty { margin: 0; color: var(--ink-faint); font-size: 14px; }
.coming-brand-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-top: 16px;
}
.coming-brand-form:first-child { margin-top: 0; }
.coming-brand-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.coming-brand-form input:focus { border-color: var(--ink-soft); }
.coming-brand-help { margin-top: 7px; color: var(--ink-faint); font-size: 11.5px; }
.coming-soon .form-msg:empty { display: none; }

/* ---------- album page ---------- */
.album-head { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; align-items: flex-start; }
.album-info {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  flex: 1;
  min-width: 280px;
}
.crumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumb a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.crumb a:hover { color: var(--ink); }
.album-info h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.album-price { font-size: 26px; font-weight: 800; color: var(--price); margin: 8px 0 2px; }
.album-sub { color: var(--ink-soft); font-size: 13.5px; }
.fit-note {
  margin-top: 10px;
  display: inline-block;
  background: #fdf6e3;
  border: 1px solid #f1e3b5;
  color: #7a5d0e;
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 8px;
}
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.contact-hint { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

.admin-box {
  background: #101218;
  color: #d6d9e0;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13px;
  min-width: 260px;
  max-width: 360px;
}
.admin-box h3 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a92a6;
}
.admin-box .kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.admin-box .kv span:first-child { color: #8a92a6; }
.admin-box a { color: #7fb3ff; word-break: break-all; }
.admin-box .links { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.admin-notes {
  margin-top: 10px;
  padding: 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  color: var(--ink-soft);
  font-size: 13px;
  white-space: normal;
}
.album-bio {
  max-width: 760px;
  margin: 14px 0 2px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.buyer-link { display: inline-flex; margin-top: 13px; text-decoration: none; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.g-tile { position: relative; }
.g-img {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--thumb-bg);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.2s ease; }
.g-img:hover img { scale: 1.04; }
.g-tile.is-hidden .g-img { opacity: 0.35; }
.g-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(16, 18, 24, 0.78);
  color: #fff;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.g-tile:hover .g-toggle, .g-tile.is-hidden .g-toggle { opacity: 1; }
.g-toggle:hover { background: rgba(16, 18, 24, 0.95); }
.g-reason {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: #b3541e;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 11, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
}
.lb-btn {
  position: fixed;
  top: 50%;
  translate: 0 -50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close { position: fixed; top: 16px; right: 18px; translate: none; }
.lb-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  translate: -50% 0;
  color: #cfd3dc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------- upload page ---------- */
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  max-width: 720px;
  margin: 0 auto;
}
.panel h1 { margin: 0 0 4px; font-size: 22px; }
.panel .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="url"],
.field input[type="number"],
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: var(--bg);
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--ink-soft); background: var(--surface); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 18px 0 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.upload-mode {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.upload-mode.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.bulk-upload-intro {
  margin: 18px 0 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--price-soft), var(--surface));
}
.bulk-upload-intro h2 { margin: 0 0 4px; font-size: 17px; }
.bulk-upload-intro p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone.drag { border-color: var(--price); background: var(--price-soft); }
.bulk-dropzone {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 800;
}
.bulk-dropzone span { color: var(--ink-faint); font-size: 12px; font-weight: 500; }
.bulk-title-preview {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--price-soft);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}
.manual-upload-heading {
  margin: 26px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.manual-upload-heading:first-of-type { margin-top: 18px; }
.new-category-fields {
  padding: 2px 14px 10px;
  margin-bottom: 12px;
  border-left: 3px solid var(--price);
  background: var(--price-soft);
  border-radius: 0 10px 10px 0;
}
.custom-category-manager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: -2px 0 15px;
  color: var(--ink-faint);
  font-size: 12px;
}
.custom-category-chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 12px;
}
.custom-category-chip:hover { border-color: var(--danger); color: var(--danger); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 14px; }
.previews img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; }
.form-msg { margin-top: 12px; font-size: 13.5px; font-weight: 600; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--price); }
.banner-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.banner-editor input[type="text"] {
  flex: 1 1 360px;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  outline: none;
}
.banner-editor input[type="text"]:focus { border-color: var(--ink-soft); background: var(--surface); }
.banner-editor .form-msg { margin-top: 0; }

/* ---------- admin page ---------- */
.admin-section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.admin-section h2 { margin: 0 0 6px; font-size: 16px; }

.catalogue-merge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.catalogue-merge-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  cursor: grab;
  transition: border-color .15s, background .15s, transform .15s, opacity .15s;
}
.catalogue-merge-card:active { cursor: grabbing; }
.catalogue-merge-card.is-dragging { opacity: .45; }
.catalogue-merge-card.drag-over {
  border-color: var(--price);
  background: var(--price-soft);
  transform: translateY(-2px);
}
.catalogue-merge-card.is-merged { border-style: dashed; }
.catalogue-merge-handle { color: var(--muted); letter-spacing: -3px; font-weight: 800; }
.catalogue-merge-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.catalogue-merge-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalogue-merge-copy span { color: var(--muted); font-size: 12px; }
.catalogue-merge-copy .catalogue-merge-destination { color: var(--price); }
.catalogue-unmerge {
  border: 0;
  background: transparent;
  color: var(--price);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 6px;
}
.hint { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; margin: 4px 0 10px; }
.checkbox-field { display: flex; flex-direction: column; justify-content: flex-end; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--price); }

@media (max-width: 640px) {
  .topbar-inner { padding: 10px 12px; }
  .wrap, .filters { padding-left: 12px; padding-right: 12px; }
  .shop-section-grid { grid-template-columns: 1fr; }
  .shop-section-card .body { flex-direction: column; }
  .shop-section-card .meta { text-align: left; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .card .title { font-size: 12.5px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .row-label { display: none; }
}

/* ---------- icon buttons + badges ---------- */
.icon-btn { position: relative; padding: 8px 12px; font-size: 15px; line-height: 1; text-decoration: none; }
.badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--danger); color: #fff;
  font-size: 10.5px; font-weight: 800;
  min-width: 17px; height: 17px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.badge.show { display: flex; }
.btn.small { padding: 6px 12px; font-size: 12.5px; }
.page-title { font-size: 24px; margin: 10px 0 16px; }
.muted-count { color: var(--ink-faint); font-weight: 600; font-size: 16px; }
.wrap.narrow { max-width: 860px; }
.mini-h { font-size: 15px; margin: 20px 0 10px; }
.field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; background: var(--bg); color: var(--ink); outline: none;
}

/* ---------- size guide ---------- */
.size-guide {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 20px;
}
.size-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.size-guide-head h3 { margin: 0; font-size: 16px; }
.size-table-wrap { overflow-x: auto; margin-top: 10px; }
.size-table-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-faint); margin-bottom: 4px; }
.size-table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 420px; }
.size-table th, .size-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-faint); }
.size-table th .unit { font-weight: 400; opacity: 0.7; text-transform: none; }
.size-table tr.rec td { background: var(--price-soft); }
.rec-tag {
  background: var(--price); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.4px;
}
.fit { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.fit.tight { background: rgba(192, 57, 43, 0.12); color: var(--danger); }
.fit.slim { background: rgba(230, 145, 20, 0.14); color: #b3721e; }
.fit.good { background: var(--price-soft); color: var(--price); }
.fit.relaxed { background: rgba(58, 199, 142, 0.12); color: var(--price); }
.fit.oversized { background: var(--bg); color: var(--ink-faint); }
.size-basis { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }
.model-hint { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); }
.profile-reference, .length-alert {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
}
.profile-reference { background: var(--price-soft); color: var(--price); }
.length-alert { background: rgba(230, 145, 20, 0.12); color: #a76513; }

/* ---------- expanded My sizes profile ---------- */
.size-profile-panel { max-width: 1080px; padding: 30px; }
.size-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 22px;
}
.size-profile-head > div:first-child { max-width: 680px; }
.profile-strength {
  width: 220px;
  flex: 0 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.profile-strength > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}
.profile-strength b { color: var(--ink); }
.profile-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.profile-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--price);
  transition: width 0.2s ease;
}
.size-profile-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.footwear-profile-card {
  background: linear-gradient(145deg, var(--surface), var(--price-soft));
}
.profile-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.profile-step {
  display: flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
}
.profile-card-head h2 { margin: 1px 0 3px; font-size: 17px; }
.profile-card-head p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.measurement-grid {
  display: grid;
  gap: 14px;
}
.measurement-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.measurement-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.measurement-grid .field { margin: 0; }
.size-profile-panel .field label span {
  color: var(--ink-faint);
  font-weight: 500;
}
.size-profile-panel .field input[type="text"],
.size-profile-panel .field input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.size-profile-panel .field input:focus,
.size-profile-panel .field select:focus {
  border-color: var(--ink-soft);
  background: var(--surface);
}
.fit-field { max-width: 520px; margin: 16px 0 0; }
.measure-help {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12.5px;
}
.measure-help summary {
  width: fit-content;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.measure-help > p { margin: 10px 0 0; line-height: 1.55; }
.measure-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 10px;
}
.measure-help-grid p { margin: 0; line-height: 1.5; }
.measure-help-grid b { display: block; color: var(--ink); }
.shoe-match {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.shoe-match-main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 12px;
}
.shoe-match-main .size-table-label { grid-column: 1 / -1; }
.shoe-match-main strong { color: var(--price); font-size: 22px; }
.shoe-match-main > span:last-child { color: var(--ink-soft); font-size: 12.5px; }
.shoe-conversions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.shoe-conversions > span, .profile-preview-chips > span {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-width: 68px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 800;
}
.shoe-conversions small, .profile-preview-chips small {
  color: var(--ink-faint);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.empty-match { color: var(--ink-soft); }
.empty-match > div { display: flex; flex-direction: column; gap: 2px; }
.empty-match b { color: var(--ink); font-size: 13.5px; }
.profile-live-summary {
  margin-top: 16px;
  padding: 17px 18px;
  border-radius: 12px;
  background: var(--bg);
}
.profile-live-summary p { margin: 9px 0 0; color: var(--ink-soft); font-size: 12.5px; }
.profile-preview-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-preview-chips > span { min-width: 88px; background: var(--surface); }
.profile-preview-chips b { font-size: 12.5px; }
.profile-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.profile-actions .form-msg { margin: 0 0 0 4px; }

/* ---------- order block on album ---------- */
.order-block { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.size-pick { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.size-pick select, .size-pick input {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font: inherit; background: var(--bg); color: var(--ink); min-width: 110px; outline: none;
}
#addCartBtn.added { background: var(--price); border-color: var(--price); color: #fff; }

/* ---------- cart ---------- */
.cart-line { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-line-body { flex: 1; min-width: 0; }
.cart-title { font-weight: 700; font-size: 14px; }
.cart-sub { color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.cart-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1;
}
.qty { font-weight: 700; min-width: 18px; text-align: center; }
.cart-price { font-weight: 800; color: var(--price); white-space: nowrap; }
.cart-total { display: flex; justify-content: space-between; padding: 14px 0 2px; font-size: 16px; }
.order-done {
  background: var(--price-soft); border: 1px solid var(--price); color: var(--price);
  border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; font-weight: 600;
}

/* ---------- orders ---------- */
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.order-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-date { color: var(--ink-faint); font-size: 12.5px; margin-left: auto; }
.status { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 9px; border-radius: 999px; }
.s-new { background: rgba(230, 145, 20, 0.15); color: #b3721e; }
.s-quoted { background: rgba(52, 120, 246, 0.13); color: #3a6fd8; }
.s-confirmed { background: var(--price-soft); color: var(--price); }
.s-done { background: var(--price-soft); color: var(--price); }
.s-cancelled { background: rgba(192, 57, 43, 0.12); color: var(--danger); }
.order-who { margin-top: 8px; font-size: 13.5px; }
.order-note { margin-top: 6px; color: var(--ink-soft); font-size: 13px; font-style: italic; }
.order-items { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.order-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.order-item a { font-weight: 600; text-decoration: none; }
.order-item a:hover { text-decoration: underline; }
.order-item span { color: var(--ink-soft); white-space: nowrap; }
.order-est { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.order-reply {
  margin-top: 12px; background: var(--bg); border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.order-total { font-size: 15px; }
.reply-form { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.reply-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.reply-actions select {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  font-size: 13px; background: var(--bg); color: var(--ink);
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .topbar-inner { padding: 10px 12px; gap: 10px; }
  .brand { font-size: 17px; }
  .search { order: 3; min-width: 100%; max-width: none; }
  .top-actions { gap: 6px; }
  .btn { padding: 7px 11px; font-size: 12.5px; }
  .hide-sm { display: none; }
  .hero h1 { font-size: 24px; }
  .coming-soon { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .coming-brand-form { flex-direction: column; }
  .coming-brand-form .btn { padding: 10px 14px; }
  .size-profile-panel { padding: 20px 16px; }
  .size-profile-head { flex-direction: column; gap: 14px; }
  .profile-strength { width: 100%; }
  .measurement-grid.two-col, .measurement-grid.three-col { grid-template-columns: 1fr; }
  .measure-help-grid { grid-template-columns: 1fr; }
  .shoe-match-main { grid-template-columns: 1fr; }
  .profile-actions .btn { flex: 1; padding: 11px 13px; }
  .profile-actions .form-msg { width: 100%; margin: 4px 0 0; }
  .panel { padding: 20px 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .upload-mode-switch { grid-template-columns: 1fr; }
  .result-meta { flex-wrap: wrap; }
  .result-meta select { width: 100%; margin-left: 0; }
  .bulk-edit-bar { bottom: 12px; width: calc(100vw - 24px); flex-wrap: wrap; gap: 8px; }
  .bulk-edit-bar-actions { width: 100%; justify-content: flex-end; }
  .bulk-edit-dialog { padding: 19px 16px; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .album-head { flex-direction: column; }
  .admin-box { max-width: none; width: 100%; }
  .album-info h1 { font-size: 19px; }
  .order-block { align-items: stretch; flex-direction: column; }
  .order-block .btn { width: 100%; padding: 12px; }
  .size-pick select, .size-pick input { width: 100%; }
  .cart-line { align-items: flex-start; }
  .cart-price { font-size: 14px; }
  .g-toggle { opacity: 1; }
  .lb-btn { width: 40px; height: 40px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ---------- order-complete screen ---------- */
.receipt-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 11, 14, 0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.receipt {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-radius: 22px;
  padding: 34px 30px 26px;
  width: min(94vw, 460px);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  text-align: center;
}
.r-close {
  position: absolute; top: 14px; right: 14px;
  border: 0; background: var(--bg); color: var(--ink-soft);
  width: 32px; height: 32px; border-radius: 50%; font-size: 14px;
}
.r-check {
  width: 74px; height: 74px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--price); color: #fff;
  font-size: 40px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px var(--price-soft);
  animation: r-pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes r-pop { from { scale: 0.3; opacity: 0; } to { scale: 1; opacity: 1; } }
.receipt h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: 0.3px; }
.r-sub { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 18px; }
.r-items { text-align: left; display: flex; flex-direction: column; }
.r-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.r-item:first-child { border-top: 1px solid var(--line); }
.r-thumb img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.r-item-body { flex: 1; min-width: 0; }
.r-item-title { font-weight: 700; font-size: 13.5px; }
.r-item-sub { color: var(--ink-soft); font-size: 12px; margin-top: 1px; }
.r-item-price { font-weight: 800; color: var(--price); font-size: 13.5px; white-space: nowrap; }
.r-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 4px; font-size: 16px;
}
.r-total b { font-size: 20px; color: var(--price); }
.r-foot { margin-top: 14px; color: var(--ink-faint); font-size: 12.5px; }

/* ---------- album edit (owner panel) ---------- */
.ab-hidden-note {
  background: rgba(224, 100, 86, 0.15); color: #ff9d92;
  font-size: 12px; font-weight: 700; padding: 6px 10px;
  border-radius: 8px; margin-bottom: 10px;
}
.ab-edit { border-top: 1px solid #2a2e38; margin-top: 14px; padding-top: 12px; }
.ab-edit h3 { margin-bottom: 8px; }
.ab-edit label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: #8a92a6; margin-bottom: 8px;
}
.ab-edit input,
.ab-edit select {
  display: block; width: 100%; margin-top: 4px;
  background: #0c0e13; border: 1px solid #2a2e38; border-radius: 8px;
  color: #e8eaef; padding: 8px 10px; font: inherit; font-size: 13px; outline: none;
}
.ab-edit input:focus,
.ab-edit select:focus { border-color: #5a6070; }
.ab-orig { font-size: 11.5px; color: #8a92a6; margin: -4px 0 8px; }
.ab-reset {
  border: 0; background: none; color: #7fb3ff; font-size: 11.5px;
  text-decoration: underline; padding: 0; margin-left: 4px;
}
.ab-edit-actions { display: flex; gap: 8px; margin-top: 4px; }
.card.album-hidden .thumb img { opacity: 0.35; }
.card.album-hidden .title { color: var(--ink-faint); }
.hidden-flag {
  position: absolute; left: 8px; top: 8px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 999px;
}

/* ---------- per-catalogue markup rows ---------- */
.per-cat { margin-top: 16px; }
.per-cat-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.per-cat-name { flex: 1; font-size: 14px; font-weight: 600; }
.per-cat-name .n { color: var(--ink-faint); font-weight: 500; font-size: 12px; }
.per-cat-row input {
  width: 90px; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font: inherit; background: var(--bg); color: var(--ink);
  text-align: right; outline: none;
}
.per-cat-row input:focus { border-color: var(--ink-soft); }
.per-cat-pct { color: var(--ink-faint); font-size: 13px; }
.per-cat-picker {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.9fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.per-cat-select-label {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.per-cat-select-label select {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}
.per-cat-select-label select:focus { border-color: var(--ink-soft); }
.per-cat-editor {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.per-cat-editor-label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
.per-cat-editor-label span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.per-cat-editor-label span:last-child {
  color: var(--ink-faint);
  font-size: 11.5px;
  font-weight: 500;
}
.per-cat-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.per-cat-input-wrap input {
  width: 78px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  text-align: right;
  outline: none;
}
.per-cat-input-wrap input:focus { border-color: var(--ink-soft); }
.per-cat-selection-hint { margin: 7px 2px 0; }

@media (max-width: 640px) {
  .per-cat-picker { grid-template-columns: 1fr; }
  .per-cat-editor { align-items: center; }
}

.per-brand { margin-top: 18px; }
.per-brand-picker {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) minmax(135px, 0.55fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--price-soft);
}
.per-brand-select-label,
.per-brand-input-label {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.per-brand-select-label select {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}
.per-brand-select-label select:focus { border-color: var(--ink-soft); }
.per-brand-input-wrap > div { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.per-brand-input-wrap input {
  width: 82px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  text-align: right;
  outline: none;
}
.per-brand-input-wrap input:focus { border-color: var(--ink-soft); }
.per-brand-selection-hint { margin: 7px 2px 0; }

@media (max-width: 640px) {
  .per-brand-picker { grid-template-columns: 1fr; }
}

/* ---------- premium design layer ---------- */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --ink: #17233f;
  --ink-soft: #5e6b85;
  --ink-faint: #8e9ab1;
  --line: #e2e7f0;
  --accent: #17233f;
  --accent-ink: #ffffff;
  --accent-strong: #536fe8;
  --accent-soft: #edf1ff;
  --price: #0c7b61;
  --price-soft: #e8f7f0;
  --danger: #c54747;
  --thumb-bg: #e9edf5;
  --topbar-bg: rgba(255, 255, 255, 0.9);
  --radius: 18px;
  --shadow: 0 8px 24px rgba(24, 40, 73, 0.07);
  --shadow-hover: 0 18px 38px rgba(24, 40, 73, 0.14);
}
html[data-theme="dark"] {
  --bg: #0d1424;
  --surface: #141e32;
  --surface-2: #1a2740;
  --ink: #f1f5ff;
  --ink-soft: #aab7d0;
  --ink-faint: #71809d;
  --line: #273653;
  --accent: #f1f5ff;
  --accent-ink: #10182a;
  --accent-strong: #88a1ff;
  --accent-soft: #1b2748;
  --price: #63d6ad;
  --price-soft: #122e2a;
  --danger: #f18a84;
  --thumb-bg: #1b2941;
  --topbar-bg: rgba(13, 20, 36, 0.9);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 18px 42px rgba(0, 0, 0, 0.42);
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-strong) 42%, transparent); outline-offset: 2px; }
.topbar { border-bottom-color: var(--line); box-shadow: 0 2px 18px rgba(24, 40, 73, 0.045); }
.topbar-inner { max-width: 1480px; padding: 14px 24px 0; gap: 0; display: block; }
.topbar-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand { font-size: 21px; letter-spacing: -0.25px; }
.brand .dot { background: var(--accent-strong); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-strong) 16%, transparent); }
.brand .muted { color: var(--accent-strong); letter-spacing: .5px; text-transform: uppercase; }
.search { max-width: 560px; flex: 1; }
.search input { border-radius: 12px; min-height: 44px; background: var(--surface-2); border-color: transparent; padding-left: 42px; color: var(--ink); transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.search input:focus { background: var(--surface); border-color: var(--accent-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-strong) 12%, transparent); }
.search .icon { left: 15px; font-size: 22px; color: var(--ink-soft); }
.search-suggestions { position: absolute; z-index: 90; top: calc(100% + 8px); left: 0; right: 0; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 24px 50px rgba(24, 40, 73, .16); }
.search-suggestions[hidden] { display: none; }
.search-suggestion, .search-history-item { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; padding: 8px; text-align: left; background: transparent; color: var(--ink); }
.search-suggestion:hover, .search-suggestion.is-active, .search-history-item:hover { background: var(--surface-2); }
.suggestion-thumb { width: 38px; height: 44px; flex: 0 0 38px; border-radius: 8px; overflow: hidden; background: var(--thumb-bg); }
.suggestion-thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggestion-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.suggestion-copy b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-copy small { overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-arrow { color: var(--accent-strong); font-size: 18px; }
.search-history-label { padding: 5px 9px 7px; color: var(--ink-faint); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.search-history-item { gap: 8px; padding: 9px; font-size: 13px; }
.search-history-item span { color: var(--accent-strong); }
.search-empty { padding: 15px 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.top-actions { gap: 8px; }
.nav-action { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 750; text-decoration: none; }
.nav-action:hover { border-color: var(--line); background: var(--surface-2); color: var(--ink); }
.nav-action-cart { color: var(--ink); }
.nav-action .badge { position: static; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: 10px; line-height: 18px; text-align: center; }
.primary-nav { display: flex; align-items: center; gap: 4px; min-height: 49px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.primary-nav::-webkit-scrollbar { display: none; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; align-self: stretch; padding: 13px 11px 11px; border-bottom: 2px solid transparent; color: var(--ink-soft); font-size: 12.5px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.nav-link:hover, .nav-link.active { border-bottom-color: var(--accent-strong); color: var(--ink); }
.nav-count { min-width: 17px; padding: 1px 5px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; text-align: center; }
.nav-count[hidden] { display: none; }
.nav-contact { margin-left: auto; color: var(--ink-faint); font-size: 11.5px; white-space: nowrap; }
.btn { min-height: 38px; border-radius: 11px; padding: 9px 14px; border-color: var(--line); background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 750; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.btn:hover { border-color: color-mix(in srgb, var(--accent-strong) 58%, var(--line)); box-shadow: 0 5px 14px rgba(24, 40, 73, .08); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-large { min-height: 46px; padding: 12px 18px; border-radius: 13px; }
.staff-view-button { border-color: color-mix(in srgb, var(--accent-strong) 30%, var(--line)); color: var(--accent-strong); }
.promo-banner { padding: 10px 18px; background: var(--accent); font-size: 11px; letter-spacing: 1.2px; }
.staff-view-banner { padding: 8px 18px; background: #8b4c16; font-size: 11px; letter-spacing: .7px; }
.wrap { max-width: 1480px; padding: 28px 24px 76px; }
.hero-modern { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr); align-items: end; gap: 44px; min-height: 360px; margin: 8px 0 50px; padding: 44px 48px; border-radius: 28px; background: var(--accent); color: #fff; overflow: hidden; position: relative; }
.hero-modern::after { content: ""; position: absolute; width: 360px; height: 360px; right: 4%; bottom: -220px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255,255,255,.035), 0 0 0 92px rgba(255,255,255,.025); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 700px; }
.eyebrow { display: block; color: var(--accent-strong); font-size: 10.5px; font-weight: 850; letter-spacing: 1.25px; text-transform: uppercase; }
.hero-modern .eyebrow { color: #b9c7ff; }
.hero-modern h1 { margin: 11px 0 15px; color: #fff; font-size: clamp(36px, 5.2vw, 68px); line-height: .98; letter-spacing: -2.8px; }
.hero-modern h1 em { color: #aebeff; font-style: normal; }
.hero-modern p { max-width: 590px; margin: 0; color: #c7d1e9; font-size: 15px; line-height: 1.65; }
.hero-modern p b { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-modern .btn.primary { background: #fff; border-color: #fff; color: var(--accent); }
.hero-modern .btn:not(.primary) { border-color: rgba(255,255,255,.23); background: transparent; color: #fff; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 23px; color: #a9b8d7; font-size: 11px; }
.hero-note-dot { width: 7px; height: 7px; border-radius: 50%; background: #7ee2c0; box-shadow: 0 0 0 4px rgba(126,226,192,.16); }
.hero-stats { position: relative; z-index: 1; display: grid; gap: 10px; }
.hero-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stat:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.hero-stat strong { color: #fff; font-size: 27px; letter-spacing: -1px; }
.hero-stat span { color: #a9b8d7; font-size: 11px; text-align: right; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.6px; }
.text-link { color: var(--accent-strong); font-size: 12.5px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.browse-section, .featured-section, .related-section { margin-top: 28px; }
.brand-grid { gap: 16px; }
.shop-section-grid { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.brand-card { border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 5px 18px rgba(24,40,73,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.brand-card:hover { border-color: color-mix(in srgb, var(--accent-strong) 46%, var(--line)); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.brand-card .thumb { aspect-ratio: 1.32 / 1; background: var(--thumb-bg); }
.brand-card .thumb img { transition: transform .35s ease; }
.brand-card:hover .thumb img { transform: scale(1.045); }
.brand-card .body { padding: 15px 16px 16px; }
.brand-card .name { font-size: 15px; letter-spacing: -.15px; }
.brand-card .meta { font-size: 11.5px; line-height: 1.55; }
.section-kicker { padding: 5px 9px; border-radius: 999px; background: rgba(12, 18, 34, .68); color: #fff; font-size: 9px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.card-placeholder { display: grid; place-items: center; height: 100%; color: var(--accent-strong); font-size: 40px; }
.coming-soon { margin-top: 48px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.compact-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
.card { position: relative; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 5px 18px rgba(24,40,73,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { translate: 0; transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-strong) 42%, var(--line)); box-shadow: var(--shadow-hover); }
.card .thumb { aspect-ratio: 4 / 5; }
.card .body { padding: 13px 14px 15px; gap: 5px; }
.card .cat { color: var(--accent-strong); font-size: 9.5px; letter-spacing: .8px; }
.card .title { font-size: 13.5px; line-height: 1.35; }
.card .price { font-size: 15px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 18px; }
.card-tags span { padding: 2px 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); font-size: 9px; font-weight: 750; }
.new-flag { position: absolute; left: 9px; top: 9px; padding: 4px 7px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: 9px; font-weight: 850; letter-spacing: .4px; text-transform: uppercase; }
.card-actions { position: absolute; right: 9px; top: 9px; z-index: 8; display: flex; align-items: center; gap: 5px; opacity: 0; transform: translateY(-3px); transition: opacity .18s ease, transform .18s ease; }
.card-select-wrap:hover .card-actions, .card-select-wrap:focus-within .card-actions { opacity: 1; transform: translateY(0); }
.card-favourite, .card-quick-edit { min-height: 30px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 5px 9px; background: rgba(16, 24, 43, .78); color: #fff; font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
.card-favourite span:first-child { font-size: 15px; line-height: 0; }
.card-favourite.is-saved { background: var(--accent-strong); border-color: var(--accent-strong); }
.card-quick-edit { color: #fff; }
.product-page { padding-top: 22px; }
.product-crumb { margin-bottom: 18px; }
.product-overview { display: grid; grid-template-columns: minmax(310px, .86fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: start; }
.product-media { position: sticky; top: 116px; }
.product-media-trigger { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--thumb-bg); box-shadow: var(--shadow); cursor: zoom-in; }
.product-media-trigger img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; transition: transform .45s ease; }
.product-media-trigger:hover img { transform: scale(1.025); }
.media-expand, .media-count { position: absolute; bottom: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(15, 24, 42, .72); color: #fff; font-size: 11px; font-weight: 800; backdrop-filter: blur(7px); }
.media-expand { left: 14px; font-size: 17px; line-height: 1; }
.media-count { right: 14px; }
.product-media-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.product-media-actions .btn.is-saved { border-color: var(--accent-strong); background: var(--accent-soft); color: var(--accent-strong); }
.album-info { max-width: 700px; }
.album-info h1 { margin-top: 9px; font-size: clamp(28px, 4vw, 47px); line-height: 1.02; letter-spacing: -1.6px; }
.album-price { margin-top: 16px; font-size: 25px; }
.price-note { margin-top: 14px; }
.gallery-section { margin-top: 42px; }
.gallery-hint { color: var(--ink-faint); font-size: 11.5px; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.g-tile { border-radius: 14px; }
.g-img { border-radius: 14px; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.g-img:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.related-section { margin-top: 54px; }
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 30px 0 8px; }
.load-more-note { color: var(--ink-faint); font-size: 11px; }
.result-showing { color: var(--ink-faint); font-size: 11px; font-weight: 500; }
.admin-overview { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-overview-copy h1 { margin: 5px 0 7px; font-size: 34px; letter-spacing: -1.3px; }
.admin-overview-copy p { max-width: 550px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.admin-overview-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.admin-stat { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.admin-stat span, .admin-stat small { display: block; color: var(--ink-soft); font-size: 10.5px; }
.admin-stat strong { display: block; margin: 6px 0 2px; font-size: 26px; letter-spacing: -1px; }
.admin-stat small { color: var(--ink-faint); line-height: 1.35; }
.admin-tool-nav { display: flex; gap: 5px; margin: 20px 0 -3px; overflow-x: auto; scrollbar-width: none; }
.admin-tool-nav::-webkit-scrollbar { display: none; }
.admin-tool-nav a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.admin-tool-nav a:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.admin-section { scroll-margin-top: 130px; }
.quick-edit-backdrop { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(8, 13, 27, .68); backdrop-filter: blur(8px); }
.quick-edit-dialog { width: min(94vw, 650px); max-height: 92vh; overflow: auto; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 30px 90px rgba(8,13,27,.42); }
.quick-edit-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.quick-edit-head h2 { max-width: 470px; margin: 6px 0 0; font-size: 22px; letter-spacing: -.5px; }
.dialog-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 22px; line-height: 1; }
.quick-edit-help { margin: 10px 0 18px; color: var(--ink-soft); font-size: 12.5px; }
.quick-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.quick-edit-grid label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.quick-edit-grid input, .quick-edit-grid select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 13px; outline: none; }
.quick-edit-wide, .quick-edit-check { grid-column: 1 / -1; }
.quick-edit-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; color: var(--ink) !important; font-size: 12px !important; text-transform: none !important; }
.quick-edit-check input { width: 17px; min-height: 17px; }
.quick-edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; }
.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); pointer-events: none; }
.toast { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 30px rgba(24,40,73,.18); color: var(--ink); font-size: 12.5px; font-weight: 750; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-success { border-color: color-mix(in srgb, var(--price) 38%, var(--line)); }
.toast-error { border-color: color-mix(in srgb, var(--danger) 42%, var(--line)); color: var(--danger); }
.toast-neutral { color: var(--ink-soft); }
@media (hover: none) { .card-actions { opacity: 1; transform: none; } }
@media (max-width: 850px) { .hero-modern { grid-template-columns: 1fr; min-height: 0; gap: 25px; padding: 32px; } .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; } .hero-stat { display: block; padding: 12px 0; } .hero-stat span { display: block; margin-top: 3px; text-align: left; } .product-overview { grid-template-columns: 1fr; gap: 25px; } .product-media { position: static; } .product-media-trigger img { aspect-ratio: 1.25 / 1; } .admin-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .topbar-inner { padding: 10px 14px 0; } .topbar-main { flex-wrap: wrap; gap: 9px; } .brand { order: 1; } .top-actions { order: 2; margin-left: auto; } .search { order: 3; flex-basis: 100%; max-width: none; } .primary-nav { margin-top: 8px; min-height: 44px; } .nav-link { padding: 10px 9px 9px; font-size: 11.5px; } .nav-contact { display: none; } .hide-xs, .staff-view-button { display: none; } .wrap { padding: 22px 14px 64px; } .hero-modern { margin-top: 0; margin-bottom: 34px; padding: 27px 22px; border-radius: 22px; } .hero-modern h1 { font-size: clamp(35px, 12vw, 54px); letter-spacing: -1.9px; } .hero-modern p { font-size: 13px; } .hero-stats { grid-template-columns: 1fr; gap: 0; } .hero-stat { display: flex; justify-content: space-between; } .hero-stat span { margin-top: 0; text-align: right; } .section-heading h2 { font-size: 20px; } .shop-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .brand-card .body { padding: 12px; } .brand-card .name { font-size: 13px; } .section-desc { display: none; } .grid, .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .card .body { padding: 10px 10px 12px; } .card .title { font-size: 12.5px; } .card-actions { right: 6px; top: 6px; } .card-favourite { width: 30px; height: 30px; padding: 0; font-size: 0; } .card-favourite span:first-child { font-size: 17px; } .favourite-label, .card-quick-edit { display: none; } .item-select { top: 45px; right: 6px; } .admin-overview { display: block; } .admin-overview-actions { margin-top: 15px; } .admin-overview-actions .btn { flex: 1; } .admin-stat-grid { gap: 8px; } .admin-stat { padding: 12px; } .admin-stat strong { font-size: 22px; } .quick-edit-grid { grid-template-columns: 1fr; } .quick-edit-wide, .quick-edit-check { grid-column: auto; } .quick-edit-actions .btn { flex: 1; } .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .toast-region { right: 12px; bottom: 12px; width: calc(100vw - 24px); } }
@media (max-width: 380px) { .top-actions .nav-action { padding-inline: 6px; font-size: 11px; } .hero-actions { flex-direction: column; } .hero-actions .btn { width: 100%; } .shop-section-grid { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* App shell, keyboard access, and expanded admin batch editor */
.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  translate: 0 -160%;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--bg);
  background: var(--text);
  font-weight: 800;
  transition: translate .18s ease;
}
.skip-link:focus { translate: 0; }
.app-loading {
  min-height: 62vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
  letter-spacing: .04em;
}
.loading-mark {
  width: 30px;
  height: 30px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: collection-spin .8s linear infinite;
}
@keyframes collection-spin { to { rotate: 360deg; } }
.bulk-edit-dialog { width: min(920px, calc(100vw - 32px)); max-height: min(88vh, 880px); overflow: auto; }
.bulk-edit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bulk-edit-field { margin: 0; }
.bulk-edit-field.wide { grid-column: 1 / -1; }
.bulk-edit-field input:not([type="checkbox"]),
.bulk-edit-field textarea,
.bulk-edit-field select { width: 100%; }
.admin-section[id] { scroll-margin-top: 126px; }
@media (max-width: 640px) {
  .bulk-edit-fields { grid-template-columns: 1fr; }
  .bulk-edit-field.wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .loading-mark { animation-duration: 1.8s; } }
/* Readability pass: stronger text hierarchy and a dedicated staff control */
:root {
  --ink-soft: #43516a;
  --ink-faint: #596780;
  --accent-strong: #3f5ed9;
  --price: #08704f;
  --text: var(--ink);
  --muted: var(--ink-soft);
  --line-strong: #b6c1d1;
  --hero-bg: #17233f;
  --hero-ink: #ffffff;
}
html[data-theme="dark"] {
  --ink-soft: #c2cde3;
  --ink-faint: #a8b7d1;
  --accent-strong: #9cafFF;
  --price: #68e0b7;
  --text: var(--ink);
  --muted: var(--ink-soft);
  --line-strong: #52698f;
  --hero-bg: #24355a;
  --hero-ink: #f7faff;
}
body { color: var(--ink); }
::placeholder { color: var(--ink-faint); opacity: 1; }
.hero-modern { background: var(--hero-bg); color: var(--hero-ink); }
.hero-modern .btn.primary { color: var(--hero-bg); }
.staff-view-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: #b45309;
  background: #fff8ed;
  color: #8a4b09;
}
.staff-view-button:hover { border-color: #92400e; background: #ffedd5; color: #78350f; }
.staff-view-button.staff-view-active { border-color: #b45309; background: #b45309; color: #ffffff; }
.staff-label {
  padding: 3px 6px;
  border-radius: 999px;
  background: #b45309;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.staff-view-button.staff-view-active .staff-label { background: rgba(255,255,255,.2); }
html[data-theme="dark"] .staff-view-button {
  border-color: #f59e0b;
  background: #3b2713;
  color: #ffd28a;
}
html[data-theme="dark"] .staff-view-button:hover { border-color: #fbbf24; background: #4a3014; color: #ffe5b3; }
html[data-theme="dark"] .staff-view-button.staff-view-active { border-color: #f59e0b; background: #b45309; color: #ffffff; }
@media (max-width: 720px) {
  .staff-view-button { display: inline-flex; min-height: 34px; padding: 7px 8px; }
}
@media (max-width: 380px) {
  .staff-view-button { gap: 4px; padding-inline: 6px; }
  .staff-label { padding-inline: 4px; font-size: 8px; }
}

/* Easy organiser */
.organiser-section { background: linear-gradient(145deg, var(--panel), var(--surface)); }
.organiser-heading,
.organiser-order-head,
.organiser-product-toolbar,
.organiser-destination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.organiser-heading { margin-bottom: 8px; }
.organiser-heading h2,
.organiser-order-head h3 { margin: 0; }
.organiser-order-head > span,
.organiser-order-head > div > span { color: var(--muted); font-size: 12px; }
.organiser-order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.organiser-order-panel,
.organiser-product-mover { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 15px; }
.organiser-order-list { display: grid; gap: 8px; margin-top: 12px; max-height: 420px; overflow: auto; padding-right: 2px; }
.organiser-order-card {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 9px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: grab; transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.organiser-order-card:hover,
.organiser-order-card.drag-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.organiser-order-card.is-dragging { opacity: .55; transform: scale(.99); }
.organiser-drag-handle { color: var(--muted); letter-spacing: -3px; width: 18px; }
.organiser-order-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.organiser-order-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.organiser-order-copy small { color: var(--muted); font-size: 11px; }
.organiser-order-actions { display: flex; gap: 4px; }
.organiser-order-actions button {
  width: 29px; height: 29px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 800;
}
.organiser-order-actions button:hover { border-color: var(--accent); color: var(--accent); }
.organiser-product-mover { margin-top: 14px; }
.organiser-mover-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.organiser-mover-filters label,
.organiser-destination label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.organiser-mover-filters input,
.organiser-mover-filters select,
.organiser-destination select { min-height: 39px; }
.organiser-product-toolbar { margin: 12px 0 8px; color: var(--muted); font-size: 12px; }
.organiser-product-list { display: grid; gap: 6px; max-height: 370px; overflow: auto; padding: 2px; }
.organiser-product-row {
  display: grid; grid-template-columns: auto 38px minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 7px 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
  cursor: pointer;
}
.organiser-product-row:hover,
.organiser-product-row.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.organiser-product-row input { accent-color: var(--accent); }
.organiser-product-row img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: var(--line); }
.organiser-product-row span { min-width: 0; display: grid; gap: 2px; }
.organiser-product-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.organiser-product-row small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.organiser-product-empty { padding: 22px 8px; color: var(--muted); text-align: center; }
.organiser-destination { align-items: end; margin-top: 14px; flex-wrap: wrap; }
.organiser-destination label { flex: 1 1 210px; }
.organiser-destination .btn { min-height: 39px; }
html[data-theme="dark"] .organiser-order-card,
html[data-theme="dark"] .organiser-product-row { background: #17233d; }
@media (max-width: 820px) {
  .organiser-order-grid { grid-template-columns: 1fr; }
  .organiser-mover-filters { grid-template-columns: 1fr 1fr; }
  .organiser-mover-filters label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .organiser-heading,
  .organiser-order-head,
  .organiser-product-toolbar { align-items: flex-start; flex-direction: column; }
  .organiser-mover-filters { grid-template-columns: 1fr; }
  .organiser-mover-filters label:first-child { grid-column: auto; }
  .organiser-destination { align-items: stretch; flex-direction: column; }
  .organiser-destination label,
  .organiser-destination .btn { width: 100%; }
}