
@media screen {
    .print-sheet {
        display: none;
    }
}

@page {
    size: A4 portrait;

    @bottom-center {
        content: "bslift.sk  |  " counter(page);
        font: 8pt Arial, sans-serif;
        color: #777;
    }
}

@media print {

    /* Print isolation */

    body.printing-product-sheet > * {
        display: none !important;
    }

    body.printing-product-sheet main,
    body.printing-product-sheet main > .print-sheet {
        display: block !important;
    }

    body.printing-product-sheet main > :not(.print-sheet) {
        display: none !important;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    .print-sheet {
        display: block;
        width: 100%;
        color: #181818;
        font: 10.5pt/1.5 "Inter Tight", Arial, sans-serif;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .print-sheet * {
        box-sizing: border-box;
    }

    /* Keep visual margins even when Chrome print dialog uses Margins: None. */
    .print-sheet-inner {
        padding: 10mm;
    }

    /* Brand header */

    .ps-band {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12mm;
        padding: 5mm 5mm 2mm 5mm;
        margin: 0 0 10mm;
        background: #eee;
        color: #000;
        border-radius: 1mm;
    }

    .ps-band-info{
        margin: 0;
        padding: 0;
    }

    .ps-band img {
        display: block;
        width: auto;
        max-width: 48mm;
        max-height: 18mm;
        object-fit: contain;
    }

    /* Product heading */

    .ps-type {
        color: #D40000;
        font-size: 8pt;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin: 0 0 2mm;
    }

    .ps-title {
        font-size: 23pt;
        line-height: 1.12;
        font-weight: 800;
        letter-spacing: -0.025em;
        margin: 0 0 9mm;
        break-after: avoid;
    }

    /* Main product presentation */

    .ps-top {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 9mm;
        align-items: start;
        margin-bottom: 11mm;
    }

    .ps-top-media {
        min-width: 0;
    }

    .ps-hero {
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        break-inside: avoid;
    }

    .ps-hero img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 105mm;
        object-fit: contain;
    }

    .ps-top-meta {
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .ps-short,
    .ps-suitable {
        margin: 0 0 5mm;
        font-size: 10.5pt;
        line-height: 1.55;
    }

    /* Price */

    .ps-price-box {
        margin-top: 7mm;
        padding-top: 5mm;
        border-top: 1px solid #ddd;
    }

    .ps-price-box h2 {
        margin: 0 0 3mm;
        padding: 0;
        border: 0;
        font-size: 9pt;
        font-weight: 600;
        color: #666;
    }

    .ps-price-main {
        font-size: 17pt;
        font-weight: 800;
        line-height: 1.2;
        margin: 0;
        color: #D40000;
    }

    .ps-price-main small {
        display: block;
        font-size: 9pt;
        color: #D40000;
        font-weight: 400;
        text-decoration: line-through;
        opacity: 0.85;
    }

    .ps-price-tax {
        font-size: 8.5pt;
        color: #D40000;
        margin-top: 2mm;
    }

    /* Additional gallery images */

    .ps-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7mm;
        margin: 0 0 11mm;
    }

    .ps-grid figure {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 4mm;
        height: 78mm;
        border: 1px solid #eee;
        background: #fff;
        break-inside: avoid;
    }

    .ps-grid img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    /* Content sections */

    .ps-block {
        margin: 0 0 10mm;
        padding: 0;
        break-inside: auto;
    }

    .ps-block h2 {
        font-size: 13pt;
        font-weight: 800;
        line-height: 1.25;
        margin: 0 0 5mm;
        padding: 0 0 3mm;
        color: #181818;
        border: 0;
        border-bottom: 1px solid #ddd;
        break-after: avoid;
    }

    /* Specifications */

    .ps-specs {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }

    .ps-specs tr {
        break-inside: avoid;
    }

    .ps-specs th,
    .ps-specs td {
        padding: 2.2mm 1.6mm;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid #e8e8e8;
    }

    .ps-specs th {
        width: 39%;
        font-weight: 400;
        color: #666;
        background: transparent;
    }

    .ps-specs td {
        font-weight: 600;
        color: #181818;
    }

    .ps-specs tr:nth-child(even) {
        background: #fafafa;
    }

    /* Description - never truncate */

    .ps-desc {
        max-height: none;
        overflow: visible;
        padding: 0;
        margin: 0 0 9mm;
        border: 0;
        background: transparent;
        font-size: 10pt;
        line-height: 1.55;
    }

    .ps-desc p {
        margin: 0 0 3mm;
        orphans: 3;
        widows: 3;
    }

    .ps-desc img,
    .ps-desc video,
    .ps-desc iframe {
        max-width: 100%;
        height: auto;
        break-inside: avoid;
    }

    .ps-desc figure {
        margin: 0 0 4mm;
        break-inside: avoid;
    }

    .ps-desc table {
        width: 100%;
    }

    /* Contact section */

    .ps-cta {
        margin-top: 10mm;
        break-inside: avoid;
    }

    .ps-cta .call-to-action {
        padding: 6mm 0 0;
        background: transparent;
        color: #181818;
        border: 0;
        border-top: 1.2pt solid #D40000;
    }

    .ps-cta .call-to-action * {
        color: inherit !important;
    }

    .ps-cta .call-to-action-map-link {
        display: none;
    }
}
