/*
Archivo: estilos-producto-grilla.css
Descripción: Estilos personalizados para "Producto Grilla Filtro".
Autor: Nexbu
Fecha: 31 Enero 2025
*/
/**** PRODUCTO ****/
.tienda-productos {
    align-items: flex-start;
    display: flex;
    gap: 30px;
    padding: 3% 0 6%;
}
.box-filtro {
    background-color: var(--e-global-color-504c7e6);
    padding: 30px 20px;
    width: 28%;
}
.box-grilla {
    max-width: 830px;
    width: 72%;
}
/* BANNER */
.banner-producto {
    align-content: center;
    background-position: center center;
    background-size: cover;
    display: flex;
    height: 150px;
    justify-content: center;
}
h1 {
    color: var(--e-global-color-c700d03)!important;
    font-size: var(--e-global-typography-secondary-font-size)!important;
    font-weight: var(--e-global-typography-secondary-font-weight)!important;
    line-height: var(--e-global-typography-secondary-line-height)!important;
    margin: auto 0 !important;
    text-transform: var(--e-global-typography-secondary-text-transform)!important;
}
/* CONTENEDOR TOP */
.box-total-odenar {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 20px 0;
}
.box-total {
    display: flex;
    gap: 5px;
    margin: auto;
    text-align: center;
}
.box-taxonomia {
    margin-bottom: 20px;
}
.total-ordenar {
    display: flex;
    justify-content: space-between;
    width: 60%;
}
/* FILTRO */
#product-filter input[type="checkbox"] {
    accent-color: #008C99;
    height: 14px!important;
}
h2.titulo-grilla {
    font-weight: var(--e-global-typography-275b3db-font-weight)!important; 
    line-height: var(--e-global-typography-275b3db-line-height)!important; 
    margin: 40px 0 20px!important; 
}
#product-filter h2.titulo-grilla:nth-child(2) {
    margin-top: 0!important;
}
h2.titulo-grilla, h3.taxonomia-parent {
    font-size: var(--e-global-typography-275b3db-font-size)!important; 
}
h2.titulo-grilla.titulo-h2 {
    margin-top: 40px!important;
}
.loop-taxonomia {
    border-bottom: 1px solid #EAE9E9;
    cursor: pointer;
}
h3.taxonomia-parent {
    border-left: 4px #F6F6F6 solid;
    display: flex;
    justify-content: space-between;
    margin: 5px 0 5px;
    padding: 10px 10px 10px 8px;
    transition: .4s;
}
h3.taxonomia-parent:after {
    content: url(/wp-content/uploads/2025/01/arrow-filter.svg);
}
h3.taxonomia-parent.expanded:after {
    content: url(/wp-content/uploads/2025/01/arrow-filter-activo.svg)!important;
}
h3.taxonomia-parent.expanded {
    background-color: #fff;
    border-left-color: #008C99;
    margin-top: -1px!important;
    transition: .4s;
}
.loop-taxonomia ul {
    list-style-type: none;
    padding-left: 20px;
    margin: 20px 0;
}
.loop-taxonomia ul li, .titulo-filtro {
    align-content: flex-start;
    display: flex;
    font-size: var( --e-global-typography-0d554b3-font-size );
    gap: 10px;
    padding-bottom: 10px;
}
#product-filter h3 {
    font-size: var(--e-global-typography-275b3db-font-size)!important;
    margin: 0!important;
}
#product-filter ul.familia-children h3 {
    font-size: var( --e-global-typography-0d554b3-font-size )!important;
}
li.todos-productos {
    border-top: 1px solid #eae9e9;
    line-height: 1.1em;
    margin-top: 5px;
    padding-top: 10px;
}
#product-filter li strong {
    font-weight: 600!important;
}
#product-filter h3, ul.familia-children li h3 {
    cursor: pointer;
}
/* PRODUCTO */
#product-results {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 20px;
}
.post-item {
    padding-bottom: 15px;
    width: 22.9%;
}
.post-item:nth-child(1), .post-item:nth-child(5) {
    margin-left: 0;
}
/* PAGINACIÓN */
.pagination {
    flex-wrap: wrap;
    gap: 5px!important;
    justify-content: center!important;
}
.pagination .page-numbers {
    background-color: #fff!important;
    font-size: 16px!important;
    color: #737579!important;
    font-weight: 700!important;
    line-height: 1.4em!important;
    height: 30px;
    min-width: 35px;
    opacity: 0.3;
    padding: 5px 10px;
    transition: .4s;
    text-align: center;
}
.pagination .page-numbers:hover, .pagination span.page-numbers.current {
    background-color: #f6f6f6!important;
    color: var(--e-global-color-accent)!important;
    opacity: 1!important;
    transition: .4s;
}
/* LOOP IMAGEN PRODUCTO - HOVER*/
.loop-imagenes-producto {
    background-color: #f6f6f6;
    position: relative;
}
.lopp-producto-img, .producto-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}
.producto-img-hover {
    opacity: 0;
}
.post-item:hover .producto-img-hover {
    opacity: 1;
}
.post-item:hover .lopp-producto-img {
    opacity: 0;
}
.loop-imagenes-producto, .lopp-producto-img, .producto-img-hover {
    height: 175px!important;
    object-fit: cover!important;
}
/* COTENIDO PRODUCTO */
.loop-producto {
    display: flex;
    flex-flow: column;
    height: 57px;
    gap: 10px;
    justify-content: space-between;
}
#product-results .post-item {
    position: relative !important;
}
#product-results .box-nuevo {
    top: 3.7px!important;
}
.loop-producto h2, #product-results .loop-tiutlo-producto h3 {
    display: -webkit-box;
    min-height: 33px;
    max-height: 33px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.loop-producto h2 {
    font-size: var(--e-global-typography-275b3db-font-size) !important;
    font-weight: var(--e-global-typography-275b3db-font-weight) !important;
    line-height: var(--e-global-typography-275b3db-line-height) !important;
    margin: 10px 0 0 0;
}
.loop-producto p {
    font-size: var(--e-global-typography-0d554b3-font-size)!important;
    font-weight: var(--e-global-typography-0d554b3-font-weight)!important;
    line-height: var(--e-global-typography-0d554b3-line-height)!important;
    color: var(--e-global-color-secondary)!important;
}
p.no-producto {
    font-size: 16px;
    text-align: center;
    width: 100%;
}
/* BUSCADOR */
#search-producto form.e-search-form, #search-producto input {
    max-height: 45px;
    min-height: 45px;
}
#search-producto input {
    padding: 0 10px;
}

div#search-producto {
    margin-right: auto!important;
}
/* FILTRO */
#ordenar-producto {
    background-color: #ffffff00;
    border: 0;
    text-align: right;
    font-weight: 500;
    padding-right: 5px;
}
/* TOTAL */
.box-total {
    text-align: center;
}
/* ORDEN */
select#ordenar-producto {
    padding: 0 5px 0 0;
    width: auto;
}
/* LIMPIAR */
#reset-filters {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding-top: 10px;
}
#reset-filters:hover {
    color: #008C99;
}
/*** RESPONSIVE ***/
/*** TABLET ***/
@media only screen and (max-width: 1024px) {
    .tienda-productos {
        gap: 20px;
    }
    #search-producto form.e-search-form, #search-producto input {
        max-height: 40px;
        min-height: 40px;
    }
    #search-producto input {
        padding-left: 40px!important;
    }
    label.e-search-label svg {
        width: 15px!important;
    }
    #product-results {
        gap: 20px 4%;
    }
    .post-item {
        width: 30.6%;
    }
    .loop-imagenes-producto, .lopp-producto-img, .producto-img-hover {
        height: 150px!important;
    }
    #product-filter h2.titulo-grilla {
        margin: 25px 0 10px!important;
    }
    #product-filter h2.titulo-grilla:nth-child(2) {
        margin-top: 0!important;
    }
    h3.taxonomia-parent:after {
        transform: scale(0.8);
    }
}
/*** MOBILE ***/
@media only screen and (min-width: 600px) {
    .contentido-mobile {
        display: none;
    }
}
@media only screen and (max-width: 600px) {
    .tienda-productos {
        padding: 30px 20px;
    }
    .box-grilla {
        width: 100%;
    }
    .box-total-odenar {
        flex-flow: column;
    }
    .box-total {
        margin-left: 0;
        width: 200px;
    }
    .total-ordenar {
        padding-top: 5px;
        width: 100%;
    }
    /* BANNER */
    .banner-producto {
        height: 90px;
    }
    /* TOTAL */
    .box-total {
       text-align: left;
    }
    select#ordenar-producto {
        font-size: 12px;
    }
    span.resultado-taxonomia {
        display: block;
        font-size: 9px;
        margin: -15px 0 10px;
        min-width: 260px;
    }
    #reset-filters {
        font-size: 9px;
        padding-top: 0;
    }
    /* LOOP */
    .post-item {
        width: 48%;
    }
    /* PAGINACIÓN */
    .pagination .page-numbers {
        font-size: 14px !important;
        min-width: 25px;
    }
    /* NO HAY PRODUCTOS */
    p.no-producto {
        font-size: 14px;
        padding: 30px 0 50px!important;
    }
    /* SCROLL COLOR */
    div#product-filter::-webkit-scrollbar {
        width: 8px;
    }
    div#product-filter::-webkit-scrollbar-track {
        background: #F4F4F4; 
        border-radius: 10px 10px 0 0;
    }
    div#product-filter::-webkit-scrollbar-thumb {
        background: #D9D9D9; 
        border-radius: 10px;
    }
    div#product-filter::-webkit-scrollbar-thumb:hover {
      background: #D9D9D9;
    }
    /* FILTRO MOBILE */
    .contentido-mobile {
        position: relative;
    }
    .contentido-mobile h2 {
        font-size: 18px!important;
        text-align: center;
        display: block;
        font-weight: 600;
    }
    img.icono-cerrar {
        position: absolute;
        top: -5px;
        right: 0;
    }
    /* FILTRO */
    .box-filtro {
        background: #0B0B0BC7!important;
        display: flex;
        left: 0!important;
        height: 100%!important;
        opacity: 0;
        position: fixed!important;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out!important;
        top: 0!important;
        visibility: hidden;
        width: 100%;
        z-index: 99999!important;
    }
    div#product-filter {
        background: #F6F6F6!important;
        margin: auto;
        max-height: 600px;
        padding: 20px;
        overflow-y: scroll;
        width: 100%;
    }
    div#familia-filter {
        margin-top: -5px;
    }
    #product-filter h2.titulo-grilla {
        margin-top: 15px!important;
    }
    #product-filter h3, #product-filter ul.familia-children h3, #product-filter li strong {
        font-size: 12px!important;
    }
    #product-filter li strong {
        margin-top: 2px;
    }
    a.contentido-mobile button {
        border-color: var(--e-global-color-accent) !important;
        margin-top: 20px;
        width: 100%;
    }
    a.contentido-mobile button:hover, a.contentido-mobile button:focus {
        border-color: var( --e-global-color-text )!important;
        color: var( --e-global-color-text );
    }
}
/**** FIN: PRODUCTO ****/