.container-product {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.box-product {
    width: 96%;
    background-color: white;
    margin-top: 1rem;
    border-radius: 0.2rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}
.label-nombre-producto {
    width: 100%;
    font-family: var(--font2);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;

}
.contenedor-producto {
    width: 100%;
    height: 17.5rem;
    display: flex;
    justify-content: center;
}
.container-menu-imagenes {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    overflow-y: auto;
    position: relative;
}
.container-menu-imagenes::-webkit-scrollbar {
    display: none;
}
.box-menu-imagenes {
    width: 100%;
    height: 6rem;
    background-color: white;
    border-radius: 0.2rem;
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    box-sizing: border-box;
}
.menu-select {
    border: 2px solid var(--rojo-secundario);
}
.box-menu-imagenes img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}
.box-img-producto {
    width: 85%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box-img-producto img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}
.contedor-info-producto {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.contenedor-descripcion {
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.label-descripcion {
    font-family: var(--font2);
    color: rgba(0,0,0,0.8);
    font-size: 1.2rem;
    font-weight: bold;
}
.texto-descripcion {
    font-family: var(--font2);
    font-size: 0.8rem;
    color: rgba(0,0,0,0.6);
}
.texto-descripcion ul {
    padding-left: 1.5rem;
}
.contenedor-relacionados {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
}
.container-productos-relacionados {
    width: 100%;
    border-radius: 0.2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow-x: auto;       
    white-space: nowrap;
    scroll-behavior: smooth; 
    margin-top: 0.5rem;
    background-color: white;
}
.container-productos-relacionados::-webkit-scrollbar {
    display: none;
}
.inp-scroll {
    width: 2.2rem;
    height: 2.2rem;
    background-color: rgba(211, 211, 211, 1);
    font-size: 1.2rem;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    position: absolute;
}

.inp-left {
    left: -1.4rem;
    margin-top: 1.5rem;
}
.inp-right {
    right: -1.4rem;
    margin-top: 1.5rem;
}
.inp-left:hover, .inp-right:hover {
    background-color: var(--rojo-base);
}
.icon-arrow {
    height: 1.3rem;
    width: 1.3rem;
    color: white;
}

.box-producto {
    width: 12rem;
    flex: 0 0 auto;
    padding: 0.4rem;
    background-color: white;
}
.box-img {
    width: 100%;
    height: 12rem;
    cursor: pointer;
}
.box-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}
.container-info-producto {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}
.label-producto-relacionado {
    font-family: var(--font2);
    font-size: 0.8rem;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* número de líneas visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;           /* oculta el resto del texto */
    text-overflow: ellipsis;    /* agrega "..." */
    white-space: normal; 
    height: 3.5rem;
}
.box-precios-productos-relacionados {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.label-precio {
    font-family: var(--font2);
    font-weight: bold;
}
.label-precio2 {
    color: grey;
    text-decoration: line-through;
    font-family: var(--font2);
    font-size: 0.8rem;
}
.container-variedades {
    width: 100%;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    height: 1.6rem;
}
.box-variedades {
    font-family: var(--font2);
    color: grey;
    font-size: 0.7rem;
    padding: 0.3rem;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 0.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box-variedad-agotado { 
    border: 1px solid rgba(0,0,0,0.3);
    color: rgba(0,0,0,0.3);
    text-decoration: line-through;
}
.box-variedad-select {
    border: 1px solid var(--rojo-secundario);
    color: var(--rojo-secundario);
    font-weight: bold;
}
.div-unidades {
    width: 100%;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    font-family: var(--font2);
    color: var(--verde);
    font-size: 0.7rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.div-unidades i {
    font-size: 0.4rem;
    margin-top: 0.1rem;
}
.producto-agotado {
    color: grey;
}
.input-agregar {
    width: 100%;
    height: 2rem;
    border: none;
    border-radius: 0.3rem;
    background-color: var(--rojo-secundario);
    color: var(--blanco);
    cursor: pointer;
    font-family: var(--font2);
}
.input-agregar:disabled {
    background-color: var(--rojo-rgba);
    color: white;
    cursor: not-allowed;
}


/* INFO PRODUCTO */
.contenedor-info-producto {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.label-producto {
    width: 100%;
    font-family: var(--font2);
    color: rgba(0,0,0,0.8);
    font-size: 1.2rem;
    font-weight: bold;
}
.box-favoritos-producto, .box-favoritos-producto2 {
    display: flex;
    gap: 0.1rem;
    align-items: center;
    margin-left: -0.2rem;
}
.box-favoritos-producto p, .box-favoritos-producto2 p {
    font-family: var(--font2);
    font-size: 0.7rem;
    color: var(--rojo-secundario);
    font-weight: bold;
}
.container-precios {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.div-precio {
    font-family: var(--font2);
    font-size: 2rem;
    font-weight: bold;
    color: rgba(0,0,0,0.8);
}
.div-precio2 {
    font-family: var(--font2);
    text-decoration: line-through;
    color: grey;
    font-size: 1.5rem;
}
.div-unidades, .div-unidades-producto {
    width: 100%;
    font-family: var(--font2);
    color: var(--verde);
    font-size: 0.7rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.div-unidades-producto {
    font-size: 1rem;
}
.producto-agotado {
    color: grey;
}
.contenedor-variedades {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.box-variedad {
    width: 4rem;
    height: 2.2rem;
    border: 1px solid rgba(0,0,0,0.3);
    font-family: var(--font2);
    border-radius: 0.2rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: rgba(0,0,0,0.5);
}
.agotado-variedad {
    border: 1px solid rgba(0,0,0,0.2);
    color: rgba(0,0,0,0.3);
    text-decoration: line-through;
}
.select-variedad {
    color: var(--rojo-secundario);
    border: 1px solid var(--rojo-secundario);
    font-weight: bold;
}

.box-info-extra {
    width: 20rem;
    background-color: white;
    margin-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0.2rem;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}
.no-favorito, .si-favorito{
    width: 1.2rem;
    height: 1.2rem;
    color: var(--rojo-secundario);
    cursor: pointer;
}

.container-inputs-cantidad {
    width: 100%;
}
.box-inputs-cantidad {
    width: 10rem;
    height: 2.8rem;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 0.2rem;
    display: flex;
    padding: 0.5rem;
    justify-content: space-around;
}
.input-text-cantidad {
    width: 33%;
    text-align: center;
    font-family: var(--font2);
    outline: none;
    border: none;
    font-size: 1.1rem;
    color: rgba(0,0,0,0.5);
}
.input-cantidad {
    font-family: var(--font2);
    background-color: white;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: rgba(0,0,0,0.5);
}
.input-agregar-carrito {
    width: 100%;
    height: 2.2rem;
    background-color: var(--rojo-secundario);
    font-family: var(--font2);
    font-size: 0.8rem;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 0.2rem;
    cursor: pointer;
}
.input-agregar-carrito:disabled {
  background-color: var(--rojo-rgba);
  color: white;
  cursor: not-allowed;
}
.container-infos {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.box-infos {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.info-titulo {
    font-family: 'Work Sans', sans-serif;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    align-items: center;
}
.label-titulo {
    font-size: 0.75rem;
}
.icono-titulo {
    font-size: 1rem;
}
.info-text {
    font-family: var(--font2);
    color: rgba(0,0,0,0.7);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}


/* PRODUCTOS */
.container-productos {
    width: 96%;
    margin-top: 0.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 0.3rem;
}
.div-labels {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.div-labels label {
    font-family: var(--font2);
    font-size: 1.2rem;
    color: rgba(0,0,0,0.8);
}
.input-nuevo-producto {
    width: 12rem;
    height: 2.2rem;
    background-color: var(--rojo-secundario);
    font-family: var(--font2);
    font-weight: bold;
    font-size: 0.8rem;
    border: none; 
    border-radius: 0.2rem;
    color: white;
    cursor: pointer;
}

.input-buscar-producto {
    margin-top: 1rem;
    width: 100%;
    height: 2.2rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    outline: none;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 0.2rem;
    margin-left: 0.1rem;
    font-family: var(--font2);
}
.tabla-scroll {
    width: 100%;
    overflow-x: auto;
}
.table-productos {
    margin-top: 0.2rem;
    width: 100%;
    min-width: 60rem;
    font-family: var(--font2);
}
.table-productos th {
    background-color: var(--rojo-secundario);
    color: white;
    font-size: 0.9rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}
.table-productos td {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.8);
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.3)
}
.box-precios {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.precio-gris {
    text-decoration: line-through;
    color: grey;
}
.box-acciones-productos {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}
.box-acciones-productos a {
    height: 1.3rem;
}
.icono-edit {
    width: 1.4rem;
    height: 1.4rem;
    cursor: pointer;
    color: var(--azul);
}
.icono-delete {
    width: 1.3rem;
    height: 1.3rem;
    cursor: pointer;
    color: var(--rojo);
}
.fa-pen-to-square {
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--naranja);
}
.fa-trash {
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--rojo);
}
.container-indices-productos {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.box-indice-productos {
    width: 2.2rem;
    height: 1.5rem;
    border: 1px solid rgba(0,0,0,0.3);
    color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border-radius: 0.2rem;
    cursor: pointer;
}
.indice-seleccionado {
    color: white;
    background-color: var(--rojo-secundario);
    border: none;
}
.mensaje-productos {
    width: 100%;
    margin-top: 1rem;
    font-family: var(--font2);
    margin-left: 0.3rem;
    font-size: 0.9rem;
    color: rgba(0,0,0,0.9);  
}


/* NUEVO PRODUCTO */
.container-nuevo-producto {
    width: 96%;
    padding: 1rem;
    background-color: white;
    margin-top: 1rem;
    border-radius: 0.3rem;
}
.label-nuevo-producto {
    font-family: var(--font2);
    color: rgba(0,0,0,0.8);
    font-size: 1.2rem;
}
.container-inputs-nuevo-producto {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.box-inputs-nuevo-producto {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.label-input-nuevo-producto {
    font-family: var(--font2);
    color: rgba(0,0,0,0.8);
    font-weight: bold;
    font-size: 0.8rem;
    padding-left: 0.2rem;
}
.input-nombre-producto, .input-costo-producto, .input-precio-producto, .input-descuento-producto {
    width: 100%;
    height: 2.2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 0.2rem;
    outline: none;
    font-family: var(--font2);
}
.input-registrar-producto {
    width: 6rem;
    height: 2rem;
    margin-top: 1rem;
    background-color: var(--rojo-secundario);
    font-family: var(--font2);
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    color: white;
}


@media (min-width: 480px) {

}
@media (min-width: 768px){
    .box-menu-imagenes {
        width: 70%;
    }
    .contenedor-producto {
        height: 26rem;
    }
    .inp-scroll {
        display: flex;
    }
    .input-buscar-producto {
        width: 25rem;
    }
    .box-favoritos-producto2 {
        display: none;
    }
    .div-labels label {
        font-size: 1.4rem;
    }
    .input-nuevo-producto {
        width: 14rem;
        height: 2.2rem;
        font-size: 0.9rem;
    }
}
@media (min-width: 1024px) {
    .container-product {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
    .box-product {
        width: 40rem;
    }
    .label-nombre-producto {
        display: none;
    }
    .contenedor-producto {
        height: 30rem;
    }
    .contedor-info-producto {
        display: none;
    }
    .box-info-extra {
        display: flex;
    }
    .div-precio {
        font-size: 1.5rem;
    }
    .div-precio2 {
        font-size: 0.9rem;
    }
    .box-variedad {
        width: 2.7rem;
        height: 1.6rem;
        font-size: 0.7rem;
    }
    .div-unidades-producto {
        font-size: 0.7rem;
    }
    .box-inputs-cantidad {
        width: 6rem;
        height: 2rem;
    }
    .input-text-cantidad {
        font-size: 0.8rem;
    }
    .input-cantidad {
        font-size: 0.9rem;
    }
    .inp-left {
        left: -2rem;
        margin-top: 1.5rem;
    }
    .inp-right {
        right: -2rem;
        margin-top: 1.5rem;
    }
}
@media (min-width: 1400px){

}
@media (min-width: 1600px){

}



.hidd {
    display: none;
}