/* Unitex Direct catalog. Brand: blue #203E95, red #FF0F1E, Open Sans + Alfa Slab One (from unitexdirect.com). */
:root {
  color-scheme: light;
  --blue: #203e95;
  --blue-800: #172d6e;
  --blue-900: #0f1f4f;
  --blue-50: #eef2fb;
  --blue-100: #dde5f6;
  --red: #d90d1a;          /* brand red, deepened slightly so white text passes contrast */
  --red-hover: #b80a15;
  --ink: #0f1729;
  --ink-2: #3a4356;
  --muted: #687185;
  --line: #e3e6ed;
  --line-2: #d3d8e2;
  --bg: #ffffff;
  --bg-2: #f5f6f9;
  --img-bg: #f2f3f6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, .06);
  --shadow: 0 2px 6px rgba(15, 23, 41, .06), 0 12px 32px rgba(15, 23, 41, .08);
  --display: "Alfa Slab One", Georgia, serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- top bars ---------- */
.utility { background: var(--blue-900); color: #c9d3ee; font-size: 12.5px; }
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; height: 34px; align-items: center; }
.utility a { color: #fff; font-weight: 600; }
.utility .hide-sm { display: none; }
@media (min-width: 720px) { .utility .hide-sm { display: inline; } }

.masthead { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.masthead .bar { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 24px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 40px; width: auto; }
.logo .fallback { font: 22px var(--display); color: var(--blue); }
.menu-btn { display: none; }
@media (max-width: 719px) {
  /* phones: menu button · logo · quote list, then search; categories move into the menu */
  .utility, .catnav { display: none; }
  .masthead { transition: transform .2s ease; }
  .masthead.tucked { transform: translateY(-100%); }
  .masthead .bar { grid-template-columns: auto 1fr auto; gap: 10px 8px; padding-top: 10px; padding-bottom: 10px; }
  .masthead .search { grid-column: 1 / -1; order: 3; }
  .menu-btn { display: grid; place-items: center; width: 42px; height: 42px; margin-left: -8px; border: 0; background: none; border-radius: 10px; color: var(--ink); cursor: pointer; }
  .menu-btn:active { background: var(--bg-2); }
  .logo { justify-self: start; }
  .logo img { height: 30px; }
}
.menu-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 40; }
.site-menu { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 41; overflow-y: auto; padding: 8px 0 24px; box-shadow: var(--shadow); }
.site-menu[hidden], .menu-backdrop[hidden] { display: none; }
body.menu-open { overflow: hidden; }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--line); }
.menu-head b { font: 18px var(--display); }
.menu-close { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--ink); }
.menu-group { padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu-group h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 20px 6px; }
.menu-group a { display: flex; justify-content: space-between; align-items: center; padding: 11px 20px; font-weight: 600; font-size: 15px; color: var(--ink); }
.menu-group a:active, .menu-group a:hover { background: var(--bg-2); }
.menu-group .badge { background: var(--blue); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.search { position: relative; max-width: 640px; width: 100%; justify-self: center; }
.search input {
  width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg-2);
  padding: 0 18px 0 46px; font-size: 15px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-50); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.quote-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s;
}
.quote-btn:hover { background: var(--blue-800); }
.quote-btn .badge { background: #fff; color: var(--blue); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
@media (max-width: 420px) { .quote-btn .qlabel { display: none; } }

.catnav { border-top: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a { white-space: nowrap; padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.catnav a:hover { background: var(--bg-2); color: var(--ink); }
.catnav a[aria-current="true"] { background: var(--blue-50); color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 15px; transition: background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.link { color: var(--blue); font-weight: 700; }
.link:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { background: var(--blue); color: #fff; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
@media (max-width: 899px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; } .hero .collage { display: none; } }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #aebde6; }
.hero h1 { font: clamp(34px, 5vw, 56px)/1.04 var(--display); margin: 12px 0 16px; letter-spacing: .005em; }
.hero h1 em { font-style: normal; color: #ffd2d5; }
.hero p { font-size: 17px; color: #dbe2f5; max-width: 34em; margin: 0 0 26px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .ctas .sub { color: #fff; font-weight: 600; font-size: 14px; }
.hero .stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero .stats b { display: block; font: 26px var(--display); color: #fff; }
.hero .stats span { font-size: 13px; color: #aebde6; }
.collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.collage a { background: #fff; border-radius: 12px; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); transition: transform .2s; }
.collage a:hover { transform: translateY(-3px); }
.collage a:nth-child(3n+2) { transform: translateY(18px); }
.collage a:nth-child(3n+2):hover { transform: translateY(15px); }
.collage img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section + .section { padding-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font: 28px/1.1 var(--display); margin: 0; color: var(--ink); letter-spacing: .005em; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat-tile { background: var(--img-bg); border-radius: var(--radius); padding: 16px 16px 0; display: flex; flex-direction: column; overflow: hidden; transition: background .15s, box-shadow .15s; min-height: 220px; }
.cat-tile:hover { background: var(--blue-50); box-shadow: inset 0 0 0 1.5px var(--blue-100); }
.cat-tile b { font-size: 15.5px; }
.cat-tile span { font-size: 13px; color: var(--muted); }
.cat-tile .pic { flex: 1; display: grid; place-items: end center; margin-top: 8px; }
.cat-tile img { height: 150px; width: 100%; object-fit: contain; object-position: bottom; mix-blend-mode: multiply; transition: transform .25s; }
.cat-tile:hover img { transform: scale(1.04); }

.brand-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-cloud a { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: border-color .15s, color .15s; }
.brand-cloud a:hover { border-color: var(--blue); color: var(--blue); }
.brand-cloud small { color: var(--muted); font-weight: 500; margin-left: 4px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--bg-2); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font: 16px var(--display); margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
.card { display: flex; flex-direction: column; gap: 10px; }
.card .pic { background: var(--img-bg); border-radius: var(--radius); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; position: relative; transition: box-shadow .2s; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform .3s ease; }
.card:hover .pic { box-shadow: inset 0 0 0 1.5px var(--blue-100); }
.card:hover .pic img { transform: scale(1.04); }
.card .b { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.card .n { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .n { color: var(--blue); }
.card .m { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.style-chip { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); border-radius: 6px; padding: 1px 7px; font-weight: 600; }
.card .t { display: flex; flex-direction: column; gap: 4px; }

/* ---------- catalog layout ---------- */
.page-head { padding: 26px 0 6px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--blue); }
.page-head h1 { font: clamp(26px, 3.4vw, 36px)/1.1 var(--display); margin: 8px 0 0; }
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 20px 0 64px; }
@media (max-width: 899px) { .catalog { grid-template-columns: 1fr; gap: 16px; } }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-bar .count { color: var(--muted); font-size: 14px; }
.results-bar .count b { color: var(--ink); }
.select { height: 40px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 34px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23687185' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.filters-toggle { display: none; }
@media (max-width: 899px) {
  .filters-toggle { display: inline-flex; height: 40px; padding: 0 16px; font-size: 14px; }
  .filters { display: none; }
  .filters.open { display: block; background: var(--bg-2); border-radius: var(--radius); padding: 18px; }
}
.filters h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.filters .group + .group { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.facet { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.facet a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.facet a:hover { background: var(--bg-2); color: var(--ink); }
.facet a[aria-current="true"] { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.facet small { color: var(--muted); font-size: 12.5px; }
.facet-more { background: none; border: 0; padding: 6px 10px; color: var(--blue); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.facet-search { width: 100%; height: 36px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 10px; margin-bottom: 8px; font-size: 13.5px; outline: none; }
.facet-search:focus { border-color: var(--blue); }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 13px; padding: 5px 8px 5px 12px; border-radius: 999px; }
.pill button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; color: var(--muted); font-size: 13.5px; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); background: var(--bg-2); border-radius: var(--radius); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; padding: 18px 0 56px; align-items: start; }
@media (max-width: 899px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.gallery { position: sticky; top: 150px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
@media (max-width: 899px) { .gallery { position: static; grid-template-columns: 1fr; } .gallery .main { aspect-ratio: auto; width: 100%; height: min(62vh, 115vw); } .gallery .thumbs { order: 2; flex-direction: row; overflow-x: auto; } }
.gallery .main { background: var(--img-bg); border-radius: var(--radius); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 5%; mix-blend-mode: multiply; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { flex: 0 0 auto; width: 76px; aspect-ratio: 4 / 5; padding: 0; border: 1.5px solid transparent; border-radius: 10px; background: var(--img-bg); cursor: pointer; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }

.info .b { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.info h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.15; font-weight: 800; margin: 6px 0 10px; letter-spacing: -.01em; }
.info .sub { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.info .sub { flex-wrap: wrap; }
.copy-link { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 11px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-2); font: 600 13px var(--sans); cursor: pointer; transition: border-color .15s, color .15s; }
.copy-link:hover { border-color: var(--blue); color: var(--blue); }
.block { padding: 22px 0; border-top: 1px solid var(--line); }
.info .block:first-of-type { margin-top: 20px; }
.label { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.label b { color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches.collapsed { max-height: 132px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.swatch { width: 36px; height: 36px; border-radius: 8px; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(15, 23, 41, .14); position: relative; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.swatch:hover { transform: scale(1.08); }
.size-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chips span { border: 1.5px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

.quote-box { background: var(--bg-2); border-radius: var(--radius); padding: 20px; margin-top: 4px; }
.quote-box h2 { font-size: 17px; margin: 0 0 4px; }
.quote-box p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.qty-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: center; }
.qty-grid input { width: 100%; height: 42px; text-align: center; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-weight: 600; outline: none; -moz-appearance: textfield; }
.qty-grid input::-webkit-outer-spin-button, .qty-grid input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-grid input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.qty-total { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 12px; font-size: 14px; color: var(--muted); }
.qty-total b { color: var(--ink); font-size: 16px; }
.assure { display: grid; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.assure div { display: flex; gap: 10px; align-items: start; }
.assure svg { flex: 0 0 auto; color: var(--blue); margin-top: 2px; }
.details p { margin: 0 0 12px; color: var(--ink-2); }
.details ul { margin: 0; padding-left: 18px; color: var(--ink-2); columns: 2 240px; column-gap: 32px; }
.details li { margin-bottom: 6px; break-inside: avoid; }
.prices { width: 100%; border-collapse: collapse; font-size: 14px; }
.prices th, .prices td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.prices th { color: var(--muted); font-weight: 600; }

/* ---------- quote page ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; padding: 18px 0 64px; align-items: start; }
@media (max-width: 899px) { .quote-layout { grid-template-columns: 1fr; } }
.q-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.q-item:first-child { border-top: 1px solid var(--line); }
.q-item .pic { background: var(--img-bg); border-radius: 10px; aspect-ratio: 4 / 5; overflow: hidden; }
.q-item .pic img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.q-item .n { font-weight: 700; }
.q-item .m { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.q-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.q-sizes span { background: var(--bg-2); border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 600; }
.q-item .side { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: end; }
.q-item .side b { font-size: 15px; }
.q-edit { grid-column: 1 / -1; }
.q-edit .qty-matrix { max-height: 320px; }
.q-edit-actions { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.text-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.text-btn:hover { color: var(--red); }
.panel { background: var(--bg-2); border-radius: var(--radius); padding: 22px; position: sticky; top: 150px; }
.panel h2 { font-size: 18px; margin: 0 0 14px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; height: 42px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #fff; font-weight: 400; font-size: 14.5px; outline: none; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.form-msg { font-size: 13.5px; color: var(--muted); margin-top: 10px; min-height: 1em; }
.form-msg.err { color: var(--red); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 14px 12px 18px; border-radius: 12px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; z-index: 50; font-size: 14px; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: #fff; background: var(--red); font-weight: 700; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-900); color: #aebde6; font-size: 13.5px; margin-top: 24px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.site-footer b { color: #fff; font: 18px var(--display); display: block; margin-bottom: 4px; }
.site-footer a { color: #fff; font-weight: 600; }

.demo-banner { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 13px; padding: 6px 16px; }
.skeleton { background: linear-gradient(90deg, var(--img-bg), #e9ebf0, var(--img-bg)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- quote: send options ---------- */
.send-lead { margin: -6px 0 14px; color: var(--ink-2); font-size: 14px; }
.send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .send-grid { grid-template-columns: 1fr; } }
.send-opt { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.send-opt:hover { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.send-opt b { font-size: 15px; color: var(--blue); }
.send-opt span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.send-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.send-or::before, .send-or::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 14px; margin-bottom: 10px; }
.copy-row small { display: block; font-size: 12px; color: var(--muted); }
.copy-row b { font-size: 14px; word-break: break-all; }
.copy-row .btn { height: 38px; padding: 0 14px; font-size: 13.5px; flex: 0 0 auto; }
.send-foot { display: flex; justify-content: space-between; margin-top: 14px; gap: 10px; flex-wrap: wrap; }

/* ---------- quantity grid for waist x inseam sizes ---------- */
.qty-matrix { overflow-x: auto; max-height: 420px; overflow-y: auto; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; }
.qty-matrix table { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.qty-matrix th { position: sticky; background: #fff; font-weight: 700; color: var(--ink-2); padding: 6px 8px; text-align: center; white-space: nowrap; }
.qty-matrix thead th { top: 0; z-index: 2; border-bottom: 1px solid var(--line); }
.qty-matrix tbody th { left: 0; z-index: 1; border-right: 1px solid var(--line); }
.qty-matrix thead th:first-child { left: 0; z-index: 3; font-weight: 600; color: var(--muted); font-size: 12px; }
.qty-matrix td { padding: 3px; text-align: center; }
.qty-matrix input { width: 52px; height: 36px; text-align: center; border: 1.5px solid var(--line-2); border-radius: 8px; font-weight: 600; outline: none; -moz-appearance: textfield; }
.qty-matrix input::-webkit-outer-spin-button, .qty-matrix input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-matrix input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.qty-matrix .na { color: var(--line-2); }

/* ---------- stock labels ---------- */
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; margin-left: 6px; cursor: help; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-in { color: #1a7f37; }
.stock-limited { color: #9a6700; }
.stock-out { color: var(--muted); }
.qty-grid label.oos { color: var(--muted); }
.qty-grid label.oos input, .qty-matrix input.oos { background: var(--bg-2); border-style: dashed; }
.oos-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- collections (industry and customer pages) ---------- */
.coll-head .lede { font-size: 16.5px; color: var(--ink-2); max-width: 760px; margin: 12px 0 0; }
.coll-head .coll-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.coll-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-2); border-radius: var(--radius); padding: 20px 22px; margin: 34px 0 10px; }
.coll-cta b { display: block; font-size: 16px; }
.coll-cta span { color: var(--ink-2); font-size: 14.5px; }
.ind-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.coll-section { margin-top: 38px; }
.coll-section h2 { font-size: 22px; margin: 0; }
.coll-section > p { color: var(--ink-2); font-size: 15px; max-width: 760px; margin: 8px 0 0; }
.coll-sec-more { margin: 14px 0 0; font-size: 14.5px; font-weight: 600; }
.coll-faq { margin-top: 44px; max-width: 820px; }
.coll-faq h2 { font-size: 22px; margin: 0 0 4px; }
.coll-faq h3 { font-size: 16px; margin: 22px 0 6px; }
.coll-faq p { color: var(--ink-2); font-size: 15px; margin: 0; line-height: 1.6; }
.about-blurb p { color: var(--ink-2); font-size: 15px; max-width: 760px; margin: 0 0 12px; line-height: 1.6; }
.about-industries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; font-size: 15px; font-weight: 600; }
.coll-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- quote form: bot check and hidden honeypot ---------- */
.ts { margin-top: 14px; min-height: 65px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* shared quote lists */
.share-banner { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.5; }
.share-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.list-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* logo upload on the quote form */
.logo-field > span { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.logo-field > span small { font-weight: 400; color: var(--muted); }
.logo-drop { position: relative; display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .15s; }
.logo-drop:hover, .logo-drop:focus-within { border-color: var(--blue); }
.logo-drop b { font-size: 14px; color: var(--blue); }
.logo-drop small { color: var(--muted); font-size: 12.5px; }
.logo-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.logo-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.logo-list li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.logo-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.logo-list li small { color: var(--muted); margin-left: auto; white-space: nowrap; }
.logo-list li.err { color: var(--red, #c0392b); }

/* sending spinner (quote form button) */
.spinner { display: inline-block; width: 15px; height: 15px; margin-right: 9px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.6s; } }

/* logo preview (assets/mockup.js) */
.mock-open { margin-top: 10px; }
.mock-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mock { background: #fff; border-radius: var(--radius); width: min(1080px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow); overflow: hidden; }
.mock-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mock-head h2 { margin: 0; font-size: 20px; }
.mock-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.mock-x { font-size: 20px; line-height: 1; padding: 4px 8px; }
.mock-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 20px; padding: 20px; overflow: auto; }
.mock-stage { position: relative; background: var(--img-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; min-height: 320px; overflow: hidden; touch-action: none; user-select: none; }
.mock-stage > img { display: block; max-width: 100%; max-height: 64vh; object-fit: contain; }
.mock-logo { position: absolute; cursor: move; outline: 1.5px dashed rgba(71, 166, 226, .9); outline-offset: 2px; }
.mock-logo:focus-visible { outline: 2px solid var(--blue); }
.mock-logo img { width: 100%; height: 100%; display: block; pointer-events: none; }
.mock-handle { position: absolute; right: -9px; bottom: -9px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); cursor: nwse-resize; }
.mock-empty { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.92); padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mock-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mock-label { font-weight: 700; font-size: 13px; margin-top: 8px; }
.mock-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.mock-spots { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-spots button { border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 11px; font: 600 13px var(--sans); cursor: pointer; }
.mock-spots button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
.mock-colors { display: flex; flex-wrap: wrap; gap: 6px; max-height: 76px; overflow: auto; }
.mock-colors button { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); cursor: pointer; padding: 0; }
.mock-colors button[aria-pressed="true"] { outline: 2px solid var(--blue); outline-offset: 2px; }
.mock-photos { display: flex; gap: 6px; overflow-x: auto; }
.mock-photos button { flex: 0 0 52px; height: 64px; border: 1.5px solid var(--line-2); border-radius: 8px; background: var(--img-bg); padding: 2px; cursor: pointer; }
.mock-photos button[aria-pressed="true"] { border-color: var(--blue); }
.mock-photos img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mock-actions { display: grid; gap: 8px; margin-top: 12px; }
.mock-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 760px) {
  .mock-backdrop { padding: 0; }
  .mock { max-height: 100vh; height: 100%; border-radius: 0; }
  .mock-body { grid-template-columns: 1fr; padding: 14px; }
  .mock-stage { min-height: 260px; }
  .mock-stage > img { max-height: 46vh; }
}

/* supplier photo that doesn't exist (assets/app.js error listener) */
.img-missing { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 120px; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; padding: 12px; }

/* photo zoom (assets/zoom.js) */
.gallery .main.zoomable { cursor: zoom-in; }
.gallery .main.zoomable img { transition: transform .12s ease-out; will-change: transform; }
.zoom-box { position: fixed; inset: 0; z-index: 70; background: rgba(12, 16, 26, .94); display: flex; align-items: center; justify-content: center; touch-action: none; overflow: hidden; }
.zoom-img { max-width: 100vw; max-height: 100vh; object-fit: contain; background: #fff; transform-origin: center; transition: transform .08s linear; user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.zoom-box.zoomed .zoom-img { cursor: grab; }
.zoom-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.zoom-close { top: 14px; right: 14px; }
.zoom-prev { left: 14px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.zoom-next { right: 14px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.zoom-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 999px; font-size: 13px; pointer-events: none; }
.zoom-box.zoomed .zoom-hint { display: none; }

/* decoration guide (decoration.html) */
.guide { max-width: 860px; }
.guide .lede { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 70ch; margin-top: 6px; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.guide-jump a { border: 1.5px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.guide-jump a:hover { border-color: var(--blue); color: var(--blue); }
.guide section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.guide h2 { font-size: 24px; margin: 0 0 10px; }
.guide h3 { font-size: 15px; margin: 18px 0 6px; }
.guide p, .guide li { line-height: 1.6; font-size: 15px; }
.guide ul { padding-left: 20px; margin: 6px 0; }
.guide li { margin: 4px 0; }
.guide-table { overflow-x: auto; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.guide-table th, .guide-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table thead th { background: var(--bg-2); font-size: 13px; }
.guide-table tbody th { font-weight: 700; white-space: nowrap; color: var(--ink-2); }
.guide-choose ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.guide-choose li { background: var(--bg-2); border-radius: 10px; padding: 10px 14px; }
.guide-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--bg-2); border-radius: var(--radius); padding: 18px 20px; margin: 10px 0 40px; }
.guide-cta div { max-width: 60ch; line-height: 1.5; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.link.small { font-size: 12.5px; font-weight: 600; }


/* Guides (site/guides.html and site/guides/*.html, written by guides-src/make_guides.py) */
.guide-picks { margin: 16px 0 6px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.guide-item { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); }
.guide-item:hover { border-color: var(--blue); }
.guide-item b { font-size: 15px; }
.guide-item span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.glossary { margin: 8px 0; display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 8px 18px; }
.glossary dt { font-weight: 700; color: var(--ink-2); font-size: 15px; }
.glossary dd { margin: 0; line-height: 1.6; font-size: 15px; }
@media (max-width: 559px) { .glossary { grid-template-columns: 1fr; gap: 2px; } .glossary dd { margin-bottom: 10px; } }
