.collection-page { --collection-gap: 12px; padding-bottom: 72px; }
.collection-tabs { padding: 16px 30px; border-bottom: 1px solid #ededed; overflow-x: auto; display: flex; gap: 8px; scrollbar-width: none; }
.collection-tabs button { flex: none; padding: 10px 20px; border: 1px solid #e8e8e8; border-radius: 24px; background: #f5f5f5; text-transform: uppercase; font-size: 11px; font-weight: 700; white-space: nowrap; }
.collection-tabs button[aria-pressed="true"] { background: #111; border-color: #111; color: #fff; }
.collection-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 0 30px; }
.collection-sidebar { padding-top: 28px; }
.collection-promo { border: 1px solid #e6e6e6; border-radius: 14px; padding: 22px 16px; background: linear-gradient(135deg,#f0f4ff,#fff 65%); }
.collection-promo h2 { font-size: 13px; text-align: center; letter-spacing: .6px; }
.collection-promo-offers { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 20px; text-align: center; }
.collection-promo-offers span { font-size: 11px; color: #666; display: block; }
.collection-promo-offers strong { white-space: nowrap; font-size: 16px; color: #0e42de; display: block; }
.collection-promo p { text-align: center; font-size: 11px; color: #666; margin: 16px 0 0; }
.collection-mobile-promo, .collection-filter-open { display: none; }
.collection-filter-group { border-bottom: 1px solid #e5e5e5; padding: 20px 0; }
.collection-filter-group summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.collection-filter-group summary::-webkit-details-marker { display: none; }
.collection-filter-group summary::after { content: '+'; font-weight: 400; font-size: 20px; line-height: 1; }
.collection-filter-group[open] summary::after { content: '−'; }
.collection-filter-options { max-height: 220px; overflow-y: auto; padding: 14px 2px 2px; scrollbar-width: thin; }
.collection-filter-options label { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 12px; cursor: pointer; }
.collection-filter-options label[hidden] { display: none; }
.collection-filter-options input { appearance: auto; width: 16px; height: 16px; margin: 0; accent-color: #0e42de; flex: none; }
.collection-filter-options label:has(input:disabled) { opacity: .4; }
.collection-filter-count { color: #888; margin-left: auto; }
.collection-team-search { display: block; width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 10px 12px; font-size: 12px; margin-top: 16px; background: #fff; }
.collection-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e5e5e5; margin-bottom: 20px; }
.collection-result-count { font-size: 12px; color: #777; }
.collection-sort { position: relative; z-index: 5; }
.collection-sort summary { cursor: pointer; display: flex; align-items: center; gap: 12px; list-style: none; font-size: 12px; min-height: 44px; }
.collection-sort summary::-webkit-details-marker { display: none; }
.collection-sort small { font-size: 10px; font-weight: 700; }
.collection-sort .icon { width: 14px; height: 14px; }
.collection-sort-menu { position: absolute; right: 0; top: 100%; width: 230px; background: #fff; border: 1px solid #e5e5e5; box-shadow: 0 8px 24px #0001; padding: 8px; }
.collection-sort-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; font-size: 12px; }
.collection-sort-menu button:hover, .collection-sort-menu button[aria-pressed="true"] { background: #f2f4fc; color: #0e42de; }
.collection-active { display: flex; flex-wrap: wrap; gap: 8px; }
.collection-active:has(button) { margin: 0 0 18px; }
.collection-active button { background: #f3f3f3; border: 1px solid #e7e7e7; border-radius: 4px; padding: 7px 10px; font-size: 11px; }
.collection-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px var(--collection-gap); }
.collection-grid > .product { width: auto; max-width: none; min-width: 0; }
.collection-grid .product .product-visual { width: 100%; aspect-ratio: 2 / 3; margin: 0; }
.collection-grid .product .product-title { font-size: 13px; font-weight: 500; line-height: 20px; min-height: 40px; }
.collection-grid .product .price { font-size: 14px; margin-top: 8px; }
.collection-grid .product .price del { font-size: 11px; }
.collection-pagination { text-align: center; padding: 44px 0 20px; }
.collection-pagination p { font-size: 12px; color: #777; margin: 0 0 16px; }
.collection-progress { width: 210px; height: 2px; background: #e7e7e7; margin: 0 auto 24px; }
.collection-progress span { height: 100%; display: block; background: #111; }
.collection-load-more, .collection-empty button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 200px; background: #111; color: #fff; padding: 12px 28px; font-size: 12px; font-weight: 700; }
.collection-load-more:hover, .collection-empty button:hover { background: #0e42de; }
.collection-empty { padding: 80px 20px; text-align: center; }
.collection-empty p { color: #777; margin-bottom: 20px; }
.collection-contact { margin: 42px 30px 0; padding: 42px 20px; background: #f5f5f5; text-align: center; }
.collection-contact h2 { font-size: 22px; }
.collection-contact p { color: #666; font-size: 13px; margin: 12px auto 22px; }
.collection-contact a { display: inline-block; font-size: 12px; font-weight: 700; border-bottom: 1px solid; padding-bottom: 4px; }
.collection-filter-dialog { border: 0; position: fixed; inset: 0 auto 0 0; margin: 0; width: min(380px,90vw); max-width: none; height: 100dvh; max-height: 100dvh; padding: 0; }
.collection-filter-dialog::backdrop { background: #0007; }
.collection-filter-dialog[open] { display: flex; flex-direction: column; }
.collection-filter-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e5e5e5; }
.collection-filter-dialog header h2 { font-size: 18px; }
.collection-filter-dialog header button { width: 32px; height: 32px; display: grid; place-items: center; }
.collection-filter-dialog-body { padding: 0 24px; overflow-y: auto; flex: 1; }
.collection-filter-dialog footer { display: flex; gap: 12px; border-top: 1px solid #e5e5e5; padding: 16px; }
.collection-filter-clear { font-size: 12px; text-decoration: underline; min-width: 70px; }
.collection-filter-apply { flex: 1; background: #111; color: #fff; min-height: 44px; font-size: 12px; font-weight: 700; }
@media(min-width:1280px) { .collection-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media(max-width:1100px) and (min-width:768px) { .collection-layout { grid-template-columns: 220px minmax(0,1fr); gap: 20px; } .collection-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:767px) {
 .collection-mobile-promo { display: block; margin: 12px 16px; }
 .collection-promo { padding: 14px 12px; }
 .collection-promo h2 { font-size: 11px; }
 .collection-promo-offers { margin-top: 10px; }
 .collection-promo-offers strong { font-size: 20px; }
 .collection-promo p { margin-top: 8px; font-size: 10px; }
 .collection-tabs { padding: 12px 16px; }
 .collection-tabs button { padding: 8px 18px; }
 .collection-layout { display: block; padding: 0 16px; }
 .collection-sidebar { display: none; }
 .collection-toolbar { min-height: 50px; margin-bottom: 20px; }
 .collection-result-count { display: none; }
 .collection-filter-open { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; min-height: 44px; }
 .collection-filter-open .icon { width: 16px; height: 16px; }
 .collection-sort summary { font-size: 11px; gap: 7px; }
 .collection-sort small { font-size: 10px; }
 .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 12px; }
 .collection-grid .product .product-title { font-size: 12px; line-height: 18px; min-height: 36px; }
 .collection-grid .product .price { font-size: 14px; gap: 7px; }
 .collection-contact { margin: 24px 16px 0; padding: 30px 18px; }
 .collection-contact h2 { font-size: 20px; }
}
.collection-page-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.collection-contact .icon { width: 15px; height: 15px; display: inline; vertical-align: middle; margin-left: 6px; }
.collection-page [hidden] { display: none !important; }

.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-color: #0e42de; text-decoration-thickness: 2px; }

/* Reserve the collection layout without briefly displaying stale products. */
.collection-load-status { margin: 12px 0 20px; color: #666; font-size: 13px; }
.collection-load-status[hidden] { display: none; }
.collection-load-status button { margin-left: 6px; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
.collection-placeholder { min-width: 0; }
.collection-placeholder > div { aspect-ratio: 2 / 3; border-radius: 10px; background: #f3f3f3; }
.collection-placeholder > span { display: block; width: 70%; height: 12px; margin-top: 14px; border-radius: 3px; background: #f3f3f3; }

/* Current first-page cards remain usable while full-catalog controls prepare. */
.collection-toolbar[inert], .collection-tabs[inert], #collection-filters[inert] { opacity: .55; }
