/* Slider produktu v clancich blogu - shortcode [produkty ...], barvy dle thm2017 */
.blogproducts {
	margin: 20px 0 25px;
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	clear: both;
}
.blogproducts-heading {
	border-bottom: 1px solid #eee;
	margin-bottom: 15px;
}
.blogproducts-heading > span {
	display: inline-block;
	border-left: 2px solid #008000;
	padding: 0 1em;
	line-height: 32px;
	text-transform: uppercase;
	color: #4D4D4D;
}
.blogproducts-slider {
	position: relative;
}
.blogproducts-track {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px 2px 8px;
}
.blogproducts-track::-webkit-scrollbar {
	display: none;
}
.blogproducts-item {
	flex: 0 0 calc((100% - 45px) / 4);
	scroll-snap-align: start;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	border: 1px solid #eee;
	border-radius: 3px;
	background: #fff;
	padding: 10px;
	transition: border-color .2s, box-shadow .2s;
}
.blogproducts-item:hover {
	border-color: #ddd;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.blogproducts-image {
	display: block;
	text-align: center;
}
.blogproducts-image img {
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: top;
}
.blogproducts-name {
	margin: 10px 0 5px;
	height: 3em;
	overflow: hidden;
	line-height: 1.5em;
}
.blogproducts-name a {
	color: #666;
	text-decoration: none;
}
.blogproducts-item:hover .blogproducts-name a {
	color: #000;
}
.blogproducts-price {
	font-weight: bold;
	white-space: nowrap;
	margin-bottom: 5px;
	color: #333;
}
.blogproducts-price-old {
	font-weight: normal;
	color: #bbb;
	text-decoration: line-through;
	font-size: .85em;
}
.blogproducts-price-new {
	color: #008000;
}
.blogproducts-stock {
	font-size: 11px;
	color: #999;
	margin-bottom: 5px;
}
.blogproducts-cart {
	display: flex;
	gap: 5px;
	margin-top: auto;
	padding-top: 5px;
}
.blogproducts-cart button {
	height: 36px;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	font-family: inherit;
}
.blogproducts-add {
	flex: 1 1 auto;
	min-width: 0;
	background: #008000;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	padding: 0 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.blogproducts-add:hover {
	background: #006600;
}
.blogproducts-minus {
	display: none;
	flex: 0 0 36px;
	width: 36px;
	background: #eee;
	color: #4D4D4D;
	font-size: 20px;
	line-height: 36px;
	padding: 0;
}
.blogproducts-minus:hover {
	background: #ccc;
}
.blogproducts-incart {
	visibility: hidden;
	font-size: 11px;
	color: #008000;
	margin-top: 5px;
	line-height: 16px;
}
.blogproducts-item.is-in-cart .blogproducts-minus {
	display: block;
}
.blogproducts-item.is-in-cart .blogproducts-incart {
	visibility: visible;
}
.blogproducts-item.is-loading .blogproducts-cart button {
	opacity: .6;
	cursor: wait;
}
.blogproducts-arrow {
	position: absolute;
	top: 35%;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	color: #4D4D4D;
	font-size: 26px;
	line-height: 30px;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.blogproducts-arrow:hover {
	background: #008000;
	border-color: #008000;
	color: #fff;
}
.blogproducts-arrow[disabled] {
	display: none;
}
.blogproducts-prev {
	left: -12px;
}
.blogproducts-next {
	right: -12px;
}
@media (max-width: 900px) {
	.blogproducts-item {
		flex-basis: calc((100% - 30px) / 3);
	}
}
@media (max-width: 600px) {
	.blogproducts-item {
		flex-basis: calc((100% - 15px) / 1.6);
	}
	.blogproducts-prev {
		left: 0;
	}
	.blogproducts-next {
		right: 0;
	}
}
