.product-photo-link { display: block; cursor: zoom-in; }
.product-photo-link:focus-visible { outline: 2px solid var(--rust); outline-offset: -2px; }
button.product-photo-link { padding: 0; font: inherit; cursor: pointer; }
.product-dialog { width: min(1040px, 94vw); max-width: 94vw; max-height: 92vh; max-height: 92dvh; margin: auto; padding: 0; background: var(--cream); color: var(--ink); border: 1px solid var(--bgold); border-radius: 5px; }
.product-dialog::backdrop { background: rgb(20 24 19 / 85%); }
.product-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 10px 28px; background: var(--cream); border-bottom: 1px solid var(--bgold); }
.product-dialog-header span { font-size: 11px; color: var(--ink2); }
.product-dialog-header button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font: 30px Arial, sans-serif; cursor: pointer; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 28px; }
.product-detail-text-only { grid-template-columns: minmax(0, 1fr); max-width: 700px; margin: auto; }
.product-detail-image-link { display: block; aspect-ratio: 4 / 5; background: var(--parchment); }
.product-detail-image { width: 100%; height: 100%; object-fit: contain; }
.product-detail-thumbnails { display: flex; gap: 10px; margin-top: 12px; }
.product-detail-thumb { width: 62px; height: 72px; border: 1px solid var(--bgold); padding: 3px; background: var(--parchment); cursor: pointer; }
.product-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-thumb[aria-pressed=true] { border-color: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
.product-detail-info .eyebrow { margin-bottom: 14px; }
.product-dialog-title { font-size: 36px; line-height: 1.1; margin-bottom: 18px; }
.product-detail-info .product-price { color: var(--rust); font: 700 20px/1.15 Arial, sans-serif; }
.product-design-summary { color: var(--ink2); font-size: 14px; line-height: 1.6; }
.product-stock-title { margin: 24px 0 10px; font-size: 22px; }
.product-photo-caption { margin-top: 10px; color: var(--ink2); font-size: 13px; }
.product-variants { min-width: 0; border: 0; padding: 0; margin: 0 0 14px; }
.product-variants h3 { margin: 8px 0; font-size: 19px; }
.product-variant {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: 8px; min-height: 44px; padding: 6px 8px; border-bottom: 1px solid var(--bgold);
    color: var(--ink); font-size: 13px; line-height: 1.35; cursor: pointer;
}
.product-variant:has(input:checked) { background: var(--parchment2); }
.product-variant:has(input:disabled) { cursor: default; color: var(--ink2); }
.product-variant input { margin: 0; accent-color: var(--rust); }
.stock-badge { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 11px; line-height: 1.4; }
.stock-available { color: #285233; background: #e3eee2; }
.stock-unavailable { color: #7b3429; background: #f3e1dc; }
.stock-unknown { color: var(--ink2); background: var(--parchment2); }
.product-detail-select { margin-top: 24px; width: 100%; }
.product-detail-select:disabled { background: var(--parchment2); color: var(--ink2); cursor: default; }
.product-custom-link { display: inline-block; margin-top: 14px; color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.custom-order-section { background: var(--cream); }
.custom-order-intro { max-width: 720px; margin: 20px 0 36px; color: var(--ink2); font-size: 16px; }
.custom-order-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 60px; }
.custom-order-steps { list-style: none; padding: 0; counter-reset: order-step; }
.custom-order-steps li { position: relative; padding: 0 0 30px 52px; counter-increment: order-step; }
.custom-order-steps li::before { content: '0' counter(order-step); position: absolute; left: 0; top: 0; color: var(--rust); font: 28px 'Cormorant Garamond', Georgia, serif; }
.custom-order-steps h3 { font-size: 28px; margin-bottom: 10px; }
.custom-order-steps p { color: var(--ink2); font-size: 14px; line-height: 1.8; }
.custom-order-summary { align-self: start; padding: 30px; background: var(--parchment2); }
.custom-order-summary h3 { font-size: 32px; margin-bottom: 16px; }
.custom-order-summary p { color: var(--ink2); font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
.custom-order-summary .btn-primary { margin: 8px 0 18px; }
.custom-order-phone { display: block; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
    .product-detail-layout, .custom-order-layout { grid-template-columns: 1fr; gap: 28px; }
    .product-detail-layout { padding: 20px; }
    .product-dialog-title { font-size: 32px; }
    .product-dialog-header { padding-left: 20px; }
    .product-detail-image-link { max-height: 440px; }
    .custom-order-summary { padding: 24px; }
}

/* Compact catalog previews; full information remains in the product dialog. */
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.product-card .product-img, .product-card .product-placeholder { aspect-ratio: 1; width: 100%; height: auto; }
.product-card .product-img { object-fit: contain; }
.product-card .product-info { padding-top: 12px; }
.product-card .product-type { margin-bottom: 7px; font-size: 9px; }
.product-card .product-name { font-size: 21px; line-height: 1.15; min-height: 2.3em; margin-bottom: 8px; }
.product-card .product-dimensions { font-size: 11px; line-height: 1.5; margin-bottom: 8px; }
.product-card .product-photo-thumbs { display: none; }
.product-card .product-price { margin-bottom: 8px; color: var(--rust); font: 700 clamp(17px, 1.75vw, 24px)/1.15 Arial, sans-serif; }
.product-card .product-availability { margin-bottom: 8px; font-size: 11px; }
.product-card .btn-add { font-size: 11px; padding: 8px 12px; }
@media (max-width: 1050px) and (min-width: 761px) {
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
    .product-card .product-name { font-size: 19px; }
}
