/* cms-product-grid.css v1.0.5 */

/* ==========================================================================
   CMS Product Grid
   ========================================================================== */

.cms-product-grid {
	box-sizing: border-box;
	width: 100%;
	padding: 30px 0;
}

/* ==========================================================================
   Section header
   ========================================================================== */

.cms-product-grid__header {
	margin-bottom: 24px;
}

.cms-product-grid__heading {
	margin-top: 0;
	margin-bottom: 10px;
}

.cms-product-grid__heading--xl {
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 36px;
	font-weight: 400;
	color: #3e3e3d;
	line-height: 1.2;
}

.cms-product-grid__heading--large {
	font-family: 'Crimson Text', Georgia, serif;
	font-size: 28px;
	font-weight: 600;
	color: #3e3e3d;
	line-height: 1.25;
}

.cms-product-grid__heading--medium {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: #3e3e3d;
	line-height: 1.3;
}

.cms-product-grid__heading--small {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #3e3e3d;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cms-product-grid__heading a {
	color: inherit;
	text-decoration: none;
}

.cms-product-grid__heading a:hover {
	color: #d7b364;
}

.cms-product-grid__intro {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: #3e3e3d;
	line-height: 1.7;
}

.cms-product-grid__intro p {
	margin: 0 0 12px;
}

/* ==========================================================================
   Grid layout
   ========================================================================== */

.cms-product-grid__grid {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-left: -10px;
	margin-right: -10px;
}

.cms-product-grid--cols-3 .cms-product-grid__card {
	width: calc(33.333% - 20px);
	margin: 0 10px 20px;
}

.cms-product-grid--cols-4 .cms-product-grid__card {
	width: calc(25% - 20px);
	margin: 0 10px 20px;
}

/* ==========================================================================
   Card
   ========================================================================== */

.cms-product-grid__card {
	box-sizing: border-box;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	background-color: #ffffff;
}

.cms-product-grid__card--border-solid {
	border: 1px solid #dddddd;
}

.cms-product-grid__card--border-rounded {
	border: 1px solid #dddddd;
	border-radius: 6px;
	overflow: hidden;
}

/* Card image */
.cms-product-grid__card-image {
	width: 100%;
	background-color: #f5f5f5;
	overflow: hidden;
}

.cms-product-grid__card-image img {
	width: 100%;
	height: 240px;
	-o-object-fit: cover;
	object-fit: cover;
	display: block;
	-webkit-transition: opacity 0.2s ease;
	transition: opacity 0.2s ease;
}

.cms-product-grid__card-image-link:hover .cms-product-grid__card-image img {
	opacity: 0.88;
}

.cms-product-grid__card-image-placeholder {
	width: 100%;
	height: 240px;
	background-color: #eeeeee;
}

/* Card body */
.cms-product-grid__card-body {
	padding: 14px 14px 16px;
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

/* Card name */
.cms-product-grid__card-name {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #3e3e3d;
	margin: 0 0 8px;
	line-height: 1.4;
}

.cms-product-grid__card-name a {
	color: inherit;
	text-decoration: none;
}

.cms-product-grid__card-name a:hover {
	color: #d7b364;
}

/* Subtitle (link cards) */
.cms-product-grid__card-subtitle {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 13px;
	color: #666666;
	margin: 0 0 10px;
	line-height: 1.5;
}

/* Price */
.cms-product-grid__card-price {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #3e3e3d;
	margin-bottom: 12px;
}

/* CTA */
.cms-product-grid__card-cta {
	margin-top: auto;
	padding-top: 10px;
}

.cms-product-grid__button {
	display: inline-block;
	padding: 8px 18px;
	background-color: #d7b364;
	color: #ffffff;
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	-webkit-transition: background-color 0.2s ease;
	transition: background-color 0.2s ease;
}

.cms-product-grid__button:hover {
	background-color: #4a3728;
	color: #ffffff;
	text-decoration: none;
}

.cms-product-grid__button--link {
	background-color: transparent;
	color: #d7b364;
	padding: 0;
	font-size: 13px;
	border-bottom: 1px solid #d7b364;
}

.cms-product-grid__button--link:hover {
	background-color: transparent;
	color: #3e3e3d;
	border-color: #3e3e3d;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 979px) {
	.cms-product-grid--cols-4 .cms-product-grid__card {
		width: calc(50% - 20px);
	}
}

@media (max-width: 767px) {
	.cms-product-grid--cols-3 .cms-product-grid__card,
	.cms-product-grid--cols-4 .cms-product-grid__card {
		width: calc(50% - 20px);
	}

	.cms-product-grid__heading--xl {
		font-size: 26px;
	}

	.cms-product-grid__heading--large {
		font-size: 22px;
	}
}

@media (max-width: 479px) {
	.cms-product-grid--cols-3 .cms-product-grid__card,
	.cms-product-grid--cols-4 .cms-product-grid__card {
		width: calc(100% - 20px);
	}

	.cms-product-grid__card-image img,
	.cms-product-grid__card-image-placeholder {
		height: 200px;
	}
}
