.catalog-photo-open {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0;
  background: transparent; cursor: zoom-in; color: inherit;
}
.catalog-photo-open:focus-visible { outline: 3px solid #305b91; outline-offset: -4px; }
.catalog-photo-open img { width: 100%; height: 100%; object-fit: contain; }
.catalog-photo-missing { color: #555c62; margin: auto; padding: 20px; }
.catalog-photo-is-open, .catalog-photo-is-open body { overflow: hidden !important; }
.catalog-photo-dialog {
  position: fixed; inset: 0; box-sizing: border-box; margin: 0; padding: 0 16px;
  width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  border: 0; border-radius: 0; background: #121416; color: #fff;
}
.catalog-photo-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.catalog-photo-dialog::backdrop { background: #121416; }
.catalog-photo-dialog__bar { display: flex; justify-content: flex-end; padding-top: max(8px,env(safe-area-inset-top)); }
.catalog-photo-close {
  width: 48px; height: 48px; padding: 0; border: 1px solid #73787d; border-radius: 4px;
  background: #24282b; color: #fff; font: 36px/1 Arial,sans-serif; cursor: pointer;
}
.catalog-photo-close:hover { background: #3b4247; }
.catalog-photo-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.catalog-photo-dialog__stage { min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 8px 0; }
.catalog-photo-dialog__stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; -webkit-touch-callout: none; user-select: none; }
.catalog-photo-dialog__status { position: absolute; padding: 6px 10px; background: #121416; }
.catalog-photo-dialog__status:empty { display: none; }
#catalog-photo-title { margin: 0; padding: 12px 0 max(14px,env(safe-area-inset-bottom)); text-align: center; font: 500 16px/1.35 Inter,Arial,sans-serif; overflow-wrap: anywhere; }
@media(max-width: 900px) { .catalog-section-links { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 640px) {
  .catalog-hero--compact { padding-top: 14px; }
  .catalog-hero--compact h1 { font-size: 25px; }
  .catalog-shop .catalog-shop__head .h2, .catalog-categories--compact .h2 { font-size: 21px; }
  .catalog-section-links { gap: 0 16px; }
  .catalog-section-link strong { font-size: 15px; }
  .catalog-photo-dialog { padding: 0 8px; }
}

[data-coffin-catalog] .coffins{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}[data-coffin-catalog] [hidden]{display:none!important}[data-coffin-catalog] .coffin{min-width:0;display:flex;flex-direction:column}[data-coffin-catalog] .coffin__img{height:280px;aspect-ratio:auto;background:#f5f5f3}[data-coffin-catalog] .coffin__img img{object-fit:contain;width:100%;height:100%}[data-coffin-catalog] .coffin__body{flex:1;display:flex;flex-direction:column}[data-coffin-catalog] .coffin__name{font-size:16px;line-height:1.4}[data-coffin-catalog] .coffin__actions{margin-top:auto}[data-coffin-catalog] .coffin__sub{font-size:13px;color:#545454;margin:0 0 10px}.catalog-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:16px 0}.catalog-tools label{display:flex;flex-direction:column;gap:5px;font-size:14px;flex:1;min-width:180px}.catalog-tools input,.catalog-tools select{box-sizing:border-box;width:100%;min-height:44px;padding:8px;border:1px solid #a8a8a8;border-radius:6px;background:white;color:#222;font:inherit}.catalog-tools button{min-height:44px}.catalog-count{margin:12px 0;color:#555}.catalog-more{margin:24px auto;display:block}#catalog{padding-top:24px}#catalog .section__head{margin-bottom:10px}.catalog-legacy-anchor{display:block;height:0} @media(max-width:980px){[data-coffin-catalog] .coffins{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){[data-coffin-catalog] .coffins{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}[data-coffin-catalog] .coffin__img{height:220px}}@media(max-width:420px){[data-coffin-catalog] .coffins{grid-template-columns:1fr}[data-coffin-catalog] .coffin__img{height:300px}.catalog-tools label{min-width:100%;}}
