.catalog-price-link, .catalog-image-link { color: inherit; text-decoration: none; }
.catalog-image-link { display: block; }
@media screen {
    [data-catalog-enlarge], [data-catalog-discount] { cursor: pointer; }
    .catalog-table tr.product > td[data-catalog-discount] { position: relative; }
    .catalog-table tr.product > td[data-catalog-discount]::after {
        content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: calc(10% / 6);
        background: #b8505a; pointer-events: none;
    }
    [data-catalog-enlarge]:focus-visible, [data-catalog-discount]:focus-visible {
        outline: 2px solid #b8505a; outline-offset: -3px;
    }
}
.catalog-detail-dialog {
    box-sizing: border-box; direction: rtl; font-family: inherit; color: #243047;
    width: min(540px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px);
    padding: 22px; margin: auto; border: 1px solid #ead8db; border-radius: 22px;
    background: #fff; box-shadow: 0 24px 80px #17203438; overflow: auto;
}
.catalog-detail-dialog::backdrop { background: #17203499; backdrop-filter: blur(4px); }
.catalog-detail-dialog { overscroll-behavior: contain; }
html.catalog-detail-open, html.catalog-detail-open body { overflow: hidden !important; overscroll-behavior: none; }
.catalog-detail-dialog header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.catalog-detail-dialog h2 { margin: 0; flex: 1; font-size: 17px; line-height: 1.8; }
.catalog-detail-dialog button { flex: 0 0 38px; height: 38px; border: 0; border-radius: 12px; background: #f6ecee; color: #923d46; cursor: pointer; font-size: 26px; }
.catalog-detail-dialog p { font-size: 13px; line-height: 2; margin: 0 0 16px; color: #657086; }
.catalog-detail-dialog table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #eadfe2; border-radius: 14px; text-align: center; font-size: 15px; }
.catalog-detail-dialog th { background: #f8eef0; padding: 12px 8px; font-size: 13px; }
.catalog-detail-dialog td { padding: 12px 8px; border-top: 1px solid #eee5e7; }
.catalog-detail-dialog td:last-child { color: #a83e4a; font-weight: bold; }
.catalog-detail-dialog .catalog-detail-photo { display: block; width: 100%; height: auto; max-height: 70dvh; object-fit: contain; }
.catalog-tier-calculator { margin-top: 18px; border: 1px solid #e6d7dc; border-radius: 14px; overflow: hidden; font-size: 14px; }
.catalog-tier-quantity-row, .catalog-tier-results > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.catalog-tier-quantity-row { background: #f8eef0; }
.catalog-tier-quantity-row > *, .catalog-tier-results > div > * { display: flex; align-items: center; padding: 12px; min-width: 0; box-sizing: border-box; }
.catalog-tier-quantity-row > :first-child, .catalog-tier-results > div > :first-child { border-left: 1px solid #e6d7dc; }
.catalog-tier-quantity-row > div { justify-content: center; padding: 8px 12px; }
.catalog-tier-calculator input { box-sizing: border-box; width: 100%; max-width: 150px; min-width: 0; height: 42px; border: 1px solid #ddcbd0; border-radius: 10px; background: #fff; color: #243047; text-align: center; font: inherit; font-size: 17px; }
.catalog-tier-calculator input:focus { outline: 2px solid #b8505a; outline-offset: 2px; }
.catalog-tier-calculator input[aria-invalid="true"] { border-color: #a83e4a; }
.catalog-tier-results { background: #fff; }
.catalog-tier-results > div { border-top: 1px solid #e6d7dc; }
.catalog-tier-results strong { justify-content: flex-end; text-align: left; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.catalog-tier-results .catalog-tier-base { color: #657086; }
.catalog-tier-results .catalog-tier-total { background: #b8505a; color: #fff; }
.catalog-tier-results .catalog-tier-total > :first-child { border-left-color: #ffffff40; }
.catalog-detail-dialog .catalog-tier-error { color: #a83e4a; margin: 0; padding: 8px 12px; font-size: 12px; border-top: 1px solid #e6d7dc; }
@media (max-width: 480px) { .catalog-tier-calculator { font-size: 13px; } .catalog-tier-results > div > * { padding: 11px 9px; } }
@media (max-width: 480px) { .catalog-detail-dialog { padding: 16px; border-radius: 18px; } }
@media print {
    .catalog-detail-dialog { display: none !important; }
    [data-catalog-enlarge], [data-catalog-discount], .catalog-image-link, .catalog-price-link { outline: none !important; }
}
