/*
Theme Name: Electronics Storefront Child
Template: electronics-storefront
Version: 1.0
*/

/* ========================================
   1. HEADER — общий каркас шапки
======================================== */

.zm-main-header {
	position: relative;
	z-index: 1000;
}

.zm-site-header {
	position: relative;
}

.zm-topbar {
	background: #121A2B !important;
	min-height: 68px;
	position: relative;
	z-index: 20;
}

.zm-topbar-inner {
	position: relative;
	max-width: 1280px;
	min-height: 68px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 0 24px;
}

.zm-topbar-left,
.zm-topbar-right {
	display: flex;
	align-items: center;
	min-width: 0;
}

.zm-topbar-left {
	justify-content: flex-start;
}

.zm-topbar-center {
	display: flex;
	justify-content: center;
	align-items: center;
}

.zm-topbar-right {
	justify-content: flex-end;
	gap: 18px;
}

/* ========================================
   2. HEADER MENU — темное премиальное меню
======================================== */

.zm-primary-nav {
	display: flex;
	justify-content: center;
	align-items: center;
}

.zm-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 34px;
}

.zm-menu > li {
	position: relative;
	margin: 0;
	padding: 0;
}

.zm-menu > li > a {
	display: inline-block;
	padding: 22px 0;
	color: #E8EDF2 !important;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
}

.zm-menu > li > a:hover,
.zm-menu > li.current-menu-item > a,
.zm-menu > li.current_page_item > a {
	color: #C8742F !important;
	opacity: 1 !important;
}

/* ========================================
   3. HEADER LOGO — центральный бейдж логотипа
======================================== */

.zm-logo-badge {
	position: absolute;
	left: 0;
	right: 0;
	top: 68px;
	display: flex;
	justify-content: center;
	z-index: 30;
	pointer-events: none;
}

.zm-logo-badge-inner {
	pointer-events: auto;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	min-width: 0 !important;
	box-shadow: none !important;
	display: flex;
	justify-content: center;
	align-items: center;
}

.zm-logo-badge .custom-logo-link,
.zm-logo-badge .site-logo,
.zm-logo-badge .zm-text-logo {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	border: 0 !important;
	text-decoration: none;
}

.zm-logo-badge img,
.zm-logo-badge .custom-logo {
	display: block;
	margin: 0 auto;
	max-height: 56px !important;
	width: auto;
	background: transparent !important;
	box-shadow: none !important;
	filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

.zm-text-logo {
	color: #f08a18;
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}

/* ========================================
   4. HEADER ACTIONS — account / cart
======================================== */

.zm-header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.zm-account-link,
.zm-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	text-decoration: none;
	color: #E8EDF2 !important;
}

.zm-account-link:hover,
.zm-cart-link:hover {
	color: #C8742F !important;
}

.zm-account-link svg,
.zm-cart-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.zm-cart-count {
	position: absolute;
	top: 2px;
	right: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: #C8742F !important;
	color: #121A2B !important;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
	font-weight: 700;
}

.zm-topbar .navbar-controls {
	display: none;
}

.zm-site-header + * {
	position: relative;
	z-index: 1;
}

/* ========================================
   5. FOOTER — основной футер
======================================== */

.zm-footer {
	background: linear-gradient(to bottom, #1d1d1d 0%, #181818 100%);
	color: #c7cbd1;
	margin-top: 0;
	padding-top: 72px;
}

.zm-footer-inner {
	max-width: 1280px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 56px;
	padding: 0 24px 56px;
	align-items: start;
}

.zm-footer-col {
	min-width: 0;
}

.zm-footer-logo .custom-logo-link,
.zm-footer-logo .site-logo,
.zm-footer-text-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.zm-footer-logo img,
.zm-footer-logo .custom-logo {
	display: block;
	max-height: 38px;
	width: auto;
	filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
}

.zm-footer-tagline {
	margin: 0 !important;
	max-width: 380px !important;
	font-size: 16px !important;
	line-height: 1.65 !important;
	color: #b9b9b9 !important;
}

.zm-footer-title {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #32c6e8;
	opacity: 0.7;
}

.zm-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zm-footer-links li {
	margin: 0 0 12px;
}

.zm-footer-links a {
	color: #f2f2f2;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.5;
}

.zm-footer-links a:hover {
	color: #32c6e8;
}

/* ========================================
   6. FOOTER BOTTOM — копирайт и policy links
======================================== */

.zm-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.08);
}

.zm-footer-bottom-inner {
	max-width: 1280px;
	padding: 20px 24px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.zm-footer-copy {
	font-size: 14px;
	line-height: 1.5;
	color: #a7a7a7;
}

.zm-footer-policy {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.zm-footer-policy a {
	color: #cfcfcf;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.5;
}

.zm-footer-policy a:hover {
	color: #32c6e8;
}

/* ========================================
   7. FOOTER SUPPORT BLOCK — support / contact lists
======================================== */

.zm-footer-brand .zm-footer-support {
	margin-top: 34px !important;
	max-width: 380px !important;
}

.zm-footer-brand .zm-footer-support-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.zm-footer-brand .zm-footer-support-list li {
	margin: 0 0 12px !important;
	padding: 0 !important;
}

.zm-footer-brand .zm-footer-support-list .zm-footer-support-label {
	display: block !important;
	margin: 0 0 12px !important;
	color: #32c6e8 !important;
	opacity: 0.7 !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	font-family: inherit !important;
}

.zm-footer-brand .zm-footer-support-list .zm-footer-support-gap {
	margin-top: 24px !important;
}

.zm-footer-brand .zm-footer-support-list li a {
	color: #f2f2f2 !important;
	text-decoration: none !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	font-family: inherit !important;
}

.zm-footer-brand .zm-footer-support-list li a:hover {
	color: #32c6e8 !important;
}

/* ========================================
   8. WOOCOMMERCE CLEANUP — убираем лишнее в архивах
======================================== */

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering,
.tax-product_cat .woocommerce-result-count {
	display: none !important;
}

/* ========================================
   9. HOMEPAGE PRODUCTS — карточки товаров на главной
======================================== */

.home .woocommerce {
	position: relative;
}

.home .woocommerce h2,
.home .wc-block-featured-category__title,
.home .wp-block-heading {
	font-size: 34px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: none;
	color: #111;
	margin: 0 0 28px;
	background: transparent !important;
	padding: 0 !important;
	display: block !important;
}

.home .woocommerce h2::before,
.home .woocommerce h2::after {
	display: none !important;
	content: none !important;
}

.home ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home ul.products li.product {
	position: relative;
	margin: 0 !important;
	padding: 0 0 18px !important;
	background: transparent;
	border: 0;
	box-shadow: none;
	transition: transform 0.22s ease, opacity 0.22s ease;
	cursor: pointer;
}

.home ul.products li.product:hover {
	transform: translateY(-4px);
}

.home ul.products li.product a.woocommerce-LoopProduct-link {
	display: block;
	text-decoration: none;
	color: inherit;
	position: relative;
	z-index: 3;
}

.home ul.products li.product img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
	background: #efefef;
	transition: transform 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease;
	box-shadow: none;
}

.home ul.products li.product:hover img {
	transform: scale(1.01);
	opacity: 0.96;
	box-shadow: 0 14px 34px rgba(0,0,0,0.10);
}

.home ul.products li.product .onsale,
.home ul.products li.product .add_to_cart_button,
.home ul.products li.product .button,
.home ul.products li.product a.button {
	display: none !important;
}

.home ul.products li.product .woocommerce-loop-product__title,
.home ul.products li.product h2,
.home ul.products li.product h3 {
	margin: 18px 0 10px !important;
	padding: 0 !important;
	font-size: 19px !important;
	line-height: 1.35;
	font-weight: 700;
	color: #1a1a1a;
	text-transform: none;
	letter-spacing: 0;
}

.home ul.products li.product .price {
	margin: 0;
	font-size: 17px;
	line-height: 1.4;
	font-weight: 700;
	color: #f08a18;
}

.home ul.products li.product .price del {
	color: #8c8c8c;
	opacity: 1;
	margin-right: 6px;
}

.home ul.products li.product .price ins {
	text-decoration: none;
	color: #f08a18;
}

.home ul.products li.product,
.home ul.products li.product .product-inner,
.home ul.products li.product .inner,
.home ul.products li.product .box,
.home ul.products li.product .product-image {
	background: transparent !important;
	border: 0 !important;
}

/* ========================================
   10. RESPONSIVE — tablet
======================================== */

@media (max-width: 1024px) {
	.zm-topbar-inner {
		grid-template-columns: auto 1fr auto;
		padding: 0 18px;
	}

	.zm-menu {
		gap: 22px;
	}

	.zm-menu > li > a {
		font-size: 13px;
		letter-spacing: 0.10em;
	}

	.zm-logo-badge img,
	.zm-logo-badge .custom-logo {
		max-height: 52px !important;
	}
}

/* ========================================
   11. RESPONSIVE — small tablet / large mobile
======================================== */

@media (max-width: 991px) {
	.zm-footer {
		padding-top: 56px;
	}

	.zm-footer-inner {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
		padding-bottom: 44px;
	}

	.home ul.products {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.home .woocommerce h2,
	.home .wc-block-featured-category__title,
	.home .wp-block-heading {
		font-size: 28px;
		margin-bottom: 22px;
	}
}

/* ========================================
   12. RESPONSIVE — mobile
======================================== */

@media (max-width: 767px) {
	.zm-topbar {
		min-height: 60px;
	}

	.zm-topbar-inner {
		min-height: 60px;
		grid-template-columns: auto 1fr auto;
	}

	.zm-primary-nav {
		display: none;
	}

	.zm-topbar .navbar-controls {
		display: flex;
		align-items: center;
	}

	.zm-logo-badge {
		top: 60px;
		left: 24px;
		right: auto;
		justify-content: flex-start;
	}

	.zm-logo-badge img,
	.zm-logo-badge .custom-logo {
		max-height: 42px !important;
	}

	.zm-header-actions {
		gap: 10px;
	}

	.zm-account-link,
	.zm-cart-link {
		width: 36px;
		height: 36px;
	}

	.zm-footer-inner {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 0 18px 36px;
	}

	.zm-footer-bottom-inner {
		padding: 18px 18px 22px;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}
