.product-gallery {
	line-height: 18px !important;
	margin: 10px auto 0;
	max-width: 100%;
	position: relative;
	gap:8px
}

@media only screen and ( min-width: 561px ) {
  .product-gallery.product-gallery--ad-blocks{
    display: flex;
    flex-wrap: wrap;
  }
}

.product-gallery.not-shown-to-public:after {
	background: url( "../images/not-shown-on-site.png" ) top left repeat;
	background-color: #000;
	background-size: 250px 250px;
	bottom: 0;
	content: "";
	left: 0;
	opacity: 0.3;
	position: absolute;
	right: 0;
	top: 0;
}

.product-gallery.double {
	max-width: 100%;
	width: 1070px;
}

.product-gallery h2 {
	border-bottom: 1px solid #ccc;
	color: #444;
	font-size: 24px;
	line-height: 24px;
	margin: 0 25px 25px;
	padding-bottom: 4px;
	text-align: left;
}

.product-gallery.full {
	max-width: 900px;
}

.product-gallery .product-container {
	display: inline-block;
  margin: 0 6px 0 0;
  padding: 0;
	position: relative;
	text-align: left;
	vertical-align: top;
	width: 247px;
  min-width: 247px;
  min-height: 200px;
}

.ads-listing .product-gallery .product-container {
  width: 240px;
  min-width: 240px;
  margin-bottom: 10px;
}

.product-gallery .product-container.product-container--viewall {
  margin-right: 25px;
}

.product-gallery .product-container .product-box {
  width: 250px;
}

.product-gallery .product-container .product-box img {
	width:200px;
}

.product-gallery .product-container .product-box.product-box--view-all {
  height: 100%;
  width: 250px;
}

.product-gallery .product-container.no_prices {
	margin-bottom: 35px;
}

@media only screen and ( min-width: 561px ) {
	.product-gallery .product-container.horizontal_rule {
		border-top: 1px solid #eee;
		padding-top: 15px;
	}
	.product-gallery.single .product-container.horizontal_rule:nth-child(-n+2) {
		border-top: none;
		padding-top: 0;
	}
}

@media only screen and ( min-width: 821px ) {
	.product-gallery.single .product-container.horizontal_rule:nth-child(-n+3) {
		border-top: none;
		padding-top: 0;
	}
}

@media only screen and ( min-width: 1042px ) {
	.product-gallery.single .product-container.horizontal_rule:nth-child(-n+4) {
		border-top: none;
		padding-top: 0;
	}
}


@media only screen and ( min-width: 320px ) {
	.product-gallery.right-side-bar {
		/*text-align: center;*/
	}
	.entry.has_sidebar .product-gallery .product-container.horizontal_rule {
		border-top: 1px solid #eee;
		padding-top: 15px;
	}
	.entry.has_sidebar .product-gallery.single .product-container.horizontal_rule:nth-child(-n+1) {
		border-top: none;
		padding-top: 0;
	}
}


@media only screen and ( min-width: 762px ) {
	.entry.has_sidebar .product-gallery.single .product-container.horizontal_rule:nth-child(-n+2) {
		border-top: none;
		padding-top: 0;
	}
}

@media only screen and ( min-width: 1012px ) {
	.entry.has_sidebar .product-gallery.single .product-container.horizontal_rule:nth-child(-n+3) {
		border-top: none;
		padding-top: 0;
	}
}


.product-gallery p {
	margin: 0;
}

.product-gallery h3 {
	font-size: 18px;
	font-weight: bold;
	margin: 0 0 5px;
}

.product-gallery h3 a {
	/*color: #666;*/
	text-decoration: underline !important;
}

.product-gallery h3 a:hover {
	color: #c80000;
	text-decoration: underline !important;
}

.product-gallery .gallery-hr {
	border-top: 1px solid #ccc;
	height: 1px;
	margin: 0 0 25px;
}

.product-gallery.double .product-container {
	max-width: 49.5%;
}

.product-gallery.double .product-container:last-of-type {
	border-right: none;
}

.product-gallery.double .product-container.even {
	border-left: 1px solid #ccc;
	border-right: none;
	margin-left: -1px;
}

.product-gallery.full .product-container {
	display: block;
	overflow: hidden;
	width: 100%;
}

/* images */
.product-gallery .product-container .product-image-container {
	position: relative;
}

.product-gallery.double .product-container .product-image-container {
	float: left;
}

.product-gallery .product-container .product-image-container .product-image {
	position: relative;
  margin-bottom: 5px;
}

.product-gallery .product-container .product-image-container .product-image.no-image {
	border: 1px solid #ccc;
	border-radius: 10px;
	height: 198px;
	width: 198px;
}

.product-gallery .product-container .product-image-container .product-image.no-image:after {
	color: #ccc;
	content: "No Image Available";
	font-size: 17px;
	left: 0;
	padding-top: 85px;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
}

.product-gallery.full .product-container .product-image-container .product-image.no-image {
	min-height: 250px;
}

.product-gallery.full .product-container .product-image-container .product-image.no-image:after {
	font-size: 24px;
	line-height: 36px;
	padding: 100px 20px 0;
}

.product-gallery.full .product-container .product-image-container .product-image {
	float: right;
	max-width: 500px;
	width: 100%;
}

.product-gallery .product-container .product-image-container .product-image-overlay {
	background-color: #585858;
	bottom: 0;
	color: #fff;
	font-weight: bold;
	left: 0;
	padding: 5px 15px;
	position: absolute;
}

.product-gallery.full .product-container .product-image-container .product-image-overlay {
	font-size: 22px;
	padding: 8px 15px;
}

/* brands */
.product-gallery .product-container .brand-container {
	margin: 10px 0;
	min-height: 40px;
}

.product-gallery.full .product-container .brand-container {
	min-height: 0;
}

.product-gallery.double .product-container .brand-container {
	margin: 10px 0 0;
}

.product-gallery .product-container .brand-container div {
	display: inline-block;
	margin-right: 10px;
}

.product-gallery .product-container .brand-container img.brand_icon,
#shopping-list-multi-product-modal .brand-container img.brand_icon {
	height: 40px;
	width: auto;
}

/* price circle */

.red-circle {
	background-color: #c80000;
	border-radius: 30px;
	box-sizing: border-box;
	color: #fff;
	float: right;
	font-size:13px;
	height: 60px;
	line-height: 13px !important;
	margin: 10px 5px;
	padding-top: 14px;
	text-align: center;
	width: 60px;
}

.red-circle .price {
	font-size: 22px;
	font-weight: bold;
}

.red-circle .price .cents {
	font-size: 16px;
	font-weight: normal;
	vertical-align: top;
}

/* end price circle */

/* price lock */

div.red-circle.price-lock {
	position: relative;
	background-color: #fff;
	margin-right: 0;
	margin-top: 5px;
}

div.price-lock:after {
	background: url( '../images/price-lock.png' ) top left no-repeat;
    -webkit-background-size: 51px 60px;
       -moz-background-size: 51px 60px;
         -o-background-size: 51px 60px;
            background-size: 51px 60px;
	bottom: 0;
	content: "";
	height: 60px;
	position: absolute;
	right: 0;
	width: 51px;
}

/* end price lock */

/* add to list */

button.add-to-list-button {
	background-color: #505050;
	border-radius: 8px;
	clear: right;
	color: #fff;
	cursor: pointer;
	margin: 8px auto 0;
	padding: 5px 0;
	text-align: center;
	width: 120px;
}

div.product-gallery.full div.add-to-list-button {
	clear: none;
}

div.add-to-list-button:hover {
	background-color: #a00000;
}

.product-description-container p.notice {
  color: #c80000;
  font-style: italic;
	font-weight: bold;
	margin: 8px auto 0;
	padding: 5px 0;
	text-align: center;
	width: 120px;
}

/* end add to list */

/* product details button */
div.product-details-button {
	background-color: #505050;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	float: right;
	padding: 5px 0;
	text-align: center;
	width: 120px;
}

div.product-details-button:hover {
	background-color: #a00000;
}

/* end product details button */

/* admin blocks */

div.product-gallery .product-container .dashicons-before {
	height: 20px;
	left: 44px;
	overflow: hidden;
	position: absolute;
	top: 0;
	width: 19px;
	z-index: 1;
}

div.product-gallery .product-container.horizontal_rule .dashicons-before {
	top: 15px;
}

div.product-gallery .product-container .dashicons-before:first-of-type {
	left:25px;
}

div.product-gallery .product-container .dashicons-before:before {
	background: #ccc;
	color: #111;
	display: block;
	font-size: 16px;
	height: 20px;
	opacity: .75;
	padding: 2px;
	position: absolute;
	text-align: center;
	width: 19px;
}

div.product-gallery .product-container .dashicons-before:hover {
	width: auto;
	height: auto;
}

div.product-gallery .product-container .dashicons-before .block-content {
	background: #fff;
	border: 1px solid #ccc;
	margin-top: 20px;
	padding: 10px;
}

div.product-gallery .product-container .dashicons-before:hover:before {
	opacity: 1;
}

div.product-gallery.full .product-container .dashicons-before {
	left: auto;
	right: 44px;
}

div.product-gallery.full .product-container .dashicons-before:first-of-type {
	right: 25px;
}

div.product-gallery.full .product-container .dashicons-before:before {
	right: 0;
}

/* end admin blocks */

/* right sidebar present */
.product-gallery.right-side-bar.double .product-container {
	width: 405px;
}

.product-gallery.right-side-bar.double .product-container .product-image-container img {
	max-width: 150px;
}

.product-gallery.right-side-bar.double .product-container .product-description-container {
	margin-left: 170px;
}

.product-gallery.right-side-bar .product-container .product-image-container .product-image-overlay {
	font-size: 12px;
}

.product-gallery.right-side-bar .product-container .product-description-container .product-gallery-price-container .product-gallery-price {
	font-size: 36px;
	line-height: 36px;
}

.product-gallery.right-side-bar .product-container .product-description-container .product-gallery-price-container .product-gallery-price .dollar-sign,
.product-gallery.right-side-bar .product-container .product-description-container .product-gallery-price-container .product-gallery-price .cents {
	font-size: 24px;
	line-height: 28px;
}

.product-gallery.right-side-bar.full {
	max-width: 100%;
}
.product-gallery.right-side-bar.full .product-container .product-image-container .product-image {
	max-width: 400px;
}
.product-gallery.right-side-bar.full .product-container .product-description-container {
	margin-right: 420px;
}
@media only screen and ( max-width: 1130px ) {
	.product-gallery.right-side-bar.double {
		margin: 25px auto 0;
		width: 690px;
	}
	.product-gallery.right-side-bar.double .product-container {
		width: 340px;
	}
	.product-gallery.double .product-container .product-image-container {
		margin-right: 20px;
	}
	.product-gallery.right-side-bar.double .product-container .product-description-container {
		margin-left: 0;
	}
	.product-gallery.right-side-bar.double .product-container .product-description-container .product-gallery-reorder-number {
		clear: both;
	}
}

@media only screen and ( max-width: 1000px ) {
	.product-gallery {
		max-width: 750px;
	}
	.product-gallery.right-side-bar {
		max-width: 100%;
	}
	/* double size */
	.product-gallery.double {
		text-align: center;
	}

	.product-gallery.double h2 {
		width: 420px;
		margin: 0 auto 25px;
		max-width: 100%;
	}

	.product-gallery.double .product-container,
	.product-gallery.double .product-container.even {
		border: none;
		border-bottom: 1px solid #ccc;
		margin-left: 0;
		max-width: 100%;
		padding-bottom: 25px;
	}

	.product-gallery.double .product-container:last-of-type {
		border-bottom: none;
	}

	.product-gallery.double .gallery-hr {
		display: none;
	}
	/* end double size */

	.product-gallery.full {
		width: 100%;
	}
	.product-gallery.right-side-bar.double .product-container {
		max-width: 100%;
		width: 470px;
	}
	.product-gallery.right-side-bar.double .product-container .product-description-container {
		margin-left: 170px;
	}
	.product-gallery.right-side-bar.double .product-container .product-description-container .product-gallery-reorder-number {
		clear: none;
	}
	.product-gallery.right-side-bar.full .product-container .product-image-container .product-image {
		max-width: 300px;
	}
	.product-gallery.right-side-bar.full .product-container .product-description-container {
		margin-right: 320px;
	}
}

@media only screen and ( max-width: 900px ) {
	.product-gallery.right-side-bar.full img {
		height: auto;
		max-width: 100%;
	}

	.product-gallery.right-side-bar.full .product-container .product-image-container .product-image {
		float: none;
		max-width: 500px;
	}

	.product-gallery.right-side-bar.full .product-container .product-description-container {
		margin-right: 0;
	}
}

@media only screen and ( max-width: 860px ) {
	.product-gallery.full {
		max-width: 500px;
	}

	.product-gallery.full img {
		height: auto;
		max-width: 100%;
	}

	.product-gallery.full .product-container .product-image-container .product-image {
		float: none;
	}

	.product-gallery.full .product-container .product-description-container {
		margin-right: 0;
	}
}

@media only screen and ( max-width: 820px ) {
	.product-gallery {
		max-width: 500px;
	}
}

@media only screen and ( max-width: 814px ) {
	.product-gallery.right-side-bar {
		text-align: center;
	}

}

@media only screen and ( max-width: 700px ) {
	.product-gallery.right-side-bar {
		text-align: left;
	}
	.product-gallery.right-side-bar.double {
		text-align: center;
	}
	.product-gallery.right-side-bar .product-container {
		border-bottom: none;
		padding-bottom: 0;
	}
	.product-gallery.right-side-bar.double .product-container {
		border-bottom: 1px solid #ccc;
		padding-bottom: 25px;
	}
}
@media only screen and ( max-width: 560px ) {

	.product-gallery,
	.product-gallery.right-side-bar {
		max-width: 100%;
		text-align: center;
	}

	.product-gallery .product-container,
	.product-gallery.right-side-bar .product-container {
		border-bottom: 1px solid #ccc;
		padding-bottom: 25px;
	}

	.product-gallery .product-container:last-of-type {
		border-bottom: none;
	}

	.product-gallery .product-container .brand-container {
		min-height: 0;
	}

	.product-gallery.single.nowrap .product-container .brand-container {
		min-height: 40px;
	}

	.product-gallery.full .product-container {
		border-bottom: none;
		padding-bottom: 0;
	}

	.product-gallery.double .product-container {
		width: 250px;
	}

	.product-gallery.double .product-container .product-image-container {
		float: none;
	}

	.product-gallery.double .product-container .brand-container {
		margin: 10px 0;
	}

	.product-gallery.double .product-container .product-description-container,
	.product-gallery.right-side-bar.double .product-container .product-description-container {
		margin-left: 0;
	}
	.product-gallery.right-side-bar.double .product-container .product-image-container img {
		max-width: 200px;
	}
	.product-gallery.right-side-bar.double .product-container {
		width: 252px;
	}
}

@media only screen and ( max-width: 460px ) {
	.product-gallery.full .product-container .product-image-container .product-image.no-image {
		min-height: 200px;
	}

	.product-gallery.full .product-container .product-image-container .product-image.no-image:after {
		font-size: 18px;
		padding-top: 75px;
	}

	.product-gallery.full .product-container .product-image-container .product-image-overlay {
		font-size: 14px;
		padding: 5px 15px;
	}

	.product-gallery.full .product-container .product-description-container .product-gallery-price-container .product-gallery-price {
		font-size: 48px;
		line-height: 48px;
	}

	.product-gallery.full .product-container .product-description-container .product-gallery-price-container .product-gallery-price .dollar-sign,
	.product-gallery.full .product-container .product-description-container .product-gallery-price-container .product-gallery-price .cents {
		font-size: 30px;
		line-height: 36px;
	}
}

.product-gallery.single.nowrap {
	max-width: 100% !important;
	white-space: nowrap;
	width: 100% !important;
}

.product-gallery.single.nowrap .nowrap-gallery-container {
	overflow-x: scroll;
	padding: 0 25px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-right: 0;
}
.product-gallery.single.nowrap .product-container,
.product-gallery.single.nowrap .product-container.no_prices {
	margin-bottom: 10px;
}

.product-gallery.single.nowrap .nowrap-gallery-container::-webkit-scrollbar {
	height: 10px;
}

.product-gallery.single.nowrap .nowrap-gallery-container::-webkit-scrollbar-track { /* scroll line */
  -webkit-box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
}

.product-gallery.single.nowrap .nowrap-gallery-container::-webkit-scrollbar-thumb { /* scroll element */
  -webkit-box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
}

.product-gallery.single.nowrap .product-container {
	border: none !important;
	white-space: normal;
}

.product-gallery.single.nowrap .product-search-carousel__products .product-container:last-of-type {
	padding-right: 10px;
}

.product-gallery.single.nowrap .nowrap-nav {
	bottom: 0;
	position: absolute;
	top: 0;
	width: 50px;
}

.product-gallery.single.nowrap .nowrap-nav:hover {
	cursor: pointer;
}

.product-gallery.single.nowrap .nowrap-nav.left {
	background: linear-gradient( to left, rgba( 255, 255, 255, 0.05 ), rgba( 204, 204, 204, 0.7 ) );
	left: 0;
}

.product-gallery.single.nowrap .nowrap-nav.right {
	background: linear-gradient( to right, rgba( 255, 255, 255, 0.05 ), rgba( 204, 204, 204, 0.7 ) );
	right: 0;
	text-align: right;
}

.product-gallery.single.nowrap .nowrap-nav:before {
	content: "\f053";
	display: block;
	font: normal normal bold 24px/1 FontAwesome;
	margin-left: 8px;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
}

.product-gallery.single.nowrap .nowrap-nav.right:before {
	content: "\f054";
	margin-left: 0;
	margin-right: 8px;
	text-align: right;
}

.product-gallery.single.nowrap .nowrap-nav.left:hover {
	background: linear-gradient( to left, rgba( 255, 255, 255, 0.05 ), rgba( 51, 51, 51, 0.7 ) );
}

.product-gallery.single.nowrap .nowrap-nav.right:hover {
	background: linear-gradient( to right, rgba( 255, 255, 255, 0.05 ), rgba( 51, 51, 51, 0.7 ) );
}

.product-gallery.single.nowrap .nowrap-nav:hover:before {
	color: #fff;
}

.product-gallery.single.nowrap .nowrap-nav.disabled {
	color: #ccc;
}

.product-gallery.single.nowrap .nowrap-nav.left.disabled:hover {
	background: linear-gradient( to left, rgba( 255, 255, 255, 0.05 ), rgba( 204, 204, 204, 0.7 ) );
	cursor: default;
}

.product-gallery.single.nowrap .nowrap-nav.right.disabled:hover {
	background: linear-gradient( to right, rgba( 255, 255, 255, 0.05 ), rgba( 204, 204, 204, 0.7 ) );
	cursor: default;
}

.product-gallery.single.nowrap .nowrap-nav.disabled:hover:before {
	color: #ccc;
}

.product-gallery .product-box {
  margin: 0;
  height: 100%;
  width: 200px;
  background-color: #FFFFFF;
}