/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/


/* Buttons */
.et_pb_button:hover {
    opacity: 0.7;
}

/* Sale badge */
.woocommerce span.onsale, .woocommerce-page span.onsale {
    color: #FCFF6D !important;
    background: #22B573 !important;
}

/* Header */
#header-row {
    z-index: 10 !important;
}
#header-row .et_pb_column:nth-child(3) {
    margin: auto 0px !important;
}
#header-row .et_pb_column:nth-child(4) {
    text-align: center !important;
    margin: auto !important;
}
#header-row .et_pb_column:nth-child(4) .et_pb_image {
    display: inline-block !important;
    margin: auto !important;
    cursor: pointer !important;
}
#header-row .et_pb_column:nth-child(4) .et_pb_image:nth-child(2) {
    margin: auto 40px !important;
}
@media (min-width: 981px) {
    #header-row .et_pb_column:nth-child(1) {
        width: 10% !important;
    }
    #header-row .et_pb_column:nth-child(2) {
        width: 40% !important;
    }
    #header-row .et_pb_column:nth-child(3) {
        width: 26% !important;
        height: 45px !important;
    }
    #header-row .et_pb_column:nth-child(4) {
        width: 23% !important;
    }
}
@media (min-width: 769px) and (max-width: 980px) {
    #header-row .et_pb_column {
        width: 100% !important;
    }
    #header-row .et_pb_column:nth-child(1) {
        margin-right: 0px !important;
    }
    #header-row .et_pb_column:nth-child(2) .et_pb_menu__wrap {
        justify-content: center !important;
        margin: 10px auto !important;
    }
    #header-row .et_pb_column:nth-child(3) {
        padding: 0px 5% !important;
        margin-bottom: 10px !important;
    }
}
@media (max-width: 768px) {
    #header-row .et_pb_column {
        padding-left: 5%;
        padding-right: 5%;
    }
    #header-row .et_pb_column:nth-child(1),
    #header-row .et_pb_column:nth-child(3) {
        margin-bottom: 10px !important;
    }
    #header-row .et_pb_column:nth-child(1) {
        width: 50% !important;
        z-index: 5;
    }
    #header-row .et_pb_column:nth-child(1) .et_pb_image {
        text-align: left !important;
    }
    #header-row .et_pb_column:nth-child(1) img {
        height: 61px !important;
    }
    #header-row .et_pb_column:nth-child(2) {
        position: absolute !important;
        top: 25px !important;
    }
    #header-row .et_pb_column:nth-child(2) .et_pb_menu__wrap {
        justify-content: flex-end !important;
    }
}


/* Header Woo Search (fibo search) */
#header-search .dgwt-wcas-sf-wrapp {
    background-color: transparent !important;
    padding: 0px !important;
}
#header-search .dgwt-wcas-search-input {
    height: 45px !important;
    border-radius: 42px !important;
    background-color: #F5F5F5 !important;
    color: #000 !important;
    font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    padding-left: 20px !important;
}
#header-search .dgwt-wcas-search-input::placeholder {
    color:#0000004b !important;
}
#header-search .dgwt-wcas-search-submit {
    background-image: url('/wp-content/uploads/2023/12/search-icon-white.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: #0B8457 !important;
    color: #0B8457 !important;
    border-radius: 29.5px !important;
    width: 37px !important;
    height: 37px !important;
    top: 4px !important;
    right: 4px !important;
    left: unset !important;
    cursor: pointer !important;
}
#header-search .dgwt-wcas-search-submit svg {
    display: none !important;
}
#header-search .dgwt-wcas-search-input:focus {
    border: none !important;
    background-color: #F5F5F5 !important;
}

/* Header 2nd section (2nd menu) */
@media (min-width: 980px) {    /* prevent right overflow */
    #header-second-menu .et_pb_menu__menu>nav>ul>li>ul {
        left: unset !important;
        right: 0 !important;
    }
}

/* Sub-menu display options */
@media (max-width: 980px) {
    .displaySubMenu {
        position: relative;
        float: right;
        font-family: 'Roboto',Helvetica,Arial,Lucida,sans-serif;
        font-size: 18px;
        color: #0B8457 !important;
        line-height: 45px;
        width: 30px;
        text-align: center;
        z-index: 1000;
        cursor: pointer;
    }
    #header-second-menu .sub-menu,
    .et-db #et-boc .et-l .et_pb_menu .et_mobile_menu li ul {
        display: none !important;
    }
}
@media (min-width: 981px) {
    .displaySubMenu {
        display: none;
    }
    #header-second-menu .menu-item-has-children>a {
        padding-right: 15px;
    }
    #header-second-menu .menu-item-has-children>a::after {
        font-family: 'ETmodules';
        content: "3";
        font-size: 16px;
        position: absolute;
        right: 0;
        top: 0;
        font-weight: 800;
    }
}

/* Footer */
.footer-socials {
    display: inline-block !important;
}
.footer-socials:not(:first-child) {
    margin-left: 15px !important;
}
#footer-column-socials {
    text-align: center !important;
}
@media (min-width: 980px) {
    #footer-column-socials {
        text-align: right !important;
    }
}

/* TP flipper image (disabled on tactil screen) */
@media (max-width: 980px) {
    .tp-image-hover {
        display: none !important;
    }
}