/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ===========================================
   Court Sports Tech - Inquiry Model Overrides
   Karegenix Innovations LLC - 2026-03-06
   =========================================== */

/* Hide SOLD OUT badges on product cards and single product pages */
.out-of-stock-badge {
    display: none !important;
}

/* Hide "Out of stock" text on single product pages */
.stock.out-of-stock,
.ct-woo-card-stock {
    display: none !important;
}

/* Hide shopping cart icon in header */
.ct-header-cart,
[data-id="cart"] {
    display: none !important;
}

/* Style "Inquire Now" buttons on product cards */
.cst-inquire-btn {
    background-color: #00703C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.cst-inquire-btn:hover {
    background-color: #005a30 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* Single product inquiry contact box */
.cst-inquiry-box {
    background: linear-gradient(135deg, #f0f7f3, #f8faf9);
    border: 2px solid #00703C;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
    text-align: center;
}

.cst-inquiry-box h4 {
    color: #00703C;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 700;
}

.cst-inquiry-box > p {
    color: #555;
    margin-bottom: 16px;
}

.cst-inquiry-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.cst-inquiry-phone,
.cst-inquiry-email {
    color: #333 !important;
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.cst-inquiry-phone:hover,
.cst-inquiry-email:hover {
    color: #00703C !important;
}

.cst-inquiry-phone .dashicons,
.cst-inquiry-email .dashicons {
    color: #00703C;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cst-quote-btn {
    background-color: #00703C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    font-size: 1em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.cst-quote-btn:hover {
    background-color: #005a30 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* ===========================================
   Visual Refresh - Brand Colors & Typography
   =========================================== */

/* Override Blocksy accent color from blue to Playmate green */
:root {
    --theme-palette-color-1: #00703C !important;
    --theme-palette-color-2: #005a30 !important;
    --theme-palette-color-3: #1a1a1a !important;
    --theme-palette-color-4: #333333 !important;
    --theme-palette-color-5: #f8faf9 !important;
    --theme-palette-color-6: #f0f7f3 !important;
    --theme-palette-color-7: #ffffff !important;
    --theme-palette-color-8: #f5f5f5 !important;
}

/* Bolder headings with athletic feel */
h1, h2, h3, h4, h5, h6,
.entry-title,
.woocommerce-loop-product__title,
.product_title {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* Product card hover effects */
.product .ct-image-container {
    overflow: hidden;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.product:hover .ct-image-container {
    box-shadow: 0 8px 25px rgba(0, 112, 60, 0.15);
}

.product .ct-image-container img {
    transition: transform 0.4s ease !important;
}

.product:hover .ct-image-container img {
    transform: scale(1.05);
}

/* Product card styling */
.product .woocommerce-loop-product__title {
    font-size: 1.1em !important;
    margin-top: 12px !important;
}

.product .price {
    color: #00703C !important;
    font-weight: 700 !important;
    font-size: 1.05em !important;
}

/* Navigation links - green accent */
.ct-header a:hover {
    color: #00703C !important;
}

/* Active nav item */
.ct-header [aria-current="page"] > a {
    color: #00703C !important;
}

/* ===========================================
   Footer Enhancements
   =========================================== */

/* Footer background and spacing */
footer[class*="footer"],
.site-footer {
    background-color: #1a1a1a !important;
}

/* Footer links */
footer a:hover {
    color: #D4A843 !important;
}

/* Copyright text styling */
footer .ct-footer-copyright,
footer [class*="copyright"] {
    color: #888 !important;
}

/* Remove footer separator lines */
footer *,
footer .ct-container {
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Remove vertical column dividers (pseudo-elements) */
footer .ct-container > div::after,
footer .ct-container > div::before {
    display: none !important;
}

/* Top-align footer columns */
footer .ct-container {
    align-items: flex-start !important;
}

/* ===========================================
   Hero Section Enhancements
   =========================================== */

/* Hero text improvements - target the homepage hero */
.entry-content > .wp-block-cover:first-child,
.entry-content > .wp-block-group:first-child {
    min-height: 500px !important;
}

.entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container h1,
.entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container h2 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

/* Gold accent for "Sales and Service" subtitle */
.entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container h2 {
    color: #D4A843 !important;
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    font-weight: 700 !important;
}

/* ===========================================
   Mobile Responsiveness & Final Polish
   =========================================== */

/* Mobile adjustments */
@media (max-width: 768px) {
    .cst-hero-cta-bar {
        font-size: 0.9em;
        padding: 10px 15px;
        gap: 10px;
    }

    .cst-inquiry-box {
        padding: 18px;
        margin-top: 15px;
    }

    .cst-inquiry-contact {
        gap: 8px;
    }

    .cst-inquiry-phone,
    .cst-inquiry-email {
        font-size: 0.95em;
    }
}

/* Smooth transitions globally */
a, button, .button, input[type="submit"] {
    transition: all 0.3s ease;
}

/* Breadcrumb styling */
.woocommerce-breadcrumb {
    color: #888 !important;
}

.woocommerce-breadcrumb a {
    color: #00703C !important;
}

/* Product tabs on single product */
.woocommerce-tabs .tabs li.active a {
    color: #00703C !important;
    border-color: #00703C !important;
}

/* Shop page title */
.woocommerce-products-header__title {
    font-weight: 900 !important;
    color: #1a1a1a !important;
}

/* Remove any remaining WooCommerce purchase UI */
.cart-collaterals,
.woocommerce-cart-form,
.wc-proceed-to-checkout,
.checkout-button {
    display: none !important;
}