* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --black: #000000;
    --main: #C8CED3;
    --second: #E9D2BC;
    --white: #ffffff;
}

@font-face {
    font-family: "Bergamasco";
    src: url(../fonts/Bergamasco\ Regular.otf);
}

@font-face {
    font-family: "Dudka Bold";
    src: url(../fonts/Dudka\ Bold.ttf);
}

@font-face {
    font-family: "Dudka";
    src: url(../fonts/Dudka\ Regular.ttf);
}

body {
    font-family: "Dudka", sans-serif;
    color: var(--black);
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* минимальная высота на весь экран */
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
    /* дополнительная страховка, но flex:1 уже делает работу */
}

.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--main);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container-header {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 23px 0 23px 0;
}

.logo {
    text-align: center;
}

.menu-header {
    display: flex;
    gap: 40px;
}

.primary-navigation {
    font-size: 18px;
    justify-self: start;
}

.menu-header li {
    list-style: none;
    margin: 0 auto;
    display: inline-block;
    position: relative;
    text-decoration: none;
    text-align: center;
}

li a {
    color: black;
}

.menu-header li a:hover {
    color: rgb(0, 0, 0, 60%);
}


.dropdown {
    border-radius: 20px;
}

.dropdown li a:hover {
    color: var(--main);
}

li:hover {
    cursor: pointer;
}

.menu-header li ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    padding-left: 0;
    left: 0;
    display: none;
    background: white;

}

.menu-header li:hover>ul,
ul li ul:hover {
    visibility: visible;
    opacity: 1;
    display: block;
    min-width: 175px;
    text-align: left;
    box-shadow: 0px 3px 5px -1px #ccc;

}

.menu-header li .dropdown li {
    clear: both;
    width: 100%;
    text-align: left;
    /* margin-bottom: 20px; */
    border-style: none;
    padding: 20px 20px 10px 20px;
}


.visually-hidden {
    visibility: hidden;
}

.logo__text {
    font-size: 1px;
}


.navbar-items {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}


.navbar-items a img {
    width: 100%;
}

a {
    text-decoration: none;
    color: var(--black);
}

.header-search-block:focus,
.header-search-block:hover {
    outline: 2px solid var(--black);
    border-radius: 20px;
}

.header-search-block form {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.header-search-block__search {
    height: 38px;
    border: 0;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 0 5px;
    outline-color: transparent;
    width: calc(100% - 38px);
    font-family: "Dudka";
}

.header-search-submit {
    background: url(/images/icons/iconamoon_search-light.svg) no-repeat center;
    height: 38px;
    width: 38px;
    border: 0;
    outline-color: transparent;
    cursor: pointer;
    background-color: #fff;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;

}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    cursor: pointer;

    height: 20px;
    width: 20px;
    background: url("../images/icons/iconamoon_close-duotone.svg") no-repeat center;
}


/* интро */

.intro {
    background: url(../images/Group\ 89.png) no-repeat center;
    background-size: cover;
    /* background-color: var(--main); */
    height: 100%;
}




.text-box {
    display: flex;
    flex-direction: column;
    align-items: end;
    font-size: 26px;
    padding-top: 60%;
}

.title-intro {
    font-style: normal;
    font-weight: 400;
    font-size: 26px;
    line-height: 27px;
    font-family: "Bergamasco";
    margin-top: 1px;
}

.line-intro {
    width: 235px;
    height: 1px;
    background-color: var(--black);
    margin-top: 5px;
    margin-bottom: 115px;

}

.primary-navigation {
    flex: 1;
    display: flex;
    align-items: center;
}

/* кнопка-гамбургер (только для планшетов и мобильных) */
.hamburger-button {
    display: none;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 0;
    z-index: 3;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

/* анимация в крестик при открытом меню */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger-button {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--main);
    z-index: 4;
    padding: 80px 24px 32px;
    transition: left 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
}

.mobile-menu-list a {
    font-size: 20px;
    color: var(--black);
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.mobile-dropdown {
    margin-top: 12px;
    margin-left: 16px;
    list-style: none;
    display: none;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown li {
    margin-bottom: 12px;
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-dropdown a {
    font-size: 16px;
    opacity: 0.8;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-toggle img {
    width: 25px;
}

.dropdown-arrow {
    transition: transform 0.2s;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============= LEGAL============== */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
}

.legal-title {
    font-family: 'Bergamasco', serif;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.legal-page .main-title {
    padding-left: 0;
    text-align: center;
}

.legal-content {
    font-family: 'Dudka', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.legal-content p {
    margin: 1.2em 0;
}

.legal-content ul {
    margin: 0.5em 0 1em 2em;
}

.legal-content li {
    margin: 0.3em 0;
}

.legal-content strong {
    font-weight: 600;
}

/* ==============КОЛЛЕКЦИЯ============== */

.main-title {
    font-family: 'Bergamasco';
    font-style: normal;
    font-weight: 400;
    font-size: 26px;
    line-height: 27px;
    padding: 100px 0 50px 50px;
    text-transform: uppercase;
}

.title {
    font-family: 'Bergamasco';
    font-style: normal;
    font-weight: 400;
    font-size: 26px;
    line-height: 27px;
    padding: 0 0 50px 100px;
}


.grid-collection {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Ограничиваем максимальную ширину карточки, чтобы она не становилась огромной */
.product-card {
    max-width: 300px;
    /* при желании можно увеличить до 320px */
    width: 100%;
    justify-self: center;
}

/* Для очень широких экранов – 5 колонок, но карточки не шире 300px */
@media screen and (min-width: 1300px) {
    .grid-collection {
        grid-template-columns: repeat(5, minmax(180px, 1fr));
    }

    .product-card {
        max-width: 280px;
    }
}

/* 4 колонки */
@media screen and (max-width: 1299px) and (min-width: 900px) {
    .grid-collection {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
    }
}

/* 3 колонки (планшеты) */
@media screen and (max-width: 899px) and (min-width: 600px) {
    .grid-collection {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
        gap: 20px;
    }
}

/* 2 колонки (мобильные телефоны) */
@media screen and (max-width: 599px) {
    .grid-collection {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        max-width: none;
        /* на мобильных можно убрать ограничение */
    }
}

.product-card {
    width: 100%;
}

.product-img {
    width: 100%;
    height: auto;
    display: block;
}

.bottom-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    /* justify-self: end; */
}

.product-card__heart {
    background: url(../images/icons/heart.svg) no-repeat;
    border: none;
    width: 20px;
    height: 18px;
    cursor: pointer;
    transition: 0.6s;
    background-size: contain;
}


.product-card__heart.active {
    background: url(../images/icons/hearth-full.svg) no-repeat;
}
.product-card__heart {
    background-size: contain !important;
    background: url(../images/icons/heart.svg) no-repeat;
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
}

.product-card__heart.active {
    background-size: contain !important;
    background: url(../images/icons/hearth-full.svg) no-repeat;
    width: 20px;
    height: 18px;
}
.cart-button {
    width: 100%;
    font-family: "Dudka", sans-serif;
    border-radius: 10px;
    background-color: var(--second);
    border: none;
    padding: 8px 0;
    transition: 0.6s;
    cursor: pointer;
}.product-card__heart {
    background-size: contain !important;
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
}

.product-card__heart.active {
    background-size: contain !important;
    width: 20px;
    height: 18px;
}

.cart-button:hover {
    background-color: var(--main);
}

.button-catalog {
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-catalog button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border: none;
    border-radius: 30px;
    font-family: "Dudka", sans-serif;
    background-color: var(--main);
    margin-top: 50px;
    transition: 0.9s;
}

.button-catalog button:hover {
    cursor: pointer;
    transform: scale(1.04);

}

/* =============КАТЕГОРИ============ */

.grid-category {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.item-category {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 30px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 431 / 262;
    border-radius: 15px;
}



.item-category a {
    font-size: 22px;
    color: var(--black);
    max-width: 193px;
}

.item-category a:hover {
    color: rgb(0, 0, 0, 75%);
}

.it1 {
    grid-row: span 2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(../images/category-img.png);
    min-height: auto;
}


.it2 {
    background: url(../images/long.png) no-repeat;
}

.it3 {
    background: url(../images/jacket.png) no-repeat;
}

.it4 {
    background: url(../images/short.png) no-repeat;
}

.it5 {
    background: url(../images/warm.png) no-repeat;
}


/* ===========ОТЗЫВЫ============== */

.container-reviews {
    max-width: 1340px;
    margin: 0 auto;
}

.box-reviews {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* gap: 80px; */
}

.item-reviews {
    padding: 25px;
    background-color: rgb(233, 210, 188, 50%);
    border-radius: 15px;
    max-width: 360px;
    height: 178px;
}

.top-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.box-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.box-user img {
    width: 35px;
}

.user-name {
    font-size: 18px;
}

.bottom-review {
    font-size: 16px;
}


/* ===========FOOTER============= */

footer {
    background-color: var(--second);
    margin-top: 100px;
}

.box-footer {
    padding: 50px 0px;
}

.top-footer {
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding-bottom: 50px;
    flex-wrap: wrap;
}

.left-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo-footer {
    width: 119px;
}

.slogan {
    font-size: 18px;
}

.connection-btn {
    font-size: 16px;
    background-color: var(--white);
    border-radius: 30px;
    padding: 10px 20px;
    max-width: 168px;
    margin-bottom: 10px;
}

.right-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 50px;
}

.buyers {
    max-width: 164px;
}

.links-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-footer li {
    list-style-type: none;
}

.title-footer {
    font-size: 18px;
    padding-bottom: 15px;
    font-weight: 600;
}

.line-footer {
    width: 100%;
    background-color: var(--black);
    height: 1px;
    margin-bottom: 10px;
}

.underline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social {
    display: flex;
    gap: 10px;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========КАТАЛОГ============= */
.modal-catalog {
    display: none;
    position: fixed;
    z-index: 10;
    /* background-color: var(--white); */
    /* border: 1px solid var(--main); */
    margin-bottom: 30px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Центрируем содержимое */
    justify-content: center;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    font-size: 16px;
    font-weight: bold;
    padding-top: 10px;
}

#openModal {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-family: "Dudka", sans-serif;
    background-color: transparent;
    padding: 7px 10px;
    border: 1px solid var(--main);
    gap: 5px;
    cursor: pointer;
    margin-bottom: 30px;
}

#openModal:hover,
#opneModal:focus {
    border: 1px solid var(--black);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.content-catalog-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    /* максимальная ширина */
    margin: 10% auto;
    padding: 20px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.name-modal-catalog {
    font-size: 14px;
}

.mobile-filter-btn {
    display: none;
    background: #C8CED3;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'Dudka', sans-serif;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Модальное окно для отзыва */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-content .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

/* Модальное окно, выезжающее слева */
.mobile-side-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: hidden;
}

.mobile-side-modal-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-side-modal.open .mobile-side-modal-content {
    transform: translateX(0);
}

.mobile-side-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--main);
    font-size: 20px;
    font-weight: bold;
}

.close-side-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.mobile-side-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-side-modal-footer {
    padding: 20px;
    border-top: 1px solid #C8CED3;
    display: flex;
    gap: 15px;
}

.mobile-side-modal-footer button {
    flex: 1;
    padding: 10px;
    background: black;
    color: white;
    font-family: "Dudka";
}

#mobileResetFilters {
    background: #C8CED3;
    border: none;
}

/* Стили для фильтров внутри модального окна */
.mobile-side-modal-body .filter-group {
    margin-bottom: 25px;
}

.mobile-side-modal-body .filter-group-label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    font-size: 16px;
}

.mobile-side-modal-body select {
    width: 100%;
    padding: 10px;
    border-radius: 30px;
    border: 1px solid var(--main);
    font-family: 'Dudka', sans-serif;
}

.mobile-side-modal-body .price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mobile-side-modal-body .price-range input {
    width: 100%;
    padding: 8px;
    border-radius: 30px;
    border: 1px solid var(--main);
}

.mobile-side-modal-body .color-checkboxes {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-side-modal-body .color-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    /* background: #f5f5f5; */
    padding: 4px 10px;
    border-radius: 30px;
}

/* Модальное окно выбора размера */
.size-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.size-modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.size-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--main);
    font-size: 20px;
    font-weight: bold;
}

.size-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.size-modal-body {
    padding: 20px 0;
}

.size-option {
    display: inline-block;
    margin: 5px;
    padding: 8px 16px;
    border: 1px solid var(--main);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.size-option.selected {
    background: var(--black);
    color: white;
    border-color: var(--black);
}

.size-modal-footer {
    text-align: center;
}

#confirmAddToCart {
    background: var(--black);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Dudka', sans-serif;
    font-size: 16px;
}

#confirmAddToCart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== ДЕСКТОПНЫЕ ФИЛЬТРЫ (ПОЛНОСТЬЮ ВОССТАНОВЛЕНЫ) ========== */
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-summary {
    background: var(--main);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Dudka', sans-serif;
    font-size: 16px;
}

.filter-summary .arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.filter-dropdown.active .filter-summary .arrow {
    transform: rotate(180deg);
}

.filter-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--main);
    border-radius: 20px;
    padding: 15px;
    min-width: 220px;
    z-index: 10;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-dropdown.active .filter-panel {
    display: block;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-range input {
    width: 100px;
    padding: 8px 10px;
    border: 1px solid var(--main);
    border-radius: 30px;
    font-family: 'Dudka', sans-serif;
    text-align: center;
}

.color-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 300px;
    margin-bottom: 12px;
}

.color-checkboxes label {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 30px;
    cursor: pointer;
}

.color-checkboxes label:hover {
    background: var(--main);
}

.filter-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.apply-btn,
.reset-btn {
    padding: 6px 16px;
    border-radius: 30px;
    font-family: 'Dudka', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-btn {
    background: var(--black);
    color: white;
    border: none;
}

.apply-btn:hover {
    background: #333;
}

.reset-btn {
    background: transparent;
    border: 1px solid var(--black);
    color: var(--black);
}

.reset-btn:hover {
    background: #f0f0f0;
}

.filter-panel select {
    width: 100%;
    padding: 10px 12px;
    font-family: 'Dudka', sans-serif;
    font-size: 14px;
    border: 1px solid var(--main);
    border-radius: 30px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-panel select:hover,
.filter-panel select:focus {
    border-color: var(--black);
    outline: none;
}

.found-count {
    margin: 20px 0;
    font-size: 16px;
    color: #555;
}

/* ========== МОБИЛЬНЫЕ СТИЛИ (кнопка и боковое меню) ========== */
.mobile-filter-btn {
    display: none;
    background: var(--main);
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'Dudka', sans-serif;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-side-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: hidden;
}

.mobile-side-modal-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-side-modal.open .mobile-side-modal-content {
    transform: translateX(0);
}

.mobile-side-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--main);
    font-size: 20px;
    font-weight: bold;
}

.close-side-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.mobile-side-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-side-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--main);
    display: flex;
    gap: 15px;
}

.mobile-side-modal-footer button {
    flex: 1;
    padding: 10px;
    font-family: 'Dudka', sans-serif;
    font-size: 16px;
    border-radius: 30px;
}

.mobile-side-modal-footer .apply-btn {
    background: var(--black);
    color: white;
}

.mobile-side-modal-footer .reset-btn {
    background: #eee;
    border: 1px solid #ccc;
}

.mobile-side-modal-body .filter-group {
    margin-bottom: 25px;
}

.mobile-side-modal-body .filter-group-label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    font-size: 16px;
}

.mobile-side-modal-body select {
    width: 100%;
    padding: 10px;
    border-radius: 30px;
    border: 1px solid var(--main);
    font-family: 'Dudka', sans-serif;
}

.mobile-side-modal-body .price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mobile-side-modal-body .price-range input {
    width: 100%;
    padding: 8px;
    border-radius: 30px;
    border: 1px solid var(--main);
}

.mobile-side-modal-body .color-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-side-modal-body .color-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 30px;
}

/* Адаптивность: скрываем десктопные фильтры на мобильных, показываем кнопку */
@media (max-width: 767px) {
    .desktop-filters {
        display: none;
    }

    .mobile-filter-btn {
        display: inline-block;
    }Ы
}

@media (min-width: 768px) {
    .mobile-filter-btn {
        display: none;
    }

    .mobile-side-modal {
        display: none !important;
    }
}

/* ==============ABOUT=============== */


.desc-brand {
    display: flex;
    justify-content: space-between;

}

.video-brand {
    padding: 15px 15px 0 15px;
    background-color: var(--main);
    max-width: 100%;
    box-sizing: border-box;
}

video {
    max-width: 611px;
    width: 100%;
    height: auto;
    display: block;
}

.pozitive {
    text-align: center;
    font-size: 18px;
    padding-top: 10px;
    padding-bottom: 15px;
}

.text-brand {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.big-brand {
    font-style: normal;
    font-weight: 400;
    font-size: 128px;
    line-height: 25px;
    text-align: right;
    color: rgba(200, 206, 211, 0.25);
    margin-top: 40px;
    margin-bottom: 50px;
}

.text-box-brand {
    display: flex;
    gap: 20px;
    text-align: right;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    /* or 139% */
    text-align: right;
}

.text-box-brand p {
    max-width: 433px;
}

.text-box-brand p:first-child {
    margin-bottom: 20px;
}

.line-brand {
    width: 20px;
    background-color: var(--main);
}

.desc-work {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
}

.text-work {
    display: flex;
    gap: 20px;

}

.text-work div {
    max-width: 612px;
    font-size: 18px;
    line-height: 25px;
}

.list-structure {
    margin-left: 1.5rem;
}

.work-img {
    max-width: 100%;
    height: auto;
}

.advantages {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.text-adv {
    text-align: center;
    max-width: 861px;
    margin-top: 50px;
}


/* ===========faq=========== */
.faq-section {
    max-width: 1340px;
    margin: 20px auto;
    line-height: 25px;
    padding: 020px;
}

.line-faq {
    width: 100%;
    height: 1px;
    background-color: var(--black);
    margin-bottom: 30px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8px;
    cursor: pointer;
    gap: 16px;
}

.faq-question span {
    font-weight: 500;
    font-size: 22px;
    line-height: 1.4;
}

.faq-answer img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

.faq-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #333;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}


.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
    border-radius: 0 0 8px 8px;
    font-size: 18px;
}

.faq-answer>div {
    overflow: hidden;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.subtitle-faq {
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;


}

.box-delivery {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ==========ФОРМА ВОПРОСОВ========== */
.faq-form-section {
    margin-bottom: 80px;
}

.faq-form-section .container .main-title {
    text-align: center;
}

.question-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.questions-profile {
    max-width: 700px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 18px;
    line-height: 20px;
    color: var(--black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--main);
    border-radius: 30px;
    background: var(--white);
    font-family: "Dudka", sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--black);
}

.form-group textarea {
    border-radius: 20px;
}

.btn-submit {
    align-self: center;
    padding: 14px 40px;
    background-color: var(--second);
    border: none;
    border-radius: 30px;
    font-family: "Dudka", sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--main);
}

.form-note {
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
    margin-top: 8px;
}

/* ============ТРЕНДЫ============== */

.trends-title {
    font-family: 'Bergamasco';
    font-style: normal;
    font-weight: 400;
    font-size: 26px;
    line-height: 27px;
    background-color: rgb(200, 206, 211, 25%);
    padding: 25px 0;
    text-align: center;
    margin-top: 75px;
    margin-bottom: 75px;
}

.container-trends {
    max-width: 1020px;
    margin: 0 auto;
}

.box-trends {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 100px;
    justify-content: center;
    margin: 0 auto;
    padding: 0 20px;
}

.item-trends {
    width: 100%;
    max-width: 450px;
    justify-self: center;
}

.item-trends img {
    width: 100%;
    height: auto;
}

.trends-subtitle {
    font-weight: 400;
    font-size: 20px;
    line-height: 25px;
    margin-top: 15px;
}

.promo-trends {
    font-weight: 100;
    font-size: 16px;
    line-height: 25px;
    margin-top: 10px;
}

.line-trends {
    width: 100%;
    height: 2px;
    background-color: var(--main);
    margin: 30px 0;
}

/* =============РЕГИСТРАЦИЯ============= */


.title-sign {
    font-family: 'Bergamasco';
    font-style: normal;
    font-weight: 400;
    font-size: 26px;
    line-height: 27px;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 100px;
}

.sign-form {
    display: flex;
    flex-direction: column;
    max-width: 375px;
    margin: 0 auto;
    gap: 10px;
}

.sign-form .data-sign {
    font-size: 14px;
    padding: 12px 0 12px 20px;
    border: 1px solid black;
    font-family: "Dudka";
}

.beg {
    color: var(--second);
}

.check-form {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.check-form label {
    margin-left: 10px;
}

.check-form input[type="checkbox"] {
    margin: 10px 0;
}

.bottom-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-sign {
    font-size: 14px;
    font-family: "Dudka";
    padding: 12px 25px;
    background-color: var(--main);
    border: none;
}

.bottom-form p {
    font-size: 12px;
}

.ques {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
}

.ques p a {
    font-weight: 600;
    line-height: 17px;
    color: var(--main);
}

.sign-form input::placeholder {
    color: var(--second);
    opacity: 80%;
}


/* ===============КОРЗИНА================== */


.line-title {
    width: 100%;
    height: 1px;
    background-color: var(--black);
    margin-bottom: 30px;
}

.top-cart {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 18px;
}

.products-in-cart {
    font-size: 18px;
}

.remove-cart {
    display: flex;
    justify-content: space-between;
    max-width: 167px;
    gap: 7px;
}

.remove-cart img {
    width: 12px;
}

.info-cart {
    display: flex;
    gap: 20px;
}

.wrap-product {
    border: 1px solid var(--main);
    padding: 30px;
    width: 100%;
    max-width: 887px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.item-product {
    display: flex;
}

.item-product .item-photo {
    max-width: 113px;
    width: 100%;
    height: auto;
    /* margin-right: 25px; */
}

.info-product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-left: 25px;
}

.top-product {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.info-product .name-product {
    font-size: 16px;
    padding-top: 0;
    margin-right: 10px;
}

.price-product {
    font-size: 16px;
}

.bottom-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrap-details {
    display: flex;
    gap: 10px;
}

.size {
    border: 1px solid var(--main);
    padding: 3px 10px;
    text-align: center;
}

.count {
    border: 1px solid var(--main);
    padding: 3px 10px;
    text-align: center;
}

.delete-product {
    max-width: 24px;
}

.wrap-ordering {
    /* max-width: 433px; */
    width: 100%;
}

.wrap-cost {
    border: 1px solid var(--main);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.sum {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.total {
    align-items: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.btn-ordering {
    width: 100%;
    margin-top: 10px;
    border: none;
    background-color: var(--black);
    color: var(--white);
    font-size: 18px;
    padding: 10px;
    font-family: "Dudka";
    transition: 0.6s;
    cursor: pointer;
}

.btn-ordering:hover {
    transform: scale(1.03);
}

.note-order {
    margin-top: 15px;
    font-size: 18px;
}

.note-order a {
    text-decoration: underline;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--black);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dudka', sans-serif;
}

.cart-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--black);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Dudka', sans-serif;
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cart-notification.error {
    background-color: #f44336;
}

.cart-notification.show {
    opacity: 1;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.clear-cart-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Dudka', sans-serif;
    color: #999;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-cart-link:hover {
    color: #333;
}

.qty-form {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--main);
    border-radius: 30px;
    padding: 4px 12px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    text-align: center;
    font-weight: bold;
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-num {
    min-width: 30px;
    text-align: center;
}

.delete-product img {
    width: 20px;
    height: 20px;
}

.delete-product {
    background: none;
    border: none;
    cursor: pointer;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.top-product {
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 100%;
}

.total-price-product {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.empty-cart p {
    margin-bottom: 20px;
}

/* ============ОФОРМЛЕНИЕ ЗАКАЗА============== */


.wrap-order {
    display: flex;
    gap: 55px;
}

.wrap-info {
    max-width: 770px;
    width: 100%;
}

.order-contact .order-title {
    margin-top: 0;
}

.order-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
    margin-top: 30px;
}


.order-inputs {
    display: flex;
    gap: 0 20px;
}

.order-inputs:last-child {
    margin-top: 20px;
}

.order-inputs input {
    max-width: 375px;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-family: "Dudka";
    border: 1px solid var(--black);
}

.order-inputs input::placeholder {
    color: var(--second);
    opacity: 100%;
}

.item-variants-delivery {
    gap: 10px;
    /* align-items: start;s */
    display: flex;
    align-items: start;
    margin-bottom: 20px;
}

.more {
    display: flex;
    justify-content: space-between;
    width: 100%;

}

.term {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.term h6 {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 17px;
    margin-bottom: 5px;
}

.term p {
    font-size: 14px;
    color: var(--main);
}

.line-ordering {
    width: 100%;
    height: 1px;
    background-color: var(--black);

}

.line-ordering:not(:last-child) {
    margin-bottom: 15px;

}

input[type='radio'] {
    accent-color: var(--black);
}

.variants-paymethod:not(:last-child) {
    margin-bottom: 20px;
}

.btn-request {
    padding: 9px 0;
    width: 100%;
    max-width: 375px;
    background-color: var(--black);
    font-family: 'Dudka';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 19px;
    color: #FFFFFF;
    margin-top: 40px;
}

.btn-request {
    max-width: 100%;
    width: 100%;
}

.item-summa,
.summa-total {
    display: flex;
    justify-content: space-between;
}

.summa-total {
    font-size: 18px;
    font-weight: bold;
}

.summa {
    border-bottom: 1px solid var(--black);
    width: 100%;
}

.summa {
    padding-bottom: 10px;
}

.summa,
.box-summa {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summa {
    margin-top: 20px;
}

.price-product,
.summa-price,
.right-sum,
.right-total,
.product-price {
    white-space: nowrap;
}

/* ===========404============== */

.wrap-error404 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin-top: 100px;
}

.num-err,
.text-err {
    font-family: "Bergamasco";
}

.num-err {
    font-size: 256px;
}

.text-err {
    font-size: 40px;
    max-width: 415px;
}

.desc-err {
    font-size: 24px;
    max-width: 750px;
    margin: 20px 0;
}

.btns-link-err {
    display: flex;
    gap: 25px;
}

.btn-link {
    font-family: "Dudka";
    font-size: 14px;
    padding: 13px 60px;
    transition: 0.4s;
    cursor: pointer;
}

.btn-link-catalog {
    background-color: var(--main);
    border: none;
}

.btn-link-index {
    background-color: transparent;
    border: 1px solid var(--black);
}

.btn-link-catalog:hover,
.btn-link-index:hover {
    transform: scale(1.03);
}

.wrap-success {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.wrap-success .main-title {
    padding-left: 0;
}

/* ==============КАРТОЧКА ТОВАРА=============== */
.wrap-card-product {
    margin-top: 10px;
}

.top-card-product {
    display: flex;
    gap: 50px;
}

.images-product {
    display: flex;
    gap: 30px;
}

.images-product img {
    max-width: 375px;
    width: 100%;
    height: auto;
}

.particular-product {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.name-card-product {
    font-size: 20px;
    padding: 5px 0;
}

.list-size {
    display: flex;
    gap: 10px;
}

.list-size li {
    list-style-type: none;
}

.list-size li button {
    font-size: 16px;
    max-width: 30px;
    width: 100%;
    padding: 3px 5px;
    text-align: center;
    font-family: "Dudka";
    background-color: transparent;
    border: 1px solid var(--main);
    transition: 0.6s;
}

.list-size li button:hover {
    background-color: var(--main);
    border: 1px solid var(--black);
}

.link-tablesize {
    font-size: 12px;
    text-decoration: underline;
    margin-top: 5px;
    cursor: pointer;
}

.price-card-product {
    font-size: 20px;
}


.titles-bottom-product {
    display: flex;
    gap: 30px;
    font-size: 18px;
    font-weight: normal;
    margin-top: 55px;
}

.title-bottom-product {
    cursor: pointer;
    transition: 0.6s;
}

.title-bottom-product:hover {
    transform: scale(1.03);
}

.active-title {
    color: var(--second);
}

.line-title-bottom {
    width: 100%;
    background-color: var(--black);
    height: 1px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.box-text-desc {
    font-family: 'Dudka';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    text-align: justify;

}

.tab-panel {
    display: none;
}

.tab-panel.active-panel {
    display: block;
}

.box-product-reviews {
    display: flex;
    gap: 50px;
}

.card-item-review {
    max-width: 400px;
    width: 100%;
    background-color: rgb(233, 210, 188, 50%);
    border-radius: 15px;
    padding: 25px;
}

.card-item-review h5 {
    font-size: 18px;
}

.card-item-review p {
    font-size: 16px;
    line-height: 25px;
}

.error {
    color: #fd5a5a;
    text-align: center;
    padding-bottom: 10px;
}

.box-product-reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card-item-review {
    max-width: 400px;
    width: 100%;
}

.breadcrumbs {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.product-breadcrums {
    margin-top: 90px;
}

.breadcrumbs a {
    color: var(--black);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.size-btn.active-size {
    background-color: var(--black);
    color: white;
    border-color: var(--black);
}

.cart-button-main {
    width: 270px;
    /* width: 100%; */
    font-family: "Dudka", sans-serif;
    background-color: var(--black);
    border: none;
    padding: 8px 50px;
    transition: 0.6s;
    cursor: pointer;
    color: var(--white);
    font-size: 16px;
    /* margin-top: 15px; */
}

.cart-button-main:hover {
    background-color: var(--main);
}

.cart-button-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Модальное окно таблицы размеров */
.size-table-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.size-table-modal-content {
    position: relative;
    background-color: #fff;
    margin: auto;
    padding: 10px;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.size-table-modal-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.size-table-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.size-table-close:hover {
    color: #000;
}



/* ============ПРОФИЛЬ========== */
.wrap-profile {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.navbar-profile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-navbar {
    font-family: 'Dudka', sans-serif;
    font-size: 18px;
    color: var(--black);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s;
    display: block;
}

.link-navbar:hover {
    background: var(--main);
}

.link-navbar.active {
    background: var(--black);
    color: var(--white);
    font-weight: 600;
}

.content-profile>div {
    display: none;
}

.content-profile>div.active {
    display: block;
}

.form-group {
    margin-bottom: 5px;
}

.write-review-btn {
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-family: "Dudka", sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: block;
}

.order-item {
    margin-top: 10px;
}

.write-review-btn:hover {
    background-color: var(--main);
    color: var(--black);
}

/* Простейшие стили для кнопки показа/скрытия (например, фильтры или список) */
.toggle-items-btn {
    background-color: var(--main);
    color: var(--black);
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    font-family: "Dudka", sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.toggle-items-btn:hover {
    background-color: var(--second);
}

/* Стили для данных клиента */
.profile-form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-form label {
    font-weight: 600;
}

.profile-form input {
    width: 100%;
    outline: none;

    font-size: 16px;
    padding: 12px 0 12px 20px;
    border: 1px solid black;
    font-family: "Dudka";
}

.profile-form input:focus {
    border-color: var(--main);
}

.profile-form button {
    align-self: flex-start;
    padding: 12px 0px;
    background: var(--black);
    border: none;
    font-family: 'Dudka', sans-serif;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.profile-form button:hover {
    background: var(--main);
}

/* Заказы */
.orders-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 2px solid var(--main);
    border-radius: 30px;
    background: transparent;
    font-family: 'Dudka', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.order-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.order-info p {
    margin: 4px 0;
}

.order-status {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-archive {
    background: #e2e3e5;
    color: #383d41;
}

/* Избранное */
.likes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.product-card {
    width: 100%;
}

.product-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.name-product {
    font-size: 16px;
    height: 33px;
    /* margin-top: 10px; */
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    margin: 5px 0;
    letter-spacing: 1px;
}

.delete-like {
    background: none;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.delete-like:hover {
    background: #eee;
}

.heart_full {
    background: url(../images/icons/hearth-full.svg) no-repeat;
    border: none;
    width: 20px;
    cursor: pointer;
}

/* Форма вопроса */


.question-form-profile {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-form-profile textarea {
    width: 100%;
    font-family: 'Dudka', sans-serif;
    font-size: 16px;
    resize: none;
    min-height: 120px;
    outline: none;
    padding: 12px 25px 12px 20px;
    border: 1px solid black;
}

#message {
    resize: none;
}

.question-form-profile textarea:focus {
    border-color: var(--black);
}

.question-form-profile button {
    /* align-self: center; */
    align-self: flex-start;
    padding: 12px 0px;
    background: var(--black);
    border: none;
    font-family: 'Dudka', sans-serif;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.question-form-profile button:hover {
    background: var(--main);
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-align: center;

}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.cancel-order-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Dudka', sans-serif;
    /* margin-top: 5px; */
}

.cancel-order-btn:hover {
    background: #c82333;
}

.cart-button.in-cart {
    background-color: var(--main);
    cursor: default;
    opacity: 0.8;
}

.cart-button.in-cart:hover {
    background-color: var(--main);
    transform: none;
}
/* ========== ПРИНУДИТЕЛЬНОЕ ОТКЛЮЧЕНИЕ СИНЕГО ЦВЕТА НА IOS ========== */
button,
.btn-small,
.btn-ordering,
.btn-link,
.cart-button,
.cart-button-main,
.product-card__heart,
.filter-btn,
.open-size-modal-btn,
.confirmAddToCart,
.btn-ordering *,
.cart-button *,
.filter-btn *,
.btn-link *,
.btn-small *,
a,
input[type="submit"],
input[type="button"],
button span,
button div,
.link-navbar,
.toggle-items-btn,
.write-review-btn,
.cancel-order-btn,
.qty-btn,
.clear-cart-link,
.apply-btn,
.reset-btn,
.filter-summary,
.mobile-filter-btn,
.close-side-modal,
#confirmAddToCart {
    color: #000000 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
}

/* Переопределение для всех состояний ссылок и кнопок */
a:link, a:visited, a:hover, a:active,
button:link, button:visited, button:hover, button:active,
.btn-small:link, .btn-small:visited, .btn-small:hover, .btn-small:active,
.btn-ordering:link, .btn-ordering:visited, .btn-ordering:hover, .btn-ordering:active,
.filter-btn:link, .filter-btn:visited, .filter-btn:hover, .filter-btn:active,
.cart-button:link, .cart-button:visited, .cart-button:hover, .cart-button:active {
    color: #000000 !important;
}

/* Принудительно убираем синий у всех элементов внутри .navbar-profile, .orders-filters, .cart-button, .filter-btn */
.navbar-profile a,
.orders-filters button,
.cart-button,
.filter-btn,
.btn-ordering,
.btn-link-catalog,
.btn-link-index,
.btn-sign,
.btn-submit,
.link-navbar,
.toggle-items-btn,
.write-review-btn,
.cancel-order-btn,
.qty-btn,
.clear-cart-link,
.apply-btn,
.reset-btn,
.filter-summary,
.mobile-filter-btn,
.close-side-modal,
#confirmAddToCart {
    color: #000000 !important;
}
@media screen and (max-width: 1200px) {
    .desc-brand {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .video-brand {
        margin: 0 auto;
        padding: 10px;

    }

    .video-brand video {
        max-width: 635px;
    }

    .text-brand {
        align-items: center;
        text-align: center;
    }

    .big-brand {
        display: none;
    }

    .text-box-brand {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .text-box-brand p {
        text-align: center;
        max-width: 100%;
    }

    .line-brand {
        display: none;
    }

    .desc-work {
        flex-direction: column;
        gap: 30px;
    }

    .text-work {
        flex-direction: column;
        align-items: center;
    }

    .work-img {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

.block-desc .name-product {
    margin-top: 10px;
}

/* ============МЕДИА-ЗАПРОСЫ============= */

@media screen and (min-width: 1340px) {
    .mobile {
        display: none;
    }

    .container-header {
        padding: 23px 20px 23px 20px;
    }

    .wrap-ordering {
        max-width: 433px;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1339px) {
    .container-header {
        padding: 20px;
    }

    .primary-navigation {
        font-size: 16px;
    }

    .menu-header {
        gap: 20px;
    }

    .mobile-menu,
    .menu-overlay {
        display: none;
    }

    .grid-category {
        grid-template-columns: repeat(2, minmax(auto, 431px));
        justify-content: center;
        gap: 20px;
        max-width: 100%;
    }

    .it1 {
        display: none;
    }

    .item-category {
        width: 100%;
        padding-left: 20px;
    }

    .item-category a {
        font-size: 20px;
    }

    .box-reviews {
        justify-content: center;
        gap: 40px;
    }

    .wrap-ordering {
        max-width: 433px;
    }

}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .container-header {
        padding: 23px;
    }

    .primary-navigation {
        font-size: 14px;
    }

    .menu-header {
        gap: 20px;
    }

    .catalog-icon {
        width: 30%;
    }

    .navbar-items a img {
        width: 18px;
    }

    .navbar-items {
        gap: 10px;
    }


    .desktop-nav {
        display: none;
    }

    .hamburger-button {
        display: flex;
    }

    .grid-category {
        grid-template-columns: repeat(2, minmax(auto, 1fr));
        justify-content: center;
        align-items: center;
        gap: 10px;
        max-width: 100%;
    }

    .it1 {
        display: none;
    }

    .item-category {
        width: 100%;
        padding-left: 20px;
    }

    .item-category a {
        font-size: 20px;
    }

    .box-reviews {
        justify-content: center;
        gap: 20px;
    }

    .faq-answer {
        font-size: 16px;
    }

    .subtitle-faq {
        font-size: 18px;
    }

    .main-title {
        font-size: 22px;
    }

    .box-trends {
        gap: 0 30px;
    }

    .trends-subtitle {
        font-size: 18px;
    }

    .promo-trends {
        font-size: 14px;
    }

    .info-product .name-product {
        font-size: 14px;
        margin-right: 10px;
    }

    .sum {
        font-size: 14px;
    }

    .total {
        font-size: 16px;
    }

    .btn-ordering {
        font-size: 16px;
    }

    .wrap-ordering {
        max-width: 300px;
    }

    .wrap-order {
        gap: 30px;
        flex-wrap: wrap;
    }

    .wrap-info {
        max-width: 100%;
        width: 100%;
    }

    .order-inputs input {
        max-width: 100%;
    }

    /* Кнопка "СДЕЛАТЬ ЗАКАЗ" на всю ширину */
    .btn-request {
        max-width: 100%;
        width: 100%;
    }

    .wrap-products {
        max-width: 1023px;
        width: 100%;
    }

    .wrap-product {
        max-width: 1023px;
        width: 100%;
    }

    /* Сама форма заказа (левая колонка) тоже растягивается */
    .wrap-order {
        gap: 30px;
    }

    .num-err {
        font-size: 196px;
    }

    .top-card-product {
        flex-direction: column;
        gap: 30px;
    }

    .images-product {
        justify-content: center;
    }

    .images-product img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

}

@media screen and (max-width: 767px) {
    .container-header {
        padding: 23px;
    }

    .primary-navigation {
        font-size: 12px;
    }

    .menu-header {
        gap: 20px;
        display: none;
    }

    .catalog-icon {
        width: 25%;
    }

    .navbar-items {
        gap: 10px;
    }

    .navbar-items a img {
        width: 18px;
    }

    .hamburger-button {
        display: flex;
    }

    /* .logo img {
        width: 80%;
    } */
    .grid-category {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 5px;
        max-width: 100%;
        /* padding: 0 20px; */
    }

    .it1 {
        display: none;
    }

    .item-category {
        max-width: 431px;
        width: 100%;
        padding-left: 20px;
    }

    .item-category a {
        font-size: 18px;
    }

    .box-reviews {
        justify-content: center;
        gap: 10px;
    }

    .item-reviews {
        height: 100%;
        width: 100%;
    }

    .box-user {
        gap: 5px;
    }

    .score img {
        width: 100px;
    }

    .box-reviews {
        padding: 10px;
    }

    .name-product {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-card__heart {
        background-size: 100%;
        width: 18px;
    }

    .big-brand {
        font-size: 50px;
    }

    .text-box-brand p,
    .text-work div {
        font-size: 16px;
        line-height: 22px;
    }

    .pozitive {
        font-size: 14px;
    }

    .faq-question {
        padding: 12px 8px;
    }

    .faq-question span {
        font-size: 0.95rem;
    }

    .faq-toggle {
        font-size: 1.3rem;
    }

    .faq-answer {
        font-size: 14px;
    }

    .subtitle-faq {
        font-size: 16px;
    }

    .main-title {
        font-size: 18px;
        padding: 100px 0 50px 0;
        text-align: center;
    }

    .box-trends {
        grid-template-columns: 1fr;
    }

    .trends-title {
        font-size: 22px;
    }

    .trends-subtitle {
        font-size: 16px;
    }

    .promo-trends {
        font-size: 12px;
    }

    .info-cart {
        flex-direction: column;
    }


    .wrap-profile {
        grid-template-columns: 1fr;
    }

    .navbar-profile {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .link-navbar {
        font-size: 14px;
        padding: 8px 12px;
    }

    .wrap-cost,
    .wrap-product {
        padding: 15px;
    }

    .info-product {
        margin-left: 10px;
        font-size: 14px;
    }

    .top-product p,
    .top-product .name-product {
        font-size: 12px;
    }

    .size {
        padding: 3px 5px;
    }

    .item-photo {
        width: 100px;
        height: auto;
    }

    .wrap-order {
        flex-direction: column;
        gap: 30px;
    }

    .order-inputs {
        flex-direction: column;
        gap: 15px;
    }

    .order-inputs input {
        max-width: 100%;
        width: 100%;
    }

    .wrap-products {
        width: 100%;
    }

    .box-summa {
        margin-top: 20px;
    }

    .btn-request {
        max-width: 100%;
        width: 100%;
        margin-top: 20px;
    }

    .num-err {
        font-size: 100px;
    }

    .text-err {
        font-size: 24px;
    }

    .btns-link-err {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .btn-link {
        max-width: 200px;
        width: 100%;
    }

    .more {
        width: 100%;
    }

    .term {
        width: 100%;
    }

    .order-title {
        font-size: 18px;
        margin-top: 20px;
    }

    .order-contact .order-title {
        margin-top: 0;
    }

    .wrap-product {
        max-width: 767px;
        width: 100%;
        padding: 15px;
    }


    .info-product {
        margin-left: 10px;
        width: 100%;
    }



    .price-product,
    .name-product {
        font-size: 14px;
    }

    .wrap-details p {
        font-size: 12px;
    }

    .summa-price,
    .summa-total p {
        font-size: 16px;
    }

    .breadcrumbs {
        margin-top: 30px;
    }

    .wrap-card-product {
        margin-top: 10px;
    }

    .top-card-product {
        flex-direction: column;
        gap: 20px;
    }

    .images-product {
        /* flex-direction: column; */
        align-items: center;
        gap: 15px;
    }

    .images-product img {
        max-width: 100%;
        max-width: 220px;
        height: auto;
    }

    .particular-product {
        font-size: 12px;
        gap: 10px;
    }

    .name-card-product {
        font-size: 18px;
    }

    .price-card-product {
        font-size: 18px;
    }

    .list-size li button {
        max-width: 40px;
        padding: 5px 5px;
    }

    .titles-bottom-product {
        /* justify-content: center; */
        gap: 20px;
        font-size: 16px;
    }

    .box-text-desc {
        font-size: 16px;
        line-height: 1.4;
        padding: 0 10px;
    }

    #reviews {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .box-product-reviews {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .card-item-review {
        max-width: 767px;
        width: 100%;
        padding: 20px;
    }

    .card-item-review h5 {
        font-size: 16px;
    }

    .card-item-review p {
        font-size: 14px;
        line-height: 1.4;
    }

    .top-review {
        flex-wrap: wrap;
        gap: 10px;
    }

    .legal-title {
        font-size: 24px;
    }

    .legal-content {
        font-size: 14px;
    }

    .top-product {
        /* flex-direction: column; */

        gap: 5px;
    }

    .total-price-product {
        align-self: flex-end;
        justify-self: start;
    }

    .qty-form {
        gap: 0px;
    }

    /* === Мобильная карусель изображений === */
    .images-product {
        position: relative;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        overflow: hidden;
        background-color: #f5f5f5;
    }

    .carousel-slider {
        display: flex;
        transition: transform 0.3s ease;
    }

    .carousel-slider img {
        width: 100vw;
        flex-shrink: 0;
        object-fit: contain;
        max-height: 70vh;
        background-color: #fff;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        font-size: 24px;
        line-height: 1;
        transition: 0.2s;
    }

    .carousel-btn:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .carousel-dots {
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 10;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
    }

    .carousel-dot.active {
        background: white;
        width: 12px;
        height: 12px;
    }

    .cart-button-main {
        max-width: 200px;
    }

    .filter-btn {
        padding: 4px 12px;
    }
}

/* === КОРЗИНА: адаптация для очень узких экранов (≤337px) === */
@media (max-width: 337px) {

    /* Родительская строка товара — высота будет по картинке */
    .item-product {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        /* блок тянется по высоте картинки */
    }

    /* Картинка — фиксированная ширина, высота автоматическая, без искажений */
    .item-product .item-photo {
        width: 60px;
        /* можно подобрать 50–70px */
        height: auto;
        object-fit: contain;
        flex-shrink: 0;
    }

    /* Блок с информацией о товаре */
    .info-product {
        flex: 1;
        display: flex;
        /* justify-content: space-between; */
        flex-direction: column;
        gap: 8px;
        margin-left: 0;
        /* отступ уже даёт gap родителя */
    }

    /* Верхняя часть — название, цена за шт., общая цена (теперь колонкой) */
    .top-product {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Общая цена за товар — под ценой за штуку */
    .total-price-product {
        font-size: 13px;
        font-weight: 500;
        margin-top: 2px;
    }

    /* Блок с кнопками количества и удалением */
    .bottom-product {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0px;
        margin-top: 0;
        /* justify-self: end; */
    }

    .qty-form {
        padding: 2px 6px;
    }

    /* Текст названия и цены за шт. — чуть мельче */
    .name-product {
        font-size: 13px;
        line-height: 1.3;
        height: auto;
    }

    .price-product {
        font-size: 12px;
    }

    /* Немного уменьшаем внутренние отступы контейнера */
    .wrap-product {
        padding: 12px;
    }
}