/* Globales */
*::after,
*::before,
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    margin: 0 auto;
    max-width: 1200px;
    font-family: 'Lato';
    color: #333;
}

.icon-cart:hover{
    cursor: pointer;
}

img{
    max-width: 100%;
    height: auto;
}

/* Header */
header{
    padding: 30px 0 40px 0;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 30px; /* Ajusta la separación entre el ícono y el título */
}

.header-container h1 {
    margin: 0;
}

.back-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-right: 10px; /* Ajusta el margen derecho para separar del borde */
    padding: 5px; /* Añade padding para darle más área de clic */
}

.back-button ion-icon {
    font-size: 35px;
    color: #000;
}

.back-button:hover ion-icon {
    color: #333;
}


/* Main */
.container-items{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); /* Ajuste para pantallas más pequeñas */
    gap: 20px;
    text-decoration: none;
}

.item{
    border-radius: 10px;
}

.item:hover{
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
}

.item img{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: all .5s;
}

.item figure{
    overflow: hidden;
}

.item:hover img{
    transform: scale(1.2);
}

.info-product{
    padding: 15px 30px;
    line-height: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    outline: none;
}

.price{
    font-size: 18px;
    font-weight: 900;
}

.info-product button{
    border: none;
    background: none;
    background-color: #000;
    color: #fff;
    padding: 15px 10px;
    cursor: pointer;
    border-radius: 10px;
    text-decoration: none;
}

.info-product a:focus,
.info-product a:active,
.info-product button:focus,
.info-product button:active {
    outline: none;
    box-shadow: none;
}

/* Evitar borde y subrayado después de hacer clic en un enlace */
a {
    text-decoration: none;
    outline: none;
    color: inherit; /* Asegura que el color del texto no cambie */
}

a:focus,
a:active {
    text-decoration: none;
    outline: none;
}

li{
    font-family:'Lato';
    font-size: 30px;
    margin-left: 50px;
}
