.catalog-document-standalone {
    min-height: 100%;
    margin: 0;
    overflow-x: auto;
    background: #f2f5f8;
}
.catalog-document-page {
    min-width: calc(210mm + 40px);
    margin: 0;
    padding: 28px 20px 36px;
    color: #172033;
    background: #f2f5f8;
    direction: rtl;
    font-family: Vazirmatn, Tahoma, sans-serif;
}
.catalog-document-page *,
.catalog-document-page *::before,
.catalog-document-page *::after { box-sizing: border-box; }
.catalog-document-page__sheet { width: 210mm; min-width: 210mm; max-width: none; margin: 0 auto; }
.catalog-document-page .nourchi-catalog { border-radius: 20px 20px 0 0; }
.catalog-document-page__preview-note {
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid #ffd19f;
    border-radius: 12px;
    color: #74400b;
    background: #fff6e9;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}
.catalog-document-page__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e7ed;
    border-top: 0;
    border-radius: 0 0 20px 20px;
}
.catalog-document-page__actions .catalog-document__product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #00488c;
    border-radius: 11px;
    background: #00488c;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}
.catalog-document-page__actions .catalog-document__product-link:hover {
    background: #00396f;
    border-color: #00396f;
    color: #fff;
}
.catalog-document-page__actions .catalog-document__product-link--secondary {
    background: #eef4fa;
    border-color: #c4d6e8;
    color: #00488c;
    box-shadow: none;
}
.catalog-document-page__actions .catalog-document__product-link--secondary:hover {
    background: #dfeaf5;
    color: #00396f;
}
.catalog-document-page__actions .catalog-document__product-link svg {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.catalog-document__legacy { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e2e7ed; }
@media print {
    @page { size: A4 portrait; margin: 0; }
    /* Scope chrome removal to the standalone page; retain its ancestor containers. */
    body:has(.catalog-document-page) *:not(.catalog-document-page):not(.catalog-document-page *):not(:has(.catalog-document-page)) {
        display: none !important;
    }
    .catalog-document-page {
        width: 210mm;
        min-width: 210mm;
        height: 297mm;
        padding: 0;
        background: #fff;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .catalog-document-page__actions,
    .catalog-document-page__preview-note { display: none !important; }
    .catalog-document-page .nourchi-catalog { border-radius: 0; }
    .catalog-document-page__sheet { width: 210mm; min-width: 210mm; height: 297mm; max-width: none; margin: 0; padding: 0; }
}
