/* header {
    background-color: #fff;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}
header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    width: 100%;
} */

#subheader-categorias-mobile {
    position: sticky;
    top: 0px;
    left: 0px;
    height: 50px;
    background-color: #FFF;
    padding: 0rem 0.5rem;
}

.btnsHeaderTienda {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

@media screen and (max-width: 767px) {
    .btnsHeaderTienda {
        width: 15%;
    }
}

aside {
    width: 25%;
}

.titulo {
    font-size: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    padding: 0rem;
    margin: 0;
    margin-bottom: 1.5rem;
}

.btn-filtros {
    background-color: #ddd;
    color: #333;
    padding: 5px 8px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    line-height: 0.8rem;
    font-weight: 500;
    margin-left: auto;
    display: none;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.btn-filtros img {
    width: 15px;
    height: auto;
    margin-right: 5px;
}

@media screen and (max-width: 767px) {
    .btn-filtros {
        display: flex;
    }
}


.productosLista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 23%));
    gap: 30px;
}

@media (min-width: 500px) and (max-width: 767px) {
    .productosLista {
        grid-template-columns: repeat(auto-fill, minmax(200px, 48%));
    }
}

@media (max-width: 500px) {
    .productosLista {
        grid-template-columns: 100%;
    }
}
/* .productoItem {
    border: 0.5px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
} */
.productoItem {
    position: relative;
}
.productoItem img {
    width: 100%;
    object-fit: contain;
    border-radius: 15px;
    border: 0.5px solid #ccc;
    /* box-shadow: 0 0 3px rgba(0,0,0,0.1); */
}
.precioRecomendado {
    text-decoration: line-through;
    color: #999;
}

.btn-sec {
    background-color: #989898;
    color: #fff;
    border: 1px solid #ccc;
    padding: 7px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    font-weight: 500;
}
.btn-sec:hover {
    background-color: #ccc;
    color: #333;
}

/* .filtros {
    background-color: #FFF;
    border-radius: 15px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    padding: 1rem;
} */
/* .filtros h2 {
    background-color: #eee;
    padding: 0.5rem;
    border-radius: 5px;
} */

.tarjetaOferta {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgb(209, 2, 2);
    color: #fff;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 0.7rem;
}


/* #imagenPrincipal {
    transition: opacity 0.3s ease-in-out;
} */

.imgsCont {
    background-color: #fff;
    position: relative;
}

.contImgsSecs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    flex-direction: column;
    order: 1;
    max-height: 400px;
    overflow-y: auto;
}
.contImgsSecs img {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 7px;
    padding: 5px;
    height: 25%;
}

#contenedorImagenPrincipal {
    position: relative;
    height: 100%; 
    min-height: 400px;
    overflow: hidden;
    order: 2;
}

.imagen-animada {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.image-enter-active, .image-exit-active {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.image-enter, .image-exit-to {
    opacity: 0;
    transform: scale(0.5);
}

.image-exit, .image-enter-to {
    opacity: 1;
    transform: scale(1);
}

/* Entrada y salida hacia/desde la derecha */
.image-enter {
    transform: translateX(100%) scale(0.5);
}

.image-exit {
    transform: translateX(-100%) scale(0.5);
}

/* Entrada y salida hacia/desde la izquierda */
.image-enter-prev {
    transform: translateX(-100%) scale(0.5);
}

.image-exit-prev {
    transform: translateX(100%) scale(0.5);
}


.btn-ampliarimg {
    position: absolute;
    left: 20%;
    bottom: 30px;
    cursor: pointer;
    background-color: #FFF;
    border-radius: 50%;
    padding: 0px;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
    border: none;
    z-index: 1000;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-ampliarimg img {
    width: 20px;
    height: auto;
}

@media screen and (max-width: 767px) {
    .contImgsSecs {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        order: 2;
        gap: 1rem;
    }
    .contImgsSecs img {
        width: 30%;
    }
    #contenedorImagenPrincipal {
        order: 1;
    }

    .btn-ampliarimg {
        left: 10px;
        bottom: 30%;
    }
}

.infoProductoCont {
    background-color: #fafafa;
    padding: 2rem 0;
}


.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    height: 90%;
    padding-top: 100px;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.btn-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    color: white;
    background-color: transparent;
    border: none;
}

#prevImage {
    left: 5px;
}

#nextImage {
    right: 5px;
}

#caption {
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 20px;
}

.btn-nav-small {
    position: absolute;
    top: 50%;
    cursor: pointer;
    background-color: #FFF;
    border-radius: 50%;
    padding: 0px;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    border: none;
    z-index: 1000;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-nav-small img {
    width: 20px;
    height: auto;
}
#prevImgSmall {
    left: 20%;
}
#nextImgSmall {
    right: 10px;
}

@media screen and (max-width: 767px) {
    .btn-nav-small {
        top: 40%;
    }
    #prevImgSmall {
        left: 10px;
    }
    #nextImgSmall {
        right: 10px;
    }
}

.productoVariante {
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 4px;
    cursor: pointer;
}

.btnCantidadCont {
    height: 40px;
}
.btn-cantidad {
    background-color: #fff;
    border: 0;
    padding: 7px 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    width: 20%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#inputCantidad {
    text-align: center;
    padding: 5px;
    width: 60%;
    height: 40px;
    border: 0;
    background-color: #FFF;
    font-size: 1rem;
}

.extraInfo {
    border-top: 1.4px solid #ddd;
    padding-top: 0.5rem;
}

.productosRelacionados {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
}

@media screen and (max-width: 767px) {
    .productosRelacionados {
        flex-wrap: wrap;
        white-space: normal;
    }
    .productosRelacionados a {
        width: 30%;
    }
}


.categorias-container {
    position: sticky;
    top: 100px;
    left: 0px;
    width: 100%;
    border-bottom: 1px solid #ddd;
    z-index: 2000;
    background-color: #FFF;
    height: 50px;
}

.categorias-cont {
    height: 50px;
}


.categoria1 {
    cursor: pointer;
    width: auto;
    margin-right: 20px;
    padding: 0.5rem 0.5rem;
    height: 50px;
    line-height: 35px;
}

.categorias2-modal {
    display: none;
    gap: 1rem;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #fff;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 5px 15px rgba(63,63,63,0.15);
    padding: 1.5rem 0;
}

.categoria-container {
    height: 50px;
}

@media screen and (min-width: 767px) {
    .categoria-container:hover .categorias2-modal {
        display: block;
    }

    .categoria-container:hover .categoria1 {
        background-color: #eaf3d5;
    }

    .categoria-container:focus-within .categorias2-modal {
        display: block;
    }
}

.categoria2 {
    white-space: nowrap; /* Para evitar que el texto se ajuste y expanda el modal */
}



@media screen and (max-width: 767px) {

    
    .categorias-container {
        display: none;
        position: fixed;
        top: 149px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 149px);
        overflow-y: auto;
        z-index: 2000;
        background-color: #FFF;
    }

    .categorias-cont {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        margin: 0px !important;
        width: 100% !important;
        height: auto;
    }

    .categoria-container {
        width: 100%;
        display: flex;
        height: auto;
    }

    .categorias2-modal {
        position: absolute;
        top: 0px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 100px);
        overflow-y: auto;
        padding: 1rem;
        padding-bottom: 2rem;
        z-index: 3000;
    }
    .categoria1 {
        width: 90%;
        height: auto;
        line-height: auto;
    }
    .desplegar {
        margin-left: auto;
        width: 45px;
        height: 45px;
        border-radius: 5px;
        background-color: #FFF;
        border: 0px;
        background-image: url('/images/chevron-right.svg');
        background-size: 30px;
        background-repeat: no-repeat;
        background-position: center;
    }

    .categoria2atras-mobile {
        margin-left: auto;
        width: 45px;
        height: 45px;
        border-radius: 5px;
        background-color: #EEE;
        border: 0px;
        background-image: url('/images/chevron-left.svg');
        background-size: 30px;
        background-repeat: no-repeat;
        background-position: center;
        position: sticky;
        top: 0px;
        left: 0px;
    }

    .categoria2 {
        
    }
}

.btn-carrito {
    position: relative;
    margin-right: 0.5rem;
}

#carritoCant {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #333;
    color: #fff;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 0.5rem;
    line-height: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
}

#modalCarrito {
    /* Propiedades existentes */
    opacity: 0;
    display: flex; /* Cambiado de 'none' a 'flex' para poder aplicar la transición */
    justify-content: start;
    align-items: start;
    width: 35%;
    height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #FFF;
    z-index: 20000;
    padding: 2rem;
    transform: translateX(100%); /* Inicialmente movido hacia la derecha */
    transition: transform 0.5s ease-in-out; /* Transición suave para el efecto de deslizamiento */
}

#modalCarrito.mostrar {
    transform: translateX(0); /* Posición final cuando el modal es visible */
}

#overlayCarrito {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 19999; /* Debe ser menor que el z-index del aside */
}
.carritoImagen {
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.resumenPedidoCheckout {
    background-color: #EFEDED;
    border-radius: 5px;
    padding: 1rem;
}

.form-checkoutTienda label {
    color: #888;
    width: 100%;
    font-size: 0.8rem;
}
.form-checkoutTienda input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
}
.inputCupon {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;

}

.bordertop {
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}

.btn-cuponTienda {
    background-color: #666;
    color: #fff;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    font-weight: 500;
}

.checkoutCuenta {
    background-color: #EFEDED;
    border-radius: 5px;
    padding: 1rem;
}
.checkoutCuenta button {
    color: var(--color-main);
    background-color: transparent;
    border: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}


#overlaySesion {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.modal-back-checkout {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}
.modal-front-checkout {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 80%;
    max-width: 900px;
    margin: auto;
    background-color: #fff;
    overflow-y: auto;
    padding: 1rem;
    pointer-events: all;
}

#modalSesion > div {
    max-width: 500px;
}

#overlayRegistro {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;

}

.usuariosNav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.5rem 0rem;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    margin-bottom: 2px;
}
.usuariosNavActive {
    color: var(--color-main);
    padding-bottom: 1rem;
    margin-bottom: 0 !important;
    border-bottom: 2px solid var(--color-main) !important;
}

.pedidoRealizadoResumen > div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #ddd;
    text-align: center;
}
.pedidoRealizadoResumen > div:last-child {
    border-right: 0;
}

.pedidoRealizadoProductos > div {
    border-bottom: 1px solid #ddd;
}

.tachado {
    text-decoration: line-through;
    color: #999;
}

.pedidoUsuario {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;    
}
.pedidoUsuario > div:first-child {
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100vw;
}

.pagination a {
    padding: 0.5rem;
    border: 0px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.current {
    background-color: var(--color-main);
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}