/* Photo cards for the searchable catalog; shared product data and routes stay intact. */
.catalog-page .catalog-hero{padding:34px 5vw 28px}
.catalog-page .catalog-hero h1{font-size:48px}
.catalog-page .catalog-hero>p:not(.eyebrow):not(.price-date){font-size:16px;margin:13px 0 21px}
.catalog-page .catalog-controls{display:block;max-width:780px}
.catalog-page .catalog-controls input{min-height:48px}
.catalog-page .catalog-hero .price-date{font-size:14px}
.catalog-page .catalog-hero>p:last-child{margin:15px 0 0!important}
.catalog-page .catalog-hero .button{min-height:44px;font-size:14px}
.catalog-page .catalog-results{display:grid;grid-template-columns:190px minmax(0,1fr);gap:32px;padding:36px 5vw 75px;max-width:1600px;margin:auto}
.catalog-page .category-sidebar{position:sticky;top:115px;align-self:start;min-width:0}
.catalog-page .category-sidebar summary{font-weight:650;font-size:15px;margin:3px 0 22px;cursor:pointer;color:#264735}
.catalog-page .category-sidebar nav{display:flex;flex-direction:column;gap:5px}
.catalog-page .category-sidebar nav button{display:flex;justify-content:space-between;gap:12px;text-align:left;align-items:center;min-height:44px;padding:11px 12px;background:transparent;border:1px solid transparent;color:#52665a;font-size:14px;cursor:pointer;border-radius:4px}
.catalog-page .category-sidebar nav button span{font-size:12px;color:#617267}
.catalog-page .category-sidebar nav button:hover{background:#ebf0e7}
.catalog-page .category-sidebar nav button[aria-pressed="true"]{background:#e4ece0;color:#244a35;border-color:#d6e0d1;font-weight:650}
.catalog-page .category-sidebar button:focus-visible,.catalog-page .sort-label select:focus-visible,.catalog-page .product-thumb:focus-visible,.catalog-page .product-detail-link:focus-visible,.catalog-page .product-actions .button:focus-visible{outline:3px solid #b77727;outline-offset:4px}
.catalog-page .more-ranges{margin-top:25px;border-top:1px solid #d4ddce;padding-top:17px}
.catalog-page .more-ranges p{font-size:13px;color:#617267;margin-bottom:15px}
.catalog-page .more-ranges a{display:block;text-decoration:none;font-size:14px;color:#42634f;line-height:1.6;margin:12px 0;min-height:44px}
.catalog-page .results-bar{margin:0 0 24px;gap:16px;flex-wrap:wrap}
.catalog-page .results-bar h2{font-size:28px;letter-spacing:-.035em;margin:0;font-weight:550;color:#284834}
.catalog-page .results-bar p{font-size:14px;font-weight:400;color:#617267;margin:6px 0 0}
.catalog-page .results-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.catalog-page .results-bar button{font-size:14px;font-weight:500;color:#42634f;min-height:44px}
.catalog-page .sort-label{font-size:14px;color:#52665a;display:flex;align-items:center;gap:10px}
.catalog-page .sort-label select{min-height:44px;max-width:100%}
.catalog-page .sort-label select{border:1px solid #ced8cb;background:#fff;color:#294f3c;padding:0 12px;border-radius:4px;font:inherit}
.catalog-page .roofing-tools{padding:15px 0;margin:0 0 18px}
.catalog-page .roofing-tools h2{font-size:22px}
.catalog-page .roofing-photo-note{font-size:14px;margin-top:8px;max-width:100%}

/* The ID scopes these rules above shared legacy row and typography styles. */
.catalog-page #product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch;border:0;border-radius:0;background:transparent}
.catalog-page #product-grid .product-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;min-height:0;padding:0;background:#fff;overflow:hidden;border:1px solid #dce3d8;border-radius:8px;box-shadow:none;transition:border-color .18s ease,box-shadow .18s ease}
.catalog-page #product-grid .product-card:hover,.catalog-page #product-grid .product-card:focus-within{border-color:#9caf9e;box-shadow:0 8px 24px #173b300b}
.catalog-page #product-grid .product-thumb{position:relative;width:100%;height:auto;min-width:0;min-height:0;aspect-ratio:4/3;flex:none;box-sizing:border-box;overflow:hidden;margin:0;border:0;border-bottom:1px solid #e8ece4;border-radius:0;background:#fff;cursor:zoom-in}
.catalog-page #product-grid .product-thumb:focus-visible{outline-offset:-5px}
/* Remove intrinsic photo dimensions from the frame's aspect-ratio calculation. */
.catalog-page #product-grid .thumb-small{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.catalog-page #product-grid .thumb-small .catalog-panel-sample{width:100%;height:100%;padding:18px;margin:0;box-sizing:border-box;border:0;display:flex;align-items:center;justify-content:center;gap:0;background:#fff}
.catalog-page #product-grid .thumb-small .catalog-panel-sample>img{width:100%;height:100%;min-width:0;min-height:0;max-height:100%;aspect-ratio:auto;object-fit:contain;padding:0;background:#fff;border-radius:0}
.catalog-page #product-grid .thumb-small .catalog-panel-sample figcaption{display:none}
.catalog-page #product-grid .thumb-small .roof-sample-window{height:100%;width:100%;aspect-ratio:auto}
.catalog-page #product-grid .thumb-small .door-image-window{width:100%;height:100%;aspect-ratio:auto;background:#fff}
.catalog-page #product-grid .thumb-small .door-image-window>svg{width:100%;height:100%}
.catalog-page #product-grid .enlarge-mark{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:32px;height:32px;font-size:20px;line-height:1;color:#385b49;background:#fff;border:1px solid #dce3d8;border-radius:50%;pointer-events:none}
.catalog-page #product-grid .product-image-pending{height:100%;aspect-ratio:auto;padding:28px;margin:0;box-sizing:border-box;text-align:center;font-size:14px;line-height:1.5;border:0}
.catalog-page #product-grid .product-info{padding:22px;display:flex;flex:1;flex-direction:column;align-items:stretch;gap:0;min-width:0}
.catalog-page #product-grid .product-summary{display:flex;flex:1;flex-direction:column;min-width:0}
.catalog-page #product-grid .product-category{font-size:11px;font-weight:600;line-height:1.4;letter-spacing:.1em;margin:0;color:#607063}
.catalog-page #product-grid .product-card h2{font-size:21px;line-height:1.3;margin:8px 0 0;letter-spacing:-.025em;color:#173b30}
.catalog-page #product-grid .product-detail{font-size:13px;line-height:1.5;margin:8px 0 0;color:#607063}
.catalog-page #product-grid .product-description{font-size:14px;line-height:1.55;margin:10px 0 0;color:#52665a}
.catalog-page #product-grid .family-swatches{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:16px;margin-top:auto}
.catalog-page #product-grid .family-swatches img{width:24px;height:24px;flex:none;border-radius:50%;object-fit:cover;border:1px solid #d2dace}
.catalog-page #product-grid .product-price{font-size:20px;font-weight:650;line-height:1.4;letter-spacing:-.025em;margin:20px 0 16px;padding:0;color:#173b30;overflow-wrap:anywhere}
.catalog-page #product-grid .product-price small{display:block;font-size:13px;line-height:1.5;font-weight:400;letter-spacing:0;margin-top:4px;max-width:none;color:#607063}
.catalog-page #product-grid .product-actions{margin:0}
.catalog-page #product-grid .product-actions .button{display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;min-height:46px;padding:11px 16px;font-size:15px;line-height:1.4;border:1px solid #244c3c;border-radius:4px;background:#244c3c;color:#fff;box-shadow:none}
.catalog-page #product-grid .product-actions .button:hover{background:#173b30}
.catalog-page .empty-state{padding:45px 15px}
.catalog-page .empty-state h2{font-size:24px}

/* Large photos open the existing dialog by pointer, Enter or Space. */
.catalog-page #image-dialog{width:min(720px,90vw);max-height:90vh;padding:44px 22px 22px;border:1px solid #ccd8c3;border-radius:8px;background:#fff;color:#244c3c;overflow:auto;box-shadow:0 30px 80px #0005}
.catalog-page #image-dialog::backdrop{background:#142518ae}
.catalog-page #image-dialog h2{font-size:26px;line-height:1.3;letter-spacing:-.03em;margin:10px 0 22px}
.catalog-page #image-dialog .catalog-panel-sample{border:0;padding:0;background:transparent}
.catalog-page #image-dialog-media{width:100%}
.catalog-page .image-dialog-close{position:absolute;right:10px;top:8px;border:0;background:transparent;color:#3c573d;cursor:pointer;font-size:28px;line-height:1;min-height:44px;min-width:44px}

@media(max-width:1180px){
 .catalog-page .catalog-results{grid-template-columns:170px minmax(0,1fr);gap:24px}
 .catalog-page #product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
 .catalog-page .catalog-results{display:block;padding:24px 5vw 50px}
 .catalog-page .category-sidebar{position:static;margin:0 0 24px}
 .catalog-page .category-sidebar details{border:1px solid #d8e1d0;background:#edf2e7;padding:14px;border-radius:4px}
 .catalog-page .category-sidebar summary{margin:0;font-size:15px}
 .catalog-page .category-sidebar nav{margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:4px}
 .catalog-page .category-sidebar nav button{font-size:14px;min-height:44px;padding:9px 10px}
 .catalog-page .more-ranges{margin-top:10px;padding-top:8px}
 .catalog-page .more-ranges p{margin:3px 0 6px}
 .catalog-page .more-ranges a{display:inline-flex;align-items:center;margin:3px 14px 0 0}
 .catalog-page .results-bar h2{font-size:25px}
 .catalog-page #product-grid{gap:18px}
 .catalog-page #product-grid .product-info{padding:18px}
}
@media(max-width:600px){
 .catalog-page .catalog-hero{padding:26px 5vw}
 .catalog-page .catalog-hero h1{font-size:36px}
 .catalog-page .catalog-hero>p:not(.eyebrow):not(.price-date){font-size:15px}
 .catalog-page .results-actions{gap:14px;width:100%;justify-content:space-between}
 .catalog-page .sort-label{gap:8px}
 .catalog-page #product-grid{grid-template-columns:minmax(0,1fr);gap:22px}
 .catalog-page #product-grid .product-info{padding:22px}
 .catalog-page #product-grid .product-card h2{font-size:22px}
}
@media(prefers-reduced-motion:reduce){.catalog-page #product-grid .product-card{transition:none}}
