/* Print-specific styles for PDF generation */
@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body {
        background: #ffffff !important;
        /* Force white background for cleaner printing */
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide non-printable elements */
    .header,
    .footer,
    .cta-section,
    .nav,
    .lang-switch,
    .mobile-menu-btn,
    .contact-form-wrapper,
    .back-btn {
        display: none !important;
    }

    /* Layout adjustments */
    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 40px !important;
    }

    /* Cover Page */
    .catalog-cover {
        height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: #000 !important;
        /* Keep cover dark */
        color: white !important;
        page-break-after: always;
        position: relative;
    }

    .catalog-cover h1 {
        color: white !important;
        font-size: 4rem;
        text-transform: uppercase;
        letter-spacing: 8px;
    }

    .catalog-cover img {
        filter: brightness(0) invert(1);
        /* Ensure logo is white */
        max-width: 300px;
        margin-bottom: 2rem;
    }

    /* Catalog Content Pages */
    .catalog-page {
        padding: 40px 0;
        page-break-after: always;
    }

    .catalog-page:last-child {
        page-break-after: auto;
    }

    .page-header-print {
        border-bottom: 2px solid #000;
        margin-bottom: 30px;
        padding-bottom: 15px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .page-header-print h2 {
        font-size: 2rem;
        margin: 0;
        text-transform: uppercase;
    }

    .page-header-print .brand {
        font-size: 0.9rem;
        font-weight: 600;
        color: #666;
    }

    /* Grid Layout for items */
    .print-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .print-item {
        break-inside: avoid;
        border: 1px solid #ddd;
        padding: 0;
        background: #f9f9f9 !important;
    }

    .print-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .print-item-content {
        padding: 20px;
    }

    .print-item h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        color: #000;
    }

    .print-item .price {
        font-size: 1.2rem;
        font-weight: 700;
        color: #000;
        display: block;
        margin-bottom: 10px;
    }

    .print-item p {
        font-size: 0.9rem;
        color: #444;
        line-height: 1.5;
    }

    .print-item ul {
        margin-top: 10px;
        padding-left: 20px;
    }

    .print-item li {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    /* Print Footer (on every page bottom) */
    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px 40px;
        border-top: 1px solid #ddd;
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        color: #666;
    }
}

/* Screen styles to preview print layout */
.catalog-preview-mode {
    background: #525659;
    padding: 40px;
}

.paper-sheet {
    background: white;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 40px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.screen-download-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    color: white;
    padding: 15px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 800px) {
    .paper-sheet {
        width: 100%;
        min-height: auto;
    }

    .catalog-preview-mode {
        padding: 20px 10px;
    }

    .screen-download-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
}