@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: #1D1D1D;

    --swiper-theme-color: #1D1D1D !important;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 80px;
    overflow-x: hidden;
    max-width: 100vw;
}

.body--no-scroll {
    overflow: hidden;
}

body > * {
    margin: 0 42px;
}

p {
    margin: 0;
}

h2 {
    font-size: 16px;
    margin: 0;
    line-height: 150%;
    letter-spacing: -1%;
    font-weight: 500;
}

button {
    cursor: pointer;
}

select {
    border: none;
    background: transparent;

    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 16px;
}

/* overlay */

.overlay {
    opacity: 1;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.25);
    transition: .2s all;
    display: block;
    margin: 0;
}

/* desktop */
/* 6 hours */

/* header */

/* mobile */

.header__user,
.header__logo-link {
    column-gap: 12px;
    display: flex;
    align-items: center;
}

.header__user-icon {
    width: 36px;
    height: 36px;
}

.header__burger {
    border: none;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    display: none;
    padding: 0;
    align-items: center;
}

.header__burger-button {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* desktop */

.header {
    height: 80px;
}

.header__desktop {
    position: fixed;
    height: 80px;
    width: calc(100% - 84px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    z-index: 100;

    font-size: 16px;
    background-color: white;
}

.header a {
    color: #1D1D1D;
    text-decoration: none;
}

.header__logo-text {
    position: relative;
}

.header__logo-text::after {
    content: 'IDOMODS</>';
    position: absolute;
    right: -144px;
}

.header__nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header__nav-list {
    list-style-type: none;
    display: flex;
    gap: 48px;
    padding: 0;
}

.header__nav-elem {
    float: left;
    position: relative;
    cursor: pointer;
}

.header__nav-elem::after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -2px;
    height: 2px;
    background-color: #1D1D1D;
    transition: .2s all;
    transform: scaleX(0);
}

.header__nav-elem:hover::after,
.header__nav-elem--active::after {
    transform: scaleX(1);
}

.header__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1D1D1D;
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: 700;
    transition: .2s all;
    user-select: none;
}

.header__logo-link:hover > .header__icon {
    color: white;
    background-color: #1D1D1D;
}

/* banner */

.banner {
    gap: 42px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.banner__picture {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner__logo {
    font-size: 0;
    width: 918px;
    height: 138px;
    background: url(../images/icons/logo.svg) no-repeat;
    background-size: contain;
    max-width: 80%;
}

/* swiper */

.featured__products {
    display: flex;
    flex-direction: column;
    gap: 42px;
    margin: 0 42px 48px 42px;
}

.featured__products-text {
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -1%;
}

.featured__products-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -2%;
}

.swiper {
    width: 100% !important;
    display: flex;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    padding-bottom: 64px;
}

.swiper-image-container {
    position: relative;
    width: 100%;
    background-color: #EAEAE8;
    border-radius: 6px;
}

.swiper__slide-header {
    margin-top: 24px;
}

.product__label {
    position: absolute;
    left: 16px;
    top: 16px;
    line-height: 140%;
    letter-spacing: -1%;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 50px;
}

.heart-icon {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.heart-icon:hover {
    fill: #1D1D1D;
}

.product__image {
    width: 100%;
    height: auto;
    transform: scale(.9);
    transition: .2s all;
}

.swiper__slide-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
}

.swiper__slide-title {
    font-size: 20px;
    line-height: 120%;
    font-weight: 600;
    margin: 0;
}

.swiper__slide-price {
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -1%;
    font-weight: 500;
    margin: 0;
}

.swiper-scrollbar {
    width: 100% !important;
    left: 0 !important;
    height: 1px !important;
    background: #EAEAE8 !important;
}

.swiper-scrollbar-drag {
    background: #1D1D1D !important;
}

.swiper-button {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50px;
    border: 1px solid #EAEAE8;
    background: url(../images/icons/arrow.svg) no-repeat;
    background-size: 20%;
    background-position: center;
    background-color: white;
    top: 40% !important;
}

.swiper-button-prev {
    transform: scaleX(-1) !important;
    left: 32px !important;
}

.swiper-button-next {
    right: 32px !important;
}

.swiper-button::after {
    content: '' !important;
}

.swiper-button-disabled {
    display: none !important;
}

.label--limited {
    background-color: #D4B0D9;
}

.label--bestseller {
    background-color: #D9D6B0;
}

/* products */

.all__products {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.products__list {
    display: grid;
    grid-template-columns: repeat(4, calc(25% - 18px));
    grid-template-rows: auto;
    gap: 24px;
}

.product {
    position: relative;
    background-color: #EAEAE8;
    width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
}

.product:hover > .product__image {
    transform: scale(.92);
}

.product__id {
    position: absolute;
    left: 16px;
    top: 16px;
    line-height: 140%;
    letter-spacing: -1%;
}

/* products banner */

.products__banner {
    background-size: 110%;
    background-repeat: no-repeat;
    background-position: 8% 47%;
    border-radius: 6px;
    grid-column: span 2;
    padding: 36px 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

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

.banner__text {
    font-size: 42px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -2%;
    width: 80%;
}

.banner__button {
    background-color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 48px;

    font-size: 16px;
    line-height: 140%;
    letter-spacing: -1%;
    font-family: inherit;

    display: flex;
    align-items: center;
    justify-content: space-between;
    width: max-content;
    transition: .1s all;
}

.banner__button:hover {
    background-color: #1D1D1D;
    color: white;
}

.banner__button-icon {
    width: 12px;
    height: 12px;
    transform: rotate(-90deg);
    margin-left: 12px;
    transition: .1s filter;
}

.banner__button:hover > .banner__button-icon {
    filter: invert(1);
}

/* product extended */

.product__extended {
    position: fixed;
    width: 840px;
    height: 620px;
    background-color: #EAEAE8;
    padding: 32px;
    border-radius: 6px;
    transition: opacity .2s;

    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product__extended-image {
    height: 95%;
}

.extended__product-id {
    left: 32px;
    top: 32px;
}

.product__extended-close {
    border: none;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    display: flex;
    align-items: center;
    position: absolute;
    right: 32px;
    top: 32px;
    padding: 0;
}

.product__extended-close--icon {
    width: 20px;
    height: 20px;
    padding-right: 8px;
}

.hidden {
    pointer-events: none !important;
    opacity: 0 !important;
}

.hidden-display {
    display: none !important;
}

/* custom dropdown */

.dropdown__container {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.dropdown__options {
    position: relative;
    width: 68px;
}

.dropdown__options-container {
    text-align: center;
    width: 42px;
    z-index: 10;
    border-radius: 6px;
    outline: 1px solid #EAEAE8;
    font-weight: 700;
    padding: 10px 10px 6px 10px;
    position: absolute;
    background: white;
    top: -8px;
    display: grid;
    flex-direction: column;
    grid-template-areas: "active";
}

.dropdown-option {
    padding: 6px 0;
    border: none;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 700;
    background-color: white;
}

.dropdown--active {
    padding: 0 0 2px 0 !important;
    border-bottom: 1px solid black !important;
    text-align: left;
    display: block !important;
    grid-area: active;
    position: relative;
    margin-bottom: 4px;
}

.dropdown--active::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    right: 0;
    top: 4px;
    background: url('../images/icons/arrow-small.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

.dropdown-option:not(:last-of-type) {
    border-bottom: 1px solid #EAEAE8;
}

.border--hidden {
    border: none !important;
    outline: none !important;
}

#scroll-bottom-trigger {
    position: absolute;
    bottom: 0;
    width: 100%;
}


/* mobile */
/* 1.5 hours */

@media (max-width: 768px) {
    body {
        gap: 64px;
    }

    body > * {
        margin: 0 16px;
    }

    .header {
        height: 72px;
    }

    .header__desktop {
        width: calc(100vw - 32px);
        left: 0;
        padding: 0 16px;
        height: 72px;
    }

    .header__nav,
    .header__user {
        display: none;
    }

    .header__logo-text::after {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__mobile-menu {
        background-color: white;
        z-index: 100000;
        width: 80vw;
        position: fixed;
        display: flex;
        flex-direction: column;
        right: 0;
        height: 100vh;
        transform: translateX(100%);
        transition: .5s all; 
    }

    .header__mobile {
        height: 72px;
        width: calc(80vw - 64px);
        padding: 0 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header__burger {
        display: flex;
        align-items: center;
        background: transparent;
        border: none;
        font-family: "Inter", sans-serif;
        font-size: 16px;
        padding: 0;
    }

    .header__mobile-nav {
        list-style-type: none;
        margin: 120px 0 0 32px;
        height: 120px;
    }

    .header__nav-list {
        flex-direction: column;
    }

    .header__nav-elem {
        width: max-content;
        left: 0;
    }

    .header__menu-mobile--active {
        transform: translateX(0) !important;
    }

    .banner__logo {
        max-width: 100%;
        height: 16vw;
    }

    .banner {
        gap: 16px;
        height: calc(100vh - 152px);
    }

    .banner__picture {
        border-radius: 8px;
    }

    .featured__products {
        margin: 0;
        overflow-x: hidden;
    }
    
    .featured__products-header {
        margin: 0 16px;
    }

    .swiper {
        padding-left: 16px !important;
    }

    .swiper-button {
        width: 64px;
        height: 64px;
    }

    .swiper-button-prev {
        left: 16px !important;
    }

    .swiper-button-next {
        right: 28px !important;
    }

    .heart-icon {
        width: 30px;
        height: 30px;
    }

    .swiper__slide-title {
        font-size: 18px;
    }

    .swiper-scrollbar {
        width: calc(100% - 32px) !important;
        margin-left: 12px;
    }

    .dropdown__container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .products__list {
        align-items: start;
        grid-template-columns: repeat(2, calc(50% - 6px));
        grid-template-rows: repeat(6, calc(50vw - 12px));
        gap: 12px;
    }

    .product__id {
        font-size: 8px;
    }

    .products__banner {
        grid-column: span 2;
        grid-row: span 3;
        height: calc((50vw - 12px) * 3 - 42px);
        padding: 0;
        background-size: 140% !important;
        background-position: 40% 10% !important;
        padding: 32px 0;
    }

    .products__banner-header {
        width: 90%;
    }

    .products__banner-header {
        font-size: 32px;
    }

    .banner__button {
        height: 48px;
        padding: 12px 96px;
        max-width: 90%;
        white-space: nowrap;
        justify-content: center;
    }

    .product__extended {
        width: calc(90% - 32px);
        padding: 16px;
        height: max-content;
        overflow: hidden;
    }

    .extended__product-id {
        font-size: 16px;
        left: 16px;
        top: 16px;
    }

    .product__extended-close {
        right: 16px;
        top: 16px;
    }

    .product__extended-image {
        height: auto;
        width: 115vw;
    }
}