/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.category-title {
    font-size: 22px;
    font-weight: bold;
    margin: 15px 0;
    color: #000;
    display: flex;
    align-items: center;
}
.category-title img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}
.accordion {
    background-color: #f8f8f8;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.accordion .plus-icon {
    font-size: 24px;
    font-weight: bold;
    margin-left: auto;
}
.active, .accordion:hover {
    background-color: #ddd;
}
.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease-out;
    padding: 0 10px;
    background-color: white;
}
.accordion.active + .panel {
    padding-top: 10px;
    padding-bottom: 10px;
}
.subcategory-list {
    list-style: none;
    padding-left: 20px;
}
.subcategory-list img {
    width: 25px;
    height: 25px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}

/* ---- Grid Responsivo para Categorías ---- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en escritorio */
    gap: 20px;
    padding: 20px;
}

/* Tablet (2 columnas) */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil (1 columna) */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ---- Diseño de las Categorías ---- */
.category-item {
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
    transition: all 0.3s ease-in-out;
}

.category-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* ---- Diseño de las Subcategorías ---- */
/* ---- Estilos para Subcategorías en Pares con Scrolling ---- */

.subcategory-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-height: 180px; /* Limita la altura visible */
    overflow-y: auto; /* Activa el scrolling si hay más de 3 subcategorías */
    padding: 5px;
}

/* ---- Ajustar Subcategorías en Pares ---- */
.subcategory-item {
    width: 48%; /* Para que queden en parejas */
    text-align: center;
}

.subcategory-item:hover {
    transform: scale(1.1);
}

/* ---- Ajuste del Tamaño de Imágenes ---- */

/* Imágenes de Categorías (2x más grandes) */
.category-item img {
    width: 100%;
    max-width: 250px; /* Ajusta el ancho máximo */
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto 10px;
}
.category-hero {
    width: 100vw !important;
    max-width: 100% !important;
    height: 400px !important; /* Ajusta la altura */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
	background-image: url('https://tusitio.com/wp-content/uploads/imagen-prueba.jpg') !important;
}

/* Imágenes de Subcategorías (más pequeñas) */
.subcategory-item img {
    width: 100%;
    max-width: 90px; /* Reduce tamaño del thumbnail */
    height: auto;
    border-radius: 5px;
}
/* ---- Estilos para Subcategorías en Pares con Scrolling ---- */

.subcategory-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-height: 180px; /* Limita la altura visible */
    overflow-y: auto; /* Activa el scrolling si hay más de 3 subcategorías */
    padding: 5px;
}

.subcategory-item a {
    font-size: 13px; /* Reduce el tamaño del título */
    font-weight: 600;
    text-decoration: none;
    color: #000;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}