/* Estilos Generales */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;

}

input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

#overlay {
    z-index: 40;
}

#cart-modal {
    z-index: 40;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Estilos alerta: Confimacion */
.swal2-popup-custom-success{
    width:100%; /* Ancho personalizado */
    padding: 0;
    margin: 0;
    background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
    color: rgb(22 101 52 / var(--tw-bg-opacity, 1));
    border-radius: 8px ;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
}

/* Estilos alerta: Error */
.swal2-popup-custom-error{
    width:100%;  /* Ancho personalizado */
    padding: 0;
    margin: 0;
    background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
    color: rgb(153 27 27 / var(--tw-bg-opacity, 1));
    border-radius: 8px ;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos alerta: Notificacion */
.swal2-popup-custom-notify {
    width:100%; /* Ancho personalizado */
    padding: 0;
    margin: 0;
    background-color: rgb(21 94 117 / var(--tw-bg-opacity, 1));
    color: rgb(8 145 178 / var(--tw-bg-opacity, 1));
    border-radius: 8px ;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Velocidad de las animaciones */
.animate__fadeInLeft {
    --animate-duration: 0.6s; /* Cambia la duración aquí */
}

.animate__fadeOutLeft {
    --animate-duration: 0.6s; /* Cambia la duración aquí */
}
.animate__fadeInDown {
    --animate-duration: 0.6s; /* Cambia la duración aquí */
}

/* Estilos para el aside de filtros */
.filters {
    width: 250px;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
}

.filter-group {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: #ccc 1px solid;
}

.filter-group h3 {
    margin-bottom: 5px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 5px;
}

/* Grid de productos */
.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-left: 20px;
}

.product {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product img {
    width: 100%;
    border-radius: 10px;
}

.product p {
    font-size: 1.2em;
    color: #ff6600;
}

.product button {
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Botón para desplegar filtros en móviles */
.filter-toggle {
    display: none;
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}
/* Fin estilos TARJETA DE PRODUCTO */

/* Estilos base para el FOOTER */
.footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-section h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #fff;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

/* Estilos para los iconos sociales */
.social-links {
    display: flex;
    gap: 10px;
}

.social-links a img {
    width: 30px;
    height: 30px;
    filter: invert(1);
    transition: transform 0.3s;
}

.social-links a img:hover {
    transform: scale(1.1);
}

/* Footer inferior */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
    font-size: 0.9em;
    color: #bbb;
}
/* Fin estilos FOOTER */

/* Estilos responsivos */
@media (max-width: 1000px) {
    nav .container {
        flex-direction: row;
        width: 100%;
    }
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .navbar .nav-links a {
        padding: 1rem;
        text-align: center;
    }

    .navbar .nav-toggle {
        display: block;
    }

    .navbar .nav-links.active {
        display: flex;
    }

}


/* Estilos base del footer */


/* Responsividad */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    #newsletter-form {
        align-items: center;
    }

    #newsletter-form input {
        max-width: 300px;
    }
}



/* Responsividad */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .filters {
        display: none;
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .filter-toggle {
        display: block;
        margin-bottom: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
