/*
* fonts
*/
@font-face {
    font-family: "Harmony OS Sans";
    src: local("Harmony OS Sans"), url("../fonts/HarmonyOS_Sans.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: "Harmony OS Sans";
    src: local("Harmony OS Sans"), url("../fonts/HarmonyOS_Sans_Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: "Harmony OS Sans";
    src: local("Harmony OS Sans"), url("../fonts/HarmonyOS_Sans_Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: auto;
}


/*
* general
*/
* {
    font-family: 'Harmony OS Sans', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    font-size: 24px;
    line-height: 1.5;
    background: #F5F5F7;
    color: #24272A;
    font-weight: 400;
    min-width: 360px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 1920px;
    margin: 0 auto;
}


img, iframe {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

ul {
    padding: 0 0 0 1.5rem;
}

strong {
    font-weight: 600;
}

p, blockquote, ul, ol {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1470px;
    margin: 0 auto;
}

.page_overlay.--active {
    z-index: 1;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgb(255 255 255 / 60%);
}

/*
* button
*/
.button {
    display: inline-flex;
    align-items: center;
    font-size: 0.83rem;
    gap: 0.5rem;
    color: #24272A;
    border: 1px solid #F3F3F3;
    box-shadow: 0 12px 40px 0 rgb(0 0 0 / 5%);
    line-height: normal;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.button:hover {
    transition: 0.3s;
    opacity: 0.7;
}

.button--hollow {
    background: transparent;
    color: #24272A;
    border: 1px solid #24272A;
}

.button svg {
    width: 1rem;
    height: 1rem;
}

.--stop {
    overflow: hidden;
    padding-right: 7px;
}

::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: lightgray;
}
::-webkit-scrollbar-thumb {
    background-color: #a6a6a6;
    border-radius: 20px;
}

/*
* header
*/
.header {
    display: flex;
    padding: 1.5rem;
    justify-content: center;
    align-items: center;
    position: relative;
}
.header__logo {
    line-height: 0;
}

.header__logo img {
    height: 3.1rem;
}

.header__back-logo img {
    width: 1rem;
    height: 1rem;
}

.header__logo, .header__back {
    transition: 0.3s;
}

.header__logo:hover, .header__back:hover {
    transition: 0.3s;
    opacity: 0.7;
}

.header__back {
    position: absolute;
    left: 2rem;
    display: flex;
    line-height: 1;
    font-size: 0.7rem;
    align-items: center;
    gap: 0.5rem;
}

.header__back-logo, .header__back-icon {
    line-height: 0;
}


/*
* main
*/
.main {
    margin-bottom: 4rem;
}

.main__title {
    font-size: 3.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.main__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*
* selection
*/
.selection__container {
    padding: 0 1.5rem;
}

.selection__title {
    font-size: 1rem;
    text-align: center;
    margin: 0 0 1.5rem;
}

.selection__filter-scroller {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.selection__button.--active {
    background: #24272A;
    color: #fff;
}

.selection__products {
    transition: 0.3s;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.selection__products.--process {
    filter: blur(10px);
    transition: 0.3s;
}

.selection__filter-init {
    display: none;
}


/*
* product
*/
.product {
    margin-right: 1rem;
    padding-bottom: 2rem;
}
.product__content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    background: #fff;
    max-width: 20rem;
    border-radius: 16px;
    width: 13.5rem;
}

.product:hover .product__more {
    opacity: 1;
    transition: 0.6s;
}
.product__more {
    opacity: 0;
    transition: 0.6s;
    margin-top: 0.5rem;
    text-align: center;
}

.product__more .button {
    width: 100%;
    box-shadow: 0 0 40px 0 rgb(0 0 0 / 15%);
    justify-content: center;
}

.product__image {
    line-height: 0;
    transition: 0.3s;
    position: relative;
}

.product__image:hover {
    transition: 0.3s;
    opacity: 0.8;
}

.product__image img {
    width: 100%;
}

.product__title {
    font-size: 1rem;
    font-weight: 400;
    min-height: 3.6rem;
    display: flex;
    text-align: center;
    line-height: normal;
    padding-top: 0.6rem;
    align-items: center;
    justify-content: center;
}

.product__label-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
}

.product__label-list-item {
    padding: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    box-shadow: 0 12px 40px 0 rgb(0 0 0 / 5%);
    background: rgb(255 255 255 / 60%);
}

.product__label-list-item svg {
    width: 1rem;
    height: 1rem;
}

.product-slider.--loading {
    display: flex;
    width: 100%;
    justify-content: center;
    overflow: hidden;
    transition: 0.3s;
    filter: blur(10px);
}
.product-modal__other-title {
    font-size: 1.4rem;
    margin: 3rem 0 1rem 0;
    font-weight: 400;
}

/*
* product modal
*/
.product-modal {
    position: fixed;
    max-height: 75dvh;
    overflow-y: auto;
    z-index: 2;
    bottom: -100vh;
    transition: 0.8s;
    left: 0;
    right: 0;
    background: #D6DCDE;
}

.product-modal.--active {
    bottom: 0;
    transition: 0.8s;
}

.product-modal__container {
    max-width: 1200px;
    padding: 1.5rem;
    position: relative;
}

.product-modal__top {
    margin-bottom: 1.5rem;
}

.product-modal__middle {
    display: grid;
    align-items: flex-start;
    gap: 1.5rem 3rem;
    grid-template-columns: 1fr 0.5fr;
}

.product-modal__title {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    padding-right: 3rem;
}

.product-modal__media {
    position: absolute;
    right: 0;
}

.product-modal__image-top, .product-modal__image-bottom {
    position: absolute;
}

.product-modal__image-top {
    left: -4.5rem;
    top: -3rem;
    z-index: 0;
    width: 8rem;
}

.product-modal__image-bottom {
    right: -3rem;
    bottom: -4.5rem;
    z-index: 2;
    width: 10rem;
}

.product-modal__media-gallery {
    width: 17rem;
    height: 23rem;
    border-radius: 16px;
    overflow: hidden;
}

.product-modal__media-gallery-item, .product-modal__media-gallery-item, .product-modal__media-gallery-item img {
    width: 100%;
    height: 100%;
}

.product-modal__media-gallery-item img {
    object-fit: cover;
    z-index: 1;
}

.product-modal__content {
    width: 100%;
}

.product-modal__content-more {
    margin-top: 1rem;
}

.product-modal__content-text {
    box-shadow: 0 12px 40px 0 rgb(0 0 0 / 5%);
    background: #FFFFFF;
    padding: 1rem 18rem 1rem 1rem;
    border-radius: 16px;
}

.product-modal, html {
    overflow-x: hidden !important;
}

.flickity-viewport {
    overflow: visible !important;
}


@keyframes rotateLeft {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes rotateRight {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1, 1);
    }
    50% {
        transform: scale(1.3, 1.3);
    }
    100% {
        transform: scale(1, 1);
    }
}

.--pulse {
    animation: pulse 2.8s linear infinite;
}

.product-modal__image-top {
    animation: rotateLeft 3.8s linear infinite;
}

.product-modal__image-bottom {
    animation: rotateRight 3.8s linear infinite;
}


/*
* Media queries
*/
@media (max-width: 1600px) {
    html {
        font-size: 20px;
    }
    .container {
        max-width: 1160px;
    }
    .product-modal__middle {
        gap: 1.5rem 4rem;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 18px;
    }
    .container {
        max-width: 940px;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 18px;
    }
    .container {
        max-width: 720px;
    }
    .product-modal__container {
        max-width: unset;
    }
    .product-modal__title {
        font-size: 2.4rem;
    }
    .product-modal__media {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .header__back-text {
        display: none;
    }
    .container {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
    .header__back-logo img {
        width: 24px;
        height: 24px;
    }
    .main__title {
        font-size: 2.8rem;
    }
    .product-modal__middle {
        display: flex;
        gap: 3rem;
        flex-direction: column-reverse;
    }
    .product-modal__media {
        margin: 0 auto;
        right: unset;
        position: relative;
    }
    .product-modal__title {
        padding-right: 0;
    }
    .product-modal__image-bottom {
        right: -4rem;
        bottom: -2.5rem;
    }
    .product-modal__content-text {
        padding-right: 0;
    }
    .product-modal .button--hollow {
        font-size: 1rem;
    }
    .product__more {
        opacity: 1;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    .product-modal__top {
        margin-bottom: 1.5rem;
        text-align: right;
    }
    .button {
        padding: 0.7rem 0.6rem;
    }
    .button svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .main__title {
        font-size: 2.6rem;
    }

    .main__title img {
        width: 1.6rem;
    }

    .selection__filter-init {
        display: flex;
        background: #24272A;
        color: #fff;
        width: 100%;
        justify-content: center;
    }

    .selection__title {
        max-width: 20rem;
        margin: 0 auto 1rem;
    }

    .selection__filter {
        position: fixed;
        bottom: -100vh;
        transition: 0.6s;
        left: 0;
        right: 0;
        max-height: 60dvh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -12px 40px 0 rgb(0 0 0 / 25%);
        background: #F5F5F7;
        z-index: 2;
    }

    .selection__filter-scroller {
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .selection__filter.--active {
        bottom: 0;
        transition: 0.6s;
    }

    .selection__filter .selection__filter-init {
        font-size: 1rem;
        padding: 0.9rem;
        width: max-content;
        align-self: center;
        margin-top: 0.7rem;
    }

    .product__label-list-item svg {
        width: 1.6rem;
        height: 1.6rem;
    }
    .product-modal__media, .product-modal__media-gallery {
        width: 100%;
    }

    @keyframes rotateLeft {
        0% {
            transform: rotate(65deg);
        }
        50% {
            transform: rotate(55deg);
        }
        100% {
            transform: rotate(65deg);
        }
    }

    .product-modal__image-top {
        left: -2.5rem;
        top: -5rem;
        transform: rotate(65deg);
    }
}
