@charset "utf-8";
/* CSS Document */
/* =========================================================
   BUSCADOR Y FILTROS - PRODUCTOS
   ========================================================= */

.ch-pro-bs {
    width: 100%;
    padding: 18px 0;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.ch-pro-bs-contenido {
    width: 100%;

    padding: 22px 20px;

    display: flex;
    align-items: center;

    gap: 20px;

    box-sizing: border-box;

    background: #f4f8f5;

    border-radius: 15px;
}


/* =========================================================
   BÚSQUEDA
   ========================================================= */

.ch-pro-bs-busqueda {
    position: relative;

    flex: 1.7;

    height: 52px;

    display: flex;
    align-items: center;
}


.ch-pro-bs-input {
    width: 100%;
    height: 52px;

    padding: 0 18px 0 50px;

    border: 1px solid #dfe5e1;
    border-radius: 6px;

    background: #ffffff;

    color: #26372d;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.ch-pro-bs-input::placeholder {
    color: #9a9f9c;
}


.ch-pro-bs-input:focus {
    border-color: #176b35;

    box-shadow:
        0 0 0 3px rgba(23, 107, 53, 0.08);
}


.ch-pro-bs-icono {
    position: absolute;

    left: 18px;

    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    color: #5c826b;

    font-size: 19px;

    pointer-events: none;
}


/* =========================================================
   FILTROS
   ========================================================= */

.ch-pro-bs-filtro {
    position: relative;

    flex: 1;

    height: 52px;

    padding: 7px 14px 5px 14px;

    border: 1px solid #dfe5e1;
    border-radius: 6px;

    background: #ffffff;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   LABEL
   ========================================================= */

.ch-pro-bs-label {
    display: block;

    margin: 0 0 2px;

    font-size: 13px;
    line-height: 1.2;

    font-weight: 500;

    color: #72917d;

    pointer-events: none;
}


/* =========================================================
   DROPDOWN PERSONALIZADO
   ========================================================= */

.ch-pro-bs-dropdown {
    position: relative;
}


/* =========================================================
   BOTÓN
   ========================================================= */

.ch-pro-bs-dropdown-boton {
    width: 100%;
    height: 23px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;

    background: transparent;

    color: #3f4843;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    line-height: 1.2;

    text-align: left;

    cursor: pointer;

    outline: none;
}


.ch-pro-bs-dropdown-boton span {
    min-width: 0;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================================
   HOVER / FOCUS DEL FILTRO
   ========================================================= */

.ch-pro-bs-dropdown:hover {
    border-color: #c9d6ce;
}


.ch-pro-bs-dropdown.abierto {
    border-color: #176b35;

    box-shadow:
        0 0 0 3px rgba(23, 107, 53, 0.06);
}


/* =========================================================
   FLECHA
   ========================================================= */

.ch-pro-bs-dropdown .ch-pro-bs-flecha {
    position: static;

    flex: 0 0 auto;

    margin-left: 12px;

    color: #547b64;

    font-size: 11px;

    pointer-events: none;

    transform: rotate(0deg);

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}


.ch-pro-bs-dropdown.abierto .ch-pro-bs-flecha {
    color: #075d2b;

    transform: rotate(180deg);
}


/* =========================================================
   MENÚ DESPLEGABLE
   ========================================================= */

.ch-pro-bs-dropdown-menu {
    position: absolute;

    top: calc(100% + 8px);

    left: 0;

    width: 100%;

    min-width: 100%;

    max-height: 280px;

    padding: 7px;

    box-sizing: border-box;

    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #dfe5e1;

    border-radius: 9px;

    box-shadow:
        0 12px 30px rgba(25, 55, 38, 0.12),
        0 4px 10px rgba(25, 55, 38, 0.06);

    z-index: 1000;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(-6px);

    transform-origin: top center;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}


/* =========================================================
   MENÚ ABIERTO
   ========================================================= */

.ch-pro-bs-dropdown.abierto
.ch-pro-bs-dropdown-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


/* =========================================================
   OPCIONES
   ========================================================= */

.ch-pro-bs-dropdown-opcion {
    width: 100%;

    min-height: 40px;

    padding: 0 12px;

    display: flex;
    align-items: center;

    box-sizing: border-box;

    border-radius: 6px;

    color: #3f4843;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    line-height: 1.3;

    cursor: pointer;

    user-select: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


/* =========================================================
   HOVER
   ========================================================= */

.ch-pro-bs-dropdown-opcion:hover {
    background: #f0f6f2;

    color: #075d2b;
}


/* =========================================================
   OPCIÓN ACTIVA
   ========================================================= */

.ch-pro-bs-dropdown-opcion.activo {
    background: #e8f2eb;

    color: #075d2b;

    font-weight: 600;
}


/* =========================================================
   HOVER SOBRE OPCIÓN ACTIVA
   ========================================================= */

.ch-pro-bs-dropdown-opcion.activo:hover {
    background: #dfeee4;

    color: #075d2b;
}


/* =========================================================
   SCROLL DEL MENÚ
   ========================================================= */

.ch-pro-bs-dropdown-menu::-webkit-scrollbar {
    width: 5px;
}


.ch-pro-bs-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}


.ch-pro-bs-dropdown-menu::-webkit-scrollbar-thumb {
    background: #c9d8ce;

    border-radius: 10px;
}


.ch-pro-bs-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #aebfb4;
}


/* =========================================================
   BOTÓN BUSCAR
   ========================================================= */

.ch-pro-bs-boton {
    flex: 0 0 165px;

    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 0;

    border-radius: 6px;

    background: #075d2b;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.ch-pro-bs-boton:hover {
    background: #064b24;

    box-shadow:
        0 4px 10px rgba(7, 93, 43, 0.15);
}


.ch-pro-bs-boton:active {
    transform: translateY(1px);
}


.ch-pro-bs-boton i {
    font-size: 17px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .ch-pro-bs-contenido {
        flex-wrap: wrap;

        gap: 14px;
    }


    .ch-pro-bs-busqueda {
        flex: 1 1 100%;
    }


    .ch-pro-bs-filtro {
        flex: 1 1 calc(33.333% - 10px);
    }


    .ch-pro-bs-boton {
        flex: 1 1 100%;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {

    .ch-pro-bs {
        padding: 14px 0;
    }


    .ch-pro-bs-contenido {
        padding: 18px;

        flex-direction: column;

        align-items: stretch;

        gap: 12px;

        border-radius: 12px;
    }


    .ch-pro-bs-busqueda,
    .ch-pro-bs-filtro,
    .ch-pro-bs-boton {
        width: 100%;

        flex: none;
    }


    .ch-pro-bs-busqueda,
    .ch-pro-bs-input,
    .ch-pro-bs-filtro,
    .ch-pro-bs-boton {
        height: 52px;
    }


    .ch-pro-bs-dropdown-boton {
        height: 23px;
    }


    .ch-pro-bs-dropdown-menu {
        top: calc(100% + 7px);

        max-height: 250px;

        padding: 6px;

        border-radius: 8px;
    }


    .ch-pro-bs-dropdown-opcion {
        min-height: 42px;

        padding: 0 12px;

        font-size: 13px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .ch-pro-bs-contenido {
        padding: 14px;
    }


    .ch-pro-bs-input {
        font-size: 13px;
    }


    .ch-pro-bs-dropdown-boton {
        font-size: 12px;
    }


    .ch-pro-bs-dropdown-opcion {
        font-size: 12px;

        min-height: 40px;
    }


    .ch-pro-bs-boton {
        font-size: 13px;
    }

}