/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* Cercador custom header - Fons transparent i posicionament correcte */
.cercador-custom-header {
    background: transparent !important;
    position: relative;
    z-index: 9999;
    clear: both;
    padding: 20px 0;
    margin: 0;
}

.cercador-custom-header * {
    background: transparent !important;
}

.cercador-custom-header input[type="search"],
.cercador-custom-header input[type="text"] {
    background: #fff !important;
}

/* Fons dels resultats del cercador */
.cercador-custom-header .wc-search-results,
.cercador-custom-header .wc-search-results-wrapper,
.cercador-custom-header .wc-search-results .product-item {
    background: #f7f1e1 !important;
}

/* Assegurar que el ajax-content-wrap comença on ha de començar */
#ajax-content-wrap {
    position: relative;
    z-index: 1;
}

/* Assegurar que el dropdown del menú quedi per sobre del cercador */
header#top .sf-menu li.megamenu ul.sub-menu {
    z-index: 100 !important;
}

/* Amagar el cercador quan es fa scroll */
body.scrolled .cercador-custom-header,
#header-outer.scrolled-down .cercador-custom-header,
#header-outer.small-nav .cercador-custom-header,
#header-outer:not(.transparent) .cercador-custom-header {
    display: none !important;
}

/* Amagar el cercador en mòbil - només visible en desktop */
@media (max-width: 1000px) {
    .cercador-custom-header {
        display: none !important;
    }
}





