/* Collection discovery and product detail enhancements. */
.header-actions { gap: 12px; }
.search-trigger { width: 38px; }
.search-trigger svg { width: 20px; height: 20px; }
.favorites-trigger { position: relative; display: grid; place-items: center; width: 38px; height: 44px; }
.favorites-trigger > svg { width: 20px; height: 20px; }
.favorites-trigger[aria-pressed="true"] > svg { fill: var(--olive); }
.favorites-count { position: absolute; top: 0; right: 0; min-width: 15px; height: 15px; padding: 2px; border-radius: 50%; font-size: 8px; background: var(--olive); color: white; }
.collection-search { display: flex; align-items: center; gap: 15px; padding: 9px 14px 9px 20px; background: var(--accent-soft); border: 1px solid transparent; margin-bottom: 22px; }
.collection-search[hidden], .favorites-count[hidden], .active-selection[hidden] { display: none; }
.collection-search:focus-within { border-color: var(--accent-rule); }
.collection-search label { display: flex; }
.collection-search label svg { width: 21px; height: 21px; color: var(--accent); }
.collection-search input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--ink); min-height: 40px; }
.collection-search input::-webkit-search-cancel-button { display: none; }
.collection-search input::placeholder { color: #7b816d; }
.collection-search [data-clear-search] { font-size: 10px; text-decoration: underline; min-height: 40px; }
.active-selection { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 0 21px; padding: 13px 17px; background: var(--accent-tint); font-size: 11px; }
.active-selection > span { overflow-wrap: anywhere; }
.active-selection button { flex-shrink: 0; min-height: 30px; font-size: 10px; }
.active-selection button span { margin-left: 15px; font-size: 18px; }
.favorite-toggle { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(var(--theme-paper-rgb) / .87); transition: background .2s; }
.favorite-toggle svg { width: 16px; height: 16px; }
.favorite-toggle:hover { background: var(--paper); }
.favorite-toggle.is-saved { background: var(--olive); color: white; }
.favorite-toggle.is-saved svg { fill: currentColor; }
.empty-collection { grid-column: 1 / -1; text-align: center; padding: 45px 20px 55px; border: 1px solid var(--line); background: var(--accent-soft); }
.empty-collection-symbol { display: block; font-size: 46px; color: var(--accent); margin-bottom: 20px; }
.empty-collection h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -.7px; margin-bottom: 12px; }
.empty-collection p { font-size: 12px; color: var(--accent-strong); max-width: 350px; margin: 0 auto 24px; }
.detail-zoom { width: 100%; height: 100%; min-height: inherit; position: relative; padding: 0; display: block; overflow: hidden; cursor: zoom-in; }
.detail-zoom img { transition: transform .4s ease; }
.detail-zoom.is-zoomed { cursor: zoom-out; }
.detail-zoom.is-zoomed img { transform: scale(1.8); }
.zoom-hint { position: absolute; left: 18px; bottom: 18px; padding: 10px 13px; background: rgb(var(--theme-paper-rgb) / .92); font-size: 10px; display: flex; align-items: center; gap: 23px; }
.zoom-hint > span { font-size: 18px; }
.detail-navigation { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--line); }
.detail-navigation button { font-size: 9px; min-height: 40px; padding: 0; }
.detail-navigation button > span { padding-inline: 3px; }
.detail-navigation > span { font-size: 9px; color: #7b836c; white-space: nowrap; }
.toast { display: flex; align-items: center; gap: 24px; }
.toast.visible { pointer-events: auto; }
.toast button { font-size: 11px; text-decoration: underline; color: white; white-space: nowrap; min-height: 30px; }
@media (max-width: 1100px) { .desktop-nav { gap: 19px; font-size: 11px; } }
@media (max-width: 760px) {
  .header-actions { gap: 3px; }
  .favorites-trigger { width: 33px; }
  .search-trigger { width: 32px; }
  .collection-search { gap: 10px; padding-left: 13px; }
  .collection-search input { font-size: 16px; }
  .collection-search [data-clear-search] { display: none; }
  .active-selection { align-items: flex-start; flex-direction: column; gap: 6px; font-size: 10px; }
  .favorite-toggle { top: 8px; right: 8px; width: 31px; height: 31px; }
  .favorite-toggle svg { width: 14px; height: 14px; }
  .empty-collection { padding: 35px 18px; }
  .empty-collection h3 { font-size: 28px; }
  .detail-zoom { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .detail-zoom img { transition: none; } }
