
*,
*::after,
*::before {
	box-sizing: border-box;
}

html {
	background: #fff;
}

body {
	
	--grid-columns: 2;
	--grid-columns2: 3;
	--details-bg-up: #fff;
	--details-bg-down: #f5f0ef;
	--color-product-title: #000;
	--color-product-subtitle: #a09897;
	--color-details-title: #000;
	--color-details-subtitle: #000;
	--color-descr: #000;
	--color-price: #BD9D92;
	--color-bg-addtocart: #000;
	--color-addtocart: #fff;
	--color-close: #000;
	--color-bg-magnifier: #000;
	--color-magnifier: #fff;
	--color-btn-hover: #c1b3b1;

}



.merchandise .disclaimer {
    position: absolute;
   right: 11vw;
    top: 13vh;
    color: #000;
    z-index: 16;
	font-size:9px;
	transform: rotate(90deg) translateX(100%) !important;
	    margin: 0;
	transform-origin: 100% 0;
} 




.hidden {
	position: absolute;
	overflow: hidden;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Icons */
.details__close .icon {
	display: block;
	width: 1.5em;
	height: 1.5em;
	margin: 0 auto;
	fill: currentColor;
}

.grid {
	margin: 10em auto 7em;
	position: relative;
	padding: 0 1em;
	width: 100%;
	max-width: 1000px;
	display: grid;
	grid-template-columns: repeat(var(--grid-columns), 1fr);
}

.food-pairings .grid {
	margin: 5em auto ;
	max-width: 100%;
	padding: 0 4vw;
	grid-template-columns: repeat(var(--grid-columns2), 1fr);
}

.grid__item {
	padding: 0 4vw;
	margin: 0 0 12vh;
}

.grid__item:nth-child(odd) .product {
	margin-top: -8em;
}
.food-pairings .grid__item:nth-child(odd) .product {
	margin-top: 0;
}
.food-pairings  .grid__item:nth-child(2) .product {
	margin-top: 8em;
}

.food-pairings  .grid__item:nth-child(5) .product {
	margin-top: 8em;
}
.food-pairings  .grid__item:nth-child(8) .product {
	margin-top: 8em;
}


.product {
	height: 100%;
	/*padding-top: 10em;*/
	position: relative;
	cursor: pointer;
}

.product__bg {
	height: 20em;
	background: var(--details-bg-down);
	position: relative;
}

.food-pairings .product__bg {
    height: auto;
    padding-top: 56%;
}

.product__img {
	max-height: 25em;
	margin: 0 auto;
	display: block;
	position: absolute;
	top: 0;
	left: 50%;
	pointer-events: none;
	transform: translate3d(-50%,0,0);
}
.food-pairings .product__img {
	max-height: none;
}

.product__title {
	position: relative;
	margin: 0.5em 0 0;
	font-size: 3rem;
	color: var(--color-product-title);
	font-family: "HumboldtFraktur", serif;
	
    text-transform: lowercase;
	font-weight: 500;
}

.product__subtitle {
	position: relative;
	margin: 0;
	text-transform: uppercase;
	color: var(--color-product-subtitle);
	font-size: 10px;
	letter-spacing: 0.115em;
	transition: color .3s ease-in-out;
}

.product:hover .product__subtitle {
	color: var(--color-link-hover);
}

.product__description,
.product__price {
	opacity: 0;
	position: absolute;
	display:none;
}

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

.details .details__title, .details .details__description{ opacity:0 !important;}
.details.details--open .details__title, .details.details--open .details__description{ opacity:1 !important;}


.food-pairings .details {
    padding: 66vh 5vw 5vh 5vw;
}

.food-pairings .details__description, .food-pairings  .details__addtocart, .food-pairings .details__title {
	z-index:1;
}

.food-pairings .details__description {
    max-width: 900px;
    margin: 1em 0 0 0;
}
.food-pairings .details__addtocart {
    margin: 4rem 0 0 0;
	display:none;

}

.food-pairings .details__title {
    margin: 0;
}

.food-pairings .details__subtitle, .food-pairings .details__deco{ display:none;}

.details.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: var(--details-bg-down);
}

.food-pairings .details__bg--down {
    top: 60vh;
    height: 40vh;
}

.food-pairings .details--open .details__bg--down {
    z-index: 1;
    opacity: .6 !important;
}

.details__img {
    position: absolute;
    top: 10vh;
    right: 10vw;
    width: 40vw;
}

.food-pairings .details__img {
    position: absolute;
    top: 0;
    right: 0;
    height: auto;
    width: auto;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
}


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

.details__title {
	margin: -1.5em 0 0.1em;
	    font-size: calc(20px + 2vw);
	color: var(--color-details-title);
	font-family: "HumboldtFraktur", serif;
	
    text-transform: lowercase;
	font-weight: 500;
}

.details__subtitle {
	text-transform: uppercase;
	margin: 0.75em 0 1em 0;
	letter-spacing: 0.115em;
	font-size: 1.75em;
	color: var(--color-details-subtitle);
}

.details__description {
	line-height: 1.5;
    max-width: 40%;
    margin: 2em 0 0 0;
    color: var(--color-details-desc);
    font-size: 2.3rem;
    font-weight: 500;
}

.details__price {
	font-size: calc(16px + 1.7vw);
	font-weight: bold;
	color: var(--color-price);
}
.food-pairings .details__price {
	display:none !important;
}

.details__addtocart {
	border: 0;
	margin: 6em 0 0 0;
	background: var(--color-bg-addtocart);
	color: var(--color-addtocart);
	padding: 0.75em 2em;
	font-weight: bold;
	transition: all .3s ease-in-out;
	    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;

}

.details__addtocart:hover {
	background: var(--color-btn-hover);
}

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


.food-pairings .details__close {
  
    top: 60vh;
	z-index:1;
    
}


.details__magnifier {
	display:none;
}


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


.media-item {
	display: inline-block;
	padding: 1em;
	vertical-align: top;
	transition: color 0.3s;
}

.media-item__img {
	max-width: 100%;
	opacity: 0.8;
	transition: opacity 0.3s;
}

.media-item:hover .media-item__img,
.media-item:focus .media-item__img {
	opacity: 1;
}

.media-item__title {
	font-size: 1em;
	margin: 0;
	padding: 0.5em;
}

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

	.product__bg {
		height: 10em;
	}
	.product__img {
		max-height: 19em;
	}
	.product__title {
		font-size: 1.25em;
	}
	.product__subtitle {
		font-size: 0.75em;
	}
	.details {
		padding: 30vh 0 5vh 10vw;
	}
	.food-pairings .details {
		padding: 50vh 5vw 5vh 5vw;
	}
	.food-pairings .details__bg--down {
		top: 43vh;
		height: 57vh;
	}
	.food-pairings .details__close {
		top: 43vh;
		    margin: 1em;
			    padding: 0;
	}
	.details__bg--down {
		top: 30vh;
		height: 70vh;
	}
	.details__title {
		font-size: 2em;
	}
	.details__subtitle {
		font-size: 1em;
	}
	.details__price {
		font-size: 1.5em;
	}
	.details__description {
		max-width: 70%;
		font-size: 18px;
		margin: 1em 0 0 0;
	}
	.details__deco {
		height: 7px;
		width: 4em;
	}
	.details__img {
		right: -12vh;
	}
	
}
