.catalog { padding-bottom: 1.4rem; }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.quantity { color: var(--sub); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0 1.35rem; }
.filters a { font-size: .98rem; font-weight: 650; padding: .35rem .95rem; border-radius: 999px; border: 1px solid #c6cfd0; }
.filters a[aria-current], .filters a:hover { background: var(--ink); color: white; border-color: var(--ink); }
.item-grid { display: grid; gap: clamp(.8rem,1.5vw,1.6rem); grid-template-columns: repeat(4,minmax(0,1fr)); }
.item-card { display: flex; flex-direction: column; border: 1px solid #e2e7e6; border-radius: 15px; overflow: hidden; background: #fafbf9; }
.item-card:hover { border-color: #899a9c; }
.item-card:hover h3, .related a:hover span { text-decoration: underline; text-underline-offset: .18em; }
.item-image { background: #eef1f1; padding: 0; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow:hidden; }
.item-image img { width: 100%; height: 100%; object-fit: contain; min-width: 0; min-height: 0; }
.item-copy { padding: .8rem clamp(.6rem,1.16vw,1.25rem) 1.1rem; }
.item-copy small { display: block; color: var(--sub); font-size: .84rem; margin-bottom: .32rem; }
.item-copy h3 { font: 735 clamp(1.12rem,1.48vw,1.45rem)/1.1 var(--display); letter-spacing: -.035em; overflow-wrap: break-word; }
.item-note { display: block; margin-top: .48rem; font-size: 1rem; line-height: 1.35; color: var(--sub); }
.detail-top { margin-block: var(--edge) 0; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1.1rem var(--gut); border-radius: 18px; background: #bdc9cc; }
.detail-top nav, .trail { display: flex; gap: clamp(.6rem,1.8vw,2rem); align-items: center; }
.detail-top nav a { font-weight: 650; }
.detail-top nav a:hover,.trail a:hover { text-decoration: underline; }
.trail { gap: .6rem; color: var(--sub); font-size: 1rem; padding-top: 1.7rem; padding-bottom: 1.2rem; }
.detail-layout { display:grid; grid-template-columns: 1.12fr 1fr; align-items: start; gap: clamp(2rem,5vw,6rem); margin-bottom: 3.3rem; }
.product-visual { overflow:hidden; border-radius: 18px; background: #eef1f1; }
.magnify { display:block; position:relative; width:100%; }
.magnify img { aspect-ratio: 1; object-fit: contain; width:100%; }
.magnify .glass { width: 38px; height: 38px; right: .9rem; bottom: .9rem; border: 1px solid var(--line); }
.product-info { padding-top: .3rem; max-width: 58ch; }
.product-info h1 { font: 770 clamp(2rem,3.4vw,4rem)/1.01 var(--display); letter-spacing: -.052em; text-wrap: pretty; }
.body-copy { margin: 1rem 0 1.6rem; color: #3c494b; font-size: 1.11rem; }
.body-copy p+p { margin-top: .6rem; }
.product-info h2,.related h2 { font: 730 clamp(1.45rem,2.05vw,2.1rem)/1.1 var(--display); letter-spacing: -.035em; margin-bottom: .6rem; }
.product-info dl>div { grid-template-columns: .8fr 1.3fr; }
.market-note { background: #eaf0ef; padding: .82rem 1.05rem; border-radius: .8rem; margin-top: 1.5rem; font-size: 1rem; }
.market-note p { margin-top: .16rem; color:var(--sub); }
.related { margin-top: .5rem; margin-bottom: 3rem; }
.related>div { display:flex; flex-wrap: wrap; gap: .7rem; }
.related a { display: flex; gap: .75rem; align-items:center; max-width: 330px; padding: .45rem .85rem .45rem .45rem; border: 1px solid var(--line); border-radius: .8rem; font-weight: 650; line-height: 1.17; }
.related img { width: 55px; aspect-ratio:1; object-fit:contain; border-radius:.4rem; background: #eef1f1; }
.detail-lightbox { width: max-content; max-width: 94vw; max-height: 92dvh; padding: 0; border: 0; border-radius: 16px; background: #eef1f1; }
.detail-lightbox::backdrop { background: #142126d4; }
.detail-lightbox img { width: auto; max-width: min(90vw,980px); max-height: 88dvh; object-fit: contain; }
@media (min-width:741px) and (max-width:990px) {
  .item-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:740px) {
  .item-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .filters { gap: .38rem; margin: .75rem 0 1rem; }
  .filters a { padding: .32rem .68rem; }
  .item-card { border-radius: 11px; }
  .item-copy { padding: .6rem .65rem .8rem; }
  .item-note { font-size: .95rem; }
  .catalog-heading { align-items: end; }
  .quantity { white-space: nowrap; font-size:.94rem; }
  .detail-top { padding: .9rem var(--gut); border-radius: 15px; }
  .detail-top nav { font-size: .95rem; }
  .detail-top .market { display: none; }
  .trail { padding-top: .9rem; padding-bottom: .75rem; }
  .detail-layout { grid-template-columns: minmax(0,1fr); gap: 1.2rem; margin-bottom: 2.3rem; }
  .magnify img { max-height: 52dvh; }
  .product-info { padding: 0 .15rem; }
  .product-info h1 { font-size: clamp(2rem,7.4vw,3.1rem); }
  .related a { max-width:none; }
}
.product-visual figcaption { font-size: .87rem; padding: .4rem .8rem; color: var(--sub); background: #f4f6f5; }

.mihtrov-visual img { object-fit: cover; }
