:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #505050;
  --line: #d4d4d4;
  --paper: #f5f5f5;
  --accent: #c63929;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.navigation, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.45rem; font-weight: 850; letter-spacing: -.045em; }
.brand span { color: var(--accent); }
.intro { padding-block: clamp(2.25rem, 7vw, 5rem) 2.2rem; }
.intro h1 { font: 500 clamp(2.7rem, 8vw, 5.4rem)/1 Georgia, serif; letter-spacing: -.04em; margin: .35rem 0 1rem; }
.intro p:last-child { max-width: 55ch; color: var(--muted); }
.eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.eyebrow span { margin-inline: .15em; }
.filters { display: grid; grid-template-columns: 2fr 1fr; gap: .75rem; max-width: 660px; }
.filters label { display: grid; gap: .25rem; color: var(--muted); font-size: .875rem; }
input, select { width: 100%; min-height: 44px; font: inherit; font-size: 1rem; padding: .55rem .65rem; border: 1px solid #aaa; border-radius: .35rem; color: var(--ink); background: #fff; }
#count { color: var(--muted); font-size: .875rem; margin-block: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(236px, calc((100% - 1rem) / 2)), 1fr)); gap: 1rem; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; background: #fff; }
.photo { position: relative; aspect-ratio: 1 / 1; flex: none; overflow: hidden; background: #eee; }
.photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.details { padding: .85rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.details h2 { font: 500 1.27rem/1.2 Georgia, serif; margin: .4rem 0 .7rem; }
.details a { margin-top: auto; min-height: 44px; display: flex; align-items: center; justify-content: space-between; font-size: .875rem; font-weight: 650; }
.footer { margin-top: 3rem; border-top: 1px solid var(--line); font-size: .875rem; }
@media (max-width: 520px) {
  .wrap { width: calc(100% - 1.5rem); }
  .filters { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .details { padding: .6rem; }
  .details h2 { font-size: 1.05rem; }
  .details .eyebrow { font-size: .67rem; letter-spacing: .025em; }
}

.retail-price { margin: .25rem 0 .85rem; color: var(--muted); font-size: .86rem; }
.retail-price strong { display: block; color: var(--ink); font-size: 1rem; }
.quote-choice { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-top: auto; min-height: 44px; border-top: 1px solid var(--line); font-size: .84rem; font-weight: 700; cursor: pointer; }
.quote-choice input { flex: none; width: 1.2rem; height: 1.2rem; min-height: 0; margin: .5rem .12rem; accent-color: var(--accent); }
.quote-action { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .9rem; border-radius: .45rem; background: var(--accent); color: white; font-weight: 700; text-decoration: none; }
.quote-action[aria-disabled="true"] { opacity: .65; }
.quote-top { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.quote-float { position: fixed; z-index: 5; right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .65rem; max-width: calc(100vw - 1.5rem); background: white; border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 .25rem 1rem #0002; padding: .5rem .65rem; font-size: .85rem; }
body:has(.quote-float:not([hidden])) { padding-bottom: 5rem; }

.product-meta, .retail-price { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem .5rem; flex-wrap: wrap; }
.product-sku { margin: 0; font-size: .78rem; font-weight: 750; overflow-wrap: anywhere; }
.retail-price strong { white-space: nowrap; }
.status-badge { padding: .2rem .45rem; border-radius: .3rem; background: #e0f1e7; color: #21523e; line-height: 1.2; }
.status-badge[data-status="out"] { background: #f9e6e4; color: #842e29; }
.status-badge[data-status="low"] { background: #ffdfc0; color: #803900; }
.status-badge[data-status="preorder"] { background: #e4effa; color: #224e74; }
.status-badge[data-status="custom"] { background: #eee7fa; color: #563680; }
.status-badge[data-status="concept"] { background: #fff3b8; color: #594600; }
.quote-choice input { margin-inline-start: auto; }

.pack-size { margin: .25rem 0 .75rem; color: var(--muted); font-size: .84rem; }
.quote-choice { cursor: default; flex-wrap: wrap; }
.box-quantity { display: inline-flex; align-items: center; gap: .15rem; white-space: nowrap; }
.box-quantity[hidden] { display: none; }
.box-quantity button { min-width: 2rem; min-height: 2rem; border: 1px solid var(--line); border-radius: .3rem; background: white; color: var(--accent); font: inherit; cursor: pointer; }
.box-quantity button:disabled { opacity: .45; cursor: default; }
.box-quantity output { min-width: 1.4rem; text-align: center; font-variant-numeric: tabular-nums; }

.photo-select { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.photo-check { position: absolute; z-index: 4; top: .5rem; right: .5rem; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border: 2px solid white; border-radius: 50%; background: #2226; color: transparent; box-shadow: 0 1px 4px #0005; pointer-events: none; font-size: .95rem; font-weight: 800; }
.photo-select:checked + .photo-check { background: var(--accent); color: white; }
.photo-select:checked + .photo-check::after, .photo-select:focus-visible + .photo-check::after { content: ''; position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; outline: 2px solid var(--accent); }
.quote-choice .box-quantity { margin-inline-start: auto; }

.photo:has(.photo-select:checked)::after, .photo:has(.photo-select:focus-visible)::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 3px var(--accent); }
.photo:has(.photo-select:focus-visible)::after { box-shadow: inset 0 0 0 3px white, inset 0 0 0 6px var(--accent); }
.quote-preview-trigger { background: transparent; border: 0; padding: .55rem .2rem; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.quote-preview { width: min(29rem, calc(100% - 1.5rem)); max-height: min(38rem, calc(100dvh - 2rem)); padding: 0; border: 1px solid var(--line); border-radius: 1rem; color: inherit; box-shadow: 0 1rem 3rem #0004; }
.quote-preview::backdrop { background: #141414b3; }
.quote-preview[open] { display: flex; flex-direction: column; }
.quote-preview-header, .quote-preview-footer { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: 1rem; }
.quote-preview-header { border-bottom: 1px solid var(--line); }
.quote-preview-header h2 { margin: 0; font-size: 1.3rem; }
.quote-preview-header button { font: inherit; color: inherit; background: white; border: 1px solid var(--line); border-radius: .4rem; padding: .5rem .65rem; cursor: pointer; }
.quote-preview-list { padding: 0 1rem; margin: 0; overflow: auto; overscroll-behavior: contain; list-style: none; }
.quote-preview-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .7rem 0; }
.quote-preview-row + .quote-preview-row { border-top: 1px solid var(--line); }
.quote-preview-row img { width: 3rem; height: 3rem; object-fit: cover; border-radius: .4rem; }
.quote-preview-row small { display: block; }
.quote-preview-footer { border-top: 1px solid var(--line); flex-wrap: wrap; }

button.quote-action { border: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
button.quote-action:disabled { opacity: .55; cursor: default; }
.quote-preview { width: min(34rem, calc(100% - 1.5rem)); max-height: min(44rem, calc(100dvh - 1.5rem)); overflow: auto; }
.quote-preview-header, .quote-preview-form { flex: none; }
.quote-preview-list { min-height: 5rem; flex: 1 1 auto; }
.quote-preview-row { grid-template-columns: auto 2.5rem minmax(0, 1fr) auto; gap: .5rem; }
.quote-preview-row img { width: 2.5rem; height: 2.5rem; }
.quote-preview-row strong { overflow-wrap: anywhere; }
.quote-preview-qty { display: flex; gap: .25rem; align-items: center; }
.quote-preview-qty output { min-width: 1.25rem; text-align: center; }
.quote-preview-remove, .quote-preview-qty button { min-width: 2rem; min-height: 2.25rem; padding: .15rem; border: 1px solid var(--line); border-radius: .4rem; background: white; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.quote-preview-remove { color: #a62e21; }
.quote-preview-qty button:disabled { opacity: .45; cursor: default; }
.quote-preview-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.quote-preview-form label { font-size: .9rem; font-weight: 600; }
.quote-preview-form input:not([type=hidden]), .quote-preview-form select { display: block; width: 100%; min-width: 0; margin-top: .2rem; padding: .45rem; font: inherit; background: white; color: inherit; border: 1px solid var(--line); border-radius: .35rem; }
.quote-other-city:not([hidden]) { display: block; margin: 0 1rem .75rem; }
.quote-preview-empty { padding: .75rem 0; }
@media (max-width: 420px) { .quote-preview-row { grid-template-columns: auto 2rem minmax(0,1fr) auto; gap: .3rem; } .quote-preview-row img { width: 2rem; height: 2rem; } .quote-preview-list { padding-inline: .65rem; } .quote-preview-row strong { font-size: .875rem; } }

.quote-field-error:not([hidden]) { display: block; margin-top: .3rem; color: #a62e21; font-size: .82rem; }
.quote-preview-form [aria-invalid="true"] { border-color: #a62e21; }
.quote-float:has([data-quote-summary]) { padding: .35rem; }

/* The wholesale filter row expands to four controls on wider screens. */
.filters:has(#material) { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); max-width: none; align-items: end; }
@media (max-width: 760px) { .filters:has(#material) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .filters:has(#material) { grid-template-columns: 1fr; } }
