/**
* Theme Name: Nutreko Child
* Description: This is a child theme of Nutreko, generated by Merlin WP.
* Author: <a href="https://wpopal.com/">Opalthemes</a>
* Template: nutreko
* Version: 1.3.0
*/

/* DH Labs brand polish: keep Revolution Slider's active state in the gold palette. */
sr7-bullet .sr7-bullet-inner,
.sr7-bullet-inner {
    background-color: #d4af37 !important;
}

/* Site-wide: square off the shared white header shell on every page type. */
.elementor-element.elementor-element-00c7a08 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* Dropdown Filter only: use four product cards per row on desktop. */
@media (min-width: 1200px) {
    body.woocommerce-shop.shop_filter_dropdown ul.products.columns-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

sr7-bullet.selected,
.sr7-bullet.selected {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.65) !important;
}

/* Preserve the slider brush artwork's alpha exactly while replacing its baked pink fill. */
#SR7_1_1-2-4 {
    background-image: none !important;
    background-color: #d4af37 !important;
    -webkit-mask-image: url("https://dhlabs.co.za/wp-content/uploads/revslider/slider-1/revslider_shape.png");
    mask-image: url("https://dhlabs.co.za/wp-content/uploads/revslider/slider-1/revslider_shape.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* The newsletter layout remains visible while no Mailchimp account is connected. */
.mc4wp-response .mc4wp-error,
.mc4wp-alert.mc4wp-error,
.mc4wp-form p[style*="indianred"],
footer p[style*="indianred"] {
    display: none !important;
}

/* Keep the footer brand mark subordinate to the content instead of spanning the viewport. */
.elementor-231 .elementor-element-9cb2ecd .hfe-site-logo-img,
.elementor-231 .elementor-element-9cb2ecd img {
    width: min(260px, 100%) !important;
    max-width: 260px !important;
    height: auto !important;
}

/* Keep every moving part of a product card on one composited animation clock. */
.woocommerce ul.products li.product .product-transition,
.woocommerce ul.products li.product .product-caption,
.woocommerce ul.products li.product .product-caption-bottom,
ul.products li.product .product-transition,
ul.products li.product .product-caption,
ul.products li.product .product-caption-bottom {
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease-in-out !important;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* The Nutreko demo presents product photography on a clean white stage. */
.woocommerce ul.products li.product .product-block,
.woocommerce ul.products li.product .product-transition,
.woocommerce ul.products li.product .product-image,
.woocommerce ul.products li.product .product-image img,
ul.products li.product .product-block,
ul.products li.product .product-transition,
ul.products li.product .product-image,
ul.products li.product .product-image img {
    background-color: #fff !important;
}

/* Banners and slider artwork ease into their zoom instead of snapping. */
.elementor-widget-call-to-action .elementor-cta__bg,
.elementor-widget-call-to-action .elementor-cta__content,
.elementor-widget-image-box img,
.elementor-carousel-image,
.swiper-slide .elementor-image img,
.swiper-slide .elementor-widget-image img {
    transition-duration: 1s !important;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
    backface-visibility: hidden;
}

/* Normalize every theme card/slider image to the requested one-second hover easing. */
.elementor-widget img,
.elementor-widget .elementor-cta__bg,
.elementor-widget [class*="image"] {
    transition-duration: 1s !important;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Keep both the former 3D mark and the current flat mark inside a peer-sized brand tile. */
img[alt="dh-labs-black-3d-logo"],
.elementor-element-e038cb5 img[src*="dh-labs-flat-black-logo"] {
    width: 150px !important;
    max-width: 150px !important;
    height: 90px !important;
    max-height: 90px !important;
    object-fit: contain !important;
}

/* Template 147 header: preserve the approved logo width with explicit vertical spacing. */
.elementor-147 .elementor-element-703be1a .hfe-site-logo-container {
    padding-block: 22px !important;
}

.elementor-147 .elementor-element-703be1a .hfe-site-logo-img {
    content: url("https://dhlabs.co.za/wp-content/uploads/2026/08/dh-labs-gold-3d-logo-e1788413308346.png") !important;
}

@media (min-width: 768px) {
    .elementor-147 .elementor-element-703be1a .hfe-site-logo-img {
        width: auto !important;
        max-width: 260px !important;
        height: 62px !important;
        max-height: 62px !important;
        object-fit: contain !important;
    }
}

/* Template 231 footer: keep its logo spacing independent from the header. */
.elementor-231 .elementor-element-9cb2ecd .hfe-site-logo-container {
    padding-block: 14px !important;
}

/* Convert remaining theme UI reds to the DH Labs gold brand accent. */
.woocommerce .star-rating span::before,
.woocommerce-page .star-rating span::before,
.comment-form-rating .stars a,
[class*="nutreko-icon-star"],
.product-labels .product-label,
.site-header-cart .count,
.header-cart .count,
.mini-cart .count {
    color: #d4af37 !important;
    border-color: #d4af37 !important;
}

.site-header-cart .count,
.header-cart .count,
.mini-cart .count {
    background-color: #d4af37 !important;
    color: #111 !important;
}

/* Replace imported promotional red/orange/green accents with DH Labs gold. */
.elementor-element-4afde55 .elementor-headline-dynamic-text,
.elementor-element-9f32c1d span,
.elementor-element-a44ec82 span,
.elementor-element-7781025 span,
.elementor-element-9df12a8 .elementor-heading-title,
.elementor-element-a8e29f8 .elementor-heading-title,
.elementor-element-f0b8a95 strong,
.elementor-element-884e5b8 .elementor-headline-dynamic-text,
.elementor-element-17ebf80 .elementor-headline-dynamic-text,
.elementor-element-194631b span,
.elementor-element-a9ef1de span,
.elementor-element-dbbc68d .elementor-headline-dynamic-text,
.elementor-element-de81251 .elementor-heading-title,
.single-product .inventory_status {
    color: #d4af37 !important;
    border-color: #d4af37 !important;
}

.elementor-element-e282104 {
    background-color: #d4af37 !important;
}

.elementor-element-e282104 :is(h1, h2, h3, h4, h5, h6, p, a, span) {
    color: #0a0a0a !important;
    border-color: #0a0a0a !important;
}

.elementor-element-29b9ace svg,
.elementor-element-29b9ace svg *,
.elementor-element-b32acfa svg,
.elementor-element-b32acfa svg *,
.elementor-element-741f5e2 svg,
.elementor-element-741f5e2 svg *,
.elementor-element-33f7cf3 svg,
.elementor-element-33f7cf3 svg * {
    fill: #d4af37 !important;
    stroke: #d4af37 !important;
}

/* Wishlist popup: replace the plugin's remaining green success and hover states. */
#woosw_wishlist .woosw-notice,
.woosw-popup .woosw-notice {
    background-color: #d4af37 !important;
    color: #0a0a0a !important;
}

#woosw_wishlist :is(.woosw-page, .woosw-continue):hover,
#woosw_wishlist :is(.woosw-page, .woosw-continue):focus-visible,
.woosw-popup :is(.woosw-page, .woosw-continue):hover,
.woosw-popup :is(.woosw-page, .woosw-continue):focus-visible {
    color: #d4af37 !important;
    border-bottom-color: #d4af37 !important;
}

/* The three launch products all carry the compact demo-style status pill. */
li.product.post-5095 .product-labels::after {
    content: "New";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 15px;
    border: 1px solid #d4af37;
    border-radius: 999px;
    color: #d4af37;
    font-size: 15px;
    line-height: 1.15;
    background: #fff;
}

/* Keep the USD symbol visually before the value after FOX redraws product prices. */
body.currency-usd .woocommerce-Price-amount > bdi {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
}

/* Upper contact/benefits strip: high-contrast black and white brand treatment. */
.elementor-element-e2f109c {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
    color: #fff !important;
}

.elementor-element-e2f109c :is(a, span, p, div, i, li),
.elementor-element-e2f109c :is(i, span)::before,
.elementor-element-e2f109c :is(i, span)::after {
    color: #fff !important;
}

.elementor-element-e2f109c svg,
.elementor-element-e2f109c svg * {
    fill: #fff !important;
    stroke: #fff !important;
}

.elementor-element-e2f109c .nutreko-woocs-dropdown-menu {
    background: #0a0a0a !important;
}

/* The imported video-product demo includes an empty generated thumbnail; never render a broken tile. */
body.single-product li.swiper-slide:has(> img[src=""]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 1024px) {
    .elementor-231 .elementor-element-9cb2ecd .hfe-site-logo-img,
    .elementor-231 .elementor-element-9cb2ecd img {
        width: min(200px, 100%) !important;
        max-width: 200px !important;
    }
}

@media (max-width: 767px) {
    .elementor-147 .elementor-element-703be1a .hfe-site-logo-container {
        padding-block: 9px !important;
    }

    .elementor-147 .elementor-element-703be1a .hfe-site-logo-img {
        width: auto !important;
        max-width: 150px !important;
        height: 45px !important;
        max-height: 45px !important;
        object-fit: contain !important;
    }

    .elementor-231 .elementor-element-9cb2ecd .hfe-site-logo-img,
    .elementor-231 .elementor-element-9cb2ecd img {
        width: min(130px, 100%) !important;
        max-width: 130px !important;
    }
}
