Files
giao_dien_web_mau/Giao diện Mẹ & Bé - Mẫu 2/scss/mobile_css.scss
2023-03-22 14:58:06 +07:00

2037 lines
44 KiB
SCSS

body{
color:#000;
font-family: 'Inter', sans-serif;
background: #fff;
position: relative;
font-size:14px;
font-weight:400;
line-height:1.5;
text-align:left;
max-width: 650px;
margin: auto;
word-break: break-word;
counter-reset: section;
overflow: auto;
}
a{
text-decoration: none;
outline: none;
}
b{
font-weight: bold;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: .5rem;
font-weight: 500;
line-height: 1.2;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: .5rem;
}
.h1, h1 {font-size: 2em}
.h2, h2 {font-size: 1.5em}
.h3, h3 {font-size: 1.17em}
.h4, h4, .h5, h5, .h6, h6 {font-size: initial}
.h1, h1,.h2, h2,.h3, h3,.h4, h4,.h5, h5,.h6, h6 {font-weight: bold}
.ul {
margin: 0;
padding: 0;
list-style: none;
}
img {
max-width: 100%;
height: auto;
}
.clearfix{
&::after {
content: '';
clear: both;
display: block;
}
}
.clear {
clear: both;
}
button, input, select {
outline: none !important;
color: #000;
}
textarea {font-family: inherit;}
table{
width: 100% !important;
-webkit-overflow-scrolling: touch;
border-collapse: collapse;
}
@media screen and (-webkit-min-device-pixel-ratio: 0){
select, textarea, input {
font-size: 16px;
}
}
iframe {
max-width: 100%;
display: block;
border: 0;
width: 100%;
margin: auto;
}
.text-white {
color: #fff;
}
.text-10{
font-size: 10px;
}
.text-11{
font-size: 11px;
}
.text-12{
font-size: 12px;
}
.text-13{
font-size: 13px;
}
.text-14{
font-size: 14px;
}
.text-15{
font-size: 15px;
}
.text-16{
font-size: 16px;
}
.text-17{
font-size: 17px;
}
.text-18{
font-size: 18px;
}
.text-19{
font-size: 19px;
}
.text-20{
font-size: 20px;
}
.text-21{
font-size: 21px;
}
.text-22{
font-size: 22px;
}
.text-24{
font-size: 24px;
}
.text-28{
font-size: 28px;
}
.text-30{
font-size: 30px;
}
.text-36{
font-size: 36px;
}
.line-height-2{
line-height: 2;
}
.line-22{
line-height: 22px;
}
.blue{
color: #005BAD;
}
.blue-2{
color: #1988EC;
}
.blue-light{
color: #00FFF0;
}
.orange{
color: #FE7801;
}
.red{
color: #EE6A6A;
}
.grey{
color: #999;
}
.yellow{
color: #fdb813;
}
.color-main{
color: #FF848D;
}
.black{
color: #222;
}
.green{
color: #29A07E;
}
.bg-blue{
background: #005BAD;
}
.bg-red{
background: #D91605;
}
.bg-green{
background: #29A07E;
}
.bg-main{
background: #FF848D;
}
.blue-light{
color: #31c6fe;
}
.text-white{
color: #fff;
}
.bg-white{
background: #fff !important;
}
.font-weight-lighter{
font-weight: 300;
}
.flex-wrap{
flex-wrap: wrap;
}
.d-flex{
display: flex !important;
}
.d-block{
display: block !important;
}
.d-none{
display: none !important;
}
.d-inline-block{
display: inline-block !important;
}
.align-items-center{
align-items: center;
}
.align-items-baseline{
align-items: baseline;
}
.justify-content-between{
justify-content: space-between;
}
.justify-content-center{
justify-content: center;
}
.overflow-hidden{
overflow: hidden !important;
}
.overflow-auto{
overflow: auto;
}
.float-left{
float: left;
}
.float-right{
float: right;
}
.float-none{
float: none;
}
.position-relative{
position: relative;
}
.text-white {
color: #fff;
}
.text-center {
text-align: center;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-uppercase{
text-transform: uppercase;
}
.text-capitalize{
text-transform: capitalize;
}
.w-100{
width: 100% !important;
}
.w-50{
width: 50% !important;
}
.w-auto{
width: auto !important;
}
.h-100{
height: 100% !important;
}
.h-auto{
height: auto !important;
}
.m-0{
margin: 0 !important;
}
.mb-0{
margin-bottom: 0 !important;
}
.mt-0{
margin-top: 0 !important;
}
.ml-0{
margin-left: 0 !important;
}
.mr-0{
margin-right: 0 !important;
}
.mt-2{
margin-top: .5rem!important
}
.mt-3 {
margin-top: 1rem!important;
}
.mb-2{
margin-bottom: .5rem!important
}
.mb-3 {
margin-bottom: 1rem!important;
}
.p-0{
padding: 0 !important;
}
.pt-0{
padding-top: 0 !important;
}
.pb-0{
padding-bottom: 0 !important;;
}
.pl-0{
padding-left: 0 !important;
}
.pr-0{
padding-right: 0 !important;;
}
.pt-2, .py-2 {
padding-top: .5rem!important;
}
.pt-3, .py-3 {
padding-top: 1rem!important;
}
.border-0{
border: 0 !important;
}
.p-15{
padding: 0 15px;
}
.font-weight-bold{
font-weight: bold;
}
.form-control {
display: block;
width: calc(100% - 1.5rem - 2px);
height: calc(1.5em + 0.75rem + 2px);
padding: 0.375rem 0.75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.bg-orange{
background: #ff9219;
}
.font-100{
font-weight: 100;
}
.font-200{
font-weight: 200;
}
.font-300{
font-weight: 300;
}
.font-400{
font-weight: 400;
}
.font-500{
font-weight: 500;
}
.font-600{
font-weight: 600;
}
.font-700{
font-weight: 700;
}
.font-800{
font-weight: 800;
}
.font-900{
font-weight: 900;
}
.text-underline{
text-decoration: underline;
}
.font-italic{
font-style: italic;
}
.border-bottom{
border-bottom: 1px solid #ccc;
}
.pb-1, .py-1 {
padding-bottom: 0.25rem!important;
}
.fit-img{
width: auto;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
max-width: 100%;
max-height: 100%;
margin: auto;
display: block;
}
.autocomplete-suggestions{position:absolute;width: 100%;;border:solid 1px #ddd;right:0;margin-top:2px;max-height:300px;overflow:auto;display:none;background:#fff;z-index:9;top: 100%;}
.autocomplete-suggestions a{display: flex;align-items: flex-start;padding:10px;overflow:hidden;}
.autocomplete-suggestions a img{width:60px;float:left;margin-right: 12px;}
.autocomplete-suggestions a .info{width: calc(100% - 72px);}
.autocomplete-suggestions a .info .name{display:block;color:#333;}
.autocomplete-suggestions a .info .price{color:#ec1c24;}
.autocomplete-suggestions a:hover{background-color:#f5f5f5;}
.autocomplete-suggestions::-webkit-scrollbar-track{-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.1);background-color: #f1f1f1;border-radius: 10px;}
.autocomplete-suggestions::-webkit-scrollbar{width: 6px;background-color: #f1f1f1;}
.autocomplete-suggestions::-webkit-scrollbar-thumb{border-radius: 10px;background-color: #ccc;}
.icon-star{background-image: url(../images/star.png);width: 59px;height: 13px;display: inline-block;background-repeat: no-repeat;background-size: 60px 77px;vertical-align: sub;}
.icon-star.star-0{background-position: -1px -64px;}
.icon-star.star-1{background-position: -1px -51.5px;}
.icon-star.star-2{background-position: -1px -38.5px;}
.icon-star.star-3{background-position: -1px -25.5px;}
.icon-star.star-4{background-position: -1px -13px;}
.icon-star.star-5, .icon-star.star-0{background-position: -1px -0.5px;}
.success-checkmark .check-icon .icon-circle {border-color: #0542b7;opacity: .5;}
.success-checkmark .check-icon .icon-line {background-color: #0542b7;}
.success-checkmark .check-icon{border-color: #0542b7 }
.content-container{max-width: calc(100% - 60px);}
.bg-content{
overflow: hidden;
position: relative;
&::before{
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(#fff));
background: linear-gradient(transparent, #fff);
height: 300px;
}
}
.bg-linear{
background:linear-gradient(180deg, #EE1B25 0%, #FF7E85 100%);
}
.inherit{
font-size: inherit;
font-weight: inherit;
line-height: inherit;
margin: 0;
}
.line-clamp-2{
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-3{
text-overflow: ellipsis;
-webkit-line-clamp: 3;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-4{
text-overflow: ellipsis;
-webkit-line-clamp: 4;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-5{
text-overflow: ellipsis;
-webkit-line-clamp: 5;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.fancybox-slide--video {
padding: 10px;
}
.fancybox-thumbs__list a {height: 90px;background-size: 80%;background-color: #fff;transition: unset}
.fancybox-thumbs__list a:before {border: 3px solid #FF848D}
.btn-html-content{
text-align: center;
padding: 16px;
a{
display: none;
line-height: 36px;
background: #FFFFFF;
color: #1988EC;
box-shadow: 0px 0px 0px 1px #1988EC;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
margin: auto;
max-width: 126px;
width: 100%;
transition: .15s all;
font-size: 13px;
&:hover{
background: #1988EC;
color: #fff;
}
i{
margin-left: 4px;
}
}
}
.bg-popup {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.4);
z-index: 99;
cursor: pointer;
}
.p-10{
padding-left: 10px;
padding-right: 10px;
}
.container{
padding: 0 10px;
}
.global-breadcrumb{
font-size: 12px;
line-height: 15px;
padding: 6px 0 10px 0;
border-bottom: 1px solid #EBEBEB;
a{
color: #000000;
}
ol, ul{
display: flex;
align-items: center;
flex-wrap: wrap;
}
li{
display: flex;
align-items: center;
&::after{
content:'/';
padding: 0 5px;
color: #A3A3A3;
}
&:last-child{
&::after{
content: none;
}
a{
@extend .color-main;
}
}
}
h1{
@extend .inherit;
}
}
.paging{
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
padding: 12px;
font-weight: 600;
font-size: 15px;
a{
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
border-radius: 50%;
border: 1px dashed #D9D9D9;
color: #7A7A7A;
background: #fff;
margin: 0 6px;
&.current{
@extend .bg-main;
color: #fff;
border-color: transparent;
}
}
}
.icons{
background: url(../images/sprite.png) no-repeat;
background-size: 250px 250px;
}
.custom-nav{
.owl-nav {
margin: 0;
button{
position: absolute;
top: 50%;
transform: translateY(-50%);
margin: 0 !important;
background: unset !important;
}
.owl-prev {
left: -18px;
}
.owl-next {
right: -18px;
}
.arrow{
width: 35px;
height: 35px;
border-radius: 50%;
display: block;
background: url(../images/arrow-left.png) no-repeat;
background-position: center;
background-size: 9px 14px;
background-color: #fff;
box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.25);
transition: .2s all;
}
.arrow-right{
transform: rotate(180deg);
}
}
}
.custom-dots{
.owl-dots {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 20px;
right: 5%;
margin: 0 !important;
.owl-dot {
span{
margin: 0 7px;
width: 8px;
height: 8px;
border-radius: 50px;
background: transparent;
transition: .2s all;
border: 1px solid #FFFFFF;
}
&.active,&:hover{
span{
background: #A50E43;
border-color: transparent;
}
}
}
}
}
.p-item{
background: #FFFFFF;
border-radius: 12px;
overflow: hidden;
font-size: 12px;
line-height: 16px;
position: relative;
p{
margin: 0
}
img{
@extend .fit-img;
transition: .5s all;
transform: scale(1);
}
.p-img{
display: block;
position: relative;
padding-bottom: 100%;
border-radius: 12px;
overflow: hidden;
}
.p-text{
padding: 10px 10px 16px 10px;
}
.p-discount{
background: url(../images/p-discount.png) no-repeat center;
background-size: 100% 100%;
line-height: 21px;
font-weight: 700;
font-size: 12px;
position: absolute;
top: 10px;
left: 8px;
z-index: 1;
color: #fff;
min-width: 38px;
height: 24px;
text-align: center;
}
.p-name{
display: block;
color: #000;
height: 32px;
line-height: 16px;
margin-bottom: 4px;
*{
@extend .inherit;
@extend .line-clamp-2;
}
}
.p-price-group{
margin-bottom: 5px;
height: 38px;
line-height: 18px;
}
.p-price{
font-weight: 600;
font-size: 14px;
margin: 0 0 2px 0;
@extend .color-main;
}
.p-old-price{
font-size: 12px;
del{
color: #7A7A7A;
}
}
.p-btn{
display: block;
text-align: center;
background: #FFFFFF;
border: 1px dashed #FF848D;
border-radius: 5px;
font-weight: 600;
font-size: 12px;
line-height: 27px;
margin: 12px 0 0 0;
@extend .color-main;
}
.p-deal-group{
font-size: 10px;
line-height: 18px;
margin: 5px 0 10px 0;;
}
.p-sale-quantity{
margin-bottom: 2px;
}
.p-line-holder{
background: #D9D9D9;
border-radius: 3px;
overflow: hidden;
height: 4px;
position: relative;
}
.p-line{
position: absolute;
left: 0;
top: 0;
bottom: 0;
max-width: 100%;
border-radius: inherit;
@extend .bg-main;
}
}
.global-header-container{
padding: 10px;
transition: .4s all;
top: -100px;
img{
display: block;
width: auto;
height: auto;
}
.header-logo{
margin-right: 12px;
width: calc(100% - 180px);
img{
max-width: 167px;
width: 100%;
}
}
.global-header-right{
width: 110px;
}
.icons{
width: 47px;
height: 47px;
border-radius: 50%;
border: 1px dashed #FF848D;
margin: 0 12px 0 0;
&:last-child{
margin-right: 0;
}
}
.icon-menu{
margin-right: 9px;
background-position: -41px -129px;
}
.icon-phone {
background-position: -96px 2px;
animation: phonering 1.8s infinite ease-in-out;
}
.icon-cart {
background-position: -151px 3px;
position: relative;
}
.cart-count{
font-style: normal;
width: 14px;
height: 14px;
line-height: 14px;
border-radius: 50%;
font-weight: 600;
font-size: 12px;
text-align: center;
background: #404040;
color: #fff;
position: absolute;
top: 7px;
left: 25px;
}
}
.header-search-group{
position: relative;
width: 100%;
margin-top: 17px;
form{
position: relative;
background: #FFFFFF;
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
border-radius: 8px;
overflow: hidden;
display: flex;
flex-wrap: wrap;
}
.text-search{
width: calc(100% - 63px);
height: 38px;
padding: 0 10px 0 13px;
color: #B5B5B5;
border: 0;
margin: 0;
}
.btn-search{
width: 40px;
height: 38px;
border: 0;
padding: 0;
margin: 0;
background-position: -200px 0px;
}
}
.header-fixed {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
background: #fff;
box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.2);
.header-logo,.icon-phone{
display: none;
}
.global-header-right {
width: 48px;
margin-left: 12px;
order: 1;
}
.header-search-group {
width: calc(100% - 120px);
margin: 0;
}
}
.global-form-note {
color: #FF505C;
font-weight: 600;
margin: 10px 0 0 0;
display: none;
}
.global-footer-container{
padding: 10px;
}
.footer-brand-group{
margin: 0 0 20px 0;
a{
display: block;
position: relative;
padding-bottom: 60px;
}
img{
width: auto !important;
height: auto !important;
@extend .fit-img;
}
}
.footer-newsletter-group {
margin: 20px 0 10px 0;
padding: 47px 14px;
background-position: center;
background-repeat: no-repeat;
background-size: 100% 100%;
text-align: center;
.title{
font-size: 20px;
line-height: 24px;
margin-bottom: 20px;
}
.footer-newsletter-form{
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
input{
width: calc(100% - 142px);
height: 42px;
background: #FAFCFE;
border-radius: 10px;
margin: 0 6px 0 0;
border: 0;
padding: 0 15px;
}
a {
width: 106px;
line-height: 42px;
background: #FF505C;
border-radius: 10px;
text-align: center;
color: #fff;
font-size: 16px;
font-weight: 600;
}
}
}
.footer-info-group{
background: #F5F5F5;
border-radius: 18px;
margin: 10px 0 13px 0;
font-size: 15px;
line-height: 24px;
img{
display: block;
width: auto;
height: auto;
max-height: 54px;
margin: auto;
}
a{
display: block;
color: #000;
margin: 10px 0;
}
p{
margin: 0;
a{
display: inline-block;
margin: 0;
font-weight: 600;
color: #FF505C;
}
}
.item-list{
padding: 5px 16px 10px 16px;
display: none;
}
.item{
border-bottom: 1px solid #EBEBEB;
}
.item-title{
font-weight: 700;
line-height: 42px;
margin: 0 0 0 0;
padding: 0 16px;
position: relative;
&.active::after{
content: '\f077';
}
&::after{
content: '\f078';
font-family: Fontawesome;
font-size: 14px;
position: absolute;
right: 16px;
}
}
.item-middle{
text-align: center;
padding: 15px;
font-size: 14px;
line-height: 26px;
border: 0;
}
.footer-logo {
display: block;
margin: 0 auto 11px auto;
img{
max-height: 54px;
}
}
.footer-img-list {
a{
margin: 0 12px 0 0;
}
}
.icon-top-retail {
width: 58px;
height: 39px;
background-position: -9px -189px;
}
}
.footer-social-media {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
margin: 15px 0 10px 0;
a{
width: 48px;
height: 48px;
margin: 0 8px 8px 8px;
border: 1px dashed #D74314;
border-radius: 50%;
&::before{
content: '';
display: block;
height: 100%;
@extend .icons;
}
}
.icon-facebook {
border-color: #3948AB;
&::before{
background-position: 8px -42px;
}
}
.icon-youtube {
&::before{
background-position: -40px -41px;
}
}
.icon-google {
&::before{
background-position: -94px -41px;
}
}
.icon-twitter {
border-color: #42A4F5;
&::before{
background-position: -148px -41px;
}
}
.icon-instagram {
border-color: #FF848D;
&::before{
background-position: -191px -41px;
}
}
}
.footer-bottom-group{
font-size: 15px;
line-height: 30px;
text-align: center;
justify-content: center;
p{
order: 1;
width: 100%;
margin: 10px 0 0 0;
}
.icon-payment{
width: 306px;
height: 33px;
background-position: -162px -378px;
background-size: 500px 500px;
}
}
.homepage{
padding: 0 10px 10px 10px;
.home-banner-group{
margin-bottom: 11px;
}
.box-btn{
text-align: center;
margin-top: 12px;
a{
color: #FF848D;
font-weight: 500;
font-size: 16px;
line-height: 30px;
}
}
}
.home-deal-group{
margin: 35px 0 11px 0;
background: #fff;
border-radius: 20px;
box-shadow: 0px 0px 0px 2px #FF848D;
.group-title{
text-align: center;
.title{
color: #FF848D;
font-weight: 600;
font-size: 20px;
line-height: 24px;
background: #fff;
display: inline-block;
text-align: center;
padding: 0 17px;
margin: auto;
position: relative;
top: -14px;
}
}
.deal-time-holder{
display: flex;
align-items: center;
justify-content: center;
min-height: 36px;
margin: -9px 0 20px 0;
b{
margin: 0 10px;
color: #FFFFFF;
background: #FF848D;
border-radius: 5px;
line-height: 36px;
min-width: 26px;
font-weight: 600;
font-size: 20px;
padding: 0 3px;
position: relative;
&::before{
content: ':';
font-weight: 600;
font-size: 20px;
line-height: 29px;
position: absolute;
left: -13px;
top: 6px;
@extend .color-main;
}
&:first-child::before{
content: none;
}
}
}
.product-holder {
padding: 0 14px 9px 14px;
}
.p-item{
.p-text{
padding: 10px 0;
}
}
}
.home-collection-group{
margin: 11px 0 32px 0;
background: #FFF7F7;
border-radius: 20px;
padding: 14px 14px 10px 14px;
.title{
font-weight: 700;
font-size: 20px;
line-height: 24px;
text-align: center;
margin: 0 0 15px 0;
color: #FF848D;
}
.box-left{
width: 280px;
margin-right: 16px;
img{
border-radius: 15px;
display: block;
}
}
.box-right{
width: calc(100% - 296px);
}
}
.home-product-group{
margin: 32px 0;
.box-title-group{
text-align: center;
color: #FF848D;
font-size: 14px;
line-height: 17px;
margin: 0 0 24px 0;
.title{
line-height: 24px;
color: #fff;
text-transform: uppercase;
background: url(../images/home-product-title.png) no-repeat;
background-position: center;
background-size: 100% 100%;
font-size: 20px;
display: inline-block;
padding: 11px 54px;
margin: 0 0 12px 0;
}
}
.box-product-holder{
min-height: 300px;
position: relative;
margin-bottom: 9px;
}
}
.home-customer-comment-group{
margin: 32px 0 0 0;
background: #FFF7F7;
border-radius: 20px;
padding: 20px 10px;
.title{
font-weight: 600;
font-size: 20px;
line-height: 24px;
text-align: center;
text-transform: uppercase;
margin: 0 0 18px 0;
@extend .color-main;
}
.item{
text-align: center;
.image{
position: relative;
padding-bottom: 62%;
background-size: 100% 100%;
background-repeat: no-repeat;
margin-bottom: 35px;
border-radius: 10px;
}
.avatar{
width: 48px;
height: 48px;
border-radius: 50%;
background-size: 100% 100%;
background-repeat: no-repeat;
position: absolute;
left: 50%;
bottom: -24px;
transform: translateX(-50%);
}
.item-name {
font-size: 13px;
line-height: 18px;
text-transform: capitalize;
margin: 6px 0;
b{
font-weight: 700;
display: block;
}
}
}
.icon-star{
margin: 5px 0;
transform: scale(1.4);
}
.summary{
font-weight: 300;
font-size: 13px;
line-height: 18px;
text-overflow: ellipsis;
-webkit-line-clamp: 8;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
}
.product-page{
padding: 10px;
.page-title-group{
border-bottom: 1px solid #EBEBEB;
}
.page-title{
font-weight: 600;
font-size: 20px;
line-height: 24px;
margin: 0 0 10px 0;
}
.product-right-group{
display: flex;
align-items: center;
margin: 0 0 10px 0;
select{
background: #FFFFFF;
border: 1px solid #D9D9D9;
border-radius: 5px;
padding: 0 5px;
font-size: 15px;
height: 36px;
min-width: 112px;
margin: 0 14px 0 0;
}
}
.icon-filter{
width: 26px;
height: 26px;
background-position: -9px -99px;
&.active{
background-position: -7px -144px;
}
}
.product-list-holder{
display: flex;
flex-wrap: wrap;
padding: 12px 0;
}
.p-item{
margin: 0 10px 10px 0;
width: calc(100% / 2 - 5px);
&:nth-child(2n){
margin-right: 0;
}
}
}
.product-filter-container{
transition: .3s all;
position: fixed;
inset: 0;
overflow: auto;
z-index: 100;
padding: 15px 10px;
width: calc(100% - 20px);
background: #fff;
a{
display: block;
font-size: 13px;
line-height: 24px;
color: #000000;
margin: 10px 0 0 0;
position: relative;
padding-left: 25px;
&::before{
content: '';
width: 16px;
height: 16px;
background: #FFFFFF;
border: 1px solid #D9D9D9;
border-radius: 3px;
position: absolute;
top: 3px;
left: 0;
}
&.current{
@extend .color-main;
font-weight: 600;
&::before{
@extend .bg-main;
border-color: transparent;
}
&::after{
content: '\f00c';
font-family: FontAwesome;
font-size: 9px;
position: absolute;
left: 4px;
top: 0px;
color: #fff;
}
}
}
.filter-item{
margin: 0 0 35px 0;
}
.title{
font-weight: 600;
font-size: 15px;
line-height: 18px;
text-transform: uppercase;
margin: 0 0 10px 0;
position: relative;
&::after{
content: '\f067';
font-family: Fontawesome;
position: absolute;
right: 0;
}
&.active::after{
content: '\f068';
}
}
.filter-header-group {
border-bottom: 1px solid #EBEBEB;
line-height: 34px;
margin: 0;
font-size: 16px;
font-weight: 600;
margin-bottom: 10px;
}
.filter-bottom-group {
border-top: 1px solid #EBEBEB;
line-height: 32px;
padding-top: 10px;
margin-top: 10px;
display: flex;
align-items: center;
justify-content: flex-end;
a {
display: block;
box-shadow: 0px 0px 0px 1px #EBEBEB;
border-radius: 3px;
margin: 0 0 0 12px;
line-height: 32px;
padding: 0 15px;
font-size: 14px;
&::before {
content: none;
}
&:last-child {
background: #EE6A6A;
box-shadow: 0px 0px 0px 1px #EE6A6A;
color: #fff;
}
}
}
.filter-content-group {
height: calc(100% - 128px);
overflow: auto;
padding: 15px 0;
}
.filter-list{
display: none;
}
}
.product-deal-page {
padding-top: 20px;
.group-title{
background: #FFFFFF;
border: 2px solid #FF848D;
border-radius: 20px;
margin: 0 0 15px 0;
color: #FF848D;
font-weight: 600;
font-size: 20px;
line-height: 24px;
text-align: center;
padding: 11px;
.title{
@extend .inherit;
margin: 0;
position: relative;
top: -24px;
background: #fff;
display: inline-block;
padding: 0 17px;
}
}
.deal-time-holder{
display: flex;
align-items: center;
justify-content: center;
min-height: 36px;
margin-top: -8px;
b{
margin: 0 10px;
position: relative;
background: #FF848D;
border-radius: 5px;
line-height: 36px;
color: #FFFFFF;
font-weight: 600;
font-size: 20px;
padding: 0 6px;
&::before{
content: ':';
font-weight: 600;
font-size: 20px;
line-height: 29px;
position: absolute;
left: -13px;
top: 6px;
@extend .color-main;
}
&:first-child::before{
content: none;
}
}
}
}
.product-detail-page{
padding: 10px;
.home-product-group {
margin-top: 32px;
.box-title-group .title{
font-weight: 700;
font-size: 18px;
line-height: 22px;
}
}
.page-title{
font-weight: 600;
font-size: 24px;
line-height: 30px;
margin: 0 0 7px 0;
}
.pd-rating-group{
border-bottom: 1px solid #EBEBEB;
padding-bottom: 8px;
line-height: 18px;
display: flex;
align-items: center;
margin: 0 0 7px 0;
p{
margin: 0 34px 0 0;
a{
@extend .color-main;
}
}
a{
color: #000;
font-size: 13px;
}
.icon-star {
transform: scale(1.3);
margin: 0 15px 0 0;
}
}
.pd-price-group {
margin: 22px 0 18px 0;
}
.pd-price{
font-weight: 600;
font-size: 26px;
line-height: 27px;
margin: 0 12px 0 0;
display: inline-block;
@extend .color-main;
}
.pd-discount{
display: inline-block;
vertical-align: top;
text-align: center;
text-transform: uppercase;
color: #FFFFFF;
background: url(../images/p-discount.png) no-repeat center;
background-position: center;
background-size: 100% 100%;
padding: 0 3px;
line-height: 25px;
font-weight: 700;
font-size: 12px;
}
.pd-old-price{
margin: 10px 0 0 0;
font-size: 15px;
line-height: 18px;
del{
color: #7A7A7A;
}
}
.pd-btn-group{
margin: 20px 0;
a{
display: block;
text-align: center;
background: #FFEEEF;
box-shadow: 0px 0px 0px 1px #FF848D;
border-radius: 8px;
text-transform: uppercase;
font-weight: 700;
font-size: 16px;
color: #F90012;
line-height: 44px;
margin: 0 0 10px 0;
transition: .2s all;
&:hover{
box-shadow: 0px 0px 6px 1px rgba(0,0,0,.3);
}
&:last-child{
background: #FF848D;
color: #fff;
}
}
}
.pd-voucher-group{
background: #FFFFFF;
border: 1px dashed #FF848D;
border-radius: 8px;
font-size: 16px;
line-height: 20px;
padding: 14px 16px;
margin: 20px 0;
a{
@extend .color-main;
font-weight: 600;
}
p{
margin: 0 0 12px 0;
&:last-child{
margin: 0;
}
}
}
}
.pd-image-group{
margin-bottom: 14px;
a{
display: block;
position: relative;
padding-bottom: 100%;
}
img{
@extend .fit-img;
border-radius: 15px;
}
}
.pd-gallery-group{
margin: 12px 0 15px 0;
.current {
.item{
border-color: #FF848D;
}
}
.item{
border: 1px solid #EBEBEB;
border-radius: 10px;
display: block;
position: relative;
padding-bottom: 98%;
overflow: hidden;
img{
max-width: 85%;
max-height: 85%;
@extend .fit-img;
}
}
}
.pd-box-group{
font-size: 16px;
line-height: 22px;
&.active{
.box-title{
&::after{
content: '\f068';
}
}
}
.pd-box-content{
padding: 14px 0;
display: none;
}
.box-title{
font-weight: 700;
font-size: 16px;
line-height: 44px;
margin: 0;
border-bottom: 1px solid #D9D9D9;
cursor: pointer;
position: relative;
&::after{
content: '\f067';
font-family: Fontawesome;
font-size: 20px;
line-height: 16px;
position: absolute;
top: 12px;
right: 0;
}
}
}
.pd-static-group{
margin: 20px 0 25px 0;
background: #FFEEEF;
border-radius: 12px;
padding: 17px 25px 25px 25px;
.title{
text-align: center;
font-weight: 700;
font-size: 20px;
line-height: 24px;
margin: 0;
@extend .color-main;
}
.item{
margin-top: 20px;
display: flex;
align-items: center;
p{
margin: 0;
width: calc(100% - 42px);
font-size: 12px;
line-height: 15px;
}
b{
font-weight: 700;
font-size: 14px;
line-height: 17px;
display: block;
}
}
.icons{
width: 30px;
height: 27px;
margin-right: 12px;
}
.icon-phone {
background-position: -51px -97px;
}
.icon-money {
background-position: -95px -97px;
}
.icon-gift {
background-position: -140px -99px;
}
.icon-truck {
background-position: -188px -99px;
}
}
.pd-deal-holder{
margin: 16px 0 25px 0;
box-shadow: 0px 0px 0px 2px #FF848D;
border-radius: 20px;
background: #fff;
padding: 12px 16px 16px 16px;
.deal-title{
font-weight: 600;
font-size: 20px;
line-height: 36px;
display: flex;
align-items: center;
flex-wrap: wrap;
margin: 0 0 3px 0;
p{
margin: 0 20px 0 0;
@extend .color-main;
}
}
.pd-deal-time-holder{
display: flex;
align-items: center;
b{
background: #FF848D;
border-radius: 5px;
position: relative;
color: #fff;
font-weight: 600;
font-size: 20px;
margin: 0 0 0 16px;
padding: 0 4px;
&::before{
content: ':';
line-height: 24px;
position: absolute;
top: 5px;
left: -12px;
@extend .color-main;
}
&:first-child{
margin-left: 0;
&::before{
content: none;
}
}
}
}
.pd-deal-count{
p{
font-size: 10px;
line-height: 18px;
margin: 0 0 2px 0;
}
}
.pd-deal-line-holder{
position: relative;
height: 6px;
overflow: hidden;
background: #D9D9D9;
border-radius: 5px;
.deal-line{
position: absolute;
top: 0;
left: 0;
bottom: 0;
border-radius: 5px;
max-width: 100%;
@extend .bg-main;
}
}
}
.pd-variant-group{
margin: 17px 0;
font-size: 16px;
line-height: 20px;
.pd-variant-list{
@extend .clearfix;
}
a{
color: #000;
position: relative;
padding-left: 26px;
margin: 13px 30px 0 0;
float: left;
&::before{
content: '';
width: 20px;
height: 20px;
border-radius: 50%;
box-shadow: 0px 0px 0px 1px #d9d9d9;
position: absolute;
top: -1px;
left: 0;
background: #fff;
}
}
.selected{
@extend .color-main;
&::before{
background: #FF848D;
box-shadow: unset;
}
&::after{
content: '\f00c';
font-family: Fontawesome;
color: #fff;
position: absolute;
top: -1px;
left: 5px;
font-size: 10px;
}
}
}
.hot-product-group{
.box-title-group {
.title{
color: #FF848D;
background: #fff;
position: relative;
padding-bottom: 7px;
&::after{
@extend .bg-main;
content: '';
width: 64px;
height: 1px;
position: absolute;
bottom: -1px;
left: 50%;
transform: translateX(-50%);
}
}
}
}
.cart-page{
padding: 10px;
.cart-header-group{
flex-wrap: wrap;
line-height: 17px;
a{
@extend .color-main;
}
p{
width: 100%;
order: 1;
background: #F5F5F5;
border: 1px dashed #D9D9D9;
padding: 16px;
margin: 18px 0 16px 0 !important;
a{
text-decoration: underline;
}
}
}
.box-title{
background: #F5F5F5;
margin: 28px 0 15px 0;
font-size: 16px;
line-height: 20px;
position: relative;
border-left: 8px solid #D9D9D9;
padding: 15px;
}
.input-text, select{
width: calc(100% - 24px);
height: 38px;
margin: 0 0 8px 0;
background: #FFFFFF;
border: 1px solid #D9D9D9;
border-radius: 5px;
padding: 0 11px;
color: #8D8D8D;
}
select{
width: 48%;
height: 38px;
color: #000000;
}
.item-row{
margin: 0 0 25px 0;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
line-height: 20px;
a{
display: block;
color: #000;
}
img{
@extend .fit-img;
max-width: 96%;
max-height: 96%;
}
.item-left{
width: 72px;
margin-right: 21px;
text-align: center;
}
.item-right{
width: calc(100% - 93px);
}
.p-img{
position: relative;
height: 72px;
margin-bottom: 10px;
}
.p-quantity{
background: #404040;
color: #fff;
text-align: center;
width: 18px;
height: 18px;
line-height: 18px;
border-radius: 50%;
font-weight: 700;
font-size: 15px;
position: absolute;
top: -9px;
right: -5px;
}
.p-delete{
color: #B7B7B7;
display: table;
margin: auto;
}
.p-name{
color: #000000;
font-weight: 600;
margin-bottom: 2px;
}
.p-variant{
font-size: 12px;
line-height: 15px;
margin: 2px 0 5px 0;
}
.p-price{
color: #FF848D;
font-weight: 600;
margin: 5px 0 12px 0;
}
.item-quanity-holder{
display: flex;
align-items: center;
box-shadow: 0px 0px 0px 1px #D9D9D9;
border-radius: 5px;
overflow: hidden;
width: 102px;
line-height: 40px;
text-align: center;
input{
text-align: center;
width: 46px;
border: 0;
border-left: 1px solid #CECECE;
border-right: 1px solid #CECECE;
padding: 0;
margin: 0;
}
a{
width: 28px;
line-height: 40px;
font-size: 11px;
}
}
}
.payment-method-holder{
margin-top: 25px;
}
.customer-note{
width: calc(100% - 26px);
height: 84px;
display: block;
background: #FFFFFF;
border: 1px solid #D9D9D9;
border-radius: 8px;
padding: 10px 12px;
margin: 20px 0;
outline: none;
resize: none;
}
.btn-send-order{
display: block;
width: 100%;
height: 42px;
margin: 20px 0 0 0;
background: #FF848D;
color: #FFFFFF;
font-weight: 700;
border-radius: 3px;
border: 0;
padding: 0;
}
}
.cart-info-group{
.col{
&:first-child{
.box-title{
margin-top: 0;
}
}
}
}
.cart-price-group{
line-height: 32px;
b{
font-weight: 600;
}
td{
&:nth-child(2){
text-align: right;
}
}
}
.cart-voucher-holder{
border-bottom: 1px solid #D9D9D9;
padding: 10px 0 20px 0;
margin: 0 0 10px 0;
display: flex;
align-items: center;
flex-wrap: wrap;
input{
width: calc(100% - 123px);
height: 42px;
margin-right: 7px;
background: #FFFFFF;
border: 1px solid #D9D9D9;
border-radius: 3px;
padding: 0 10px;
}
.btn-voucher{
width: 94px;
height: 42px;
background: #FF848D;
border-radius: 3px;
color: #FFFFFF;
font-weight: 500;
padding: 0;
margin: 0;
border: 0;
}
}
.label-container{display:block;position:relative;padding-left: 24px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size: 13px;line-height: 18px;cursor: pointer;margin-bottom: 12px;}
.label-container .checkmark{position:absolute;top: 3px;left:0;height: 12px;width: 12px;background-color: #fff;border-radius:50%;box-shadow: 0px 0px 0px 1px #BFBFBF;}
.label-container input{position:absolute;opacity:0;cursor:pointer}
.label-container input:checked ~ .checkmark{box-shadow: 0px 0px 0px 1px #FF848D;}
.label-container input:checked ~ .checkmark:after{display:block}
.label-container input:checked ~ .checkmark:after {content: '';width: 7px;height: 7px;background: #FF848D;border-radius: 50%;position: absolute;left: 3px;top: 50%;transform: translateY(-50%);}