/* index - main */ 

main.hbj-main,
main.ssj-main {
	max-width: 1500px;
	margin: 0 auto;
}

.hbj-main h3, .ssj-main h3 {
	width: 70%;
	float: left;
	font-size: 21px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    
    text-indent: 10px;
    font-weight: bold;
    font-family: 'Palanquin', sans-serif;
}

.hbj-main h3 span,
.ssj-main h3 span {
	font-size: 16px;
	color: #ce1b1b;
	padding-left: 15px;
}

.hbj-main h5,
.ssj-main h5 {
	width: 30%;
	float: right;
	text-align: right;
	padding-right: 20px;
	padding-top: 15px;
	font-weight: 500;
	margin: 0;
	font-size: 14px;
}

.hbj-main section:not(.slide-bg),
.ssj-main section:not(.slide-bg) {
}


/* slide - carousel */

.carousel-inner {
	height: 700px;
}

.carousel-item {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	transition: transform .4s ease-in-out,-webkit-transform .4s ease-in-out;
}

.carousel-item .carousel-caption {
	opacity: 0;
	transition: opacity 1s ease-in-out;
  	-moz-transition: opacity 1s ease-in-out;
  	-webkit-transition: opacity 1s ease-in-out;
}
.carousel-item.active .carousel-caption {
	opacity: 1;
	transition: opacity 1s ease-in-out;
  	-moz-transition: opacity 1s ease-in-out;
  	-webkit-transition: opacity 1s ease-in-out;
}

.carousel-caption {
	height: 300px;
	font-family: 'Open Sans', sans-serif;
	text-align: left;
	top: 0;
	padding: 0;
	z-index: 2;
	width: 80%;
}

.carousel-caption h2 {
	text-transform: uppercase;
	font-size: 60px;
	font-weight: 400;
}
.carousel-caption p {
	font-size: 30px;
	font-weight: 300;
	line-height: 26px;
}

.carousel-caption.right {
	top: 5%;
	width: 50%;
	left: 50%;
	transform: translate(0, -5%);
}
.carousel-caption.middle {
	text-align: center;
	top: 5%;
	left: 50%;
	transform: translate(-50%, -5%);
}
.carousel-caption.left {
	top: 5%;
	transform: translate(0, -5%);
}

.carousel-control-prev,
.carousel-control-next {
	top: 22%;
	width: 40px;
	height: 60px;
	transform: translateY(-50%);
    color: var(--color-darkgray);
    background-color: rgba(255,255,255,0.4);
    padding: 10px;
    opacity: 80%;
}

.carousel-control-prev {
    border-radius: 0px 5px 5px 0px;
}
.carousel-control-next {
    border-radius: 5px 0px 0px 5px;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    filter: brightness(20%);
}

.carousel-indicators {
	display: none;
	z-index: 4;
}


/* month item */

.month-item-cover {
	width: 100%;
    max-height: 400px;
	text-align: center;
    position: absolute;
    padding: 0 10px;
    bottom: 0;
    z-index: 3;
}

.month-item {
	width: 25%;
	height: 400px;
	padding: 0 10px;
	float: left;
	display: flex;
}

.month-item-detail {
	background-color: rgba(255,255,255,1.0);
	height: 100%;
	width: 100%;
}

.month-item-detail a {
	color: var(--color-hbjdark);
}

.month-item-detail img {
	width: 80%;
}

.month-item-detail h4 {
	margin: 15px auto 10px auto;
    font-size: 18px;
    font-weight: 500;
}

.month-item-detail p {
	text-align: left;
    margin: 0 10% 8px 10%;
    font-size: 14px;
}

.month-item-detail a.see-more {
    display: inline-block;
    width: 100%;
    margin: 0 10%;
    text-align: left;
    font-size: 12px;
    color: blue;
}
.month-item-detail a.see-more:hover {
	text-decoration: underline;
}



/* popular-categories */

.popular-cate-content {
	background-color: rgba(255,255,255,1.0);
	margin: 20px;
	padding: 10px;
}

.thumbnail-img {
	text-align: center;
	margin: 0px;
	padding: 10px;
	font-weight: 500;
	transition: width 0.5s ease;
}

.thumbnail-img img {
	width: 100%;
    height: 100%;
    object-fit: cover;
    border: solid 1px #eee;
}

.thumbnail-img.ph {
	opacity: 0;
	margin-top: -289px;
}
.thumbnail-img.mtu {
	margin-top: -289px;
}

.thumbnail-img figcaption {
	margin-top: -5px;
    height: 50px;
    padding-top: 10px;
    font-size: 16px;
    background-color: white;
    white-space: nowrap;
    overflow: hidden;
}

.thumbnail-img a:hover figcaption {
    color: var(--color-hbjdark);
}

.cate-item {
	position:relative;
	overflow:hidden;
}



/* New Arrival, Deal of the Month, Recommended Items */

.dotm-content, .new-arr-content, .recommended-content {
	background-color: rgba(255,255,255,1.0);
	margin: 20px;
	padding: 10px;
}

.thumb-images {
  	position:relative;
  	width: 100%;
}

.thumbs {
  	/*overflow-x: auto;*/
  	overflow-x: hidden;
  	white-space: nowrap;
  	width: 100%;
  	font-size: 0;
}

.thumb-images .product-img {
	width: 180px;
    margin: 0px;
    padding: 10px;
  	object-fit: cover;
  	display: inline-block;
    text-align: center;
}

.thumb-images .product-img figcaption {
	height: 44px;
	padding-top: 2%;
}

.thumb-images .product-img img {
	width: 100%;
}

.recommended .thumb-images .product-img img {
	border-radius: 15%;
}

.thumb-images .product-img h4 {
	margin: 10px auto;
	font-size: 14px;
	font-weight: 500;
}

.controls .arrow {
    position: absolute;
    top: 27%;
    padding: 10px;
    padding-bottom: 18px;
    color: var(--color-hbjdark);
    background-color: rgba(255, 255, 255, 0);
    font-size: 28pt;
    font-weight: bold;
}

.controls .arrow:active {
	background-color: var(--color-whitegray);
	cursor: pointer;
}

.controls .arrow.left {
  	content:'<';
    left: -10px;
    border-radius: 0px 5px 5px 0px;
}
.controls .arrow.right {
  	content:'>';
    right: -10px;
    border-radius: 5px 0px 0px 5px; 
}


/* deals */

.deals-content {	
	margin: 20px;
}

.deal-item {
	transition: width 0.5s ease;
}

.deal-item:first-child {
	padding-left: 0;
	padding-right: 15px;
}

.deal-item:nth-child(2) {
	padding-left: 5px;
	padding-right: 10px;
}

.deal-item:nth-child(3) {
	padding-left: 10px;
	padding-right: 5px;
}

.deal-item:last-child {
	padding-left: 15px;
	padding-right: 0;
}

.deal-detail {
	background-color: rgba(255,255,255,1.0);
	padding: 20px;
	position:relative;
	overflow:hidden;
}

.deal-detail img {
	width: 100%;
}

.deal-description {
    text-align: center;
}

.deal-description h4 {
    margin-top: 7%;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 700;
}
.deal-description p {
    margin-top: 0px;
    margin-bottom: 7%;
    font-size: 14px;
}



/* media queries */

@media (hover: hover) {
    .carousel-control-prev:hover,
	.carousel-control-next:hover {
		background-color: var(--color-whitegray);
	}

	.controls .arrow:hover {
		background-color: var(--color-whitegray);
		cursor: pointer;
	}
}

@media (hover: none) {
    .thumbs {
  		overflow-x: auto;
  	}
}


@media (max-width: 1500px) {
	.thumb-images .product-img {
		width: calc(100%/8);
	}
}

@media (max-width: 1327px) {
	.carousel-inner {
		height: 650px;
	}
	.month-item-cover, .month-item {
		height: 350px;
	}
}

@media (max-width: 1320px) {
	.thumb-images .product-img {
		width: calc(100%/7);
	}
}

@media (max-width: 1199.98px) {
	.carousel-caption {
		margin-left: -5%;
	}
	.carousel-caption.right {
		margin-right: -5%;
	}
	.carousel-caption.middle {
		margin-left: 0;
	}
	.carousel-caption.left {
		margin-left: -5%;
	}
}

@media (max-width: 1170px) {
	.deal-description h4 {
		font-size: 14px;
		font-weight: 500;
	}
	.deal-description p {
		font-size: 12px;
	}
}

@media (max-width: 1140px) {
	.thumb-images .product-img {
		width: calc(100%/6);
	}
}

@media (max-width: 1125px) {
	.carousel-inner {
		height: calc(700vw/11.25);
	}
	.carousel-caption {
		height: calc(300vw/11.25);
	}
	.month-item-cover {
		height: calc(400vw/11.25);
		overflow: hidden;
	}
	.month-item-cover .month-item:last-child {
		display: none;
	}
	.month-item {
		width: 33.333333%;
		height: calc(400vw/11.25);
	}
	.carousel-item {
		height: 100%;
	}
}

@media (max-width: 991.98px) {
	.carousel-caption {
		margin-left: -8%;
	}
	.carousel-caption h2 {
		font-size: 40px;
	}
	.carousel-caption p {
		font-size: 24px;
	}
	.carousel-caption.right {
		margin-right: -8%;
	}
	.carousel-caption.middle {
		margin-left: 0;
	}
	.carousel-caption.left {
		margin-left: -8%;
	}

	.deal-item:first-child, .deal-item:nth-child(2) {
		padding-bottom: 20px;
	}

	.deal-item:first-child, .deal-item:nth-child(3) {
		padding-left: 0;
		padding-right: 10px;
	}
	.deal-item:nth-child(2), .deal-item:last-child {
		padding-left: 10px;
		padding-right: 0;
	}
	.deal-description h4 {
		font-size: 18px;
		font-weight: 700;
	}
	.deal-description p {
		font-size: 14px;
	}
}

@media (max-width: 960px) {
	.thumb-images .product-img {
		width: calc(100%/5);
	}
}

@media (max-width: 780px) {
	.thumb-images .product-img {
		width: calc(100%/4);
	}
}

@media (max-width: 767.98px) {
	.carousel-caption h2 {
		font-size: 36px;
	}
	.carousel-caption p {
		font-size: 20px;
	}
}

@media (max-width: 750px) {
	.month-item-detail h4 {
		font-size: 14px;
	}
	.month-item-detail p {
		font-size: 10px;
	}
}

@media (max-width: 600px) {
	.thumb-images .product-img {
		width: calc(100%/3);
	}
}

@media (max-width: 575.98px) {
	.hbj-main h3, .ssj-main h3 {
		width: 100%;
	}
	.hbj-main h5, .ssj-main h5 {
		width: 100%;
		text-align: left;
		padding: 10px;
	}
	
	.month-item-cover {
		display: none;
	}
	.slide-bg .page-prev:after, 
	.slide-bg .page-next:after {
		top: 40%;
		font-size: 2em;
	}
	
	.carousel-inner {
		height: 700px;
	}
	.carousel-caption {
		height: 300px;
	}
	.carousel-caption.right {
		width: 70%;
		left: 30%;
	}
	.carousel-item {
		background-position: center top;
	}
	.carousel-control-prev,
	.carousel-control-next {
		display: none;
		top: 50%;
	}
	.carousel-caption h2 {
		font-size: 40px;
	}
	.carousel-caption p {
		font-size: 24px;
	}
	.carousel-control-prev, .carousel-control-next {
	    width: 24px;
	    padding: 5px;
	}

	.carousel-indicators {
		display: inline-flex;
		top: 310px;
	}

	.popular-cate {
		position: relative;
	    margin-top: -380px;
	    z-index: 2;
	}

	.deal-item:first-child, .deal-item:nth-child(2), .deal-item:nth-child(3), .deal-item:last-child {
		padding-left: 0;
		padding-right: 0;
	}

	.deal-item:not(:last-child) {
		padding-bottom: 0;
		border-bottom: solid 1px #eee;
	}
	
	.deal-image {
		width: 50%;
		float: left;
	}

	.deal-description {
		width: 50%;
	    text-align: left;
	    padding: 0 20px;
	    position: absolute;
	    top: 50%;
	    left: 50%;
	    transform: translate(0, -50%);
	}

	.deal-description h4 {
		margin-bottom: 10px;
	}
}

@media (max-width: 420px) {
	.thumb-images .product-img {
		width: calc(100%/2);
	}
}