/*
	Store catalogue
 */
#store .product {
	display: flex;
	flex-flow: column;
	/* height: 656px; */
	gap: 24px;
	position: relative;
}

#store .product .description {
	display: flex;
	flex-direction: column;
	height: 160px;
	justify-content: end;
	gap: 16px;
}

#store .product .photo {
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
	/* background-color: #F6F7FB; */
	/* height: 400px; */
}

#store .product .photo a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: auto;
}

#store .product .photo img {
	height: initial;
	max-height: initial;
	width: inherit;
	max-width: initial;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

#store .product a {
	display: block;
}

#store .product .title {
	color: #494D56;
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	height: 88px;
	max-height: 88px;
	text-overflow: ellipsis;
	overflow: hidden;
}

@media only screen and (min-width: 768px) {
	#store .product:hover .title {
		white-space: nowrap;
		height: 24px;
	}
}

#store .product .size {
	color: #898B91;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
}

#store .product .category-name {
	color: #494D56;
	font-family: 'Raleway', serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	overflow: hidden;
}

#store .product .price {
	color: #494D56;
	font-weight: 500;
	font-size: 24px;
	line-height: 32px;
	height: 32px;
}

#store .product .actions {
	/*display: flex;*/
	display: none;
	flex-flow: row nowrap;
	gap: 16px;
	justify-content: space-between;
	align-items: end;
}

#store .product .actions a {
	flex: 1 1 100%;
	padding: 12px;
}

@media only screen and (min-width: 768px) {
	#store .product:hover .actions {
		display: flex;
	}
}

@media only screen and (max-width: 1400px) {
	#store .product .actions a {
		font-size: 16px;
	}
}

@media only screen and (max-width: 1200px) {
	#store .product .actions {
		gap: 8px;
	}

	#store .product .actions a {
		font-size: 14px;
		padding: 8px;
	}
}

@media only screen and (max-width: 768px) {
	#store .product .actions a {
		font-size: 12px;
	}
}


/* Universal product styles */

.product-image-previews {
	display: flex;
	flex: 0 0 auto;
	gap: 16px;
	width: 100px;
}

.product-image-previews .active {
	border: 1px solid #494D56;
}

.product-image-previews a {
	display: flex !important;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;
}

.product-image-previews .item {
	background-clip: content-box;
}

.product-image-previews .item img {
	background-clip: content-box;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

/* Product page specific styles */

#product-card .product-image-previews {
	flex-flow: column;
}

#product-card .product-image-previews .item,
#product-card .product-image-previews .item img {
	height: auto;
	width: 100px;
}

@media only screen and (max-width: 768px) {
	#product-card .product-image-previews {
		flex-flow: row wrap;
	}

	#product-card .product-image-previews .item,
	#product-card .product-image-previews .item img {
		height: auto;
		width: 64px;
	}
}

/* Product catalogue specific styles */

#store .product .product-image-previews {
	display: flex;
	flex-flow: row wrap;
	visibility: hidden;
	opacity: 0;
	gap: 8px;
	width: 100%;
}

#store .product .product-image-previews .item,
#store .product .product-image-previews .item a {
	height: 50px;
	width: 50px;
}

#store .product .product-image-previews .item img {
	height: 48px;
	width: auto;
	max-width: 48px;
}

@media only screen and (min-width: 768px) {
	#store .product:hover .product-image-previews {
		visibility: visible;
		opacity: 1;
		transition: all 1200ms;
		-webkit-transition: all 1200ms;
		-moz-transition: all 1200ms;
		-o-transition: all 1200ms;
	}
}

/*
	Popular goods catalogue
 */
#store.featured .header,
#store.featured .header .actions {
	display: flex;
	flex-direction: row;
}

#store.featured .header {
	justify-content: space-between;
}

#store.featured .header .actions {
	flex-wrap: nowrap;
	gap: 24px;
}

#store.featured .header .actions a {
	display: block;
	line-height: 40px;
	height: 40px;
	width: 40px;
	text-align: center;
}

#store.featured .header .actions .disabled img {
	opacity: 0.2;
}

#store.featured .header .actions a:hover {
	background-color: #E9ECF5;
	border-radius: 8px;
	-webkit-transition: background-color 300ms ease;
	-moz-transition: background-color 300ms ease;
	-o-transition: background-color 300ms ease;
	transition: background-color 300ms ease;
}

#store.featured .header img {
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
}

.edit-link {
	display: block;
	position: absolute;
	left: 24px;
	top: 24px;
}

@media (max-width: 1023px) {
    #store .product .product-image-previews {
        display: none;
    }

    #store .product .actions {
        display: flex;
        flex-direction: column;
        align-items: normal;
        margin-top: auto;
    }
}

@media (max-width: 600px) {
    #store .product .description {
        height: unset;
    }

    #store .product .title {
        height: unset;
        max-height: unset;
        font-size: 14px;
        line-height: 18px;
    }
}
