/* Правая выезжающая шторка с меню - по дизайну Figma */

/* Оверлей (затемнение фона) */
.menu-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 24, 26, 0.5); /* #0C181A с прозрачностью */
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Контейнер шторки */
.menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 388px; /* Ширина из Figma */
    height: 100vh;
    background: #ffffff;
    z-index: 10001;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 84px; /* Высота десктопного хедера */
}

.menu-drawer.active {
    right: 0;
}

/* Мобильная версия - отступ сверху 70px (высота мобильного хедера) */
@media screen and (max-width: 1199px) {
    .menu-drawer {
        margin-top: 70px; /* Высота мобильного хедера */
    }
}

/* Заголовок шторки - по дизайну Figma */
.menu-drawer__header {
    position: relative;
    padding: 27px 40px 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.menu-drawer__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.12;
    text-transform: uppercase;
    color: #777777;
    margin: 0;
    white-space: nowrap;
}

.menu-drawer__close {
    position: relative;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.menu-drawer__close:hover {
    color: #0C181A;
}

.menu-drawer__close-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.menu-drawer__close-icon::before,
.menu-drawer__close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 24px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-drawer__close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Контент шторки */
.menu-drawer__content {
    padding: 0 40px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 45px;
}

/* Секция каталога */
.menu-drawer__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-drawer__section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.12;
    text-transform: uppercase;
    color: #0C181A;
    margin: 0;
}

.menu-drawer__section-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-drawer__section-list--catalog {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.12;
    text-transform: uppercase;
    color: #0C181A;
}

.menu-drawer__link--catalog-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.12;
    text-transform: uppercase;
    color: #0C181A;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
}

.menu-drawer__section-list--main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.12;
    text-transform: uppercase;
    color: #0C181A;
    gap: 15px;
}

.menu-drawer__link {
    color: #0C181A;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.menu-drawer__link:hover {
    color: #57A7B3;
}

/* Кнопка "Отследить заказ" */
.menu-drawer__track-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px 10px 18px;
    border: 1px solid #57A7B3;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.12;
    text-transform: uppercase;
    color: #0C181A;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    width: fit-content;
    margin-top: 70px;
}

.menu-drawer__track-button:hover {
    background: #57A7B3;
    color: #ffffff;
}

.menu-drawer__track-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-drawer__track-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

/* Разделительная линия */
.menu-drawer__divider {
    width: 240px;
    height: 1px;
    background: #0C181A;
    margin: 0;
    border: none;
}

/* Секция "О бренде" */
.menu-drawer__section--info {
    gap: 10px;
}

.menu-drawer__section-list--info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.12;
    text-transform: uppercase;
    color: #0C181A;
    gap: 10px;
}

/* Копирайт */
.menu-drawer__copyright {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 10px;
    line-height: 1.12;
    text-transform: uppercase;
    color: #777777;
    white-space: nowrap;
    margin-top: 26px; /* Отступ после последней секции, такой же как gap у .menu-drawer__content */
}

/* Адаптивность */
@media screen and (max-width: 480px) {
    .menu-drawer {
        max-width: 100%;
    }
    
    .menu-drawer__header,
    .menu-drawer__content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .menu-drawer__close {
        right: 20px;
    }
}

/* Предотвращение скролла body при открытой шторке */
body.menu-drawer-open {
    overflow: hidden;
}

