/* FUENTE Y BASE */

body{
margin:0;
font-family:'Roboto Condensed', sans-serif;
background:#ffffff;
color:#333;
}



/* HEADER */

.header{
background:#ffffff;
border-bottom:1px solid #e5e5e5;
padding:15px 20px;
}

.header-container{
max-width:1200px;
margin:auto;
display:flex;
align-items:center;
justify-content:space-between;
}

.logo{
font-size:22px;
font-weight:700;
}

.menu a{
margin:0 15px;
text-decoration:none;
color:#333;
font-weight:400;
}

.menu a:hover{
color:#e63946;
}

.usuario-carrito a{
margin-left:15px;
text-decoration:none;
color:#333;
}

.usuario-carrito a:hover{
color:#e63946;
}


.titulo-categoria{
max-width:1200px;
margin:40px auto;
padding:20px;
}

.titulo-categoria h1{
font-size:32px;
margin-bottom:10px;
}

.titulo-categoria p{
color:#666;
font-size:16px;
max-width:600px;
}





/* SLIDER */

.slider{
max-width:1200px;
margin:30px auto;
padding:0 20px;
}

.slider img{
width:100%;
height:400px;
object-fit:cover;
border-radius:6px;
}



/* SECCIONES */

.section{
max-width:1200px;
margin:40px auto;
padding:0 20px;
}

.section h2{
margin-bottom:20px;
font-size:26px;
}



/* CATEGORIAS */

.categorias-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

.categoria-card{
border:1px solid #eee;
padding:30px;
text-align:center;
border-radius:6px;
transition:0.2s;
}

.categoria-card:hover{
box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

.categoria-card img{
width:80px;
margin-bottom:10px;
}

.categoria-card h3{
margin:0;
font-size:18px;
}



/* PRODUCTOS */

.productos-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.producto-card{
border:1px solid #eee;
border-radius:6px;
overflow:hidden;
transition:0.2s;
}

.producto-card:hover{
box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.producto-card img{
width:100%;
height:260px;
object-fit:cover;
}

.producto-info{
padding:15px;
}

.producto-info h3{
margin:0 0 10px 0;
font-size:18px;
}

.precio{
color:#e63946;
font-weight:700;
font-size:18px;
}

.boton{
display:inline-block;
margin-top:10px;
padding:8px 15px;
background:#000;
color:#fff;
text-decoration:none;
border-radius:4px;
font-size:14px; 
}

.boton:hover{
background:#333;
}



/* FOOTER */

footer{
border-top:1px solid #eee;
margin-top:60px;
padding:40px 20px;
}

.footer-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:20px;
align-items:center;
text-align:center;
}

.logo-footer{
font-size:22px;
font-weight:700;
}

.footer-menu a{
display:block;
text-decoration:none;
color:#333;
margin:5px 0;
}

.footer-menu a:hover{
color:#e63946;
}

.footer-info p{
margin:5px 0;
font-size:14px;
}







/* LOGIN Y REGISTRO */

.login-container{
max-width:400px;
margin:60px auto;
padding:40px;
border:1px solid #eee;
border-radius:6px;
background:#fff;
}

.login-container h2{
text-align:center;
margin-bottom:25px;
}

.login-form{
display:flex;
flex-direction:column;
}

.login-form input{
padding:12px;
margin-bottom:15px;
border:1px solid #ccc;
border-radius:4px;
font-family:'Roboto Condensed', sans-serif;
font-size:14px;
}

.login-form button{
padding:12px;
background:#000;
color:#fff;
border:none;
border-radius:4px;
cursor:pointer;
font-family:'Roboto Condensed', sans-serif;
font-size:15px;
}

.login-form button:hover{
background:#333;
}

.login-link{
text-align:center;
margin-top:15px;
font-size:14px;
}

.login-link a{
color:#e63946;
text-decoration:none;
}

.login-link a:hover{
text-decoration:underline;
}
.error{
color:#d90429;
text-align:center;
margin-bottom:10px;
}

.success{
color:#2a9d8f;
text-align:center;
margin-bottom:10px;
}







/* PRODUCTO */

.producto-container{
max-width:1200px;
margin:40px auto;
padding:0 20px;
}

.producto-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

.producto-imagen img{
width:100%;
border-radius:6px;
}

.producto-info h1{
margin-bottom:10px;
}

.precio{
font-size:28px;
font-weight:700;
margin:10px 0;
}

.descripcion{
margin-bottom:20px;
}

.stock{
margin-bottom:20px;
color:#2a9d8f;
}

.producto-info label{
display:block;
margin-top:15px;
font-weight:700;
}

.producto-info select,
.producto-info input{
width:100%;
padding:10px;
margin-top:5px;
border:1px solid #ccc;
border-radius:4px;
}

.boton-comprar{
margin-top:20px;
padding:15px;
width:100%;
background:black;
color:white;
border:none;
font-size:16px;
cursor:pointer;
}

.boton-comprar:hover{
background:#333;
}







 /* GALERIA PRODUCTO */

.producto-imagen img{
width:100%;
border-radius:6px;
}

#imagenPrincipal{
margin-bottom:10px;
}

.miniaturas{
display:flex;
gap:10px;
}

.miniaturas img{
width:70px;
cursor:pointer;
border:2px solid transparent;
border-radius:4px;
}

.miniaturas img:hover{
border:2px solid #000;
}





/* RESPONSIVE */

@media(max-width:768px){

.producto-grid{
grid-template-columns:1fr;
}

}




/* RESPONSIVE */

@media (max-width:768px){

.header-container{
flex-direction:column;
gap:10px;
}

.menu{
display:flex;
flex-wrap:wrap;
justify-content:center;
}

.footer-container{
grid-template-columns:1fr;
}

}


/* MOVIL 2 PRODUCTOS POR FILA */

@media (max-width:768px){

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

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

}