/* Professional Premium Print Menu - Brand Blue (#102694) */
@media print {

    @page {
        size: A4;
        margin: 0;
        /* Remove default browser margins for full-width control */
    }

    /* 0. Force Background & Clean multi-page PDF Rules */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background-color: #F3F4F6 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        width: 100%;
    }

    /* 1. Reset Global Visibility */
    body>*:not(#print-view) {
        display: none !important;
    }

    /* 2. Full-Width Print Container */
    #print-view {
        display: block !important;
        width: 210mm !important;
        /* Fixed A4 width */
        margin: 0 auto !important;
        /* Center the page */
        min-height: 297mm;
        background-color: #F3F4F6 !important;
        color: #1a1a1a !important;
        padding: 2.5cm 1.5cm !important;
        box-sizing: border-box;
        font-family: 'Outfit', 'Cairo', sans-serif !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        overflow: visible !important;
    }

    /* 3. High-End Centered Header */
    .print-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 50px;
        padding-bottom: 25px;
        border-bottom: 3.5px double #102694;
        /* Elegant double border */
        position: relative;
    }

    .print-logo img {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #102694;
        margin-bottom: 15px;
        background-color: #ffffff !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .print-site-info h1 {
        font-size: 34pt;
        font-weight: 900;
        color: #102694 !important;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 4px;
    }

    .print-site-info p {
        font-size: 13pt;
        color: #333;
        margin-top: 10px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-weight: 600;
    }

    /* 4. Categorized Sections & Layout */
    .print-category {
        margin-bottom: 50px;
        break-inside: avoid;
        /* Keep category with its first few items */
    }

    .print-cat-title {
        font-size: 22pt;
        color: #ffffff !important;
        background-color: #102694 !important;
        /* Brand Blue background on titles */
        padding: 12px 25px;
        margin-bottom: 30px;
        text-align: center;
        border-radius: 6px;
        text-transform: uppercase;
        letter-spacing: 2.5px;
        font-weight: 800;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* 5. Clean Grid Layout */
    .print-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        width: 100%;
    }

    /* 6. Premium Redesigned Card */
    .print-card {
        display: flex;
        gap: 20px;
        padding: 20px 25px;
        border: 1px solid #e5e7eb;
        /* Soft professional border */
        border-left: 4px solid #102694;
        /* Brand Blue Accent */
        border-radius: 12px;
        background-color: #ffffff !important;
        /* Pure white for print quality */
        box-shadow: none !important;
        /* Shadows often look muddy in print */
        break-inside: avoid !important;
        height: auto;
        align-items: flex-start;
        position: relative;
    }

    .print-card-img {
        width: 130px;
        height: 130px;
        flex-shrink: 0;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #ddd;
    }

    .print-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .print-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .print-card-header {
        display: flex;
        flex-direction: column;
        /* Vertical layout to prevent squashing name and price */
        align-items: flex-start;
        gap: 8px;
        /* Forced gap */
        margin-bottom: 12px;
    }

    .print-card-header h3 {
        margin: 0;
        font-size: 16pt;
        font-weight: 800;
        color: #000000 !important;
        line-height: 1.2;
    }

    .print-price {
        font-weight: 900;
        font-size: 14pt;
        color: #102694 !important;
        background: rgba(16, 38, 148, 0.05);
        padding: 5px 12px;
        border-radius: 8px;
        white-space: nowrap;
    }

    .print-desc {
        font-size: 11pt;
        color: #444;
        margin: 0;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 7. Footer Decoration */
    .print-body::after {
        content: "";
        display: block;
        height: 3px;
        background: #102694;
        margin-top: 45px;
        opacity: 0.4;
    }
}