/*
Theme Name: Vitic Child
Theme URI: http://www.wpbingosite.com/vitic
Author: wpbingo
Description: This is a child theme for Vitic
Version: 1.0
Author URI: http://wpbingosite.com
Template: vitic
Text Domain: vitic-child
*/
/*************** ADD YOUR CUSTOM CSS HERE  ***************/

/* WP Chat App floating widget: keep mobile/tablet behaviour, hide on desktop. */
@media (min-width: 769px) {
    .wa__btn_popup,
    .wa__popup_chat_box {
        display: none !important;
    }
}

/* Visible attribution is rendered beside forms by the child theme. */
.grecaptcha-badge {
    visibility: hidden !important;
}
.gs-recaptcha-attribution {
    display: block;
    width: 100%;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}
.gs-recaptcha-attribution a {
    text-decoration: underline;
}

/* Existing SHOP HERE green for the main desktop and mobile header backgrounds. */
#bwp-header .header-wrapper,
#bwp-header .header-mobile {
    background-color: #023b29 !important;
}

/* Match Vitic's mobile header breakpoint; leave desktop rules untouched. */
@media (max-width: 991px) {
    body {
        --gs-mobile-nav-height: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: var(--gs-mobile-nav-height);
    }

    /* Reserve space for both right-hand controls instead of squeezing the logo. */
    #bwp-header .header-mobile > .container > .row {
        flex-wrap: nowrap;
    }
    #bwp-header .header-mobile .header-left {
        flex: 0 0 52px;
        max-width: 52px;
    }
    #bwp-header .header-mobile .header-center {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        padding: 0 8px;
    }
    #bwp-header .header-mobile .header-right {
        flex: 0 0 100px;
        max-width: 100px;
        align-items: center;
    }
    #bwp-header .header-mobile .wpbingoLogo img {
        max-width: 100%;
        height: auto;
    }
    #bwp-header .header-mobile .navbar-toggle,
    #bwp-header .header-mobile .cart-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        min-height: 44px;
    }
    #bwp-header .header-mobile .vitic-topcart {
        margin-left: 4px;
    }
    #bwp-header .header-mobile .cart-count {
        top: -4px;
    }
    #bwp-header .header-mobile-fixed {
        height: var(--gs-mobile-nav-height);
        padding: 5px 15px calc(5px + env(safe-area-inset-bottom, 0px));
    }
    #bwp-header .header-mobile-fixed a,
    #bwp-header .header-mobile-fixed .search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }

    /* Separate the floating controls and keep the chat panel inside the screen. */
    .wa__btn_popup {
        bottom: calc(var(--gs-mobile-nav-height) + 16px) !important;
        right: 16px !important;
    }
    .wa__popup_chat_box {
        bottom: calc(var(--gs-mobile-nav-height) + 84px) !important;
        right: 12px !important;
        width: min(350px, calc(100vw - 24px));
        max-height: calc(100vh - 168px - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 168px - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
    }
    .grecaptcha-badge {
        bottom: calc(var(--gs-mobile-nav-height) + 88px) !important;
    }
    .back-top {
        left: 16px;
        right: auto;
        bottom: calc(var(--gs-mobile-nav-height) + 16px);
    }
    /* The normal purchase form remains available; the duplicate bar crowds mobile. */
    .contents-detail .sticky-product {
        display: none !important;
    }

    .search-overlay {
        overflow-y: auto;
    }
    .search-overlay .wrapper-search {
        top: 80px;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 16px;
        transform: none;
    }
    .search-overlay .search-from .search-box {
        min-width: 0;
        padding-left: 0;
    }
    .search-overlay .search-from .search-box input[type="text"] {
        padding-right: 48px;
        box-sizing: border-box;
        font-size: 16px;
    }
    .search-overlay .search-from .search-box #searchsubmit {
        width: 44px;
        min-height: 44px;
    }
    .search-overlay .result-search-products {
        padding: 12px;
        max-height: calc(100vh - 180px);
        max-height: calc(100dvh - 180px);
    }
    .search-overlay .result-search-products .item-search {
        table-layout: fixed;
        overflow-wrap: anywhere;
    }

    /* Keep card actions in flow and accessible without a hover on touch screens. */
    .products-list.grid .product-wapper .products-thumb .product-button {
        position: static;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 0;
    }
    .products-list.grid .product-wapper .products-thumb .product-button > * {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .products-list.grid .product-wapper .products-thumb .product-button > .button {
        margin: 0;
        max-width: 100%;
    }
    /* Match the parent's mobile compare-button rule for the plugin's duplicate link. */
    .products-list.grid .product-wapper .products-thumb .product-button > .compare {
        display: none;
    }
    .products-list .product-title,
    .products-list .price,
    .bwp-single-info .price,
    .bwp-single-info .product_title {
        height: auto;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .products-list .woocommerce-Price-amount,
    .bwp-single-info .woocommerce-Price-amount {
        display: inline-block;
        white-space: nowrap;
    }
    .products-list .yith-wcwl-add-to-wishlist-button {
        flex-wrap: wrap;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .products-list .yith-wcwl-add-to-wishlist-button__label {
        font-size: 12px;
    }
    .content-product-list .slick-list {
        margin-left: 0;
        margin-right: 0;
    }
    .bwp-single-info .quantity-button,
    .bwp-single-info .variations_button {
        flex-wrap: wrap;
        gap: 10px;
    }
    .bwp-single-info .quantity {
        flex: 0 0 auto;
        margin-right: 0;
    }
    .bwp-single-info .single_add_to_cart_button.button {
        min-width: 140px;
        white-space: normal;
        line-height: 1.4;
        min-height: 48px;
        padding: 12px;
    }
    .bwp-single-info .variations select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .woocommerce-pagination ul.page-numbers {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    /* Scope to the live Cart/Checkout blocks, leaving payment widgets alone. */
    .wp-block-woocommerce-cart .wc-block-components-main,
    .wp-block-woocommerce-cart .wc-block-components-sidebar,
    .wp-block-woocommerce-checkout .wc-block-components-main,
    .wp-block-woocommerce-checkout .wc-block-components-sidebar {
        min-width: 0;
    }
    .wc-block-cart .wc-block-components-product-name,
    .wc-block-checkout .wc-block-components-product-name {
        overflow-wrap: anywhere;
    }
    .wc-block-cart .wc-block-cart__submit-button,
    .wc-block-checkout .wc-block-components-checkout-place-order-button {
        white-space: normal;
        height: auto;
        min-height: 48px;
    }
    .wc-block-cart .wc-block-cart__submit-container--sticky {
        position: static;
    }
    .wc-block-components-notices__snackbar {
        bottom: calc(var(--gs-mobile-nav-height) + 16px);
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 414px) {
    .bwp-top-bar .woocommerce-ordering {
        float: none;
        clear: both;
        max-width: 100%;
        margin-bottom: 12px;
    }
    .bwp-top-bar .woocommerce-ordering .dropdown-menu {
        max-width: calc(100vw - 30px);
        min-width: 0;
    }
    .bwp-top-bar .woocommerce-ordering .dropdown-menu a {
        white-space: normal;
    }
    .wc-block-checkout .wc-block-components-address-form__first_name,
    .wc-block-checkout .wc-block-components-address-form__last_name {
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* A full-width card avoids squeezing long names, VAT prices and action buttons. */
@media (max-width: 359px) {
    ul.products-list.grid:not(.slick-carousel) > li.product {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Homepage SHOP BY BRANDS: retain the existing carousel and desktop styling. */
@media (max-width: 767px) {
    .home .elementor-element-5bd97dc h2 {
        white-space: nowrap;
        font-size: clamp(20px, 6vw, 28px);
    }
    .home .elementor-element-5bd97dc h2 br {
        display: none;
    }
    .home .elementor-element-1a74e73 .bwp-brand {
        position: relative;
        padding: 0 26px;
    }
    .home .elementor-element-1a74e73 .slick-list {
        margin: 0;
    }
    .home .elementor-element-1a74e73 .bwp-brand .item {
        padding: 0 4px;
    }
    .home .elementor-element-1a74e73 .bwp-brand .item-image {
        height: 60px;
        min-height: 60px;
        margin-bottom: 0;
    }
    .home .elementor-element-1a74e73 .bwp-brand .item-image a {
        width: 100%;
        height: 60px;
        min-height: 0;
    }
    .home .elementor-element-1a74e73 .bwp-brand .item-image img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 56px;
        object-fit: contain;
        transform: none;
    }
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow {
        display: flex !important;
        align-items: center;
        justify-content: center;
        top: 50%;
        bottom: auto;
        width: 24px;
        height: 28px;
        padding: 0;
        margin: 0;
        line-height: 1;
        border: 1px solid #d8dfdb;
        border-radius: 4px;
        background: #fff;
        color: #023b29;
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%);
        cursor: pointer;
    }
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow.fa-angle-left {
        left: 0 !important;
        right: auto !important;
        padding: 0;
        border: 1px solid #d8dfdb;
        border-radius: 4px;
    }
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow.fa-angle-right {
        right: 0 !important;
        left: auto !important;
        padding: 0;
        border: 1px solid #d8dfdb;
        border-radius: 4px;
    }
    .home .elementor-11328 .elementor-element.elementor-element-aea851e {
        margin-bottom: 16px;
    }
    .home .elementor-11328 .elementor-element.elementor-element-1a74e73 > .elementor-widget-container {
        margin-bottom: 0;
    }
}

/* Reuse the desktop product form immediately below the mobile header. */
#bwp-header .gs-mobile-product-search {
    display: none;
}
@media (max-width: 768px) {
    #bwp-header .gs-mobile-product-search {
        display: block;
        padding: 8px 12px;
        background: #023b29;
    }
    #bwp-header .gs-mobile-product-search .header-search-form {
        display: block !important;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    #bwp-header .gs-mobile-product-search .search-from {
        position: relative;
        display: flex;
        width: 100%;
        height: 50px;
        margin: 0;
        padding: 0;
        border: 1px solid #d8dfdb;
        border-radius: 4px;
        background: #fff;
    }
    #bwp-header .gs-mobile-product-search .select_category {
        display: none;
    }
    #bwp-header .gs-mobile-product-search .search-box {
        position: static;
        flex: 1;
        min-width: 0;
        padding: 0;
    }
    #bwp-header .gs-mobile-product-search .search-box input[type="text"] {
        width: 100%;
        height: 48px;
        padding: 0 14px;
        border: 0;
        border-radius: 4px;
        background: #fff;
        color: #023b29;
        font-size: 16px;
        line-height: normal;
    }
    #bwp-header .gs-mobile-product-search #searchsubmit2 {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: #fff;
        color: #023b29;
    }
    #bwp-header .gs-mobile-product-search #searchsubmit2::before {
        content: '';
        display: block;
        width: 22px;
        height: 22px;
        margin: auto;
        background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23023b29' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E");
    }
    #bwp-header .gs-mobile-product-search #searchsubmit2 span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
    #bwp-header .gs-mobile-product-search .result-search-products-content {
        top: calc(100% + 6px);
        left: 0;
        width: 100%;
        z-index: 100;
    }
    #bwp-header .gs-mobile-product-search .result-search-products {
        max-height: 50vh;
        padding: 12px;
        overflow-wrap: anywhere;
    }
}

/* Native Slick pagination for homepage product carousels only. */
.home .bwp-filter-homepage .products-list.slick-carousel > .slick-dots,
.home .bwp_product_list .products-list.slick-carousel > .slick-dots {
    display: none !important;
}
@media (max-width: 768px) {
    .home .bwp-filter-homepage .products-list.slick-carousel > .slick-dots,
    .home .bwp_product_list .products-list.slick-carousel > .slick-dots {
        position: static;
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        margin: 8px 0 0;
        padding: 0;
        list-style: none;
        transform: none;
    }
    .home .bwp-filter-homepage .products-list > .slick-dots li,
    .home .bwp_product_list .products-list > .slick-dots li {
        display: block;
        width: 24px;
        height: 24px;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
    }
    .home .bwp-filter-homepage .products-list > .slick-dots li button,
    .home .bwp_product_list .products-list > .slick-dots li button {
        display: block;
        width: 8px;
        height: 8px;
        margin: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #b8bebb;
        font-size: 0;
        line-height: 0;
        opacity: 1;
    }
    .home .bwp-filter-homepage .products-list > .slick-dots li button::before,
    .home .bwp_product_list .products-list > .slick-dots li button::before {
        content: none;
    }
    .home .bwp-filter-homepage .products-list > .slick-dots li.slick-active button,
    .home .bwp_product_list .products-list > .slick-dots li.slick-active button {
        background: #023b29;
    }
}

/* Compact homepage sections and carousel controls on phones/tablets. */
@media (max-width: 768px) {
    /* The theme reserves 43px below every card, before the pagination margin. */
    .home .bwp-filter-homepage .products-list.slick-carousel .product-wapper,
    .home .bwp_product_list .products-list.slick-carousel .product-wapper {
        margin-bottom: 0;
    }
    .home .bwp-filter-homepage .products-list.slick-carousel,
    .home .bwp_product_list .products-list.slick-carousel {
        min-height: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .home .bwp-filter-homepage .products-list.slick-carousel > .slick-dots,
    .home .bwp_product_list .products-list.slick-carousel > .slick-dots {
        margin-top: 12px;
    }
    /* Shared mobile arrow appearance, taken from the existing Brands controls. */
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow,
    .home .bwp-filter-homepage .products-list.slick-carousel > .slick-arrow,
    .home .bwp_product_list .products-list.slick-carousel > .slick-arrow {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 28px;
        padding: 0;
        margin: 0;
        border: 1px solid #d8dfdb;
        border-radius: 4px;
        background: #fff;
        box-shadow: none;
        color: #023b29;
        font-size: 30px;
        line-height: 1;
        opacity: 1;
        visibility: visible;
        cursor: pointer;
    }
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow.fa-angle-left::before,
    .home .bwp-filter-homepage .products-list.slick-carousel > .slick-arrow.fa-angle-left::before,
    .home .bwp_product_list .products-list.slick-carousel > .slick-arrow.fa-angle-left::before {
        content: "\23";
        font-family: eleganticons;
    }
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow.fa-angle-right::before,
    .home .bwp-filter-homepage .products-list.slick-carousel > .slick-arrow.fa-angle-right::before,
    .home .bwp_product_list .products-list.slick-carousel > .slick-arrow.fa-angle-right::before {
        content: "\24";
        font-family: eleganticons;
    }
    /* Keep product controls in the pagination row, clear of all card content. */
    .home .bwp-filter-homepage .products-list.slick-carousel > .slick-arrow,
    .home .bwp_product_list .products-list.slick-carousel > .slick-arrow {
        top: auto;
        bottom: 0;
        transform: none;
        z-index: 2;
    }
    .home .bwp-filter-homepage .products-list.slick-carousel > .slick-arrow.fa-angle-left,
    .home .bwp_product_list .products-list.slick-carousel > .slick-arrow.fa-angle-left {
        left: 0 !important;
        right: auto !important;
    }
    .home .bwp-filter-homepage .products-list.slick-carousel > .slick-arrow.fa-angle-right,
    .home .bwp_product_list .products-list.slick-carousel > .slick-arrow.fa-angle-right {
        right: 0 !important;
        left: auto !important;
    }
    .home .bwp-filter-homepage .products-list.slick-carousel > .slick-dots,
    .home .bwp_product_list .products-list.slick-carousel > .slick-dots {
        min-height: 28px;
        padding: 0 32px;
        box-sizing: border-box;
    }
    /* Remove the stacked desktop section and mobile column margins above Brands. */
    .home .elementor-11328 .elementor-element.elementor-element-847fa15 {
        margin-bottom: 20px;
    }
    .home .elementor-11328 .elementor-element.elementor-element-7986f5c > .elementor-element-populated {
        margin-bottom: 0;
    }
    .home .elementor-11328 .elementor-element.elementor-element-e90a9a2,
    .home .elementor-11328 .elementor-element.elementor-element-52eca3c {
        display: none;
    }
    .home .elementor-11328 .elementor-element.elementor-element-370f67f {
        margin-top: 0;
        padding-top: 0;
    }
    /* The services image previously used its natural size and the default repeat. */
    .home .elementor-11328 .elementor-element.elementor-element-2c0d48f {
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 70% center;
        height: auto;
        min-height: 0;
        padding: 32px 20px;
    }
}

/* Mobile homepage cards: expose the existing nested actions for CSS ordering. */
@media (max-width: 768px) {
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .slick-slide {
        padding-left: 5px;
        padding-right: 5px;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .product-wapper {
        display: flex;
        flex-direction: column;
        padding: 10px;
        border: 1px solid #d8dfdb;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .product-wapper > .products-thumb {
        display: contents;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb > .woocommerce-LoopProduct-link {
        order: 1;
        display: block;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb > .yith-add-to-wishlist-button-block {
        order: 2;
        margin-top: 8px;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .product-wapper > .products-content {
        order: 3;
        margin-top: 12px;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb > .product-button {
        order: 4;
        position: static;
        display: flex;
        width: 100%;
        margin-top: 12px;
        padding: 0;
        transform: none;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb .product-button > .button:not(.compare),
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb .product-button > .added_to_cart {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        height: auto;
        margin: 0;
        padding: 10px 6px;
        border: 0;
        border-radius: 2px;
        background: #023b29;
        color: #fff;
        box-shadow: none;
        font-size: 12px;
        line-height: 20px;
        letter-spacing: 0.5px;
        white-space: normal;
        text-align: center;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    /* Preserve the native loading indicator, but omit the decorative cart icon. */
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb .product-button > .button:not(.compare):not(.loading)::before {
        display: none;
    }
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow,
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel > .slick-arrow {
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #dadada;
        box-shadow: none;
        font-size: 30px;
    }
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow.fa-angle-left::before,
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel > .slick-arrow.fa-angle-left::before {
        content: "\f104";
        font-family: FontAwesome;
    }
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow.fa-angle-right::before,
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel > .slick-arrow.fa-angle-right::before {
        content: "\f105";
        font-family: FontAwesome;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel > .slick-arrow {
        top: auto;
        bottom: 0;
        transform: none;
    }
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow.fa-angle-left,
    .home .elementor-element-1a74e73 .bwp-brand .slick-arrow.fa-angle-right {
        border: 0;
        border-radius: 0;
    }
}

/* Desktop homepage product actions belong below the price, not over the image. */
@media (min-width: 769px) {
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .product-wapper {
        display: flex;
        flex-direction: column;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .product-wapper > .products-thumb {
        display: contents;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb > .woocommerce-LoopProduct-link {
        order: 1;
        display: block;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb > .yith-add-to-wishlist-button-block {
        order: 2;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .product-wapper > .products-content {
        order: 3;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb > .product-button {
        order: 4;
        position: static;
        width: 100%;
        margin-top: 12px;
        padding: 0;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
        transform: none;
    }
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb .product-button > .button:not(.compare),
    .home :is(.bwp-filter-homepage, .bwp_product_list) .products-list.slick-carousel .products-thumb .product-button > .added_to_cart {
        position: static;
        display: inline-block;
        width: auto;
        max-width: 100%;
        margin: 0;
        padding: 0 14px;
        background: #023b29;
        color: #fff;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Only the main WooCommerce archive grid; exclude homepage and slider widgets. */
body.woocommerce.archive:not(.home) .content-products-list > ul.products.products-list.grid:not(.slick-carousel) > li.product .product-wapper {
    display: flex;
    flex-direction: column;
}
body.woocommerce.archive:not(.home) .content-products-list > ul.products.products-list.grid:not(.slick-carousel) > li.product .product-wapper > .products-thumb {
    display: contents;
}
body.woocommerce.archive:not(.home) .content-products-list > ul.products.products-list.grid:not(.slick-carousel) > li.product .products-thumb > :is(.woocommerce-LoopProduct-link, .product-thumb-hover) {
    order: 1;
    display: block;
}
body.woocommerce.archive:not(.home) .content-products-list > ul.products.products-list.grid:not(.slick-carousel) > li.product .products-thumb > .yith-add-to-wishlist-button-block {
    order: 2;
}
body.woocommerce.archive:not(.home) .content-products-list > ul.products.products-list.grid:not(.slick-carousel) > li.product .product-wapper > .products-content {
    order: 3;
}
body.woocommerce.archive:not(.home) .content-products-list > ul.products.products-list.grid:not(.slick-carousel) > li.product .products-thumb > .product-button {
    order: 4;
    position: static;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    transform: none;
}
body.woocommerce.archive:not(.home) .content-products-list > ul.products.products-list.grid:not(.slick-carousel) > li.product .products-thumb .product-button > :is(.button:not(.compare), .added_to_cart) {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 40px;
    height: auto;
    margin: 0;
    padding: 8px 14px;
    border: 0;
    background: #023b29;
    color: #fff;
    box-shadow: none;
    line-height: 20px;
    white-space: normal;
    text-align: center;
    opacity: 1;
    visibility: visible;
    transform: none;
}
@media (max-width: 768px) {
    body.woocommerce.archive:not(.home) .content-products-list > ul.products.products-list.grid:not(.slick-carousel) > li.product .products-thumb .product-button > :is(.button:not(.compare), .added_to_cart) {
        width: 100%;
        min-height: 44px;
        padding: 10px 6px;
    }
}
