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;
}
/* =========================================
   DOWNUNDERPEPS CONTACT PAGE
   ========================================= */

/* Complete two-column contact section */
body .wp-block-columns:has(.dup-contact-info) {
    max-width: 1120px;
    margin: 0 auto;
    padding: 75px 30px 90px;
    gap: 75px;
    align-items: flex-start;
}

/* Keep both columns balanced */
body .wp-block-columns:has(.dup-contact-info) > .wp-block-column {
    flex-basis: 0;
    flex-grow: 1;
    min-width: 0;
}

/* =========================================
   LEFT CONTACT INFORMATION
   ========================================= */

.dup-contact-info {
    padding-top: 10px;
}

.dup-contact-label {
    display: block;
    margin-bottom: 14px;
    color: #087cff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.dup-contact-info h2 {
    margin: 0 0 16px;
    color: #08234a;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}

.dup-contact-intro {
    max-width: 480px;
    margin: 0 0 38px;
    color: #667085;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
}

.dup-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.dup-contact-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eef6ff;
    color: #087cff;
    font-size: 19px;
    line-height: 1;
}

.dup-contact-item > div:last-child {
    display: flex;
    flex-direction: column;
}

.dup-contact-item span {
    display: block;
    margin-bottom: 4px;
    color: #748096;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 1.2px;
}

.dup-contact-item strong,
.dup-contact-item a {
    display: block;
    color: #08234a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.dup-contact-item a:hover {
    color: #087cff;
}

/* =========================================
   RIGHT FORM CARD
   ========================================= */

body .wp-block-column:has(.wpforms-container) {
    padding: 34px 32px 32px;
    border: 1px solid #dbe3ec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(8, 35, 74, 0.07);
}

/* Adds heading above form */
body .wp-block-column:has(.wpforms-container)::before {
    content: "Send a message";
    display: block;
    margin: 0 0 26px;
    color: #08234a;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.wpforms-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Space between fields */
.wpforms-container .wpforms-field {
    padding: 0 0 20px !important;
}

/* Field labels */
.wpforms-container .wpforms-field-label {
    display: block !important;
    margin: 0 0 9px !important;
    color: #08234a !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase !important;
}

/* Required asterisk */
.wpforms-container .wpforms-required-label {
    color: #087cff !important;
}

/* Input fields */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container input[type="url"],
.wpforms-container select,
.wpforms-container textarea {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 1px solid #dbe3ec !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #08234a !important;
    font-family: inherit !important;
    font-size: 15px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container input[type="url"],
.wpforms-container select {
    height: 48px !important;
    padding: 0 14px !important;
}

.wpforms-container textarea {
    min-height: 120px !important;
    padding: 14px !important;
    resize: vertical;
}

/* Field focus */
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
    border-color: #087cff !important;
    box-shadow: 0 0 0 3px rgba(8, 124, 255, 0.1) !important;
}

/* First and last name fields */
.wpforms-container .wpforms-field-row {
    max-width: 100% !important;
}

.wpforms-container .wpforms-field-row-block {
    padding: 0 6px !important;
}

.wpforms-container .wpforms-field-row-block:first-child {
    padding-left: 0 !important;
}

.wpforms-container .wpforms-field-row-block:last-child {
    padding-right: 0 !important;
}

.wpforms-container .wpforms-field-sublabel {
    margin-top: 6px !important;
    color: #748096 !important;
    font-size: 11px !important;
}

/* Submit button container */
.wpforms-container .wpforms-submit-container {
    margin: 8px 0 0 !important;
    padding: 0 !important;
}

/* Send Message button */
.wpforms-container button[type="submit"],
.wpforms-container input[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #082a60 0%, #087cff 100%) !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.wpforms-container button[type="submit"]:hover,
.wpforms-container input[type="submit"]:hover {
    background: linear-gradient(90deg, #061f49 0%, #006be0 100%) !important;
    box-shadow: 0 7px 18px rgba(8, 124, 255, 0.22) !important;
    transform: translateY(-1px);
}

/* Error messages */
.wpforms-container .wpforms-error {
    color: #c62828 !important;
    font-size: 12px !important;
}

.wpforms-container label.wpforms-error {
    margin-top: 5px !important;
}

/* =========================================
   TABLET AND MOBILE
   ========================================= */

@media (max-width: 900px) {
    body .wp-block-columns:has(.dup-contact-info) {
        gap: 45px;
        padding: 55px 24px 70px;
    }

    .dup-contact-info h2 {
        font-size: 40px;
    }
}

@media (max-width: 781px) {
    body .wp-block-columns:has(.dup-contact-info) {
        display: block;
        padding: 45px 20px 60px;
    }

    body .wp-block-columns:has(.dup-contact-info) > .wp-block-column {
        width: 100%;
    }

    .dup-contact-info {
        margin-bottom: 45px;
    }

    .dup-contact-info h2 {
        font-size: 36px;
    }

    .dup-contact-intro {
        font-size: 16px;
    }

    body .wp-block-column:has(.wpforms-container) {
        padding: 26px 20px 24px;
    }
}

@media (max-width: 480px) {
    .dup-contact-info h2 {
        font-size: 32px;
    }

    .dup-contact-item {
        align-items: flex-start;
    }

    .dup-contact-item a {
        overflow-wrap: anywhere;
    }

    .wpforms-container .wpforms-field-row {
        display: block !important;
    }

    .wpforms-container .wpforms-field-row-block {
        width: 100% !important;
        margin-bottom: 10px !important;
        padding: 0 !important;
    }
}
.downunder-product-purity {
    display: block;
    margin-top: 7px;
    color: #08284d;
    font-size: 14px;
    line-height: 1.4;
}

.downunder-product-purity strong {
    font-weight: 700;
}