/*
Theme Name: Salient Child Theme
Description: Custom child theme for Salient – RFL / Flex & Flow
Theme URI: https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI: https://themeforest.net/user/themenectar
Template: salient
Version: 1.1
*/

/* =========================================================
   Global Typography
   ========================================================= */

.single-product p,
.single-product li {
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================================
   Single Product Page Styling
   ========================================================= */

/* Product title */
.single-product h1.product_title {
    font-size: 30px;
    line-height: 40px;
    text-transform: uppercase;
    color: #000;
}

/* Product gallery images */
.woocommerce div.product div.images.woocommerce-product-gallery .product-slider img {
    border: 2px solid #f4f4f4;
    border-radius: 4px;
}

/* Hide category meta */
.woocommerce div.product_meta > span.posted_in {
    display: none;
}

/* Description tab heading */
.single-product #tab-description h2 {
    font-size: 25px;
    line-height: 32px;
    text-transform: uppercase;
    color: #000;
}

/* Add to cart button */
.single-product button.single_add_to_cart_button.button.alt {
    text-transform: uppercase;
}

/* =========================================================
   Related Products
   ========================================================= */

.single-product .related.products h2 {
    font-size: 25px;
    text-transform: uppercase;
}

.woocommerce div.product .related.products ul.products.columns-4 li.product {
    margin-left: 5px;
}

h2.woocommerce-loop-product__title,
.related.products span.price {
    text-align: center;
}

/* =========================================================
   Shop Sidebar
   ========================================================= */

.woocommerce-shop.woocommerce-page #sidebar h4 {
    margin-bottom: 15px;
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 700;
    color: #000;
}

/* =========================================================
   Salient / WPBakery Cleanup
   ========================================================= */

/* Remove unwanted whitespace above shortcodes */
.wpb_text_column p {
    margin-top: 0;
}

/* =========================================================
   Embedded Product Layout (Salient Pages)
   ========================================================= */

.featured-product-embed {
    max-width: 1100px;
    margin: 0 auto;
}

.featured-product-embed .product {
    display: flex;
    flex-wrap: wrap;
}

.featured-product-embed .woocommerce-product-gallery {
    width: 45%;
}

.featured-product-embed .summary {
    width: 55%;
    padding-left: 40px;
}

/* =========================================================
   RFL Compliance Checkbox (Product Page)
   ========================================================= */

.rfl-compliance-box {
    width: 100%;
    margin-bottom: 25px;
    padding: 15px 20px;
    border-left: 4px solid #c2a754;
    background: rgba(194, 167, 84, 0.08);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.rfl-compliance-box label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

/* Custom checkbox */
.rfl-compliance-box input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #c2a754;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    top: 3px;
    cursor: pointer;
}

/* Checked state */
.rfl-compliance-box input[type="checkbox"]:checked {
    background-color: #c2a754;
}

.rfl-compliance-box input[type="checkbox"]:checked::after {
    content: "✓";
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

/* Glow on hover */
.rfl-compliance-box label:hover input[type="checkbox"] {
    box-shadow: 0 0 8px rgba(194, 167, 84, 0.6);
}

/* Spacing before quantity */
form.cart .rfl-compliance-box {
    margin-bottom: 30px;
}

/* =========================================================
   Mobile Adjustments
   ========================================================= */

@media (max-width: 768px) {

    .single-product h1.product_title {
        font-size: 24px;
        line-height: 32px;
    }

    .featured-product-embed .woocommerce-product-gallery,
    .featured-product-embed .summary {
        width: 100%;
        padding-left: 0;
    }

    .rfl-compliance-box {
        padding: 12px 15px;
        font-size: 13px;
    }

    .rfl-compliance-box label {
        flex-direction: column;
    }

    .rfl-compliance-box input[type="checkbox"] {
        margin-bottom: 6px;
        top: 0;
    }
}