﻿/* Файл wwwroot\css\styles.css */

html, body {
	height: 100%;
}

/* Общие стили для обеих панелей */
body {
	display: flex;
	flex-direction: column;
	font-family: Arial, sans-serif;
	margin: 0;
	margin-bottom: 0px;
	position: relative;
}

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

/* Стили для строки выбранных фильтров */
.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 {
	flex: 1 0 auto;
	min-height: auto;
	padding: 0 0 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: 0 !important;
	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);
	/* Добавляем фиксацию 
	position: sticky;
	top: 0;
	z-index: 1000;*/
}

.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: 5px;
	margin: 0 !important;
	padding: 0 !important;
}

.right-group {
	gap: 20px;
}

.top-logo {
	width: 350px; /* было 250px, теперь больше */
	max-width: none;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	display: block;
}

@media (max-width: 768px) {
	.top-logo {
		width: 250px; /* на мобильных можно уменьшить */
	}
}

.slogan {
	color: #cc0000;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
	font-family: 'Segoe UI', 'Arial', sans-serif;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.callback-btn {
	background: #cc0000;
	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: #990000;
		transform: translateY(-1px);
	}

/* Стили для Панели 2 */
.panel-2 {
	width: 100%;
	background: white;	
	padding: 12px 6px 0 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: 15vw;
	min-width: 200px;
	max-width: 400px;
}

.search-input {
	width: 100%;
	padding: 10px 40px 10px 15px;
	border: 1px solid #cc0000;
	border-radius: 4px;
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

	.search-input:focus {
		border-color: #990000; /* тёмно-красный при фокусе */
		box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
	}

.search-button {
	position: absolute;
	right: 5px;
	top: 5px;
	width: 30px;
	height: 30px;
	background: #cc0000;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background 0.2s;
	color: white; /* ← добавляем эту строку */
}

	.search-button:hover {
		background: #990000;
	}

.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;
	}

/* Приветствие пользователя 
.user-greeting {
	display: inline-block;
	padding: 0 5px;
	color: #cc0000;
	font-weight: bold;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
}

.user-greeting:hover {
	color: #990000;
	text-decoration: underline;
}*/

/* Профиль пользователя (иконка + логин в одной ссылке) 
.profile-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #333; 
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
	padding: 5px 10px;
}

	.profile-link:hover {
		color: #cc0000; 
	}

	.profile-link .nav-icon {
		width: 20px;
		height: 20px;
		stroke: currentColor;
	}*/


/* Кнопка скачать прайс */
.price-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #cc0000 !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);
	}

.price-icon {
	width: 20px;
	height: 20px;
	display: block;
}

/* Стили для управления товарами */
.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 {
	flex-shrink: 0;
	width: 100%;
	background: #f5f5f5;
	border-top: 1px solid #e0e0e0;
	padding: 20px 0;
	margin-top: 30px;
}

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

.footer-line {
	font-size: 12px;
	line-height: 1.5;
	margin: 8px 0;
	color: #666;
}

.footer-contacts {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e0e0e0;
}

.footer-contact-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer-contact-link {
	color: #cc0000;
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}

	.footer-contact-link:hover {
		color: #990000;
		text-decoration: underline;
	}

.footer-contact-icon {
	width: 16px;
	height: 16px;
	stroke: #cc0000;
	stroke-width: 1.5;
	fill: none;
}

/* Стили для фильтра по цене */
.filter-section {
	margin-bottom: 5px;
}

.filter-header {
	font-weight: bold;
	color: #333;
	margin-bottom: 8px;
	font-size: 14px;
}

.price-range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.price-input {
	flex: 1 !important;
	padding: 10px 10px !important;
	border: 1px solid #cc0000 !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
}

	.price-input:focus {
		outline: none !important;
		border-color: #990000 !important;
		box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1) !important;
	}

.price-separator {
	color: #666;
	font-weight: bold;
}

/* Убираем стрелки у number input */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.price-input[type=number] {
	-moz-appearance: textfield;
}
/* Конец. Стили для фильтра по цене */



/* Компактная пагинация */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	margin-top: 30px;
	flex-wrap: wrap;
}

.page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 35px;
	height: 35px;
	padding: 0 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s;
}

	.page-link:hover {
		border-color: #cc0000;
		color: #cc0000;
	}

	.page-link.active {
		background: #cc0000;
		border-color: #cc0000;
		color: white;
	}

.page-dots {
	color: #999;
	font-size: 14px;
	padding: 0 5px;
}
/* Конец Компактная пагинация */


/* Минимальные дополнительные стили для заказа звонка */
/* Стили для модального окна заказа звонка */
/* Улучшенные стили для модального окна заказа звонка */
.callback-modal .modal-content {
	max-width: 450px;
	padding: 35px 40px;
}

.callback-modal h2 {
	color: #cc0000;
	font-size: 24px;
	margin-bottom: 25px;
	text-align: center;
	font-weight: 600;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 15px;
}

.callback-modal .form-group {
	margin-bottom: 20px;
}

.callback-modal label {
	display: block;
	margin-bottom: 8px;
	color: #333;
	font-size: 14px;
	font-weight: 600;
}

.callback-modal .form-control {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	transition: all 0.2s;
	box-sizing: border-box;
}

	.callback-modal .form-control:focus {
		outline: none;
		border-color: #cc0000;
		box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
	}

	.callback-modal .form-control.error {
		border-color: #cc0000;
	}

.callback-modal .form-actions {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.callback-modal .submit-order-btn {
	background: #cc0000;
	color: white;
	border: none;
	padding: 14px 40px;
	border-radius: 50px; /* Скругленные края */
	font-weight: bold;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s;
	min-width: 220px;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
}

	.callback-modal .submit-order-btn:hover {
		background: #990000;
		transform: translateY(-2px);
		box-shadow: 0 6px 15px rgba(204, 0, 0, 0.4);
	}

	.callback-modal .submit-order-btn:active {
		transform: translateY(0);
		box-shadow: 0 2px 5px rgba(204, 0, 0, 0.3);
	}

.callback-modal .close-modal {
	position: absolute;
	right: 20px;
	top: 15px;
	color: #999;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.2s;
	line-height: 1;
}

	.callback-modal .close-modal:hover {
		color: #cc0000;
	}

/* Стили для сообщения об успехе */
.callback-modal .success-message {
	text-align: center;
	padding: 20px 0;
}

.callback-modal .success-icon {
	color: #00aa00;
	font-size: 70px;
	margin-bottom: 20px;
	animation: scaleIn 0.5s ease;
}

.callback-modal .success-message h3 {
	color: #333;
	font-size: 24px;
	margin-bottom: 15px;
	font-weight: 600;
}

.callback-modal .success-message p {
	color: #666;
	font-size: 16px;
	margin-bottom: 25px;
	line-height: 1.5;
}

.callback-modal .apply-btn {
	background: #cc0000;
	color: white;
	border: none;
	padding: 12px 40px;
	border-radius: 50px;
	font-weight: bold;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.3s;
	display: inline-block;
	box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
}

	.callback-modal .apply-btn:hover {
		background: #990000;
		transform: translateY(-2px);
	}

@keyframes scaleIn {
	from {
		transform: scale(0);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
	.callback-modal .modal-content {
		padding: 25px 20px;
		width: 95%;
	}

	.callback-modal h2 {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.callback-modal .submit-order-btn {
		min-width: 100%;
		padding: 12px 20px;
	}
}
/* Минимальные дополнительные стили для заказа звонка */

.nav-icon {
	width: 20px;
	height: 20px;
	margin-right: 6px;
	vertical-align: middle;
	stroke: currentColor; /* цвет будет браться от родительского color */
	fill: none;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	color: #666;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}

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

		.nav-link:hover .nav-icon {
			stroke: #cc0000; /* может не требоваться, если используем currentColor */
		}


/* Стили для элементов правой части Панели 1 */

/* Стили для надписи "Прием заказов:" */
.order-text {
	color: #333;
	font-size: 14px;
	margin-right: 5px;
	white-space: nowrap;
}

/* Контейнер для email-блока */
.email-wrapper {
	display: flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

/* Стиль для email (такой же, как для номера телефона) */
.email-link {
	color: #cc0000;
	font-weight: bold;
	font-size: 16px;
	text-decoration: none;
	transition: color 0.3s;
	white-space: nowrap;
}

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

/* Контейнер для контактного блока */
.contact-block {
	display: flex;
	align-items: center;
}

/* Стили для блока телефона */
.phone-block {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.phone-icon {
	width: 16px;
	height: 16px;
	color: #cc0000; /* красный цвет для иконки */
}

.phone-number {
	color: #cc0000;
	font-weight: bold;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
}

	.phone-number:hover {
		color: #990000;
	}

/* Стили для блока геолокации */
.location-block {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.location-icon {
	width: 16px;
	height: 16px;
	color: #cc0000; /* красный цвет для иконки */
}


.location-icon {
	width: 16px;
	height: 16px;
	color: #cc0000; /* красный цвет для иконки */
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}