
/* Contenedor principal del buscador */
.custom-search-container {
    position: relative;
    z-index: 1000; /* Asegura que esté por encima de otros elementos del header */
}

/* Botón de la lupa */
.custom-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: inline-block;
}

.custom-search-toggle svg {
    width: 24px;
    height: 24px;
    stroke: black; /* Color de la lupa */
    transition: stroke 0.3s ease;
}

.custom-search-toggle:hover svg {
    stroke: #555; /* Color al pasar el mouse */
}

/* Overlay que simula el header de forma responsiva */
.custom-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5vh;
    min-height: 180px;
    background-color: rgba(212, 212, 212);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.3s ease;
}

.custom-search-overlay.is-active {
    display: flex;
}

/* Formulario de búsqueda grande y responsivo */
.custom-search-overlay .custom-search-form {
    display: flex;
    width: 90%;
    max-width: 80%;
    border: 2px solid #999; /* Borde más grueso y oscuro */
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

/* Campo de texto con tamaño de fuente y padding forzados */
.custom-search-overlay .custom-search-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 18px 21px !important; /* Reducido para menos altura */
    font-size: 1.75rem !important; /* Letras más pequeñas */
}

.custom-search-submit {
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 5px solid #ccc;
}

.custom-search-submit svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.custom-search-submit:hover {
    background-color: #e0e0e0;
}

/* Botón de cierre del overlay */
.custom-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.custom-search-close svg {
    width: 30px;
    height: 30px;
    stroke: black;
}

/* Ocultar el texto del enlace del menú del carrito */
.wp-block-navigation-item-woocommerce-cart .wp-block-navigation-item__label {
    display: none;
}