/* Collection: heading, category tabs, toolbar, meta line, pagination, empty state, stock note.
   Shared by /shop, the home "party edit" block, /saved and the related grid. */

.wy-collection { padding-top: 42px; padding-bottom: 20px; scroll-margin-top: var(--header-offset); }
.wy-collection[aria-busy=true] .wy-products { opacity: .55; transition: opacity .16s; }
.wy-collection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.wy-collection-heading h1, .wy-collection-heading h2 { font-size: 31px; line-height: 1.15; font-weight: 500; letter-spacing: -1px; margin-top: 8px; }
.wy-result-count { font-size: 13px; color: var(--muted); }

.wy-shop-toolbar { display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.wy-category-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; min-width: 0; padding: 4px; margin: -4px; }
.wy-category-tabs a {
  border: 1px solid var(--line); padding: 9px 16px; min-height: 39px; font-size: 14px; border-radius: var(--radius-pill);
  white-space: nowrap; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center;
}
.wy-category-tabs a[aria-current=page] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.wy-category-tabs a:hover:not([aria-current=page]) { background: var(--soft); }
.wy-shop-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; position: relative; }

.wy-collection-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); padding: 15px 0 20px; min-height: 51px; }
.wy-collection-meta > p { overflow-wrap: anywhere; }
.wy-collection-meta > span { flex-shrink: 0; }

.wy-pagination { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; margin-top: 34px; }
.wy-pagination > span, .wy-pagination-page { color: var(--muted); font-size: 13px; }
.wy-pagination .wy-secondary { min-width: 210px; }
.wy-pagination-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 18px; }

.wy-stock-note { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.8; margin-top: 20px; }
.wy-stock-note a { text-underline-offset: 3px; padding: 0 3px; }

.wy-empty { padding: 50px 0; text-align: center; }
.wy-empty p { color: var(--muted); margin-bottom: 20px; }

@media (max-width: 1150px) {
  .wy-shop-toolbar { flex-wrap: wrap; gap: 7px; }
  .wy-category-tabs { flex: 1; }
  .wy-shop-tools { margin-left: auto; }
}

@media (max-width: 900px) {
  .wy-category-tabs { flex-basis: 100%; }
  .wy-shop-tools { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
}

@media (max-width: 650px) {
  .wy-collection { padding-top: 32px; }
  .wy-collection-heading { align-items: start; gap: 10px; margin-bottom: 18px; }
  .wy-collection-heading h1, .wy-collection-heading h2 { font-size: 28px; }
  .wy-collection-heading .wy-eyebrow { font-size: 10px; letter-spacing: .7px; }
  .wy-result-count { font-size: 12px; max-width: 110px; text-align: right; line-height: 1.7; margin-top: 22px; }
  .wy-category-tabs { gap: 7px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); flex-wrap: nowrap; }
  .wy-category-tabs a { padding: 9px 14px; min-height: 42px; font-size: 13px; }
  .wy-shop-tools { padding: 0 0 3px; }
  .wy-filter-button { min-height: 44px; }
  .wy-collection-meta { font-size: 12px; align-items: start; gap: 12px; padding-top: 13px; padding-bottom: 18px; }
  .wy-stock-note { font-size: 11px; text-align: left; }
  .wy-pagination { margin-top: 28px; }
  .wy-pagination .wy-secondary { min-width: 0; }
}
