/* Catalog-only enhancements. Kept separate to avoid changing product-page styles. */
.product-discovery { scroll-margin-top: 96px; }
.product-filter-buttons { align-items: flex-start; }
.product-filter-buttons button span { opacity: .72; font-size: .78em; }
.product-filter-more { position: relative; }
.product-filter-more summary {
  min-height: 42px; padding: 9px 14px; border: 1px solid #b9b09e; border-radius: 999px;
  background: #fff; color: #203528; font-weight: 800; cursor: pointer; list-style: none;
}
.product-filter-more summary::-webkit-details-marker { display: none; }
.product-filter-more summary::after { content: " ▾"; }
.product-filter-more[open] summary { background: #254630; color: #fff; border-color: #254630; }
.product-filter-more > div {
  position: absolute; z-index: 12; top: calc(100% + 8px); right: 0; display: grid; gap: 6px;
  width: min(310px, 80vw); padding: 10px; border: 1px solid #d8d0c0; border-radius: 14px;
  background: #fffdf8; box-shadow: 0 18px 42px rgba(27, 45, 34, .18);
}
.product-filter-more > div button { width: 100%; justify-content: space-between; text-align: left; }
.product-empty { margin: 24px auto 0; max-width: 540px; padding: 28px; border-radius: 18px; background: #f7f3e9; text-align: center; }
.product-empty strong, .product-empty span { display: block; }
.product-empty span { margin: 7px 0 18px; color: #5f655f; }
.product-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 8px; }
.product-pagination button {
  min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #b9b09e; border-radius: 10px;
  background: #fff; color: #254630; font: inherit; font-weight: 800; cursor: pointer;
}
.product-pagination button[aria-current="page"] { background: #254630; color: #fff; border-color: #254630; }
.product-pagination button:disabled { opacity: .42; cursor: not-allowed; }
.product-card strong { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .product-filter-buttons { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 9px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .product-filter-buttons > button, .product-filter-more { flex: 0 0 auto; scroll-snap-align: start; }
  .product-filter-more > div { position: fixed; z-index: 50; left: 12px; right: 12px; top: auto; width: auto; max-height: 50vh; overflow: auto; }
}

@media (max-width: 520px) {
  .home-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .home-page .product-card { min-width: 0; padding: 8px; }
  .home-page .product-card strong { font-size: 12px; line-height: 1.25; }
  .home-page .product-card .product-price { font-size: 14px; }
  .home-page .product-card .product-cta { min-height: 40px; padding: 9px 6px; font-size: 11px; }
  .product-pagination { gap: 6px; }
  .product-pagination button { min-width: 42px; padding-inline: 9px; }
}
