/* Phase two: Tom's supplied selection cards, dimensional tiles and soft depth. */
:root {
  --steel: #326f88;
  --surface: #f2f5f7;
  --soft-line: #dce3e9;
  --card-radius: 24px;
  --shadow-small: 0 2px 4px rgb(17 37 61 / 9%);
  --shadow-raised: 0 20px 32px -14px rgb(17 37 61 / 26%);
}
body { background: var(--surface); }
.icon { display: inline-block; width: 24px; height: 24px; flex: none; vertical-align: middle; }
.catalog { padding-top: 56px; }
.section-heading > p { max-width: 42ch; }
.filters { border-bottom: 0; padding-top: 28px; padding-bottom: 0; }
.collections { gap: 20px; margin-bottom: 28px; }
.collections button {
  padding: 24px; gap: 0; border-radius: var(--card-radius); border-color: var(--soft-line);
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.collections button:hover { background: white; border-color: #a5b8c6; }
.collections button strong { font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.25; max-width: 24ch; }
.collections .collection-top { display: flex; justify-content: space-between; align-items: start; width: 100%; margin-bottom: 22px; }
.collections .collection-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #e7f1f5; color: var(--action); }
.collection-icon .icon { width: 42px; height: 42px; }
.collections .selection-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #c8d3dd; border-radius: 50%; color: var(--steel); }
.selection-mark .icon { width: 20px; height: 20px; visibility: hidden; stroke-width: 4; }
.collections .collection-subtitle { margin-block: 10px 28px; font-size: .9375rem; line-height: 1.6; }
.collections .collection-bottom { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: auto; color: inherit; }
.collections .collection-bottom small { padding: 5px 12px; border-radius: 30px; background: #f0f3f6; font-size: .875rem; margin: 0; }
.collections button[aria-pressed=true] { background: var(--steel); border-color: transparent; box-shadow: 0 18px 30px -18px #326f8899; }
.collections button[aria-pressed=true] .collection-icon { color: white; background: #ffffff29; }
.collections button[aria-pressed=true] .collection-subtitle { color: #e5f0f5; }
.collections button[aria-pressed=true] .collection-bottom { color: white; }
.collections button[aria-pressed=true] small { background: #ffffff29; }
.collections button[aria-pressed=true] .selection-mark { color: var(--steel); background: white; border-color: white; }
.collections button[aria-pressed=true] .selection-mark .icon { visibility: visible; }
.filter-panel { background: white; padding: 26px; border: 1px solid var(--soft-line); border-radius: var(--card-radius); }
.collection-heading h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.collection-heading .reset { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.collection-description { max-width: 85ch; margin-bottom: 22px; }
.filter-top { gap: 16px; }
.filter-top label { color: var(--muted); font-size: .875rem; }
.filter-top label:nth-child(2) { width: 220px; }
.filter-top input, .filter-top select { background: #f7f9fa; border-color: #bac8d3; border-radius: 14px; height: 52px; }
.search-field { display: block; position: relative; }
.search-field > .icon { position: absolute; top: 14px; left: 14px; pointer-events: none; }
.filter-top .search-field input { padding-left: 46px; }
.filter-groups { align-items: center; gap: 6px; border-top: 1px solid #e7ecf0; padding-top: 20px; }
.filter-label { flex-basis: auto; margin: 0 12px 0 0; }
.filter-groups button { border-radius: 12px; font-size: .9375rem; padding: 10px 16px; background: #f0f3f6; color: var(--muted); }
.filter-groups button:hover { background: #e8edf2; border-color: transparent; }
.filter-groups button[aria-pressed=true] { background: white; color: var(--ink); border-color: var(--soft-line); box-shadow: var(--shadow-small); }
.filter-segments { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: #f0f3f6; border-radius: 18px; max-width: 100%; }
.filter-segments button { background: transparent; padding: 12px 22px; font-weight: 600; min-height: 48px; }
.results-bar { align-items: center; margin-block: 24px; font-size: .8125rem; }
.product-grid, .related .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.product-card { border-color: var(--soft-line); border-radius: var(--card-radius); transition: transform .22s ease-out, box-shadow .22s ease-out; }
.card-stage { background: #f0f3f5; }
.card-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 18px 16px 0; }
.capacity-tag, .orientation-tag { position: static; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; min-height: 32px; border-radius: 30px; background: white; color: var(--ink); font-weight: 600; font-size: .75rem; box-shadow: var(--shadow-small); white-space: nowrap; }
.capacity-tag .icon { width: 24px; height: 22px; color: var(--action); }
.orientation-tag .icon { width: 20px; height: 20px; }
.card-image { padding: 20px 30px 26px; border: 0; background: transparent; }
.card-image img, .related .card-image img { height: 270px; aspect-ratio: auto; object-fit: contain; mix-blend-mode: multiply; }
.card-copy { padding: 24px; }
.card-meta { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.reference { font-size: .8125rem; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.material-tag { font-size: .75rem; font-weight: 500; padding: 4px 10px; border-radius: 20px; background: #f0f3f6; white-space: nowrap; color: #455569; }
.card-copy h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.28; min-height: 2.56em; margin: 14px 0 22px; }
.dimension-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; }
.dimension-tiles > div { background: #f5f7f9; border-radius: 14px; padding: 12px; }
.dimension-tiles dt { font-size: .6875rem; letter-spacing: .065em; text-transform: uppercase; font-weight: 600; }
.dimension-tiles dd { font-size: 1.5rem; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dimension-tiles dd span { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.request-options { border: 1px solid var(--soft-line); border-radius: 16px; padding: 12px; margin-bottom: 20px; }
.purchase-modes { display: flex; gap: 4px; padding: 4px; background: #f0f3f6; border-radius: 12px; }
.purchase-modes button { flex: 1; background: transparent; border: 0; border-radius: 9px; min-height: 44px; color: var(--ink); font-weight: 600; }
.purchase-modes button:hover { background: #e5ebf0; }
.purchase-modes button[aria-pressed=true] { background: white; box-shadow: var(--shadow-small); }
.delivery-note { display: flex; align-items: center; gap: 9px; font-size: .8125rem; line-height: 1.5; }
.purchase-modes:not([hidden]) + .delivery-note { margin-top: 12px; }
.delivery-note .icon { color: var(--action); width: 22px; height: 22px; }
.card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; margin-top: auto; }
.card-actions .button { border-radius: 13px; font-size: .9375rem; min-height: 52px; padding: 12px 14px; }
.quick-specs { display: contents; }
.quick-specs summary { display: flex; list-style: none; align-items: center; justify-content: center; gap: 4px; min-height: 52px; border: 1px solid var(--soft-line); border-radius: 13px; padding: 10px 12px; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.quick-specs summary::-webkit-details-marker { display: none; }
.quick-specs summary:hover { background: var(--surface); }
.quick-specs summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.quick-specs[open] summary .icon { transform: rotate(180deg); }
.quick-specs-content { grid-column: 1 / -1; padding-top: 12px; }
.quick-specs:not([open]) .quick-specs-content { display: none; }
.quick-specs-content dl { margin: 0 0 12px; font-size: .8125rem; }
.quick-specs-content dl > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; border-bottom: 1px solid var(--soft-line); padding: 10px 0; }
.quick-specs-content > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; font-weight: 600; }
.catalog-note { background: white; border-radius: 18px; }
.full-photo, .features { border-radius: 20px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-raised); border-color: transparent; }
}
@media (max-width: 1100px) {
  .product-grid, .related .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collections button { padding: 20px; }
  .filter-top { flex-wrap: wrap; }
  .filter-top label:first-child { flex-basis: 45%; }
}
@media (max-width: 800px) {
  .collections { gap: 12px; }
  .collections button { padding: 18px; }
  .collections button strong { font-size: 1.1rem; }
  .collections .collection-subtitle { font-size: .875rem; }
  .collection-icon .icon { width: 36px; height: 36px; }
  .collections .collection-icon { width: 50px; height: 50px; border-radius: 14px; }
  .filter-panel { padding: 22px; }
  .card-copy { padding: 20px; }
  .card-image { padding-inline: 22px; }
  .card-image img, .related .card-image img { height: 240px; }
}
@media (max-width: 640px) {
  .collections { grid-template-columns: 1fr; }
  .collections button { display: grid; grid-template-columns: 52px minmax(0, 1fr) 28px; gap: 0 14px; padding: 18px; border-radius: 18px; }
  .collections .collection-top { display: contents; }
  .collections .collection-icon { grid-column: 1; grid-row: 1 / 4; align-self: center; }
  .collections .selection-mark { grid-column: 3; grid-row: 1; width: 24px; height: 24px; }
  .collections button strong { grid-column: 2; grid-row: 1; max-width: none; font-size: 1.125rem; text-wrap: balance; }
  .collections .collection-subtitle { grid-column: 2 / 4; grid-row: 2; margin: 7px 0 10px; max-width: 34ch; }
  .collections .collection-bottom { grid-column: 2 / 4; grid-row: 3; }
  .collections .collection-bottom small { grid-area: auto; font-size: .75rem; }
  .collection-heading { align-items: start; flex-wrap: wrap; gap: 8px; }
  .collection-heading h3 { font-size: 1.5rem; }
  .collection-heading .reset { min-height: 44px; padding: 0; font-size: .875rem; }
  .collection-description { margin-top: 4px; font-size: .9375rem; }
  .filter-top { gap: 14px 8px; }
  .filter-top label:first-child { flex-basis: 100%; }
  .filter-top label:nth-child(2) { flex: 1; width: auto; min-width: 140px; }
  .filter-top .reset { font-size: .8125rem; }
  .filter-groups { gap: 6px; }
  .filter-label { flex-basis: 100%; margin: 0 0 5px; }
  .filter-groups button { padding-inline: 12px; font-size: .875rem; }
  .product-grid, .related .product-grid { grid-template-columns: 1fr; gap: 24px; }
  .card-copy { padding: 24px; }
  .card-copy h3 { font-size: 1.5rem; min-height: 0; }
  .card-image img, .related .card-image img { height: 270px; }
  .dimension-tiles > div { padding: 12px 14px; }
  .results-bar { display: block; }
}
@media (max-width: 380px) {
  .collections button { grid-template-columns: 42px minmax(0, 1fr) 24px; gap: 0 10px; padding: 16px; }
  .collections .collection-icon { width: 42px; height: 48px; }
  .filter-panel { padding: 18px; }
  .filter-top label:nth-child(2) { flex-basis: 100%; }
  .filter-groups button { padding-inline: 10px; }
  .card-copy { padding: 20px; }
  .card-copy h3 { font-size: 1.35rem; }
  .card-badges { padding-inline: 12px; gap: 5px; }
  .capacity-tag, .orientation-tag { padding-inline: 7px; font-size: .6875rem; }
  .dimension-tiles { gap: 6px; }
  .dimension-tiles > div { padding: 10px; }
  .dimension-tiles dd { font-size: 1.3rem; }
  .card-meta { gap: 6px; }
  .material-tag { font-size: .6875rem; }
}
@media print {
  body { background: white; }
  .related { display: none; }
}
@media (max-width: 480px) {
  .filter-segments { width: 100%; }
  .filter-segments button { flex: 1 1 calc(50% - 4px); }
}
