*,
*::after,
*::before {
	box-sizing: border-box;
}
body {
	min-height: 100vh;
	background-color: #fff;
}
/* Icons */
.icon-bro {
	display: block;
	width: 20px;
	height: 20px;
	margin: 0 auto;
	fill: currentColor;
}
main {
	position: relative;
	width: 100%;
}
.content {
	position: relative;
	display: block;
	max-width: 100%;
	margin: auto;
}
.grid {
    width: calc(100% - 20px);
	margin: 100px auto 50px;
	position: relative;
	display: grid;
	grid-template-columns: repeat(1, 1fr);
}
.grid__item {
/*	padding: 0PX 4vw;*/
/*	margin: 0 0 12vh;*/
    padding: 0 .5vW;
    margin: 0 0 5vh;
}
/*.grid__item:nth-child(odd) .product {
	margin-top: 0px;
}*/
.product {
	height: 100%;
	padding-top: 10rem;
	position: relative;
	cursor: pointer;
}
.product__bg {
	height: 0px;
	position: relative;
}
.product__img {
	height: 150px;
	margin: 0 auto;
	display: block;
	position: absolute;
	top: 0;
	left: 50%;
	pointer-events: none;
	transform: translate3d(-50%,0,0);
    transition: all .5s ease-in-out;
}
.product__title {
	position: relative;
    border: solid 1px #698B22;
    text-align: center;
/*    text-transform: uppercase;*/
    padding: 10px 0;
}
.product__subtitle {
	position: relative;
	margin: 0;
	text-transform: uppercase;
	color: var(--color-product-subtitle);
	letter-spacing: 0.115rem;
    text-align: center;
    transition: all .5s ease-in-out
}
.product:hover .product__img {
    transition: all .5s ease-in-out;
    height: 175px;
}
.product:hover .product__subtitle {
	color: #000;
    transition: all .5s ease-in-out
}
.product:hover .product__bg {
/*	border: solid 1px #698B22;*/
	transition: .5s;
}
.product__description,
.product__price {
	opacity: 0;
	position: absolute;
}

/*----------Detalles----------*/

.details {
	position: fixed;
	width: 100%;
	height: 100%;
	bottom: 0;
	left: 0;
	padding: 50vh 0 10vh 10vw;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	pointer-events: none;
}

.details--open {
	pointer-events: auto;
}

.details > * {
	position: relative;
	opacity: 0;
}

.details__bg {
	width: 100%;
	position: fixed;
	left: 0;
}

.details__bg--up {
	top: 0;
	height: 100vh;
	background: var(--details-bg-up);
}

.details__bg--down {
	top: 40vh;
	height: 60vh;
	background: #698B22;
}

.details__img {
	position: absolute;
	top: 5vh;
	right: 10vw;
	height: 35vh;
}

.details__bg,
.details__img {
	transform-origin: 0 0;
}

.details__title {
	margin: -1.5em 0 0.1em;
	font-size: 2em;
	text-transform: uppercase;
    color: #fff;
}

.details__subtitle {
	margin: 0.75em 0 1em 0;
	letter-spacing: 0.115em;
	font-size: 1em;
	color: #fff;
}

.details__description {
	line-height: 1.5;
	max-width: 90%;
	margin: 2em 0 0 0;
	color: #fff;
}

.details__price {
	font-size: 2em;
	color: #fff;
}

.details__addtocart {
    display: none;
	border: 0;
	margin: auto 0 0 0;
	background: var(--color-bg-addtocart);
	color: #fff;
	padding: 0.75em 2em;
}

.details__addtocart:hover {
	background: var(--verde-ma);
}

.details__close {
	position: absolute;
    color: var(--verde-ma);
	top: 0;
	right: 0;
	border: 0;
	margin: 2em;
	cursor: pointer;
	font-size: 0.85em;
}

.dummy-menu {
	border: 0;
	background: #698B22;
	padding: 0;
	margin: 2.75em 2.5em 0 0;
	position: fixed;
	top: 0;
	right: 0;
	font-size: 0.85em;
	color: var(--color-close);
	cursor: pointer;
	z-index: 1000;
}

.details__magnifier {
	border: 0;
	background: #fff;
	color: var(--verde-ma);
	padding: 1em;
	border-radius: 50%;
	position: absolute;
	z-index: 1000;
	right: calc(5vh + 10vw);
	top: 60vh;
	cursor: pointer;
}

.details__magnifier:hover {
	background: var(--verde-ma);
    color: #fff;
}

.details__deco {
	width: 7em;
	height: 10px;
	background-position: 50% 50%;
	background-size: 120%;
}


@media screen and (min-width:420px){
    .grid {
        grid-template-columns: repeat(2, 1fr);
        }
    .grid__item:nth-child(odd) .product {
        margin-top: -100px;
        }
    .product__img {
        height: 150px;
    }
    
    /*----------Detalles----------*/
    .details__bg--down {
        top: 45vh;
        height: 55vh;
    }
    .details__img {
        height: 55vh;
        left: auto;
    	right: -15vh;
    }
    .details__title {
        margin: -2.5em 0 0.1em;
        color: var(--verde-ma)
    }
    .details__description {
        max-width: 50%;
    }
    .details__magnifier {
	right: calc(10vh + 10vw);
	top: 75vh;
}

}
@media screen and (min-width:600px) and (max-width: 899px){
     .grid {
        grid-template-columns: repeat(3, 1fr);
        }
    .grid__item:nth-child(odd) .product {
        margin-top: auto;
        }
    .grid__item:nth-child(3n+2) .product {
        margin-top: -100px;
        }
    .details__img {
    	right: 5vh;
    }
}

@media screen and (min-width:900px){
    .content {
        max-width: 900px;
        }

    .grid {
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
        }
    .grid__item:nth-child(odd) .product {
        margin-top: -100px;
        } 
    .product__bg {
        height: 30px;
        }
    .product__img {
        max-height: 200px;
    }

    .details {
        padding: 40vh 0 10vh 10vw;
    }

    .details__bg--down {
	    top: 40vh;
	    height: 60vh;
    }
    .details__img {
	    top: 10vh;
	    right: 10vw;
	    height: 70vh;
    }
    .details__title {
        margin: -1.5em 0 0.1em;
        font-size: 3em;
    }
    .details__subtitle {
        margin: 0.75em 0 1em 0;
        font-size: 1.5em;
    }
    .details__description {
        max-width: 50%;
        margin: 2em 0 0 0;
    }
    .details__magnifier {
        right: calc(21.5vh + 10vw);
        top: 75vh;
    }
}

