@font-face {
    font-family: 'blackberry';
    src: url('../fonts/blackberry-normal_version.otf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/MONTSERRAT-MEDIUM.TTF') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.card {
    transition: .2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(153, 153, 153, 0.1);
}



:root {
    --h1: 500 54px/80px 'blackberry', sans-serif;
    --h2: 600 24px/29px 'Montserrat', sans-serif;
    --h3: 600 18px/22px 'Montserrat', sans-serif;
    --h4: 500 16px/20px 'Montserrat', sans-serif;
    --h5: 500 14px/17px 'Montserrat', sans-serif;
    --h6: 400 14px/17px 'Montserrat', sans-serif;
    --p: 400 16px/20px 'Montserrat', sans-serif;

    --accent-color: #C34547;
    --accent-color-additional: #123122;
    --accent-color-second: #1EA0D4;
    --cards-color: #FAFAFA;
    --main-color: #F2F2F2;
    --Main-color-second: #E4E4E4;
    --Fields-color: #EDEDED;
    --text-of-fields-color: #898989;
    --text-color: #393939;
    --border-color: #CFCFCF;

    --border-radius-first: 6px;
    --border-radius-second: 3px;

    --border: 1px var(--border-color) solid;
    --border-second: 1px var(--Main-color-second) solid;
    --border-accent: 1px var(--accent-color) solid;

    --padding: 20%;
    --padding-2: 16px 16px;
    --padding-32px: 28px;
    --padding-24px: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    line-height: normal;
}

body {
    background-color: var(--main-color);
    color: var(--text-color);
}

h1 {
    font: var(--h1);
    color: var(--accent-color);

}

h2 {
    font: var(--h2);
}

h3 {
    font: var(--h3);
}

h4 {
    font: var(--h4) !important;
}

.text-h4 {
    font: var(--h4) !important;
}

h5 {
    font: var(--h5);

}

h6 {
    font: var(--h6);
}

p {
    font: var(--p);
}


.padding-20px-0px {
    padding: 16px 0;
}



header {
    background-color: var(--cards-color);
    width: 100%;
}

.main-section {
    background-image: url('../img/main-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 624px;
    width: 100%;
}

.section-padding {
    padding: 60px 0;
}

.container {
    max-width: 1128px;
    width: min(100% - 32px, 1128px);
    margin: 0 auto;
}


.header-part-first {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0px auto;
    max-width: 1128px;
    padding: 20px 0px;
}

.red-element-color {
    color: var(--accent-color) !important;
}

.main-color-element {
    color: var(--main-color) !important;
}

.height-35px {
    height: 35px;
}


.red-element-background {
    background-color: var(--accent-color);
}

.main-color-element-background {
    background-color: var(--main-color);
}

.main-color-second-element-background {
    background-color: var(--Main-color-second);
}

.cards-color-element-background {
    background-color: var(--cards-color);
}

.order-item-separator {
    border: none;
    border-bottom: 1px solid var(--border-color);
    margin: 12px 0;
}

.white-element {
    color: var(--cards-color);
}

.text-color-element {
    color: var(--text-color);
}

.grey-element {
    color: var(--text-of-fields-color);
}

.primary--element {
    color: var(--text-of-fields-color);
}

.main-information-about-store {
    display: flex;
    flex-direction: column;
    text-align: end;
    gap: 12px;
}

.horizontal-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.vertical-flex {
    display: flex;
    flex-direction: column;
}

.icon-scale {
    height: 17px;
    width: 17px;
}

.header-part-second {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0px auto;
    max-width: 1128px;
}

.align-text-center {
    text-align: center;
}

textarea {
    padding: 8px 16px;
    background: #EDEDED;
    border: var(--border);
    font: var(--p);
    width: 100%;
    line-height: normal;
    color: var(--text-color);
    padding: 12px 16px;
    min-height: 100px;
    resize: vertical;
}

.width-250px {
    width: 250px !important;
}

input {
    padding: 7px 14px;
    background: #EDEDED;
    font: var(--h5);
    height: 36px;
    width: 100%;
    line-height: normal;
    text-box-trim: initial;
    text-box-edge: initial;
    color: var(--text-color);
}

.height-100 {
    height: 100%;
}

span {
    font: var(--h6);
}

.filter-chip-edit {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    border: var(--border);
    border-radius: 6px;
    font: var(--h6);
    color: var(--text-of-fields-color);
    user-select: none;
    cursor: pointer;
    transition: all 0.2s ease, color 0.2s ease;
}

.filter-chip-edit button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.filter-chip-edit button:hover {
    color: #d14d4d;
}

.input-type-second {
    padding: 0px 16px;
    background: #EDEDED;
    border: var(--border);
    border-radius: 6px 0px 0px 6px;
    font: var(--h5);
    height: 36px;
}

.width-264px {
    width: 264px;
}

.width-335px {
    width: 335px;
}

.width-100 {
    width: 100% !important;
}


.gap-60px {
    gap: 60px;
}

.gap-50px {
    gap: 50px;
}

.gap-48px {
    gap: 48px;
}

.gap-40px {
    gap: 40px;
}

.gap-32px {
    gap: 32px;
}

.gap-24px {
    gap: 24px;
}

.gap-20px {
    gap: 20px;
}

.gap-16px {
    gap: 16px;
}

.gap-12px {
    gap: 12px;
}

.gap-8px {
    gap: 8px;
}

.gap-4px {
    gap: 4px;
}

.gap-1px {
    gap: 1px;
}

.space-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center !important;
}

.text-align-center {
    text-align: center;
}

.align-items-flex-start {
    align-items: flex-start;
}

.align-items-end {
    align-items: end;
}

.justify-content-end {
    justify-content: flex-end;
}

.justify-content-start {
    justify-content: flex-start;
}


.justify-content-center {
    justify-content: center !important;
}


.width-fit-content {
    width: fit-content;
}

.align-self-end {
    align-self: end;
}

#productGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-height: 60vh;
    /* ограничение высоты для скролла */
    overflow-y: auto;
    /* вертикальная прокрутка */
    padding-right: 8px;
    /* место для скроллбара */
}

/* стилизация скроллбара */
#productGrid::-webkit-scrollbar {
    width: 8px;
}

#productGrid::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

#productGrid::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

.modal-window {
    background: white;
    /* Убираем фиксированную ширину 1000px */
    width: 90%;
    max-width: 1000px;
    /* Для больших форм */
    padding: 40px;
    border-radius: 8px;
    position: relative;
    /* Убираем margin: 50px auto, так как центр задает родитель-flex */
    height: fit-content;
    max-height: 900px;
}

.discount-badge-small {
    background-color: var(--accent-color);
    /* Красный цвет */
    color: white;
    padding: 8px 12px;
    border-radius: 3px;
    z-index: 2;
    font: var(--h3);
    width: fit-content;
}

/* Специально для окна удаления, чтобы оно не было на пол-экрана */
#modalDeleteOverlay .modal-window {
    max-width: 400px;
    text-align: center;
}

.modal-window h3 {
    margin-bottom: 12px;
}

#productSearch {
    margin-bottom: 16px !important;
}

#productGrid {
    margin-bottom: 16px;
}

#photoModalImage {
    max-width: 90vw;
    max-height: 90vh;
    width: auto !important;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.main-photo-frame {
    width: 150px;
    height: 150px;
    border: 2px dashed #D1D5DB;
    /* Пунктир */
    border-radius: 12px;
    background-color: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Плюс для пустой рамки */
.main-photo-frame.empty::after {
    content: '+';
    font-size: 40px;
    color: #9CA3AF;
}

.main-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.additional-photo-frame {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;

    /* Добавляем выравнивание содержимого по центру */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fdfdfd;
    /* Легкий фон, если фото меньше рамки */
}

.additional-photo-frame img {
    /* Чтобы фото не "липло" к верху, используем эти три свойства: */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Фото заполнит рамку целиком, обрезав лишнее по краям */
}

.delete-photo-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(209, 77, 77, 0.9);
    /* Твой фирменный красный */
    color: white;
    border: none;
    border-radius: 0 0 0 8px;
    /* Скругляем только внутренний угол кнопки */
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 5;
}

/* Эффект при наведении на строку в истории */
.order-item-clickable:hover {
    background-color: #f5f5f5;
    transition: 0.2s;
}

/* Контейнер для адреса */
.address-column {
    display: flex;
    flex-direction: column;
}

.order-item {
    display: flex;
    gap: 16px;
}

/* Стили для плашек внутри модалки */
.modal-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
}

.display-grid-history {
    display: grid;
    grid-template-columns: 1fr 1.5fr 2fr 1fr 1fr;
    /* Пропорции колонок */
    gap: 16px;
    align-items: center;
}

.text-in-main-section {
    width: 343px;
    height: 50px;
    line-height: 20px;
    text-align: center;
    color: var(--cards-color);
}

.main-section-group-text {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0px;
    gap: 40px;

    width: 400px;
    height: 330.32px;

    position: relative;
    z-index: 2;
}

hr {
    border: none;
    background-color: var(--border-color);
    height: 1px;
    margin: 0;
}

.main-section2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0px auto;
    padding: 123px 0px;
    width: 1128px;

    position: relative;
    overflow: visible;
}

.balloon-animation,
.balloon-animation2 {
    padding: 113px 0px;
    position: absolute;
    z-index: 1;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.display-grid-column-threes {
    display: grid !important;
    /* !important поможет, если стиль что-то перебивает */
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.ballon1 {
    width: 155px;
    left: 450px;
    top: 90px;
    animation-name: float-subtle;
}

.ballon2 {
    width: 105px;
    left: 600px;
    top: 220px;
    animation-name: float-subtle-reverse;
    animation-delay: 1s;
}

.ballon3 {
    width: 100px;
    left: 740px;
    top: 50px;
    animation-name: float-subtle;
    animation-delay: 0.5s;
}

.ballon4 {
    width: 105px;
    left: 890px;
    top: 190px;
    animation-name: float-subtle-reverse;
    animation-delay: 1.5s;
}

.ballon5 {
    width: 80px;
    left: 1020px;
    top: 70px;
    animation-name: float-subtle;
    animation-delay: 2s;
}

.card .button-active {
    width: 100%;
}


@keyframes float-subtle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes float-subtle-reverse {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

.asd {
    height: 91px;
    align-items: flex-end;
}

.section-main-buttons {
    display: flex;
    border-radius: var(--border-radius-first);
    border: var(--border);
    position: relative;
    top: -80px;
    border-radius: 6px;
    align-items: stretch;
    width: 100%;
}

.section-main-button {
    background-color: var(--cards-color);
    padding: 16px;
    display: flex;
    font: var(--h4);
    flex-direction: column;
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 12px;

}

.section-main-button-img {
    width: 84px;
}

.rotate-90-deg {
    border: none;
    background-color: var(--border-color);
    width: 1px;
    height: auto;
    margin: 0;
    align-self: stretch;
    flex-shrink: 0;
}

.button-reviews {
    display: flex;
    flex-direction: column;
    background-color: var(--accent-color);
    padding: var(--padding-32px);
    width: 100%;
    align-items: baseline;
    gap: 18px;
    color: var(--cards-color);
}

.button-active img {
    filter: brightness(0) invert(1);
}

.vk path {
    transition: all 0.2s ease-in-out;
}

.vk rect {
    transition: all 0.2s ease-in-out;
}

.vk:hover path {
    fill: var(--main-color);
}

.vk:hover rect {
    stroke: var(--main-color);
}

.img-mailing {
    width: 50px;
    height: 76px;
    object-fit: cover;
}

.button-arrow {
    width: 73px;
    height: 28px;
    border: 2px solid #FAFAFA;
    border-radius: 16.5315px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.button-arrow:hover {
    background-color: var(--cards-color);
}



.button-arrow:hover path {
    fill: var(--accent-color);
}

.card {
    padding: var(--padding-24px);
    width: 100%;
    background: var(--cards-color);
    border: var(--border);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}





.product-actions {
    display: flex;
    align-items: center;
}

.wishlist-btn {
    width: 36px;
    height: 36px;
    background: var(--cards-color);
    border: var(--border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.wishlist-btn:hover {
    background-color: var(--Main-color-second);
}

.heart-icon path {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 2px;
    transition: all 0.3s ease;
}

/* Активное состояние */
.wishlist-btn.active .heart-icon path {
    fill: var(--accent-color);
    stroke: var(--accent-color);
    stroke-width: 1px;
}

.wishlist-btn.active {
    border-color: var(--accent-color);
}

#orderDetails {
    position: sticky;
    top: 24px;
}

.width-70px {
    width: 160px;
}

.quantity-input{
    width: 70px;
}

.display-grid-column-four {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 264px));
    gap: 24px;
}

.justify-self-right {
    justify-self: flex-end;
}

.align-self-center {
    align-self: center !important;
}

.align-self-right {
    align-self: flex-end;
}

.justify-self-center {
    justify-self: center !important;
}

.justify-self-center {
    justify-self: center;
}

.our-advantages {
    background-image: url(../img/svg-pattern.svg);
    width: 100%;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
}

.card-advantage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--padding-32px);
    gap: 16px;
    width: 100%;
    height: 213px;
    background: var(--cards-color);
    border-radius: 6px;
    color: var(--accent-color);
}

.card-advantage h3 {
    text-align: center;
}


.breadcrumbs {
    display: flex;
    gap: 12px;
    font: var(--h5);
    color: var(--text-of-fields-color);
    align-items: center;
}

.breadcrumbs a {
    color: var(--text-of-fields-color);
    text-decoration: none;
    transition: 0.2s;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.breadcrumbs span:last-child {
    color: var(--text-color);
    /* текущая страница темнее */
}

.imgs-review {
    width: 48px;
    height: 48px;
    background: #E9E9E9;
    border-radius: 3px;
    cursor: pointer;
}

.card-review {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--padding-32px);
    gap: 32px;
    min-width: 360px;
    min-height: 300px;
    background: #FAFAFA;
    border: var(--border);
    border-radius: 6px;
    justify-content: space-between;
}

.img-avatar {
    width: 60px;
    height: 60px;
    border: var(--border);
    border-radius: 3px;
}

.stars img {
    width: 18.71px;
    height: 18.71px;
    border-radius: 1px;
}

.mailing {
    background-color: var(--cards-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer {
    background-image: url(../img/footer.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    color: var(--cards-color);
}



.background-black {
    background-color: var(--text-color);
    color: var(--border-color);
    padding: 32px 0;
}


label,
button,
a {
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
}

label:hover {
    transform: translateY(-1px);
}

a:hover {
    transform: translateY(-1px);
}


input {
    border: 1px solid var(--border-color);
}

input:focus {
    border: 1px solid var(--text-of-fields-color);
    /* или темно-серый */
    outline: none;
}

.input-error {
    border: 1px solid #C94B4B;
}






button {
    border: 0;
}

.button-nav {
    background-color: var(--cards-color);
    padding: 12px 16px;
    border-radius: var(--border-radius-first);
    font: var(--h4);
    border: 0;
    color: var(--text-color);
    gap: 6px;
    display: flex;
    flex-direction: column;
    transition: 0.2s ease;
}

.button-nav-img {
    height: 22px;
}

.button-nav:hover {
    background-color: var(--Fields-color);
    transform: translateY(-1px);
}

.button-right-border {
    border-radius: 0px 6px 6px 0px;
    padding: 14px 24px !important;
}

.button-active {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-color);
    color: var(--cards-color);
    transition: all 0.2s ease;
    width: fit-content;
}

.button-active:hover {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: #AE3F41;
    color: var(--cards-color);
}

.svg-button-active {
    width: 18px;
}

.svg-button-active path {
    stroke: var(--cards-color) !important;
}

/* Красим колеса */
.svg-button-active circle {
    fill: var(--cards-color) !important;
}

.sticky {
    position: sticky;
    top: 20px;
}

.button-secondary {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: var(--cards-color);
    border: var(--border);
    font: var(--h4);
    color: var(--text-color);
    transition: all 0.2s ease;
    width: fit-content;
}

.button-secondary:hover {
    background: var(--Main-color-second);
}

.button-negative {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: var(--cards-color);
    border: var(--border-accent);
    font: var(--h4);
    color: var(--accent-color);
    transition: all 0.2s ease;
}

.button-negative:hover {
    background: var(--Main-color-second);
}

.border-radius-3px {
    border-radius: 3px !important;
    overflow: hidden;
}

.border-radius-6px {
    border-radius: 6px !important;
    overflow: hidden;
}

.button-size-small {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    height: 36px;
    font: var(--h5);
}

.button-size-big {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 40px;
    height: 40px;
    font: var(--h4);
}

a {
    text-decoration: none;
}

.button-footer {
    color: var(--cards-color);
    padding: 10px 0;
    width: fit-content;
    transition: all 0.2s ease-in-out;
    border-radius: var(--border-radius-first);
}

.button-footer:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--cards-color);
    padding: 10px 12px;
    border-radius: var(--border-radius-first);
}

.svg-contacts {
    width: 24px;
    height: 24px;
}



.svg-stars svg {
    width: 24px;
    height: 24px;
    border-radius: 1px;
}

.svg-stars svg path {
    fill: var(--accent-color) !important;
    stroke: var(--accent-color) 0;
}

.stars-small svg path {
    fill: var(--accent-color) !important;
    stroke: var(--accent-color) 0;

}

.vk {
    width: 38px;
    width: 38px;
}

a {
    display: inline-flex;
    line-height: 0;
}

.filter-chip {
    padding: 10px;
    gap: 15px;
    border: var(--border);
    border-radius: 6px;
    font: var(--h6);
    color: var(--text-of-fields-color);
    user-select: none;
    cursor: pointer;
    transition: all 0.2s ease, color 0.2s ease;
    width: fit-content;
}

.filter-chip:hover {
    transform: translateY(-2px);
    background-color: var(--Main-color-second);
}

/* скрываем стандартный чекбокс */
.filter-chip input {
    display: none;
}

.filter-chip span {
    transition: color 0.2s ease;
}

/* активное состояние */
.filter-chip:has(input:checked) {
    background-color: #c94b4b;
}

.filter-chip:has(input:checked) span {
    color: white;
}

.wrap-content {
    display: flex;
    flex-wrap: wrap;

}

.catalog-sidebar {
    position: relative;
    min-height: 100vh;
    width: 250px;
    /* или другое подходящее значение */
    flex-shrink: 0;
}

.filter-group {
    border-bottom: var(--border);
    padding-bottom: 20px;
}

.filter-group summary {
    font: var(--h4);
    cursor: pointer;
    list-style: none;

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

.filter-group summary::after {
    content: "⌄";
    transition: all 0.2s;
}

.filter-group[open] summary::after {
    transform: rotate(180deg);
}


.filters-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;

    display: flex;
    flex-direction: column;
    gap: 8px;

    background: linear-gradient(to top, var(--main-color) 75%, transparent);
    padding: 24px 0 20px;
}

.apply-btn,
.reset-btn {
    height: 42px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.apply-btn {
    background: #c24747;
    color: #fff;
    border: none;
}

.reset-btn {
    background: #fff;
    color: #c24747;
    border: 1px solid #c24747;
    margin-bottom: 50px;
    ;
}


main {
    position: relative;
    background-image: url(../img/background-2.png);
    background-repeat: repeat;
    background-position: top center;
    background-size: auto;
}

.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url(../img/background-2.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;

    z-index: -1;
    pointer-events: none;
}

select {
    display: block;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0px 12px 0px 12px;
    width: 242px;
    height: 40px;
    background: #FAFAFA;

    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://w3.org' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;

    border: var(--border);
    border-radius: 6px;
    font: var(--h5);
    cursor: pointer;
    outline: none;

    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    /* Отступ 12px справа */
    background-size: 16px;
    /* Размер стрелочки */

    padding-right: 40px;
    /* Чтобы текст не накладывался на иконку */
    cursor: pointer;
}

select:focus {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c44d4d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
    border-color: #c44d4d;
    outline: none;
}


/* Основной контейнер характеристик */
#productFeaturesContainer {
    max-height: 480px;
    /* Уменьшил с 650, чтобы точно влезло в экран модалки */
    overflow-y: auto;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Красивый скроллбар для Chrome/Edge/Safari */
#productFeaturesContainer::-webkit-scrollbar {
    width: 6px;
}

#productFeaturesContainer::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 10px;
}

#productFeaturesContainer::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 10px;
}

#productFeaturesContainer::-webkit-scrollbar-thumb:hover {
    background: #c0c0c0;
}

/* Для Firefox */
#productFeaturesContainer {
    scrollbar-width: thin;
    scrollbar-color: #dcdcdc #f9f9f9;
}

option {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    gap: 15px;
    width: 242px;
    height: 40px;
    background: #F2F2F2;
    border: var(--border);
    flex: none;
    order: 2;
    align-self: stretch;
    flex-grow: 0;
}

.card-product-page {
    padding: var(--padding-32px);
    gap: 32px;
    background: #FAFAFA;
    border: var(--border);
    border-radius: 6px;
}

.section-photo {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-small {
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    background: url(image.png);
    border-radius: 2.19433px;
}

.photo-small img {
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    background: url(image.png);
    border-radius: 2.19433px;
}

.photo-main {
    width: 230px;
    height: 230px;
}

.width-360px {
    width: 360px;
    box-sizing: content-box;
}

.payment-block {
    position: relative;
    overflow: hidden;
    /* Чтобы иконка не вылезала за границы */
}

.payment-block::before {
    pointer-events: none;
    content: '';
    position: absolute;
    right: -20px;
    bottom: -70px;
    width: 160px;
    height: 160px;
    background-image: url(../svg/Money.svg);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.06;
    /* Та самая прозрачность */
    z-index: 0;
}

.delivery-block {
    position: relative;
    overflow: hidden;
    /* Чтобы иконка не вылезала за границы */
}

.delivery-block::before {
    pointer-events: none;
    content: '';
    position: absolute;
    right: -20px;
    bottom: 0px;
    width: 100px;
    height: 100px;
    background-image: url(../svg/Delivery.svg);
    background-size: contain;
    opacity: 0.09;
    /* Та самая прозрачность */
    z-index: 0;
}

.img-about-us {
    width: 360px;
    height: 360px;
    box-sizing: content-box;
    object-fit: cover;
}

.card-variant-second {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: var(--padding-32px);
    gap: 24px;
    width: 647px;
    height: 188px;
    background: #FAFAFA;
    border: var(--border);
    border-radius: 6px;

}

.card-variant-third {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    padding: var(--padding-32px);
    height: 188px;
    background: #FAFAFA;
    border: var(--border);
    border-radius: 6px;

}

.card-variant-four {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: left;
    padding: var(--padding-32px);
    background: #FAFAFA;
    border: var(--border);
    border-radius: 6px;
    width: 100%;
    height: fit-content;
}

.display-grid-column-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
}




.div-button-counter {
    display: flex;
    align-items: center;
    width: 100px;
    height: 36px;

    border: var(--border);
    border-radius: 3px;

    overflow: hidden;

    background: var(--cards-color);
    max-width: 200px;
}

.card .div-button-counter {
    width: 100%;
}

.button-counter,
.button-counter-second {
    width: 100%;
    height: 100%;

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

    background: var(--cards-color);

    font: var(--h3);

    transition: background 0.2s ease;
}

.button-counter:hover,
.button-counter-second:hover {
    background: var(--Main-color-second);
}

.div-button-counter-number {
    width: 100%;
    height: 100%;

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

    font: var(--h4);

    border-left: var(--border);
    border-right: var(--border);

    background: var(--cards-color);
}

.card-variant-red {
    display: flex;
    flex-direction: column;
    padding: var(--padding-32px);
    gap: 24px;
    width: 647px;
    background: var(--accent-color);
    border-radius: 6px;
}

.card-variant-red {
    color: var(--cards-color);
}

label {
    font: var(--h5);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

label span {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
}

input[type='radio'] {
    width: 20px;
    height: 20px;

    background-color: var(--Main-color-second);
    border: var(--border);
    border-radius: 50%;

    cursor: pointer;
    appearance: none;

    display: grid;
    /* 👈 вместо flex */
    place-content: center;
    /* 👈 центрирование */
    padding: 0;
    flex-shrink: 0;
}

input[type='radio']::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: #EE5255;

    transform: scale(0);
    transition: 0.2s ease-in-out;
}

input[type='radio']:checked::before {
    transform: scale(1);
}

.padding-16px {
    padding: 16px;
}

.border-red {
    border: var(--border-accent);
}

.border-grey {
    border: var(--border);
}

.checkbox:checked {
    background-color: #C94B4B;
    border-color: #C94B4B;
}

.checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    background-color: #EDEDED;
    border: var(--border);
    border-radius: 6px;
    cursor: pointer;
    margin: 0;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
}

.checkbox:checked {
    background-color: #C94B4B;
    border-color: #C94B4B;
}

.checkbox:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.h6 {
    font: var(--h6);
}


.size-28px-28px {
    width: 24px;
    height: 24px;
}

input::placeholder {
    color: var(--text-of-fields-color);
}

textarea::placeholder {
    color: var(--text-of-fields-color);
}

.padding-24px {
    padding: var(--padding-24px);
}

.svg-red path {
    stroke: var(--accent-color);
}

.svg-black path {
    stroke: var(--text-color);
}

.svg-red {
    color: var(--accent-color);
}

.svg-red-2 path {
    fill: var(--accent-color);
}

.size-24px-24px {
    width: 24px;
    height: 24px;
}

.height-284px {
    height: 284px;
}

.map {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    height: 344px;
}

.photo-main-team {
    box-sizing: border-box;
    height: 370px;
    background: #E9E9E9;
    border: var(--border);
    border-radius: 6px;
    object-fit: contain;

}


.card-variant-third-img-store {
    width: 124px;
    height: 124px;

    min-width: 124px;

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

    overflow: hidden;

    border-radius: 6px;

    background: var(--cards-color);
}

.card-variant-third-img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.height-423px {
    height: 423px;
}

.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.card-review-second {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--padding-32px);
    gap: 24px;
    height: fit-content;
    background: #FAFAFA;
    border: var(--border);
    border-radius: 6px;
}

.display-grid-column-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    width: 100%;
}

.display-grid-column-three-360px {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    width: 100%;
}

.display-grid-column-three-300px {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Используй один из этих классов, которые уже есть в твоем HTML */



.card-review-three {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--padding-32px);
    justify-content: space-between;
    min-height: 220px;
    background: #FAFAFA;
    border: var(--border);
    border-radius: 6px;
}

.button-pagination-active {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), #EE5255;
    border-radius: 3px;
    font: var(--h5);
    color: var(--cards-color);
}


.button-pagination-neutral {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 40px;
    height: 40px;
    background: var(--cards-color);
    border-radius: 3px;
    font: var(--h5);
    color: var(--text-color);
    border: var(--border);
}

.a-text {
    font: var(--h5);
    line-height: 1.4;
    background: none;
}

.a-link {
    font: var(--h5);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: 0.2s ease;
}

.a-link:hover {
    color: var(--color) !important;
}




.display-grid-column-three-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
}

.img-avatar-account {
    width: 47px;
    height: 47px;
    border: var(--border);
}

.gap-80px {
    gap: 80px;
}


.height-67px {
    height: 67px;
}

.head-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
}

.orders {
    width: 100%;
}

/* Заголовки */
.orders-head {
    display: grid;
    grid-template-columns: 0.75fr 1fr 1fr 1fr;
    padding: 20px 4px;
    border-bottom: 1px solid #393939;
    font: var(--h5);

}

.head-order .white-element:last-child {
    text-align: right;
}

/* Строка */
.order-row {
    display: grid;
    grid-template-columns: 0.75fr 1fr 1fr 1fr;
    align-items: center;
    padding: 24px 4px;
    margin-top: 10px;

    background: var(--cards-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;

    font: var(--h5);
    width: 100%;
}


/* Активная строка */
.order-row.active {
    border: 1px solid #d35b5b;
}

/* Статусы */
.status-wait {
    color: #393939;
}

.status-delivery {
    color: #393939;
}

.status-done {
    color: #7ac943;
}

.status-cancel {
    color: #d35b5b;
}

.padding-24px-32px {
    padding: var(--padding-24px) var(--padding-32px);
}

.padding-32px {
    padding: var(--padding-32px);
}

.display-grid-column-six {
    display: grid;
    grid-template-columns: 60px 1fr 1.2fr 1.5fr 1fr 180px;
    gap: 24px;
    align-items: center;
}

.display-grid-column-six h4 {
    text-align: center;
}

.display-grid-column-six p {
    text-align: center;
}

.padding-8px-16px {
    padding: 8px 16px;
}

.a-exit {
    font: var(--h5);
    color: var(--text-color);
}


.header-admin {
    height: 71px;
}

.currency {
    font-size: 1.21em;
}

.product-page-price {
    font-size: 28px;

}

button:active {
    transform: scale(0.97);
}

.about-text {
    max-width: 520px;
}

.orders-head div {
    text-align: center;
}

.order-row div {
    text-align: center;
}

.header-mobile {
    display: none;
}

/* Базовый стиль бургера */
.burger-menu {
    display: none;
    /* Покажем на мобилках через медиа-запрос */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 15;
    /* Чтобы был выше меню */
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.catalog-filter-open {
    display: none;
}

.catalog-filter-modal {
    display: block;
}

.catalog-filter-close {
    display: none;
}

/* Адаптив: показываем бургер на мобильных */
@media (max-width: 768px) {

    /* Модальное окно — база */
    /* Скрываем модалку по умолчанию через видимость, а не display */
    .catalog-filter-modal {
        position: fixed;
        top: 0;
        right: -100%;
        /* Изначально спрятано за правым краем */
        width: 100%;
        height: 100vh;
        z-index: 1000;
        visibility: hidden;
        transition: right 0.4s cubic-bezier(0, 0.55, 0.45, 1), visibility 0.4s;
    }

    /* Класс для открытия (добавляется через JS) */
    .catalog-filter-modal.active {
        right: 0;
        visibility: visible;
    }

    /* Фон затемнения */
    .catalog-filter-modal-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        opacity: 0;
        transition: opacity 0.4s;
    }

    .catalog-filter-modal.active .catalog-filter-modal-bg {
        opacity: 1;
    }

    /* Контент фильтров (выезжающая панель) */
    .catalog-filter-modal-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: #fff;
        padding: 24px;
        overflow-y: auto;
        z-index: 1001;
        /* Убедитесь, что здесь нет лишних отступов */
        padding: 80px 20px 40px 20px;

    }

    /* Кнопка закрытия */
    .catalog-filter-close {
        /* Ваши стили кнопки остаются прежними */
        display: flex;
        margin-left: auto;
        margin-bottom: 16px;
        cursor: pointer;
    }


    .burger-menu {
        display: flex;
    }

    .vertical-flex-mobile {
        flex-direction: column !important;
        gap: 16px;
    }

    .display-grid-column-three {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        /* grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); */
        gap: 24px;
    }

    .mailing {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mailing form {
        width: 100%;
    }

    .mailing button {
        border-radius: 6px;
    }

    .mailing form .horizontal-flex {
        width: 100%;
        gap: 12px;
    }

    .border-radius-6px-mobile {
        border-radius: 6px;
    }

    .mailing .width-335px {
        width: 100%;
    }

    .mailing .button-active {
        width: 100%;
        border-radius: 6px;
    }

    .display-grid-column-four,
    catalog-products-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .header-mobile {
        display: flex;
        justify-content: space-between;
        padding: 20px;
        align-items: center;
    }

    .header-part-first,
    .header-part-second {
        display: none;
    }


    .header-part-first,
    .header-part-second,
    .main-section2,
    .section-main-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .card,
    .card-advantage,
    .card-review,
    .card-variant-second,
    .card-variant-third,
    .card-variant-red,
    .card-review-second,
    .width-360px,
    .photo-main-team,
    .section-photo {
        width: 100%;
        height: fit-content;
    }

    .img-ballons {
        scale: 0.85;
        align-self: center;
    }

    .img-about-us {
        width: 100%;
        height: 180px;
    }

    .map {
        height: 300px;
    }

    .main-section2 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0px auto;
        padding: 50px 0px;
        width: 100%;
    }

    .main-section-group-text {
        gap: 4px;
    }

    .main-section-group-text img {
        scale: 0.79;
        width: fit-content;
    }


    .display-grid-column-three-2fr-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        width: 100%;
    }

    .height-284px {
        height: 250px;
    }



    .display-grid-column-1fr-2fr {
        display: flex !important;
    }

    h1 {
        align-self: center;
        justify-self: center;
        text-align: center;
    }

    :root {
        --h1: 500 54px/50px 'blackberry', sans-serif;
        --h2: 600 24px/29px 'Montserrat', sans-serif;
        --h3: 600 18px/22px 'Montserrat', sans-serif;
        --h4: 500 16px/20px 'Montserrat', sans-serif;
        --h5: 500 14px/17px 'Montserrat', sans-serif;
        --h6: 400 14px/17px 'Montserrat', sans-serif;
        --p: 400 16px/20px 'Montserrat', sans-serif;

        --accent-color: #C34547;
        --accent-color-additional: #123122;
        --accent-color-second: #1EA0D4;
        --cards-color: #FAFAFA;
        --main-color: #F2F2F2;
        --Main-color-second: #E4E4E4;
        --Fields-color: #EDEDED;
        --text-of-fields-color: #898989;
        --text-color: #393939;
        --border-color: #CFCFCF;

        --border-radius-first: 6px;
        --border-radius-second: 3px;

        --border: 1px var(--border-color) solid;
        --border-second: 1px var(--Main-color-second) solid;
        --border-accent: 1px var(--accent-color) solid;

        --padding: 20%;
        --padding-2: 16px 16px;
        --padding-32px: 24px;
        --padding-24px: 18px;
    }

    .margin-top-32px {
        margin-top: 32px;
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 24px;
        height: 24px;
        cursor: pointer;
    }


    .close-menu span {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        transform-origin: center;
        transition: transform 0.3s ease;
    }

    .close-menu span:first-child {
        transform: rotate(45deg);
    }

    .close-menu span:last-child {
        transform: rotate(-45deg);
    }

    .main-information-about-store {
        display: flex;
        flex-direction: column;
        align-items: left;
        text-align: left;
        gap: 24px;
    }

    .discount-badge {
        position: absolute;
        top: 0px;
        left: 80% !important;
        background-color: var(--accent-color);
        /* Красный цвет */
        color: white;
        padding: 8px 12px;
        border-radius: 3px;
        z-index: 2;
        font: var(--h3);

    }

    .img-card {
        width: 60px;
        /* Увеличь для теста */
        height: 60px;
        object-fit: cover;
        /* Чтобы не сплющивало */
        display: block !important;
        /* Красная рамка поможет увидеть границы */
    }

    .button-size-small {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12px 16px;
        height: 44px;
        font: var(--h5);
        box-sizing: border-box;
    }

    .button-size-big {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12px 8px;
        height: 44px;
        font: var(--h5);
    }

    .div-button-counter {
        height: 44px !important;
        max-width: 300px;

    }

    .wishlist-btn {
        width: 44px;
        height: 44px;
        background: var(--cards-color);
        border: var(--border);
        border-radius: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        padding: 0;
        flex-shrink: 0;
    }

    .heart-icon {
        scale: 1.3;
    }

    .gap-60px {
        gap: 54px;
    }

    .gap-50px {
        gap: 48px;
    }

    .gap-48px {
        gap: 44px;
    }

    .gap-40px {
        gap: 32px;
    }

    .gap-32px {
        gap: 28px;
    }

    .gap-24px {
        gap: 22px;
    }

    .gap-20px {
        gap: 18px;
    }

    .gap-16px {
        gap: 14px;
    }

    .gap-12px {
        gap: 12px;
    }

    .gap-8px {
        gap: 8px;
    }

    .gap-4px {
        gap: 4px;
    }

    .gap-1px {
        gap: 1px;
    }


    .svg-button-active {
        display: none;
    }

    .ballon5 {
        display: none;
    }

    .ballon1 {
        width: 135px;
        left: 34%;
        top: 260px;
    }

    .ballon2 {
        width: 80px;
        left: 70%;
        top: 280px;

    }

    .ballon3 {
        width: 50px;
        left: 13%;
        top: 300px;
    }

    .ballon4 {
        display: none;
    }



    .section-main-button {
        gap: 0;
    }

    .section-main-button {
        display: none;
    }

    .card-product-page .rotate-90-deg {
        border: none;
        background-color: var(--border-color);
        width: 100%;
        height: 1px;
        margin: 0;
        align-self: stretch;
        flex-shrink: 0;
    }

    .our-advantages {
        background-image: url(../img/svg-pattern.svg);
        width: 100%;
        background-size: cover;
        background-position: 30% 30%;
        background-repeat: no-repeat;
    }

    .section-main-button .rotate-90-deg {
        display: none;
    }

    .filters-content {
        display: none;
    }

    .section-main-buttons hr {
        display: none;
    }

    .padding-0px-16px {
        padding: 0px 16px;
    }

    .mailing {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* Разносит текст и шарик по разным краям */
        gap: var(--gap-20px);
        /*[cite: 1] */
    }

    .mailing-info {
        flex: 1;
        /* Текст заберет всё свободное место */
        text-align: center;
        /* Текст будет по центру своей (теперь широкой) области */
    }

    .mailing-icon {
        flex-shrink: 0;
        /* Шарик не будет сжиматься, если текста станет слишком много */
    }

    .section-main-buttons {
        justify-self: right;
        top: -110px;
    }


    .card-variant-third {
        padding: var(--padding-24px);
    }




    .align-items-flex-start-mobile {
        align-items: flex-start !important;
    }

    .align-items-align-center-mobile {
        align-items: center !important;
    }

    .button-nav {
        padding: 0px;
    }

    .grid {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    .column-1fr-mobile {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .footer {
        background-position: left;
    }

    .catalog-products-grid {
        grid-template-columns: 1fr;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--cards-color);
        padding: 80px 20px 40px 20px;
        display: flex;
        flex-direction: column;
        gap: 24px;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0, 0.55, 0.45, 1);
        z-index: 500;
        align-items: stretch;
    }

    .breadcrumbs {
        flex-wrap: wrap;
    }

    .mobile-nav.open {
        right: 0;
        /* Выезжает при открытии */
    }

    .burger-menu {
        display: flex;
    }

    .mobile-nav a {
        height: auto;
    }

    .logo {
        height: 42px;
    }

    .mobile-nav .button-size-small {
        width: fit-content;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .main-section {
        background-image: url(../Img/backgroind-main-mobile.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 624px;
        width: 100%;
    }

    /* Описываем саму анимацию */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .asd {
        height: 40px;
    }

    /* Скрываем элементы по умолчанию, когда меню закрыто */
    .mobile-nav>* {
        opacity: 0;
    }

    /* Когда у меню появляется класс .open, запускаем анимацию для дочерних элементов */
    .mobile-nav.open>* {
        animation: fadeInUp 0.5s ease forwards;
    }

    /* Задаем задержку для каждого типа контента (Stagger) */
    .mobile-nav.open>*:nth-child(1) {
        animation-delay: 0.1s;
    }

    .button-size-big {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 14px 29px;
        height: 48px;
        font: var(--h4);
    }


    /* Логотип / Крестик */
    .mobile-nav.open>*:nth-child(2) {
        animation-delay: 0.2s;
    }

    /* Поиск */
    .mobile-nav.open>*:nth-child(3) {
        animation-delay: 0.3s;
    }

    .align-text-center-mobile {
        text-align: center;
    }

    /* Кнопки (Войти/Корзина) */
    .mobile-nav.open>*:nth-child(4) {
        animation-delay: 0.4s;
    }

    /* Навигация (О нас/Контакты) */
    .mobile-nav.open>*:nth-child(5) {
        animation-delay: 0.5s;
    }

    .mobile-nav.open>*:nth-child(6) {
        animation-delay: 0.6s;
    }

    .mobile-nav.open>*:nth-child(7) {
        animation-delay: 0.7s;
    }

    .mobile-nav.open>*:nth-child(8) {
        animation-delay: 0.8s;
    }


    .mailing-info {
        /* Это заставит блок сжаться до ширины самой длинной строки текста */
        width: fit-content;

        /* Чтобы блок при этом не прилип к шарику, если он во флексе */
        margin: 0 auto;

        /* Центрируем сам текст внутри сжатого блока */
        text-align: center;
        width: 230px;
    }

    .display-grid-column-one-mobile {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .display-one {
        display: block;
    }

    .display-zero {
        display: none;
    }

}

.display-grid-column-1fr-2fr {
    display: grid;
    /* Сайдбар всегда 280px, товары забирают всё остальное свободное место */
    grid-template-columns: 250px 1fr;
    gap: 24px;
    /* Выравнивание по верхнему краю, чтобы сайдбар не растягивался по высоте сетки */
    align-items: start;
}

.display-grid-column-1fr-1fr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.nav-item {
    position: relative;
    /* Чтобы позиционировать индикатор относительно кнопки */
    display: inline-block;
}

.wishlist-active {
    color: #EE5255;
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #d14d4d;
    /* Твой фирменный красный цвет */
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
    /* Чтобы отделялся от кнопки */
    line-height: 1;
    z-index: 10;
}


.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}



.toast {
    background-color: #d14d4d;
    /* Твой основной красный */
    color: white;
    padding: 16px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@media (max-width: 600px) {

    .horizontal-flex-mobile-column {
        flex-direction: column;
        align-items: stretch;
    }

    .section-padding {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .flex-wrap-mobile {
        flex-wrap: wrap;
    }

    .header-part-first {
        flex: none;
    }

    .flex-column-reverse {
        flex-direction: column-reverse;
    }

    .flex-row-reverse {
        flex-direction: row-reverse;
    }
}



.modal-order-window {
    max-width: 1120px;
    width: 90%;
    overflow-y: auto;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}


/* Общий оверлей (фон) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Затемнение */
    display: none;
    /* Контролируется через JS */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
    /* Легкое размытие заднего фона */
}

/* Контейнер модального окна */
.modal-content {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeInScale 0.2s ease-out;
}

#photoModal .modal-content {
    background: transparent;
    padding: 0;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#photoModalImage {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Заголовок и текст */
.modal-content h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: #333;
}

.modal-content b#deleteItemName {
    color: #e74c3c;
    /* Красный акцент на названии удаляемого товара */
    word-break: break-word;
}


.img-card {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cards-img {
    position: relative;
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}


.discount-badge {
    position: absolute;
    top: 0px;
    left: 72%;
    background-color: var(--accent-color);
    /* Красный цвет */
    color: white;
    padding: 8px 12px;
    border-radius: 3px;
    z-index: 2;
    font: var(--h3);

}

input:disabled {
    background-color: #f5f5f5 !important;
    /* Серый фон */
    color: #a0a0a0 !important;
    /* Серый текст */
    cursor: not-allowed;
    /* Курсор в виде запрещающего знака */
    border-color: #ddd !important;
    opacity: 0.7;
}





/* Анимация */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}



.review-photo {
    cursor: pointer;
    object-fit: cover;
}

#reviewImagesPreview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.review-photo-preview {
    position: relative;
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    border: var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--cards-color);
}

.review-photo-preview img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    display: block;
}


.delete-review-photo {
    position: absolute;
    top: 6px;
    right: 6px;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.7);
    color: white;

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

    padding: 0;

    font-size: 14px;

    z-index: 5;
}

.delete-review-photo:hover {
    background: rgba(0, 0, 0, 0.85);
}

.review-image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

#reviewImageModalImg {
    max-width: 100%;
    max-height: 200vh;
    border-radius: 6px;
    object-fit: contain;
}

.rating-line {
    width: 100%;
    height: 8px;
    background: var(--Main-color-second);
    border-radius: 999px;
    overflow: hidden;
}

.rating-line-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 999px;
}

.star-icon path {
    fill: currentColor;
}

.star-active {
    color: var(--accent-color);
}

.star-disabled {
    color: var(--Main-color-second);
}

.star-half {
    color: var(--accent-color);
    opacity: 0.55;
}

.toast {
    font: var(--h5);

    color: var(--cards-color);

    background: var(--accent-color);

    padding: 16px 24px;

    border-radius: 8px;

    max-width: 420px;

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);

    animation: toastIn 0.35s ease;
}

.toast.fade-out {
    animation: toastOut 0.35s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;

        transform:
            translateY(20px) translateX(20px) scale(0.96);
    }

    to {
        opacity: 1;

        transform:
            translateY(0) translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;

        transform:
            translateY(0) translateX(0) scale(1);
    }

    to {
        opacity: 0;

        transform:
            translateY(20px) translateX(20px) scale(0.96);
    }
}




.text-align-right {
    text-align: right;
}

.display-grid-column-seven {
    display: grid;
    grid-template-columns: 50px 1.1fr 170px 1.6fr 180px 120px 180px;
    gap: 20px;
    align-items: center;
}

.display-grid-column-seven p,
.display-grid-column-seven h4,
.display-grid-column-seven h5 {
    text-align: center;
}

.user-role-select {
    height: 44px;

    padding: 0 16px;

    font: var(--h5);

    min-width: 200px;
}

.user-date {
    color: var(--grey-text-color);

    font: var(--h5);
}

.admin-user-avatar-placeholder {
    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: var(--main-color-element-color);

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

    font: var(--h3);

    color: var(--accent-color);
}


.user-role-select {
    width: 60px;
    height: 36px;

    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;

    background: transparent;
    background-image: none !important;

    border: none;

    padding: 0;

    font: var(--h5);
    color: var(--text-color);

    cursor: pointer;
}

.user-role-select:disabled {
    color: var(--text-of-fields-color);
    cursor: not-allowed;
}

.img-avatar {
    width: 60px;
    height: 60px;

    border-radius: 3px;

    object-fit: cover;
}

body {
    opacity: 1;
}

body.page-transition {
    animation: pageFadeIn 0.10s ease forwards;
}

body.page-transition-out {
    animation: pageFadeOut 0.10s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.big-stars svg {
    width: 24px;
    height: 24px;

}

.stars-small {
    display: flex;
    gap: 2px;
}

.star-active {
    opacity: 1;
    /* активная звезда */
}

.star-disabled {
    opacity: 0.3;
    /* неактивная */
}

.big-stars {
    display: flex;
    gap: 4px;
    align-items: center;
    scale: 1.2;
}

.display-grid-column-three-order {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.display-grid-column-three-order .white-element:last-child {
    text-align: right;
}

.review-avatar {
    height: 20px;
    width: 20px;
    object-fit: cover;
}


.cart-remove {
    flex-shrink: 0;
    /* Запрещает кнопке становиться меньше, чем ее содержимое + паддинги */
}





.width-max-500px {
    max-width: 360px;
    width: 100%;
}

.order-row {
    color: var(--text-color);
    text-decoration: none;
}

.order-row:visited {
    color: var(--text-color);
}

.order-row:hover {
    color: var(--text-color);
}

.order-row .status-wait {
    color: #393939;
}

.order-row .status-delivery {
    color: #393939;
}

.order-row .status-done {
    color: #7ac943;
}

.order-row .status-cancel {
    color: #d35b5b;
}

.product-preview-image {
    cursor: pointer;
}

#productImageModalImg {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
}


.card .cards-img {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card .img-card {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    display: block;
}

.status-wait {
    color: #f39c12 !important;
}

/* Желтый текст */
.status-delivery {
    color: #3498db !important;
}

/* Синий текст */
.status-done {
    color: #27ae60 !important;
}

/* Зеленый текст */
.grey-element {
    color: #95a5a6 !important;
}

/* Серый текст */
.status-cancelled {
    color: #999;
    /* Или другой оттенок серого */
}

.a-text {
    display: inline;
    /* Убеждаемся, что лейбл — строчный элемент */
    vertical-align: middle;
    /* Выравнивает текст и чекбокс по центру по вертикали */
    line-height: 1.5;
    /* Задает высоту строки, чтобы всё было аккуратно */
}

.a-text a {
    display: inline;
    /* Ссылки тоже должны быть строчными */
    text-decoration: underline;
    color: inherit;
}

.search-wrapper {
    position: relative;
    width: 100%;
    /* Убедитесь, что обертка занимает доступное место */
    z-index: 700;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 400px;
    /* Список будет расти по мере добавления товаров, но не выше 400px */
}

.search-dropdown-item {
    display: flex;
    /* БЫЛО display: relative, исправлено на flex */
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border);
    /* Добавлено "1px solid", чтобы рамка отрисовалась */
    background-color: var(--cards-color);
    text-decoration: none;
    /* Чтобы убрать подчеркивание ссылки */
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: var(--Fields-color);
}

.search-dropdown-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 3px;
}

.search-dropdown-empty {
    padding: 12px;
    font: var(--h5);
    color: var(--text-of-fields-color);
}

/* Исправление для мобильного поиска */
/* Оборачиваем поиск в мобильном меню в позиционируемый слой */
.mobile-nav .search-wrapper {
    position: relative;
    width: 100%;
    /* Добавляем это, чтобы он не "растягивал" меню */
    flex-shrink: 0;
}

.mobile-nav .search-dropdown {
    position: absolute;
    top: 100%;
    /* Четко под полем ввода */
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Должен быть больше, чем у мобильного меню */
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
}