/* ============================================================
   Kagaz Kreations — MDF Packaging category page (/mdf-packaging)
   Palette: maroon #7A1717, burgundy #5B0F14, red #A92525,
   cream #FFF7ED, ivory #FCF3E8, gold #C9A24D.
   ============================================================ */

/* ---------- Breadcrumb bar ---------- */
.mdfc-breadcrumb-bar {
    border-bottom: 1px solid #F0DFC8;
    padding: 12px 0;
    background: #FFFDF8;
    font-size: 14px;
}

    .mdfc-breadcrumb-bar a {
        color: #6E4A3F;
    }

        .mdfc-breadcrumb-bar a:hover {
            color: #A92525;
        }

    .mdfc-breadcrumb-bar .divider {
        margin: 0 8px;
        color: #C9A24D;
    }

    .mdfc-breadcrumb-bar .current {
        color: #7A1717;
        font-weight: 600;
    }

/* ---------- Category hero ---------- */
.mdfc-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #FBE7D7 0%, #F7EBD9 55%, #F5E6D3 100%);
}

    .mdfc-hero::before,
    .mdfc-hero::after {
        position: absolute;
        top: 8px;
        width: 240px;
        height: 130px;
        content: "";
        opacity: 0.5;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 24'%3E%3Cpath d='M4 12 C 22 10 42 10 60 12' fill='none' stroke='%23C9A24D' stroke-width='1.6' stroke-linecap='round'/%3E%3Cg fill='%23C9A24D'%3E%3Cellipse cx='12' cy='7' rx='7.5' ry='2.6' transform='rotate(-26 12 7)'/%3E%3Cellipse cx='25' cy='6' rx='7.5' ry='2.6' transform='rotate(-19 25 6)'/%3E%3Cellipse cx='38' cy='5.5' rx='7.5' ry='2.6' transform='rotate(-12 38 5.5)'/%3E%3Cellipse cx='17' cy='17' rx='7.5' ry='2.6' transform='rotate(26 17 17)'/%3E%3Cellipse cx='30' cy='18' rx='7.5' ry='2.6' transform='rotate(19 30 18)'/%3E%3Cellipse cx='43' cy='18.5' rx='7.5' ry='2.6' transform='rotate(12 43 18.5)'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 190px auto,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 24'%3E%3Cpath d='M4 12 C 22 10 42 10 60 12' fill='none' stroke='%23A92525' stroke-width='1.6' stroke-linecap='round'/%3E%3Cg fill='%23A92525'%3E%3Cellipse cx='12' cy='7' rx='7.5' ry='2.6' transform='rotate(-26 12 7)'/%3E%3Cellipse cx='25' cy='6' rx='7.5' ry='2.6' transform='rotate(-19 25 6)'/%3E%3Cellipse cx='38' cy='5.5' rx='7.5' ry='2.6' transform='rotate(-12 38 5.5)'/%3E%3Cellipse cx='17' cy='17' rx='7.5' ry='2.6' transform='rotate(26 17 17)'/%3E%3Cellipse cx='30' cy='18' rx='7.5' ry='2.6' transform='rotate(19 30 18)'/%3E%3C/g%3E%3C/svg%3E") no-repeat 55px 62px / 150px auto;
    }

    .mdfc-hero::before {
        left: -34px;
        transform: rotate(-28deg);
    }

    .mdfc-hero::after {
        right: -34px;
        transform: scaleX(-1) rotate(-28deg);
    }

.mdfc-hero-inner {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.mdfc-hero-title {
    margin-bottom: 0;
    color: #7A1717;
    font-size: 52px;
    line-height: 1.15;
}

.mdfc-ornament {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 18px;
}

    .mdfc-ornament::before,
    .mdfc-ornament::after {
        width: 46px;
        height: 1px;
        content: "";
        background: #C9A24D;
    }

    .mdfc-ornament span {
        width: 8px;
        height: 8px;
        transform: rotate(45deg);
        background: #C9A24D;
    }

.mdfc-hero-text {
    max-width: 430px;
    margin-bottom: 0;
    color: #6E4A3F;
    font-size: 17px;
    line-height: 1.8;
}

.mdfc-hero-image {
    overflow: hidden;
    border: 1px solid #F0DFC8;
    border-radius: 12px;
    background: #FFFDF8;
    box-shadow: 0 18px 44px rgba(91, 15, 20, 0.12);
}

    .mdfc-hero-image img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

/* ---------- Listing head ---------- */
.mdfc-listing-section {
    background: #FFF7ED;
}

.mdfc-listing-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 34px;
}

.mdfc-listing-title {
    margin-bottom: 4px;
    color: #7A1717;
    font-size: 30px;
}

.mdfc-listing-count {
    margin: 0;
    color: #8A6A55;
    font-size: 14px;
}

.mdfc-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3E2925;
    font-size: 15px;
}

    .mdfc-sort select {
        padding: 9px 14px;
        border: 1px solid #E8D3B8;
        border-radius: 6px;
        background: #ffffff;
        color: #3E2925;
        font-size: 14px;
        cursor: pointer;
    }

        .mdfc-sort select:focus {
            outline: none;
            border-color: #C9A24D;
        }

/* ---------- Product cards ---------- */
.mdf-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #F0DFC8;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(91, 15, 20, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .mdf-product-card:hover {
        transform: translateY(-5px);
        border-color: #D8B86A;
        box-shadow: 0 18px 40px rgba(91, 15, 20, 0.13);
    }

.mdf-product-image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: #FCF3E8;
    cursor: pointer;
}

    .mdf-product-image img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

.mdf-product-card:hover .mdf-product-image img {
    transform: scale(1.05);
}

.mdf-product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 15, 20, 0.45);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mdf-product-card:hover .mdf-product-overlay {
    opacity: 1;
}

.mdf-product-overlay span {
    border: 1px solid rgba(255, 255, 255, 0.72);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.mdf-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 12px 20px;
    text-align: center;
}

.mdf-product-name {
    flex: 1;
    margin: 0;
    color: #3E2925;
    font-family: "Futura", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.mdf-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 6px;
    padding: 9px 16px;
    background: #7A1717;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease;
}

    .mdf-product-btn i {
        font-size: 10px;
    }

    .mdf-product-btn:hover {
        background: #A92525;
        color: #ffffff;
    }

/* ---------- Quick View lightbox (same look as the packaging page) ---------- */
.service-page-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #C9A24D;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 18, 18, 0.78);
}

    .service-lightbox.is-open {
        display: flex;
    }

.service-lightbox-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    width: min(1120px, 100%);
    max-height: 90vh;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.service-lightbox-media {
    min-height: 420px;
    background: #FCF3E8;
}

    .service-lightbox-media img {
        width: 100%;
        height: 100%;
        max-height: 90vh;
        object-fit: contain;
    }

.service-lightbox-content {
    padding: 38px 34px;
    overflow-y: auto;
}

.service-lightbox-title {
    color: #7A1717;
    margin-bottom: 14px;
    font-size: 30px;
    line-height: 1.2;
}

.service-lightbox-text {
    color: #6E4A3F;
    line-height: 1.75;
}

.service-lightbox-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.service-lightbox-close,
.service-lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 0;
    background: #ffffff;
    color: #7A1717;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.service-lightbox-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 24px;
    line-height: 1;
}

.service-lightbox-nav {
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
}

.service-lightbox-prev {
    left: 16px;
}

.service-lightbox-next {
    right: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .mdfc-hero::before,
    .mdfc-hero::after {
        width: 130px;
        height: 80px;
        opacity: 0.35;
        background-size: 110px auto, 85px auto;
        background-position: 0 0, 30px 34px;
    }

    .mdfc-hero-inner {
        padding: 45px 0;
    }

    .mdfc-hero-title {
        font-size: 38px;
    }

    .service-lightbox-dialog {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .service-lightbox-media {
        min-height: 280px;
    }

        .service-lightbox-media img {
            max-height: 55vh;
        }
}

@media (max-width: 767.98px) {
    .mdfc-hero-title {
        font-size: 32px;
    }

    .mdfc-hero-text {
        font-size: 15px;
    }

    .mdfc-listing-head {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .service-lightbox {
        padding: 12px;
    }

    .service-lightbox-content {
        padding: 26px 22px;
    }

    .service-lightbox-title {
        font-size: 24px;
    }
}
