/* ./css/header.css ===== СТИЛИ header main ===== */

/* Заголовок */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #333;
	color: #fff;
	padding: 15px 20px;
	text-align: center;

}



.header-secondary {
	position: fixed;
	top: 70px; /* Высота первого заголовка */
	left: 0;
	width: 100%;
	background-color: #555;
	color: #fff;
	padding: 10px 20px;
	text-align: center;
	z-index: 899;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}



/* Обновляем отступ для основного контента */
main {
	margin-top: 110px; /* Отступ под заголовок */
}



/* Плашка справа */
.header-panel {
	position: fixed;
	top: 82px; /* Высота первого заголовка */
	right: 0;
	width: 200px; 
	height: 150px; 
	background-color: #444;
	border: 1px solid #ccc;
	color: #4D6BFE;
	padding: 10px;
	box-shadow: -2px  4px 5px rgba(0,0,0,0.2);
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
//	overflow: hidden;
	overflow-y: auto;
	z-index: 998;
}

.header-panel-content {
	padding: 10px;
}

/* Стили для основного заголовка */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
	background-color: var(--header-bg);
	color: var(--header-text);
    padding: 10px 0;
    text-align: center;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-segment {
    display: flex;
    align-items: center;
    padding: 0 1px;
}

/* Стили для подстраиваемых сегментов */
.header-left-space,
.header-right-space,
.header-search {
    flex: 1 1 auto;
    min-width: 20px;
}

/* Стили для фиксированных сегментов */
.header-logo {
    width: 50px;
    flex: 0 0 50px;
}

.header-title {
    width: 200px;
    flex: 0 0 200px;
    justify-content: flex-start;
}

.header-title h1 {
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
}

.header-catalog,
.header-login {
    width: 100px;
    flex: 0 0 100px;
}

/* Общие стили для иконок с подписями */
.header-compare,
.header-favorites,
.header-orders,
.header-check,
.header-cart,
.header-login-icon {
    width: 70px;
    flex: 0 0 70px;
}



/* Стили для кнопок */
.header-btn {
    background-color: var(--btn-primary, #4D6BFE);
    color: white;
    border: none;
    padding: 12px 12px;
    border-radius: var(--radius-button) var(--radius-button) var(--radius-button) var(--radius-button);
    cursor: pointer;
    font-size: 16.8px;
    white-space: nowrap;
    height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background-color: var(--btn-primary-hover, #3a56d4);
}

/* Стили для контейнера иконки с подписью */
.header-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    width: 100%;
    padding: 5px 0;
}

/* Стили для иконок */
.header-icon {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1;
}

.header-icon-container:hover {
    color: var(--btn-primary);
}

/* Стили для подписи под иконкой */
.icon-label {
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}


/* Логотип */
.logo-img {
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

/* body */
.body-img {
    width: 100%; 
    height: auto;
    object-fit: contain;
}
