
/* ====================================
   BB FITNESS - MY ACCOUNT REDESIGN
   ==================================== */

/* Account page background */
body.woocommerce-account {
    background: #080a0f !important;
}

/* Main content */
.woocommerce-account main,
.woocommerce-account .entry-content {
    color: #fff;
}

/* Login / registration containers */
.woocommerce-account .woocommerce #customer_login {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
    width: 100%;
    max-width: 480px;
    float: none;
    margin: 0;
}

/* Login and registration cards */
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register,
.woocommerce-account .woocommerce
.woocommerce-form-login {
    background: #141820 !important;
    border: 1px solid #2a3040 !important;
    border-radius: 16px !important;
    padding: 35px !important;
    box-shadow: 0 15px 45px rgba(0,0,0,.3);
    max-width: 480px;
    margin: 20px auto;
}

/* Page titles */
.woocommerce-account .entry-title,
.woocommerce-account .woocommerce h2 {
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
}

/* Labels */
.woocommerce-account .woocommerce label {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
}

/* Input fields */
.woocommerce-account .woocommerce
input.input-text {
    background: #242a36 !important;
    color: #ffffff !important;
    border: 1px solid #394052 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    min-height: 50px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Focus on input */
.woocommerce-account .woocommerce
input.input-text:focus {
    border-color: #4276ff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(66,118,255,.15);
}

/* Buttons */
.woocommerce-account .woocommerce
button.button,
.woocommerce-account .woocommerce
input.button {
    background: #123cb7 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: .25s ease;
}

/* Button hover */
.woocommerce-account .woocommerce
button.button:hover,
.woocommerce-account .woocommerce
input.button:hover {
    background: #4276ff !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Links */
.woocommerce-account .woocommerce a {
    color: #7596ff;
    text-decoration: none;
}

.woocommerce-account .woocommerce a:hover {
    color: #ffffff;
}

/* Remember me */
.woocommerce-account .woocommerce
.woocommerce-form-login__rememberme {
    color: #ffffff !important;
}

/* My Account navigation */
.woocommerce-account
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
}

.woocommerce-account
.woocommerce-MyAccount-navigation a {
    display: block;
    background: #141820;
    color: #ffffff !important;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.woocommerce-account
.woocommerce-MyAccount-navigation
.is-active a {
    background: #123cb7;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce
    form.login,
    .woocommerce-account .woocommerce
    form.register {
        padding: 22px !important;
    }

    .woocommerce-account
    #customer_login .u-column1,
    .woocommerce-account
    #customer_login .u-column2 {
        max-width: 100%;
    }
}
/* BUY NOW and ADD TO CART buttons */
.single-product .single_add_to_cart_button,
.single-product .buy-now,
.single-product .buy_now_button,
.single-product .button.buy-now,
.single-product button[name="buy-now"] {
    background: #072a9e !important;
    background-color: #072a9e !important;
    color: #ffffff !important;
    border-color: #072a9e !important;
}

/* Button hover */
.single-product .single_add_to_cart_button:hover,
.single-product .buy-now:hover,
.single-product .buy_now_button:hover {
    background: #072a9e !important;
    color: #ffffff !important;
}

/* Session Duration label - 2x bigger */
.single-product .variations label {
    font-size: 120% !important;
    line-height: 1.4 !important;
}

/* Choose an option dropdown - 2x bigger */
.single-product .variations select,
.single-product .variations .select2-selection__rendered {
    font-size: 120% !important;
    line-height: 1.4 !important;
}
/* Replace ARCHIVES with SHOP */
body.post-type-archive-product .page-header h1,
body.post-type-archive-product .page-title-bar h1 {
    font-size: 0 !important;
}

body.post-type-archive-product .page-header h1::after,
body.post-type-archive-product .page-title-bar h1::after {
    content: "SHOP";
    font-size: 38px !important;
    font-weight: 700;
    color: #ffffff;
    display: block;
}
/* BB FITNESS — CHANGE ARCHIVES TO SHOP */

body.post-type-archive-product .page-title h1,
body.post-type-archive-product .page-header h1 {
    font-size: 0 !important;
}

body.post-type-archive-product .page-title h1::after,
body.post-type-archive-product .page-header h1::after {
    content: "SHOP";
    display: block;
    font-size: 38px !important;
    font-weight: 700;
    color: #ffffff;
}
add_action('wp_footer', function () {
    if (function_exists('is_shop') && is_shop()) {
        ?>
        <script>
        document.querySelectorAll('h1.entry-title').forEach(function(el) {
            if (el.textContent.trim().toLowerCase() === 'archives') {
                el.textContent = 'SHOP';
            }
        });
        </script>
        <?php
    }
}, 100);