h1, h2, h3 {
	//margin: 1em 0 .5em;
	text-transform: none;
	text-rendering: optimizeLegibility;
	font-style: normal;
}

h1 {
	font-size: 26px;
	font-weight: $font-semibold;
}

h2 {
	font-size: 24px;
	font-weight: $font-normal;
}

h3 {
	font-size: 22px;
	font-weight: $font-normal;
}

h4 {
	font-size: 17px;
	font-weight: 600;
	color: $font-color-base;
}

h1
,h2
,h3
,h4
,h5 {
	line-height: normal;
	margin-top: 0;
}

a {
	-webkit-transition-duration: 0.3s;
	transition-duration: 0.3s;
}


a { 
	text-decoration: underline;
}

a, a:hover, a:active, a:focus {
	color: $link-base-color;
	text-decoration: none;
}

a:hover { 
	text-decoration: underline;
	color: $link-base-hover-color;
}

.fp-core {
	font-family: "Roboto",sans-serif !important;
	
	a {
		text-decoration: none;
	}
}

strong {
	font-weight: 600;
}

img {
    height: auto;
    max-width: 100%;
}

.text-align-right {
	text-align: right;
}

.fp-tag-ad {
	color: $color-black;
}

.fp-btn-tertiary {
	background: $bg-tertiary !important;
	color: $color-white !important;

	&:hover {
		background: $bg-tertiary-hover !important;
		color: $color-white !important;
	}
}

a.fp-social-login {
	background: $color-white;
	text-decoration: none;
}

ul.left-links {
	padding: 0;

	li {
		list-style-type: none;
		padding: 0;
		margin: 0;
		padding-bottom: $padding-vert-sm;
	}
}

.in-app {
	#branch-banner-iframe {
		display: none !important;
	}
}

.page-template-default [role="main"],
.page-template [role="main"],
.category [role="main"],
.single [role="main"] {
	@media (min-width: $screen-md-min) {
		padding-top: 140px;
	}
}

.gray-background {
	margin: 0;
	background: #F7F7F7;
	padding: $padding-vert 0;

	h2,
	p {
		margin: 0;
	}

	figure {
		margin: 0 10px;
	}

	+ .gray-background {
		padding-top: $padding-vert-sm;
	}
}

.fp-item-action:not(.fp-is-item-in-list) .fp-btn-increment {
	background: $color-white;

	&:hover {
		background: $color-white;

		&:after {
			color: $color-primary-dark;
			border: 1px solid $color-primary-dark;
		}
	}

	&:after {
		content: 'Add to Cart';
		font-weight: normal;
		border: 1px solid $color-secondary;
		padding: 7px $padding-vert-sm;
		border-radius: $border-radius;
		top: 2px;
	}
}

/* Hide the + Add to Cart button only in certain places but not the product grid */
.fp-product-carousel.fp-layout-5 .fp-item-action:not(.fp-is-item-in-list) .fp-btn-increment:after,
.fp-product-carousel.fp-layout-6 .fp-item-action:not(.fp-is-item-in-list) .fp-btn-increment:after {
	display: none;
}

.fp-recipe-ingredient-list .fp-recipe-ingredient-list-item .fp-item-action:not(.fp-is-item-in-list) .fp-btn-increment:after {
	white-space: nowrap;
}

.fp-item-action-lg:not(.fp-is-item-in-list),
.fp-item-action-lg:not(.fp-is-item-in-list) .fp-btn-increment:after {
	background:$color-white;
	color: $font-color-base;
	padding: 0;
	top: 0;

	&:hover {
		background: $color-white;
		background-color: $color-white;
		color: $color-primary-dark;
	}
}

.fp-item-action-lg:not(.fp-is-item-in-list) .fp-btn-increment:hover:after {
	background: $color-white;
	background-color: $color-white;
	color: $color-primary-dark;
}

.fp-modal-container {
	.fp-item-action:not(.fp-is-item-in-list) .fp-btn-increment {
		&:after {
			font-size: 12px;
			padding-left: 5px;
			padding-right: 5px;
		}
	}

	.fp-item-action-lg:not(.fp-is-item-in-list) .fp-btn-increment {
		&:after {
			font-size: $font-size-base;
		}
	}
}

.fp-recipe-ingredient-list .fp-recipe-ingredient-list-item:not(:last-child) {
	margin-bottom: $margin-vert-sm;
}

.fp-product-carousel {
	.fp-product-carousel-header {
		text-align: center;
	}

	.fp-btn-view-all {
		display: inline-block;
		color: #797979 !important;

		&:hover {
			text-decoration: underline;
		}
	}
	
	@media (max-width: $screen-sm-max) {
		.fp-product-list {
			background: $color-white;
			padding: 5px;
		}

		.fp-dropdown-qty-wrap {
			margin-top: -10px;
		}
	}
}

/* 
 * Main column width
 * This changes it from the default 580px to 720px
 */
.wp-block {
    max-width: 980px;
}

/* 
 * Width of "wide" blocks
 * This changes it from the default 1080px to 1280px
 */
.wp-block[data-align="wide"] {
    max-width: 1280px;
}

/* IGA CONTENT PAGE ROW OVERIDES
/* Make Images fit in Div box to row */
.img-fit div {
	display: flex !important;
} 

/*Apply to DIV Column in WP*/
.img-fit img {
	height: 100%; 
	width: 100%; 
	object-fit: cover; 
	object-position:50% 50%;
}

@supports ( object-fit: cover ) {
	.img-fit img {
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		object-fit: cover;
		transform: none;
	}
}

.fp-core {
	label {
		span.fp-label-input-right {
			font-weight: 400;
		}
	}

	.fp-result-title {
		.fp-categories-action {
			font-weight: 700;
		}
	}
}

.page-template-page-blog {
	@media (min-width: 992px) {
		.push {
			height: 300px !important;
		}
	}
}

[role="main"] {
	-webkit-transition: padding-top 1.0s ease-out;
	-o-transition: padding-top 1.0s ease-out;
	transition: padding-top 1.0s ease-out;
}

/*MOBILE HEADER CART*/
/*DETAIL MOBILE MENU*/
@media (max-width: 998px) {
	section[role="main"] {
		padding-top: 70px;
	}
	.page-template-default {
		[role="main"] {
			padding-top: 70px;
		}
		#header.shrink {
			~ {
				[role="main"] {
					padding-top: 70px;
				}
			}
		}
	}
	.page-template {
		[role="main"] {
			padding-top: 70px;
		}
		#header.shrink {
			~ {
				[role="main"] {
					padding-top: 70px;
				}
			}
		}
	}
	.category {
		[role="main"] {
			padding-top: 70px;
		}
		#header.shrink {
			~ {
				[role="main"] {
					padding-top: 70px;
				}
			}
		}
	}
	.single {
		[role="main"] {
			padding-top: 70px;
		}
		#header.shrink {
			~ {
				[role="main"] {
					padding-top: 70px;
				}
			}
		}
	}
	#header {
		.navbar-toggle {
			padding: 15px 30px 5px;
		}
		.mobile-header-wrapper {
			.fp-mini-list-indicator {
				.fp-btn-indicator {
					width: 100%;
				}
			}
			.mobile-header-right {
				padding: 0 0 0 15px;
			}
		}
	}
	.mobile-nav-logo {
		a {
			img {
				width: auto;
				height: 60px;
			}
		}
	}
	.sf-menu.main-menu {
		>li.current-menu-item {
			>a {
				color: #FFFFFF;
				font-weight: bold;
			}
		}
		>li.current-page-parent {
			>a {
				color: #FFFFFF;
				font-weight: bold;
			}
		}
		>li.current-page-ancestor {
			>a {
				color: #FFFFFF;
				font-weight: bold;
			}
		}
	}
	footer {
		.footer-menu-col {
			display: block;
			text-align: center;
		}
		.footer-logo {
			img {
				width: 50%;
			}
			width: 100%;
			display: block;
			align-items: center;
			padding: 0 15px 15px 15px;
		}
	}
	.menu-footer-menu-col-2-container {
		li {
			display: block;
			text-align: center;
		}
	}
	ul.social-links {
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
	body.mobile-menu-active {
		.page-wrap {
			>#header {
				display: block !important;
				padding-top: 35px;
			}
			>#mobile-nav-wrapper {
				display: block !important;
				padding-top: 35px;
			}
		}
	}
}

// .fp-product-list-lg {
// 	.fp-item-detail {
// 		.fp-item-name {
// 			> {
// 				&:first-child {
// 					letter-spacing: -0.5px;
// 				}
// 			}
// 		}
// 	}
// }
// .fp-recipe-list-lg {
// 	.fp-item-detail {
// 		.fp-item-name {
// 			> {
// 				&:first-child {
// 					letter-spacing: -0.5px;
// 				}
// 			}
// 		}
// 	}
// }

.fp-item-container {
	text-align: center !important;
	.fp-item-price {
		text-align: center !important;
	}
	.fp-item-sale {
		text-align: center !important;
	}
}

.fp-item-base-price {
	font-weight: 900 !important;
}
.fp-is-item-detail-sale {
	.fp-item-sale {
		font-weight: 900 !important;
	}
}

.fp-item-detail {
	.fp-item-sale {
		.fp-item-sale-date {
			font-size: 12px !important;
			font-weight: normal !important;

			strong {
				font-size: 16px !important;
				display: inline !important;
				font-weight: 900 !important;

				&:after {
					content: "\A";
					white-space: pre;
				}
			}
		}
	}
}

@media only screen and (max-width: 767px) {
	.fp-product-list {
		.fp-item-header+.fp-item-content {
			.fp-item-action {
				margin-top: 5px;
				margin-bottom: 10px;
			}
		}
	}
	.fp-recipe-list {
		.fp-item-header+.fp-item-content {
			.fp-item-action {
				margin-top: 5px;
				margin-bottom: 10px;
			}
		}
	}
	.fp-module+.fp-module.hidden+.fp-module {
		margin-top: 0px;
	}
	.fp-module+.fp-module.hidden+.fp-module.hidden+.fp-module {
		margin-top: 0px;
	}
	.fp-module+.fp-module.hidden+.fp-module.hidden+.fp-module.hidden+.fp-module {
		margin-top: 0px;
	}
	.fp-module {
		&:not(.hidden)+.fp-module {
			margin-top: 0px;
		}
	}
}

.fp-layout-6 {
	.fp-product-carousel-header {
		height: 50px;
	}
}

.fp-shelf-tag-link-ebt_snap_eligible,
.fp-shelf-tag-link-ebt_cash_eligible {
	display: inline !important;

	.fp-shelf-tag {
		background-color: transparent !important;
		width: 26px;
		height: 26px;
		border-radius: 0;
		padding: 0;

		@media (min-width: $screen-sm-min) {
			width: 37px;
			height: 37px;
		}
	}
}

.fp-shelf-tag-link-ebt_snap_eligible .fp-shelf-tag {
	content: url("../../images/shelf-tags/ebt_snap.png");
}

.fp-shelf-tag-link-ebt_cash_eligible .fp-shelf-tag {
	content: url("../../images/shelf-tags/ebt_cash.png");
}