/* A consistent gallery rhythm across the home edit, catalogue and preview. */
.collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.selected-section { padding-top: 0; }
.selected-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.selected-grid .product-info { flex-direction: column; gap: 12px; }
.selected-grid .product-info h2 { font-size: 16px; }
.product-image { display: block; }
.product-image img { aspect-ratio: 4 / 3; object-fit: contain; background: #f0f2f3; }
.product-preview-icon { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 32px; height: 32px; background: #fffffff0; font-size: 21px; font-weight: 300; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.product-grid .product-info { flex-direction: column; gap: 10px; }
.product-grid .product-info h2 { font-size: 17px; }
.inquire-link { display: inline-flex; align-items: center; min-height: 38px; }
.catalogue-search-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-top: 22px; }
.catalogue-search-row .search-label { width: 290px; max-width: 100%; }
.type-label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.type-label select { width: 230px; max-width: 100%; min-height: 42px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: 12px; letter-spacing: 0; padding: 5px 22px 5px 0; }
.catalogue-search-row input { min-height: 42px; }
.filter-button { min-height: 44px; }
.load-more-wrap { padding-top: 55px; text-align: center; }
.load-more-wrap .small { margin: 14px 0 0; }
body.preview-open { overflow: hidden; }
.product-dialog { width: min(1140px, calc(100% - 70px)); max-height: calc(100svh - 70px); padding: 0; border: 0; color: var(--ink); background: var(--paper); overflow: auto; }
.product-dialog[open] { display: grid; grid-template-columns: 1.4fr 1fr; }
.product-dialog::backdrop { background: #20242780; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 2; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: #fffffff2; color: var(--ink); font-size: 29px; font-weight: 300; }
.dialog-image { display: flex; align-items: center; background: #f0f2f3; min-height: 450px; }
.dialog-image img { width: 100%; height: 100%; max-height: 75svh; object-fit: contain; }
.dialog-copy { align-self: center; padding: 68px 42px 55px; }
.dialog-copy .eyebrow { margin-bottom: 16px; }
.dialog-copy h2 { font-size: 33px; font-weight: 300; line-height: 1.2; }
.dialog-copy > p:not(.eyebrow) { font-size: 12px; line-height: 1.85; color: var(--muted); }
.dialog-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 28px; }
.dialog-actions .button { gap: 18px; }
@media (max-width: 1100px) { .selected-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } }
@media (max-width: 800px) {
  .collection-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-dialog[open] { grid-template-columns: 1fr; }
  .dialog-image { min-height: 0; }
  .dialog-image img { max-height: 45svh; height: auto; }
  .dialog-copy { padding: 30px; }
  .dialog-copy h2 { font-size: 28px; margin-bottom: 18px; }
}
@media (max-width: 540px) {
  .selected-grid { gap: 28px 14px; }
  .selected-grid .product-info h2, .product-grid .product-info h2 { font-size: 13px; }
  .product-grid { gap: 29px 14px; }
  .product-image img { aspect-ratio: 1 / 1; }
  .selected-section { padding-top: 0; }
  .product-preview-icon { right: 8px; bottom: 8px; width: 26px; height: 26px; font-size: 18px; }
  .inquire-link { min-height: 44px; }
  .catalogue-search-row { align-items: stretch; flex-direction: column; gap: 18px; }
  .catalogue-search-row .search-label, .type-label select { width: 100%; }
  .type-label select { font-size: 16px; }
  .product-dialog { width: calc(100% - 26px); max-height: calc(100svh - 26px); }
  .dialog-copy { padding: 26px 22px; }
  .dialog-close { right: 7px; top: 7px; }
  .dialog-actions { gap: 15px; }
}
