/*
Theme Name: Woodmart Child - Dioni
Template: woodmart
Version: 1.0
*/

/* === FORCE RED TOP BAR - Override ALL green === */
:root,
html,
body {
    --wp--preset--color--vivid-green-cyan: #a42927 !important;
    --wd-primary-color: #a42927 !important;
    --wd-link-color: #a42927 !important;
}

/* Top bar background */
.whb-top-bar,
.whb-top-bar .whb-row,
.whb-top-bar-bg,
div[class*="top-bar"],
.woodmart-header .whb-top-bar,
.has-vivid-green-cyan-background-color,
.has-luminous-vivid-amber-background-color,
[style*="background-color:#00d084"],
[style*="background-color: #00d084"],
[style*="background:#00d084"],
.wp-block-group.has-vivid-green-cyan-background-color,
.whb-top-bar-area,
.woodmart-topbar,
.topbar-wrapp {
    background-color: #a42927 !important;
    background: #a42927 !important;
}

/* Top bar text color */
.whb-top-bar *,
.whb-top-bar a,
.whb-top-bar .woodmart-text-block,
.whb-top-bar .whb-text,
.whb-top-bar .wd-header-text,
.whb-top-bar .wd-tools-text {
    color: #ffffff !important;
}

/* Primary color overrides */
a:hover,
.wd-entities-title a:hover,
.color-primary,
.wd-nav .wd-nav-link:hover {
    color: #a42927 !important;
}

/* Buttons */
.btn-color-primary,
.button.alt,
.woocommerce .button.alt,
.wc-block-grid__product-add-to-cart .wp-block-button__link,
.added_to_cart,
input[type="submit"],
.wd-action-btn.wd-style-text:hover .wd-tools-text,
.wd-search-form .wd-search-button,
.single_add_to_cart_button,
.checkout-button {
    background-color: #a42927 !important;
    border-color: #a42927 !important;
}

.btn-color-primary:hover,
.button.alt:hover,
.woocommerce .button.alt:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover {
    background-color: #8a1f1d !important;
    border-color: #8a1f1d !important;
}

/* Sale badge */
.onsale,
.product-label.onsale,
.wd-label-sale {
    background-color: #a42927 !important;
}

/* Price color */
.woocommerce .price ins,
.price ins .amount {
    color: #a42927 !important;
}

/* === LOGO SIZE (SVG fix) === */
.woodmart-logo img,
.site-logo img,
.custom-logo,
.whb-logo img,
.wd-logo img {
    width: 200px !important;
    height: auto !important;
    min-width: 150px !important;
    min-height: 40px !important;
    max-width: 250px !important;
}

.site-logo img[src$=".svg"] {
    width: 200px !important;
    height: auto !important;
}