.catalog-search { margin: 1.5rem 0; padding: 1.2rem; border: 1px solid var(--theme-border, #666); border-radius: 16px; background: var(--color-dark-card, #1c1d22); color: var(--color-text-dark, #f5f3ed); }
.catalog-search { scroll-margin-top: 12px; }
.catalog-search label { display: block; font-weight: 700; font-size: 1.15rem; }
.catalog-search p { margin: .65rem 0; }
.catalog-search-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.catalog-search input { flex: 1 1 230px; min-width: 0; padding: .8rem; font: inherit; color: inherit; background: var(--color-dark-base, #0c0d0e); border: 1px solid #888; border-radius: 8px; }
.catalog-search button, .product-gallery button { padding: .8rem 1rem; font: inherit; color: #121212; background: var(--theme-gold, #dec990); border: 1px solid #888; border-radius: 8px; cursor: pointer; min-height: 44px; }
.catalog-search button:disabled { cursor: default; opacity: .65; }
.product-card[hidden], .catalog-search-empty[hidden] { display: none !important; }
.catalog-search-empty { padding: 1rem; }
.catalog-search :focus-visible, .product-gallery :focus-visible, .photo-dialog :focus-visible { outline: 3px solid var(--theme-gold, #dec990); outline-offset: 4px; }
.product-gallery { margin: 1rem 0; }
.product-gallery-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }
.product-gallery-thumbs img { width: 75px; height: 75px; object-fit: contain; }
.photo-dialog { width: min(900px, 94vw); max-height: 94dvh; overflow: auto; border: 1px solid #777; border-radius: 16px; padding: 1rem; color: var(--color-text-dark, #f5f3ed); background: var(--color-dark-card, #1c1d22); }
.photo-dialog::backdrop { background: rgb(0 0 0 / .75); }
.photo-dialog img { display: block; width: 100%; height: 65dvh; object-fit: contain; background: #fff; }
.photo-dialog-controls { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; }
.photo-dialog button { min-height: 44px; padding: .6rem 1rem; font: inherit; color: #121212; background: var(--theme-gold, #dec990); border: 1px solid #888; border-radius: 8px; cursor: pointer; }
.photo-dialog a { color: var(--theme-gold, #dec990); text-decoration: underline; }
@media (max-width: 500px) { .catalog-search-row button { width: 100%; } .photo-dialog img { height: 55dvh; } }
