.catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.catalog-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; max-height: calc(100dvh - 40px); min-height: 0; }
.catalog-sidebar h2 { font-size: 20px; margin: 0 0 18px; }
.catalog-categories { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; scrollbar-width: thin; overscroll-behavior-y: contain; }
.catalog-categories button { flex-shrink: 0; }
.catalog-categories button { display: block; width: 100%; text-align: left; font: inherit; line-height: 1.4; color: #333; background: transparent; border: 0; border-left: 3px solid transparent; padding: 10px 12px; cursor: pointer; overflow-wrap: anywhere; }
.catalog-categories button:hover { background: #f5f5f5; }
.catalog-categories button[aria-current="true"] { background: #edf5e9; border-left-color: #5d9e45; color: #366f23; font-weight: 600; }
.catalog-categories button:focus-visible { outline: 2px solid #5d9e45; outline-offset: 2px; }
.catalog-category-mobile { display: none; }
.catalog-category-status { font-size: 14px; color: #666; }
.catalog-category-status:empty { display: none; }
.catalog-content { min-width: 0; }
.catalog-status { min-height: 24px; color: #666; font-size: 14px; margin: 0 0 16px; }
.catalog-search { display: flex; align-items: end; gap: 12px; margin-bottom: 12px; }
.catalog-search .icon-button { flex-shrink: 0; width: 50px; height: 50px; }
.catalog-search label { display: grid; gap: 8px; flex: 1; max-width: 540px; }
.catalog-search input { width: 100%; min-width: 0; padding: 12px; border: 1px solid #bdbdbd; border-radius: 4px; font: inherit; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.catalog-product { min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid #e0e0e0; padding-bottom: 20px; }
.catalog-product h2 { font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; margin: 16px 0 8px; }
.catalog-image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f5f5f5; }
.catalog-price { font-size: 20px; font-weight: 600; margin: 12px 0; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; min-height: 44px; }
.catalog-pagination button:disabled { opacity: .35; cursor: default; }
.catalog-pagination[hidden] { display: none; }
.catalog-empty { text-align: center; padding: 32px 0; }
.catalog-empty h2 { font-size: 24px; margin-top: 20px; }
.catalog-empty-image { width: 100%; max-width: 480px; height: 240px; object-fit: cover; margin-inline: auto; }
.catalog-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 60px; }
.catalog-detail-image { width: 100%; aspect-ratio: 1; object-fit: contain; }
.catalog-collections[hidden], .catalog-selection[hidden], #catalog-results[hidden], .catalog-status[hidden] { display: none; }
.catalog-collections { margin-bottom: 36px; }
.collection-shelf { padding: 0 0 28px; margin-bottom: 20px; border-bottom: 1px solid #ddd; min-width: 0; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 3px solid #79b957; padding: 16px 0; }
.collection-heading h2 { font-size: 24px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.collection-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.collection-tools .text-link { margin-right: 12px; font-size: 14px; }
.collection-tools button:disabled { opacity: .35; cursor: default; }
.collection-filters { display: flex; flex-direction: row; align-items: center; width: 100%; gap: 8px; overflow-x: auto; padding: 0 0 18px; margin: 0 0 4px; scrollbar-width: thin; }
.collection-filters button { flex-shrink: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 8px 12px; color: #444; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.collection-filters button[aria-pressed="true"] { border-bottom-color: #5d9e45; color: #366f23; background: #edf5e9; font-weight: 600; }
.collection-filters button:hover { background: #f1f5ee; }
.collection-filters button:focus-visible { outline: 2px solid #366f23; outline-offset: -2px; }
.collection-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #79b957 #f1f1f1; }
.collection-track:focus-visible { outline: 2px solid #5d9e45; outline-offset: 4px; }
.collection-product { min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start; }
.collection-product h2 { font-size: 17px; line-height: 1.4; margin: 14px 0 10px; overflow-wrap: anywhere; }
.collection-product .catalog-image { aspect-ratio: 1; background: #fafafa; }
.collection-product .catalog-pricing { margin-top: 0; }
.collection-product .shop-add { align-self: start; }
.collection-product .shop-add-status { min-height: 20px; margin-bottom: 0; }
.catalog-discount { display: flex; align-items: center; gap: 10px; min-height: 24px; margin-top: 8px; }
.catalog-discount del { font-size: 14px; color: #666; }
.catalog-discount span { background: #ffe5df; color: #9f3520; font-size: 13px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.catalog-discount + .catalog-price { margin-top: 4px; }
.catalog-selection { margin: 0 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.catalog-selection .catalog-collection-title { font-size: 26px; line-height: 1.3; margin: 0; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.catalog-selection .text-link { font-size: 14px; }
.catalog-product > a:first-child, .collection-product > a:first-child { display: block; min-width: 0; }
.catalog-product h2, .collection-product h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: 2.8em; line-height: 1.4; }
.catalog-pricing { display: grid; grid-template-rows: 24px 28px; gap: 4px; padding-top: 8px; margin-bottom: 12px; }
.catalog-pricing .catalog-discount { grid-row: 1; margin: 0; }
.catalog-pricing .catalog-price { grid-row: 2; margin: 0; line-height: 28px; white-space: nowrap; }
.catalog-product > .shop-add { align-self: start; }
@media (max-width: 900px) {
  .collection-track { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; }
}
@media (max-width: 600px) {
  .collection-heading { align-items: start; flex-wrap: wrap; gap: 12px; }
  .collection-heading h2 { font-size: 22px; }
  .collection-tools { width: 100%; }
  .collection-tools .text-link { margin-right: auto; }
  .collection-track { grid-auto-columns: 72%; gap: 16px; }
  .collection-product h2 { font-size: 17px; }
}
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .catalog-sidebar { position: static; max-height: none; display: block; }
  .catalog-sidebar h2, .catalog-categories { display: none; }
  .catalog-category-mobile { display: grid; gap: 8px; }
  .catalog-category-mobile select { width: 100%; min-width: 0; height: 50px; border: 1px solid #bdbdbd; border-radius: 4px; background: #fff; color: #333; padding: 10px 12px; font: inherit; }
}
@media (max-width: 720px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .catalog-search label { min-width: 0; }
  .catalog-product h2 { font-size: 16px; }
  .catalog-price { font-size: 17px; }
  .catalog-detail { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
