﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

/* =========================
               PRINT BUTTON
            ========================= */

.print-button {
    text-align: center;
    padding: 18px;
    background: #111827;
    position: sticky;
    top: 0;
    z-index: 999;
}

    .print-button button {
        border: none;
        background: linear-gradient(135deg, #d71920, #ff9800);
        color: #fff;
        padding: 12px 28px;
        border-radius: 30px;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

        .print-button button:hover {
            background: linear-gradient(135deg, #b51218, #e68900);
        }

/* =========================
               MAIN CONTAINER
            ========================= */

.container {
    width: 95%;
    max-width: 1200px;
    margin: 25px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

/* =========================
               HEADER
            ========================= */

.company-header {
    display: flex;
    width: 100%;
    min-height: 185px;
    border: 3px solid #d71920;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient( 135deg, #fff8e1, #fff, #fff3e0 );
    position: relative;
}

    .company-header::before {
        content: "✨";
        position: absolute;
        left: 8px;
        top: 5px;
        font-size: 25px;
    }

    .company-header::after {
        content: "✨";
        position: absolute;
        right: 8px;
        top: 5px;
        font-size: 25px;
    }

.header-image {
    width: 20%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .header-image img {
        width: 100%;
        max-width: 150px;
        height: 165px;
        object-fit: cover;
        border-radius: 8px;
    }

.header-content {
    width: 60%;
    text-align: center;
    padding: 15px 10px;
}

.company-name {
    margin: 0;
    color: #c4161c;
    font-size: 28px;
    letter-spacing: 2px;
    font-weight: 900;
}

.company-tagline {
    margin: 6px 0 12px;
    color: #e65100;
    font-size: 14px;
    font-weight: bold;
}

.address {
    font-size: 11px;
    line-height: 1.5;
    margin: 8px 0;
}

.contact {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.discount-box {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 20px;
    border-radius: 25px;
    background: #d71920;
    color: white;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(215,25,32,0.3);
}

.header-right {
    width: 20%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .header-right img {
        width: 100%;
        max-width: 150px;
        height: 165px;
        object-fit: cover;
        border-radius: 8px;
    }

/* =========================
               PRICE LIST TITLE
            ========================= */

.price-title {
    text-align: center;
    margin: 22px 0 12px;
}

    .price-title h3 {
        margin: 0;
        color: #c4161c;
        font-size: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .price-title p {
        margin: 5px 0;
        color: #777;
        font-size: 12px;
    }

/* =========================
               PRICE TABLE
            ========================= */

.price-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 12px;
}

    .price-list thead th {
        background: linear-gradient( 135deg, #b51218, #e65100 );
        color: white;
        padding: 10px 6px;
        border: 1px solid #9e1116;
        text-align: center;
        font-weight: bold;
    }

    .price-list tbody td {
        padding: 8px 6px;
        border: 1px solid #ddd;
        text-align: center;
    }

    .price-list tbody tr:nth-child(even) {
        background: #fffaf0;
    }

    .price-list tbody tr:hover {
        background: #fff3cd;
    }

.product-name {
    text-align: left !important;
    font-weight: bold;
    color: #333;
}

/* =========================
               CATEGORY ROW
            ========================= */

.category-row td {
    background: linear-gradient( 90deg, #7f0000, #c4161c, #e65100 ) !important;
    color: #fff !important;
    font-size: 14px;
    padding: 9px !important;
    text-align: left !important;
    border: none !important;
    letter-spacing: 0.5px;
}

/* =========================
               PRICE COLORS
            ========================= */

.sale-price {
    color: #777;
    text-decoration: line-through;
}

.net-price {
    color: #c4161c;
    font-weight: bold;
}

/* =========================
               FOOTER
            ========================= */

.footer-box {
    margin-top: 25px;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    background: linear-gradient( 135deg, #7f0000, #c4161c, #e65100 );
    color: white;
}

    .footer-box h3 {
        margin: 0 0 7px;
        font-size: 18px;
    }

    .footer-box p {
        margin: 5px 0;
        font-size: 13px;
    }

.website {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 18px;
    border-radius: 20px;
    background: #fff;
    color: #c4161c !important;
    font-weight: bold;
    text-decoration: none !important;
}

.footer-note {
    margin-top: 12px;
    text-align: center;
    font-size: 10px;
    color: #777;
}

/* =========================
               MOBILE
            ========================= */

@media(max-width: 768px) {

    .container {
        width: 100%;
        margin: 0;
        padding: 8px;
    }

    .company-header {
        min-height: 145px;
    }

    .header-image,
    .header-right {
        width: 18%;
        padding: 4px;
    }

        .header-image img,
        .header-right img {
            height: 125px;
        }

    .header-content {
        width: 64%;
        padding: 8px 3px;
    }

    .company-name {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .company-tagline {
        font-size: 9px;
    }

    .address {
        font-size: 8px;
    }

    .contact {
        font-size: 8px;
    }

    .discount-box {
        font-size: 11px;
        padding: 5px 10px;
    }

    .price-list {
        font-size: 9px;
    }

        .price-list thead th,
        .price-list tbody td {
            padding: 5px 3px;
        }

    .category-row td {
        font-size: 11px;
    }
}

/* =========================
               PRINT
            ========================= */

@media print {

    body {
        background: white;
    }

    .print-button {
        display: none !important;
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 8px;
        box-shadow: none;
    }

    .company-header {
        page-break-inside: avoid;
    }

    .price-list {
        page-break-inside: auto;
    }

        .price-list tr {
            page-break-inside: avoid;
            page-break-after: auto;
        }

        .price-list thead {
            display: table-header-group;
        }

    .category-row {
        page-break-after: avoid;
    }

    .footer-box {
        page-break-inside: avoid;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }

    @page {
        size: A4;
        margin: 8mm;
    }
}
