/*
 Theme Name:   Jeezzy Child
 Theme URI:    https://jeezzy.com
 Description:  Custom child theme for jeezzy.com — fixes for logo, variation UX, performance, trust signals, brand cleanup. Built on top of WoodMart parent theme.
 Author:       Jeezzy
 Author URI:   https://jeezzy.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  jeezzy-child
*/

/* ================================================================
   1. LOGO — sized & positioned. Auto-injected by functions.php
   ================================================================ */
.site-logo .custom-logo-link img,
.site-logo a img,
.header-logo img {
    max-height: 42px !important;
    width: auto !important;
}

/* ================================================================
   2. TRUST BAR — slim announcement strip above header
   ================================================================ */
.jz-trust-bar {
    background: #1F1F1F;
    color: #FAF6EE;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 9px 16px;
    text-align: center;
    font-weight: 500;
}
.jz-trust-bar span {
    display: inline-block;
    margin: 0 18px;
}
.jz-trust-bar svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 6px;
    stroke: #E85D4E;
}
@media (max-width: 768px) {
    .jz-trust-bar { font-size: 11px; padding: 7px 8px; }
    .jz-trust-bar span { margin: 0 8px; display: inline-block; }
    .jz-trust-bar .jz-hide-mob { display: none; }
}

/* ================================================================
   3. PRODUCT VARIATION SWATCHES — fix UX on shop & product page
   ================================================================ */
/* Make the "Select options" cleaner & more inviting */
.products .product-grid-item .add_to_cart_button.product_type_variable,
.products .product-grid-item .button.product_type_variable {
    background: #1F1F1F !important;
    color: #FAF6EE !important;
    border-color: #1F1F1F !important;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.products .product-grid-item .add_to_cart_button.product_type_variable:hover {
    background: #E85D4E !important;
    border-color: #E85D4E !important;
}

/* Product page: variation dropdown → make it look like a button-toggle */
.single-product .variations select {
    border: 1px solid #E5DDC9;
    border-radius: 8px;
    padding: 12px 14px;
    background: #FAF6EE;
    font-size: 15px;
    cursor: pointer;
}
.single-product .variations label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    color: #1F1F1F;
}

/* Disabled add-to-cart should look disabled (it doesn't by default in WoodMart) */
.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button[disabled],
.single-product .single_add_to_cart_button.wc-variation-selection-needed {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

/* Variation alert (custom JS injects this) */
.jz-variation-alert {
    background: #FFF3F0;
    border-left: 3px solid #E85D4E;
    padding: 10px 14px;
    margin: 10px 0;
    color: #C9462F;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 4px;
}

/* ================================================================
   4. STICKY MOBILE ADD-TO-CART  —  conversion booster
   ================================================================ */
@media (max-width: 768px) {
    body.single-product .jz-mobile-atc {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        background: #FAF6EE;
        border-top: 1px solid #E5DDC9;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        z-index: 9990;
        display: flex;
        gap: 10px;
        align-items: center;
        box-shadow: 0 -4px 14px rgba(0,0,0,0.05);
    }
    body.single-product .jz-mobile-atc .jz-price {
        font-weight: 700;
        font-size: 16px;
        color: #1F1F1F;
        flex: 0 0 auto;
    }
    body.single-product .jz-mobile-atc button {
        flex: 1;
        background: #E85D4E;
        color: #fff;
        border: none;
        padding: 14px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 15px;
        letter-spacing: 0.02em;
        cursor: pointer;
    }
    body.single-product .jz-mobile-atc button:active { background: #C9462F; }

    /* Push site bottom up to make room */
    body.single-product .website-wrapper { padding-bottom: 80px; }
}

/* ================================================================
   5. SHOP / ARCHIVE — make landing page feel premium
   ================================================================ */
.archive .page-title-default,
.woocommerce-shop .page-title-default {
    background: linear-gradient(180deg, #FAF6EE 0%, #F2EBDC 100%) !important;
    padding: 60px 0 !important;
}
.archive .page-title-default h1,
.woocommerce-shop .page-title-default h1 {
    font-family: Fraunces, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Cleaner product cards */
.products .product-grid-item {
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.products .product-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(31,31,31,0.07);
}
.products .product-grid-item .product-image-link {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* Sale badge - tone down the % visually */
.product-label.onsale {
    background: #1F1F1F !important;
    color: #FAF6EE !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
}

/* Hide compare/wishlist on archives — distraction with only 11 products */
.products .wd-buttons-replace .add-to-wishlist-button,
.products .wd-buttons-replace .add-to-compare-button { display: none !important; }

/* ================================================================
   6. WOODMART DEMO CONTENT — visual hide (defense in depth + functions.php removes them)
   ================================================================ */
.copyrights-wrapper .copyrights-left .copyright-text--alone,
.copyrights-wrapper .copyrights-left .copyright-text {
    display: none !important;
}
.promo-popup-content .promo-title,
.promo-popup-content .promo-subtitle {
    /* Will be replaced via filters in functions.php; this is fallback */
}

/* ================================================================
   7. BROKEN/EMPTY CATEGORY WIDGETS — hide if 0 products
   ================================================================ */
.widget_product_categories li.cat-item:has(.count:contains("0")) {
    /* Modern :has() — most browsers support 2024+ */
}

/* ================================================================
   8. WHATSAPP FLOATING BUTTON
   ================================================================ */
.jz-wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.2s ease;
    text-decoration: none;
}
.jz-wa-float:hover { transform: scale(1.08); color: #fff; }
.jz-wa-float svg { width: 28px; height: 28px; }

@media (max-width: 768px) {
    body.single-product .jz-wa-float { bottom: 90px; }
}

/* ================================================================
   9. PERFORMANCE — hide the broken brand carousel until images load
   ================================================================ */
.brands-carousel-wrapper { contain: layout style; }
img { content-visibility: auto; }
