/*
Theme Name: Armolan
Description: Блочная тема интернет-магазина Armolan Performance Films и Sun Control (Казахстан). Лёгкая, быстрая, совместима с WooCommerce.
Version: 2.6.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: armolan
*/

/* ---------- Основа ---------- */
:root {
	--arm-line: #DDE5F4;
	--arm-muted: #566480;
	--arm-accent: #6495ED;
	--arm-accent-text: #2F5FB8;
	--arm-dark: #101A33;
	--arm-ph: #E8EEFA;
}
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

.arm-wrap {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 40px;
	padding-right: 40px;
	box-sizing: border-box;
}
.arm-wrap > * { max-width: none; }
.arm-section { padding-top: 72px; padding-bottom: 72px; }
.arm-section h2 { margin: 0 0 32px; }
.arm-eyebrow {
	font-size: 13px; font-weight: 600; letter-spacing: .1em;
	text-transform: uppercase; color: var(--arm-muted); margin: 0;
}
.arm-lead { font-size: 1.2rem; color: var(--arm-muted); max-width: 520px; margin: 0; }
.arm-muted { color: var(--arm-muted); }

/* Заглушки фото (замените блоком «Изображение») */
.arm-ph {
	background: var(--arm-ph);
	border: 1px dashed #AEBBD8;
	border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	text-align: center; padding: 24px; box-sizing: border-box;
	color: var(--arm-muted); font-size: 14px;
}
.arm-ph p { margin: 0; }
.arm-ph-hero { min-height: 440px; }
.arm-ph-cat { height: 260px; border-radius: 0; border: 0; border-bottom: 1px dashed #AEBBD8; }

/* ---------- Шапка ---------- */
.wp-site-blocks > header { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header { top: 32px; }
.arm-topbar { background: var(--arm-dark); color: #C3CDE0; font-size: 13px; }
.arm-topbar-inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 8px 24px; padding-top: 8px; padding-bottom: 8px;
}
.arm-topbar p { margin: 0; }
.arm-topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.arm-topbar a:hover { color: var(--arm-accent); }
.arm-topbar-links { display: flex; flex-wrap: wrap; gap: 20px; }
.arm-header {
	background: rgba(11, 21, 48, .94); color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.arm-nav a { position: relative; padding: 6px 0; }
.arm-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--arm-accent); transform: scaleX(0); transform-origin: left;
	transition: transform .2s ease;
}
.arm-nav a:hover::after, .arm-nav .current-menu-item > a::after { transform: scaleX(1); }
.arm-search { margin: 0; }
.arm-search .wp-block-search__inside-wrapper {
	border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .1);
	padding: 2px 4px 2px 16px;
}
.arm-search .wp-block-search__input { border: 0; background: transparent; color: #fff; font-size: 14px; padding: 6px 4px; outline: none; }
.arm-search .wp-block-search__input::placeholder { color: #B9C6E2; opacity: 1; }
.arm-search .wp-block-search__button { border: 0; background: transparent; color: #fff; padding: 6px 8px; cursor: pointer; margin: 0; }
.arm-header-inner {
	display: flex; flex-wrap: wrap; align-items: center;
	justify-content: space-between; gap: 24px;
	padding-top: 14px; padding-bottom: 14px;
	flex-wrap: nowrap;
}
.arm-brand { display: flex; align-items: center; gap: 16px; }
.arm-brand .wp-block-image { margin: 0; }
.arm-brand-sep { width: 1px; height: 28px; background: rgba(255, 255, 255, .3); }
.arm-brand-text { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 18px; letter-spacing: .04em; color: #fff; }
.arm-brand-text span { font-weight: 600; color: #B9C6E2; font-size: 11px; letter-spacing: .1em; }
.arm-nav a { text-decoration: none; color: #fff; font-weight: 500; font-size: 15px; }
.arm-nav a:hover { color: #9DB8F2; }
.arm-header-actions { display: flex; align-items: center; gap: 16px; color: #fff; }
.arm-header-actions a, .arm-header-actions button, .arm-header-actions .wc-block-mini-cart__button { color: #fff; }
.arm-header-actions svg { fill: currentColor; }
.arm-phone { margin: 0; font-weight: 600; font-size: 15px; }
.arm-phone a { color: var(--wp--preset--color--contrast); text-decoration: none; }

/* ---------- Первый экран ---------- */
.arm-hero-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 48px; align-items: center;
}
.arm-hero-text { display: flex; flex-direction: column; gap: 24px; }
.arm-hero-text h1 { margin: 0; letter-spacing: -.01em; }
.arm-hero { padding-top: 80px; padding-bottom: 64px; }

/* ---------- Первый экран с фото ---------- */
.arm-hero-photo {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	background: #0B1530; padding-top: 96px; padding-bottom: 0;
}
.arm-hero-slides { position: absolute; inset: 0; z-index: -2; }
.arm-hero-slides i {
	position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
	animation: arm-slide 24s infinite;
}
.arm-hero-slides i:nth-child(1) { background-image: url("assets/images/slide-1-b.jpg"); animation-delay: -1s; }
.arm-hero-slides i:nth-child(2) { background-image: url("assets/images/slide-2-c.jpg"); animation-delay: 5s; }
.arm-hero-slides i:nth-child(3) { background-image: url("assets/images/slide-3-b.jpg"); animation-delay: 11s; }
.arm-hero-slides i:nth-child(4) { background-image: url("assets/images/slide-4-b.jpg"); animation-delay: 17s; }
.arm-hero-slides i:nth-child(n+5) { display: none; }
@keyframes arm-slide { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.arm-hero-slides i { animation: none; }
	.arm-hero-slides i:nth-child(1) { opacity: 1; }
}
.arm-hero-photo::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(11, 21, 48, .92) 0%, rgba(11, 21, 48, .78) 38%, rgba(11, 21, 48, .25) 70%, rgba(11, 21, 48, .15) 100%),
		linear-gradient(180deg, rgba(11, 21, 48, 0) 55%, rgba(11, 21, 48, .85) 100%);
}
.arm-hero-photo .arm-hero-text { max-width: 620px; padding-bottom: 72px; }
.arm-hero-photo .arm-eyebrow { color: #9DB8F2; }
.arm-hero-photo h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
.arm-hero-photo .arm-lead { color: #D5DDEE; max-width: 540px; }
.arm-hero-photo .arm-hero-promise { margin: 0; color: #fff; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.3; padding-left: 16px; border-left: 3px solid var(--arm-accent); }
.arm-hero-photo .arm-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.arm-hero-photo .arm-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.arm-hero-photo .wp-block-button:not(.arm-btn-ghost) .wp-block-button__link { color: #101A33; }
.arm-facts {
	list-style: none; margin: 0; padding: 0; display: grid;
	grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .22);
}
.arm-facts li { padding: 22px 24px 26px 0; display: flex; flex-direction: column; gap: 4px; }
.arm-facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
.arm-facts strong { font-size: 16px; font-weight: 700; color: #fff; }
.arm-facts span { font-size: 14px; color: #B9C6E2; }
@media (max-width: 900px) {
	.arm-hero-photo { padding-top: 56px; }
	.arm-hero-photo::after { background: linear-gradient(180deg, rgba(11, 21, 48, .88) 0%, rgba(11, 21, 48, .75) 60%, rgba(11, 21, 48, .92) 100%); }
	.arm-hero-photo .arm-hero-text { padding-bottom: 40px; }
	.arm-facts { grid-template-columns: 1fr 1fr; }
	.arm-facts li, .arm-facts li + li { padding: 16px 12px 16px 0; border-left: 0; }
}

/* ---------- Карточки ---------- */
.arm-card {
	background: #fff; border: 1px solid var(--arm-line);
	border-radius: 14px; padding: 28px;
}
.arm-features { background: #fff; border: 1px solid var(--arm-line); border-radius: 14px; padding: 32px; gap: 32px; }
.arm-features h3 { margin: 8px 0 4px; font-size: 18px; }
.arm-features p { margin: 0; color: var(--arm-muted); font-size: 15px; }
.arm-features svg { display: block; }

.arm-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.arm-cat { background: #fff; border: 1px solid var(--arm-line); border-radius: 14px; overflow: hidden; }
.arm-cat-img { height: 260px; overflow: hidden; background: var(--arm-ph); }
.arm-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.arm-cat:hover .arm-cat-img img { transform: scale(1.04); }
.arm-cat-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.arm-cat-body h3 { margin: 0; font-size: 24px; }
.arm-cat-body p { margin: 0; color: var(--arm-muted); }
.arm-cat-body a { color: var(--arm-accent-text); font-weight: 600; text-decoration: none; }

.arm-step-num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 32px; color: var(--arm-accent-text); margin: 0; }
.arm-steps { gap: 24px; }
.arm-steps h3 { margin: 6px 0; font-size: 20px; }
.arm-steps p:not(.arm-step-num) { margin: 0; color: var(--arm-muted); }

/* ---------- Бренды ---------- */
.arm-brands h2 { margin-bottom: 12px; }
.arm-brands-lead { margin-bottom: 32px; max-width: 720px; }
.arm-brand-cards { gap: 24px; }
.arm-brand-card { padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.arm-brand-card h3 { margin: 12px 0 4px; font-size: 26px; }
.arm-brand-card p { margin: 0 0 12px; color: var(--arm-muted); }
.arm-brand-logo {
	min-height: 64px; display: flex; align-items: center;
	border-bottom: 1px solid var(--arm-line); padding-bottom: 18px; margin-bottom: 6px;
}
.arm-brand-logo p { margin: 0; font-size: 14px; border: 1px dashed #AEBBD8; border-radius: 10px; padding: 14px 18px; }
.arm-brand-logo .wp-block-image { margin: 0; }
.arm-brand-list { margin: 0 0 14px; padding-left: 20px; color: var(--wp--preset--color--contrast); }
.arm-brand-list li { margin-bottom: 6px; }
.arm-footnote { margin: 20px 0 0; font-size: 13px; color: var(--arm-muted); }
.arm-brand-card p a { color: var(--arm-accent-text); font-weight: 600; text-decoration: none; }

/* ---------- Блок для дилеров ---------- */
.arm-dark { background: var(--arm-dark); color: #fff; }
.arm-dark h2 { color: #fff; margin-bottom: 16px; }
.arm-dark p { color: #C3CDE0; font-size: 1.05rem; max-width: 620px; }
.arm-dealer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.arm-btn-light .wp-block-button__link { background: #fff; color: #0E1116; font-weight: 700; }
.arm-btn-light .wp-block-button__link:hover { background: #EAF0FB; }

/* ---------- Кнопки ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-columns { gap: 24px; }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: #fff; color: var(--wp--preset--color--contrast); border: 1px solid #C7D2E8;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #EAF0FB; }

/* ---------- FAQ ---------- */
.arm-faq { max-width: 860px; border-top: 1px solid var(--arm-line); }
.arm-faq details { padding: 20px 0; border-bottom: 1px solid var(--arm-line); }
.arm-faq summary { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 18px; cursor: pointer; }
.arm-faq details p { color: var(--arm-muted); margin: 8px 0 0; }

/* ---------- Подвал ---------- */
.arm-footer { background: var(--arm-dark); color: #C3CDE0; padding-top: 0; padding-bottom: 0; margin-top: 40px; }
.arm-footer a { color: #E6ECF8; text-decoration: none; }
.arm-footer a:hover { color: var(--arm-accent); }
.arm-footer .wp-block-button__link,
.arm-footer .wp-block-button__link:hover { color: #101A33; }
.arm-footer .wp-block-button__link:hover { background: var(--wp--preset--color--accent-dark); }
.arm-footer p { margin: 0 0 10px; font-size: 15px; }
.arm-footer h3 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.arm-footer h4 { color: #fff; margin: 0 0 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.arm-footer-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
	padding: 40px 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.arm-footer-cta p { margin: 0; }
.arm-footer .wp-block-button.is-style-outline .wp-block-button__link,
.arm-footer .arm-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.arm-footer .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.arm-footer .arm-footer-social { gap: 6px 16px; }
.arm-footer-cols { padding: 48px 0 40px; gap: 40px; }
.arm-footer-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin: 0 0 16px; }
.arm-footer-logos img { display: block; height: 40px; width: auto; }
.arm-footer-logo { margin: 0 0 16px; background: #fff; border-radius: 10px; padding: 10px 14px; display: inline-block; }
.arm-footer-logo img { display: block; }
.arm-footer-about { max-width: 360px; color: #A9B6D0; }
.arm-footer-brands { display: flex; gap: 12px; margin-top: 18px; }
.arm-footer-brands p { margin: 0; }
.arm-footer-brands a {
	display: inline-block; font-family: var(--wp--preset--font-family--heading); font-weight: 800;
	font-size: 13px; letter-spacing: .1em; padding: 8px 14px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .25); color: #fff;
}
.arm-footer-brands a:hover { border-color: var(--arm-accent); }
.arm-city { margin-bottom: 14px; }
.arm-city p { margin: 0 0 4px; }
.arm-city .arm-city-name { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em; margin-bottom: 4px; }
.arm-footer-social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.arm-footer-social p { margin: 0; }
.arm-footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.arm-footer-bottom p { margin: 0; font-size: 13px; color: #8FA0C2; }
.arm-footer-bottom a { color: #8FA0C2; }
.arm-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.arm-pay span { border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; padding: 3px 9px; font-size: 12px; color: #C3CDE0; }

/* ---------- Товары WooCommerce (шорткод [products]) ---------- */
.wp-block-shortcode ul.products,
.woocommerce ul.products {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px; list-style: none; padding: 0; margin: 0;
}
.wp-block-shortcode ul.products::before,
.wp-block-shortcode ul.products::after { display: none; }
.wp-block-shortcode ul.products li.product,
.woocommerce ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important;
	background: #fff; border: 1px solid var(--arm-line); border-radius: 14px;
	padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.wp-block-shortcode ul.products li.product img { border-radius: 10px; width: 100%; margin: 0; }
.wp-block-shortcode ul.products li.product .woocommerce-loop-product__title { font-size: 18px; margin: 0; }
.wp-block-shortcode ul.products li.product .price { font-weight: 700; font-size: 18px; color: var(--wp--preset--color--contrast); }
.wp-block-shortcode ul.products li.product .button {
	margin-top: auto; text-align: center; background: var(--arm-accent); color: #101A33;
	font-weight: 600; padding: 12px; border-radius: 10px; text-decoration: none;
}
.wp-block-shortcode ul.products li.product .button:hover { background: var(--wp--preset--color--accent-dark); }

/* ---------- Адаптив ---------- */
@media (max-width: 782px) {
	.arm-wrap { padding-left: 16px; padding-right: 16px; }
	.arm-section { padding-top: 48px; padding-bottom: 48px; }
	.arm-hero { padding-top: 32px; padding-bottom: 32px; }
	.arm-ph-hero { min-height: 220px; }
	.arm-ph-cat { height: 160px; }
	.arm-cat-img { height: 200px; }
	.arm-header-actions .arm-phone { display: none; }
	.arm-brand-sep, .arm-brand-text { display: none; }
	.arm-features { padding: 20px; gap: 20px; }
	.arm-topbar, .arm-search { display: none; }
}

@media (max-width: 1180px) {
	.arm-search, .arm-brand-sep, .arm-brand-text { display: none; }
}

.arm-nav .wp-block-navigation__submenu-container {
	background: #0B1530; color: #fff;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 10px;
	padding: 8px 4px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
	min-width: 220px;
}

.arm-nav .wp-block-navigation__responsive-container-open { color: #fff; }
.arm-nav .wp-block-navigation__responsive-container.is-menu-open { background: #0B1530; color: #fff; }
.arm-nav .wp-block-navigation__responsive-container.is-menu-open a { color: #fff; font-size: 18px; }

/* ---------- Прозрачная шапка на главной (поверх слайдера) ---------- */
body.home .wp-site-blocks > header { position: fixed; top: 0; left: 0; right: 0; }
body.home.admin-bar .wp-site-blocks > header { top: 32px; }
body.home .arm-hero-photo { padding-top: 150px; }
html.arm-js:not(.arm-scrolled) body.home .arm-header,
html.arm-js:not(.arm-scrolled) body.home .arm-topbar {
	background: transparent; border-bottom-color: transparent;
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
html.arm-js:not(.arm-scrolled) body.home .arm-topbar { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.arm-header, .arm-topbar { transition: background-color .25s ease, border-color .25s ease; }
.arm-hero-photo::after {
	background:
		linear-gradient(180deg, rgba(11, 21, 48, .7) 0, rgba(11, 21, 48, 0) 200px),
		linear-gradient(90deg, rgba(11, 21, 48, .92) 0%, rgba(11, 21, 48, .78) 38%, rgba(11, 21, 48, .25) 70%, rgba(11, 21, 48, .15) 100%),
		linear-gradient(180deg, rgba(11, 21, 48, 0) 55%, rgba(11, 21, 48, .85) 100%);
}
@media (max-width: 900px) {
	body.home .arm-hero-photo { padding-top: 110px; }
	.arm-hero-photo::after { background: linear-gradient(180deg, rgba(11, 21, 48, .9) 0%, rgba(11, 21, 48, .75) 60%, rgba(11, 21, 48, .92) 100%); }
}
@media (max-width: 782px) {
	body.home.admin-bar .wp-site-blocks > header { top: 46px; }
}

/* ---------- Магазин: каталог, категория, карточка товара ---------- */
.arm-shop-hero {
	background: radial-gradient(900px 300px at 85% 0%, rgba(100, 149, 237, .3), transparent 60%), linear-gradient(180deg, #0B1530 0%, #101A33 100%);
	color: #fff; padding: 36px 0 44px;
}
body:not(.home) .wp-site-blocks > header { position: sticky; top: 0; z-index: 100; }
.arm-shop-hero .woocommerce-breadcrumb, .arm-shop-hero .wc-block-breadcrumbs, .arm-shop-hero .wc-block-breadcrumbs a { color: #B9C6E2; font-size: 14px; text-decoration: none; }
.arm-shop-hero .wc-block-breadcrumbs a:hover { color: #fff; }
.arm-shop-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 0; letter-spacing: -.01em; }
.arm-shop-hero .wp-block-term-description { color: #C3CDE0; max-width: 720px; margin-top: 12px; }
.arm-shop-hero-sm { padding: 22px 0; }
.arm-shop-body, .arm-product-body { padding: 36px 0 80px; }
.arm-shop-cats ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 24px; padding: 0; }
.arm-shop-cats a {
	display: inline-block; padding: 8px 16px; border: 1px solid var(--arm-line); border-radius: 999px;
	background: #fff; color: var(--wp--preset--color--contrast); text-decoration: none; font-size: 14px; font-weight: 600;
}
.arm-shop-cats a:hover { border-color: var(--arm-accent); color: var(--arm-accent-text); }
.arm-shop-bar { align-items: center; margin-bottom: 20px; gap: 12px; }
.arm-shop-bar select { padding: 8px 12px; border: 1px solid var(--arm-line); border-radius: 10px; background: #fff; }
.arm-shop-bar .woocommerce-result-count { margin: 0; color: var(--arm-muted); font-size: 14px; }

.arm-products .wc-block-product {
	background: #fff; border: 1px solid var(--arm-line); border-radius: 14px; padding: 14px 14px 18px;
	display: flex; flex-direction: column; gap: 6px; transition: box-shadow .2s ease, transform .2s ease;
}
.arm-products .wc-block-product:hover { box-shadow: 0 14px 36px rgba(16, 26, 51, .1); transform: translateY(-2px); }
.arm-products .wc-block-components-product-image { margin: 0 0 8px; border-radius: 10px; overflow: hidden; background: #F5F8FE; }
.arm-products .wc-block-components-product-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
.arm-products .wp-block-post-title { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 700; }
.arm-products .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.arm-products .wp-block-post-title a:hover { color: var(--arm-accent-text); }
.arm-products .wc-block-components-product-price { color: var(--arm-accent-text); font-weight: 700; }
.arm-products .wp-block-button { margin-top: auto; }
.arm-products .wp-block-button__link, .arm-products .wc-block-components-product-button__button {
	width: 100%; text-align: center; background: var(--arm-accent); color: #101A33; border-radius: 10px; font-weight: 700; padding: 12px 16px;
}
.arm-products .wp-block-button__link:hover { background: var(--wp--preset--color--accent-dark, #4F7FDC); color: #fff; }

.arm-product-cols { gap: 48px; }
.arm-product-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 12px; letter-spacing: -.01em; }
.arm-product-info .wc-block-components-product-price { color: var(--arm-accent-text); font-weight: 800; }
.arm-product-info table.variations th, .arm-product-info table.variations td { text-align: left; padding: 6px 0; display: block; }
.arm-product-info select { width: 100%; padding: 12px 14px; border: 1px solid var(--arm-line); border-radius: 10px; background: #fff; font-size: 16px; }
.arm-product-info .single_add_to_cart_button, .arm-product-info .wp-element-button {
	background: var(--arm-accent); color: #101A33; border-radius: 10px; font-weight: 700; padding: 14px 28px; border: 0; cursor: pointer;
}
.arm-product-info .single_add_to_cart_button:hover { background: #4F7FDC; color: #fff; }
.arm-product-info .quantity input { padding: 12px; border: 1px solid var(--arm-line); border-radius: 10px; width: 80px; }
.arm-product-help { background: #F5F8FE; border: 1px solid var(--arm-line); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.arm-product-help p { margin: 0 0 6px; font-size: 15px; }
.arm-product-body .woocommerce-tabs, .arm-product-body .wp-block-woocommerce-product-details { margin-top: 48px; }
.arm-product-body table.shop_attributes { width: 100%; border-collapse: collapse; }
.arm-product-body table.shop_attributes th, .arm-product-body table.shop_attributes td { padding: 12px 14px; border-bottom: 1px solid var(--arm-line); text-align: left; font-style: normal; }
.arm-product-body table.shop_attributes th { width: 40%; color: var(--arm-muted); font-weight: 600; }
.arm-product-body table.shop_attributes p { margin: 0; }
@media (max-width: 782px) {
	.arm-shop-hero { padding: 24px 0 28px; }
	.arm-product-cols { gap: 24px; }
	.arm-shop-body, .arm-product-body { padding: 24px 0 56px; }
}

/* ---------- Магазин: правки после проверки ---------- */
.arm-products.wc-block-product-template, .wc-block-product-template.arm-products {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
	list-style: none; margin: 0; padding: 0;
}
.arm-products .wc-block-product, .arm-products > li { width: auto !important; max-width: none !important; margin: 0 !important; flex: none !important; }
.arm-products .wc-block-components-product-image img { aspect-ratio: 1 / 1; }

.woocommerce-tabs ul.tabs, .wc-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; margin: 0 0 24px !important; list-style: none; border-bottom: 1px solid var(--arm-line); overflow: visible; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { border: 0 !important; background: none !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 18px; font-weight: 700; color: var(--arm-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.woocommerce-tabs ul.tabs li.active a { color: var(--wp--preset--color--contrast); border-bottom-color: var(--arm-accent); }
.woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child { display: none; }

.wp-block-query-pagination { gap: 8px; margin-top: 36px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers {
	display: inline-block; padding: 8px 14px; border: 1px solid var(--arm-line); border-radius: 10px; background: #fff;
	text-decoration: none; color: var(--wp--preset--color--contrast); font-weight: 600;
}
.wp-block-query-pagination .page-numbers.current { background: var(--arm-accent); border-color: var(--arm-accent); color: #101A33; }
.wp-block-query-pagination a:hover { border-color: var(--arm-accent); }
.arm-shop-bar .woocommerce-ordering select { min-width: 220px; }

/* ---------- Фильтры каталога ---------- */
.arm-shop-layout { display: grid !important; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
.arm-shop-layout > * { margin: 0 !important; max-width: none !important; }
.arm-filters { position: sticky; top: 90px; }
.arm-filters-box { background: #fff; border: 1px solid var(--arm-line); border-radius: 14px; padding: 6px 20px 18px; }
.arm-filters-box > summary { font-weight: 800; font-size: 17px; padding: 14px 0; cursor: pointer; list-style: none; }
.arm-filters-box > summary::-webkit-details-marker { display: none; }
.arm-f-group { border-top: 1px solid var(--arm-line); padding: 14px 0 4px; }
.arm-f-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--arm-muted); margin: 0 0 8px; font-weight: 800; }
.arm-f-group ul { list-style: none; margin: 0; padding: 0; }
.arm-f-group li a { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--wp--preset--color--contrast); font-size: 15px; }
.arm-f-group li a:hover { color: var(--arm-accent-text); }
.arm-f-group li a span { margin-left: auto; color: var(--arm-muted); font-size: 13px; }
.arm-f-group li.is-on > a { font-weight: 700; color: var(--arm-accent-text); }
.arm-chk { width: 16px; height: 16px; border: 1.5px solid #B7C4E0; border-radius: 4px; flex: none; background: #fff; }
li.is-on > a .arm-chk { background: var(--arm-accent); border-color: var(--arm-accent); box-shadow: inset 0 0 0 3px #fff; }
.arm-f-group:first-of-type li a { padding-left: 0; }
.arm-f-reset { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--arm-accent-text); font-size: 14px; }
.arm-products .wc-block-components-product-button .wp-block-button__link, .arm-products .wp-block-button__link { padding: 11px 16px !important; font-size: 15px !important; white-space: nowrap; width: 100%; text-align: center; }
@media (max-width: 900px) {
	.arm-shop-layout { grid-template-columns: 1fr; gap: 20px; }
	.arm-filters { position: static; }
}

@media (max-width: 900px) {
	.arm-products.wc-block-product-template, .wc-block-product-template.arm-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.arm-products .wc-block-product { padding: 10px !important; }
	.arm-products .wp-block-post-title, .arm-products .wp-block-post-title a { font-size: 14px !important; line-height: 1.3; }
	.arm-filters-box > summary { position: relative; }
	.arm-filters-box > summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--arm-accent-text); }
	.arm-filters-box[open] > summary::after { content: '–'; }
}

/* Фильтры: прокрутка внутри блока, чтобы всё было доступно без прокрутки страницы */
.arm-filters { top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; border-radius: 14px; scrollbar-width: thin; scrollbar-color: #B7C4E0 transparent; }
.arm-filters::-webkit-scrollbar { width: 6px; }
.arm-filters::-webkit-scrollbar-thumb { background: #B7C4E0; border-radius: 6px; }
.arm-filters-box { padding: 2px 18px 14px; }
.arm-filters-box > summary { padding: 12px 0; }
.arm-f-group { padding: 10px 0 2px; }
.arm-f-group h3 { margin-bottom: 4px; }
.arm-f-group li a { padding: 4px 0; font-size: 14px; }
.arm-f-group ul { max-height: 190px; overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 900px) { .arm-filters { max-height: none; overflow: visible; position: static; } }

/* Фильтры прокручиваются вместе со страницей, без внутренней прокрутки */
.arm-filters { position: static !important; max-height: none !important; overflow: visible !important; }
.arm-f-group ul { max-height: none !important; overflow: visible !important; }

/* ---------- Похожие товары ---------- */
.arm-related { margin-top: 56px; }
.arm-related h2 { font-size: 28px; margin: 0 0 24px; }
.arm-related-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.arm-related-grid li { background: #fff; border: 1px solid var(--arm-line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.arm-related-grid li:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,26,51,.10); }
.arm-rel-img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; border-radius: 8px; }
.arm-related-grid h3 { font-size: 15px; line-height: 1.35; margin: 12px 0 6px; font-weight: 700; }
.arm-related-grid h3 a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.arm-rel-price { font-size: 14px; font-weight: 700; color: var(--arm-accent-text); margin-bottom: 12px; }
.arm-rel-btn { margin-top: auto; text-align: center; padding: 10px 14px; border-radius: 10px; background: var(--arm-accent); color: #101A33; font-weight: 700; text-decoration: none; }
.arm-rel-btn:hover { filter: brightness(1.06); }
@media (max-width: 900px) { .arm-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .arm-related h2 { font-size: 22px; } }

/* Корзина и оформление заказа */
.arm-shop-body .wc-block-cart, .arm-shop-body .wc-block-checkout { margin-top: 0; }
.arm-shop-body .wc-block-components-button:not(.is-link) { background: var(--arm-accent); color: #101A33; border-radius: 10px; font-weight: 700; border: 0; }
.arm-shop-body .wc-block-components-button:not(.is-link):hover { filter: brightness(1.06); }
.arm-shop-body .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 32px; }

/* Карточки каталога: полное название (до 3 строк), кнопки на одном уровне */
.arm-products .wc-block-product { display: flex !important; flex-direction: column; height: 100%; }
.arm-products .wp-block-post-title { margin: 12px 0 6px !important; }
.arm-products .wp-block-post-title a {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
	font-size: 16px; line-height: 1.35; min-height: calc(1.35em * 3);
}
.arm-products .wc-block-components-product-price, .arm-products .wp-block-woocommerce-product-price { margin-bottom: 12px; }
.arm-products .wp-block-woocommerce-product-button, .arm-products .wc-block-components-product-button { margin-top: auto !important; }
@media (max-width: 900px) { .arm-products .wp-block-post-title a { font-size: 14px; min-height: calc(1.3em * 3); } }

/* Компактнее карточки и отступы между рядами */
.arm-products.wc-block-product-template, .wc-block-product-template.arm-products { gap: 28px 24px !important; row-gap: 28px !important; }
.arm-products .wc-block-product { height: auto !important; padding: 12px 12px 14px !important; }
.arm-products .wp-block-post-title { margin: 10px 0 4px !important; }
.arm-products .wp-block-post-title a { min-height: calc(1.35em * 2) !important; }
.arm-products .wc-block-components-product-price, .arm-products .wp-block-woocommerce-product-price { margin: 0 0 12px !important; font-size: 16px !important; font-weight: 800; }
.arm-products .wc-block-components-product-price *, .arm-products .wp-block-woocommerce-product-price * { font-size: inherit !important; }
.arm-products .wp-block-woocommerce-product-button, .arm-products .wc-block-components-product-button { margin-top: auto !important; }
.arm-products .wp-block-woocommerce-product-button .wp-block-button__link { padding: 10px 14px !important; }

/* ---------- Переключатель языков ---------- */
.arm-lang { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 1; }
.arm-lang a { color: #B9C6E2; text-decoration: none; }
.arm-lang a.is-on { color: #fff; }
.arm-lang a:hover { color: var(--arm-accent); }
.arm-lang span { color: rgba(255,255,255,.35); }
.arm-lang-m { display: none; }
@media (max-width: 900px) { .arm-lang-m { display: inline-flex; } .arm-header-actions { gap: 12px; } }
