/*
Theme Name: Robin Parker - Astra Child Theme
Theme URI: https://robindparker.com
Description: Custom child theme for Robin Parker's WooCommerce shop, matching the main author website design
Author: Robin Parker
Author URI: https://robindparker.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: robin-parker-child
*/

/* ========================================
   GLOBAL STYLES - MATCHING MAIN SITE
   ======================================== */

/* Typography */
body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: bold;
}

/* Header/Navigation - Matching Main Site */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header-bar {
    background: transparent;
}

.site-title a,
.site-description,
.main-header-bar .ast-site-identity .site-logo-img,
.main-navigation a {
    color: white !important;
}

.main-navigation a:hover {
    color: #ffd700 !important;
}

/* Footer - Matching Main Site */
.site-footer {
    background: #0a0a0a;
    color: white;
    text-align: center;
    padding: 2rem;
}

.site-footer a {
    color: #ffd700;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   CLEAN LAYOUT STYLES
   ======================================== */

/* Container and spacing */
.ast-container {
    max-width: 1200px;
}

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Clean content area */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* ========================================
   WOOCOMMERCE - DEFAULT/NEUTRAL STYLES
   ======================================== */

/* Shop page grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.woocommerce ul.products li.product {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Product images */
.woocommerce ul.products li.product img {
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Product titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

/* Product prices */
.woocommerce ul.products li.product .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

/* Default buttons - Gold (for general/uncategorized products) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: #ffd700 !important;
    color: #1a1a2e !important;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: #ffed4e !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Single product page */
.woocommerce div.product {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.woocommerce div.product .product_title {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.woocommerce div.product p.price {
    font-size: 1.8rem;
    color: #1a1a2e;
    font-weight: bold;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #ddd;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #ffd700;
    border-bottom: 3px solid #ffd700;
}

/* ========================================
   ZYTOPRA CATEGORY - PURPLE TINTS
   ======================================== */

/* Zytopra product cards */
.product-category-zytopra,
.tax-product_cat.term-zytopra .woocommerce ul.products li.product,
.single-product.product-category-zytopra .woocommerce div.product {
    background: linear-gradient(to bottom, rgba(45, 27, 78, 0.05) 0%, white 100%) !important;
    border-top: 3px solid #7b4fb8;
}

/* Zytopra buttons - Darker purple */
.product-category-zytopra .button,
.tax-product_cat.term-zytopra .woocommerce a.button,
.tax-product_cat.term-zytopra .woocommerce button.button,
.single-product.product-category-zytopra .woocommerce a.button,
.single-product.product-category-zytopra .woocommerce button.button,
.single-product.product-category-zytopra .woocommerce input.button,
.single-product.product-category-zytopra .woocommerce #respond input#submit,
.single-product.product-category-zytopra .woocommerce a.button.alt,
.single-product.product-category-zytopra .woocommerce button.button.alt {
    background: #5a3a8a !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(90, 58, 138, 0.3) !important;
}

.product-category-zytopra .button:hover,
.tax-product_cat.term-zytopra .woocommerce a.button:hover,
.tax-product_cat.term-zytopra .woocommerce button.button:hover,
.single-product.product-category-zytopra .woocommerce a.button:hover,
.single-product.product-category-zytopra .woocommerce button.button:hover,
.single-product.product-category-zytopra .woocommerce input.button:hover,
.single-product.product-category-zytopra .woocommerce #respond input#submit:hover,
.single-product.product-category-zytopra .woocommerce a.button.alt:hover,
.single-product.product-category-zytopra .woocommerce button.button.alt:hover {
    background: #7b4fb8 !important;
    box-shadow: 0 6px 20px rgba(123, 79, 184, 0.5) !important;
}

/* Zytopra category archive header */
.tax-product_cat.term-zytopra .ast-archive-description {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0f2e 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.tax-product_cat.term-zytopra .ast-archive-description h1 {
    color: #ffd700;
}

/* ========================================
   ANNA CATEGORY - GREEN TINTS
   ======================================== */

/* Anna product cards */
.product-category-anna,
.tax-product_cat.term-anna .woocommerce ul.products li.product,
.single-product.product-category-anna .woocommerce div.product {
    background: linear-gradient(to bottom, rgba(26, 77, 46, 0.05) 0%, white 100%) !important;
    border-top: 3px solid #2d8a4d;
}

/* Anna buttons - Darker green */
.product-category-anna .button,
.tax-product_cat.term-anna .woocommerce a.button,
.tax-product_cat.term-anna .woocommerce button.button,
.single-product.product-category-anna .woocommerce a.button,
.single-product.product-category-anna .woocommerce button.button,
.single-product.product-category-anna .woocommerce input.button,
.single-product.product-category-anna .woocommerce #respond input#submit,
.single-product.product-category-anna .woocommerce a.button.alt,
.single-product.product-category-anna .woocommerce button.button.alt {
    background: #1a5a2e !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(26, 90, 46, 0.3) !important;
}

.product-category-anna .button:hover,
.tax-product_cat.term-anna .woocommerce a.button:hover,
.tax-product_cat.term-anna .woocommerce button.button:hover,
.single-product.product-category-anna .woocommerce a.button:hover,
.single-product.product-category-anna .woocommerce button.button:hover,
.single-product.product-category-anna .woocommerce input.button:hover,
.single-product.product-category-anna .woocommerce #respond input#submit:hover,
.single-product.product-category-anna .woocommerce a.button.alt:hover,
.single-product.product-category-anna .woocommerce button.button.alt:hover {
    background: #2d8a4d !important;
    box-shadow: 0 6px 20px rgba(45, 138, 77, 0.5) !important;
}

/* Anna category archive header */
.tax-product_cat.term-anna .ast-archive-description {
    background: linear-gradient(135deg, #1a4d2e 0%, #0f2818 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.tax-product_cat.term-anna .ast-archive-description h1 {
    color: #90ee90;
}

/* ========================================
   CART & CHECKOUT PAGES
   ======================================== */

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.woocommerce table.shop_table {
    border-radius: 5px;
    overflow: hidden;
}

.woocommerce table.shop_table thead {
    background: #f8f9fa;
}

.woocommerce table.shop_table th {
    font-weight: bold;
    color: #1a1a2e;
}

/* Cart totals */
.woocommerce-cart .cart-collaterals .cart_totals {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

/* Checkout fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 0.75rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #1a1a2e;
    outline: none;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.woocommerce-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #666;
}

.woocommerce-breadcrumb a {
    color: #1a1a2e;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: #ffd700;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .ast-separate-container .ast-article-post,
    .ast-separate-container .ast-article-single,
    .woocommerce div.product,
    .woocommerce-cart .woocommerce,
    .woocommerce-checkout .woocommerce {
        padding: 1.5rem;
    }

    .woocommerce div.product .product_title {
        font-size: 2rem;
    }
}
/* Mobile Menu Fix - Force Menu to Show When Active */
@media (max-width: 921px) {
    /* Astra's mobile menu container */
    .ast-mobile-menu-buttons {
        display: flex;
    }
    
    /* Show the menu when toggle is active */
    .ast-header-break-point .main-header-menu {
        display: none;
    }
    
    .ast-header-break-point .main-header-menu.toggled {
        display: block !important;
    }
    
    /* Style the mobile menu dropdown */
    .ast-header-break-point .main-navigation {
        display: block;
        width: 100%;
    }
    
    .ast-header-break-point .main-navigation ul {
        display: block;
        width: 100%;
    }
    
    .ast-header-break-point .main-navigation ul li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .ast-header-break-point .main-navigation ul li a {
        display: block;
        padding: 1rem;
    }
}
/* FORCE Mobile Menu Visibility */
@media (max-width: 921px) {
    /* Container background */
    .ast-mobile-header-wrap,
    .ast-main-header-wrap,
    .main-header-menu {
        background: #1a1a2e !important;
    }
    
    /* Menu items */
    .ast-header-break-point .main-navigation ul li a {
        color: white !important;
        background: #16213e !important;
        display: block !important;
        padding: 1rem 1.5rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .ast-header-break-point .main-navigation ul li a:hover {
        background: #2d3561 !important;
        color: #ffd700 !important;
    }
}


/* Mobile Menu - Make it Visible and Styled */
@media (max-width: 921px) {
    /* Mobile menu container background */
    .ast-mobile-header-content,
    .main-header-bar-navigation {
        background: #16213e !important;
        width: 100% !important;
    }
    
    /* Mobile menu when toggled open */
    .main-header-bar-navigation.toggle-on {
        display: block !important;
        background: #16213e !important;
        position: relative;
        z-index: 999;
    }
    
    /* Menu list styling */
    #ast-hf-mobile-menu {
        background: #16213e !important;
        padding: 1rem 0 !important;
        margin: 0 !important;
    }
    
    /* Individual menu items */
    #ast-hf-mobile-menu li {
        background: transparent !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    /* Menu links - WHITE TEXT */
    #ast-hf-mobile-menu li a {
        color: white !important;
        padding: 1rem 1.5rem !important;
        display: block !important;
        background: transparent !important;
    }
    
    /* Menu links on hover - GOLD */
    #ast-hf-mobile-menu li a:hover {
        color: #ffd700 !important;
        background: rgba(255,255,255,0.05) !important;
    }
    
    /* Mobile header wrapper */
    .ast-mobile-header-wrap {
        background: #1a1a2e !important;
    }
}