/* Reset and base styles */

* {
    margin: 0;
    padding: 0;
    /*box-sizing: border-box;*/
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}
body {
}
.container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 15px;
}
.navbar-search {
            position: relative;
        }
        .navbar-search form#search-form {
            display: flex; /* Горизонтальное выравнивание SVG и input */
            align-items: center; /* Вертикальное выравнивание по центру */
            gap: 8px; /* Отступ между SVG и input */
        }
        .navbar-search svg {
            width: 18px; /* Размер SVG */
            height: 18px;
            color: #333; /* Цвет иконки (можно изменить) */
        }
        .navbar-search input#search-input {
            flex-grow: 1; /* Input занимает оставшееся пространство */
            padding: 8px; /* Внутренние отступы для input */
            margin-right: 33px;
            /*border: 1px solid #ddd; !* Граница для input (по желанию) *!*/
            /*border-radius: 4px; !* Скругленные углы *!*/
        }
        .search-results-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            width: 400px; /* Ширина меню (как настроено ранее) */
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            z-index: 2000;
            max-height: 300px;
            overflow-y: auto;
        }
        .search-result-item {
            padding: 10px;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
        }
        .search-result-item a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #333;
            width: 100%;
        }
        .search-result-item img {
            margin-right: 10px;
            width: 50px;
            height: 50px;
            object-fit: cover;
        }
        .search-result-item span {
            flex-grow: 1;
            white-space: nowrap;
            overflow: hidden;
            font-family: initial !important;

            text-overflow: ellipsis;
        }
        .search-result-item:hover {
            background: #f5f5f5;
        }
/* Content styles */
.content {
    min-height: 100vh;
    padding: 40px 0;
    width: 100%;
}

/* Footer styles */
footer {
    margin-top: 40px;
}

/* Header styles */
.promotional-banner {
    background-color: #f7f7f7;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

.promotional-banner.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f7f7f7;
    padding: 15px 0;
    z-index: 1000;
}

/* Logo container - centered at the top */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.logo {
    width: 255px;
    height: 47px;
}

/* Header content with 3 sections */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-section {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
}

.center-section {
    flex: 5;
    display: flex;
    justify-content: center;
}

.right-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #adadad;
    margin: 6px 13px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    font-family: "Forum", serif;
    color: #232222;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #555;
}

.contact-search-item {
    display: flex;
    align-items: center;
}

.phone svg,
.navbar-search svg,
.wishlist svg {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.phone {
    white-space: nowrap;
}
.contact-search-item.phone,
.contact-search-item.phone * {
    font-family: initial !important;
}
/* Search animation */
.navbar-search {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-search input {
    border: none;
    border-bottom: 1px solid #939393;
    background: transparent;
    font-family: "Forum", serif;
    font-size: 14px;
    width: 120px;
    transition: width 0.3s ease, border-color 0.3s ease;
    padding: 5px 0;
}

.navbar-search input:focus {
    width: 180px;
    outline: none;
    border-color: #050505;
    /*box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);*/
}

.navbar-search.active {
    transform: scale(1.05);
}

.navbar-search.active input {
    width: 180px;
}

.wishlist {
    cursor: pointer;
}

/* Navigation Overlay Styles */
.navigation-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    background: #ebebeb;
    z-index: 1002;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navigation-overlay.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.navigation-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #f7f7f7;
    z-index: -1;
}

/* Dropdown Container */
.dropdown-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 400px;
}

/* Image Section */
.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.image-section img {
    max-width: 250px;
    height: auto;
}

/* Collections Section */
.collections-section {
    flex: 1.2;
    padding: 20px 20px 20px 0;
}

/* Products Section */
.products-section {
    flex: 0.8;
    padding: 20px 0 20px 0;
}

.collections-section,
.products-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promotional-banner h3 {
    font-weight: 300;
    font-size: 16px;
    font-family: 'Forum', serif;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #242323;
    text-transform: uppercase;
    align-self: center;
}

.collections-list,
.products-list {
    width: 100%;
    padding: 0 20px;
    align-self: center;
}

/* Изменения для расположения коллекций в два столбца */
.collections-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /*gap: 10px 20px;*/
    font-size: 12px;
    line-height: 2.2;
    color: #727272;
    text-align: center;
}

.collections-list a {
    color: #727272;
    text-decoration: none;
    transition: color 0.3s;
    text-transform: uppercase;
    padding: 5px 0;
}

.products-list {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 2.2;
    text-align: center;
}

.products-list a {
    color: #727272;
    text-decoration: none;
    transition: color 0.3s;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.collections-list a:hover,
.products-list a:hover {
    color: #242323;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .left-section {
        flex: 0 0 30%;
        padding-left: 10px;
    }

    .center-section {
        flex: 0 0 40%;
    }

    .right-section {
        flex: 0 0 30%;
        gap: 10px;
    }

    .navbar-search input {
        width: 100px;
    }

    .navbar-search input:focus,
    .navbar-search.active input {
        width: 140px;
    }
}

@media (max-width: 768px) {
    /* Скрываем navigation overlay на мобильных устройствах */
    .navigation-overlay {
        display: none !important;
    }
    .header-content {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }

    .logo-container {
        flex: 0 0 auto;
        margin-bottom: 0;
        order: 2; /* Логотип теперь второй по порядку */
    }

    .logo {
        width: 150px;
        height: 28px;
    }

    .left-section {
        flex: 0 0 auto;
        padding: 0;
        order: 1;
        /* Бургер меню размещается в левой секции */
        justify-content: flex-start;
    }

    .right-section {
        flex: 0 0 auto;
        gap: 10px;
        order: 4;
    }

    .center-section {
        flex: 0 0 auto;
        order: 3;
        justify-content: flex-start;
    }

    .contact-search-item.phone{
        display: none;
    }

    .contact-search-item.navbar-search,
    .contact-search-item.wishlist {
        flex: 0 0 auto;
        gap:20px;
    }

    .navbar-search input {
        width: 80px;
    }

    .navbar-search input:focus,
    .navbar-search.active input {
        width: 100px;
    }

    .dropdown-container {
        flex-direction: column;
    }

    .image-section {
        margin-bottom: 20px;
    }

    .burger-menu {
        display: block;
        /* Убираем возможные стили позиционирования справа */
        margin-left: 0;
        margin-right: auto;
    }

    /* Центральная секция теперь не содержит бургер меню */
    .center-section .burger-menu {
        display: none;
    }

    /* Добавляем бургер меню в левую секцию */
    .left-section .burger-menu {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ebebeb;
        z-index: 1001;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .content {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 5px;
    }

    .navbar-search input {
        width: 60px;
    }

    .navbar-search input:focus,
    .navbar-search.active input {
        width: 80px;
    }

    .content {
        padding: 10px 0;
    }
}
/* Добавьте эти стили к вашему base.css */

/* Скрываем input на мобильных устройствах */
@media (max-width: 768px) {
    .navbar-search input#search-input {
        display: none !important;
    }

    .navbar-search svg {
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .navbar-search svg:hover {
        color: #555;
    }

    .navbar-search form#search-form {
        justify-content: center;
    }
}

/* Стили для мобильной панели поиска */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    max-height: 80vh;
    overflow: hidden;
}

.mobile-search-panel.active {
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: white;
    position: sticky;
    top: 0;
}

.mobile-search-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'Forum', serif;
}

.mobile-search-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-close:hover {
    background-color: #f5f5f5;
}

.mobile-search-form {
    padding: 20px;
}

.mobile-search-input-container {
    position: relative;
    margin-bottom: 20px;
}

.mobile-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.mobile-search-input:focus {
    border-color: #333;
}

.mobile-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.mobile-search-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 0 0 20px;
}

.mobile-search-result-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.mobile-search-result-item:hover {
    background-color: #f9f9f9;
}

.mobile-search-result-item:last-child {
    border-bottom: none;
}

.mobile-search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.mobile-search-result-info {
    flex: 1;
}

.mobile-search-result-name {
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
    font-family: 'Raleway', sans-serif;
}

.mobile-search-result-price {
    color: #666;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
}

.mobile-search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-family: 'Raleway', sans-serif;
}

/* Предотвращение скролла body когда открыта панель */
body.mobile-search-open {
    overflow: hidden;
}
/* =================== ЯЗЫКОВОЙ СЕЛЕКТОР =================== */

/* Контейнер языкового селектора */
.contact-search-item.language-selector {
    position: relative;
    z-index: 2001;
}

/* Контейнер выпадающего меню */
.lang-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Кнопка переключения языка */
.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.lang-dropdown-toggle:hover {
    background-color: #f5f5f5;
}

.lang-dropdown-toggle.active {
    background-color: #e8e8e8;
}

/* Флаг текущего языка */
.lang-current-flag {
    font-size: 16px;
    line-height: 1;
}

/* Код текущего языка */
.lang-current-code {
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Стрелка выпадающего меню */
.lang-dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    color: #666;
}

.lang-dropdown-toggle.active .lang-dropdown-arrow {
    transform: rotate(180deg);
}

/* Выпадающее меню */
.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2002;
    overflow: hidden;
}

.lang-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Форма опции языка */
.lang-option-form {
    margin: 0;
    padding: 0;
}

/* Кнопка опции языка */
.lang-option-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #333;
    text-align: left;
}

.lang-option-btn:hover {
    background-color: #f8f9fa;
}

.lang-option-btn:active {
    background-color: #e9ecef;
}

/* Флаг опции языка */
.lang-option-flag {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* Текст опции языка */
.lang-option-text {
    font-weight: 400;
    white-space: nowrap;
}

/* Разделитель между опциями */
.lang-option-btn:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* =================== АДАПТИВНОСТЬ =================== */

@media (max-width: 992px) {
    .lang-dropdown-toggle {
        padding: 6px 8px;
        gap: 4px;
    }

    .lang-current-flag {
        font-size: 14px;
    }

    .lang-current-code {
        font-size: 11px;
    }

    .lang-dropdown-menu {
        min-width: 120px;
    }

    .lang-option-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .lang-option-flag {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* На мобильных устройствах делаем селектор более компактным */
    .contact-search-item.language-selector {
        order: 3; /* Размещаем между поиском и профилем */
    }

    .lang-dropdown-toggle {
        padding: 4px 6px;
        gap: 3px;
        border-radius: 4px;
    }

    .lang-current-flag {
        font-size: 12px;
    }

    .lang-current-code {
        font-size: 10px;
    }

    .lang-dropdown-arrow {
        width: 10px;
        height: 10px;
    }

    .lang-dropdown-menu {
        min-width: 110px;
        right: -10px; /* Сдвигаем немного влево на мобильных */
    }

    .lang-option-btn {
        padding: 8px 10px;
        font-size: 11px;
        gap: 8px;
    }

    .lang-option-flag {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .lang-dropdown-toggle {
        padding: 3px 4px;
    }

    .lang-current-flag {
        font-size: 11px;
    }

    .lang-current-code {
        font-size: 9px;
    }

    .lang-dropdown-menu {
        min-width: 100px;
        right: -15px;
    }

    .lang-option-btn {
        padding: 6px 8px;
        font-size: 10px;
        gap: 6px;
    }

    .lang-option-flag {
        font-size: 11px;
    }
}

/* =================== КОНЕЦ ЯЗЫКОВОГО СЕЛЕКТОРА ===================