﻿/* Общие стили для обеих панелей */
body {
	font-family: Arial, sans-serif;
	margin: 0;
	margin-bottom: 70px;
	min-height: 100vh;
	position: relative;
}

/* Дополнительные стили для наглядности */
h2 {
	color: #333;
	margin-top: 0;
	font-size: 18px;
}

.filter-section {
	margin-top: 15px;
}

	.filter-section ul {
		padding-left: 20px;
	}







/* Стили для строки выбранных фильтров */
.selected-filters {
	background: #f5f5f5;
	padding: 8px 12px;
	border-radius: 4px;
	margin-bottom: 15px;
	font-size: 14px;
	min-height: 20px;
}

	.selected-filters .filter-tag {
		display: inline-block;
		background: #cc0000;
		color: white;
		padding: 2px 8px;
		border-radius: 12px;
		margin: 0 4px;
		font-size: 12px;
	}

	.selected-filters .none-text {
		color: #999;
		font-style: italic;
	}

/* Стили для кнопки */
.apply-btn {
	width: 100%;
	padding: 10px;
	background: #cc0000;
	color: white;
	border: none;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	transition: background 0.2s;
}

	.apply-btn:hover {
		background: #990000;
	}

	.apply-btn svg {
		stroke-width: 2;
	}

/* Общие стили для основного контента */
.main-content {
	min-height: 300vh;
	padding: 20px 0;
}

.content-wrapper {
	display: flex;
	flex-wrap: wrap;
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
}

/* Панель фильтров */
.filters-panel {
	flex: 0 0 280px;
	padding: 15px;
	border-right: 1px solid #e0e0e0;
	margin-right: 20px;
}

/* Панель товаров */
.products-grid {
	flex: 1 1 600px;
	padding: 15px;
}

/* Сетка товаров */
.grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
}

.product-card {
	border: 1px solid #ddd;
	padding: 15px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Стили для Панели 1 */
.top-bar {
	width: 100%;
	background: linear-gradient(to right, #f8f8f8 0%, #ffebeb 100%);
	background-attachment: fixed;
	padding: 12px 0;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	border-top: 1px solid rgba(255,255,255,0.3);
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.top-bar-content {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.left-group,
.right-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.left-group {
	gap: 15px;
}

.right-group {
	gap: 20px;
}

.top-logo {
	height: 40px;
	width: auto;
}

.slogan {
	color: #424242;
	font-size: 16px;
	font-weight: 600;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
	white-space: nowrap;
}

/* Стили для элементов правой части Панели 1 */
.location-block,
.phone-block {
	display: flex;
	align-items: center;
	gap: 6px;
}

.geo-icon,
.phone-icon {
	width: 16px;
	height: 16px;
}

.city-name {
	font-size: 16px;
	color: #333;
}

.phone-number {
	color: #ff0000;
	font-weight: bold;
	font-size: 16px;
	text-decoration: none;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.work-hours {
	color: #000;
	font-size: 14px;
}

.email-link {
	color: #ff0000;
	text-decoration: none;
	transition: color 0.3s;
}

	.email-link:hover {
		color: #cc0000;
		text-decoration: underline;
	}

.callback-btn {
	background: #ff0000;
	color: white;
	border: 1px solid #000;
	padding: 8px 15px;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s;
}

	.callback-btn:hover {
		background: #cc0000;
		transform: translateY(-1px);
	}

/* Стили для Панели 2 */
.panel-2 {
	width: 100%;
	background: white;
	padding: 12px 0;
}

.panel-2-content {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.panel-2-left,
.panel-2-right {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* Стиль для "Фильтр" */
.filter-text {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	letter-spacing: 0.8px;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
}

/* Строка поиска */
.search-container {
	position: relative;
	width: 30vw;
	min-width: 150px;
	max-width: 750px;
}

.search-input {
	width: 100%;
	padding: 10px 40px 10px 15px;
	border: 2px solid #ff0000;
	border-radius: 25px;
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
}

.search-button {
	position: absolute;
	right: 5px;
	top: 5px;
	width: 30px;
	height: 30px;
	background: #ff0000;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
}

.search-icon {
	width: 16px;
	height: 16px;
}

/* Блок корзины */
.cart-block {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-icon {
	width: 20px;
	height: 20px;
}

/* Ссылки в Панели 2 */
.nav-link {
	color: #333;
	text-decoration: none;
	font-size: 14px;
	white-space: nowrap;
	transition: color 0.3s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

	.nav-link:hover {
		color: #ff0000;
	}

/* Кнопка скачать прайс */
.price-link {
	display: inline-flex;
	align-items: center;
	color: #ff0000 !important;
	font-weight: bold;
	text-decoration: none;
	border: 1px solid #000;
	padding: 5px 10px;
	border-radius: 4px;
	background-color: rgba(255, 0, 0, 0.1);
	transition: all 0.3s;
	font-size: 14px;
	white-space: nowrap;
}

	.price-link:hover {
		background-color: rgba(255, 0, 0, 0.2);
		transform: scale(1.1);
		box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	}

.pdf-icon {
	width: 18px;
	height: 18px;
	margin-right: 6px;
}

/* Стили для управления товарами */
.products-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	gap: 15px;
}

.controls-left {
	display: flex;
	gap: 15px;
	align-items: center;
}

/* Фиксированные ширины для ComboBox */
.sort-combo,
.items-combo {
	width: 250px !important;	
}

	.sort-combo .combo-header span {
		color: #666;
	}

	.sort-combo .active-option {
		color: #cc0000;
		font-weight: bold;
	}

/* Стиль для кнопки "Очистить фильтр" */
.clear-btn {
	width: 100%;
	padding: 10px;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	transition: all 0.2s;
	border: 1px solid;
}

	.clear-btn.variant-1 {
		background: white;
		border-color: #cc0000;
		color: #cc0000;
	}

		.clear-btn.variant-1:hover {
			background: #ffeeee;
		}

	.clear-btn svg {
		stroke-width: 2;
	}

/* Стиль для выбора вида карточек */
.view-toggle {
	display: flex;
	gap: 5px;
	margin-left: auto;
	flex-shrink: 0;
}

.view-btn {
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 8px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

	.view-btn:hover {
		border-color: #cc0000;
	}

	.view-btn.active {
		background: #cc0000;
		border-color: #cc0000;
	}

.view-icon {
	stroke: #666;
	stroke-width: 1;
	fill: none;
	shape-rendering: crispEdges;
}

.view-btn.active .view-icon {
	stroke: white;
}

.view-icon rect {
	stroke-width: 1,5;
}


/* Стиль по умолчанию - grid view это для вида карточек */
.products-grid.grid-view .grid-container {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
}

/*  это для вида карточек */
.products-grid.grid-view .product-card {
	flex-direction: column;
	height: 350px;
}


/* Стили для футера с градиентом */
.footer-panel {
	width: 100%;
	background: linear-gradient(to bottom, #ff3333 0%, #cc0000 50%, #990000 100%);
	color: white;
	padding: 10px 0;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 100;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

.footer-line {
	font-weight: bold;
	font-size: 13px;
	line-height: 1.3;
	margin: 3px 0;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}
