.catalog-nav { display: flex; align-items: center; gap: 32px; font-size: .875rem; }
.catalog-nav a { text-decoration: none; }
.cart-toggle { border: 1px solid var(--ink); padding: 12px 18px; background: transparent; font: inherit; cursor: pointer; min-height: 46px; }
.cart-toggle span { margin-left: 10px; font-variant-numeric: tabular-nums; }
.catalog-main { padding: 25px 4.5vw 80px; min-height: 65vh; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.catalog-heading .back-link { margin-bottom: 28px; }
.catalog-heading h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); }
.catalog-heading > p { color: var(--muted); line-height: 1.6; font-size: 1rem; padding-bottom: 4px; }
.catalog-filters { display: grid; grid-template-columns: minmax(240px,1fr) minmax(180px,.45fr) minmax(170px,.4fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalog-filters label { display: flex; flex-direction: column; gap: 9px; font-size: .875rem; }
.catalog-filters select { width: 100%; min-height: 48px; background: var(--paper); border: 1px solid #929489; border-radius: 0; padding: 12px; font: 1rem var(--sans); color: var(--ink); }
.catalog-filters input { background: var(--paper); }
.results-bar { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 20px; color: var(--muted); font-size: .875rem; }
.results-bar button, .text-button { border: 0; border-bottom: 1px solid currentColor; padding: 10px 0; background: transparent; color: var(--ink); cursor: pointer; font: .875rem var(--sans); min-height: 44px; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: 26px; row-gap: 44px; }
.product-card { min-width: 0; display: flex; flex-direction: column; }
.product-details { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.product-drawing { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.15; padding: 26px; background: #fff; margin-bottom: 18px; overflow: hidden; }
.product-drawing img { width: 100%; height: 100%; object-fit: contain; }
.product-drawing.product-sample { padding: 0; }
.product-sample img { object-fit: cover; }
.drawing-unavailable { font-size: .875rem; line-height: 1.6; max-width: 18ch; color: var(--muted); text-align: center; }
.product-details:hover .product-drawing { background: #f0efea; }
.product-details:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.product-sku { display: block; font-size: .8125rem; margin-bottom: 6px; color: var(--muted); }
.product-card h2 { font-size: 1.8rem; line-height: 1.08; letter-spacing: -.015em; }
.product-dimensions { display: block; font-size: .875rem; color: var(--muted); line-height: 1.65; margin-top: 10px; }
.product-actions { border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-details { margin-bottom: 18px; }
.product-stock { font-size: .8125rem; line-height: 1.5; }
.product-stock span { color: var(--muted); display: block; }
.add-button { padding: 10px 12px; min-height: 44px; background: transparent; border: 1px solid var(--ink); color: var(--ink); cursor: pointer; font: .8125rem var(--sans); }
.add-button:hover { color: var(--paper); background: var(--ink); }
.add-button:disabled { opacity: .5; cursor: default; }
.catalog-empty { padding: 55px 0; }
.catalog-empty h2 { font-size: 2.75rem; margin-bottom: 12px; }
.catalog-empty p { color: var(--muted); line-height: 1.6; }
.catalog-empty button { margin-top: 20px; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--line); width: min(960px,calc(100vw - 40px)); max-height: calc(100svh - 40px); padding: 28px; overflow-y: auto; }
dialog::backdrop { background: rgb(20 23 18 / 55%); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; font-size: .875rem; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-image { background: #fff; padding: 30px; display: flex; align-items: center; justify-content: center; }
.detail-image img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.detail-sample { padding: 0; background: transparent; }
.detail-sample img { max-height: 560px; }
.detail-copy h2 { font-size: 3rem; line-height: 1.06; }
.detail-copy .product-sku { font-size: 1rem; margin: 12px 0 18px; }
.detail-copy dl { margin: 20px 0; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .875rem; line-height: 1.5; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; text-align: right; }
.spec-note { font-size: .875rem; line-height: 1.6; color: var(--muted); margin: 16px 0; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.detail-actions a { font-size: .875rem; }
.cart-dialog { max-width: 640px; }
.cart-dialog h2 { font-size: 2.75rem; }
.cart-row { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) 82px auto; gap: 20px; align-items: center; }
.cart-row h3 { font: 400 1.6rem/1.1 var(--serif); margin: 0 0 8px; }
.cart-row p { font-size: .8125rem; color: var(--muted); }
.cart-row label { font-size: .75rem; display: flex; flex-direction: column; gap: 7px; }
.cart-row input { padding: 8px; min-height: 42px; }
.cart-row .text-button { margin-top: 19px; }
.cart-footer { margin-top: 24px; }
.cart-footer p { margin-bottom: 20px; font-size: .875rem; color: var(--muted); }
.cart-announcement { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 14px 22px; background: var(--ink); color: var(--paper); font-size: .875rem; z-index: 3; max-width: calc(100vw - 32px); }
.cart-announcement:empty { display: none; }
[hidden] { display: none !important; }
select:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
@media (max-width: 1180px) { .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 850px) { .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .catalog-heading > p { display: none; } .catalog-filters { gap: 16px; grid-template-columns: 1fr 1fr; } .search-field { grid-column: 1 / -1; } .detail-layout { gap: 24px; } .detail-copy h2 { font-size: 2.5rem; } }
@media (max-width: 600px) { .site-header { flex-wrap: wrap; } .catalog-nav { gap: 14px; width: 100%; justify-content: space-between; } .catalog-nav > a:not(.studio-link) { display: none; } .catalog-main { padding-inline: 24px; } .product-grid { gap: 30px 18px; } .product-drawing { padding: 16px; } .product-card h2 { font-size: 1.55rem; } .product-actions { align-items: start; flex-direction: column; } .add-button { width: 100%; } .detail-layout { grid-template-columns: 1fr; } .detail-image img { max-height: 260px; } dialog { padding: 20px; } .cart-row { grid-template-columns: minmax(0,1fr) 70px; gap: 12px; } .cart-row .text-button { grid-column: 1 / -1; justify-self: start; margin: 0; } }
@media (max-width: 360px) { .product-grid { grid-template-columns: 1fr; } .catalog-filters { grid-template-columns: 1fr; } }
