
:root {
  color-scheme: light;
  font-family: Aptos, Avenir Next, Trebuchet MS, Helvetica, Arial, sans-serif;
  --ink: #172026;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #d8d2c3;
  --accent: #265f63;
  --accent-2: #b8642d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
a {
  color: inherit;
}
.market-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 46px);
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.market-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}
.market-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  padding: 7px 10px;
  text-decoration: none;
  font-weight: 800;
}
.cart-link {
  border-color: var(--line);
  background: var(--surface);
  border-radius: 8px;
}
.cart-link span,
[data-cart-count] {
  font-variant-numeric: tabular-nums;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  max-width: 900px;
  font-size: clamp(2.25rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.04rem;
  line-height: 1.18;
  margin-bottom: 8px;
}
p {
  max-width: 72ch;
}
.eyebrow {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.market-hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(38px, 7vw, 84px) clamp(16px, 5vw, 76px) clamp(28px, 5vw, 54px);
}
.hero-search > p:not(.eyebrow),
.market-page-hero > p {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.global-search {
  margin-top: 26px;
  max-width: 760px;
}
.global-search label,
.filter-panel label,
.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 900;
}
.global-search div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--ink);
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--surface);
}
.global-search input {
  border: 0;
  border-radius: 0;
  min-height: 54px;
}
.global-search button,
.market-button,
[data-add-to-quote] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 15px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.market-button.secondary,
.global-search button:hover + .market-button.secondary {
  background: var(--surface);
  color: var(--accent);
}
.hero-shelves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hero-shelves a,
.three-up a,
.quiet-panel {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  text-decoration: none;
}
.hero-shelves strong,
.three-up strong {
  font-size: 1.18rem;
}
.market-section,
.market-page-hero,
.product-detail {
  padding: clamp(34px, 6vw, 72px) clamp(16px, 5vw, 76px);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 15px;
}
.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  min-height: 100%;
}
.product-media {
  display: block;
  aspect-ratio: 3 / 2;
  background: #ece8dc;
}
.product-media img,
.detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.product-copy p {
  margin-bottom: 0;
}
.product-meta,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.product-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 800;
  background: #fbfaf7;
}
.card-actions {
  margin-top: auto;
}
.card-actions a {
  font-weight: 900;
}
.market-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(22px, 5vw, 52px);
  align-items: start;
  padding: clamp(34px, 6vw, 72px) clamp(16px, 5vw, 76px);
  background: #e8e1d0;
  border-block: 1px solid var(--line);
}
.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.compact-grid .product-card {
  min-height: auto;
}
.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.faq-strip {
  background: var(--ink);
  color: white;
}
.faq-strip p {
  color: rgba(255,255,255,0.76);
}
.catalog-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.filter-panel {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}
.result-count {
  font-weight: 900;
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.detail-media {
  margin: 0;
}
.detail-media picture {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #625d52;
}
.spec-list {
  display: grid;
  gap: 9px;
}
.spec-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}
.spec-list dt {
  font-weight: 900;
}
.spec-list dd {
  margin: 0;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.quote-cart-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}
.cart-items {
  display: grid;
  gap: 12px;
}
.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}
.cart-summary,
.cart-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}
.rfq-shell {
  background: transparent;
}
.rfq-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.field {
  display: grid;
  gap: 7px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.cart-preview,
.form-actions,
.form-status {
  grid-column: 1 / -1;
}
.hp {
  position: absolute;
  left: -9999px;
}
.market-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 24px;
  padding: clamp(34px, 6vw, 72px) clamp(16px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: #ebe6d9;
}
.market-footer a:not(.market-brand) {
  display: block;
  margin: 7px 0;
  text-decoration: none;
  font-weight: 800;
}
code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
  background: #fffaf0;
}
@media (max-width: 860px) {
  .market-topbar,
  .section-head,
  .market-footer {
    display: block;
  }
  nav {
    margin-top: 12px;
  }
  .market-hero,
  .market-band,
  .catalog-shell,
  .product-detail,
  .split,
  .quote-cart-shell,
  .rfq-form,
  .three-up {
    grid-template-columns: 1fr;
  }
  .hero-shelves,
  .compact-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: clamp(2rem, 14vw, 3.75rem);
  }
  .filter-panel {
    position: static;
  }
  .cart-item {
    grid-template-columns: 1fr;
  }
}
