/*
 Theme Name:   Sirpi Child
 Theme URI:    https://sirpi.wpengine.com/
 Description:  Sirpi Child Theme
 Author:       the WeDesignTech team
 Author URI:   https://wedesignthemes.com/
 Template:     sirpi
 Version:      1.0.0
 Text Domain:  sirpi-child
*/

/* === Header "Особистий кабінет" button — consistent on all pages === */
.elementor-38 .elementor-element-ae8291e .wdt-button {
    display: inline-flex;
    align-items: stretch;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.8em 1.75em;
    white-space: nowrap;
    line-height: var(--wdtLineHeight_Base);
    background-color: var(--wdtPrimaryColor);
    color: var(--wdtAccentTxtColor);
    border: 0;
    position: relative;
    overflow: visible;
    -webkit-transition: var(--wdtBaseTransition);
    transition: var(--wdtBaseTransition);
}
.elementor-38 .elementor-element-ae8291e .wdt-button:hover {
    background-color: var(--wdtSecondaryColor);
}
.elementor-38 .elementor-element-ae8291e .wdt-button .wdt-button-text {
    display: inline-grid;
    align-content: center;
}

/* === Cart icon moved to search bar row === */
/* Search widget takes up available space */
.elementor-38 .elementor-element-46a58fe > .elementor-element-ff7c712 {
    flex: 1 1 auto;
    min-width: 0;
}
/* Cart widget stays compact */
.elementor-38 .elementor-element-46a58fe > .elementor-element-63eeae1 {
    flex: 0 0 auto;
}
/* Remove extra margin/padding from cart in top bar */
.elementor-38 .elementor-element-46a58fe .hfe-masthead-custom-menu-items {
    margin: 0;
    padding: 0;
}

/* === Матеріали mega menu: centre columns, panel stays full-width === */
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item-5366 > ul.mega-sub-menu > li.mega-menu-row > ul.mega-sub-menu {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === Матеріали mega menu: bold separator items === */
#mega-menu-wrap-max_mega_menu_1 li.bold-separator > a.mega-menu-link {
    font-weight: bold !important;
}

/* === Матеріали mega menu: gap between columns === */
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item-5366 > ul.mega-sub-menu > li.mega-menu-row > ul.mega-sub-menu {
    gap: 100px;
}

/* Hide quantity selector in Related Products and Upsells sections */
.related.products .product-cart-with-quantity,
.upsells.products .product-cart-with-quantity {
    display: none !important;
}


/* Fix "Розпродаж" (Sale) badge — auto-size instead of circle */
/* Single product page */
.woocommerce.single-product div.images span.onsale,
.woocommerce-product-gallery span.onsale,
.wdt-product-image-gallery-container span.onsale,
#yith-quick-view-content span.onsale,
.woocommerce.single-product .product-thumb-wrapper span.onsale {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    padding: 6px 14px !important;
    line-height: 1.3 !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: visible !important;
}
/* Product listings */
.woocommerce ul.products li.product .product-labels > span.onsale,
.woocommerce ul.products.product-label-circle li.product .product-labels > span.onsale {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    padding: 4px 10px !important;
    line-height: 1.3 !important;
    border-radius: 3px !important;
    font-size: 9px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    display: inline-block !important;
}
/* Inner span fix */
.woocommerce.single-product div.images span.onsale span,
.woocommerce ul.products li.product .product-labels > span.onsale span {
    display: inline !important;
    height: auto !important;
    padding: 0 !important;
}
