Files

1049 lines
18 KiB
SCSS
Executable File

.category {
display: flex;
align-items: center;
flex-wrap: wrap;
// justify-content: space-between;
@include mq("tablet", max) {
justify-content: space-between;
}
&-item {
width: calc(100% / 5.3);
margin: 20px 0;
&:not(:last-of-type) {
margin-right: 13px;
}
@include mq("tablet-wide", max) {
width: calc(100% / 3.3);
&:not(:last-of-type) {
margin-right: 20px;
}
}
@include mq("tablet", max) {
width: calc(100% / 2.3);
margin-right: 0 !important;
margin-top: 15px;
margin-bottom: 15px;
}
display: flex;
align-items: center;
@include mq("tablet", max) {
flex-direction: column;
text-align: center;
}
&__logo {
@extend %tr02;
margin-right: 10px;
@include mq("tablet", max) {
height: 55px;
}
}
&__title {
font-size: 16px;
font-weight: 600;
color: rgb(5, 5, 5);
line-height: 1.3;
margin-bottom: 0;
@extend %tr02;
a {
&:hover {
text-decoration: underline;
}
}
}
&:hover &__logo {
// filter: brightness(130%) grayscale(1);
@include mq("tablet", min) {
transform: scale(1.075);
}
}
}
}
.specials {
display: flex;
justify-content: space-between;
align-items: center;
& > .special {
width: 32.5%;
height: 200px;
@extend %bgcover;
}
@include mq("tablet-wide", max) {
flex-wrap: wrap;
& > .special {
width: 48%;
margin-bottom: 20px;
}
}
@include mq("tablet", max) {
& > .special {
height: 190px;
width: 100%;
}
}
}
.special {
// background-color: rgb(242, 244, 246);
position: relative;
padding: 20px;
display: flex;
justify-content: flex-end;
align-items: center;
transition: 0.2s background-position ease-out;
&-content {
width: 50%;
}
&-title {
font-size: 16px;
font-weight: 600;
color: #fff;
line-height: 1.333;
}
&-price {
font-size: 18px;
font-weight: bold;
color: #fff;
line-height: 1.444;
}
&-link {
font-size: 16px;
font-weight: normal;
color: rgb(255, 99, 25);
line-height: 1.444;
i {
font-size: 14px;
@extend %tr02;
}
}
.my-btn {
height: 35px;
font-size: 16px;
margin-bottom: 25px;
}
// &:hover {
// background-position: center 10px;
// i {
// transform: translateX(5px);
// }
// span {
// text-decoration: underline;
// }
// }
}
.product {
border-radius: 5px;
background-color: rgb(255, 255, 255);
box-shadow: 0px 3px 15px 3px rgba(5, 8, 9, 0.05);
padding: 17px;
position: relative;
&-top {
top: 15px;
left: 15px;
position: absolute;
z-index: 22;
display: flex;
justify-content: flex-start;
align-items: center;
font-size: 12px;
padding: 2px;
font-weight: 600;
color: rgb(255, 255, 255);
text-align: center;
& > div {
min-width: 40px;
margin-right: 10px;
}
.type {
border-radius: 2px;
background-color: rgb(22, 197, 111);
}
.discound {
border-radius: 2px;
background-color: rgb(189, 34, 125);
}
.xit {
border-radius: 2px;
background-color: rgb(191, 94, 251);
}
.no-product {
border-radius: 2px;
background-color: rgb(251, 94, 94);
padding: 0 5px;
margin-right: 0;
}
}
&-img {
margin-top: 20px;
margin-bottom: 20px;
padding: 10px 0;
height: 180px;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
img {
width: 100%;
height: 100%;
object-fit: contain;
&.no-product-img {
filter: grayscale(200%);
}
}
}
&-category {
font-size: 14px;
font-weight: normal;
color: rgb(161, 161, 161);
line-height: 1;
margin-bottom: 5px;
height: 25px;
}
&-title {
font-size: 16px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.2;
a {
font-size: 14px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.2;
margin-bottom: 10px;
display: inline-block;
@include text-clamp(3, 50px);
&:hover {
text-decoration: underline;
color: $my-orange;
}
}
}
&-price {
margin-bottom: 10px;
height: 50px;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
.title-price {
font-size: 16px;
font-weight: bold;
color: rgb(34, 34, 34);
line-height: 1.5;
margin-bottom: 20px;
@include mq("tablet-wide", max) {
margin-bottom: 10px;
margin-top: 10px;
}
}
.old-price {
text-decoration: line-through;
font-size: 14px;
font-weight: normal;
color: rgb(127, 127, 127);
line-height: 1;
}
.new-price {
font-size: 20px;
font-weight: bold;
color: rgb(0, 0, 0);
}
}
&-buttons {
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: space-between;
button {
border: 0;
position: relative;
z-index: 33;
@extend %tr02;
width: 36px;
height: 36px;
border-radius: 50%;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
}
&-to_cart {
width: 80%;
display: flex;
align-items: center;
}
&-to_basket {
background-color: rgb(255, 99, 25);
margin-right: 5px;
span {
font-size: 13px;
font-weight: normal;
color: rgb(255, 255, 255);
text-align: center;
line-height: 1;
position: absolute;
padding-left: 2px;
padding-right: 2px;
@extend %c-c;
width: 100%;
opacity: 0;
visibility: hidden;
z-index: 9;
}
i {
color: white;
opacity: 1;
visibility: visible;
}
&:hover {
width: 60%;
border-radius: 20px;
box-shadow: 0px 5px 14.25px 0.75px rgba(255, 99, 25, 0.35);
@include mq("tablet", max) {
width: 70%;
}
@include mq("phone-small", max) {
width: 60%;
}
}
&.is-active {
background-color: rgb(255, 99, 25);
box-shadow: 0px 5px 14.25px 0.75px rgba(255, 99, 25, 0.35) !important;
width: 60%;
border-radius: 20px;
@include mq("tablet", max) {
width: 70%;
}
@include mq("phone-small", max) {
width: 60%;
}
i {
opacity: 0;
visibility: hidden;
}
span {
opacity: 1;
visibility: visible;
}
}
&.is-actived {
background-color: rgb(255, 99, 25);
box-shadow: unset;
width: 100px;
border-radius: 20px;
&:hover {
box-shadow: 0px 5px 14.25px 0.75px rgba(255, 99, 25, 0.35);
}
@include mq("tablet-wide", max) {
width: 120px;
}
@include mq("tablet", max) {
width: 120px;
}
@include mq("phone-small", max) {
width: 100px;
}
}
}
&-to_compare,
&-to_compares {
i {
color: #c2c2c2;
}
background-color: #efefef;
&.is-active {
background-color: #c2c2c2;
i {
color: white;
}
}
& + span {
position: absolute;
left: 45px;
@extend %v-c;
font-size: 16px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.5;
}
}
&-to_delete {
background-color: transparent;
height: auto !important;
display: flex;
align-items: center;
justify-content: flex-end;
border-radius: 0 !important;
i {
color: $my-orange;
}
span {
margin-left: 5px;
font-size: 16px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.5;
}
}
&-to_favorite {
width: 50px;
i {
color: #c2c2c2;
}
background-color: #efefef;
&.is-active {
background-color: rgb(255, 99, 25);
box-shadow: 0px 5px 14.25px 0.75px rgba(255, 99, 25, 0.35);
i {
color: white;
}
}
}
&-addition_info {
height: 80px;
margin-top: 15px;
font-size: 13px;
font-weight: normal;
line-height: 1.429;
color: #222222;
a {
font-weight: 600;
border-bottom: 1px solid #222;
&:hover {
color: $my-orange;
border-bottom-color: $my-orange;
}
}
}
&-address {
font-size: 16px;
font-weight: normal;
color: rgb(106, 106, 106);
line-height: 1.2;
}
&-price_and_checkout {
display: flex;
align-items: center;
@include mq("desktop", max) {
flex-direction: column;
align-items: flex-start;
}
// @include mq("tablet-wide", max) {
// flex-direction: row;
// align-items: center;
// justify-content: space-between;
// }
// @include mq("phone-small", max) {
// flex-direction: column;
// align-items: flex-start;
// justify-content: flex-start;
// }
}
&-price-by-count {
font-size: 16px;
font-weight: 600;
color: rgb(106, 106, 106);
line-height: 1.125;
@include mq("desktop", max) {
margin-bottom: 10px;
}
// @include mq("tablet-wide", max) {
// margin-bottom: 0;
// }
// @include mq("phone-small", max) {
// margin-bottom: 10px;
// }
}
&-count {
&__title {
font-size: 16px;
font-weight: bold;
color: rgb(34, 34, 34);
line-height: 1.5;
margin-bottom: 30px;
@include mq("tablet-wide", max) {
margin-top: 10px;
margin-bottom: 10px;
}
}
display: flex;
width: 120px;
border: 1px solid #efefef;
margin-bottom: 20px;
@include mq("tablet-wide", max) {
margin-top: 0px;
margin-bottom: 10px;
}
span {
display: flex;
justify-content: center;
align-items: center;
width: 35px;
height: 35px;
background-color: #efefef;
color: rgb(34, 34, 34);
font-size: 16px;
cursor: pointer;
}
input {
width: 50px;
background-color: #fff;
border: 0;
color: #333;
font-size: 18px;
font-weight: bold;
color: rgb(34, 34, 34);
font-weight: bold;
line-height: 1.2;
text-align: center;
}
}
&-subtitle {
font-size: 14px;
font-weight: normal;
color: rgb(34, 34, 34);
line-height: 1.5;
text-align: left;
@include mq("tablet", min) {
max-height: 110px;
overflow-y: auto;
}
}
&-info {
font-size: 14px;
font-weight: normal;
color: rgb(34, 34, 34);
line-height: 1.714;
text-align: left;
span {
font-weight: 600;
}
p {
margin-bottom: 0;
}
}
}
.bonus {
height: 280px;
padding: 20px 20px 20px 60px;
width: 100%;
background-image: url("../img/pattern.png"),
linear-gradient(-43deg, #00b58c 0%, #00b58c 100%);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
position: relative;
.gift {
right: 200px;
bottom: 0px;
max-width: 300px;
position: absolute;
animation: mover 1.5s infinite alternate;
}
.icon {
position: absolute;
&-left {
top: 50%;
transform: translateY(-50%);
right: 50%;
animation: mover2 1s infinite alternate;
animation-timing-function: ease-out;
animation-delay: 0.5s;
}
&-right {
top: 10%;
right: 6%;
animation: mover3 1s infinite alternate;
}
}
display: flex;
align-items: center;
&-content {
width: 50%;
h3 {
font-size: 40px;
font-weight: bold;
color: rgb(255, 255, 255);
line-height: 1.2;
span {
font-weight: normal;
}
}
}
@include mq("desktop", max) {
height: 300px;
.gift {
max-width: 250px;
right: 150px;
}
}
@include mq("tablet-wide", max) {
align-items: flex-start;
padding-top: 30px;
padding-left: 30px;
padding-right: 30px;
.gift {
max-width: 200px;
right: 90px;
}
&-content {
width: 100%;
}
}
@include mq("tablet", max) {
height: 450px;
padding: 15px;
align-items: flex-end;
.gift {
max-width: 200px;
top: -30px;
bottom: unset;
}
.icon {
&-left {
top: 30%;
right: unset;
left: 0;
transform: unset;
}
&-right {
right: 0;
}
}
&-content {
transform: translateY(-30px);
h3 {
font-size: 32px;
}
}
}
}
.popular_category {
padding: 20px 0;
margin-left: -7.5px;
margin-right: -7.5px;
display: flex;
align-items: center;
flex-wrap: wrap;
@include mq("tablet", max) {
justify-content: space-between;
}
&--item {
width: calc(100% / 6.5);
margin-right: 7.5px;
margin-left: 7.5px;
margin-bottom: 20px;
padding: 25px 20px;
@include mq("desktop", max) {
width: 23%;
}
@include mq("tablet-wide", max) {
width: 31%;
}
@include mq("tablet", max) {
width: 45%;
}
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
background-color: rgb(255, 255, 255);
// box-shadow: 0px 35px 35px 15px rgba(0, 0, 0, 0.03);
box-shadow: 0px 3px 15px 3px rgba(5, 8, 9, 0.05);
&__img {
height: 75px;
width: 100%;
img {
width: 100%;
height: 100%;
object-fit: contain;
filter: brightness(130%) grayscale(1);
@extend %tr02;
}
}
&__title {
margin-top: 30px;
font-size: 16px;
font-weight: normal;
color: rgb(34, 34, 34);
line-height: 1.2;
text-align: center;
}
&:hover &__img img {
filter: unset;
}
}
}
// .big-news {
// @extend %bgcover;
// width: 100%;
// border-radius: 5px;
// height: 350px;
// padding: 30px;
// position: relative;
// background-size: 100%;
// transition: all 0.3s ease-in-out;
// // &::after {
// // content: "";
// // border-radius: 5px;
// // background-image: linear-gradient(
// // -43deg,
// // rgb(248, 88, 61) 0%,
// // rgb(248, 68, 90) 100%
// // );
// // position: absolute;
// // width: 100%;
// // height: 100%;
// // left: 0;
// // top: 0;
// // z-index: -1;
// // }
// @include mq("tablet", max) {
// padding: 20px;
// }
// &:hover {
// // background-position: center 20px;
// background-size: 109%;
// }
// display: flex;
// flex-direction: column;
// align-items: flex-start;
// justify-content: center;
// &__content {
// transform: translateY(-30px);
// }
// &__date {
// font-size: 16px;
// font-weight: normal;
// color: rgb(255, 255, 255);
// line-height: 1.625;
// }
// &__title {
// width: 72%;
// margin-top: 15px;
// font-size: 20px;
// font-weight: 600;
// color: rgb(255, 255, 255);
// font-weight: bold;
// line-height: 1.5;
// a {
// @include text-clamp(3, 90px);
// }
// @include mq("tablet", max) {
// width: 90%;
// }
// }
// }
.news {
border-radius: 5px;
background-color: rgb(255, 255, 255);
box-shadow: 0px 3px 27px 3px rgba(5, 8, 9, 0.05);
overflow: hidden;
&-img {
display: block;
border-radius: 5px;
overflow: hidden;
height: 150px;
width: 100%;
@include mq("tablet", max) {
height: 220px;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
@extend %tr02;
}
}
&-title {
font-size: 14px;
font-weight: 600;
color: rgb(0, 0, 0);
line-height: 1.313;
@include text-clamp(2, 35px);
& a:hover {
color: $my-orange;
}
}
&-subtitle {
font-size: 14px;
font-weight: normal;
color: rgb(34, 34, 34);
line-height: 1.3;
@include text-clamp(3, 55px);
margin: 0;
}
&-date {
font-size: 14px;
font-weight: normal;
color: rgba(34, 34, 34, 0.702);
margin-bottom: 10px;
}
&-link {
font-size: 14px;
font-weight: bold;
color: rgb(255, 99, 25);
line-height: 1.5;
margin-top: 15px;
display: inline-block;
i {
font-size: 12px;
@extend %tr03;
}
&:hover {
i {
transform: translateX(5px);
}
color: $my-orange;
}
}
&-content {
padding: 15px;
}
&:hover {
img {
transform: scale(1.09);
}
.news {
&-title {
a {
text-decoration: underline;
}
}
}
}
}
.partner {
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 100px;
&-logo {
height: 75px;
width: 100%;
img {
height: 100%;
width: 100%;
object-fit: contain;
}
}
}
.sections {
padding: 20px 0;
margin-left: -7.5px;
margin-right: -7.5px;
display: flex;
align-items: center;
flex-wrap: wrap;
@include mq("tablet", max) {
justify-content: space-between;
}
&-item {
align-self: stretch;
width: 18.7%;
margin-right: 7.5px;
margin-left: 7.5px;
margin-bottom: 20px;
padding: 25px 20px;
@include mq("desktop", max) {
width: 23%;
}
@include mq("tablet-wide", max) {
width: 31%;
}
@include mq("tablet", max) {
width: 45%;
padding: 15px;
}
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
background-color: rgb(255, 255, 255);
// box-shadow: 0px 35px 35px 15px rgba(0, 0, 0, 0.03);
box-shadow: 0px 3px 15px 3px rgba(5, 8, 9, 0.05);
&__img {
height: 120px;
width: 100%;
@include mq("tablet", max) {
height: 75px;
}
img {
width: 100%;
height: 100%;
object-fit: contain;
// filter: brightness(130%) grayscale(1);
@extend %tr02;
}
}
&__title {
margin-top: 30px;
font-size: 16px;
font-weight: 600;
color: rgb(34, 34, 34);
line-height: 1.2;
text-align: center;
}
&:hover &__title {
color: $my-orange;
text-decoration: underline;
}
}
}
.banner {
height: 250px;
width: 100%;
img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
}