/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0.20261125
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
/* PBUA: stiluri de prezentare consolidate, 2026-11-25. */

body.mb-metabond-gallery .product-gallery-slider .woocommerce-product-gallery__image > a {
    display: block;
}
body.mb-metabond-gallery .product-gallery-slider .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 560px;
    max-height: min(560px, 65vh);
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}
body.mb-metabond-gallery .product-thumbnails img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
.box-image img.mb-metabond-thumb {
    object-fit: contain !important;
}
/* Cadru unic pentru grilă, recomandări și cardurile de istoric încărcate prin AJAX. */
.product-small .box-image:has(img.mb-metabond-thumb) {
    position: relative !important;
    height: auto !important;
    padding: 0 !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-small .box-image:has(img.mb-metabond-thumb) > div:first-child {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100% !important;
    padding: 0 !important;
}
.product-small .box-image:has(img.mb-metabond-thumb) > div:first-child > a {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.product-small .box-image:has(img.mb-metabond-thumb) > div:first-child img.mb-metabond-thumb {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
    padding: 8px;
    object-fit: contain !important;
    object-position: center;
    transform: none !important;
}

@media (max-width: 549px) {
    body.mb-metabond-gallery .product-gallery-slider .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
        max-height: 420px;
        max-height: min(420px, 65vh);
    }
}

body :is(.single_add_to_cart_button,.add_to_cart_button,.pb-request-open,.pb-request-loop):not(:disabled):not(.disabled):is(:hover,:active,:focus-visible){
        background-color:var(--primary-color,#634c25)!important;
        border-color:var(--primary-color,#634c25)!important;
        color:#fff!important;
        box-shadow:none!important;
    }
    body :is(.single_add_to_cart_button,.add_to_cart_button,.pb-request-open,.pb-request-loop):not(:disabled):not(.disabled):focus-visible{
        outline:2px solid var(--primary-color,#634c25);
        outline-offset:2px;
    }

html body .grecaptcha-badge{visibility:visible!important;opacity:1!important;display:block!important;bottom:75px!important;z-index:1000}

.pb-recent-history .product_list_widget{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 1.25rem}.pb-recent-history .product_list_widget li{margin:0;min-width:0}@media(max-width:849px){.pb-recent-history .product_list_widget{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:479px){.pb-recent-history .product_list_widget{grid-template-columns:1fr}}

#wide-nav .header-block-block-2 .row-slider { --pb-category-caption-height: 55px; }
            #wide-nav .header-block-block-2 .row-slider .product-category .box-image { visibility: hidden; }
            #wide-nav .header-block-block-2 .product-category .box-text {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: var(--pb-category-caption-height);
        }
        #wide-nav .header-block-block-2 .product-category .header-title {
            line-height: 1.08;
            margin: 0 3px 2px;
        }
        #wide-nav .header-block-block-2 .product-category .count { margin: 0; }
        #wide-nav .header-block-block-2 .row-slider > .flickity-prev-next-button {
                /* Align the arrows to the visible caption, which sits 15% above the box base.
                   The Flickity viewport includes the column's 3px bottom padding. */
                top: calc(85% - 2.55px - var(--pb-category-caption-height) / 2);
                bottom: auto;
                height: 44px;
                translate: 0 -50%;
                opacity: 1;
            }
        #wide-nav .header-block-block-2 .product-category a:active .box-text {
            color: #fff;
            background-color: var(--fs-color-primary);
        }
        #wide-nav .header-block-block-2 .product-category a:active .header-title,
        #wide-nav .header-block-block-2 .product-category a:active .count { color: #fff; }
        @media (max-width: 1170px) {
            #wide-nav .header-block-block-2 .row-slider { --pb-category-caption-height: 70px; }
        }

        #masthead .pb-header-shop { flex: 0 0 auto; }
        #masthead .pb-header-shop > a.button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            white-space: nowrap;
            line-height: 1.2;
        }
        @media (min-width: 850px) {
            #masthead .pb-shop-search-column { min-width: 0; }
            #masthead .pb-shop-search-nav { flex-wrap: nowrap; column-gap: clamp(8px, 1.1vw, 18px); padding-inline-end: clamp(8px, 1.1vw, 18px); }
            #masthead .pb-shop-search-nav > .pb-header-shop { margin: 0; }
            #masthead .pb-shop-search-nav > .header-search-form {
                flex: 1 1 0;
                width: auto;
                min-width: 0;
                max-width: none;
                margin-inline: 0;
            }
            #masthead .pb-shop-search-nav .header-search-form-wrapper { width: 100%; }
            #masthead .pb-shop-search-nav .searchform .flex-grow { min-width: 0; }
            #masthead .pb-header-shop > a.button { min-height: 2.45em; padding-inline: clamp(9px, 1.15vw, 22px); }
        }
        @media (max-width: 849px) {
            #masthead .mobile-nav.nav-right:has(> .pb-header-shop) { flex-wrap: nowrap; }
        #masthead .header-inner:has(.mobile-nav.nav-right > .pb-header-shop) > .show-for-medium.flex-left { flex: 0 0 auto; }
            #masthead .mobile-nav .pb-header-shop { margin: 0 4px 0 0; }
            #masthead .mobile-nav .pb-header-shop > a.button { min-height: 32px; padding-inline: 6px; font-size: .7rem; }
            #masthead .header-inner:has(.pb-header-shop) > #logo { max-width: clamp(64px, 22vw, 150px); }
        }
        @media (max-width: 380px) {
            #masthead .header-inner:has(.pb-header-shop) { padding-inline: 8px; }
            #masthead .header-inner:has(.pb-header-shop) > #logo { flex: 1 1 64px; min-width: 40px; margin-inline: 5px !important; }
            #masthead .header-inner:has(.pb-header-shop) .mobile-nav.nav-right > li { margin-inline: 2px; }
            #masthead .header-inner:has(.pb-header-shop) .mobile-nav.nav-left > .nav-icon { margin-inline-end: 1px; }
        }
                #wide-nav .header-block-block-2 .row-slider.pb-header-category-photos {
                --pb-category-caption-height: 70px;
                --pb-category-photo-size: clamp(28px, 2.8vw, 40px);
                --pb-category-photo-gap: 7px;
            }
            #wide-nav .header-block-block-2 .row-slider .product-category .pb-category-photo-frame {
                visibility: visible;
                overflow: visible;
                pointer-events: none;
                z-index: 2;
            }
            #wide-nav .header-block-block-2 .pb-category-photo-frame .image-cover { overflow: visible; }
            #wide-nav .header-block-block-2 .pb-category-photo-frame .overlay { display: none; }
            #wide-nav .header-block-block-2 .pb-category-photo-frame .pb-category-photo {
                position: absolute;
                inset: calc(85% - var(--pb-category-caption-height) / 2) var(--pb-category-photo-gap) auto auto;
                translate: 0 -50%;
                width: var(--pb-category-photo-size);
                height: var(--pb-category-photo-size);
                object-fit: contain;
                border-radius: 4px;
            }
            #wide-nav .header-block-block-2 .pb-category-photo-caption .header-title { letter-spacing: .02em; }
            #wide-nav .header-block-block-2 .product-category .pb-category-photo-caption {
                padding-inline: var(--pb-category-photo-gap) calc(var(--pb-category-photo-size) + 2 * var(--pb-category-photo-gap)) !important;
                overflow-wrap: anywhere;
            }
            @media (max-width: 1170px) {
                #wide-nav .header-block-block-2 .row-slider.pb-header-category-photos { --pb-category-caption-height: 82px; }
            }

            /* Center the category cards between the search form and the homepage banner. */
            #wide-nav .header-block-block-2 > .row:has(.pb-header-category-photos) {
                padding-block: 20px 15px;
            }
            #wide-nav .header-block-block-2 > .row:has(.pb-header-category-photos) > .col:first-child {
                position: absolute;
                inset-inline-start: 0;
            }
            #wide-nav .header-block-block-2 .col-inner:has(> .pb-header-category-photos) {
                margin-top: 0 !important;
            }
            #wide-nav .header-block-block-2 .pb-header-category-photos {
                width: 100%;
                margin-inline: auto;
            }
            #wide-nav .pb-header-category-photos .box-category {
                height: var(--pb-category-caption-height);
            }
            #wide-nav .pb-header-category-photos .box-category > .box-image {
                position: absolute;
                inset: 0;
            }
            #wide-nav .pb-header-category-photos .pb-category-photo-frame .image-cover {
                height: 100%;
                padding-top: 0 !important;
            }
            #wide-nav .pb-header-category-photos .pb-category-photo-frame .pb-category-photo {
                inset-block-start: 50%;
            }
            #wide-nav .pb-header-category-photos .box-category > .box-text {
                inset: 0;
            }
            #wide-nav .header-block-block-2 .row-slider.pb-header-category-photos > .flickity-prev-next-button {
                top: calc((100% - 3px) / 2);
            }
            @media (min-width: 1100px) {
                #wide-nav .header-block-block-2 .row > .col:has(> .col-inner > .pb-header-category-photos.large-columns-6) {
                    flex-basis: 100%;
                    max-width: 100%;
                }
                #wide-nav .header-block-block-2 .row-slider.pb-header-category-photos.large-columns-6 {
                    /* Leave a gutter on each side for the full width of the arrow button. */
                    width: calc(100% - 76px);
                }
            }
            @media (min-width: 1100px) and (max-width: 1270px) {
                #wide-nav .header-block-block-2 .row-slider.pb-header-category-photos.large-columns-6 {
                    --pb-category-caption-height: 82px;
                }
            }
            @media (min-width: 850px) and (max-width: 1099px) {
                #wide-nav .pb-header-category-photos .product-category {
                    flex-basis: calc(100% / 3);
                    max-width: calc(100% / 3);
                }
            }
            @media (max-width: 849px) {
                #wide-nav > .container:has(.pb-header-category-photos) {
                    flex-direction: column;
                    align-items: stretch;
                }
                #wide-nav > .container > .hide-for-medium:has(.pb-header-category-photos) {
                    display: block !important;
                    order: 1;
                    width: 100%;
                    margin: 0;
                    flex: 0 0 auto;
                }
                #wide-nav .header-block-block-2 > .row:has(.pb-header-category-photos) {
                    padding-block: 18px 0;
                }
                #wide-nav .header-block-block-2 > .row > .col:has(.pb-header-category-photos) {
                    flex-basis: 100%;
                    max-width: 100%;
                }
                #wide-nav .header-block-block-2 .row-slider.pb-header-category-photos {
                    width: calc(100% - 42px);
                    --pb-category-photo-size: clamp(26px, 7vw, 32px);
                    --pb-category-photo-gap: 5px;
                }
                #wide-nav .row-slider.pb-header-category-photos > .flickity-prev-next-button {
                    width: 36px;
                    transform: none;
                }
                #wide-nav .row-slider.pb-header-category-photos > .flickity-prev-next-button.previous {
                    left: -36px;
                    right: auto;
                }
                #wide-nav .row-slider.pb-header-category-photos > .flickity-prev-next-button.next {
                    right: -36px;
                    left: auto;
                }
                #wide-nav:has(.pb-header-category-photos) .header-bottom-nav.mobile-nav {
                    position: relative;
                    z-index: 3;
                }
                #wide-nav:has(.pb-header-category-photos) .mobile-nav > .header-search-form {
                    width: 100%;
                    margin-inline: 0;
                }
                #wide-nav:has(.pb-header-category-photos) .mobile-nav > .header-button-2 {
                    order: -1;
                    margin-inline: 0;
                }
            }
            @media (max-width: 549px) {
                #wide-nav .pb-header-category-photos .pb-category-photo-caption .header-title {
                    font-size: 11px;
                    line-height: 1.14;
                }
            }
