html {
	scroll-behavior:smooth;
}

a:active, a:focus, a:hover {
	outline:none;
}

.uline {
	text-align:center;
}

.uline::after {
	content:"";
	width:80px;
	display:block;
	margin:.25em auto 0;
	border-bottom-width:2px;
	border-bottom-style:solid;
}

hr.divider {
	border:0;
	background:transparent;
	opacity:1;
}

hr.divider::after {
	content:"";
	text-align:center;
	display:block;
	height:1px;
}

/* Breadcrumb */

.breadcrumb-item a {
	text-decoration:none;
}

/* Form */

.form-group {
	margin-top:.75em;
	margin-bottom:.75em;
}

.required label::after {
	content:' *';
	font-size:.8em;
	color:#c00;
}

/* Home */

#home-hero {
	background-size:cover;
}

/* Megamenu */

.navbar .has-megamenu{
	position:static !important;
}
.navbar .megamenu{
	left:0;
	right:0;
	width:100%;
	margin-top:0;
}
.navbar .megamenu .main-item {
	margin-bottom:.25em;
}
.navbar .megamenu a {
	text-decoration:none;
}

/* Product list */

.product-list-view .sorter-container {
	text-align:right;
	margin-bottom:5px;
}

.product-list-view .sorter {
	display:inline;
	margin:0;
	padding:0;
}

.product-list-view .sorter li {
	display:inline;
	margin:0 5px;
}

.product-list-view .sorter a.asc,
.product-list-view .sorter a.desc {
	font-weight:bold;
}

.product-list-view .sorter a.asc::after {
	content: " ↑";
}

.product-list-view .sorter a.desc::after {
	content: " ↓";
}

/* Product card */

.product-card {
	text-align:center;
	position:relative;
}

.product-card.out-of-stock .product-image,
.product-card.out-of-stock .product-name,
.product-card.out-of-stock .product-price {
	opacity:0.25;
}

.product-card.out-of-stock .label {
	position:absolute;
	z-index:1;
	text-align: center;
	width:100%;
	background:rgba(255, 255, 255, .5);
	padding:5px;
}

.product-card .product-image,
.product-card .product-image picture {
	overflow:hidden;
}

.product-card .product-image picture {
	transition:opacity .3s ease-in-out;
}

.product-card .product-image picture:last-child {
	position:absolute;
	top:0;
	left:0
}

.product-card .product-image picture:first-child,
.product-card .product-image:hover picture:last-child {
	opacity:100;
}

.product-card .product-image picture:last-child,
.product-card .product-image:hover picture:first-child {
	opacity:0;
}

.product-card .product-image .ribbon {
	width:150px;
	height:150px;
	overflow:hidden;
	position:absolute;
	z-index:1;
	top:-10px;
	left:-10px;
}

.product-card .product-image .ribbon::before,
.product-card .product-image .ribbon::after {
	position:absolute;
	z-index:-1;
	content:'';
	display:block;
	border-width:5px;
	border-style:solid;
}
.product-card .product-image .ribbon::before {
	top:0;
	right:0;
}
.product-card .product-image .ribbon::after {
	bottom: 0;
	left: 0;
}
.product-card .product-image .ribbon span {
	position:absolute;
	display:block;
	width:225px;
	padding:12px 0;
	box-shadow:0 5px 10px rgba(0,0,0,.1);
	color:#fff;
	font-size:16px;
	text-shadow:0 1px 1px rgba(0,0,0,.2);
	text-align:center;
	right:-25px;
	top:30px;
	transform:rotate(-45deg);
}

.product-card .product-name > a {
	text-decoration:none;
	font-weight:bold;
	color:inherit;
}

.product-card .product-price {
	font-size:.8em;
}

.product-card .product-price .discount-price {
	color:#a00;
	background:#ff8;
	font-weight:bold;
	border:1px dashed #a00;
}

/* Product page */

.product-description {
	font-size:1.2em;
	color:#444;
	line-height:2em;
}

.rating {
	font-size:.8em;
}

.rating .fa-star {
	color:#ffc107;
}

/* Magazine page */
.magazine .article-title {
	border-left-width: 3px;
	border-left-style: solid;
	padding:5px 10px;
}

.magazine h1.article-title {
	font-size:2em;
}

.magazine h2.article-title {
	font-size:2em;
}

.magazine h3.article-title {
	font-size:1.5em;
}

.magazine h4.article-title {
	font-size:1.25em;
}

.magazine h5.article-title {
	font-size:1em;
}

.magazine .article-title a {
	color:inherit;
	text-decoration:none;
}

/* Article list page */

.article-list-item a {
	text-decoration:none;
}

.article-list-item > .article-lead {
	font-size:1.2em;
}

/* Article page */

.article-body {
	color:#444;
	line-height:1.75em;
}

/* Products carousel */

.products-carousel {
	border:1px solid rgba(0, 0, 0, .1);
	box-shadow:0 5px 20px rgba(0, 0, 0, .1);
	text-align:center;
}

.products-carousel .img-container {
	display:inline-block;
	height:200px;
}

.products-carousel .img-container img {
	max-height:100%;
}

.products-carousel .product-price {
	font-weight:bold;
}

.products-carousel .product-name {
	font-size:1em;
}

/* Checkout page */

.termsbox {
	height:13em;
	border:1px solid #aaa;
	padding:1em;
	overflow-y:scroll;
}

/* Shipping */

.shipping-card {
	flex: 1 1 0px;
}

.shipping-card-header {
	padding: var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);
	background-color: var(--bs-card-cap-bg);
	border-bottom: var(--bs-card-border-width) solid var(--bs-card-border-color);
}

.shipping-card-footer {
	padding: var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);
	color: var(--bs-card-cap-color);
	background-color: var(--bs-card-cap-bg);
	border-top: var(--bs-card-border-width) solid var(--bs-card-border-color);
}

/* Others */

.selected-shipping {
	border: 2px dashed #bf8221;
	background: #fff7ea;
}

#cookieConsentBar {
	position:fixed;
	z-index:9999;
	bottom:10px;
	left:10px;
	width:95%;
	max-width:500px;
	background:rgba(255, 220, 0, .95);
	padding:1em;
	box-shadow:0 0 10px rgba(0, 0, 0, .3);
}

/* Breakpoint dependent rules */

.product-card .product-image,
.product-card .product-image picture {
	max-height:382px;
}

/* sm */
@media (min-width: 576px) {
}

/* md */
@media (min-width: 768px) {
	.product-card .product-image,
	.product-card .product-image picture {
		height:185px;
	}
	.shipping-card-header {
		border-bottom:0;
		border-right: var(--bs-card-border-width) solid var(--bs-card-border-color);
	}
	.shipping-card-footer {
		border-top:0;
		border-left: var(--bs-card-border-width) solid var(--bs-card-border-color);
	}
}

/* lg */
@media (min-width: 992px) {
	.product-card .product-image,
	.product-card .product-image picture {
		height:140px;
	}
}

/* xl */
@media (min-width: 1200px) {
	.product-card .product-image,
	.product-card .product-image picture {
		height:160px;
	}
}

/* xxl */
@media (min-width: 1400px) {
	.product-card .product-image,
	.product-card .product-image picture {
		height:200px;
	}
}
