/* ============================================
   KitOpt02.ru - Modern Redesign Styles
   Main Color: Dark Blue (#1a237e)
   ============================================ */

/* === Variables === */
:root {
	--primary-dark: #1a237e;
	--primary-main: #283593;
	--primary-light: #3949ab;
	--accent-color: #ff6d00;
	--accent-hover: #ff8f00;
	--text-dark: #212121;
	--text-light: #757575;
	--text-white: #ffffff;
	--bg-light: #f5f5f5;
	--bg-white: #ffffff;
	--border-color: #e0e0e0;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
	--transition: all 0.3s ease;
	--header-height: 70px;
	--menu-height: 45px;
}

/* === Reset & Base === */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-dark);
	background-color: var(--bg-light);
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition);
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
}

/* === Top Bar === */
.top-bar {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	color: var(--text-white);
	padding: 8px 0;
	font-size: 13px;
}

.top-bar-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.badge-wholesale {
	background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.top-contact {
	display: flex;
	align-items: center;
	gap: 20px;
}

.phone-link {
	color: var(--text-white);
	font-weight: 600;
}

.phone-link:hover {
	color: var(--accent-color);
}

.location {
	color: #b0b0b0;
	display: flex;
	align-items: center;
}

@media (max-width: 576px) {
	.top-bar-content {
		flex-direction: column;
		text-align: center;
	}

	.top-contact {
		flex-direction: column;
		gap: 5px;
	}
}

/* === Header === */
.main-header {
	background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
	color: var(--text-white);
	padding: 12px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: var(--shadow-md);
}

.header-content {
	display: flex;
	align-items: center;
	gap: 20px;
}

/* Logo */
.logo {
	flex-shrink: 0;
}

.logo-img {
	height: 50px;
	width: auto;
	filter: brightness(0) invert(1);
}

/* Search */
.search-wrapper {
	flex: 1;
	max-width: 600px;
}

.search-box {
	display: flex;
	background: var(--bg-white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-category {
	flex-shrink: 0;
}

.search-category .form-select {
	border: none;
	border-radius: 0;
	background: #f0f0f0;
	color: var(--text-dark);
	font-size: 14px;
	padding: 10px 15px;
	height: 44px;
	min-width: 140px;
	cursor: pointer;
}

.search-category .form-select:focus {
	box-shadow: none;
	background: #e8e8e8;
}

.search-input-wrapper {
	flex: 1;
	display: flex;
}

.search-input {
	flex: 1;
	border: none;
	padding: 10px 15px;
	font-size: 14px;
	outline: none;
}

.search-input::placeholder {
	color: #999;
}

.search-btn {
	background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
	color: var(--text-white);
	padding: 0 20px;
	font-size: 18px;
	transition: var(--transition);
}

.search-btn:hover {
	background: linear-gradient(135deg, var(--accent-hover), #ffa000);
}

/* Header Actions */
.header-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.action-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: var(--text-white);
	font-size: 18px;
	transition: var(--transition);
}

.action-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.05);
}

.cart-btn {
	background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
}

.cart-btn:hover {
	background: linear-gradient(135deg, var(--accent-hover), #ffa000);
}

.action-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: #e53935;
	color: var(--text-white);
	font-size: 11px;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 28px;
	height: 20px;
	padding: 0;
}

.mobile-menu-toggle span {
	display: block;
	width: 100%;
	height: 3px;
	background: var(--text-white);
	border-radius: 2px;
	transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* === Simple Navigation === */
.simple-nav {
	background: var(--primary-dark);
	position: sticky;
	top: var(--header-height);
	z-index: 999;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	gap: 0;
}

.nav-item {
	position: relative;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 14px 16px;
	color: var(--text-white);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: var(--transition);
	text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
	color: var(--text-white);
	background: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
	content: "";
	margin-left: 5px;
	border: none;
	font-size: 10px;
}

/* Dropdown Menu */
.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--bg-white);
	border: none;
	border-radius: 8px;
	box-shadow: var(--shadow-lg);
	padding: 10px 0;
	margin: 0;
	list-style: none;
	z-index: 1000;
	animation: fadeIn 0.2s ease;
}

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

.dropdown-item {
	display: block;
	padding: 10px 20px;
	color: var(--text-dark);
	font-size: 14px;
	text-decoration: none;
	transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
	background: var(--bg-light);
	color: var(--primary-dark);
	padding-left: 25px;
}

.dropdown-item::before {
	content: "•";
	margin-right: 10px;
	color: var(--accent-color);
	opacity: 0;
	transition: var(--transition);
}

.dropdown-item:hover::before {
	opacity: 1;
}

/* Mobile Navigation */

/* Mobile Navigation */
.mobile-nav-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
}

.mobile-nav-overlay.active {
	opacity: 1;
	visibility: visible;
}

.mobile-nav {
	position: absolute;
	top: 0;
	left: 0;
	width: 300px;
	height: 100%;
	background: var(--bg-white);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.mobile-nav-overlay.active .mobile-nav {
	transform: translateX(0);
}

.mobile-nav-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	background: var(--primary-dark);
}

.mobile-logo {
	height: 40px;
	filter: brightness(0) invert(1);
}

.mobile-nav-close {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: var(--text-white);
	font-size: 18px;
}

.mobile-categories {
	flex: 1;
	overflow-y: auto;
	padding: 15px 0;
}

.mobile-categories li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	color: var(--text-dark);
	font-size: 15px;
	border-bottom: 1px solid var(--border-color);
}

.mobile-categories li a:hover {
	background: var(--bg-light);
	color: var(--primary-dark);
}

.mobile-categories li a i {
	width: 24px;
	color: var(--primary-light);
}

.mobile-nav-footer {
	padding: 15px;
	background: var(--bg-light);
	border-top: 1px solid var(--border-color);
}

.mobile-phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px;
	background: var(--primary-dark);
	color: var(--text-white);
	border-radius: 8px;
	font-weight: 600;
}

.mobile-phone:hover {
	background: var(--primary-main);
}

/* === Hero Section === */
.hero-section {
	background: linear-gradient(
		135deg,
		var(--primary-dark) 0%,
		var(--primary-light) 100%
	);
	color: var(--text-white);
	padding: 60px 0;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 40px 40px;
}

.hero-content {
	display: flex;
	align-items: center;
	gap: 50px;
	position: relative;
	z-index: 1;
}

.hero-text {
	flex: 1;
}

.hero-title {
	font-size: 48px;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero-title .highlight {
	color: var(--accent-color);
}

.hero-subtitle {
	font-size: 20px;
	opacity: 0.9;
	margin-bottom: 25px;
}

.hero-features {
	display: flex;
	gap: 25px;
	margin-bottom: 30px;
}

.hero-features .feature {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.hero-features .feature i {
	color: var(--accent-color);
	font-size: 18px;
}

.hero-image {
	flex-shrink: 0;
	position: relative;
}

.hero-img {
	width: 450px;
	height: 300px;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
}

.hero-badge {
	position: absolute;
	bottom: -20px;
	right: -20px;
	background: var(--accent-color);
	color: var(--text-white);
	padding: 20px 25px;
	border-radius: 12px;
	text-align: center;
	box-shadow: var(--shadow-md);
}

.hero-badge .badge-number {
	display: block;
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
}

.hero-badge .badge-text {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* === Sections Common === */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
}

.section-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-dark);
	display: flex;
	align-items: center;
	gap: 12px;
}

.section-title i {
	color: var(--primary-light);
}

.section-link {
	color: var(--primary-light);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 5px;
}

.section-link:hover {
	color: var(--primary-dark);
}

/* === Categories Section === */
.categories-section {
	padding: 60px 0;
	background: var(--bg-white);
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.category-card {
	background: var(--bg-white);
	border: 2px solid var(--border-color);
	border-radius: 16px;
	padding: 25px 20px;
	text-align: center;
	transition: var(--transition);
}

.category-card:hover {
	border-color: var(--primary-light);
	box-shadow: var(--shadow-md);
	transform: translateY(-5px);
}

.category-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(
		135deg,
		var(--primary-dark),
		var(--primary-light)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px;
	font-size: 24px;
	color: var(--text-white);
}

.category-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 5px;
}

.category-count {
	font-size: 13px;
	color: var(--text-light);
}

/* === Products Section === */
.products-section {
	padding: 60px 0;
	background: var(--bg-light);
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 25px;
}

.product-card {
	background: var(--bg-white);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	position: relative;
}

.product-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.product-badges {
	position: absolute;
	top: 15px;
	left: 15px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	z-index: 10;
}

.product-badges .badge {
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 4px;
	color: var(--text-white);
}

.badge-hot {
	background: #e53935;
}

.badge-new {
	background: #43a047;
}

.badge-sale {
	background: var(--accent-color);
}

.product-actions {
	position: absolute;
	top: 15px;
	right: 15px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	transform: translateX(10px);
	transition: var(--transition);
	z-index: 10;
}

.product-card:hover .product-actions {
	opacity: 1;
	transform: translateX(0);
}

.action-btn-sm {
	width: 36px;
	height: 36px;
	background: var(--bg-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-sm);
	color: var(--text-light);
	font-size: 14px;
	transition: var(--transition);
}

.action-btn-sm:hover {
	background: var(--primary-dark);
	color: var(--text-white);
}

.product-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	background: var(--bg-light);
}

.product-info {
	padding: 20px;
}

.product-category {
	font-size: 12px;
	color: var(--primary-light);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.product-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-dark);
	margin: 8px 0 12px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 8px;
}

.price-old {
	font-size: 14px;
	color: #999;
	text-decoration: line-through;
}

.price-current {
	font-size: 22px;
	font-weight: 800;
	color: var(--primary-dark);
}

.product-unit {
	font-size: 12px;
	color: var(--text-light);
	margin-bottom: 15px;
}

.btn-add-cart {
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
	color: var(--text-white);
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: var(--transition);
}

.btn-add-cart:hover {
	background: linear-gradient(
		135deg,
		var(--primary-main),
		var(--primary-light)
	);
	color: var(--text-white);
}

/* === Features Section === */
.features-section {
	padding: 60px 0;
	background: var(--bg-white);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.feature-card {
	text-align: center;
	padding: 30px;
	border-radius: 16px;
	background: var(--bg-light);
	transition: var(--transition);
}

.feature-card:hover {
	background: var(--bg-white);
	box-shadow: var(--shadow-md);
}

.feature-icon {
	width: 70px;
	height: 70px;
	background: linear-gradient(
		135deg,
		var(--primary-dark),
		var(--primary-light)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 28px;
	color: var(--text-white);
}

.feature-card h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 10px;
}

.feature-card p {
	font-size: 14px;
	color: var(--text-light);
}

/* === Footer === */
.main-footer {
	background: #1a1a1a;
	color: var(--text-white);
	padding: 60px 0 0;
}

.footer-content {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
	height: 50px;
	filter: brightness(0) invert(1);
	margin-bottom: 20px;
}

.footer-desc {
	font-size: 14px;
	color: #999;
	margin-bottom: 20px;
	line-height: 1.7;
}

.footer-social {
	display: flex;
	gap: 12px;
}

.social-link {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: var(--transition);
}

.social-link:hover {
	background: var(--primary-light);
	transform: translateY(-3px);
}

.footer-col h4 {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--text-white);
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-links a {
	font-size: 14px;
	color: #999;
}

.footer-links a:hover {
	color: var(--accent-color);
}

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.footer-contact li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: #999;
}

.footer-contact i {
	color: var(--primary-light);
	font-size: 16px;
	width: 20px;
}

.footer-contact a {
	color: #999;
}

.footer-contact a:hover {
	color: var(--accent-color);
}

.footer-bottom {
	text-align: center;
	padding: 25px 0;
	font-size: 13px;
	color: #666;
}

/* === Responsive === */
@media (max-width: 992px) {
	.hero-content {
		flex-direction: column;
		text-align: center;
	}

	.hero-title {
		font-size: 36px;
	}

	.hero-features {
		justify-content: center;
	}

	.hero-img {
		width: 100%;
		max-width: 400px;
		height: 250px;
	}

	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.search-wrapper {
		display: none;
	}

	.mobile-menu-toggle {
		display: flex;
	}

	.simple-nav {
		display: none;
	}

	.hero-title {
		font-size: 28px;
	}

	.hero-subtitle {
		font-size: 16px;
	}

	.hero-features {
		flex-direction: column;
		gap: 10px;
	}

	.hero-img {
		height: 200px;
	}

	.section-title {
		font-size: 22px;
	}

	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.product-img {
		height: 150px;
	}

	.product-info {
		padding: 15px;
	}

	.product-name {
		font-size: 14px;
	}

	.price-current {
		font-size: 18px;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

@media (max-width: 576px) {
	:root {
		--header-height: 60px;
	}

	.top-bar {
		padding: 6px 0;
		font-size: 11px;
	}

	.logo-img {
		height: 40px;
	}

	.action-btn {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}

	.hero-section {
		padding: 40px 0;
	}

	.hero-badge {
		bottom: -15px;
		right: -10px;
		padding: 15px 20px;
	}

	.hero-badge .badge-number {
		font-size: 24px;
	}

	.categories-section,
	.products-section,
	.features-section {
		padding: 40px 0;
	}

	.category-card {
		padding: 20px 15px;
	}

	.category-icon {
		width: 50px;
		height: 50px;
		font-size: 20px;
	}

	.features-grid {
		grid-template-columns: 1fr;
	}

	.main-footer {
		padding: 40px 0 0;
	}
}

/* === Utility Classes === */
.btn {
	border-radius: 8px;
	font-weight: 600;
	transition: var(--transition);
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
	border: none;
	color: var(--text-white);
}

.btn-primary:hover {
	background: linear-gradient(
		135deg,
		var(--primary-main),
		var(--primary-light)
	);
	color: var(--text-white);
}

/* Animations */
@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

.action-badge {
	animation: pulse 2s ease-in-out infinite;
}

/* Loading State */
.loading {
	position: relative;
	pointer-events: none;
}

.loading::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
}
