// Base

// # Variables


//font
$font-primary: 'WeblySleek UI';
$font-primary-light: 'WeblySleek UI Semilight';
$font-primary-bold: 'WeblySleek UI Semibold';

//btn-color
$color-primary: #00232A;
$color-primary--light: #2F3D4C;
$color-secondary: #CBE7EB;

$btn-text-color: #002127;
$text-light: #6E6E6E;

$mainContainer: 1580px;

//extend class
.scroll-box {
    overflow-y: auto;
    &::-webkit-scrollbar-track {
        background-color: #dddddd;
        border-radius: 10px;
    }
    &::-webkit-scrollbar {
        background-color: #dddddd;
        width: 3px;
    }
    &::-webkit-scrollbar-thumb {
        background-color: #b8b8b8;
        border-radius: 10px;
    }
}

.img-wrap {
    //when use add padding-top = image height / image width * 100%
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    overflow: hidden;
    .image {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        object-fit: cover;
    }
    &.product-img-wrap {
        padding-top: 105%; // 1.05 (height / width => 1.05)
    }
    &.category-img-wrap {
        padding-top: 120%; // 1.2  (height / width => 1.2)
    }
    &.top-new-img-wrap {
        padding-top: 85.5%;
    }
    &.banner-img-wrap {
        padding-top: 33.4%;
        @media screen and (max-width: 768px) {
            padding-top: 56.25%;
        }
    }
}
.page-content {
    padding-top: 100px;
    padding-bottom: 100px;
}

@include set-default (
	(
		body: (
			background: #fff
		)
	)
);

html {
	overflow-x: hidden;
	font-size: 62.5%;
	font-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	color: $body-text;
    font-family: $shop-font-family;
	@include css( background, body, background );
	font-size: #{$font-size};
	font-weight: 400;
	line-height: 1.4;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;

	&:not(.loaded) > *:not(.loading-overlay) {
		visibility: hidden;
	}

    &.scrollHide,
    &.menu-opened{
        overflow: hidden;
        height: 100vh;
    }
    .fixed-overlay {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,.48);
        z-index: 111;
        opacity: 0;
        visibility: hidden;
        transition: all .3s ease;
        &.show {
            opacity: 1;
            visibility: visible;
        }
    }

}

::-moz-selection {
	background-color: $primary-color;
	color: #fff;
}

::selection {
	background-color: $primary-color;
	color: #fff;
}

p {
	margin-bottom: 1.5rem;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

b,
strong {
	font-weight: 700;
}

em,
i {
	font-style: italic;
}

hr {
	max-width: 1730px;
	margin: 5.5rem auto 5.2rem;
	border: 0;
	border-top: 1px solid #e7e7e7;
}

sub,
sup {
	font-size: 70%;
}

sup {
	font-size: 50%;
}

sub {
	bottom: -.25em;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
textarea,
button {
    border: none;
	outline: none;
    &:focus {
        border: none;
        box-shadow: none;
    }
}
a {
    display: inline-block;
    text-decoration: none;
    &:hover {
        text-decoration: none;
    }
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    margin-bottom: 0;
}
// add product to cart message box / bs-modal
body.modal-open {
	padding-right: 0 !important;
}

@keyframes rotating {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(359deg);
	}
}

@keyframes bouncedelay {
	0%,
	80%,
	100% {
		-webkit-transform: scale(0);
		transform: scale(0);
	}

	40% {
		-webkit-transform: scale(1);
		transform: scale(1);
	}
}

@-webkit-keyframes bouncedelay {
	0%,
	80%,
	100% {
		-webkit-transform: scale(0);
		transform: scale(0);
	}

	40% {
		transform: scale(1);
	}
}

.loading-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transition: all .5s ease-in-out;
	background: #fff;
	opacity: 1;
	visibility: visible;
	z-index: 999999;

	.loaded > & {
		opacity: 0;
		visibility: hidden;
	}
}
