/* Estilos para el modal con bordes redondeados */
.wrap-modal1 {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wrap-modal1.show-modal1 {
    opacity: 1;
    visibility: visible;
}

.overlay-modal1 {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.show-modal1 .overlay-modal1 {
    opacity: 0.65;
}

/* Animación para el contenido del modal */
.wrap-modal1 .container {
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wrap-modal1.show-modal1 .container {
    transform: translateY(0);
    opacity: 1;
}

/* Estilos para el contenedor de filtros */
.filter-tope-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Estilos para la vista desktop */
.desktop-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Estilos para los botones */
.desktop-filter button {
    margin: 0.25rem;
    white-space: nowrap;
}

/* Estilos para el select en móvil */
.select-category {
    padding: 0.75rem;
    border-radius: 25px;
    border: 1px solid #e6e6e6;
    background-color: white;
    font-size: 15px;
    transition: all 0.4s;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

.select-category:focus {
    outline: none;
    border-color: #717fe0;
}

/* Media query para ajustar el espaciado en pantallas pequeñas */
@media (max-width: 768px) {
    .filter-tope-group {
        padding: 0 1rem;
    }
}

/* Estilos para el skeleton loading */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f6f7f8 4%, #edeef1 25%, #f6f7f8 36%);
    background-size: 1000px 100%;
    border-radius: 10px;
}

.producto-skeleton {
    height: 400px;
    background-color: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
}

.producto-skeleton-img {
    height: 300px;
    width: 100%;
}

.producto-skeleton-text {
    height: 20px;
    width: 80%;
    margin: 10px auto;
}

.producto-skeleton-price {
    height: 20px;
    width: 40%;
    margin: 10px auto;
}

/* Ocultar skeletons cuando no se necesitan */
.skeleton-hidden {
    display: none;
}