/* ============ ШАПКА ============ */
.site-header {
    background: #FFFFFF;
	position: relative;
    z-index: 100;
    overflow: visible !important;
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 0;
    box-sizing: border-box;
	position: relative;
    overflow: visible !important;
}

/* Обертка шапки - логотип слева, контент справа */
.header-wrapper {
    display: flex;
    align-items: stretch;
    gap: 26px;
	position: relative;
    overflow: visible !important;
}

/* Логотип */
.header-logo {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    padding-top: 0;
}

.header-logo img {
    width: 136px;
    height: 73px;
    display: block;
}

/* Контент справа от логотипа */
.header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ========== Верхняя строка ========== */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #989795;
}

.header-top-phones,
.header-top-email {
    display: flex;
    align-items: center;
    gap: 10px;
	color: #989795;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
	cursor: pointer;
}

.header-top-email:hover {
    color: #E74F01;
}

.header-top-phones .phone {
    color: #989795;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
}

.header-top-phones .phone:hover {
    color: #E74F01;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ========== Нижняя строка ========== */
.header-bottom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 50;
    overflow: visible !important;
}

/* ===== КНОПКА КАТАЛОГ ===== */
.catalog-menu-wrapper {
    position: relative;
}

.btn-catalog {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 40px;
    background: transparent;
    border: 1px solid #E74F01;
    border-radius: 6px;
    color: #E74F01;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-catalog:hover {
    background: linear-gradient(225deg, #E74F01 0%, #C71201 100%);
    color: white;
    border-color: transparent;
}

.btn-catalog:hover .catalog-icon-wrapper svg path {
    fill: white;
}

.btn-catalog:hover .catalog-icon-wrapper svg defs linearGradient stop {
    stop-color: white;
}

.btn-catalog .catalog-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 12px;
}

.btn-catalog .catalog-text {
    white-space: nowrap;
}

/* ===== ПОИСК ===== */
.header-search-wrapper {
    flex: 1;
	position: relative;
    z-index: 100;
    overflow: visible !important;
}

/* ===== ПРАВАЯ ЧАСТЬ ===== */
.header-right-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Социальные сети */
.header-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

.social-link svg {
    width: 40px;
    height: 40px;
}

/* Корзина */
.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #F2F2F3;
    border-radius: 6px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.cart-link:hover {
    background: #E74F01;
}

/* Фильтр для превращения серого в белый */
.cart-link:hover .cart-icon {
    filter: brightness(0) invert(1);
}

.cart-link .cart-icon {
    width: 24px;
    height: 20px;
    transition: filter 0.3s ease;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -5px;
    background: #E74F01;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 12px;
    height: 18px;
    border-radius: 50%;
	border:none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кнопка Заказать звонок */
.btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    background: linear-gradient(225deg, #E74F01 0%, #C71201 100%);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.btn-call:hover {
    opacity: 0.9;
}

/* ============ НИЖНЯЯ ПАНЕЛЬ С КАТЕГОРИЯМИ ============ */
.header-categories-bar {
    background: #333333;
}

.header-categories-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}

/* Меню категорий */
.categories-menu {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
}

.categories-menu-item {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 21px 24px 20px;
    background: #333333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.categories-menu-item:hover {
    background: linear-gradient(225deg, #C71201 0%, #E74F01 100%);
}

.categories-menu-item span {
    color: white;
    font-size: 15px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    white-space: nowrap;
}

.categories-menu-item.promotion {
    background: #E74F01;
}

.categories-menu-item.promotion:hover {
    background: #C71201;
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ КАТАЛОГА ===== */
.catalog-dropdown {
    position: fixed;
    top: 156px;
    left: 50%;
    transform: translateX(-50%);
    width: 1240px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    border-radius:16px;
}

.catalog-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.catalog-dropdown__container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.catalog-dropdown__content {
    display: flex;
    position: relative;
    min-height: 498px;
}

/* Левая колонка с разделами */
.catalog-sections {
    width: 281px;
    margin-bottom: 6px;
    background: #fff;
    max-height: 498px;
    overflow-y: auto;
    position: relative;
    padding-top: 10px;
    scrollbar-width: thin;
    scrollbar-color: #E1E1E1 #F2F3F5;
    border-radius: 16px;
}

.catalog-sections::-webkit-scrollbar {
    width: 4px;
}

.catalog-sections::-webkit-scrollbar-track {
    background: #F2F3F5;
}

.catalog-sections::-webkit-scrollbar-thumb {
    background: #E1E1E1;
    border-radius: 900px;
}

.catalog-sections-list {
    padding: 0;
}

.catalog-section-item {
    padding: 9px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    /*background: #F2F3F5;*/
    margin-bottom: 0px;
    margin-right: 8px;
    margin-left: 8px;
}

.catalog-section-item:hover {
    /*background: rgba(242, 243, 245, 0.60);
    border-left-color: #E74F01;*/
    color:#E74F01;
}

.catalog-section-item.active {
    /*background: rgba(242, 243, 245, 0.60);
    border-left-color: #E74F01;*/
    color:#E74F01;
}

.section-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-name {
    color: #989795;
    font-size: 15px;
    font-family: 'Inter Tight', sans-serif;;
    font-weight: 500;

}

.section-count {
    color: rgba(152, 151, 149, 0.50);
    font-size: 16px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
}

/* Правая колонка с подразделами */
.catalog-subsections {
    flex: 1;
    padding: 32px 32px;
    background: white;
    max-height: 498px;
    overflow-y: auto;
    border-radius: 16px;
}

.subsections-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #989795;
    font-size: 18px;
    font-family: 'Inter Tight', sans-serif;
}

.subsections-title {
    font-size: 24px;
    color: #E74F01;
    font-family: 'Bebas Neue Cyrillic', sans-serif;
}

.current-section-title {
    color: #333333;
    font-size: 32px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    margin-bottom: 32px;
}

.subsections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.subsection-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subsection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px 0;
    text-decoration: none;
}

.subsection-item:hover {
    color: #E74F01;
}

.subsection-name {
    color: #989795;
    font-size: 16px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    transition: color 0.2s;
}

.subsection-name:hover {
    text-decoration: underline;
}

.subsection-item:hover .subsection-name {
    color: #E74F01;
}

.subsection-count {
    color: rgba(152, 151, 149, 0.50);
    font-size: 16px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
}

/* ============ СТИЛИ ДЛЯ ФИКСИРОВАННОЙ ШАПКИ ============ */
.site-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-categories-bar.fixed {
    position: fixed;
    top: 105px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

body.has-fixed-header main,
body.has-fixed-header .content,
body.has-fixed-header .main-content {
    padding-top: 157px;
}

body.has-fixed-header .catalog-dropdown.active {
    top: 157px !important;
}

/* === СТИЛИ ВЫБОРА ГОРОДА === */


/* Плавный переход для всех элементов */
.city-selected-block .city-icon-wrapper svg path,
.city-selected-block #current-city-name,
.city-selected-block .city-arrow svg path {
    transition: fill 0.3s ease, color 0.3s ease;
}

/* Изменение цвета при наведении на весь блок */
.city-selected-block:hover .city-icon-wrapper svg path {
    fill: #E74F01 !important; /* Оранжевый для иконки */
}

.city-selected-block:hover #current-city-name {
    color: #E74F01 !important; /* Оранжевый для текста */
}

.city-selected-block:hover .city-arrow svg path {
    fill: #E74F01 !important; /* Оранжевый для стрелки */
}

/* Дополнительно: если хотите изменить цвет иконок соцсетей и корзины при наведении */
.header-social-links .social-link:hover svg rect {
    fill: #E74F01 !important;
    transition: fill 0.3s ease;
}

.cart-link:hover svg path {
    stroke: #E74F01 !important;
    transition: stroke 0.3s ease;
}

.cart-link:hover svg circle {
    fill: #E74F01 !important;
    transition: fill 0.3s ease;
}

.cart-link:hover .cart-count-badge {
    background-color: #E74F01 !important;
    transition: background-color 0.3s ease;
}




.header-top-city {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.city-selected-block {
    display: flex;
    align-items: center;
    gap: 6px;
}

.city-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 16px;
}

.city-selected-block span {
    color: #989795;
    font-size: 14px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
}

.city-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 5px;
    transition: transform 0.3s ease;
}

.city-arrow svg {
    width: 100%;
    height: 100%;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    min-width: 150px;
    padding: 0;
    border: 1px solid #E1E1E1;
}

.city-item {
    padding: 10px 16px;
    color: #989795;
    font-size: 14px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.city-item:hover {
    background: #F2F3F5;
    color: #E74F01;
}

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 1240px) {
    .catalog-dropdown {
        width: 100%;
        left: 0;
        transform: none;
    }
    
    .header-categories-container {
        overflow-x: auto;
    }
    
    .categories-menu-item {
        flex: 0 0 auto;
        min-width: 120px;
    }
}

@media (max-width: 1024px) {
    .catalog-dropdown__content {
        flex-direction: column;
    }
    
    .catalog-sections {
        width: 100%;
        max-height: 300px;
    }
    
    .subsections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-logo {
        justify-content: center;
    }
    
    .header-logo img {
        width: 100px;
        height: auto;
    }
    
    .header-content {
        width: 100%;
    }
    
    .header-top-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-top-left {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .header-top-right {
        width: 100%;
        justify-content: center;
    }
    
    .header-bottom-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-catalog {
        width: 100%;
        justify-content: center;
    }
    
    .header-search-wrapper {
        width: 100%;
    }
    
    .header-right-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-social-links {
        order: 2;
    }
    
    .social-link svg {
        width: 32px;
        height: 32px;
    }
    
    .cart-link {
        width: 32px;
        height: 32px;
    }
    
    .btn-call {
        padding: 0 12px;
        font-size: 12px;
    }
    
    .header-categories-bar {
        display: none;
    }
    
    .catalog-dropdown {
        display: none !important;
    }
    
    .site-header.fixed {
        position: static;
        box-shadow: none;
    }
    
    body.has-fixed-header main,
    body.has-fixed-header .content,
    body.has-fixed-header .main-content {
        padding-top: 0;
    }
}

/* Стили для подвала */
.footer-city-name {
    font-weight: 500;
    color: #303030;
    margin-bottom: 5px;
}

.footer-contact-info p {
    margin: 5px 0;
}