.page-products .content-area {
    background: #f3f5f8;
}

.page-products .products-page {
    width: 100%;
    margin: 0 auto;
    padding: 40px 100px 20px;
    box-sizing: border-box;
}


/* =====================================================
   Products Banner Header
===================================================== */

.products-page-header {
    background-image: url("../img/qdts_signature_slide05.jpg");
    background-position: center 82%;
}


/* =====================================================
   Products Submenu Panel
===================================================== */

.page-products .products-submenu-panel {
    margin: 0 auto;
}

.page-products .products-submenu-toggle {
    display: none;
}

.page-products .products-submenu-arrow {
    display: none;
}


/* =====================================================
   Products Header / "Jump To" Submenu
===================================================== */

.page-products .products-header {
    margin-bottom: 40px;
}

.page-products .products-submenu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;

    margin: 0 auto;
    padding: 14px 18px;
    box-sizing: border-box;

    background: #fcfcfd;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.page-products .products-submenu a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 12px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: #1a3f74;
    text-decoration: none;
    text-align: center;

    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;

    white-space: normal;
    word-break: break-word;

    min-height: 48px;
}

/* Red underline for submenu links */
.page-products .products-submenu a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 10px;
    height: 2px;
    background: #a51b25;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}


/* =====================================================
   Product Section Layout
===================================================== */

.page-products .product-section {
    margin-bottom: 36px;
    scroll-margin-top: 130px;
}

.page-products .product-section-card {
    position: relative;
    background: #fcfcfd;
    border: 1px solid #e3e7ed;
    border-radius: 24px;
    padding: 25px 30px 28px;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.page-products .product-section-top {
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(520px, 1.2fr);
    gap: 30px;
    align-items: start;
    margin-bottom: 28px;
}


/* =====================================================
   Product Section Intro Content
===================================================== */

.page-products .product-section-intro {
    padding-top: 4px;
}

.page-products .product-section-intro h2 {
    position: relative;
    margin: 0 0 18px 0;
    font-size: 36px;
    font-weight: 750;
    line-height: 1.08;
    color: #111;
}

.page-products .product-section-intro p {
    margin: 0 0 16px 0;
    font-size: 18px;
    line-height: 1.72;
    color: #4b5563;
}

.page-products .product-section-intro p:last-child {
    margin-bottom: 0;
}

/* For slogan or sentence distinction */
.page-products .product-section-intro p.product-section-highlight {
    font-weight: 700;
    color: #1a3f74;
    margin-top: 6px;
}

.page-products .product-section-intro a {
    color: #1a3f74;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 63, 116, 0.3);
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}


/* =====================================================
   QDTS Slideshow Panel
===================================================== */

.page-products .slideshow-container {
    position: relative;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.page-products .slide_content {
    display: none;
}

.page-products .slide_content img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* Top left (current page / page count) indicator */
.page-products .slide_number_text {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
}

/* TODO: Introduce image captions if necessary, HTML already setup accordingly */
.page-products .slide_caption_text {
    display: none;
}

/* Prev and next arrows for image selection */
.page-products .slideshow_prev,
.page-products .slideshow_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    background: rgba(17, 17, 17, 0.35);
    transition: background 0.2s ease;
}

.page-products .slideshow_prev {
    left: 16px;
}

.page-products .slideshow_next {
    right: 16px;
}

.page-products .slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

/* Slideshow container, bottom selection dots styles */
.page-products .slideshow_dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    cursor: pointer;
    background: #c7ced8;
    transition: background 0.2s ease, transform 0.2s ease;
}

.page-products .slideshow_dot.active {
    background: #1a3f74;
    transform: scale(1.08);
}


/* =====================================================
   Product Info Cards
===================================================== */

.page-products .product-section-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.page-products .product-info-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 0 24px 22px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.page-products .product-info-card-full {
    margin-top: 24px;
}

.page-products .product-info-card h3 {
    margin: 0 -24px 18px;
    padding: 16px 24px;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.2;
    color: #ffffff;
    background: #1a3f74;
}


/* =====================================================
   Product Lists (Features, Options, et.)
===================================================== */

.page-products .product-check-list {
    list-style: none;  /* Remove default, using custom bullets */
    margin: 0;
    padding: 0;
}

.page-products .product-check-list li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 20px;
    font-size: 17px;
    line-height: 1.68;
    color: #374151;
}

.page-products .product-check-list li:last-child {
    margin-bottom: 0;
}

/* Custom bullet points, company blue */
.page-products .product-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1a3f74;
}

.page-products .product-check-list strong {
    color: #111;
}

.page-products .product-check-list-columns {
    columns: 2;
    column-gap: 34px;
}

.page-products .product-check-list-columns li {
    break-inside: avoid;
}


/* =====================================================
   Product Image Grids
===================================================== */

.page-products .product-image-grid-two,
.page-products .product-image-grid-four {
    width: 100%;
    display: grid;
}

.page-products .product-image-grid-two {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.page-products .product-image-grid-four {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.page-products .product-image-grid-two img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-products .product-image-grid-four img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.page-products .product-section-media.product-image-grid-two,
.page-products .product-section-media.product-image-grid-four {
    width: 100%;
}


/* =====================================================
   Secondary Cards (DCS and QD Print sections)
===================================================== */

.page-products .product-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.page-products .product-mini-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.page-products .product-mini-card-image {
    padding: 22px 22px 0;
    background: #f8fafc;
    text-align: center;
}

.page-products .product-mini-card-image img {
    width: 100%;
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.page-products .product-mini-card-body {
    padding: 24px 24px 26px;
}

.page-products .product-mini-card h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 750;
    line-height: 1.15;
    color: #111;
}

.page-products .product-mini-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #4b5563;
}


/* =====================================================
   Media Queries
===================================================== */

/* Mobile optimization */
@media (max-width: 899px) {

    .page-products .products-page {
        padding: 30px 20px 16px;
    }

    .page-products .product-section {
        scroll-margin-top: 90px;  /* Adjust slightly from desktop */
    }

    /* Submenu panel container */
    .page-products .products-submenu-panel {
        background: #fcfcfd;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

    /* Dropdown Jump-to Section Submenu (label and arrow) */
    .page-products .products-submenu-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;

        padding: 16px 18px;
        border: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        background: transparent;

        font-size: 17px;
        font-weight: 700;
        line-height: 1.35;
        color: #374151;
        text-align: left;

        cursor: pointer;
    }

    .page-products .products-submenu-toggle-label {
        display: block;
    }

    .page-products .products-submenu-arrow {
        display: block;
        width: 10px;
        height: 10px;
        flex-shrink: 0;
        margin-left: 12px;

        border-right: 2px solid #1a3f74;
        border-bottom: 2px solid #1a3f74;

        transform: rotate(45deg) translateY(-1px);
        transform-origin: center;
        transition: transform 0.2s ease;
    }

    .page-products .products-submenu-toggle[aria-expanded="true"] .products-submenu-arrow {
        transform: rotate(225deg) translateY(1px);
    }

    /* Dropdown body */
    .page-products .products-submenu-body {
        display: none;
        padding: 0;
        margin: 0;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }

    /* Used by JS for visibility toggling */
    .page-products .products-submenu-body.is-open {
        display: block;
    }

    .page-products .products-submenu {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .page-products .products-submenu a {
        position: relative;
        display: block;
        width: 100%;
        padding: 15px 18px;
        margin: 0;
        box-sizing: border-box;

        font-size: 14px;
        font-weight: 650;
        line-height: 1.35;
        color: #1a3f74;
        text-decoration: none;
        text-align: center;

        border-radius: 0;
        background: transparent;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .page-products .products-submenu a + a {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Desktop underline animation not needed */
    .page-products .products-submenu a::after {
        display: none;
    }

    .page-products .product-section-top {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    /* Sizing adjustments */
    .page-products .product-section-intro {
        padding-top: 0;
    }

    .page-products .product-section-intro h2 {
        font-size: 30px;
    }

    .page-products .product-section-intro p {
        font-size: 16px;
    }

    .page-products .slide_content img {
        height: 300px;
    }

    .page-products .slideshow_prev,
    .page-products .slideshow_next {
        width: 40px;
        height: 40px;
    }

    /* Stack all grids */
    .page-products .product-section-content-grid,
    .page-products .product-secondary-grid,
    .page-products .product-image-grid-two,
    .page-products .product-image-grid-four {
        grid-template-columns: 1fr;
    }

    /* Tighter card spacing to conserve space */
    .page-products .product-section-card {
        padding: 22px 18px;
    }

    .page-products .product-info-card {
        padding: 0 18px 18px;
    }

    .page-products .product-info-card h3 {
        margin: 0 -18px 16px;
        padding: 14px 18px;
    }

    .page-products .product-check-list-columns {
        columns: 1;
    }

    .page-products .product-image-grid-two img,
    .page-products .product-image-grid-four img {
        height: 240px;
    }

    .page-products .product-mini-card-image img {
        height: 200px;
    }
}

/* Only apply hover effects on desktop (when hover is supported) */
@media (hover: hover) and (pointer: fine) {
    .page-products .products-submenu a:hover {
        color: #a51b25;
    }

    .page-products .products-submenu a:hover::after {
        transform: scaleX(1);
    }

    .page-products .product-section-intro a:hover {
        color: #a51b25;
        border-bottom-color: #a51b25;
    }

    .page-products .slideshow_prev:hover,
    .page-products .slideshow_next:hover {
        background: rgba(17, 17, 17, 0.55);
    }

    .page-products .slideshow_dot:hover {
        background: #1a3f74;
        transform: scale(1.08);
    }
}
