/*
Theme Name: LocalBiz Master
Theme URI: https://example.com/localbiz-master
Description: A high-performance, lightweight WordPress theme for local businesses.
Version: 1.0.0
Author: Antigravity AI
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: localbiz-master
*/

/* --- Theming Engine: CSS Variables --- */
:root {
    --primary-color: #007bff;
    /* Default Blue */
    --secondary-color: #6c757d;
    --text-color: #333333;
    --bg-color: #ffffff;
    --white: #ffffff;
    --header-height: 70px;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    height: var(--header-height);
    background: var(--white);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.header-cta .btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

/* --- Mobile Menu & Lead Traps --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        /* Simple implementation for skeleton */
    }

    .header-cta {
        display: none;
    }

    /* Sticky Mobile Lead Traps */
    .mobile-lead-traps {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        z-index: 2000;
    }

    .lead-trap {
        flex: 1;
        text-align: center;
        padding: 15px;
        color: white;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .trap-call {
        background: var(--primary-color);
    }

    .trap-whatsapp {
        background: #25d366;
    }
}

/* --- Content --- */
.site-main {
    padding: 40px 0;
}

/* --- WooCommerce Support & Optimization --- */
.woocommerce ul.products li.product {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    transition: 0.3s;
    border: 1px solid #eee;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.woocommerce ul.products li.product .button {
    background-color: var(--primary-color);
    color: #fff;
    margin-top: 15px;
}

@media (max-width: 768px) {

    /* 2-Column Mobile Grid for higher conversion */
    .woocommerce ul.products[class*=columns-] li.product,
    .woocommerce-page ul.products[class*=columns-] li.product {
        width: 48%;
        float: left;
        clear: none;
        margin: 0 1% 20px 1%;
    }

    .woocommerce ul.products li.product .button {
        width: 100%;
        text-align: center;
        padding: 12px 5px;
    }
}

/* --- Single Product Page: Mobile App Polish --- */
.woocommerce div.product .product_title {
    font-weight: 700;
    color: #222;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #28a745;
    font-weight: 700;
}

@media (max-width: 768px) {

    /* Full-width Gallery */
    .woocommerce div.product .woocommerce-product-gallery {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px) !important;
        float: none;
    }

    .woocommerce div.product .product_title {
        font-size: 1.8rem;
        margin-top: 15px;
    }

    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: 1.6rem !important;
    }

    /* Fixed "Add to Cart" Footer - The "App" Feel */
    .woocommerce div.product form.cart {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 20px;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
        z-index: 5000;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Make sure the main content doesn't get hidden behind the fixed button */
    .single-product {
        padding-bottom: 80px;
    }

    .woocommerce div.product form.cart .button {
        flex: 2;
        margin: 0 !important;
        padding: 18px !important;
        font-size: 1rem !important;
        font-weight: 700;
        text-transform: uppercase;
        border-radius: 8px;
        background-color: var(--primary-color) !important;
    }

    .woocommerce div.product form.cart .quantity {
        flex: 1;
        display: flex;
    }

    .woocommerce div.product form.cart .quantity input {
        height: 50px;
        width: 100%;
        border-radius: 8px;
    }

    /* Hide the Global Conversion Bar on Single Products to avoid overlap */
    .single-product .mobile-sticky-bar {
        display: none !important;
    }
}