@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
}

h1, h2, h3, h4, h5, h6, p, a, input, textarea, ul {
    margin: 0;
    padding: 0;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
}

.wrapper {
    display: grid;
    grid-template-columns: 1fr 4fr;
    background-color: #0B7C24;
}

aside {
    padding: 2rem;
    padding-right: 0;
    color: whitesmoke;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logos {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-img {
    height: 20%;
    width: 20%;
    animation: rotar 8s linear infinite; /* efecto rotacion logo */
}

/* rotacion logo */
@keyframes rotar {
    from{
        transform: rotateY(180deg);
    }
    to {
        transform: rotateY(-180deg);
    }
}

.logo {
    font-weight: 400;
    font-size: 1.3rem;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.boton-menu {
    background-color: transparent;
    border: 0;
    color: whitesmoke;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    padding: 1rem;
    font-size: .85rem;
    width: 100%;
}

.boton-menu.active {
    background-color: whitesmoke;
    color: #0B7C24;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    position: relative;
}

/* border radius invertido boton */
.boton-menu.active::before {
    content: '';
    position: absolute;
    width: 1rem;
    height: 2rem;
    bottom: 100%;
    right: 0;
    border-bottom-right-radius: .5rem;
    box-shadow: 0 1rem 0 whitesmoke;
}

.boton-menu.active::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 2rem;
    top: 100%;
    right: 0;
    border-top-right-radius: .5rem;
    box-shadow: 0 -1rem 0 whitesmoke;
}

.boton-menu > i.bi-hand-index-thumb-fill, 
.boton-menu > i.bi-hand-index-thumb {
    transform: rotateZ(90deg);
}

.boton-carrito {
    margin-top: 2rem;
}

.numerito {
    background-color: whitesmoke;
    color: #0B7C24;
    padding: .15rem .25rem;
    border-radius: .25rem;
}

.boton-carrito.active .numerito {
    background-color: #0B7C24;
    color: whitesmoke;
}

.texto-footer {
    color: #053a11;
    font-size: .85rem;
}

main {
    background-color: whitesmoke;
    margin: 1rem;
    margin-left: 0;
    border-radius: 2rem;
    padding: 3rem;
}

.titulo-principal {
    color: #0B7C24;
    margin-bottom: 2rem;
}

.contenedor-pdtos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.producto-img {
    max-width: 100%;
    border-radius: 1rem;
}

.producto-detalles {
    background-color: #0B7C24;
    color: whitesmoke;
    padding: .5rem;
    border-radius: 1rem;
    margin-top: -2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.producto-titulo {
    font-size: 1rem;
}

.producto-agregar {
    border: 0;
    background-color: whitesmoke;
    color: #0B7C24;
    padding: .25rem;
    text-transform: uppercase;
    border-radius: 1rem;
    cursor: pointer;
    border: 2px solid whitesmoke;
    transition: background-color .2s, color .2s;
}

.producto-agregar:hover {
    background-color: #0B7C24;
    color: whitesmoke;
}

/* CARRITO */
.contenedor-carrito {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.carrito-vacio,
.carrito-comprado {
    color: #0B7C24;
}

.carrito-pdtos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.carrito-pdto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #EFEFEF;
    color: #0B7C24;
    padding: 1rem;
    padding-right: 2rem;
    border-radius: 1rem;
}

.carrito-pdto-img {
    width: 4rem;
    border-radius: 1rem;
}

.carrito-pdto small {
    font-size: .75rem;
}

.carrito-pdto-eliminar {
    border: 0;
    background-color: transparent;
    color: red;
    cursor: pointer;
}

.carrito-acciones {
    display: flex;
    justify-content: space-between;
}

.carrito-acciones-vaciar {
    border: 0;
    background-color: #EFEFEF;
    padding: 1rem;
    border-radius: 1rem;
    color: #0B7C24;
    text-transform: uppercase;
    cursor: pointer;
}

.carrito-acciones-derecha {
    display: flex;
}

.carrito-acciones-total {
    display: flex;
    align-items: center;
    background-color: #EFEFEF;
    padding: 1rem;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    color: #0B7C24;
    text-transform: uppercase;
    gap: 1rem;
}

.carrito-acciones-comprar {
    border: 0;
    background-color: #0B7C24;
    padding: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    color: whitesmoke;
    text-transform: uppercase;
    cursor: pointer;
}

.disabled {
    display: none;
}