:root {
    --white: #F0F0F0;
    --primary-red: #CF0939;
    --special-gray: #9E9FA0;
    --light-gray: #6E6F70;
    --normal-gray: #555558;
    --dark-gray: #202223;

    --btn-gray: #303233;
    --btn-hover: #BE133C;

    --card-color: #1C1E1F;
    --card-hover: #252728;

    --popup-bg: #282A2B;
    --popup-stroke: #2E3031;

    --green: #18B14D;
    --yellow: #E4950E;

    --bg-main-color: #151718;

    --inout: #47474A;
    --inout-hover: #49494C;

    --transition: 0.3s ease;



}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", serif;
    background-color: var(--bg-main-color);
    color: var(--white);
    overflow-x: hidden;
}

.page,
.general {margin-top: 24px;}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

input,
textarea,
select {
    background-color: transparent;
}

textarea {
    resize: none;
}

a:hover,
a {
    text-decoration: none;
    color: var(--white);
}

button {
    cursor: pointer;
    background-color: transparent;
    border: none;
}

header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background-color: var(--bg-main-color);
    max-width: 100%;
    padding-bottom: 16px;
}

header.fixed .mega-menu__left,
header.fixed .mega-menu__right {
    overflow-y: auto;
    min-height: auto;
}

[type="radio"]:checked,
[type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}

[type="radio"]:checked+label,
[type="radio"]:not(:checked)+label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
    color: var(--special-gray);
}

[type="radio"]:checked+label:before,
[type="radio"]:not(:checked)+label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--special-gray);
    border-radius: 100%;
    background: transparent;
}

[type="radio"]:checked+label:after,
[type="radio"]:not(:checked)+label:after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary-red);
    position: absolute;
    top: 5px;
    left: 5px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

[type="radio"]:not(:checked)+label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}

[type="radio"]:checked+label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

[type="radio"]:checked+label {
    color: var(--white);
}

[type="radio"]:checked+label:before {
    border: 1px solid var(--primary-red);
}

[type="radio"]:not(:checked):hover+label:before {
    border-color: var(--light-gray);
}

[type="radio"]:not(:checked):hover+label {
    color: var(--light-gray);
}

.btn {
    transition: background-color var(--transition);
    color: var(--white);
}

.container {
    max-width: 1440px;
}

.fs-12 {
    font-size: 12px;
}
.fs-11 {
    font-size: 11px;
}
.fs-10 {
    font-size: 10px;
}
.fs-14 {
    font-size: 14px;
}
.fs-18 {
    font-size: 14px;
}

.text-gray {
    color: var(--light-gray);
}

.text-special-gray {
    color: var(--special-gray);
}

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

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

.special-gray-text {
    color: var(--special-gray);
}

.red-text {
    color: var(--primary-red) !important;
}

.yellow-text {
    color: var(--yellow) !important;
}

.bg-red {
    background-color: var(--primary-red);
}

.error {
    border-color: var(--primary-red) !important;
}

.error-field label {
    color: var(--primary-red) !important;
}

.error-field .form-control {
    border-color: var(--primary-red) !important;
}

.cursor-pointer {
    cursor: pointer;
}


.history-controls-circle {
    width: 4px;
    height: 4px;
    border-radius: 10px;
    background-color: var(--special-gray);
}

.logo {
    min-width: 216px;
    max-width: 216px;
}

.logo img {
    max-width: 100%;
}

.navigation {
    background-color: var(--dark-gray);
    border-radius: 24px;
    margin-left: 12px !important;
    margin-right: 12px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    
}
.navigation.binded {
    position: fixed !important;
    top: 20px !important;
    /*left: 0 !important;
    right: 0 !important;*/
    border: 1px solid var(--primary-red);
    z-index: 900;
    }
@media (min-width: 767.98px) {
    .navigation {
        border: 1px solid var(--dark-gray);
    }
}

/*@media (max-width: 380px) {
}
@media (max-width: 576px) {
}
@media (max-width: 767.98px) {
}*/
/*@media (min-width: 992px) {*/
@media (max-width: 1439px) {
    .navigation.binded {
        margin-left: calc(var(--bs-gutter-x) * .5) !important;
        margin-right: calc(var(--bs-gutter-x) * .5) !important;
    }
}
@media (min-width: 1440px) {
    .navigation.binded {
        margin-left: calc((var(--bs-gutter-x) * .75) + 1px) !important;
        margin-right: calc((var(--bs-gutter-x) * .75) + 1px) !important;
    }
}
    

.primary-btn:focus,
.primary-btn {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 11px;
    border-radius: 8px;
    line-height: 17.5px;
    width: fit-content;
}

.primary-btn:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
}

.primary-btn:disabled {
    background-color: var(--light-gray);
    border-color: var(--light-gray);
    color: var(--special-gray);
}

.secondary-btn:focus,
.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--primary-red) !important;
    font-weight: 400;
    font-size: 14px;
    padding: 11px 12px;
    border-radius: 8px;
    line-height: 17.5px;
    border: none;
    width: fit-content;
}

.secondary-btn:hover {
    border-color: var(--btn-hover) !important;
}

.secondary-btn:disabled {
    border-color: var(--light-gray) !important;
    color: var(--light-gray);
}

.special-btn:focus,
.special-btn {
    background-color: var(--btn-gray);
    font-weight: 400;
    font-size: 12px;
    padding: 12px;
    border-radius: 8px;
    line-height: 16.2px;
    border: none;
    width: fit-content;
}

.special-btn:hover {
    background-color: var(--btn-hover);
}

.special-btn:disabled {
    background-color: var(--normal-gray);
    color: var(--special-gray);
}

.catalog-btn {
    max-height: 44px;
}

.warning-banner {
    min-height: 44px;
}

.warning-banner {
    display: none;
}

.close-warning-banner {
    content: url(/i/app/images/icons/cross.svg);
    cursor: pointer;
}

.search {
    padding: 2px;
    border: 1px solid var(--normal-gray);
    border-radius: 8px;
    width: 100%;
    height: 44px;
    position: relative;
    background-color: var(--dark-gray);
}

.search-content {
    height: 100%;
}

.search-btn:focus,
.search-btn {
    padding: 0 12px;
    height: 100%;
}

.search-content input {
    border: none;
    width: 100%;
    margin-left: 36px;
}

.search-content input:focus {
    outline: none;
}

.search-content input::placeholder {
    font-size: 16px;
}

.blur-bg,
.search-bg {
    width: 100%;
    height: 100%;
    background-color: #0C0C0C99;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    left: 0;
    top: 0;
}

.search.active {
    border-color: var(--white);
    position: relative;
    z-index: 1000;
}

.search.active+.search-bg {
    display: block;
}

.search.active svg path {
    stroke: var(--white) !important;
}

.search-content input {
    color: var(--white)
}

.search svg {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 20px;
}

.navigation-count {
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--primary-red);
    border-radius: 100px;
    right: -16px;
    top: -50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.favorites,
.bag {
    cursor: pointer;
}

.favorites>p,
.favorites>svg,
.bag>p,
.bag>svg {
    transition: all var(--transition);
}

.favorites:hover>p,
.bag:hover>p {
    color: var(--white);
}

.favorites:hover svg path,
.bag:hover svg path {
    stroke: var(--white);
}

.search-dropdown {
    border-radius: 8px;
    background-color: var(--popup-bg);
    padding: 12px 8px;
    position: absolute;
    left: 0;
    top: calc(100% + 14px);
    min-width: 100%;
    border: 1px solid var(--popup-stroke);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform var(--transition);
    visibility: hidden;
    transform: translateY(-10px);
    z-index: 100;
}

.search-dropdown.active {
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    transition: background-color var(--transition);
    cursor: pointer;
    border-radius: 8px;
}

.search-dropdown__item.active,
.search-dropdown__item:hover {
    background-color: var(--normal-gray);
}

.search-dropdown__item-img {
    width: 60px;
    min-width: 60px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
}

.search-dropdown__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3D карточка категории с параллакс эффектом */
.category-item {
    position: relative;
    background: linear-gradient(145deg, rgba(28, 30, 31, 0.9) 0%, rgba(20, 22, 23, 0.95) 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 36px;
    height: 100%;
    transition: transform 0.1s ease-out, box-shadow var(--transition);
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Стеклянный слой для глубины */
.category-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Призматический рефракционный эффект - ограничен размерами карточки */
.category-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(207, 9, 57, 0.1) 0%,
        rgba(0, 200, 255, 0.05) 40%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Hover эффекты только для устройств с мышью (не touch) */
@media (hover: hover) and (pointer: fine) {
    .category-item:hover::after {
        opacity: 1;
    }

    .category-item:hover {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(207, 9, 57, 0.15),
            inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
}

.category-item img {
    width: 100%;
    max-height: 105px;
    min-height: 105px;
    height: 105px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.15s ease-out;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transform: translateZ(30px);
}

.category-item p {
    position: relative;
    z-index: 2;
    transform: translateZ(15px);
}

/* Контейнер для категорий */

.product-list-tab {
    color: var(--light-gray);
    cursor: pointer;
    transition: width var(--transition);
    font-size: 24px;
}

.product-list-tab.active {
    color: var(--white);
}

.product-list-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background-color: var(--primary-red);
    transition: width var(--transition);
}

.product-list-tab:hover::after,
.product-list-tab.active::after {
    width: 100%;
}

.product-item,
.product-item__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 3D карточка товара с параллакс эффектом */
.product-item {
    position: relative;
    background: linear-gradient(145deg, rgba(28, 30, 31, 0.95) 0%, rgba(20, 22, 23, 0.98) 100%);
    border-radius: 12px;
    padding: 8px;
    height: 100%;
    justify-content: space-between;
    transition: transform 0.1s ease-out, box-shadow var(--transition);
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

/* Стеклянный слой для глубины */
.product-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Призматический рефракционный эффект - ограничен размерами карточки */
.product-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(207, 9, 57, 0.08) 0%,
        rgba(0, 200, 255, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Hover эффекты только для устройств с мышью (не touch) */
@media (hover: hover) and (pointer: fine) {
    .product-item:hover::after {
        opacity: 1;
    }

    .product-item:hover {
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.35),
            0 0 25px rgba(207, 9, 57, 0.12),
            inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }
}

.product-item__img {
    border-radius: 8px;
    height: 140px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    transform: translateZ(25px);
}

.product-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.15s ease-out;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

/* Контейнер товаров */

.product-item__bage {
    background-color: var(--primary-red);
    border-radius: 6px;
    padding: 2px 5px;
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 1;
    font-size: 12px;
}

.to-row.product-item {
    justify-content: space-between;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    align-items: center;
    transition: background-color var(--transition);
}

/* Hover эффект для табличного вида - только для устройств с мышью */
@media (hover: hover) and (pointer: fine) {
    .to-row.product-item:hover {
        background-color: var(--card-hover);
    }
}

.to-row.product-item .product-item__content {
    display: grid;
    /*grid-template-columns: 2fr 3fr 2fr 2fr 1fr;*/
    grid-template-columns: 1fr 3fr repeat(3, 2fr);
    align-items: center;
    width: 100%;
}

.to-row.product-item .product-item__img {
    height: 100%;
    display: flex;
    /*justify-content: end;*/
    width: 100%;
    order: 1;
    /*min-width: 143px;
    max-width: 143px;*/
}

.to-row.product-item .product-item__img img {
    width: 90px;
    border-radius: 8px;
    /*height: 55px;*/
}

.to-row.product-item .product-item__bage {
    font-size: 12px;
    bottom: 0;
    top: auto;
    left: 0;
}
.to-row.product-item .product-item__description {
    order: 2;
}
.to-row.product-item .product-item__articul {
    order: 3;
}
.to-row.product-item .product-item__instock {
    order: 4;
}
.to-row.product-item .product-item__price {
    order: 5;
}

/*
.to-row.product-item .add-to-favorite {
    left: 0;
    top: 0;
}

.to-row.product-item p:nth-of-type(1) {
    order: 2;
}

.to-row.product-item p:nth-of-type(2) {
    order: 3;
}

.to-row.product-item span {
    order: 4;
    text-align: center;
}

.to-row.product-item .product-item__price {
    order: 5;
}*/

.to-row.product-item p:not(:nth-of-type(1)) {
    text-align: center;
}

.to-row.product-item .product-item__price {
    justify-content: start !important;
    flex-direction: row-reverse;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.to-row.product-item .product-item__price>div {
    flex-direction: row-reverse;
    align-items: center !important;
}

.to-row.product-item .product-item__price>div span {
    line-height: 12px;
}

.to-row.product-item button {
    width: fit-content !important;
    white-space: nowrap;
    padding: 10px 12px;
    height: fit-content;
}

.add-to-favorite {
    position: absolute;
    right: 8px;
    top: 8px;
    content: url(/i/app/images/icons/heart.svg);
    cursor: pointer;
}

.add-to-favorite.active {
    content: url(/i/app/images/icons/heart-fill.svg);
}

.product-item__description {
    color: var(--special-gray);
}

.product-item__discount {
    font-size: 12px;
    color: var(--primary-red);
    text-decoration: line-through;
}

/* loader */
.loader {
    height: 37px;
    width: 37px;
}

.loader .spin {
    position: relative;
    box-sizing: border-box;
    display: block;
    margin: auto;
    height: 37px;
    width: 37px;
    border: 6px solid var(--light-gray);
    border-top: 6px solid var(--primary-red);
    border-radius: 50%;
    animation: loader-spin 2s linear infinite;
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* loader */

.to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    z-index: 1000;
    border-radius: 12px;
    background-color: var(--primary-red);
    content: url(/i/app/images/icons/arrow-up.svg);
    padding: 16px;
    cursor: pointer;
    transition: visibility var(--transition), opacity var(--transition);
    visibility: hidden;
    opacity: 0;
}

.to-top:hover {
    background-color: var(--btn-hover);
}

.to-top.active {
    visibility: visible;
    opacity: 1;
}

.footer {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background-color: var(--dark-gray);
}

.map {
    height: 270px;
    border-radius: 12px;
    overflow: hidden;
}

.mega-menu {
    position: absolute;
    border-radius: 24px;
    background-color: var(--dark-gray);
    padding: 18px 24px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all var(--transition);
    transform-origin: left top;
    border: 1px solid var(--primary-red);
}
.navigation:not(.binded) .mega-menu {
    left: -1px;
    right: -1px;
    top: calc(100% + 1rem);
    margin-left: calc((var(--bs-gutter-x) * .5) + 1px);
    margin-right: calc((var(--bs-gutter-x) * .5) + 1px);

    height: 80vh;
    max-height: 80vh;


}
.navigation.binded .mega-menu {
    left: -1px;
    right: -1px;
    top: calc(100% + 1rem);
    height: 85vh;
    max-height: 85vh;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mega-menu__left {
    border-right: 1px solid var(--btn-gray);
    padding-right: 2rem;
    width: 320px;
    overflow-y: scroll;
}

.mega-menu__left::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}

.mega-menu__left::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.mega-menu__right {
    display: none;
    width: calc(100% - 300px);
}
@media (min-width: 767.98px) {
    .mega-menu__right.active {
        display: flex;
    }
}

.mega-menu__right ul li a {
    transition: color var(--transition);
}

.mega-menu__right ul li:hover a {
    color: var(--primary-red);
}

.mega-menu__link {
    padding: 1rem;
    position: relative;
    /*cursor: pointer;*/
    border-radius: 12px;
    transition: background-color var(--transition);
    display: block;
    margin-bottom: 3px;
    width: 290px;
    padding-right: 35px;
}

.mega-menu__link.active,
.mega-menu__link:hover {
    background-color: var(--primary-red);
}

.mega-menu__link::after {
    position: absolute;
    right: 4px;
    top: 55%;
    transform: translateY(-50%);
    content: url(/i/app/images/icons/chevron-right.svg);
}

.mega-menu__link.new::before,
.mega-menu__link.sale::before {
    position: absolute;
    left: 12px;
    top: calc(50% + 3px);
    transform: translateY(-50%);
}

.mega-menu__link.new::before {
    content: url(/i/app/images/icons/star.svg);
}

.mega-menu__link.sale::before {
    content: url(/i/app/images/icons/discount-star.svg);
}

.mega-menu__link.sale,
.mega-menu__link.new {
    padding-left: 42px
}

.mega-menu__link.new.active::before,
.mega-menu__link.new:hover::before {
    content: url(/i/app/images/icons/star-white.svg);
}

.mega-menu__link.sale.active::before,
.mega-menu__link.sale:hover::before {
    content: url(/i/app/images/icons/discount-star-white.svg);
}

/* modal */
.small-modal {
    max-width: 390px;
}

.modal-content {
    background-color: var(--popup-bg);
    padding: 18px;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
}

input.noautofill:is(:-webkit-autofill, :autofill), .noautofill {
    -webkit-box-shadow:0 0 0 50px var(--inout) inset;
    -webkit-text-fill-color: #212529;
}
input.noautofill:-webkit-autofill,
input.noautofill:-webkit-autofill:hover, 
input.noautofill:-webkit-autofill:focus, 
input.noautofill:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--inout) inset !important;
}

input.noautofill:autofill,
input.noautofill:autofill:hover, 
input.noautofill:autofill:focus, 
input.noautofill:autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--inout) inset !important;
}




input.form-control:is(:-webkit-autofill, :autofill), .noautofill {
    -webkit-box-shadow:0 0 0 50px var(--inout) inset;
    -webkit-text-fill-color: #212529;
}
input.form-control:-webkit-autofill,
input.form-control:-webkit-autofill:hover, 
input.form-control:-webkit-autofill:focus, 
input.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--inout) inset !important;
}

input.form-control:autofill,
input.form-control:autofill:hover, 
input.form-control:autofill:focus, 
input.form-control:autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--inout) inset !important;
}
input.form-control:focus {
    background-color: var(--inout);
    border-color: #fff;
    box-shadow: none;
    outline: none;
}
.input-group .input-group-text {
    background-color: var(--inout);
    border: 1px solid var(--inout);
    padding: .5rem .75rem;
}
.input-group .input-group-text.dropdown-toggle {
    cursor: pointer;

}
.input-group .input-group-text::after {
    border-right: .100rem solid #6e6f70;
    content: "\00a0 ";
    border-top: none;
    border-left: none;
    margin-left: .255rem;
}
.form-control {
    background-color: var(--inout);
    border: 1px solid var(--inout);
    padding: .5rem .75rem;
}

.form-control textarea,
.form-control input {
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: transparent;
    border: none;
    color: var(--white);
}

.form-control textarea:focus,
.form-control input:focus {
    outline: none;
    border: none;
}

.form-control:has(input:focus) {
    outline: none;
    border: 1px solid var(--special-gray);
    background-color: var(--inout-hover);
}

.policy {
    color: var(--light-gray);
}

.policy span {
    color: var(--special-gray);
}

/*--------------CUSTOM CHECKBOX------------------*/
.custom-checkbox {
    display: inline-block;
    position: relative;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.custom-checkbox input[type="checkbox"] {
    visibility: hidden;
    width: 18px;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background-color: transparent;
    border: 1px solid var(--light-gray);
    background-image: url('data:image/svg+xml;utf8,<svg width="14" height="11" viewBox="0 0 14 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.75 8.1275L1.62249 5L0.557495 6.0575L4.75 10.25L13.75 1.25L12.6925 0.192505L4.75 8.1275Z" fill="none"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3px;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark {
    background-image: url('data:image/svg+xml;utf8,<svg width="14" height="11" viewBox="0 0 14 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.75 8.1275L1.62249 5L0.557495 6.0575L4.75 10.25L13.75 1.25L12.6925 0.192505L4.75 8.1275Z" fill="white"/></svg>');
    -webkit-transition: all var(--transition);
    -o-transition: all var(--transition);
    transition: all var(--transition);
}

/*--------------CUSTOM CHECKBOX------------------*/

/*--------------filter------------------*/
.filter {
    height: 40px;
    width: 260px;
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--normal-gray);
    transition: all var(--transition);
}

.filter-input {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.filter-input input {
    background-color: transparent;
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    color: var(--white);
    padding: 10px 16px;
    cursor: pointer;
}

.filter-input svg {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

.filter.active .filter-input {
    border-color: var(--white);
    color: var(--white);
}

.filter-dropdoun {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 8px;
    background-color: var(--popup-bg);
    border-radius: 8px;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    z-index: 100;
    width: 100%;
    min-width: 245px;
}

.filter.active .filter-dropdoun {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter.active .filter-input svg path {
    stroke: var(--white);
}

.filter.active {
    border-color: var(--white);
}

.filter-dropdoun__item {
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
    transition: ackground-color var(--transition);
    border-radius: 8px;
}

.filter-dropdoun__item:hover {
    background-color: var(--normal-gray);
}

/*--------------filter------------------*/

/*--------------mobile-menu------------------*/
.mobile-menu {
    background-color: var(--popup-bg);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    width: 90%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2000;
    transition: transform var(--transition);
    transform: translateX(-100%);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu.active~.blur-bg {
    display: block;
}

.mobile-border {
    border-top: 1px solid var(--btn-gray);
    border-bottom: 1px solid var(--btn-gray);
    padding: 32px 0;
}

.category-prev,
.category-next {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--card-color);
    position: static;
    background-image: none;
    margin: 0;
}

.category-prev::after,
.category-next::after {
    content: '';
}

/*--------------mobile-menu------------------*/
.city-dropdoun {
    width: 280px;
    padding: 12px 8px;
    border-radius: 8px;
    background-color: var(--popup-bg);
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    box-shadow: 0px 4px 32.8px 0px rgba(0, 0, 0, 0.32);
    transition: transform var(--transition);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
}

.city-dropdoun.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.city-dropdoun-item {
    padding: 9px 8px 9px 42px;
    border-radius: 8px;
    transition: background-color var(--transition);
    cursor: pointer;
    position: relative;
}

.city-select-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
    border-right: 1px solid var(--light-gray);
}

.city-dropdoun-item::after {
    position: absolute;
    left: 8px;
    top: calc(50% + 2px);
    transform: translateY(-50%);
}

.city-dropdoun-item.ru::after {
    content: url(/i/app/images/icons/RU.svg);
}

.city-dropdoun-item.by::after {
    content: url(/i/app/images/icons/BY.svg);
}

.city-dropdoun-item.kz::after {
    content: url(/i/app/images/icons/KZ.svg);
}

.city-dropdoun-item.am::after {
    content: url(/i/app/images/icons/AM.svg);
}

.city-dropdoun-item.md::after {
    content: url(/i/app/images/icons/md.svg);
}

.city-dropdoun-item.kg::after {
    content: url(/i/app/images/icons/KG.svg);
}

.city-dropdoun-item:hover {
    background-color: var(--normal-gray);
}


.sms-code {
    width: 100%;
    height: 56px;
    background-color: var(--normal-gray);
    border-radius: 6px;
    border: 1px solid var(--special-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sms-code input {
    width: 100%;
    height: 100%;
    max-width: 100%;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    border: none;
    outline: none;
    max-width: 24px;
    text-align: center;
}

.sms-code input::-webkit-outer-spin-button,
.sms-code input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* error-message */
.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    top: 125px;
    position: fixed;
    z-index: 2000;
    padding: 14px 30px 14px 12px;
    border-radius: 12px;
    width: 360px;
    background-color: var(--primary-red);
    transition: right var(--transition), opacity var(--transition);
    opacity: 0;
    right: -100%;
    cursor: pointer;
}

.error-message.warrning {
    background-color: var(--yellow);
}

.error-message.success {
    background-color: var(--green);
}

.error-message img {
    width: 24px;
    height: 24px;
}

.error-message.show {
    opacity: 1;
    right: 0;
}

.error-message p {
    font-size: 13px;
    line-height: 17.55px;
    font-weight: 500;
}

.error-message__close {
    content: url(/i/app/images/icons/cross-white.svg);
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1;
}

.more-products-btn:focus,
.more-products-btn {
    width: 260px;
}

.sub-control {
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 17.5px;
    transition: background-color var(--transition), color var(--transition);
    cursor: pointer;
    background-color: var(--dark-gray);
    color: var(--special-gray);
}

.sub-control.active,
.sub-control:hover {
    background-color: var(--btn-hover);
    color: var(--white);
}

.to-grid-btn,
.to-row-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    padding: 8px;
    background-color: var(--card-color);
    position: relative;
    cursor: pointer;
}

.to-grid-btn:hover,
.to-row-btn:hover {
    background-color: var(--card-hover);
}

.to-grid-btn:hover svg path,
.to-row-btn:hover svg path {
    stroke: var(--light-gray);
}

.to-grid-btn.active svg path,
.to-row-btn.active svg path {
    stroke: var(--white);
}

.ups a {
    width: 220px;
}

.loged-in-profile-photo {
    width: 24px;
    height: 24px;
}

.has-notify {
    position: relative;
}

.has-notify::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--primary-red);
    position: absolute;
    border-radius: 10px;
    top: 0;
    right: 0;
}

.red-hover:hover svg path,
.red-hover a:hover svg path,
.red-hover button:hover svg path {
    stroke: var(--primary-red);
}

/* counter */
.counter {
    display: flex;
    align-items: center;
    gap: 6px;
}

.counter span,
.counter div {
    background-color: var(--btn-gray);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.counter span {
    cursor: pointer;
}

.counter input {
    border: none;
    outline: none;
    width: 20px;
    height: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--white);
}

.counter input::-webkit-outer-spin-button,
.counter input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.counter input {
    -moz-appearance: textfield;
}

.counter svg path {
    transition: stroke var(--transition);
}

.counter div {
    border: 1px solid var(--light-gray);
}

.counter span:hover svg path,
.counter span.active svg path {
    stroke: var(--special-gray);
}

/* counter */


/* delivery-select-group__item */
.delivery-select-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-select-group__item {
    padding: 12px;
    border-radius: 8px;
    background-color: var(--inout);
    border: 1px solid var(--inout);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border var(--transition);
    position: relative;
}

.delivery-select-group__item:hover {
    border: 1px solid var(--light-gray);
}

.delivery-select-group__item p:last-of-type {
    margin-top: 4px;
}

.delivery-select-group__item:has(input[type="radio"]:checked) {
    border: 1px solid var(--primary-red);
}

.delivery-select-group__item label {
    color: var(--white) !important;
}

.delivery-select-group__item .custom-tooltip {
    top: 12px;
    right: 12px;
}

/* delivery-select-group__item */



/* payment-select-group__item */
.payment-select-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-select-group__item {
    padding: 12px;
    border-radius: 8px;
    background-color: var(--inout);
    border: 1px solid var(--inout);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border var(--transition);
    position: relative;
}

.payment-select-group__item:hover {
    border: 1px solid var(--light-gray);
}

.payment-select-group__item p:last-of-type {
    margin-top: 4px;
}

.payment-select-group__item:has(input[type="radio"]:checked) {
    border: 1px solid var(--primary-red);
}

.payment-select-group__item label {
    color: var(--white) !important;
}

.payment-select-group__item .custom-tooltip {
    top: 12px;
    right: 12px;
}

/* payment-select-group__item */


/* custom-tooltip */
.custom-tooltip {
    position: relative;
}

.custom-tooltip__text {
    position: absolute;
    border-radius: 12px;
    padding: 10px;
    background-color: var(--card-color);
    bottom: calc(100% + 10px);
    right: -110px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition);
    min-width: 363px;
    font-size: 12px;
}

.custom-tooltip__text::after {
    position: absolute;
    bottom: -10px;
    right: 30%;
    content: url(/i/app/images/icons/tail.svg);
}

.custom-tooltip__icon {
    content: url(/i/app/images/icons/info.svg);
    display: inline-block;
    width: 18px;
    height: 18px;
}

.custom-tooltip__icon:hover+.custom-tooltip__text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* custom-tooltip */

.rounded-section-24 {
    background-color: var(--dark-gray);
    border-radius: 24px;
    padding: 24px;
}

.delivery-info ul {
    list-style-type: initial;
    padding-left: 20px;
}

.see-more-from-delivery:hover svg path {
    stroke: var(--white);
}

.location-img {
    border-radius: 12px;
    height: 447px;
    overflow: hidden;
}

.location-img img {
    width: 100%;
    height: 447px;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .search-content input::placeholder {
        font-size: 12px;
    }

    .logo {
        min-width: 179px;
        max-width: 179px;
    }
}

@media (max-width: 992px) {
    .page,
    .general {margin-top: 16px;}

    .rounded-section-24 {
        padding: 16px 12px !important;
        border-radius: 12px;
    }

    .catalog-btn span {
        font-size: 14px !important;
    }

    .navigation-count {
        padding: 1px 2px;
        font-size: 10px;
        font-weight: 500;
        right: -10px;
        width: 18px;
        height: 18px;
    }

    .search.active {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
    }

    .product-list-tab {
        font-size: 20px;
    }

    .category-item {
        padding: 24px 14px;
    }

    .category-item p {
        font-size: 14px;
    }

    .catalog-btn,
    .search {
        max-height: 36px;
    }

    .search svg {
        top: 6px;
    }

    .delivery-info h5 {
        font-size: 20px !important;
    }

    .delivery-info p,
    .delivery-info ul li {
        font-size: 12px !important;
    }

    .navigation {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        border-radius: 12px;
    }
}

@media (max-width: 767.98px) {
    /*.page {
        margin-top: 64px;
    }*/

    /*.general {
        margin-top: 46px;
    }
*/
    .custom-tooltip__text {
        right: -12px;
        width: 300px;
        min-width: auto;
    }

    .custom-tooltip__text::after {
        right: 10px;
    }

    .search {
        width: 100%;
    }

    .navigation {
        background-color: transparent;
    }

    .search.active {
        position: fixed;
        left: 8px;
        top: 10px;
        transform: none;
        width: calc(100% - 16px);
        display: flex !important;
    }

    .catalog-btn {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
    }

    .catalog-btn,
    .search {
        max-height: 44px;
    }

    .search svg {top: 9px;}

    .primary-btn,
    .primary-btn:focus {
        width: 100%;
    }

    .mega-menu {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(100vh - 100% - 6rem);
        border: none;
        top: calc(100% + 0rem) !important;
        background-color: var(--bg-main-color);
        max-height: 100vh !important;
        padding: 8px !important;
        overflow: hidden;
    }
    .mega-menu__left {
        width: 100%;
        transform: translateX(-110%);
        padding-right: 0 !important;
        border-right: none !important;
        transition: transform 0.3s ease-in-out;
        overflow-y: scroll;
        overflow-x: hidden;
        max-height: 100%;
        height: 100%;
    }
    .mega-menu__left .mega-menu__link {
        width: 100%;
    }
    .mega-menu__right {
        margin-top: 8px;
        display: block;
        position: absolute;
        top: 0px;
        transition: transform 0.3s ease-in-out;
        width: 100%;
        min-width: 100%;
        transform: translateX(100%);
        padding: 8px 16px;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 100%;
        height: 100%
    }
    .mega-menu__right.active[id="r_0"] {
        display: none;
    }

    .mega-menu__left.active {
        transform: translateX(0%);
    }
    .mega-menu__right.active {
        transform: translateX(0%);

    }
    .mega-menu__right-title_back {
        position: relative;
        top: -2px;
        left: -8px;
    }
    .mega-menu__right-title > div {
        position: relative;
        left: 29px;
    }

/*
    .mega-menu {
        background-color: transparent;
        opacity: 1;
        transform: scale(1);
        visibility: visible;
        top: calc(100% + 54px);
        padding: 0 !important;
        width: 100%;
        left: 0;
    }

    .mega-menu__left,
    .mega-menu__right {
        position: absolute;
        background-color: var(--bg-main-color);
        padding: 8px;
        transition: transform 0.3s ease-in-out;
        min-height: 100vh;
    }

    .mega-menu__right>div {
        background-color: var(--bg-main-color);
    }

    .mega-menu__left {
        width: 100%;
        transform: translateX(-100%);
        border: none;
    }

    .mega-menu__right {
        width: 100%;
        transform: translateX(100%);
        padding: 8px 16px;
    }

    .mega-menu__left.active,
    .mega-menu__right.active {
        transform: translateX(0);
    }

    .mega-menu__right-title {
        position: relative;
        margin-left: 22px;
    }

    .mega-menu__right-title::after {
        content: url(/i/app/images/icons/chevron-left.svg);
        position: absolute;
        left: -32px;
        top: 0;
    }
*/
    .burger {
        border-radius: 8px;
        background-color: var(--btn-gray);
        padding: 8px;
    }

    .search-btn:focus,
    .search-btn {
        width: fit-content;
    }

    .search-input::placeholder {
        font-size: 14px
    }

    .category-items .swiper-slide {
        height: 183px;
    }

    .category-items .swiper-slide a {
        height: 100%;
    }

    .product-item,
    .product-item__content {
        gap: 8px;
    }

    .map {
        height: 123px;
    }

    .mega-menu__link {
        padding: 10px 12px;
    }

    .mega-menu__link a,
    .mega-menu__right ul li {
        font-size: 14px;
    }

    .mega-menu__right-title h4 {
        font-size: 20px;
    }

    .mega-menu__right-title span {
        font-size: 12px;
    }

    .filter {
        width: 36px;
        height: 36px;
    }

    .filter-input svg {
        right: 5px;
    }

    .filter-content {
        width: 100%;
    }

    .to-row.product-item {
        padding: 12px;
    }

    .to-row.product-item .product-item__content {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(4, 1fr);
        row-gap: 4px;
        column-gap: 12px;
    }

    .to-row.product-item .product-item__img {
        grid-column: span 3;
        grid-row: span 2;
        height: 55px;
    }

    .to-row.product-item .product-item__description {
        grid-column: 4 / span 3;
        grid-row: span 2;
    }

    .to-row.product-item .product-item__articul {
        grid-column: span 2;
        grid-row-start: 3;
        white-space: nowrap;
    }

    .to-row.product-item .product-item__content>span {
        grid-column: 3 / span 4;
        grid-row-start: 3;
    }

    .to-row.product-item .product-item__price {
        grid-column: span 3 / span 3;
        grid-row-start: 4;
        margin-top: 8px;
        justify-content: start !important;
    }

    .to-row.product-item {
        position: relative;
    }

    .to-row.product-item button {
        position: absolute;
        bottom: 12px;
        right: 12px;
        top: auto;
        left: auto;
    }

    .to-row.product-item p,
    .to-row.product-item span {
        text-align: start !important;
    }
}

@media (max-width: 576px) {
    .container {padding: 0 8px;}

    .catalog-btn:focus,
    .catalog-btn {
        width: 100%;
    }

    .error-message {
        width: calc(100% - 16px);
    }

    .error-message.show {
        right: 8px;
    }

    .category-item p {
        font-size: 12px;
    }

    .categories {overflow: hidden;}

    .navigation {
        margin-left: 8px !important;
        margin-right: 8px !important;
    }

    .navigation-count {
        font-size: 8px;
        right: -5px;
        top: -8px;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 380px) {
    .logo {
        min-width: 150px;
        max-width: 150px;
    }
}


.article-photo img {
    max-width: 100%;
}








@media (max-width: 767.98px) {
    .catalog-btn {
        position: static;
    }

    .favorites,
    .bag {
        border-radius: 8px;
        width: 44px;
        height: 44px;
        background-color: var(--card-color);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .catalog-btn {
        height: 44px;
        max-height: 100%;
    }
    
    .search {
        position: absolute;
        top: 62px;
        width: 100%;
        max-height: 100%;
    }

   /* .mega-menu {
        top: 100%;
    }
*/
    .second-heder__auth-icon {
        border-radius: 8px;
        width: 36px;
        height: 36px;
        background-color: var(--card-color);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navigation {height: auto;}

}






.page__list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
  /*background: #FFFFFF;*/
  /*box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12);*/
  list-style: none;
  margin: 0;
}
.page__item {
  margin: 1px;
}
.page__item--active .page__link,
.page__item:hover .page__link {
  color: #fff;
  background-color: #BE123C;
}
.page__link {
  display: inline-block;
  min-width: 1.5em;
  /*color: #333;*/
  text-align: center;
  text-decoration: none;
  padding: 0.5em 1em;
  box-sizing: border-box;
  border-radius: 2px;
  cursor: pointer;
  margin: 0;
}


.ask_date {
    border-bottom: 1px dotted white;
}
.ask_date:hover {
    border-bottom: 1px dotted var(--primary-red);
    color: var(--primary-red);
}
.card-content .ask_date {
    font-size: 14px;
}

.form-select {
    background-color: var(--dark-gray) !important;
    color: var(--white) !important;
    border-color: var(--normal-gray) !important;
}
.item__descr_text p {
    margin-bottom: 10px;
}