/* =============================================
   1. Базовые стили и Material Icons
   ============================================= */
.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    vertical-align: middle;
}

/* Единый шрифт – Inter */
body {
    font-family: "Inter", sans-serif;
}

h1, h2, h3, .headline {
    font-family: "Inter", sans-serif;
    font-weight: 700; /* жирность для заголовков */
}

/* Утилита для плавных переходов */
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* =============================================
   2. Меню (теперь Inter, жирный, uppercase)
   ============================================= */
.main-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu a {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1E466F;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-menu a:hover {
    color: #FBB03B;
}

/* Мобильное меню */
.mobile-menu {
    flex-direction: column;
    gap: 0.75rem;
}

/* Скрываем любые возможные подменю (на случай, если PHP-функция их генерирует) */
.main-menu .submenu {
    display: none !important;
}

/* =============================================
   3. Поисковая форма
   ============================================= */
.search-form {
    display: flex;
    align-items: center;
    background-color: #e8e6e5;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-input {
    width: 140px;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: "Inter", sans-serif;
    background: transparent;
    border: none;
    outline: none;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #5c4037;
    transition: color 0.2s ease;
}

.search-button:hover {
    color: #FBB03B;
}

@media (min-width: 640px) {
    .search-input {
        width: 180px;
    }
}

@media (min-width: 1024px) {
    .search-input {
        width: 220px;
    }
}

/* =============================================
   4. Бейдж корзины
   ============================================= */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #FBB03B;
    color: white;
    font-size: 10px;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0 4px;
    font-family: "Inter", sans-serif;
}

/* =============================================
   5. Горизонтальный слайдер (техническое превосходство)
   ============================================= */
.horizontal-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
}

.horizontal-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide-horizontal {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-prev:hover, .slider-next:hover {
    background: rgba(0,0,0,0.85);
    transform: translateY(-50%) scale(1.05);
}
.slider-prev .material-symbols-outlined,
.slider-next .material-symbols-outlined {
    font-size: 28px;
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}
.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.slider-dots button.active {
    background: white;
    width: 24px;
}

@media (max-width: 768px) {
    .slider-prev, .slider-next {
        width: 36px;
        height: 36px;
    }
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }
    .slider-dots button {
        width: 8px;
        height: 8px;
    }
    .slider-dots button.active {
        width: 20px;
    }
}

/* =============================================
   6. Дополнительно – стили для ссылок в шапке (телефон, email)
   ============================================= */
header a:not(.main-menu a) {
    font-family: "Inter", sans-serif;
    font-weight: 500;
}