/* Каталог и карточка товара (этап 3). Эталон — D-Catalog и D-Product. */

.om-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.om-crumbs { padding: 20px 0 8px; font-size: 14px; color: var(--muted); }
.om-crumbs a { color: var(--muted); text-decoration: none; }
.om-crumbs a:hover { color: var(--ink); }

/* Карточка товара: одна на главной, в каталоге и в «Похожих» (эталон D-Home / D-Catalog) */
.om-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.om-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.om-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(11,31,75,.04); }
.om-card__img { position: relative; display: flex; align-items: center; justify-content: center; height: 260px; margin: 8px 8px 0; border-radius: 14px; background: var(--soft2); overflow: hidden; }
.om-card__glow { position: absolute; left: 50%; top: 50%; width: 74%; aspect-ratio: 1; transform: translate(-50%, -46%); border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 68%); }
.om-card__img img { position: relative; width: calc(74% * .86); max-height: 204px; height: auto; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(11,31,75,.22)); }
.om-badge { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px; background: var(--lime); font-size: 12px; font-weight: 700; color: var(--ink); }
.om-badge--course { top: auto; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 8px; background: #fff; font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.om-card__fav { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); }
.om-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.om-card__body > .om-label { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.om-card__body h3 { margin: -4px 0 0; font-size: 20px; line-height: 1.22; font-weight: 600; }
.om-card__body h3 a { color: var(--ink); text-decoration: none; }
.om-card__forms { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.om-card__forms .om-label { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.om-card__forms--chips { flex-direction: column; align-items: flex-start; border-bottom: 0; padding-bottom: 0; }
.om-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.om-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--field); border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; }
.om-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.om-card__price { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 10px; margin-top: auto; padding-top: 6px; }
.om-card__price b { display: block; color: var(--ink); font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.om-card__price small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.om-card__price.is-out b { color: #9AA1B4; }
.om-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); font-weight: 500; }
.om-stock i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: block; }
.om-card__price.is-out .om-stock { color: var(--muted); }
.om-btn--block { width: 100%; justify-content: center; height: 50px; }

/* Каталог */
.om-catalog__lead { max-width: 720px; margin: 0 0 20px; color: var(--muted); }
.om-catalog__layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-bottom: 72px; align-items: start; }
.om-filters__box { border: 1px solid var(--line); border-radius: 18px; padding: 8px 20px 20px; background: #fff; }
.om-filters__box summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); list-style: none; }
.om-filters fieldset { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.om-filters legend { padding: 0; margin-bottom: 8px; }
.om-check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.om-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.om-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.om-price-range input { height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 12px; font: inherit; }
.om-filters__actions { display: flex; gap: 8px; margin-top: 8px; }
.om-filters__actions .om-btn { height: 46px; flex: 1; justify-content: center; }
.om-catalog__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.om-catalog__found { color: var(--muted); }
.om-sort select { height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 12px; font: inherit; background: #fff; }
.om-empty { padding: 48px 0; color: var(--muted); }
.om-catalog .nav-links { display: flex; gap: 8px; margin-top: 32px; }
.om-catalog .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.om-catalog .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Карточка товара */
.om-product { padding-bottom: 72px; }
.om-product__top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.om-product__photo { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px; border-radius: 24px; background: var(--soft2); min-height: 420px; }
.om-product__photo img { width: 72%; max-width: 440px; height: auto; filter: drop-shadow(0 18px 18px rgba(11,31,75,.22)); }
.om-product__buy { display: flex; flex-direction: column; gap: 16px; }
.om-product__buy .om-h1 { margin: 0; font-size: 40px; }
.om-product__short { font-size: 17px; }
.om-forms { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.om-forms legend { padding: 0; margin-bottom: 8px; }
.om-form-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.om-form-opt:has(input:checked) { border: 2px solid var(--navy); padding: 13px 15px; background: #F7F9FC; }
.om-form-opt input { accent-color: var(--navy); width: 18px; height: 18px; }
.om-form-opt__name { flex: 1; font-weight: 500; color: var(--ink); }
.om-form-opt__price { font-weight: 700; color: var(--ink); }
.om-product__price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.om-product__price b { font-size: 38px; line-height: 1; font-weight: 700; color: var(--ink); }
.om-product__price small { color: var(--muted); font-size: 15px; }
.om-product__cta { display: flex; gap: 12px; }
.om-qty { display: flex; align-items: center; border: 1px solid var(--field); border-radius: 12px; height: 56px; }
.om-qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.om-qty input { width: 44px; text-align: center; border: 0; font: 600 16px var(--font); -moz-appearance: textfield; background: transparent; }
.om-qty input::-webkit-outer-spin-button, .om-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.om-product__cta .om-btn { flex: 1; justify-content: center; }
.om-product__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.om-product__facts li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px dashed var(--field); font-size: 15px; }
.om-product__facts span { color: var(--muted); }
.om-bad { margin: 0; font-size: 13px; color: var(--muted); }

.om-tabs { margin-top: 56px; }
.om-tabs__nav { display: flex; gap: 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 5; overflow-x: auto; }
.om-tabs__nav a { padding: 16px 0; color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.om-tabs__nav a:hover { border-bottom-color: var(--lime); color: var(--ink); }
.om-tabs section { padding: 36px 0 8px; scroll-margin-top: 64px; }
.om-tabs h2 { margin: 0 0 16px; font-size: 26px; color: var(--ink); }
.om-comp { width: 100%; border-collapse: collapse; max-width: 720px; }
.om-comp td { padding: 9px 0; border-bottom: 1px dashed var(--field); }
.om-comp td:last-child { text-align: right; }
.om-related { margin-top: 72px; }
.om-related .om-h2 { margin: 0 0 24px; font-size: 32px; color: var(--ink); }

@media (max-width: 1100px) {
	.om-catalog__layout { grid-template-columns: 1fr; }
	.om-grid3, .om-grid4 { grid-template-columns: repeat(2, 1fr); }
	.om-product__top { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
	.om-grid3, .om-grid4 { grid-template-columns: 1fr; }
	.om-product__buy .om-h1 { font-size: 28px; }
	.om-product__price b { font-size: 32px; }
	.om-product__photo { padding: 28px; min-height: 280px; }
	.om-filters__box:not([open]) { padding-bottom: 0; }
}
