/* Database-backed collection and category pages share the institutional site's shell. */
.sgc-container { width: min(1224px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 72px; }
.sgc-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; color: #b8afa1; font-size: 13px; }
.sgc-breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: #756b5a; }
.sgc-breadcrumbs a { text-decoration: none; }
.sgc-breadcrumbs a:hover { color: #b99a63; }
.sgc-heading { max-width: 840px; margin: 52px auto; text-align: center; }
.sgc-eyebrow { color: #b99a63; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.sgc-heading h1 { margin: 12px 0 20px; color: #b99a63; font: 700 clamp(34px, 4vw, 52px)/1.2 'Playfair Display', Georgia, serif; overflow-wrap: anywhere; }
.sgc-heading > p:not(.sgc-eyebrow) { color: #d0c8ba; line-height: 1.7; white-space: pre-line; }
/* The shared site header loads the builder stylesheet, which zeroes paragraph margins. */
.sgc-heading > .sgc-eyebrow { margin: 1em 0; }
.sgc-heading > p:not(.sgc-eyebrow):not(.sgc-selection-hint) { margin: 1em 0; }
.sgc-selection-hint { max-width: 620px; margin: 24px auto 0; font-size: 14px; }
.sgc-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sgc-category-card { position: relative; isolation: isolate; display: flex; min-height: 420px; overflow: hidden; align-items: end; border-radius: 20px; background: #2a2823; text-decoration: none; }
.sgc-category-card > img, .sgc-image-placeholder { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sgc-image-placeholder { background: linear-gradient(145deg, #575043, #24231f); }
.sgc-category-card::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(transparent, rgb(0 0 0 / 85%)); content: ''; }
.sgc-category-card__body { width: 100%; padding: 30px; }
.sgc-category-card h2 { margin: 0 0 12px; font: 700 34px/1.2 'Playfair Display', Georgia, serif; overflow-wrap: anywhere; }
.sgc-category-card p { margin: 0 0 20px; color: #f4f2ee; font-size: 14px; }
.sgc-category-card__more { display: inline-flex; gap: 12px; font-size: 14px; font-weight: 700; }
.sgc-count { margin: 0 0 20px; color: #b8afa1; font-size: 14px; }
.sgc-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.sgc-product { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #3c362d; border-radius: 16px; background: #242424; scroll-margin-top: 110px; }
.sgc-product__image { flex-shrink: 0; aspect-ratio: 1; overflow: hidden; background: #2e2c27; }
.sgc-product__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sgc-product__body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 20px; }
.sgc-product h2 { margin: 0 0 12px; font: 400 24px/1.3 'Playfair Display', Georgia, serif; overflow-wrap: anywhere; }
.sgc-product__attributes { margin: 0 0 12px; color: #b99a63; font-size: 12px; }
.sgc-product__description { margin: 0 0 20px; color: #c5bfb3; font-size: 13px; white-space: pre-line; }
.sgc-product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin-top: auto; }
.sgc-product__actions [hidden] { display: none; }
.sgc-add { max-width: 100%; padding: 10px 18px; border: 1px solid #b99a63; border-radius: 24px; background: transparent; color: #f4f2ee; font: 700 13px/1.4 'Open Sans', Arial, sans-serif; cursor: pointer; }
.sgc-add:hover { background: #b99a63; color: #1c1c1c; }
.sgc-add[data-selected='true'] { background: #b99a63; color: #1c1c1c; }
.sgc-remove { border-color: #776a55; color: #d0c8ba; }
.sgc-remove:hover { border-color: #b99a63; }
.sgc-empty { margin: 64px 0; text-align: center; color: #c5bfb3; }
.sgc-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #3c362d; font-size: 14px; }
.sgc-pagination a { padding: 8px; }
.sgc-category-card:focus-visible, .sgc-add:focus-visible, .sgc-pagination a:focus-visible { outline: 2px solid #b99a63; outline-offset: 4px; }
@media (max-width: 1000px) { .sgc-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sgc-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .sgc-container { width: calc(100% - 32px); padding-top: 20px; } .sgc-heading { margin: 32px auto; } .sgc-categories { grid-template-columns: 1fr; } .sgc-category-card { min-height: 420px; } .sgc-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } .sgc-product__body { padding: 14px; } .sgc-product h2 { font-size: 20px; } .sgc-add { padding: 9px 12px; } }
@media (max-width: 370px) { .sgc-products { grid-template-columns: 1fr; } }
