body {
    background: var(--c-dark);
}
body.light {
    background: var(--c-light);
}
main {
    background: var(--c-light);
}
body.light div.catalog {
    padding-top: 80px;
}
section.hero-l {
    .wrapper {
        h1 {
            max-width: 900px;
            text-align: center;
            margin: 40px auto 0;
            font-size: 96px;
            font-weight: 700;
            letter-spacing: 6%;
            line-height: 90px;
            text-transform: uppercase;
            font-family: drukcyr;
            font-weight: 700;
            color: var(--c-dark);
        }
    }
}
div.catalog {
    padding: 130px 0 80px;
    .filter {
        display: flex;
        justify-content: space-between;
        padding: 20px;
        position: relative;
        * {
            color: var(--c-dark);
        }
        .type-filter {
            .open-filter {
                width: fit-content;
                display: none;
            }
            .items {
                display: flex;
                gap: 30px;
                .btn {
                    padding: 5px 20px;
                    font-size: 18px;
                    height: fit-content;
                    border-radius: 20px;
                    outline: 1px solid transparent;
                    &.active {
                        background: var(--c-dark);
                        color: var(--white);
                    }
                }
            }
        }
        .sort {
            display: flex;
            align-items: center;
            gap: 13px;
            > p {
                font-size: 18px;
            }
            .dropdown {
                position: relative;
                display: flex;
                align-items: center;
                > p {
                    display: flex;
                    gap: 10px;
                    font-weight: 700;
                    &::after {
                        font-family: icon;
                        content: '\e902';
                    }
                }
                .items {
                    position: absolute;
                    top: 100%;
                    right: 0;
                    background: var(--c-light);
                    padding: 0 20px;
                    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                    opacity: 0;
                    visibility: hidden;
                    z-index: 9999;
                    transition: .2s linear;
                    .btn {
                        padding: 10px 0;
                    }
                }
                &:hover {
                    .items {
                        visibility: visible;
                        opacity: 1;
                    }
                }
            }
            &.active {
                .dropdown {
                    .items {
                        visibility: visible;
                        opacity: 1;
                    }
                }
            }
        }
        &::after {
            content: '';
            width: 100%;
            height: 1px;
            background: #dcdcdc;
            position: absolute;
            left: 0;
            bottom: 0;
        }
    }
    .goods {
        padding: 10px 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        .item {
            /* height: 430px; */
            background: var(--white);
            padding: 50px 34px 20px 34px;
            position: relative;
            border-radius: 5px;
            display: flex;
            flex-direction: column;
            .labels {
                position: absolute;
                display: flex;
                top: 20px;
                left: 20px;
                width: calc(100% - 40px);
                span {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 4px 10px;
                    border-radius: 20px;
                    font-weight: 400;
                    font-size: 12px;
                    text-transform: uppercase;
                }
                .new {
                    outline: 1px solid var(--c-dark);
                }
                .no {
                    background: transparent;
                    outline: 1px solid var(--c-danger);
                    color: var(--c-danger);
                }
                .sale {
                    margin-left: auto;
                    margin-right: 0;
                    background: var(--c-danger);
                    color: var(--white);
                    transition: .2s linear;
                }
                .out-s {
                    background: var(--white);
                    color: var(--c-danger);
                    outline: 1px solid var(--c-danger);
                }
            }
            img {
                object-fit: contain;
                margin-bottom: 10px;
                height: 380px;
            }
            .add_to_cart_button {
                position: absolute;
                top: 10px;
                right: 10px;
                height: 46px;
                width: 46px;
                min-width: 46px;
                color: #333;
                visibility: hidden;
                opacity: 0;
                border: none;
                z-index: 999;
                &::before {
                    content: '\e901';
                    font-size: 24px;
                    font-family: icon;
                }
            }
            h3 {
                font-size: 14px;
                text-transform: uppercase;
                font-weight: 600;
                text-align: center;
                max-width: 250px;
                margin: auto auto 0 auto;
            }
            .price {
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                width: fit-content;
                margin: 0 auto;
                margin-top: 10px;
                justify-self: flex-end;
                span {
                    position: absolute;
                    text-decoration: line-through;
                    font-size: 12px;
                    color: #b6b6b6;
                    right: -100%;
                }
                p {
                    color: #707070;
                    font-size: 14px;
                }
            }
            .product-link {
                position: absolute;
                width: 100%;
                height: 100%;
                left: 0;
                top: 0;
                z-index: 99;
            }
            .added_to_cart.wc-forward {
                display: none;
            }
            &.out-s {
                opacity: .6;
            }
        }
        &.loading {
            pointer-events: none;
            position: relative;
            &::after {
                content: "";
                position: absolute;
                inset: 0;
                background: rgba(255,255,255,.6);
                backdrop-filter: blur(2px);
                z-index: 50;
            }
            &::before {
                content: "";
                position: absolute;
                width: 32px;
                height: 32px;
                border: 3px solid #ddd;
                border-top: 3px solid var(--c-dark);
                border-radius: 50%;
                animation: cartSpin .8s linear infinite;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                z-index: 60;
            }
        }
    }
    .controls {
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        position: relative;
        .show-more {
            width: fit-content;
            display: flex;
            gap: 10px;
            font-size: 16px;
            font-weight: 400;
            color: var(--c-dark);
            &::after {
                font-family: icon;
                content: '\e905';
                transform: rotate(-90deg);
                font-size: 14px;
            }
        }
        .pagination {
            display: flex;
            gap: 20px;
            align-items: center;
            .btn {
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                width: 40px;
                height: 40px;
                min-width: 40px;
                border-radius: 20px;
            }
            .btn {
                color: var(--c-dark);
                &.active {
                    outline: 1px solid #cecece;
                }
                &.next {
                    &::before {
                        font-family: icon;
                        content: '\e906';
                    }
                }
                &.prev {
                    &::before {
                        font-family: icon;
                        content: '\e905';
                    }
                }
                &::before {
                    font-size: 12px;
                }
            }
            span {
                color: #cecece;
            }
        }
        .top {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            min-width: 40px;
            height: 40px;
            outline: 1px solid #cecece;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--c-dark);
            &::before {
                content: '+';
                font-size: 20px;
                line-height: 20px;
            }
        }
    }
}
@media screen and (max-width: 1279px) {
    section.hero-l {
        .wrapper {
            h1 {
                font-size: 64px;
                margin-top: 30px;
            }
        }
    }
    body.light div.catalog {
        padding-top: 40px;
    }
    div.catalog {
        .filter {
            .type-filter {
                .items {
                    gap: 10px;
                    .btn {
                        padding: 5px 15px;
                        font-size: 16px;
                    }
                }
            }
            .sort {
                p {
                    font-size: 15px;
                }
                .dropdown {
                    p {
                        font-size: 14px;
                    }
                }
            }
        }
        .goods {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            min-height: 400px;
            .item {
                height: 100%;
                h3 {
                    font-size: 14px;
                }
                img {
                    height: 240px;
                }   
                .add_to_cart_button {
                    visibility: visible;
                    opacity: 1;
                    height: 44px;
                    width: 44px;
                    min-width: 44px;
                    &::before {
                        font-size: 22px;
                    }
                }
                .labels .sale {
                    margin-right: 50px;
                }
            }
        }
    }
}
@media screen and (max-width: 767px) {
    section.hero-l {
        .wrapper {
            h1 {
                font-size: 40px;
            }
        }
    }
    div.catalog {
        padding: 70px 0;
        .filter {
            padding: 10px 0 0;
            .type-filter {
                position: relative;
                z-index: 999;
                .open-filter {
                    padding-bottom: 10px;
                    display: flex;
                    gap: 5px;
                    font-size: 12px;
                    &::after {
                        font-family: icon;
                        content: '\e902';
                    }
                }
                .items {
                    position: absolute;
                    z-index: 999;
                    flex-direction: column;
                    padding: 15px;
                    background: var(--white);
                    width: 220px;
                    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                    border-radius: 4px;
                    gap: 10px;
                    opacity: 0;
                    visibility: hidden;
                    transition: .2s linear;
                    .btn {
                        padding: 5px 15px;
                        font-size: 14px;
                        align-items: start;
                        justify-content: start;
                        text-align: left;
                    }
                    &.active {
                        opacity: 1;
                        visibility: visible;
                    }
                }
            }
            .sort {
                padding-bottom: 10px;
                gap: 5px;
                p {
                    font-size: 12px;
                }
                .dropdown {
                    p {
                        font-size: 12px;
                    }
                }
            }
        }
        > .goods {
            grid-template-columns: 1fr;
            gap: 10px;
        }
        .controls {
            .pagination {
                .btn {
                    width: 32px;
                    height: 32px;
                    min-width: 32px;
                    font-size: 12px;
                    &.next {
                        &::before {
                            font-family: icon;
                            content: '\e906';
                        }
                    }
                    &.prev {
                        &::before {
                            font-family: icon;
                            content: '\e905';
                        }
                    }
                }
            }
            .top {
                display: none;
            }
            .more {
                font-size: 12px;
            }
        }
    }
}
@media screen and (hover: hover) {
    div.catalog {
        .filter {
            .type-filter {
                .items {
                    .btn:hover {
                        outline: 1px solid var(--c-dark);
                    }
                }
            }
        }
        .goods .item {
            &:hover {
                .add_to_cart_button {
                    visibility: visible;
                    opacity: 1;
                    &:hover {
                        background: #333;
                        color: var(--white);
                    }
                }
                .labels .sale {
                    margin-right: 50px;
                }
            }
        }
    }
}
@media screen and (hover: none) {
    div.catalog {
        .goods .item {
            .add_to_cart_button {
                visibility: visible;
                opacity: 1;
            }
            .labels .sale {
                margin-right: 50px;
            }
        }
    }
}