/* GENERAL
=========================================== */
html, body {
	height: 100vh;

	display: flex;
	justify-content: center;
	align-items: center;
}

body {
	background-color: hsl(30, 38%, 92%);
}

.wrapper {
	width: 355px;
	/*height: 580px;*/
	display: flex;
	flex-direction: column;
}


/* PHOTO
=========================================== */
.photo {
	width: 100%;
	height: 250px;
	/*height: 26.5vh;*/

	background-image: url('images/image-product-mobile.jpg');
	background-color: hsl(158, 36%, 37%);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;

	border-top-right-radius: 15px;
	border-top-left-radius: 15px;
}


/* TEXT 
=========================================== */
.text * {
	margin: 0;
}

.text {
	padding: 10px 25px 25px 25px;
	
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;

	background-color: hsl(0, 0%, 100%);
}

.text p:nth-child(1) {
	font-size: 12px;
	letter-spacing: 5px;
	margin-top: 10px;
}

.text h1 {
	font-family: 'Fraunces', serif;
	color: hsl(212, 21%, 14%);
	margin: 10px 0 15px 0;
	line-height: 1;
}

.text p {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.7;
	color: hsl(228, 12%, 48%);
}

.price {
	display: flex;
	align-items: center;
	margin: 20px 0;
}

.price p {
	margin-left: 20px;
	text-decoration: line-through;
}

.price h1 {
	margin: 0;
	color: hsl(158, 36%, 37%);
}

.text button {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0 auto;

	background-color: hsl(158, 36%, 37%);
	border:  none;
	border-radius: 8px;

	cursor: pointer;
}

.text button:hover {
	background-color: hsl(158, 36%, 17%);
}

.text button i,
.text button p {
	color: hsl(0, 0%, 100%);
	display: inline-block;
	margin-left: 8px;
}


/* ATTRIBUTION
=========================================== */
.attribution {
	margin-top: 10px;

	font-size: 10px;
	text-align: center;
}

.attribution a {
	text-decoration: none;
	color: hsl(158, 36%, 37%);
}




/* MEDIA QUERY - MOBILE & DESKTOP HIGHT
ajust card to be scrollable at small viewport heights
=========================================== */
@media only screen and (max-height: 690px) {
	body {
		display: block;
	}

	.wrapper {
		margin-top: 25px;
		padding-bottom: 10px;
	}
}


/* MEDIA QUERY - MOBILE HIGHT
ajust background image position
=========================================== 
@media only screen and (max-height: 750px) {
	.photo {
		background-position: top;
	}
}*/


/* MEDIA QUERY - DESKTOP
=========================================== */
@media only screen and (min-width: 699px) {

	.wrapper {
		width: 650px;
		height: 450px;
		flex-direction: initial;
	}

	.photo {
		width: 55%;
		height: 100%;

		background-image: url('images/image-product-desktop.jpg');

		border-top-right-radius: 0;
		border-top-left-radius: 15px;
		border-bottom-left-radius: 15px;
	}

	.text {
		width: 40%;
		border-bottom-left-radius: 0;
		border-top-right-radius: 15px;
		border-bottom-right-radius: 15px;
	}

	.text p:nth-child(1) {
		margin-top: 20px;
	}

	.text h1 {
		margin: 15px 0 25px 0;
		padding-right: 5px;
	}

	.price h1 {
		margin: 10px 0;
		padding: 0;
	}

	.attribution {
		width: 2%;
		align-self: flex-end;
		padding-left: 5px;

		writing-mode: vertical-lr;
	}
}