@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
body {
    background-image: url('../img/image7.jpg');
    min-height: 300vh;
    background-size: cover;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.navbar {
        position: fixed;
        top: 0;
        left: 0; 
        width: 98%; 
        background: #222; 
        padding: 10px 20px;
        z-index: 1000; 
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); 
    }
.nav-left {
        display: flex;
        align-items: center;
        gap: 15px;
}  
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand{
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-decoration: none;
}
.logo {
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.sale {
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: bold;
    
}

.cart-icon {
    font-size: 24px;
    cursor: pointer;
    color:#f1f1f1;

}


.carrito {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: right 0.3s ease-in-out;
    transform: translateX(100%);
    z-index: 1001;
}

.carrito.visible {
    transform: translateX(-90%);
}

.cerrar-carrito {
    font-size: 20px;
    cursor: pointer;
    float: right;
}
.carrito-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.carrito-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.categorias {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #222; /* color de fondo suave */
    flex-wrap: wrap;
}

.categoria {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.categoria img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.categoria span {
    display: block;
    margin-top: 8px;
    font-weight: bold;
    color: #000;
}

.categoria:hover {
    transform: scale(1.05);
}

/* Sección de Productos */

.productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    gap: 20px; /* espacio entre tarjetas */
    padding: 20px;
    justify-items: center; /* centra cada tarjeta */
}

.producto {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    width: 200px; /* tamaño fijo opcional */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.producto img {
    width: 150px;
    height: auto;
    border-radius: 5px;
}
.paginacion {
    text-align: center;
    margin: 20px 0;
}
.paginacion button {
    background-color: #444;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 0 3px;
    cursor: pointer;
    border-radius: 5px;
}
.paginacion button.active {
    background-color: #ff6600;
}
.info-categoria {
    display: flex;
    justify-content: space-between;
    padding: 40px 10%;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    gap: 30px;
    flex-wrap: wrap;
}

.info-bloque {
    flex: 1;
    min-width: 250px;
}

.info-bloque h3 {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.info-bloque p {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.footer {
    background: #222;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo h2 {
    font-size: 24px;
    font-weight: bold;
}

.social-icons i {
    font-size: 20px;
    color: white;
    margin: 10px;
    cursor: pointer;
}

/* Sección de enlaces */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 80px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
    text-align: left;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.footer-column p, .footer-column a {
    margin: 2px 0;
    font-size: 14px;
}
.footer-column h3 {
    font-size: 16px;
    font-weight: bold;
}

.footer-column a {
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.footer-column a:hover {
    text-decoration: underline;
}

/* Línea inferior */
.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid white;
    padding-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-bottom a {
    text-decoration: none;
    color: white;
    font-size: 12px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}
.carrito-footer {
    border-top: 1px solid #ccc;
    padding-top: 10px;
    margin-top: 10px;
}
.carrito-footer p {
    font-weight: bold;
}
.carrito-footer label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}