/*add-materia-prima.html*/
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}
h1{
    text-align: center;
}
.container {
    display: flex;
    flex-grow: 1;  
    overflow: auto; 
    text-align: center;
    width: 100%;
    height:auto;
    justify-content: center;
    
}

.noflex {
    display: block;
    overflow: hidden;
}

.colum {
	flex-direction: column;
}

.lista {
    margin-top: 1em;
    display: flex;
    flex-direction: column;  
    width: auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    flex-basis: 100%; /* Asegura que ocupe todo el ancho */
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1rem;
	width:100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
	text-align: center;
}

label {
    display: block;
    margin: 0.625rem 0 0.3125rem;
    color: #555;
}

select{
    text-align: center;
    margin-bottom:1em;
}

input, textarea, select, #completeButton {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.tipo-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.tipo-container select {
    flex: 1;
    margin-right: 10px;
}

.add-type-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.add-type-button:hover {
    background-color: #0056b3;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; 
    padding: 1.25rem; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); 
    max-width: 90%;
    width: 20rem; 
    text-align: center; 
    position: relative; 
    animation: slide-down 0.3s ease-out;
    z-index: 980;
    
}

@keyframes slide-down {
    from {
        transform: translateY(-30%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #ff0000;
    text-decoration: none;
}

#modal-message {
    font-size: 18px;
    color: #333;
    margin-top: 20px;
}

.modal-button {
    display: block;
    width: 100%;
    padding: 0.625rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
}

.modal-button:hover {
    background-color: #45a049;
}

/* account */
.user-greeting {
    margin-right: 1em;
    font-size: 1em;
}

.account-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
    position: absolute;
    top: 1em;
    right: 1em;
    z-index: 1001;
    display: flex;
    align-items: center; 
}

.account-icon:hover {
    transform: scale(1.05);
}

#accountIconImg {
    width: 3em;
    height: 3em;
    border-radius: 50%;
    border: 2px solid #ffffff; /* Borde moderno */
    transition: border-color 0.3s ease;
}

#accountIconImg:hover {
    border-color: #ffffff; /* Cambia el borde al pasar el ratón */
}

.account-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
}

.account-icon:hover .account-menu {
    opacity: 1;
    visibility: visible;
}

.account-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    background: #3cb6a1; 
    color: #f1f5f8; 
    border-bottom: 1px solid #eee;
    font-size: 14px;
    transition: background 0.3s ease;
    border-radius: 4px;
    font-weight: 500; /* Ajusta el peso de la fuente para un mejor contraste */
}

.account-menu-item:last-child {
    border-bottom: none;
}

.account-menu-item:hover {
    background: #0e6657; 
    color: #f1f5f8; 
}

#logoutBtn {
    background: #fa7575;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    padding: 10px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logoutBtn:hover {
    background: #e60000;
}


/*add-producto*/
.title {
    text-align: center;
}

.materia-prima {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.materia-prima .checkbox-container,
.materia-prima .cantidad-container {
    flex: 0 0 auto;
}

.materia-prima label {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.materia-prima input[type="checkbox"] {
    margin-right: 10px;
}

.materia-prima input[type="number"] {
    width: 7vw;
    margin-left: 10px;
    font-size: 1vw;
    text-align: center;
}


.categories {
    width: 250px; 
    flex-basis: 250px; /* Base size for the categories column */
    min-height: 90vh; /* Minimum height to occupy the full viewport height */
    margin-right: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Optional shadow for separation */
    flex-shrink: 0; /* Prevent shrinking */
}

.category-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #343a40;
    border-bottom: 2px solid #6c757d;
    padding-bottom: 5px;
}

.category-item {
    cursor: pointer;
    padding: 10px;
    margin-bottom: 5px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.category-item:hover {
    background-color: #007bff;
    color: #ffffff;
}

.products {
flex-grow: 1;
padding: 10px;
display: flex;
flex-direction: column; /* Ensure the filters are above products */
align-items: flex;
width: 100%; /* Ensure it takes the full width */
text-align: center;
}   


.filters {
    margin-bottom: 20px;
    width: 100%; /* Ensure filters take full width */
    text-align: center;
}

.price-filter {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
}

.price-filter input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.product-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(20vw, 1fr)); /* Responsive columns */
gap: 10px; /* Space between cards */
}
.product-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    background-color: #ffffff;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
	justify-content: space-between;
    overflow: hidden; /* Prevent overflow */
    max-height: 300px; /* Set a max height to limit card size */
}

.product-card img {
    width: 100%; /* Keep images responsive */
    height: auto; /* Adjust height automatically to maintain proportion */
    max-height: 200px; /* Max height for uniformity */
    object-fit: contain; /* Ensure the image does not get cropped */
    border-radius: 5px; /* Add rounding to images */
    margin-bottom: 5px; /* Reduce margin below the image */
}

.product-card a {
	text-decoration: none;
}

.product-name {
	display: flex;
    background-color: #0ada72; 
    color: white; 
    text-decoration: none; 
    border-radius: 1em; 
    font-size: 1em; 
    transition: background-color 0.3s, transform 0.3s; 
    border: 0.25em solid transparent; 
	min-height: 2em;
	justify-content: center; 
    align-items: center;
}

.product-name:hover {
    background-color: #044d31; /* Color de fondo al pasar el mouse */
    transform: scale(1.05); /* Efecto de ampliación al pasar el mouse */
    border: 2px solid #ffffff; /* Borde blanco al pasar el mouse */
}



.product-price {
    color: #28a745;
    font-size: 1em; /* Adjust font size */
    margin: 0; /* Adjust margin for no additional space */
    margin-top: 5px; /* Add top margin if necessary */
    text-decoration: none;
    display: inline-block;
}


/*completarpedido.html*/
h2 {
    margin-top: 20px;
    text-align: center;
    color: #333;
}
ul {
    list-style: none;
    padding: 0;
}
li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

/* Sidebar */
.sidebar {
    width: 15vw; 
    background-color: #333;
    color: white;
    height: auto; 
    padding: 1em;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1001; 
    /* No usar float aquí */
}

/* Scrollbar styles for WebKit browsers (Chrome, Safari) */
.sidebar::-webkit-scrollbar {
    width: 10px; /* Adjust width of scrollbar */
}

.sidebar::-webkit-scrollbar-track {
    background: #333; /* Track color */
}

.sidebar::-webkit-scrollbar-thumb {
    background: #555; /* Scrollbar thumb color */
    border-radius: 5px; /* Rounded corners for the thumb */
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #777; /* Color when hovering */
}

/* Scrollbar styles for Firefox */
.sidebar {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #555 #333; /* Thumb color and track color */
}

/* Additional styling for the sidebar */


.sidebar h1 {
    margin-top: 0;
    font-size: 1.5em;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.5em 0;
    margin: 0.5em 0;
    border-bottom: 1px solid #555;
}

.sidebar a:hover {
    background-color: #555;
}


/* Toggle button */
.sidebar-toggle-btn {
    background-color: #333;
    color: white;
    padding: 0.5em 1em;
    border: none;
    cursor: pointer;
    border-radius: 0.3em;
    z-index: 1001;
    transition: background-color 0.3s ease;
}

.sidebar-toggle-btn:hover {
    background-color: #555;
}

#toggleMenuBtn {
    position: absolute;
    top: 1.5em;
    left: 0.5em;
    z-index: 1001;
}

#toggleMenuBtn.oculto {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-open #menuText {
    display: none;
}

#menuText {
    display: inline;
}

/* Header */
.site-header {
    background-color: #004d40;
    color: white;
    padding: 0.625em 0;
    position: relative; /* Mantén position relative */
    width: 100%;
    top: 0;
    left: 0;
    
    /*z-index: 1010;*/
    box-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.1);
    margin: 0; /* Asegúrate de que no haya margen */
    align-items: center;
}

.header-content {
    max-width: 75em;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Cambia a space-between */
    align-items: center;
    padding: 0 1.25em;
    box-sizing: border-box;
}

.site-title {
    font-size: 1.8rem;
    margin: 0 3em; 
    position:relative;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}
.main-nav {
    display: flex;
    gap: 0.625em;
    flex-grow: 1; /* Permite que ocupe el espacio disponible */
    justify-content: center; /* Esto centrará los enlaces dentro de la navegación */
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5em 0.75em;
    border-radius: 0.3125em;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #00796b;
}

section {
    flex-grow: 1; /* Permite que el contenido ocupe el espacio restante */
    display: flex;
    flex-direction: column;
    overflow: visible; /* Asegúrate de que todo el contenido sea visible */
}
.site-footer {
    background-color: #004d40;
    color: white;
    padding: 0 0; /* Aumenta el padding vertical para un mejor espaciado */
    position: relative;
    width: 100%;
    box-shadow: 0 -0.125em 0.25em rgba(0, 0, 0, 0.1);
    margin-top: auto; 
}

.footer-content {
    max-width: 40em;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1em;
    box-sizing: border-box;
}

.footer-section {
    margin-bottom: 0.5em; /* Reduce el margen inferior entre secciones */
    text-align: center;
}

.footer-title {
    font-size: 1.25em; /* Tamaño adecuado para el título */
    margin-bottom: 0.25em; /* Margen pequeño debajo del título */
}

.footer-description {
    font-size: 0.875em; /* Tamaño de fuente ligeramente mayor para la descripción */
}

/* Contenedor Principal */
.main-content {
    display: flex;
    min-height: auto; 
}




/* Homepage buttons */
.homepage-buttons {
    display: flex;
    justify-content: center;
    gap: 0.625em;
    padding: 1.25em;
    flex-wrap: wrap;
}

.homepage-buttons .btn {
    display: inline-block;
    padding: 0.625em 1.25em;
    font-size: 1rem;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 0.3125em;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
}

.homepage-buttons .btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.homepage-buttons .btn:active {
    background-color: #004085;
    transform: scale(1);
}

/* Top right buttons */
.top-right-buttons {
    position: absolute;
    top: 0.625em; /* Position from the top */
    right: 0.625em; /* Position from the right */
    z-index: 1002;
    display: flex; /* Use flexbox for layout */
    
}
.top-right-buttons a {
    display: block;
    margin-bottom: 0.5em; /* Reduced margin for spacing */
    margin-left: 1em;
    margin-right: 1em;
}

.top-right-buttons .btn {
    display: inline-block;
    font-size: 0.875rem; /* Smaller font size */
    background-color: #333;
    color: white;
    padding: 0.5em 1em;
    border: none;
    cursor: pointer;
    border-radius: 0.3em;
    z-index: 1001; /* Ensure it's above the sidebar */
    transition: background-color 0.3s ease;
}

.top-right-buttons .btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.top-right-buttons .btn:active {
    background-color: #004085;
    transform: scale(1);
}

.hidden {
    display: none;
}
.sidebar.visible {
    transform: translateX(0);
}

/* Gallery */
#gallery {
    width: 100%;
    height: 60vh; 
    overflow: hidden;
    position: relative;
}

.gallery-container {
    display: flex;
    position: relative; 
}

.gallery-item {
    flex: 0 0 100%;
    opacity: 0; /* Por defecto, todas las imágenes están ocultas */
    transition: opacity 0.5s ease-in-out; /* Transición de opacidad */
    position: absolute; /* Asegura que las imágenes se superpongan */
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%; /* Ajustar el ancho al 100% del contenedor */
    height: auto; /* Mantener la proporción de la imagen */
    max-height: 60vh; /* Ajustar la altura máxima */
    object-fit: contain; /* Mantiene la proporción de la imagen */
}

.gallery-item.active {
    opacity: 1; /* Solo la imagen activa será visible */
}

.gallery-navigation {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 10px; /* Ubicación de los puntos */
    left: 0; 
    right: 0; 
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb; /* Color de los puntos */
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

.dot:hover, .dot.active {
    background-color: #717171; /* Color de los puntos activos */
}


/* Form elements */
input {
    padding: 0.625em;
    border: 1px solid #ccc;
    border-radius: 0.3125em;
}

button[type="submit"] {
    padding: 0.625em;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 0.3125em;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

#imagen-selection {
    display: flex;
}



@media (max-width: 780px) {
    #accountIcon {
        position: absolute; 
        top: 0.2em; 
        right: 0.5em; 
        z-index: 1000; 
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0.625em;
        font-size: 1rem;
    }

    .user-greeting {
        display: none;
    }

    .site-title {
        font-size: 2rem;
        margin-bottom: 0.1em;
        margin: 0 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        
    }

    .nav-link {
        padding: 0.5em 0;
        width: 100%;
        text-align: left;
    }

    #toggleMenuBtn {
        top:0.1em;
        left: 0.1em;
    }



    /* Ajustes para sidebar */
    .sidebar {
        width: 80vw; /* Ampliar el ancho del sidebar para pantallas pequeñas */
        height: 100%; 
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1011;
    }


    .sidebar-toggle-btn {
        top: 0.5em;
        left: 0.5em;
    }

    

    .site-header {
        position: relative;
        width: 100%;
        max-width: 100vw;
        z-index: 1000;
    }
    .top-right-buttons {
        position: absolute;
        top: 0.625em; /* Position from the top */
        z-index: 1002;
        display: flex; /* Use flexbox for layout */
        justify-content: space-between;
        width: 100%;
        right:0;
        
        
    }

    .register {
        position: absolute;
        top: 0; /* Position from the top */
        z-index: 1002;
        display: flex; /* Use flexbox for layout */
        right:0em;
    }

    #gallery {
    max-width: 100vw;
    height: 33vh;
}

    .lista {
        max-width: 100vw;
    }

    .categories {
        width: 200px; /* Ancho fijo reducido */
        flex-basis: 200px;
        min-height: auto;
        margin-right: 0;
        padding: 5px;
        box-shadow: none;
    }

    .category-title {
        font-size: 1.1em;
        margin-top: 15px;
        margin-bottom: 8px;
    }

    .category-item {
        padding: 8px;
        margin-bottom: 3px;
        font-size: 0.9em;
    }

    .filter-buttons {
        display: flex;
        flex-direction: column; /* Apila los botones verticalmente */
        gap: 5px; /* Espacio entre los botones */
    }
    
    .profile {
        display: block;
    }

    form {
        width: 100%;
    }
    
    #materias-primas-list {
        width: 90%;
    }
    .cantidad-container {
        object-fit: cover;
    }


    .materia-prima input[type="number"] {
        width: 7em;
        margin: 0 0;
        font-size: 1em;
        text-align: center;
    }

    #imagen-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Cambiado para espaciar elementos */
}

.radio-button {
    margin: 10px; /* Espaciado entre los elementos */
}

.image-container {
    display: flex;
    flex-direction: column; /* Alinear radio button y imagen verticalmente */
    align-items: center; /* Centrar el contenido */
    width: 120px; /* Ancho fijo para controlar el layout */
}


.radio-container {
    display: flex;
    flex-direction: column; /* Coloca el input arriba de la imagen */
    align-items: center; /* Centra el contenido */
    width: 50%; /* Asegura que cada contenedor ocupe la mitad del ancho */
    box-sizing: border-box;
}

.radio-imagen {
    width: 100%; /* Imagen ocupa el 100% de su contenedor */
}

.radio-button {
    margin-bottom: 5px; /* Espaciado entre el radio button y la imagen */
}
	}


@media (max-height: 460px)  {
    .container {
        margin-bottom: 0;
    }
    #gallery {
        height: 20vh;
    }
}





form label {
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form textarea {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Estilos específicos para el botón de envío */
form input[type="submit"] {
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 15px; /* Ajusta el padding si es necesario */
    font-size: 16px; /* Asegúrate de que el tamaño del texto es el adecuado */
}

form input[type="submit"]:hover {
    background-color: #555;
}

/* Estilos para otros botones si es necesario */
button {
    /* Agrega estilos específicos para otros botones aquí si es necesario */
    /* Por ejemplo: */
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Estilos de la sección de información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.contact-info p {
    margin: 5px 0;
}

/* Estilos de la sección de redes sociales */
.social-media {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.social-media a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
}

.social-media a:hover {
    color: #555;
}
.modify-account-btn {
    font-size: 0.875rem; /* Smaller font size */
    width: fit-content;
    margin: 0 auto;
    background-color: #333;
    color: white;
    padding: 0.5em 1em;
    border: none;
    cursor: pointer;
    border-radius: 0.3em;
    z-index: 1001; /* Ensure it's above the sidebar */
    transition: background-color 0.3s ease;
}

.modify-account-btn:hover {
    background-color: #555;
}


/*login.html*/
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}
/*crearpedido.html*/
#productosContainer .producto {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    padding: 10px; /* Agrega padding para evitar que el contenido toque los bordes del contenedor */
    box-sizing: border-box; /* Incluye padding y border en el tamaño total del elemento */
}

#productosContainer .producto label {
    margin-left: 10px;
    flex: 1; /* Ocupa el espacio disponible */
    font-size: 1rem; /* Tamaño de fuente relativo */
}

#productosContainer .producto input[type="checkbox"] {
    margin-right: 10px;
    width: 1.5rem; /* Tamaño relativo del checkbox */
    height: 1.5rem; /* Tamaño relativo del checkbox */
}

#productosContainer .producto input[type="number"] {
    margin-left: 10px;
    width: 5rem; /* Ancho relativo del input numérico */
    text-align: center;
    font-size: 1rem; /* Tamaño de fuente relativo */
}

/* Estilo para el texto del placeholder */
#productosContainer .producto input[type="number"]::placeholder {
    color: #999; /* Color del placeholder */
    font-size: 0.9rem; /* Tamaño del texto del placeholder */
}

/* Agrega reglas para pantallas más pequeñas usando media queries */
@media (max-width: 600px) {
    #productosContainer .producto {
        flex-direction: column; /* Cambia a una disposición vertical en pantallas pequeñas */
        align-items: flex-start;
    }

    #productosContainer .producto label,
    #productosContainer .producto input[type="checkbox"],
    #productosContainer .producto input[type="number"] {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 10px; /* Espacio entre elementos en vista vertical */
    }

    #productosContainer .producto input[type="checkbox"] {
        width: 1.2rem; /* Ajusta el tamaño del checkbox en pantallas pequeñas */
        height: 1.2rem; /* Ajusta el tamaño del checkbox en pantallas pequeñas */
    }

    #productosContainer .producto input[type="number"] {
        width: 4rem; /* Ajusta el ancho del input numérico en pantallas pequeñas */
    }

    #productosContainer .producto input[type="number"]::placeholder {
        font-size: 0.8rem; /* Ajusta el tamaño del texto del placeholder en pantallas pequeñas */
    }
}


/*productos.html*/
.search-bar {
    margin-bottom: 20px;
}
.search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}
table {
    width: 100%;
    border-collapse: collapse;
}
table, th, td {
    border: 1px solid #ddd;
}
th, td {
    padding: 10px;
    text-align: left;
	text-align: center;      
    vertical-align: middle; 
    border: 1px solid #000; 
}
th {
    cursor: pointer;
    background-color: #f4f4f4;
}
th:hover {
    background-color: #e2e2e2;
}

/*register.html*/
.register-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}
#loginButton {
    display: inline-block;
    font-size: 0.875rem; /* Smaller font size */
    background-color: #333;
    color: white;
    padding: 0.5em 1em;
    border: none;
    cursor: pointer;
    border-radius: 0.3em;
    z-index: 1001; /* Ensure it's above the sidebar */
    transition: background-color 0.3s ease;
}
#loginButton:hover {
    background-color: #555;
}
/*verpedidos.html*/
.pedido {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
}
.pedido-table {
    width: 100%;
    border-collapse: collapse;
}
.pedido-table th, .pedido-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.pedido-table th {
    background-color: #f2f2f2;
}
/*remito.html*/
.disabled-select {
    background-color: #f0f0f0;
    color: #a0a0a0;
    pointer-events: none;
    cursor: not-allowed;
}

.detalles-input {
    width: 150px;
    margin-left: 10px;
    padding: 5px; 
    border: 1px solid #ccc;
    border-radius: 4px; 
}


.featured-products {
    width: 100%;
    display: flex;
    flex-direction: column; /* Apila los elementos en columna */
    align-items: center; /* Centra los elementos horizontalmente */
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Centra el contenido horizontalmente */
    max-width: 1600px; /* Establece un ancho máximo para la flexibilidad */
    width: 100%; /* Permite que se ajuste al contenedor */
}

.product-container.columnapr{
    max-width: 1200px;
}

.product-card {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    flex: 1 1 200px; /* Permite que los cards sean flexibles */
    margin: 5px; /* Agrega un margen entre los cards */
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}



#producto-detalle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    padding: 2rem; 
    margin: 0; 
    background-color: #f9f9f9;
    width: 100%; 
    max-width: 90%; 
    max-height: 90vh; 
    overflow: hidden; 
}

#producto-detalle h2 {
    font-size: 2rem; 
    margin: 0 0 1rem 0; 
    text-align: center; 
}

#producto-detalle img {
    max-width: 100%; 
    height: auto; 
    max-height: 30vh; 
    border-radius: 0.625rem; 
    margin-bottom: 1.5rem; 
}

#producto-detalle p {
    font-size: 1.25rem; 
    color: #333;
    text-align: center; 
    margin: 0; 
    padding: 0.5rem; 
}


#edit-modal, #mp-edit-modal {
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
select {
    width: calc(100% - 1.25rem);
    padding: 0.625rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    margin: 1em 0;
    font-size: 1rem;
}

.editmodal, .mpeditmodal {
    display: none; 
}
.editmodal.show, .mpeditmodal.show {
    display: flex; 
}


#imagen-selection {
    display: flex;
    overflow-x: auto; /* Habilitar desplazamiento horizontal si es necesario */
    max-width: 100vw; /* Ajustar al ancho de la ventana */
    padding: 10px;
  }

  .imagen {
    width: 10vw; /* Usar unidades relativas para que sea redimensionable */
    height: auto; /* Mantener la proporción */
    margin: 5px;
  }


  .modify-btn, .delete-btn {
    margin: 1em 1em; /* Separar los botones */
    flex: 1; /* Hacer que sean redimensionables */
    padding: 10px; /* Espaciado interno */
    font-size: 1em; /* Tamaño de fuente adaptable */
    cursor: pointer; /* Cambiar el cursor al pasar sobre el botón */
}

.acciones {
    display: flex;
    flex-direction: column;
}

