@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --black-clr: #000;
    --white-clr: #FFF;
    --light_grey-clr: #F3F6FB;
    --dark_grey-clr: #71788b;
    --primary-clr: #0A669F;
    --accent-clr: #B2211F;
    --button-br: 10px;
    --block-br: 15px;
    --h1-fz: 26px;
    --h2-fz: 22px;
    --base-fz: 16px;
    --container-width: 1350px;
    --section-padding: 40px 0;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    font-size: var(--base-fz);
    overflow-x: hidden !important;
}
.wrapper {
    overflow-x: hidden !important;
}
h1, h2, h3, p {
    padding: 0;
    margin: 0;
}
a {
    text-decoration: none;
    transition: all 0.3s;
}
a:hover {
    transition: all 0.3s;
}
ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}
.section {
    padding: var(--section-padding);
}
.section-title {
    font-size: var(--h1-fz);
    font-weight: 600;
}
.remove-scroll {
    overflow-y: hidden;
}
.upper-btn {    
    background: var(--primary-clr);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    position: fixed;
    right: 20px;
    bottom: 20px;
}
.upper-btn img {
    width: 20px;
    transform: rotate(270deg);
}

/* hero section */

.hero__section {

}
.header-logo {
    width: 200px;
}
.hero__header {
    position: relative;
}
.top__header {
    display: flex;  
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.bottom__header {
    margin-top: 40px;
}
.nav-link {
    margin-right: 40px;
}
.nav-link:last-child {
    margin-right: 0;
}
.header__contacts {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    align-items: flex-end;
}
.nav-link, .header-contacts {
    color: var(--black-clr);
}
.sep__header {
    width: 100vw;
    height: 2px;
    background: var(--light_grey-clr);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.header__ctgs {
    display: flex;
    justify-content: space-between;
}
.header-ctg-link {
    color: var(--dark_grey-clr);
    font-weight: 500;
}
.hero__section-body {
    display: flex;
    align-items: flex-start;
    padding-top: 50px;
}
.hero__filter {
    width: 330px;
    border: 2px solid var(--light_grey-clr);
    border-radius: var(--block-br);
    flex-shrink: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}
.mobile-filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.mobile-filter-toggle {
    display: none;
}
.yith-wcan-filters {
    margin-bottom: 0;
}
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item > a, .yith-wcan-filters .yith-wcan-filter .filter-items .filter-item > label > a {
    color: var(--black-clr);
    text-decoration: none;
}
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item > a, .yith-wcan-filters .yith-wcan-filter .filter-items .filter-item > label > a:hover {
    color: var(--black-clr);
}
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.active > a, .yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.active > label > a {
    color: var(--black-clr) !important;
}
[type="checkbox"], [type="radio"] {
    box-sizing: border-box;
    padding: 0;
    accent-color: var(--primary-clr);
}
.filter-title {
    margin: 20px 0 5px 0;
}
.filter-name {
    font-weight: 600;
}
.filter__checkbox {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.filter__checkbox label {
    margin-left: 5px;
    margin-right: 5px;
}
.yith-wcan-reset-filters {
    border: 1px solid var(--primary-clr);
    border-radius: 8px;
    outline: none;
    padding: 8px 20px;
    background: transparent;
    cursor: pointer;
}
.yith-wcan-filters .yith-wcan-filter .filter-title {
    color: var(--black-clr);
}
.hero__catalog {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-left: 30px;
}
.catalog__card a div {
    min-height: 175px;
}
.pagination {
    margin-top: 50px;
    text-align: center;
}
.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: var(--light_grey-clr);
    color: var(--black-clr);
    border-radius: 4px;
    text-decoration: none;
}
.pagination .current {
    background: #333;
    color: #fff;
}

/* doublepromo section */

.doublepromo__section-container {
    display: flex;
    justify-content: space-between;
}
.doublepromo__section-body {
    width: 49%;
    border-radius: var(--block-br);
    min-height: 250px;
}
.doublepromo__section-body:nth-child(1) {
    background: var(--light_grey-clr);
}
.doublepromo__section-body:nth-child(2) {
    background: var(--primary-clr);
}

/* footer section */

.footer__section {
    background: #1A1A1A;
}
.footer__section-container {
    display: flex;
    flex-direction: column;
    row-gap: 80px;
}
.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-nav-link {
    margin-right: 40px;
    color: var(--white-clr);
}
.footer-nav-link:last-child {
    margin-right: 0;
}
.footer-btn {
    border-radius: var(--button-br);
    padding: 15px 40px;
    color: var(--white-clr);
    background: var(--primary-clr);
}
.footer-logo {
    width: 200px;
}
.footer__mid {
    display: flex; 
    justify-content: space-between;
    align-items: center;
}
.footer-contacts {
    font-size: 25px;
    font-weight: 600;
    color: var(--white-clr);
}
.footer-rights {
    text-align: center;
    color: var(--white-clr);
    font-size: 12px;
}

@media (max-width: 600px) {

    :root {
        --container-width: 330px;
        --h1-fz: 18px;
        --h2-fz: 16px;
        --section-padding: 20px 0;
    }

    /* main section */

    .hero__section-body {
        flex-direction: column;
        row-gap: 30px;
    }
    .hero__catalog {
        margin-left: 0;
    }
    .hero__filter {
        padding: 0;
        border: none;
    }
    .mobile-filter-toggle {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        background-color: var(--primary-clr, #0a669f);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }
    .mobile-filter-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .mobile-filter-wrapper.active .mobile-filter-content {
        max-height: 2000px; 
        opacity: 1;
    }
    .mobile-filter-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        width: 100%; 
        padding: 12px 16px;
        font-size: 16px;
        background-color: var(--primary-clr, #0a669f);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: width 0.3s ease; 
        flex-shrink: 1; 
    }
    .mobile-filter-toggle {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        background-color: var(--primary-clr, #0a669f);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }
    .mobile-filter-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .mobile-filter-wrapper.active .mobile-filter-content {
        max-height: 2000px; 
        opacity: 1;
    }
    .mobile-filter-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        font-size: 15px;
        background-color: var(--primary-clr, #0a669f);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }
    .filter-arrow {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid white;
        border-bottom: 2px solid white;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin-top: 2px;
    }
    .mobile-filter-wrapper.active .filter-arrow {
        transform: rotate(-135deg);
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .mobile-filter-buttons .yith-wcan-reset-filters {
        display: none; 
        padding: 12px 16px;
        font-size: 15px;
        background-color: var(--accent-clr); 
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        flex-shrink: 1;
        width: auto; 
    }
    .mobile-filter-buttons .yith-wcan-reset-filters.moved-by-script {
        display: block; 
        flex: 1; 
    }
    .mobile-filter-buttons .yith-wcan-reset-filters.moved-by-script ~ .mobile-filter-toggle {
        width: auto; 
        flex: 1; 
    }
    .yith-wcan-filters .yith-wcan-filter {
        margin-bottom: 15px;
    }
    .catalog__card a div {
        min-height: unset;
    }

}