/*
 Theme Name:   Storefront Child
 Theme URI:    https://example.com
 Description:  Child theme for Storefront
 Author:       Your Name
 Template:     storefront
 Version:      1.0.1
*/

/* ---- IMPORT PARENT THEME ---- */
@import url("../storefront/style.css");

/* ---- FULL WIDTH SHOP PAGE ---- */
.woocommerce-shop .site-main {
    width: 100% !important;
    max-width: 100% !important;
}
.woocommerce-shop .content-area {
    width: 100% !important;
}
.woocommerce-shop .widget-area {
    display: none !important;
}

/* ---- HIDE SORTING DROPDOWN ---- */
.woocommerce .woocommerce-ordering {
    display: none !important;
}

/* ---- GRID: 3 HORIZONTAL PRODUCT CARDS ---- */
ul.products {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
ul.products li.product {
    flex: 1;
    max-width: 32%;
    background: #111;
    padding: 40px 20px 30px;
    border-radius: 14px;
    color: #fff;
    position: relative;
    text-align: center;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */
ul.products li.product:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* ---- PRICE ---- */
ul.products li.product .price {
    font-size: 36px !important;
    font-weight: 900;
    margin: 10px 0 5px;
    color: #ffffff !important;
}

/* ---- SUBTITLE ---- */
.card-subtitle {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 25px;
    margin-top: 5px; /* small gap between title and subtitle */
}

/* Add spacing between top of product card and title */
ul.products li.product .woocommerce-loop-product__title {
    margin-top: 30px; /* adjust value as needed */
}

/* ---- SELECTED PRODUCT HIGHLIGHT ---- */
li.product.selected {
    border: 3px solid #FFD400 !important;
    box-shadow: 0 0 15px rgba(255,212,0,0.6) !important;
    position: relative;
}
li.product.selected::before {
    content: "ACT NOW!";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #FFD400;
    color: #000;
    font-weight: 900;
    padding: 8px 0;
    text-align: center;
    text-transform: uppercase;
}

/* ---- START MEMBERSHIP BUTTON (CARD) ---- */
.start-membership-btn {
    font-size: 22px;
    background: #FFD400; /* yellow same as outline */
    color: #fff; /* white text */
    padding: 18px;
    border-radius: 5%;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease;
}
.start-membership-btn:hover {
    transform: scale(1.05);
}

/* ---- GLOBAL START MEMBERSHIP BUTTON ---- */
#global-start-membership-btn {
    font-size: 22px;
    padding: 18px 40px;
    display: inline-block;
    margin: 30px auto 50px auto;
    background: #FFD400;
    color: #fff;
    border-radius: 5%;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease;
}
#global-start-membership-btn:hover {
    transform: scale(1.05);
}

/* ---- SHOP PAGE IMAGES (TOP & BOTTOM) ---- */
.custom-shop-image-before,
.custom-shop-image-after {
    text-align: center;
    margin: 20px 0;
}
.custom-shop-image-before img,
.custom-shop-image-after img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: inline-block;
}

/* ---- RESPONSIVE: STACK CARDS ---- */
@media(max-width: 900px){
    ul.products {
        flex-direction: column;
        gap: 20px;
    }
    ul.products li.product {
        max-width: 100%;
    }
}

/* ---- OTHER HIDE ELEMENTS ---- */
.onsale,
.woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.site-header-cart .cart-contents,
.woocommerce-header-cart,
.woocommerce-page #masthead {
    display: none !important;
}

/* ---- PAYMENT METHOD SELECTION HIGHLIGHT ---- */
.shop-payment-option.selected {
    border: 3px solid #FFD400;
    border-radius: 8px;
}

/* Checkout page cleanup */
.woocommerce-checkout .sidebar,
.woocommerce-checkout .widget-area,
.woocommerce-checkout .site-header .site-search {
    display: none !important;
}

/* ---------------------------------- */
/* Checkout Page - Full Width & Text Color */
/* ---------------------------------- */

/* Make checkout content full width */
.woocommerce-checkout .content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px; /* optional padding for spacing */
}

/* Make checkout main container full width */
.woocommerce-checkout .site-main {
    width: 100% !important;
    max-width: 100% !important;
}

/* Make all text whitish on checkout page */
.woocommerce-checkout {
    color: #f5f5f5; /* whitish text */
}

/* Specific elements (labels, headings, input placeholders) */
.woocommerce-checkout label,
.woocommerce-checkout .woocommerce-input-wrapper,
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout h2,
.woocommerce-checkout h3 {
    color: #f5f5f5 !important;
}

/* Inputs and textareas background dark (optional) */
.woocommerce-checkout input,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    background-color: #222 !important;
    color: #f5f5f5 !important;
    border: 1px solid #555;
}

/* Checkout buttons styling */
.woocommerce-checkout .button,
.woocommerce-checkout #place_order {
    background-color: #FFD400 !important;
    color: #000 !important;
    border-radius: 5%;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* Hover effect for buttons */
.woocommerce-checkout .button:hover,
.woocommerce-checkout #place_order:hover {
    background-color: #e6c200 !important;
}

/* Shop page background image */
body.woocommerce-shop #page.site{
    background-image: url('https://bravems.com/wp/wp-content/uploads/2025/11/6914e48e7463c0.35653708.jpg') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important; /* optional */
    background-color: #000 !important; /* fallback if image fails */
}

/* Other pages: solid black */
body:not(.woocommerce-shop) #page.site{
    background-image: none !important;
    background-color: #000 !important;
}


/* Or if you use .custom-shop-image-before img for top image, make it responsive */
.custom-shop-image-before img,
.custom-shop-image-after img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto; /* center image */
}

/* Payment selector container */
#shop-payment-selector {
    display: flex;             /* enable flex layout */
    justify-content: center;   /* center horizontally */
    align-items: center;       /* vertically align */
    gap: 20px;                 /* spacing between icons */
    flex-wrap: wrap;           /* wrap on smaller screens */
    margin-bottom: 30px;
}

/* Payment label */
#shop-payment-selector .shop-payment-label {
    font-weight: bold;
    margin-right: 10px;        /* optional small space */
}

/* Payment icons */
#shop-payment-selector .shop-payment-option {
    width: 80px;
    height: 80px;
    object-fit: contain;
    cursor: pointer;
    display: block;
    transition: transform 0.25s ease;
}

/* Selected payment highlight */
#shop-payment-selector .shop-payment-option.selected {
    border: 3px solid #FFD400;
    border-radius: 8px;
    transform: scale(1.1);
}