/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.oculto {
	display:none;
}
.wd-search-inited{
	color:#000 !important;
}
.ficha_tecnica table .wd-table-cell {
	width: 50%;
}

.wd-social-icons .social-facebook, .wd-social-icons .social-facebook:hover {
	background-color: #1877F2;
}
.wd-social-icons .social-instagram, .wd-social-icons .social-instagram:hover {
  background: linear-gradient(45deg, #833AB4, #E1306C, #F77737, #FCAF45);
}
.wd-social-icons .social-tiktok, .wd-social-icons .social-tiktok:hover {
	background-color: #000000;
}

.swiper-brand img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 210px;
    max-height: 105px;
    margin: 0 auto;
    display: block;
}

.swiper-brand-container {
    position: relative;
    padding: 20px 0;
}

.swiper-custom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 24px;
    height: 24px;
    padding: 0;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.swiper-custom-nav:hover {  
    opacity: 0.8;
}

.swiper-custom-prev {
    left: 10px;
}

.swiper-custom-next {
    right: 10px;
}

.swiper-custom-nav svg {
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.swiper-custom-nav:hover svg {
    opacity: 0.6;
}

.brand-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
    padding: 0;
    list-style: none;
    margin: 0 auto;
    max-width: 100%;
}

.brand-grid-5 img {
    width: 210px;
    height: 105px;
}

[class*="title-line-"] .wd-product .wd-entities-title {
    overflow: visible !important;
    max-height: none !important;
    line-height: 1.4em !important;
    display: block !important;
}

@media (max-width: 480px) {
    .wd-social-icons {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: var(--wd-social-gap, calc(var(--wd-social-size, 40px) / 4)) !important;
        justify-content: var(--wd-align) !important;
    }    
    .wd-social-icons.wd-style-default>a {
        width: 30px !important;
        height: 30px !important;
    }    
    .wd-social-icons .wd-icon:before {
        color: #FFFFFF !important;
    }
    .product-wrapper {
        min-height: 100%;
    }
}

/* Aseguramos que las cajas de productos tengan la misma altura */
.wd-carousel-item .wd-product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Aseguramos que el contenedor de la imagen del producto mantenga la misma altura */
.wd-carousel-item .product-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura que todos los productos tengan la misma altura */
}

/* Asegura que la imagen no se desborde ni distorsione */
.wd-carousel-item .product-wrapper .product-image-link img {
    width: 100%;
    object-fit: cover;
    height: auto; /* Ajusta la altura de la imagen para mantener el aspecto */
    margin-bottom: 15px; /* Espaciado entre imagen y el contenido del producto */
}

/* Ajusta las cajas de productos en móvil */
@media (max-width: 768px) {
    .wd-carousel-item {
        flex: 1 1 50%; /* 2 productos por fila */
        margin-bottom: 20px; /* Espaciado entre productos */
    }
}

/* Ajuste para dispositivos muy pequeños (móviles) */
@media (max-width: 480px) {
    .wd-carousel-item {
        flex: 1 1 100%; /* Un solo producto por fila en pantallas muy pequeñas */
    }
}

/* Ajuste para escritorio (pantallas grandes) */
@media (min-width: 1024px) {
    .wd-carousel-item {
        flex: 1 1 20%; /* 5 productos por fila en escritorio */
    }
}

/* Asegura que el texto de la descripción y precio se mantengan alineados */
.wd-carousel-item .product-wrapper .product-element-bottom {
    flex-grow: 1; /* Asegura que el contenido del producto se expanda correctamente */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
