DOWNUNDERPEPS — CUSTOM CSS
   ========================================================= */


/* =========================================================
   1. WOOCOMMERCE SHOP GRID
   ========================================================= */

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 32px !important;
    width: 100% !important;
    margin: 30px auto 60px !important;
    padding: 0 30px !important;
}

/* Remove old WooCommerce float layout */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none !important;
}

/* Make each product fill its grid column */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    box-sizing: border-box !important;
}


/* =========================================================
   2. SHOP PRODUCT IMAGES
   ========================================================= */

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 280px !important;
    object-fit: contain !important;
    margin: 0 auto 18px !important;
}


/* =========================================================
   3. SHOP ADD TO CART BUTTONS
   ========================================================= */

.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    width: 100% !important;
    text-align: center !important;
}


/* =========================================================
   4. TABLET SHOP GRID
   ========================================================= */

@media (max-width: 1024px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
        padding: 0 20px !important;
    }
}


/* =========================================================
   5. MOBILE SHOP GRID
   ========================================================= */

@media (max-width: 600px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 16px !important;
    }

    .woocommerce ul.products li.product img {
        height: 260px !important;
    }
}


/* =========================================================
   6. FOOTER FIX
   ========================================================= */

footer,
.site-footer,
#colophon {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;

    clear: both !important;
    width: 100% !important;
    z-index: 1 !important;
}


/* =========================================================
   7. SINGLE PRODUCT PAGE LAYOUT
   ========================================================= */

.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 1fr);
    gap: 60px;

    align-items: start;

    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 30px;

    position: relative;
    overflow: visible;
}


/* =========================================================
   8. SINGLE PRODUCT IMAGE
   ========================================================= */

.single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.single-product div.product .woocommerce-product-gallery img {
    display: block;

    width: 100% !important;
    max-width: 520px !important;

    height: auto !important;
    max-height: 650px;

    object-fit: contain;

    margin: 0 auto;
}


/* =========================================================
   9. SINGLE PRODUCT INFORMATION
   ========================================================= */

.single-product div.product .summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;

    position: relative !important;
    z-index: 2;
}


/* =========================================================
   10. PAYMENT BUTTON OVERFLOW FIX
   ========================================================= */

.single-product .payment_method,
.single-product .wc-block-components-express-payment,
.single-product .gpay-card-info-container {
    max-width: 100% !important;
}


/* =========================================================
   11. SINGLE PRODUCT MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .single-product div.product {
        display: block !important;
        padding: 40px 20px;
    }

    .single-product div.product .summary {
        margin-top: 30px !important;
    }

    .single-product div.product .woocommerce-product-gallery img {
        max-width: 100% !important;
        max-height: 500px;
    }
}


/* =========================================================
   12. RESEARCH USE ACKNOWLEDGEMENT POPUP
   ========================================================= */

.dup_overlay {
    display: none;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(10, 31, 68, 0.75);

    z-index: 999999;

    padding: 20px;
    box-sizing: border-box;

    overflow-y: auto;
}

.dup_overlay.dup_visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dup_no_scroll {
    overflow: hidden !important;
    height: 100% !important;
}

.dup_modal {
    background: #ffffff;

    width: 100%;
    max-width: 520px;

    margin: auto;

    border-radius: 10px;

    padding: 32px 28px;

    box-shadow: 0 10px 40px rgba(10, 31, 68, 0.45);

    border-top: 6px solid #1e50c8;

    box-sizing: border-box;

    font-family: inherit;
}

.dup_heading {
    color: #0a1f44;

    font-size: 24px;
    line-height: 1.3;

    margin: 0 0 12px;

    text-align: center;
}

.dup_intro {
    color: #4a4f5a;

    font-size: 15px;
    line-height: 1.5;

    margin: 0 0 22px;

    text-align: center;
}

.dup_check_row {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    background: #f0f2f5;

    border: 1px solid #e0e3e8;
    border-radius: 8px;

    padding: 14px 16px;

    margin-bottom: 14px;

    cursor: pointer;
}

.dup_checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;

    margin-top: 2px;

    accent-color: #1e50c8;

    cursor: pointer;
}

.dup_check_text {
    color: #0a1f44;

    font-size: 14px;
    line-height: 1.5;
}

.dup_enter_btn {
    display: block;

    width: 100%;

    margin-top: 20px;

    padding: 14px 20px;

    font-size: 16px;
    font-weight: 600;

    color: #ffffff;
    background: #1e50c8;

    border: none;
    border-radius: 8px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.dup_enter_btn:hover:not(:disabled) {
    background: #0a1f44;
}

.dup_enter_btn:disabled {
    background: #b8c0cc;
    color: #f0f2f5;

    cursor: not-allowed;

    opacity: 0.8;
}

@media (max-width: 480px) {

    .dup_modal {
        padding: 24px 18px;
    }

    .dup_heading {
        font-size: 20px;
    }
}


/* =========================================================
   13. FEATURED BUNDLES
   Alpha Stack = Product ID 60
   Ascend Bundle = Product ID 169
   Apex Stack = detected from product URL
   ========================================================= */

.woocommerce ul.products li.product.post-60,
.woocommerce ul.products li.product.post-169,
.woocommerce ul.products li.product:has(a[href*="apex-stack"]) {
    position: relative;

    border: 3px solid #2EA8FF !important;
    border-radius: 20px;

    box-shadow: 0 15px 35px rgba(46, 168, 255, 0.25);

    transform: scale(1.03);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    overflow: hidden;
}


/* Featured bundle hover */

.woocommerce ul.products li.product.post-60:hover,
.woocommerce ul.products li.product.post-169:hover,
.woocommerce ul.products li.product:has(a[href*="apex-stack"]):hover {
    transform: scale(1.05);

    box-shadow:
        0 20px 45px rgba(46, 168, 255, 0.35);
}


/* =========================================================
   14. BEST VALUE BADGE
   ========================================================= */

.woocommerce ul.products li.product.post-60::before,
.woocommerce ul.products li.product.post-169::before,
.woocommerce ul.products li.product:has(a[href*="apex-stack"])::before {
    content: "⭐ BEST VALUE";

    position: absolute;

    top: 15px;
    right: 15px;

    background: #FFD700;
    color: #111111;

    padding: 8px 14px;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.2;

    z-index: 999;

    pointer-events: none;
}


/* =========================================================
   15. FEATURED BUNDLE PRICE
   ========================================================= */

.woocommerce ul.products li.product.post-60 .price,
.woocommerce ul.products li.product.post-169 .price,
.woocommerce ul.products li.product:has(a[href*="apex-stack"]) .price {
    font-size: 30px;
    font-weight: 800;
}


/* =========================================================
   16. SALE PRICE COLOUR
   ========================================================= */

.price ins,
.price ins bdi {
    color: #00AEEF !important;
    font-weight: 800;
}


/* =========================================================
   17. ORIGINAL PRICE COLOUR
   ========================================================= */

.price del,
.price del bdi {
    color: #999999 !important;
}


/* =========================================================
   18. MOBILE FEATURED BUNDLE ADJUSTMENT
   Prevent scaling from pushing cards off-screen
   ========================================================= */

@media (max-width: 600px) {

    .woocommerce ul.products li.product.post-60,
    .woocommerce ul.products li.product.post-169,
    .woocommerce ul.products li.product:has(a[href*="apex-stack"]) {
        transform: none;
    }

    .woocommerce ul.products li.product.post-60:hover,
    .woocommerce ul.products li.product.post-169:hover,
    .woocommerce ul.products li.product:has(a[href*="apex-stack"]):hover {
        transform: none;
    }

    .woocommerce ul.products li.product.post-60::before,
    .woocommerce ul.products li.product.post-169::before,
    .woocommerce ul.products li.product:has(a[href*="apex-stack"])::before {
        top: 14px;
        right: 14px;

        padding: 7px 12px;

        font-size: 12px;
    }
}
/* CONSISTENT PRICE SIZE FOR ALL SHOP PRODUCTS */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price *,
.woocommerce-page ul.products li.product .price,
.woocommerce-page ul.products li.product .price * {
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}