/*========================
 MODAL - markup in app.blade
=========================*/

.modal-content {
	border-radius: 0 !important;
	background-color: #0A253E !important;
}

.modal-header, .modal-footer {
	border:0 !important;
}

.modal-header .size-button {
	padding-top: 30px;
}

.border-white {
	border-bottom:1px solid #fff;
	margin-top: -30px;
}

.modal-header .size-btn {
	background-color: #E64360;
	border:1px solid #fff;
	padding: 15px 60px;
	font-size: 20px;
}

.modal-bed-img img {
	width:750px;
	margin-right:auto;
	margin-left:auto;
}

.circle-opt {
	background-color:#0A253E;
	width:20px;
	height:20px;
	border-radius: 50%;
	border:2px solid #fff; 
	margin: 10px;
	margin-left:auto;
	margin-right:auto;
}

.circle-opt:hover {
	background-color:#E64360;
}

.modal-padding {
	padding: 0 103px 70px 41px !important;
}

/*========================
        END OF MODAL
=========================*/

.shop-box-container{
	margin-bottom: -100px;
}

.shop-box {
	background-color: #E6E7E8;
	width:90%;
	height:510px;
	margin-right:auto;
	margin-left:auto;
	margin-top:80px;
	position: relative;
}

.shop-img-box {
	position: relative;
	background-color: #fff;
	height:510px;
}

.shop-img-box img {
	max-width: 100%;
	max-height: 100%;
}

.shop-img-box .carousel .carousel-indicators {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    height: 23%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin: 0;
    left: 0;
	bottom: 0;
	align-content: baseline;
	position: initial;
}

.shop-img-box .carousel .carousel-indicators li {
    display: table-cell;
    width: 25%;
    height: auto;
    margin: 0;
    cursor: pointer;
    border: 0;
    border-radius: 0;
}

.shop-img-box .carousel .carousel-indicators li.active {
	width: 25%;
	height: auto;
	border: solid 1px #E64360;
}

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}
 
::-webkit-scrollbar-track {
	background-color: white; 
}
 
::-webkit-scrollbar-thumb {
    border-radius: 10px;
	background-color: #E64360;
}

.shop-item-img {
	height:510px;
	text-align: center;
	z-index: 4;
	position: absolute;
	top:0;
	left:156px;
}

.shop-item-img img {
	padding-top: 235px;
    
}

.shop-item2-img {
	position: absolute;
	top: 118px;
    left: 118px;
    z-index: 2;
}

.shop-product-header h1 {
	font-size: 45px;
    font-weight: 500;
    color: #F31F36;
    padding-top:0px;
    padding-left: 20px;
    padding-right:20px;
}

.shop-product-header h2 {
	font-size: 17px;
    padding-left: 20px;
    padding-right:60px;
    margin-top: 0;
}

.shop-product-detail h1 {
	font-size: 16px;
	font-weight:700;
	padding-left: 20px;
	padding-right:60px;
}

.shop-product-detail h2 {
	font-size:15px;
	padding-left: 20px;
	padding-right:60px;
	margin-top: 0;
}

.shop-product-detail p {
	padding-left: 20px;
	padding-right:20px;
	color:#002E46;
}

.border-pink {
	background-color: #E64360;
	height:2px;
	/* width:306px; */
	margin: auto 15px;
}

.qty-text {
	padding-left:20px;
	color:#002E46;
	font-weight: 700;
	font-size: 12px;
}

.add-cart {
	text-align: center;
	padding:20px 38px 0 0;
	margin-bottom: 20px;
}

.btn-add-cart {
	/* border-radius: 0 !important; */
	background-color: #E64360;
	color:#fff;
	width:90%;
}

.btn-add-cart:hover {
	background-color: #fff;
	border:1px solid #E64360;
	color:#E64360 !important;
}

.slide-item {
	padding-bottom: 40px;
}

.add-cart .btn {
	font-size: 17px;
	border-radius: 30px;
}

.ribbon {
	position: absolute;
	bottom: 30px;
    right: 47px;
	pointer-events: none;
}

.blue-bg {
	background-image: url(../img/product/blue-bg.png);
 	background-size: cover;
 	background-repeat: no-repeat;
	 background-position: bottom;
	 padding-top: 80px;
	 padding-bottom: 250px;
}

#mattress-matters img {
	width: 100%;
}

#mattress-matters p {
	color: white;
	line-height: 24px;
	font-size: 18px;
}

/*========================
 		owl-carousel
=========================*/

.owl-theme .owl-nav {
	display: none;
}

/*========================
 	end of owl carousel
=========================*/

.layer {
	text-align: right;
	padding-top:50px;
	overflow:hidden;
}

.layer-text {
	text-align: center;
	padding: 40px 20px 0 80px;
}

.layer-text h1 {
	color:#E64360;
	text-transform: uppercase;
	font-weight:700;
	font-size:25px;
	margin-bottom:20px;
	font-family: gothamMedium;
}

.layer-text p {
	font-size:12px;
	font-family: gothamBook;
}

.layer img {
	max-width:100%;
}

.layer-icon {
	margin:20px 0 10px;
	text-align: center;
}

.layer-icon img {
	width: 180px;
}

.layer-top-logo{
	text-align: center;
}

.layer-top-logo img{
	margin-top: -139px;
	max-width: 280px;
}

.section-bg {
	background-image: url(../img/product/section2.png);
 	background-size: cover;
 	background-repeat: no-repeat;
 	/*background-position: top;*/
 	height:250px;
}

.firm-header {
	text-align: center;
}

.firm-header span {
	color:#fff;
	font-size:25px;
	/*font-weight:700;*/

}

.firm-header span img {
	width:95px;
	padding-bottom: 15px;
}

.firmness {
	text-align: center;
	margin-bottom: 60px;
}

.firm-timeline {
	text-align: center;
}

.firm-timeline h1 {
	font-size:20px;
	color:#0A253E;
}

.logo-firm img {
	width:95px;
}

.time {
	margin-bottom: 60px;
	margin-top: 60px;
}

.wave{
  text-align: center;
  background: #FF495C;
  height: 20px;
  position: relative;
}
.wave::before{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background-repeat: repeat-x;
  height: 10px;
  background-size: 20px 20px;
  background-image: radial-gradient(circle at 10px -5px, transparent 12px, white 13px);

}
.wave::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background-repeat: repeat-x;
  height: 15px;
  background-size: 40px 20px;
  background-image: radial-gradient(circle at 10px 15px, white 12px, transparent 13px);
}

.wave2{
  text-align: center;
  background: #fff;
  height: 1px;
  position: relative;
}
.wave2::before{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background-repeat: repeat-x;
  height: 10px;
  background-size: 20px 20px;
  background-image: radial-gradient(circle at 10px -5px, transparent 12px, #FF495C 13px);
  
}
.wave2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background-repeat: repeat-x;
  height: 15px;
  background-size: 40px 20px;
  background-image: radial-gradient(circle at 10px 15px, #FF495C 12px, transparent 13px);
}

.wave3{
  text-align: center;
  background: #fff;
  height: 10px;
  position: relative;
}
.wave3::before{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background-repeat: repeat-x;
  height: 10px;
  background-size: 20px 20px;
  background-image: radial-gradient(circle at 10px -5px, transparent 12px, #E6E7E8 13px);
  
}
.wave3::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background-repeat: repeat-x;
  height: 15px;
  background-size: 40px 20px;
  background-image: radial-gradient(circle at 10px 15px, #E6E7E8 12px, transparent 13px);
}


.test-img {
	position: absolute;
	top:30px;
	left: 50%;
	width: 100%;
	transform: translateX(-50%);
}

.test-img img {
	width: 100%;
}

.test-text-container {
	margin-top:350px;
	text-align: center;
}

.test-text img {
	width:100%;
}

.test-description {
	text-align: left;
	line-height: 24px;
    font-size: 18px;
	padding: 10px;
}

.test-container {
	background-color:#ff495c; height:300px; position: relative;
}

.quality-container {
	background-image: url(../img/product/blue_bg.png);
	background-position: top left;
	background-size: 100%;
	padding-top: 200px;
	padding-bottom: 50px;
}

.quality-img {
	text-align: center;
}

.quality-img img{
	width: 100%;
}

.quality-text-img {
	text-align: left;
}

.quality-text-img img {
	width:100%;
}

.quality-description {
	text-align: center;
    padding: 10px;
    line-height: 24px;
    font-size: 18px;
    color: white;
}

.wavy-bg {
	background-image: url(../img/product/wavy-bg.png);
 	background-size: cover;
 	background-position: top;
 	height:1798px;
}

.wave-text {
	padding-top:80px;
	text-align: center;
}

.wave-text p {
	font-size: 30px;
	color: white;
}

.wave-text span {
	font-size: 40px;
	color:#fff;
	font-weight: 700;
}

.wave-text span img {
	padding-bottom:20px;
}

.step-img {
	text-align: center;
	padding-top:60px;
}

.step-img img {
	width:766px;
}

.bed-img {
	padding-top:125px;
	text-align: center;
}

.installment-popup .modal-header button.close {
	color: #E64360;
	line-height: 1;
    padding: 0;
}

.installment-popup .modal-content{
	border-radius: 15px !important;
    background-color: white !important;
}

.installment-popup table{
	width: 100%;
	border: solid 1.5px #E64360;
	margin-bottom: 15px;
}

.installment-popup .modal-header{
	color: #E64360;
	padding-bottom: 0;
}

.installment-popup table th{
	background: #E64360;
	color: white;
	padding: 10px 5px;
	text-align: center;
}

.installment-popup table td{
	background: white;
	color: #E64360;
	padding: 10px 5px;
	text-align: center;
}

.installment-popup table td .small{
	color: #0A253E;
	font-size: 12px;
}

.installment-popup table td .big{
	color: #E64360;
	font-size: 15px;
	font-weight: bold;
}

/*==================================================
                    MEDIA QUERIES
===================================================*/

/*========================
        IPAD
=========================*/

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1022px) {

}


/*========================
  PHONES (320PX - 414PX)
=========================*/

@media only screen 
and (min-device-width : 320px)
and (max-device-width : 414px) {

	.shop-img-box {
		height:auto;
	}

	.shop-item2-img {
		top: 20px;
    	left: 20px;
	}

    .shop-item2-img img {
    	width:90px !important;
    }

    .shop-item-img {
    	top: -122px;
    	left: 59px;
    }

    .shop-item-img img {
    	padding-top: 166px;
	}

	.ribbon {
		width: 125px;
		right: 3px;
		bottom: 32px;
	}

	.shop-product-header h1 {
		padding-top:0;
		font-size:30px;
	}

	.shop-product-header h2 {
		padding-right:0;
		font-size: 14px;
	}

	.border-pink {
		height:1px;
		width:auto;
		margin-right: 0;
	}

	.shop-product-detail h1 {
		font-size:15px;
		padding-right:0;
	}

	.shop-product-detail p {
		padding-right:0;
		font-size:14px;
	}

	.shop-box {
		height:auto;
		width: calc(100% - 10px);
		margin-top: 120px;
		margin-right: 10px;
	}

	.add-cart {
		padding: 20px 0 0 0;
	}

	.layer-text {
		padding:0;
	}

	.section-bg {
		height:80px;
	}

	.test-img {
		position: relative;
		top: 0;
		left: 0;
		width: 100%;
		transform: translateY(25%);
	}

	.test-img img {
		width:100%;
	}

	.test-text {
    	margin-top: 80px;
	}

	.quality-text-img img {
		width:320px;
		max-width: 90%;
	}

	.wave-text span {
		font-size:25px;
	}

	.wave-text span img {
		width:97px;
	}

	.step-img img {
		width:100%;
	}

	.wavy-bg {
		height:auto;
	}

	.firmness img, .time img, .quality-img img, .bed-img img {
		width:90%;
	}

	.step-img img
	{
		width:225px;
	}

	.modal-padding {
		padding: 10px 0 30px 0  !important;
	}
}


 /*========================
        IPHONE SE
=========================*/
@media only screen 
and (min-device-width : 320px)
and (max-device-width : 350px) {

}



.timeline2-dot
{
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
	animation: timeline2Dot 1.5s infinite;
}

@keyframes timeline2Dot
{
	0%
	{
		opacity: 0;
	}
	
	33.33%, 66.67%
	{
		opacity: 1;
	}
}

#owl1 .carousel
{
	height: 100%;
}

.owl-nav
{
	position: absolute;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	color: #777;
	font-size: 60px;
	font-weight: 300;
	text-align: left;
	line-height: 100%;
	pointer-events: none;
}

.owl-prev
{
	position: relative;
	float: left;
	left:5%;
	pointer-events: auto;
}

.owl-next
{
	position: relative;
	float: right;
	right: 5%;
	pointer-events: auto;
}

.owl-theme .owl-nav button[class*=owl-]:hover
{
	background: none;
	text-shadow: 0 0 5px rgba(0, 0, 0, .5);
}

#owl1 .carousel-indicators li
{
	background-color: #c1c1c1;
	border-color: #c1c1c1;
}
#owl1 .carousel-indicators li.active
{
	background-color: #ff6771;
	border-color: #ff6771;
}

#owl1 .carousel-control.left,
#owl1 .carousel-control.right
{
	height: 77%;
    font-weight: 100;
    font-size: 40px;
}

.picksize
{
	display: block;
	width: 100%;
	/*height: 34px;*/
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #e64360;
    border-radius: 4px;
	text-decoration: none;
	/*white-space: nowrap;*/
	overflow: hidden;
}

.ribbon-link
{
	position: absolute;
	display: block;
	width: 37.5%;
	height: 37.5%;
	right: 7.5%;
	bottom: 7.5%;
	pointer-events: auto;
}

.btn-shop-now
{
	position: relative;
	display: inline-block;
	width: 21.5rem;
	height: auto;
	margin: .25rem;
	cursor: pointer;
}

.btn-shop-now img
{
	max-width: 100%;
	max-height: 100%;
}

.btn-shop-now .hover
{
	position: absolute;
	//display: none;
	top: 0;
	left: 0;
	opacity: 0;
	//transition: opacity .35s;
	animation: btnShopHover 1s ease-in-out 0s infinite;
}

@keyframes btnShopHover
{
	0%
	{
		opacity: 0;
	}
	50%
	{
		opacity: 1;
	}
	100%
	{
		opacity: 0;
	}
}

.btn-shop-now:hover .hover
{
	opacity: 1;
	animation: none;
}

.step-img-img
{
	max-width: 100%;
	max-height: 100%;
	margin-bottom: 8rem;
}

.section-btn
{
	position: absolute;
    width: 7.5%;
    left: 49.65%;
    top: 50%;
    transform: translateX(-50%);
}

.modal-header button.close
{
	padding: .5rem;
	padding-top: 1rem;
	padding-right: 1rem;
	font-size: 3rem;
	color: white;
}

.pick-size-item
{
	position: relative;
	width: 100%;
	margin-bottom: 5rem;
	cursor: pointer;
}

.pick-size-item img
{
	position: relative;
	height: 250px;
	margin-bottom: 2rem;
}

.pick-size-item .indicator
{
	position: relative;
	width: 20px;
	height: 20px;
	border: 1px solid white;
	border-radius: 100%;
	margin: auto;
	transition: background .25s;
}

.pick-size-item:hover .indicator,
.pick-size-item.active .indicator
{
	background-color: #E64360;
}

.bed-image
{
	width: 100%;
}

.wave-top-grey-bg{
	background-image: url(../img/product/wave-top-grey-bg.png);
    background-size: cover;
    background-position: top;
}

.wave-top-blue-bg{
	background-image: url(../img/product/wave-top-blue-bg.png);
    background-size: cover;
    background-position: top;
}

.modal-size-selection .modal-dialog,
.modal-size-selection .modal-dialog .modal-content
{
    width: 100%;
    height: 100%;
    margin: 0 auto;
    
}

@media (max-width: 992px)
{
	#owl1 .carousel-control.left,
	#owl1 .carousel-control.right
	{
		display: inline-block;
	}
}

/* Mobile Style */
@media (max-width: 768px)
{
	.shop-img-box .carousel .carousel-indicators {
		height: 10vh;
	}

	.wave-top-blue-bg{
		margin-top: -1px;
	}

	.quality-container{
		background-size: cover;
	}

	.test-text-container {
		margin-top: 10px;
	}

	#firmness{
		border: none;
		padding-top: 10vh;
		background-color: #ff495c;
		margin-top: -1px;
	}
	
	.layer-top-logo{
		margin-top: 10vh;
	}
	
	.mattress-matters-text {
		margin-top: -90px;
	}

	.owl-nav
	{
		top: 60%;
	}

	.owl-prev
	{
		left: 1%;
	}

	.owl-next
	{
		right: 1%;
	}
	
	.step-img-img
	{
		max-width: 100%;
		max-height: 100%;
	}
	.bed-img {
		/* padding-top: 50px; */
	}
	.section-btn
	{
		position: absolute;
		width: 23%;
		left: 49.65%;
		top: 10%;
    	transform: translateX(-50%);
	}
	
	#myModal .col-xs-3{
		padding: 0;
	}
	#myModal .modal-lg {
		margin:0;
	}
	.pick-size-item img
	{
		/*height: 300px;*/
		max-height: 150px;
	}

	.section-bed
	{
		padding-top: 6vw;
	}

	.section-bed .bed-image
	{
		width: 100%;
	}
	
	.btn-shop-now
	{
		width: 13.5rem;
	}
	
	.layer
	{
		padding-top: 50px;
	}
	
    .modal-size-selection .modal-dialog .modal-content
    {
        width: auto;
        height: auto;
        min-height: 100%;
        margin: 10px;
    }
}

.shop-img-box .carousel-inner{
	height: 77%;
}

.shop-img-box .carousel-inner>.item>img {
	opacity: 0;
	height: 100%;
}

.shop-img-box .carousel-inner .item{
		background-position: center center;
		background-size: cover;
		height: 100%;
}

.shop-product-detail .product-name{
	font-weight: bold;
	font-size: 25px;
	line-height: 1.4;
}

.shop-product-wrap .shop-product-header .original-price{
	color: #6D6E70;
	position: relative;
	font-size: 60%;
}

.shop-product-wrap .shop-product-header .original-price:after{
	background-color: #F31F36;
	opacity: .8;
  content: "";
	display: inline-block;
	height: 3px;
	position: absolute;
	vertical-align: middle;
	top: 50%;
	left: 0;
	transform: translateY(50%);
	width: 105%;
	transform: rotate(-7deg);
}


.shop-product-header sup {
	top: -.3em;
	font-size: 70%;
}

.shop-product-header .discount-tag{
	font-size: 15px;
	display: block;
}

.shop-product-header .discount-descripton-wrap{
	font-size: 18px;
	line-height: 1.2;
	display: inline-block;
	vertical-align: top;
}

.shop-product-header .discount-descripton-wrap .discount-descripton{
	font-size: 12px;
	color: #002E46;
}

.shop-product-detail ul {
	list-style-type: none;
	padding-left: 20px;
}

.shop-product-detail ul li:before {
  content: '- ';
  position: absolute;
  margin-left: -20px;
}

.sku-selection-text .promo-price{
	color:#FF4C5D;
}

.sku-selection-text .arrow-down{
	color: #FF4C5D;
    line-height: 16px;
    font-size: 20px;
    margin-left: 15px;
}

.sku-selection-text .original-price{
	text-decoration:line-through;
}

/* .shop-img-box{
	border: 1px solid #E6E7E8;
} */


