* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    
}
body {
    text-align: center;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100vw; 
}

a {
    text-decoration: none;
    color: white;
}

nav a {
    font-weight: bold;
    padding-right: 40px;
}

nav a:hover {
    color: black;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: brown;
    padding: 10px;
    height: 75px;
    width: 100%;
    color: azure;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    margin-right: 30px;
}

.nombre-tienda {
    color: white;
    font-size: 20px;
}

.slider {
    width: 80%;
    height: 500px;
    overflow: hidden;
}

.slider-box figure {
    position: relative;
    left: 0;
    width: 400%;
    animation: slide 10s infinite;
}

.slide {
    position: relative;
    width: 25%;
    float: left;
}

.slide img {
    width: 100%;
    height: 500px;
}

@keyframes slide {
    0% {
        left: 0;
    }
    10% {
        left: 0;
    }
    20% {
        left: -100%;
    }
    30% {
        left: -100%;
    }
    40% {
        left: -200%;
    }
    50% {
        left: -200%;
    }
    55% {
        left: -300%;
    }
    65% {
        left: -300%;
    }
    66% {
        left: -200%;
    }
    74% {
        left: -200%;
    }
    75% {
        left: -100%;
    }
    85% {
        left: -100%;
    }
    90% {
        left: 0%;
    }
    100% {
        left: 0%;
    }
}

/* Formulario */
form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    width: 400px;
    border-radius: 25px;
    background-color: brown;
    margin-right: 30px;
}

input {
    width: 100%;
    height: 50px;
    background-color: white;
    border: 1px solid;
    border-radius: 15px;
    font-size: 18px;
    padding: 17px 11px;
    margin-bottom: 25px;
}

.boton {
    width: 100%;
    height: 50px;
    background-color: burlywood;
    border: 1px solid;
    border-radius: 25px;
    font-size: 18px;
}

.boton:hover {
    background-color: chocolate;
}

h1 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 20px;
    color: white;
}

label {
    font-size: 17px;
    margin-bottom: 10px;
    color: white;
}

/* Sección de productos */
article{
    text-align: center;
    padding: 40px 0;
    background-color: #f8f8f8;
}

article h2 {
    font-size: 24px;
    color: brown;
    margin-bottom: 20px;
}


.mayoreo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.mayoreo img {
    width: 1050px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}



footer {
    background-color: brown;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    font-size: 16px;
}

section {
    padding: 40px 20px;
}

section a {
    text-decoration: none;
    color: black;
    padding: 70px 70px;
    border-radius: 22px;
    justify-content: space-between;
    font-size: 29px;
    margin-right: 15px; 
    text-align: center; 
    font-weight: bold;
    
}


.btn-usuario {
    background: brown; 
}


.btn-administrador {
    background: orange; 
}


a:hover {
    opacity: 0.8; 
    transition: opacity 0.3s ease; 
}
.productos {
    text-align: center;
    padding: 20px;
}

.productos h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.productos-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.producto {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 350px;
}

.producto img {
    width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.producto h3 {
    font-size: 16px;
    margin: 10px 0;
}

.precio {
    font-size: 20px;
    font-weight: bold;
    color: red;
}

.comprar {
    background-color: white;
    color: red;
    border: 2px solid red;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.comprar:hover {
    background-color: red;
    color: white;
}
.producto {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Espaciado adecuado */
    min-height: 350px; /* Ajusta según sea necesario */
}

.precio {
    font-size: 20px;
    font-weight: bold;
    color: red;
    margin-bottom: 10px; /* Agrega espacio debajo del precio */
}

.comprar {
    background-color: white;
    color: red;
    border: 2px solid red;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    display: block;
    width: 80%; /* Hace que el botón se vea mejor */
    text-align: center;
}

.comprar:hover {
    background-color: red;
    color: white;
}

main.carrito-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background-color: #fff;
}

.productos-carrito {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 800px;
    gap: 20px;
}

.producto-carrito {
    border: 2px solid brown;
    background-color: #fff5f5;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    text-align: left;
    font-size: 18px;
}
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 20px;
}


.carrito-contenido {
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
    background-color: #f9f9f9; 
    padding: 20px;
    border-radius: 10px;
}

/* Footer básico */
footer {
    padding: 15px 20px;
    text-align: center;
}

.footer-links a {
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Estructura básica del header (sin cambiar colores) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

header .logo img {
    height: 50px;
    margin-right: 10px;
}

nav a {
    margin-left: 15px;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}
.carrito-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.producto-carrito {
    border: 2px solid #ccc;
    padding: 15px;
    border-radius: 10px;
    width: 250px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
}

.producto-carrito p {
    margin: 5px 0;
}

.producto-carrito form {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.producto-carrito input[type="number"] {
    width: 60px;
}

.total-carrito {
    text-align: center;
    margin-top: 30px;
}

.total-carrito h3 {
    margin-bottom: 10px;
}

.total-carrito button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgb(0, 195, 255); /* verde compra */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.total-carrito button:hover {
    background-color: #141dc7;
}
.carrito-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}
.producto-carrito {
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 15px;
    padding: 20px;
    width: 250px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    text-align: left;
    position: relative;
}

.producto-carrito p {
    margin: 8px 0;
}
.producto-carrito form {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.producto-carrito button {
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.producto-carrito button[name="eliminar_producto"] {
    background-color: #e74c3c;
    color: white;
}

.producto-carrito button[name="actualizar_cantidad"] {
    background-color: #3498db;
    color: white;
}

.producto-carrito input[type="number"] {
    width: 60px;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.tabla-carrito {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    margin-top: 30px;
}

.tabla-carrito th, .tabla-carrito td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.tabla-carrito th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.form-actualizar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.form-actualizar input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.btn-eliminar {
    background-color: red;
    border: none;
    padding: 6px 10px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.btn-eliminar:hover {
    background-color: rgba(255, 0, 0, 0.249);
}

.total-carrito {
    text-align: center;
    margin-top: 20px;
}

.btn-comprar {
    background-color: #007bff;
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-comprar:hover {
    background-color: #0056b3;
}
.total-carrito {
    width: 84%;
    margin: 25px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-carrito h3 {
    margin: 0;
}

.btn-comprar {
    background-color: #007bff;
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-comprar:hover {
    background-color: #0056b3;
}


.centrar-formulario {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    background-color: #f8f8f8;
}
