/* ==========================================================================
   开放货盘 · 白、雾灰与浅蓝主题
   ========================================================================== */

:root {
  --canvas: #f4f7fb;
  --surface: #ffffff;
  --media: #edf2f8;
  --subtle: #f5f7fa;
  --ink: #203249;
  --secondary: #364c65;
  --muted: #52657c;
  --soft: #60738a;
  --line: #dce5f0;
  --line-soft: #eaf0f7;
  --control: #c3d0df;
  --control-hover: #8298b3;

  --positive: #325781;
  --positive-bg: #edf4ff;
  --amber: #874f0b;
  --amber-bg: #fff5ea;
  --red: #b52f24;
  --red-bg: #fff4f4;

  --catalog-accent: #325783;
  --catalog-accent-hover: #294b74;
  --catalog-accent-active: #213f65;
  --catalog-tint: #edf4ff;
  --catalog-edge: #bacde6;
  --action-fill: #dceafb;
  --action-hover: #cedff6;
  --action-active: #c1d6ef;
  --focus-line: #4d6d96;
  --workspace-canvas: #f0f4fa;
  --sidebar-bg: #f9fbfe;
  --catalog-white: #ffffff;

  --overlay: rgb(30 47 69 / 45%);
  --shadow-xs: 0 1px 2px rgb(28 48 74 / 5%);
  --shadow-card: 0 1px 3px rgb(28 48 74 / 7%);
  --shadow-hover: 0 8px 22px rgb(28 48 74 / 12%);
  --shadow: 0 12px 32px rgb(28 48 74 / 13%), 0 2px 6px rgb(28 48 74 / 5%);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Typography & Layout */
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", "Cascadia Mono", ui-monospace, SFMono-Regular, monospace;
  --wrap: 1380px;
  --gutter: 32px;
  --row: 20px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}
body {
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled {
  cursor: not-allowed;
  color: var(--soft) !important;
  background: var(--subtle) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
  opacity: 0.75;
}
a { color: inherit; text-decoration: none; transition: color 150ms ease; }
a:hover { text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; letter-spacing: -0.02em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.25; font-weight: 700; color: var(--ink); }
h2 { font-size: 16px; line-height: 1.35; font-weight: 650; color: var(--ink); }
small { font-size: 12.5px; }
form, fieldset { min-width: 0; }

/* Form controls */
label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--control);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 150ms ease, background-color 150ms ease;
}
input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
  border-color: var(--control-hover);
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--focus-line);
  box-shadow: none;
}
input::placeholder, textarea::placeholder { color: var(--soft); }
select {
  appearance: auto;
  padding-inline-end: 8px;
}
input[type="radio"] { accent-color: var(--catalog-accent); }
input[type="checkbox"] {
  accent-color: var(--catalog-accent);
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 4px;
  cursor: pointer;
}
input[type="file"] { overflow: hidden; padding: 6px 10px; font-size: 13px; }
textarea { resize: vertical; line-height: 1.6; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--focus-line); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Utilities */
.wrap { width: 100%; max-width: var(--wrap); padding-inline: var(--gutter); margin-inline: auto; }
.mono, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted, small { color: var(--muted); }
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
.block { display: block; margin-top: 4px; overflow-wrap: anywhere; max-width: 48ch; }
.sr, .skip:not(:focus) {
  position: absolute; inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; z-index: 90; top: 10px; left: 10px;
  background: var(--ink); color: var(--surface);
  padding: 8px 14px; border-radius: var(--radius-md);
}

/* ==========================================================================
   Button hierarchy
   ========================================================================== */
.plain, .button {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--control);
  border-radius: var(--radius-md);
  min-height: 36px;
  min-width: 36px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 80ms ease;
}
.button:hover {
  background: var(--subtle);
  border-color: var(--control-hover);
}
.plain {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-weight: 500;
}
.plain:hover {
  background: rgb(0 0 0 / 5%);
  border-color: transparent;
}
.plain:not(:disabled):active, .button:not(:disabled):active {
  transform: translateY(1px);
}
.primary {
  background: var(--action-fill);
  color: var(--catalog-accent-active);
  border-color: var(--catalog-edge);
  box-shadow: none;
}
.primary:hover {
  background: var(--action-hover);
  border-color: var(--control-hover);
  color: var(--catalog-accent-active);
}
.primary:active {
  background: var(--action-active);
}

/* ==========================================================================
   Storefront header and search
   ========================================================================== */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  width: fit-content;
  min-height: 40px;
  letter-spacing: -0.02em;
}
.wordmark span { font-size: 17px; }
.wordmark svg { width: 22px; height: 22px; }
.top-actions { justify-self: end; display: flex; gap: 4px; }
.top-actions .plain { padding-inline: 10px; }

kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--subtle);
  font-size: 11px;
  padding: 1px 5px;
  color: var(--muted);
}

.catalog-top { background: var(--surface); }
.catalog-top .top-row {
  min-height: 74px;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 680px) minmax(130px, 1fr);
  gap: clamp(12px, 3vw, 32px);
}
.catalog-top .wordmark svg { color: var(--catalog-accent); }

.global-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--subtle);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.global-search:focus-within {
  background: var(--surface);
  border-color: var(--control-hover);
}
.search-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding-inline-start: 12px;
}
.search-entry svg { color: var(--soft); width: 17px; height: 17px; }
.global-search:focus-within .search-entry svg { color: var(--catalog-accent); }
.search-entry input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 36px;
  padding: 6px 4px;
  font-size: 14px;
}
.global-search button {
  padding-inline: 14px;
  min-height: 34px;
  border-radius: var(--radius-pill);
  font-size: 13px;
}
.global-search .exact-search {
  color: var(--catalog-accent);
  border-color: transparent;
  background: var(--catalog-tint);
  box-shadow: none;
}
.global-search .exact-search:hover {
  background: var(--action-hover);
  border-color: transparent;
}
.global-search .secondary {
  border-color: transparent;
  background: var(--surface);
  color: var(--secondary);
}
.global-search .secondary:hover {
  background: var(--media);
}

.catalog-link {
  justify-self: end;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--secondary);
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}
.catalog-link:hover {
  background: var(--subtle);
  color: var(--ink);
}
.catalog-link svg { width: 15px; transition: transform 150ms ease; }
.catalog-link:hover svg { transform: translateX(2px); }

/* Desktop Nav / Mega Menu (Fallback compatibility) */
.desktop-nav, .nav-item { display: flex; align-items: stretch; }
.desktop-nav a { display: flex; align-items: center; min-height: 64px; padding: 0 16px; font-weight: 500; }
.desktop-nav .mega {
  display: none; position: absolute; z-index: 1; inset-inline: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.nav-item:hover .mega, .nav-item:focus-within .mega { display: block; }
.mega-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 24px; gap: var(--row); }
.mega-columns a { padding: 8px 0; min-height: 38px; }
.mobile-only { display: none; }

/* ==========================================================================
   Storefront Main Catalog & Pill Filters
   ========================================================================== */
.catalog-main { padding-block: 28px 20px; }

.catalog-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
}
.catalog-list-head h1 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.catalog-list-head > span, .search-summary { color: var(--muted); font-size: 13.5px; }
.catalog-list-head > span {
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
}
.search-summary { margin-top: 4px; overflow-wrap: anywhere; }

/* Filter Card - Modern Pill Facets (No ugly 2010 table grid) */
.catalog-filters {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 6px 20px;
  margin-bottom: 24px;
  border: 0;
}
.facet-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line-soft);
}
.facet-row:last-of-type { border-bottom: 1px solid var(--line-soft); }
.facet-label {
  color: var(--muted);
  background: transparent;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.facet-options {
  padding-inline: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  align-content: start;
}
.facet-options > a {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  min-height: 31px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--secondary);
  background: transparent;
  transition: background-color 140ms ease, color 140ms ease;
}
.facet-options > a:hover {
  background: var(--subtle);
  color: var(--ink);
}
.facet-options > a[aria-current] {
  background: var(--catalog-tint);
  color: var(--catalog-accent);
  text-decoration: none;
  font-weight: 600;
}

.facet-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  width: 100%;
  padding: 4px 0;
}
.facet-fields > label { min-width: 110px; max-width: 180px; }

.catalog-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 8px;
}
.sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.catalog-sort .sort select, .sort select {
  border: 1px solid var(--line);
  background-color: var(--subtle);
  border-radius: var(--radius-pill);
  min-height: 34px;
  padding: 4px 32px 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  width: auto;
}
.catalog-sort .sort select:hover { background-color: var(--media); border-color: var(--control); }
.catalog-sort .selected-tags { margin: 0; align-items: center; }

.selected-tags { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; align-items: center; }
.selected-tags > a:last-child:not(.tag) {
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 8px;
}
.selected-tags > a:last-child:not(.tag):hover { color: var(--red); }
.tag {
  border: 1px solid var(--catalog-edge);
  background: var(--catalog-tint);
  color: var(--catalog-accent);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 550;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
}
.tag:hover { background: var(--action-hover); }

/* ==========================================================================
   Storefront Product Grid & Cards (Shopify Dawn Card Polish)
   ========================================================================== */
.section { padding-block: 36px; }
.section-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; white-space: nowrap; color: var(--catalog-accent); font-weight: 550; }
.link-arrow:hover { color: var(--catalog-accent-hover); }

.category-grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--row);
}
.catalog-main .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 18px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.product-card > a { display: block; height: 100%; }
.picture {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--media);
  overflow: hidden;
}
.catalog-main .picture { aspect-ratio: 1; border-radius: 0; }
.picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease-out;
}
.picture .alternate { position: absolute; inset: 0; opacity: 0; }
.placeholder {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 8px; color: var(--soft); font-size: 13px;
}

.product-card h3 {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin: 12px 14px 4px;
  line-height: 1.4;
}
.catalog-main .product-card h3 {
  margin: 12px 14px 4px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.card-details {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  height: 20px;
  padding-inline: 14px;
}
.card-details span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-details span + span { border-inline-start: 1px solid var(--line); padding-inline-start: 6px; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 14px;
  font-size: 12.5px;
  color: var(--soft);
}
.catalog-main .product-meta { padding: 8px 14px 14px; min-height: 36px; }
.price { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.catalog-main .price { color: var(--ink); font-size: 15px; }

/* Category Cards & Hero (Fallback pages) */
.catalog-hero {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  margin: 28px 0 12px; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.hero-main { padding: clamp(32px, 5vw, 64px); }
.hero-main h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.04em; }
.hero-main p { color: var(--secondary); margin: 14px 0 28px; font-size: 15.5px; }
.catalog-index { padding: 28px clamp(20px, 3vw, 40px); background: var(--subtle); align-content: center; border-inline-start: 1px solid var(--line-soft); }
.index-heading { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.catalog-index > a { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); min-height: 44px; }
.catalog-index > a:last-child { border-bottom: 0; }
.catalog-index .index-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; margin-top: 12px; padding: 8px 0; }
.index-main strong { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -0.05em; color: var(--catalog-accent); }
.category-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; display: block; }
.category-card .picture { aspect-ratio: 4 / 3; }
.category-card > div:last-child { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; font-weight: 600; }

/* Empty State */
.empty {
  background: var(--surface);
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 20px;
}
.catalog-main .empty { background: var(--surface); min-height: 280px; }
.empty svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--subtle);
  color: var(--soft);
}
.empty p { font-size: 14.5px; font-weight: 500; color: var(--secondary); }

/* Pagination */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 28px 0 12px; flex-wrap: wrap; }
.pagination a {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding-inline: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--secondary);
  transition: background-color 140ms ease, border-color 140ms ease;
}
.pagination a:hover { background: var(--subtle); border-color: var(--control); color: var(--ink); }
.pagination [aria-current] {
  background: var(--catalog-accent);
  border-color: var(--catalog-accent);
  color: var(--surface);
  font-weight: 600;
}

/* ==========================================================================
   Storefront Product Detail Page
   ========================================================================== */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 34px; color: var(--secondary); }
.breadcrumbs a:hover { color: var(--catalog-accent); }
.detail-breadcrumb { margin: 20px 0 16px; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.gallery { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery > :first-child { grid-column: span 2; }
.gallery-item {
  border: 0; background: var(--surface); padding: 0; cursor: zoom-in;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.product-video {
  width: 100%; max-height: 480px; grid-column: span 2;
  background: var(--ink); border-radius: var(--radius-lg);
}

.details {
  position: sticky;
  top: 96px;
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.details h1 { font-size: clamp(22px, 2.5vw, 28px); margin-bottom: 6px; }
.details h2 { font-size: 15px; margin: 24px 0 10px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.details > .price { font-size: 24px; font-weight: 700; color: var(--catalog-accent); margin: 12px 0 20px; }
.sku-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.sku-line .plain { min-height: 28px; padding: 3px 10px; font-size: 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); }

.choices { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--secondary); }
.choices .button { border-radius: var(--radius-pill); padding: 6px 16px; min-height: 36px; }
.choices button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.variant-status:not(:empty) {
  background: var(--catalog-tint);
  color: var(--catalog-accent);
  border: 1px solid var(--catalog-edge);
  border-radius: var(--radius-md);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 13px;
}
.specs { margin: 0; font-size: 13.5px; }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 9px 0; }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.description { color: var(--secondary); line-height: 1.7; }
.detail-photos .picture { max-width: 760px; aspect-ratio: auto; border-radius: var(--radius-lg); margin-bottom: 12px; }
.detail-photos img { height: auto; }

/* ==========================================================================
   Storefront Footer
   ========================================================================== */
.footer {
  margin-top: 64px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding: 44px 0 56px;
}
.footer-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.footer .wordmark svg { color: var(--catalog-accent); }
.footer p { color: var(--muted); margin: 10px 0 0; font-size: 13.5px; max-width: 34ch; }
.footer nav { display: grid; justify-content: start; align-content: start; gap: 2px; }
.footer nav a, .mobile-links a {
  display: flex; align-items: center; min-height: 36px;
  font-size: 13.5px; color: var(--secondary);
}
.footer nav a:hover { color: var(--catalog-accent); }

/* ==========================================================================
   Dialogs & Lightbox
   ========================================================================== */
dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100% - 32px);
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: var(--overlay); backdrop-filter: blur(2px); }
.dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.command { margin-top: min(104px, 10vh); }
.quick-results { margin-top: 12px; }
.quick-results a { display: flex; align-items: center; min-height: 44px; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.mobile-links { display: grid; }

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  padding: 16px; border: 0; border-radius: 0;
  background: rgb(18 18 18 / 96%); color: var(--surface);
}
.lightbox-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.lightbox button { color: var(--surface); }
.lightbox button:hover { background: rgb(255 255 255 / 14%); }
.lightbox :focus-visible { outline-color: var(--surface); }
.lightbox img { margin: 0 auto; max-height: calc(100% - 60px); object-fit: contain; cursor: zoom-in; border-radius: var(--radius-sm); }
.lightbox img.zoomed { max-height: none; width: min(1800px, 100%); cursor: zoom-out; }

.error-page { padding-block: 80px; text-align: center; }
.error-page h1 { margin: 12px 0 24px; }

/* ==========================================================================
   Administration workspace
   ========================================================================== */
.admin {
  background: var(--workspace-canvas);
  color: var(--ink);
}

/* Administration header */
.admin-head {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 56px;
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}
.admin-head .wordmark { color: var(--ink); }
.admin-head .wordmark svg { color: var(--catalog-accent); }
.admin-head > div { display: flex; align-items: center; gap: 6px; }
.admin-head > div > a,
.admin-head .plain,
.admin-tools summary {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 140ms ease, color 140ms ease;
}
.admin-head > div > a:hover,
.admin-head .plain:hover,
.admin-tools summary:hover {
  background: var(--catalog-tint);
  color: var(--catalog-accent-active);
}
.admin-tools { position: relative; }
.admin-tools summary { list-style: none; }
.admin-tools summary::-webkit-details-marker { display: none; }
.admin-tools summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
  opacity: 0.75;
}
.admin-tools nav {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 156px;
  z-index: 40;
  display: grid;
  padding: 6px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
}
.admin-tools nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
}
.admin-tools nav a:hover { background: var(--subtle); color: var(--catalog-accent); }

/* Polaris Sidebar + Centered Fluid Workspace (Fixes right-side dead space!) */
.admin-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
  flex: 1 0 auto;
}
.admin-layout aside {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
}
.admin-layout aside nav {
  display: grid;
  gap: 4px;
  position: sticky;
  top: 72px;
}
.admin-layout aside a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: var(--radius-md);
  border-left: 0;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--secondary);
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.admin-layout aside a:hover {
  background: var(--media);
  color: var(--ink);
}
.admin-layout aside a[aria-current] {
  background: var(--catalog-tint);
  color: var(--catalog-accent-active);
  font-weight: 650;
  box-shadow: inset 3px 0 var(--catalog-edge);
}

/* Workspace - Properly centered and proportioned on wide screens */
#workspace {
  padding: clamp(20px, 2.5vw, 32px) clamp(20px, 3vw, 40px);
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  min-width: 0;
}

.work-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.work-heading h1, .sign-in h1 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}
.work-heading p { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.work-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Polaris Floating Cards (.panel) */
.panel {
  background: var(--surface);
  padding: clamp(16px, 2vw, 24px);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 0 0 20px;
  min-width: 0;
}
.panel h2 { margin-bottom: 12px; font-size: 15.5px; font-weight: 650; }
.panel > .section-head h2 { margin-bottom: 0; }
.panel > .muted { margin: 8px 0; }
.stack { display: grid; gap: 16px; }
.stack > .panel { margin: 0; }

/* Inventory Panel & Filter Bar */
.inventory { padding: 0 20px 16px; }
.inventory-head {
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inventory-head h2 { margin: 0; font-size: 15.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.inventory-head h2 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--catalog-tint);
  color: var(--catalog-accent);
  font-size: 12px;
  font-weight: 650;
}

.row-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.row-form label { min-width: min(180px, 100%); flex: 1 1 180px; max-width: 340px; }

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--subtle);
  border-radius: var(--radius-md);
}
.bulk-bar > label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline-end: 8px;
  color: var(--ink);
  cursor: pointer;
}
.bulk-bar .button { min-height: 32px; padding: 4px 12px; font-size: 13px; }

/* Polaris Data Tables */
.table-scroll {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; }
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
  vertical-align: middle;
}
th {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--subtle);
  white-space: nowrap;
}
.inventory .table-scroll th { background: var(--subtle); }
tbody tr { transition: background-color 120ms ease; }
tbody tr:hover { background: var(--subtle); }
tbody tr:last-child td { border-bottom: 0; }
.table-empty { text-align: center; padding: 64px 16px; color: var(--soft); font-size: 14px; }
.inventory .table-empty { padding-block: 80px; }
.table-scroll a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--catalog-accent);
  font-weight: 550;
}
.table-scroll a:hover { text-decoration: underline; text-underline-offset: 3px; }

.merchandise { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.merchandise img, .merch-placeholder {
  width: 48px; height: 48px; object-fit: cover;
  background: var(--media); border-radius: var(--radius-md);
  border: 1px solid var(--line-soft); flex: none;
}
.merchandise small { display: block; margin-top: 2px; color: var(--muted); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--subtle);
  color: var(--secondary);
  white-space: nowrap;
}
.badge.success { background: var(--positive-bg); color: var(--positive); }
.badge.warn { background: var(--amber-bg); color: var(--amber); }

/* ==========================================================================
   Category Browser
   ========================================================================== */
.category-browser {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.category-column {
  min-width: 0;
  min-height: 300px;
  max-height: 440px;
  overflow-y: auto;
  border-inline-end: 1px solid var(--line-soft);
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.category-column:last-child { border-inline-end: 0; }
.category-column::-webkit-scrollbar { width: 6px; }
.category-column::-webkit-scrollbar-track { background: transparent; }
.category-column::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
.category-column::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.category-column .button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 7px 12px;
  margin-bottom: 2px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  white-space: normal;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.category-column .button:hover { background: var(--subtle); }
.category-column .button[aria-pressed="true"] {
  background: var(--catalog-tint);
  color: var(--catalog-accent);
  font-weight: 650;
}
.category-column .new-category {
  margin-top: 8px;
  padding-top: 10px;
  border-radius: 0;
  border-block-start: 1px solid var(--line-soft);
  color: var(--catalog-accent);
  font-weight: 600;
}
.category-hint, .category-column > p { color: var(--soft); padding: 16px; font-size: 13px; }
.category-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.category-next p { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ==========================================================================
   Product Editor, Forms, Media Upload & Import Wizard
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel > .form-grid + label, .panel > label + .form-grid { margin-top: 14px; }
.generator { align-items: end; margin-bottom: 16px; }
.check-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 38px; }
.check-row label { display: flex; align-items: center; gap: 8px; min-height: 38px; color: var(--ink); cursor: pointer; }
.form-error, .status, .danger-text { color: var(--red); font-size: 13px; font-weight: 500; }
.form-error:empty, .status:empty { display: none; }

.admin-sticky {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  position: sticky;
  bottom: 0;
  z-index: 4;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(8px);
  padding: 14px 20px;
  margin: 20px -20px -16px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.admin-sticky span { margin-right: auto; font-size: 13px; color: var(--muted); }

.editor-nav, .category-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.editor-nav .button { font-size: 13px; }
.category-summary label { min-width: min(100%, 260px); }
.category-summary h2 { margin: 0 12px 0 0; }
.category-summary a { color: var(--catalog-accent); font-weight: 550; }
.product-editor .panel { scroll-margin-top: 72px; overflow: clip; }
.product-editor .generator { margin-top: 14px; }
.editor-subhead { margin: 16px 0 8px; font-size: 14px; }

.media-upload-bar { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.media-upload-bar label { min-width: 120px; }
.media-upload { flex: 1; }
[data-images] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.media-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--subtle);
  padding: 12px;
}
.media-group-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.media-group h3 { font-size: 14px; font-weight: 600; }
.edit-media-item img { object-fit: cover; border-radius: var(--radius-sm); }
.cover .edit-media-item img, .label .edit-media-item img, .care .edit-media-item img { aspect-ratio: 1; }
.edit-media-item video { width: 100%; background: var(--media); border-radius: var(--radius-sm); }
.media-group .asset-item { flex-basis: 116px; }

.size-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.size-options label {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; min-height: 36px;
  border-radius: var(--radius-md);
  background: var(--subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.size-options label:has(input:checked) {
  background: var(--catalog-tint);
  border-color: var(--catalog-edge);
  color: var(--catalog-accent);
}
.product-editor [data-variants-editor] table { min-width: 800px; }
.detail-editor { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.detail-editor textarea { min-height: 220px; }
.editor-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 220px;
  background: var(--subtle);
}
.editor-preview > div { padding-top: 8px; }
.editor-preview img { width: 100%; border-radius: var(--radius-sm); }
.product-editor .admin-sticky > .form-error:not(:empty) { flex-basis: 100%; }

/* Assets, Steps, Upload Zone & Metrics */
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--row); }
.asset-row, .thumb-list { display: flex; flex-wrap: wrap; gap: 8px; }
.asset-row > .asset-item { flex: 0 1 180px; }
.asset-item { display: grid; align-content: start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.asset-item img, .thumb-list img, .small-thumb img {
  width: 100%; background: var(--media); aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm);
}
.asset-item > .button { justify-self: start; }

.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none; padding: 0; margin: 0 0 20px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.steps li, .steps a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 48px; color: var(--muted); font-size: 13.5px; }
.steps li { padding: 8px 14px; border-bottom: 2px solid transparent; }
.steps .current { color: var(--catalog-accent); font-weight: 650; border-color: var(--catalog-accent); background: var(--catalog-tint); }
.steps .past, .steps .past a { color: var(--ink); }
.steps small {
  display: grid; place-items: center; min-width: 22px; min-height: 22px;
  border-radius: var(--radius-pill); border: 1px solid var(--control); font-weight: 600;
}
.steps .current small { background: var(--catalog-accent); color: var(--surface); border-color: var(--catalog-accent); }

.upload-zone {
  border: 2px dashed var(--control);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 5vw, 48px);
  text-align: center;
  min-height: 170px;
  display: grid;
  justify-items: center;
  gap: 12px;
  background: var(--subtle);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.upload-zone.dragging { border-color: var(--catalog-accent); background: var(--catalog-tint); }
.preview-row {
  display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr) auto;
  align-items: center; gap: 16px; padding: 14px; border-block-end: 1px solid var(--line-soft);
}
.preview-row.conflict { border-inline-start: 3px solid var(--amber); background: var(--amber-bg); }
.thumb-list figure { width: 52px; position: relative; }
.thumb-list figure figcaption {
  position: absolute; inset: 0 auto auto 0; font-size: 11px; padding: 1px 5px;
  border-radius: 4px 0 4px 0; background: var(--ink); color: var(--surface);
}
.small-thumb { width: 84px; display: grid; gap: 4px; align-content: start; font-size: 12.5px; overflow-wrap: anywhere; }
.small-thumb .button { white-space: normal; padding-inline: 6px; font-size: 12px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metrics div {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 18px; display: grid; gap: 6px;
}
.metrics strong { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--ink); }
progress { width: 100%; height: 10px; margin-block: 8px 16px; accent-color: var(--catalog-accent); border-radius: var(--radius-pill); }

/* Sign-in Page */
.sign-in {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--workspace-canvas);
}
.sign-in > div { width: min(100%, 400px); }
.sign-in .wordmark { margin-inline: auto; margin-bottom: 16px; }
.sign-in .wordmark svg { color: var(--catalog-accent); }
.sign-in section {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  margin: 0 0 12px;
}
.sign-in h1 { margin-bottom: 20px; font-size: 22px; }
.sign-in a { display: inline-flex; align-items: center; min-height: 38px; color: var(--muted); font-size: 13.5px; }
.sign-in a:hover { color: var(--catalog-accent); }

/* Toast Notification */
.toast {
  position: fixed;
  z-index: 50;
  bottom: 20px;
  right: 20px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--catalog-tint);
  color: var(--catalog-accent-active);
  border: 1px solid var(--catalog-edge);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow);
  max-width: min(380px, 90%);
}
.toast.danger { background: var(--red-bg); color: var(--red); border-color: var(--red); }

/* ==========================================================================
   Hover & Responsive Breakpoints
   ========================================================================== */
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
  .product-card a:hover .picture img:first-child,
  .category-card:hover img { transform: scale(1.04); }
  .product-card a:hover .picture .alternate { opacity: 1; }
}

@media (max-width: 1230px) {
  .catalog-main .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  :root { --gutter: 24px; --row: 16px; }
  .product-grid, .category-grid, .asset-grid, .catalog-main .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .desktop-nav, kbd { display: none; }
  .mobile-only { display: inline-flex; }
  .top-row { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-link { display: none; }
  .catalog-top .top-row { grid-template-columns: minmax(125px, 1fr) minmax(0, 4fr); }
  .admin-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .preview-row { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); }
  .preview-row > .work-actions { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --row: 12px; }
  .catalog-top .top-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 10px; }
  .catalog-main .product-grid, .product-grid, .category-grid, .asset-grid, .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .global-search { gap: 4px; }
  .global-search button { padding-inline: 10px; font-size: 12px; }
  .search-entry { gap: 4px; padding-inline-start: 8px; }
  .search-entry svg { width: 14px; }
  .search-entry input { padding-inline: 4px; font-size: 13px; }
  .catalog-filters { padding: 4px 14px; }
  .facet-row { grid-template-columns: 60px minmax(0, 1fr); gap: 8px; }
  .facet-options { max-height: 125px; }
  .catalog-hero { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .hero-main { padding: 24px 16px; }
  .catalog-index { border-inline-start: 0; border-top: 1px solid var(--line-soft); padding: 16px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery > * { flex: 0 0 100%; scroll-snap-align: start; }
  .details { position: static; padding: 20px; }
  .footer-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer { margin-top: 32px; padding-block: 28px; }
  .admin-head { padding-inline: 12px; }
  .admin-head .wordmark svg { display: none; }
  .admin-layout { display: block; }
  .admin-layout aside { padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-layout aside nav { display: flex; overflow: auto; scrollbar-width: none; position: static; }
  .work-heading { flex-wrap: wrap; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps a { flex-direction: column; justify-content: start; align-items: start; gap: 4px; font-size: 12px; }
  .preview-row { grid-template-columns: minmax(0, 1fr); }
  .table-scroll th, .table-scroll td { min-width: 100px; }
  .detail-editor, [data-images] { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
