/* ==========================================================
   AgroParts — основные стили
   Принципы: крупный шрифт, высокий контраст (читается на солнце),
   большие кнопки (работают в перчатках и с телефона),
   телефон всегда на виду.
   ========================================================== */

:root {
	--ap-green: #1f5c2e;
	--ap-green-dark: #143d1f;
	--ap-green-soft: #e8f2ea;
	--ap-accent: #f2a900;
	--ap-accent-ink: #1c1a12;
	--ap-wheat: #fbf6e9;
	--ap-soil: #5a4632;
	--ap-ink: #1b221c;
	--ap-muted: #5b675e;
	--ap-line: #dfe5dc;
	--ap-bg: #ffffff;
	--ap-surface: #ffffff;
	--ap-ok: #2e8b3e;
	--ap-danger: #c0392b;

	--ap-radius: 14px;
	--ap-radius-lg: 22px;
	--ap-shadow: 0 2px 4px rgba(20, 40, 25, .06), 0 10px 30px rgba(20, 40, 25, .08);
	--ap-font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ap-font-head: "Manrope", "Golos Text", system-ui, sans-serif;
	--ap-container: 1240px;
	--ap-tap: 52px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--ap-font);
	font-size: 18px;
	line-height: 1.55;
	color: var(--ap-ink);
	background: var(--ap-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ap-green); text-underline-offset: 3px; }
a:hover { color: var(--ap-green-dark); }
h1, h2, h3, h4 { font-family: var(--ap-font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--ap-accent); outline-offset: 2px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px; background: #fff; padding: 12px 16px; }

.ap-container { width: 100%; max-width: var(--ap-container); margin: 0 auto; padding: 0 20px; }
.ap-center { text-align: center; }

.ap-icon { width: 22px; height: 22px; flex: none; }

/* ---------- Кнопки ---------- */
.ap-btn, .button, button.button, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .wc-block-components-button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: var(--ap-tap); padding: 12px 24px;
	font: 700 17px/1.2 var(--ap-font-head);
	border-radius: 12px; border: 2px solid transparent;
	background: var(--ap-green); color: #fff; text-decoration: none;
	cursor: pointer; transition: transform .12s, background-color .15s, box-shadow .15s;
}
.ap-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--ap-green-dark); color: #fff; }
.ap-btn:active, .button:active { transform: translateY(1px); }

.ap-btn--accent,
.woocommerce a.add_to_cart_button, .woocommerce button.single_add_to_cart_button,
.woocommerce a.checkout-button, .woocommerce #place_order, .woocommerce button.button.alt, .woocommerce a.button.alt {
	background: var(--ap-accent); color: var(--ap-accent-ink);
	box-shadow: 0 4px 0 #c78b00;
}
.ap-btn--accent:hover,
.woocommerce a.add_to_cart_button:hover, .woocommerce button.single_add_to_cart_button:hover,
.woocommerce a.checkout-button:hover, .woocommerce #place_order:hover, .woocommerce button.button.alt:hover {
	background: #ffbb1a; color: var(--ap-accent-ink);
}
.ap-btn--outline { background: transparent; color: var(--ap-green); border-color: var(--ap-green); }
.ap-btn--outline:hover { background: var(--ap-green); color: #fff; }
.ap-btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); }
.ap-btn--ghost:hover { background: #fff; color: var(--ap-green); }
.ap-btn--lg { min-height: 60px; padding: 14px 30px; font-size: 18px; }
.ap-btn--block { width: 100%; }
.ap-link-btn { background: none; border: 0; padding: 0; color: var(--ap-green); font: 600 15px var(--ap-font); text-decoration: underline dashed; text-underline-offset: 4px; cursor: pointer; }

/* ---------- Верхняя полоса ---------- */
.ap-topbar { background: var(--ap-green-dark); color: #d9eadc; font-size: 14px; }
.ap-topbar__inner { display: flex; gap: 26px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.ap-topbar__item { display: inline-flex; gap: 7px; align-items: center; }
.ap-topbar__item .ap-icon { width: 16px; height: 16px; color: var(--ap-accent); }
.ap-topbar__item--push { margin-left: auto; }

/* ---------- Шапка ---------- */
.ap-header { background: #fff; border-bottom: 1px solid var(--ap-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .ap-header { top: 32px; }
.ap-header__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.ap-burger { display: none; width: var(--ap-tap); height: var(--ap-tap); border: 0; border-radius: 12px; background: var(--ap-green-soft); color: var(--ap-green); cursor: pointer; align-items: center; justify-content: center; }
.ap-burger .ap-icon { width: 26px; height: 26px; }

.ap-logo img { max-height: 58px; width: auto; }
.ap-logo__text { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ap-ink); }
.ap-logo__text strong { display: block; font: 800 24px/1 var(--ap-font-head); color: var(--ap-green); }
.ap-logo__text small { display: block; font-size: 13px; color: var(--ap-muted); margin-top: 3px; max-width: 200px; line-height: 1.25; }
.ap-logo__mark { width: 46px; height: 46px; border-radius: 14px; background: var(--ap-green); color: var(--ap-accent); display: grid; place-items: center; }
.ap-logo__mark .ap-icon { width: 26px; height: 26px; fill: var(--ap-accent); stroke: var(--ap-accent); }
.ap-logo__text--light strong { color: #fff; }

.ap-search { position: relative; flex: 1; display: flex; max-width: 560px; border: 2px solid var(--ap-line); border-radius: 14px; background: #fff; transition: border-color .15s; }
.ap-search:focus-within { border-color: var(--ap-green); }
.ap-search input { flex: 1; min-width: 0; width: 100%; border: 0; padding: 0 16px; height: 52px; font: 17px var(--ap-font); background: transparent; color: var(--ap-ink); }
.ap-search input:focus { outline: none; }
.ap-search button { width: 58px; border: 0; border-radius: 0 11px 11px 0; background: var(--ap-green); color: #fff; cursor: pointer; display: grid; place-items: center; }

.ap-header__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ap-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ap-ink); }
.ap-phone .ap-icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--ap-accent); color: var(--ap-accent-ink); }
.ap-phone strong { display: block; font: 800 21px/1.1 var(--ap-font-head); white-space: nowrap; }
.ap-phone small { display: block; font-size: 13px; color: var(--ap-muted); }
.ap-header__contact .ap-link-btn { margin-left: 40px; font-size: 14px; }

.ap-cart-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ap-ink); font-size: 13px; font-weight: 600; min-width: 64px; }
.ap-cart-link .ap-icon { width: 30px; height: 30px; color: var(--ap-green); }
.ap-cart-count { position: absolute; top: -6px; right: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ap-accent); color: var(--ap-accent-ink); font: 800 13px/22px var(--ap-font-head); text-align: center; }
.ap-cart-count[hidden] { display: none; }

/* Полоса категорий */
.ap-catnav { background: var(--ap-green); }
.ap-catnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.ap-catnav__list::-webkit-scrollbar { display: none; }
.ap-catnav__list > li { position: relative; flex: none; }
.ap-catnav__list a { display: flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 52px; color: #fff; text-decoration: none; font: 600 16px var(--ap-font); white-space: nowrap; }
.ap-catnav__list a:hover, .ap-catnav__list .current-menu-item > a, .ap-catnav__list .current-product_cat-ancestor > a { background: rgba(255, 255, 255, .12); color: #fff; }
.ap-catnav__all > a { background: var(--ap-accent); color: var(--ap-accent-ink) !important; font-weight: 700; }
.ap-catnav__all > a:hover { background: #ffbb1a !important; }
.ap-catnav__all .ap-icon { width: 20px; height: 20px; }
.ap-catnav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 0 0 var(--ap-radius) var(--ap-radius); box-shadow: var(--ap-shadow); }
.ap-catnav li:hover > .sub-menu, .ap-catnav li:focus-within > .sub-menu { display: block; }
.ap-catnav .sub-menu a { color: var(--ap-ink); border-radius: 10px; min-height: 46px; }
.ap-catnav .sub-menu a:hover { background: var(--ap-green-soft); color: var(--ap-green); }

/* Мобильное меню */
.ap-mobile-nav { position: fixed; inset: 0; z-index: 200; background: rgba(10, 25, 15, .55); }
.ap-mobile-nav[hidden] { display: none; }
.ap-mobile-nav__panel { width: min(360px, 88vw); height: 100%; overflow-y: auto; background: #fff; padding: 72px 20px 24px; position: relative; display: flex; flex-direction: column; gap: 16px; }
.ap-mobile-nav__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--ap-green-soft); color: var(--ap-green); display: grid; place-items: center; cursor: pointer; }
.ap-menu { list-style: none; margin: 0; padding: 0; }
.ap-menu--mobile a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--ap-line); color: var(--ap-ink); text-decoration: none; font-size: 19px; font-weight: 600; }
.ap-menu--mobile .sub-menu { list-style: none; padding-left: 16px; }
.ap-menu--mobile .sub-menu a { font-size: 17px; font-weight: 500; }

.ap-messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-msg { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.ap-msg--wa { background: #25a244; }
.ap-msg--tg { background: #2a9ed8; }
.ap-msg--vb { background: #7360f2; }
.ap-msg:hover { color: #fff; filter: brightness(1.08); }

/* ---------- Главный экран ---------- */
.ap-hero { background: linear-gradient(135deg, var(--ap-green) 0%, var(--ap-green-dark) 100%); color: #fff; overflow: hidden; position: relative; }
.ap-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 14px; background: repeating-linear-gradient(90deg, var(--ap-accent) 0 28px, transparent 28px 40px); opacity: .9; }
.ap-hero--photo { background: linear-gradient(90deg, rgba(14, 40, 20, .92) 0%, rgba(14, 40, 20, .72) 50%, rgba(14, 40, 20, .2) 100%), var(--ap-hero-img) center/cover no-repeat; }
.ap-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 76px; }
.ap-hero--photo .ap-hero__inner { grid-template-columns: minmax(0, 680px); min-height: 520px; }
.ap-hero h1 { color: #fff; }
.ap-hero p { font-size: 20px; color: #e3efe5; max-width: 600px; }
.ap-kicker { display: inline-block; padding: 7px 14px; margin-bottom: 18px; border-radius: 999px; background: var(--ap-accent); color: var(--ap-accent-ink); font: 700 15px var(--ap-font-head); }
.ap-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.ap-hero__svg { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }

/* Полоса доверия */
.ap-trust { background: var(--ap-wheat); border-bottom: 1px solid #efe5c8; }
.ap-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.ap-trust__item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; }
.ap-trust__item .ap-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ap-green); color: var(--ap-accent); }

/* ---------- Секции ---------- */
.ap-section { padding: 64px 0; }
.ap-section--tint { background: var(--ap-green-soft); }
.ap-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.ap-section__head h2 { margin: 0; }
.ap-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: 17px; }
.ap-more .ap-icon { width: 20px; height: 20px; transition: transform .15s; }
.ap-more:hover .ap-icon { transform: translateX(3px); }

/* Категории */
.ap-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ap-cat { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 18px; border-radius: var(--ap-radius-lg); border: 2px solid var(--ap-line); background: #fff; text-decoration: none; color: var(--ap-ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ap-cat:hover { border-color: var(--ap-green); box-shadow: var(--ap-shadow); transform: translateY(-2px); color: var(--ap-ink); }
.ap-cat__img { grid-row: span 2; width: 96px; height: 96px; border-radius: 16px; background: var(--ap-green-soft); display: grid; place-items: center; overflow: hidden; color: var(--ap-green); }
.ap-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.ap-cat__img .ap-icon { width: 46px; height: 46px; }
.ap-cat__name { font: 800 20px/1.2 var(--ap-font-head); align-self: end; }
.ap-cat__count { font-size: 15px; color: var(--ap-muted); align-self: start; margin-top: 4px; }

/* Шаги */
.ap-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.ap-steps li { background: #fff; border-radius: var(--ap-radius-lg); padding: 26px; position: relative; }
.ap-steps span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ap-accent); color: var(--ap-accent-ink); font: 800 22px var(--ap-font-head); margin-bottom: 16px; }
.ap-steps p { color: var(--ap-muted); margin: 0; font-size: 16px; }

/* CTA */
.ap-cta-band { background: var(--ap-soil); color: #fff; background-image: repeating-linear-gradient(-12deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 22px); }
.ap-cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; }
.ap-cta-band h2 { color: #fff; margin-bottom: 8px; }
.ap-cta-band p { color: #eadfce; max-width: 640px; margin: 0; }
.ap-cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Калькулятор ---------- */
.ap-calc { background: #fff; border: 2px solid var(--ap-line); border-radius: 28px; padding: 36px; box-shadow: var(--ap-shadow); }
.ap-calc--compact { padding: 0; border: 0; box-shadow: none; }
.ap-calc--compact .ap-calc__intro h2 { font-size: 24px; }
.ap-calc__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--ap-green-soft); color: var(--ap-green); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.ap-calc__badge .ap-icon { width: 18px; height: 18px; }
.ap-calc__intro p { color: var(--ap-muted); max-width: 700px; }
.ap-calc__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; margin-top: 20px; }
.ap-calc__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-content: start; }
.ap-calc__fields label > span:first-child { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.ap-input { display: flex; align-items: stretch; border: 2px solid var(--ap-line); border-radius: 12px; overflow: hidden; background: #fff; }
.ap-input:focus-within { border-color: var(--ap-green); }
.ap-input input { flex: 1; min-width: 0; width: 100%; border: 0; padding: 0 14px; height: 56px; font: 700 22px var(--ap-font-head); color: var(--ap-ink); background: transparent; }
.ap-input input:focus { outline: none; }
.ap-input em { display: grid; place-items: center; padding: 0 12px; font-style: normal; font-weight: 600; color: var(--ap-muted); background: #f5f7f4; font-size: 15px; }
.ap-check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; font-weight: 600; cursor: pointer; }
.ap-check input { width: 26px; height: 26px; accent-color: var(--ap-green); }

.ap-calc__results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-content: start; background: var(--ap-green); color: #fff; border-radius: 22px; padding: 22px; }
.ap-res { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px 16px; }
.ap-res small { display: block; color: #cfe3d3; font-size: 14px; }
.ap-res strong { display: block; font: 800 26px/1.2 var(--ap-font-head); }
.ap-res--big { grid-column: 1 / -1; background: var(--ap-accent); color: var(--ap-accent-ink); }
.ap-res--big small { color: #4b3c00; }
.ap-res--big strong { font-size: 40px; }
.ap-res[hidden] { display: none; }
.ap-calc__note { grid-column: 1 / -1; font-size: 14px; color: #cfe3d3; margin: 4px 0; }
.ap-calc__results .ap-btn { grid-column: 1 / -1; }

/* ---------- WooCommerce: общая сетка ---------- */
.ap-woo { padding-top: 24px; padding-bottom: 64px; }
.ap-woo--sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.ap-woo--sidebar .ap-breadcrumbs { grid-column: 1 / -1; }
.ap-filter-toggle { display: none; }
.ap-shop-sidebar { position: sticky; top: 160px; background: #fff; border: 2px solid var(--ap-line); border-radius: var(--ap-radius-lg); padding: 20px; }
.ap-shop-sidebar .widget + .widget { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ap-line); }
.widget-title { font-size: 18px; margin-bottom: 12px; }
.ap-shop-sidebar ul { list-style: none; margin: 0; padding: 0; }
.ap-shop-sidebar li a { display: block; padding: 8px 0; text-decoration: none; color: var(--ap-ink); }
.ap-shop-sidebar li a:hover { color: var(--ap-green); }

.ap-breadcrumbs { font-size: 15px; color: var(--ap-muted); margin-bottom: 20px; }
.ap-breadcrumbs a { color: var(--ap-muted); text-decoration: none; }
.ap-breadcrumbs a:hover { color: var(--ap-green); }
.ap-breadcrumbs .sep { margin: 0 8px; color: #a5b0a7; }

.woocommerce-products-header__title, .ap-woo h1.page-title { margin-bottom: 16px; }
.woocommerce .woocommerce-result-count { color: var(--ap-muted); margin: 0 0 20px; float: left; line-height: 52px; }
.woocommerce .woocommerce-ordering { float: right; margin: 0 0 20px; }
.woocommerce-ordering select, .woocommerce select, .woocommerce input.input-text, .woocommerce textarea, .woocommerce form .form-row .input-text, .select2-container .select2-selection--single {
	min-height: 52px; padding: 10px 14px; border: 2px solid var(--ap-line); border-radius: 12px; font: 17px var(--ap-font); background: #fff; color: var(--ap-ink);
}
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus { border-color: var(--ap-green); outline: none; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 30px; padding-left: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; }

/* Сетка товаров */
.woocommerce ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; clear: both; }
.woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important;
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 2px solid var(--ap-line); border-radius: var(--ap-radius-lg); padding: 14px; transition: border-color .15s, box-shadow .15s;
}
.woocommerce ul.products li.product:hover { border-color: var(--ap-green); box-shadow: var(--ap-shadow); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { text-decoration: none; color: var(--ap-ink); display: flex; flex-direction: column; flex: 1; }
.woocommerce ul.products li.product a img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: contain; background: #f6f8f5; margin: 0 0 14px; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 700 19px/1.3 var(--ap-font-head); margin: 0 0 10px; padding: 0; }
.woocommerce ul.products li.product .price { display: block; margin-top: auto; padding-top: 10px; font: 800 24px var(--ap-font-head); color: var(--ap-ink); }
.woocommerce ul.products li.product .price del { font-size: 16px; color: var(--ap-muted); font-weight: 500; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--ap-danger); }
.woocommerce ul.products li.product .button { margin-top: 12px; width: 100%; }
.woocommerce ul.products li.product .added_to_cart { display: block; text-align: center; margin-top: 8px; font-weight: 600; }
.woocommerce ul.products li.product .star-rating { margin: 0 0 8px; }

.ap-badges { position: absolute; top: 22px; left: 22px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ap-badge { padding: 5px 10px; border-radius: 8px; font: 700 13px var(--ap-font-head); }
.ap-badge--stock { background: var(--ap-ok); color: #fff; }
.ap-badge--hit { background: var(--ap-accent); color: var(--ap-accent-ink); }
.woocommerce span.onsale { position: absolute; top: 22px; right: 22px; left: auto; z-index: 2; min-width: 0; min-height: 0; padding: 6px 12px; border-radius: 10px; background: var(--ap-danger); color: #fff; font: 800 16px/1.2 var(--ap-font-head); margin: 0; }

.ap-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ap-chip { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.ap-chip .ap-icon { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--ap-green-soft); color: var(--ap-green); }
.ap-chip small { display: block; font-size: 12px; font-weight: 500; color: var(--ap-muted); line-height: 1.1; }
.ap-price-request { font-size: 19px; color: var(--ap-green); }

/* Пагинация */
.woocommerce nav.woocommerce-pagination ul, .nav-links { display: flex; gap: 8px; justify-content: center; border: 0; margin: 32px 0 0; padding: 0; list-style: none; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span, .nav-links .page-numbers {
	display: grid; place-items: center; min-width: 50px; height: 50px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--ap-line); font: 700 17px var(--ap-font-head); color: var(--ap-ink); text-decoration: none; background: #fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current, .nav-links .current { background: var(--ap-green); border-color: var(--ap-green); color: #fff; }

/* ---------- Карточка товара ---------- */
.woocommerce div.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; position: relative; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product div.images img { border-radius: var(--ap-radius-lg); background: #f6f8f5; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; padding: 0; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 84px !important; list-style: none; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 10px; border: 2px solid transparent; opacity: .7; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active { border-color: var(--ap-green); opacity: 1; }
.woocommerce div.product .product_title { font-size: clamp(28px, 3vw, 40px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { font: 800 38px var(--ap-font-head); color: var(--ap-ink); margin: 6px 0 18px; }
.woocommerce div.product p.price del { font-size: 22px; color: var(--ap-muted); }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--ap-danger); }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 18px; color: #36423a; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 24px 0 12px; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; min-height: 62px; font-size: 19px; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: 16px; }
.woocommerce div.product form.cart .variations th { text-align: left; padding: 8px 12px 8px 0; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 12px; flex-wrap: wrap; }
.woocommerce .quantity .qty { width: 92px; min-height: 62px; border: 2px solid var(--ap-line); border-radius: 12px; font: 800 20px var(--ap-font-head); text-align: center; }
.woocommerce div.product .stock { font-weight: 700; }
.woocommerce div.product .stock.in-stock { color: var(--ap-ok); }
.woocommerce div.product .product_meta { margin-top: 20px; color: var(--ap-muted); font-size: 15px; display: grid; gap: 4px; }

.ap-single-perks { display: grid; gap: 10px; margin: 18px 0; }
.ap-perk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f5f7f4; font-weight: 600; font-size: 16px; }
.ap-perk .ap-icon { color: var(--ap-green); }
.ap-perk--ok { background: #e3f4e5; color: #1d6b2b; }
.ap-perk--ok .ap-icon { color: var(--ap-ok); }

/* Вкладки */
.woocommerce div.product .woocommerce-tabs { margin-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0; margin: 0 0 -2px; list-style: none; border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 2px solid var(--ap-line); border-bottom: 0; border-radius: 14px 14px 0 0; background: #f5f7f4; flex: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 22px; font: 700 17px var(--ap-font-head); color: var(--ap-muted); text-decoration: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; position: relative; z-index: 1; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ap-green); }
.woocommerce div.product .woocommerce-tabs .panel { border: 2px solid var(--ap-line); border-radius: 0 var(--ap-radius-lg) var(--ap-radius-lg) var(--ap-radius-lg); padding: 28px; margin: 0; background: #fff; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }

.ap-spec-table, .woocommerce table.shop_attributes { width: 100%; border-collapse: collapse; border: 0; font-size: 17px; }
.ap-spec-table th, .ap-spec-table td, .woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 14px 12px; border-bottom: 1px solid var(--ap-line); text-align: left; vertical-align: middle; font-style: normal; }
.ap-spec-table tr:nth-child(odd), .woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: #f8faf7; }
.ap-spec-table th { width: 48%; font-weight: 600; color: var(--ap-muted); }
.ap-spec-table th .ap-icon { vertical-align: -5px; margin-right: 10px; color: var(--ap-green); }
.ap-spec-table td { font-weight: 800; font-family: var(--ap-font-head); }
.woocommerce table.shop_attributes td p { margin: 0; padding: 0; }

.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { margin: 48px 0 20px; }

/* ---------- Корзина и оформление ---------- */
.woocommerce table.shop_table { border: 2px solid var(--ap-line); border-radius: var(--ap-radius-lg); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { font-family: var(--ap-font-head); background: #f5f7f4; padding: 14px; }
.woocommerce table.shop_table td { padding: 14px; border-top: 1px solid var(--ap-line); }
.woocommerce table.shop_table img { width: 72px; border-radius: 10px; }
.woocommerce a.remove { width: 36px; height: 36px; line-height: 32px; font-size: 26px; border-radius: 50%; color: var(--ap-danger) !important; border: 2px solid currentColor; }
.woocommerce a.remove:hover { background: var(--ap-danger); color: #fff !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order { background: var(--ap-green-soft); border-radius: var(--ap-radius-lg); padding: 24px; }
.woocommerce .cart-collaterals .cart_totals table { background: #fff; }
.woocommerce form .form-row label { font-weight: 600; margin-bottom: 4px; }
.woocommerce-checkout #payment { background: #fff; border-radius: var(--ap-radius); border: 2px solid var(--ap-line); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--ap-radius); border-top: 0; border-left: 6px solid var(--ap-green); background: var(--ap-green-soft); padding: 16px 20px 16px 52px; font-weight: 600; list-style: none; }
.woocommerce-error { border-left-color: var(--ap-danger); background: #fdecea; }
.woocommerce-message .button, .woocommerce-info .button { float: right; min-height: 42px; padding: 8px 16px; font-size: 15px; }

/* ---------- Страницы и записи ---------- */
.ap-page-head { margin-bottom: 28px; }
.ap-page-head time { color: var(--ap-muted); font-size: 15px; }
.ap-prose { max-width: 820px; }
.ap-prose img { border-radius: var(--ap-radius); }
.ap-prose table { width: 100%; border-collapse: collapse; }
.ap-prose td, .ap-prose th { border: 1px solid var(--ap-line); padding: 10px; }
.woocommerce-cart .ap-prose, .woocommerce-checkout .ap-prose, .woocommerce-account .ap-prose { max-width: none; }
.ap-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ap-post-card { border: 2px solid var(--ap-line); border-radius: var(--ap-radius-lg); overflow: hidden; background: #fff; }
.ap-post-card__img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.ap-post-card__body { padding: 20px; }
.ap-post-card h2 { font-size: 21px; }
.ap-post-card h2 a { color: var(--ap-ink); text-decoration: none; }
.ap-post-card time { font-size: 14px; color: var(--ap-muted); }
.ap-single__img img { border-radius: var(--ap-radius-lg); margin-bottom: 28px; }
.ap-404 { text-align: center; }
.ap-404__code { font: 800 120px/1 var(--ap-font-head); color: var(--ap-accent); margin: 0; }
.ap-404 .ap-hero__actions { justify-content: center; }

/* ---------- Подвал ---------- */
.ap-footer { background: var(--ap-green-dark); color: #c6dbc9; font-size: 16px; }
.ap-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 52px; padding-bottom: 36px; }
.ap-footer .footer-widget__title { color: #fff; font-size: 18px; margin-bottom: 14px; }
.ap-footer a { color: #e6f1e8; }
.ap-footer__about p { margin: 14px 0; }
.ap-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-footer__menu a { text-decoration: none; }
.ap-footer__menu a:hover { text-decoration: underline; }
.ap-footer__phone { display: block; font: 800 26px var(--ap-font-head); color: var(--ap-accent) !important; text-decoration: none; margin-bottom: 10px; }
.ap-footer__contacts p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; }
.ap-footer__contacts .ap-icon { width: 20px; height: 20px; color: var(--ap-accent); margin-top: 3px; }
.ap-footer__bottom { display: flex; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

/* Нижняя панель (только телефон) */
.ap-bottombar { display: none; }

/* ---------- Модальное окно ---------- */
.ap-modal { position: fixed; inset: 0; z-index: 300; background: rgba(10, 25, 15, .6); display: grid; place-items: center; padding: 16px; }
.ap-modal[hidden] { display: none; }
.ap-modal__box { width: min(480px, 100%); max-height: 100%; overflow-y: auto; background: #fff; border-radius: 24px; padding: 32px; position: relative; border-top: 8px solid var(--ap-accent); }
.ap-modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #f1f4f0; display: grid; place-items: center; cursor: pointer; color: var(--ap-ink); }
.ap-modal__lead { color: var(--ap-muted); }
.ap-callback-form { display: grid; gap: 14px; }
.ap-callback-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.ap-callback-form input, .ap-callback-form textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 2px solid var(--ap-line); border-radius: 12px; font: 18px var(--ap-font); color: var(--ap-ink); }
.ap-callback-form input:focus, .ap-callback-form textarea:focus { border-color: var(--ap-green); outline: none; }
.ap-callback-form__status { margin: 0; font-weight: 600; min-height: 1.5em; }
.ap-callback-form__status.is-ok { color: var(--ap-ok); }
.ap-callback-form__status.is-err { color: var(--ap-danger); }

/* ==========================================================
   Адаптив
   ========================================================== */
@media (max-width: 1100px) {
	.ap-header__contact .ap-link-btn { display: none; }
	.ap-cats { grid-template-columns: repeat(2, 1fr); }
	.ap-steps { grid-template-columns: repeat(2, 1fr); }
	.woocommerce ul.products, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(2, 1fr); }
	.ap-calc__body { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	body { font-size: 17px; padding-bottom: 72px; }
	.admin-bar .ap-header { top: 0; }
	.ap-topbar { display: none; }
	.ap-header__inner { flex-wrap: wrap; gap: 12px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
	.ap-burger { display: inline-flex; }
	.ap-logo { flex: 1; }
	.ap-logo__text small { display: none; }
	.ap-logo__text strong { font-size: 21px; }
	.ap-logo__mark { width: 40px; height: 40px; }
	.ap-header__contact { display: none; }
	.ap-cart-link__label { display: none; }
	.ap-search { order: 5; flex-basis: 100%; max-width: none; }
	.ap-catnav { display: none; }

	.ap-hero__inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 28px; }
	.ap-hero--photo .ap-hero__inner { min-height: 0; }
	.ap-hero p { font-size: 18px; }
	.ap-hero__actions .ap-btn { flex: 1 1 100%; }
	.ap-trust__grid { grid-template-columns: 1fr 1fr; }
	.ap-trust__item { font-size: 15px; }
	.ap-section { padding: 44px 0; }

	.ap-woo--sidebar { display: block; }
	.ap-filter-toggle { display: inline-flex; width: 100%; margin-bottom: 16px; }
	.ap-shop-sidebar { display: none; position: static; margin-bottom: 20px; }
	.ap-shop-sidebar.is-open { display: block; }

	.woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
	.ap-posts { grid-template-columns: 1fr 1fr; }
	.ap-footer__grid { grid-template-columns: 1fr; gap: 28px; }

	.ap-bottombar {
		display: grid; grid-template-columns: repeat(4, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
		background: #fff; border-top: 1px solid var(--ap-line);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.ap-bottombar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; color: var(--ap-ink); text-decoration: none; font-size: 13px; font-weight: 600; }
	.ap-bottombar .ap-icon { width: 26px; height: 26px; color: var(--ap-green); }
	.ap-bottombar__call { background: var(--ap-accent); }
	.ap-bottombar__call .ap-icon { color: var(--ap-accent-ink); }
}

@media (max-width: 600px) {
	.ap-container { padding-left: 16px; padding-right: 16px; }
	.ap-cats { grid-template-columns: 1fr; }
	.ap-cat { grid-template-columns: 72px 1fr; padding: 14px; }
	.ap-cat__img { width: 72px; height: 72px; }
	.ap-steps { grid-template-columns: 1fr; }
	.ap-trust__grid { grid-template-columns: 1fr; gap: 10px; }
	.woocommerce ul.products, .woocommerce ul.products.columns-4, .woocommerce ul.products.columns-2 { grid-template-columns: 1fr; }
	.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { float: none; }
	.woocommerce-ordering select { width: 100%; }
	.ap-calc { padding: 20px; border-radius: 22px; }
	.ap-calc__fields { gap: 12px; }
	.ap-input input { font-size: 19px; height: 52px; padding: 0 10px; }
	.ap-input em { padding: 0 8px; font-size: 13px; }
	.ap-calc__results { padding: 16px; }
	.ap-res strong { font-size: 21px; }
	.ap-res--big strong { font-size: 32px; }
	.woocommerce div.product .woocommerce-tabs .panel { padding: 18px; }
	.ap-posts { grid-template-columns: 1fr; }
	.ap-cta-band__actions .ap-btn { flex: 1 1 100%; }
	.woocommerce table.shop_table_responsive tr td::before { font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.ap-topbar, .ap-catnav, .ap-bottombar, .ap-cta-band, .ap-modal, .ap-search { display: none !important; }
}

/* ==========================================================
   v1.1 — каталог на 100+ товаров
   ========================================================== */

/* Подкатегории в меню */
.ap-catnav .menu-item-has-children > a::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); margin-left: 4px; opacity: .8; }
.ap-catnav .sub-menu { z-index: 60; }
.ap-catnav .sub-menu a { justify-content: space-between; white-space: normal; }
.ap-catnav .sub-menu em { font-style: normal; font-size: 13px; color: var(--ap-muted); background: #f1f4f0; border-radius: 8px; padding: 2px 8px; }
.ap-catnav .sub-menu__all a { color: var(--ap-green); font-weight: 700; border-top: 1px solid var(--ap-line); margin-top: 4px; }

/* Живой поиск */
.ap-search__results { position: absolute; top: calc(100% + 6px); left: -2px; right: -2px; z-index: 80; max-height: min(70vh, 560px); overflow-y: auto; background: #fff; border: 2px solid var(--ap-green); border-radius: 14px; box-shadow: var(--ap-shadow); padding: 6px; }
.ap-search__results[hidden] { display: none; }
.ap-sr__group { padding: 10px 10px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ap-muted); }
.ap-search__results a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ap-ink); text-decoration: none; }
.ap-search__results a:hover, .ap-search__results a.is-active { background: var(--ap-green-soft); }
.ap-sr__cat { font-weight: 600; justify-content: space-between; }
.ap-sr__cat em { font-style: normal; font-size: 13px; color: var(--ap-muted); }
.ap-sr__item img, .ap-sr__noimg { width: 52px; height: 52px; flex: none; border-radius: 8px; object-fit: contain; background: #f6f8f5; }
.ap-sr__body { flex: 1; min-width: 0; }
.ap-sr__name { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; }
.ap-sr__meta { display: block; font-size: 13px; color: var(--ap-muted); }
.ap-sr__meta b { color: var(--ap-ok); font-weight: 600; }
.ap-sr__price { flex: none; font: 800 16px var(--ap-font-head); white-space: nowrap; }
.ap-search__results .ap-sr__all { justify-content: center; font-weight: 700; color: var(--ap-green); border-top: 1px solid var(--ap-line); border-radius: 0 0 10px 10px; margin-top: 4px; min-height: 48px; }
.ap-sr__empty { padding: 16px; color: var(--ap-muted); }

/* Подкатегории над товарами */
.ap-subcats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.ap-subcat { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 16px 6px 6px; border: 2px solid var(--ap-line); border-radius: 14px; background: #fff; color: var(--ap-ink); text-decoration: none; font-weight: 600; transition: border-color .15s; }
.ap-subcat:not(:has(img)) { padding-left: 16px; }
.ap-subcat img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.ap-subcat em { font-style: normal; font-size: 13px; color: var(--ap-muted); background: #f1f4f0; border-radius: 8px; padding: 2px 8px; }
.ap-subcat:hover { border-color: var(--ap-green); color: var(--ap-green); }
.ap-subcat.is-current { border-color: var(--ap-green); background: var(--ap-green); color: #fff; }
.ap-subcat.is-current em { background: rgba(255, 255, 255, .2); color: #fff; }

/* Панель над товарами */
.ap-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 10px 10px 18px; background: #f5f7f4; border-radius: 16px; }
.ap-toolbar .woocommerce-result-count { float: none !important; margin: 0 !important; line-height: 1.3 !important; font-weight: 600; color: var(--ap-ink); }
.ap-toolbar__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-toolbar .woocommerce-ordering { float: none !important; margin: 0 !important; }
.ap-toolbar select { min-height: 48px; padding: 8px 36px 8px 12px; border: 2px solid var(--ap-line); border-radius: 12px; font: 600 16px var(--ap-font); background: #fff; color: var(--ap-ink); cursor: pointer; }
.ap-perpage { margin: 0; }
.ap-view { display: inline-flex; border: 2px solid var(--ap-line); border-radius: 12px; overflow: hidden; background: #fff; }
.ap-view button { width: 48px; height: 44px; border: 0; background: transparent; color: var(--ap-muted); cursor: pointer; display: grid; place-items: center; }
.ap-view button[aria-pressed="true"] { background: var(--ap-green); color: #fff; }

/* Активные фильтры */
.ap-active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 20px; }
.ap-active-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px 4px 14px; border-radius: 999px; background: var(--ap-green-soft); color: var(--ap-green-dark); font-weight: 600; font-size: 15px; text-decoration: none; }
.ap-active-filter span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; font-size: 18px; line-height: 1; }
.ap-active-filter:hover { background: var(--ap-green); color: #fff; }
.ap-active-filter:hover span { color: var(--ap-green); }
.ap-active-filters__clear { font-weight: 600; font-size: 15px; color: var(--ap-danger); margin-left: 4px; }

/* Боковая панель фильтров */
.ap-shop-sidebar { max-height: calc(100vh - 180px); overflow-y: auto; overscroll-behavior: contain; }
.ap-filters__block + .ap-filters__block, .ap-filters__form .ap-filters__block:first-child { margin-top: 0; }
.ap-filters__block { border: 0; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--ap-line); min-width: 0; }
.ap-filters__block .widget-title { padding: 0; font-size: 17px; margin-bottom: 10px; }
.ap-filters__cats { list-style: none; margin: 0; padding: 0; }
.ap-filters__cats li { color: var(--ap-muted); font-size: 14px; }
.ap-filters__cats li a { display: inline-block; padding: 7px 0; color: var(--ap-ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.ap-filters__cats .children { list-style: none; padding-left: 14px; margin: 0; border-left: 2px solid var(--ap-line); }
.ap-filters__cats .current-cat > a { color: var(--ap-green); font-weight: 800; }
.ap-filters__cats li a:hover { color: var(--ap-green); }
.ap-filters .ap-check { margin: 6px 0; font-size: 16px; font-weight: 500; }
.ap-filters .ap-check input { width: 24px; height: 24px; flex: none; }
.ap-range__inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; }
.ap-range__inputs span { color: var(--ap-muted); }
.ap-range__inputs input { width: 100%; min-height: 48px; padding: 8px 10px; border: 2px solid var(--ap-line); border-radius: 10px; font: 600 16px var(--ap-font); color: var(--ap-ink); background: #fff; }
.ap-range__inputs input:focus { border-color: var(--ap-green); outline: none; }
.ap-range__inputs input::placeholder { color: #98a39a; font-weight: 500; }
.ap-filters__actions { position: sticky; bottom: -20px; background: #fff; padding: 12px 0 4px; display: grid; gap: 10px; text-align: center; }
.ap-filters__reset { font-weight: 600; color: var(--ap-danger); }
.ap-shop-sidebar__widgets { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ap-line); }
.ap-filter-toggle__num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 13px; background: var(--ap-accent); color: var(--ap-accent-ink); font-size: 14px; }

.ap-empty { padding: 32px; border: 2px dashed var(--ap-line); border-radius: var(--ap-radius-lg); text-align: center; }
.ap-empty .ap-active-filters { justify-content: center; margin: 16px 0 0; }

/* Каталог списком — удобно сравнивать характеристики */
.woocommerce ul.products.is-list { grid-template-columns: 1fr !important; gap: 14px; }
.woocommerce ul.products.is-list li.product { display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; grid-template-rows: auto 1fr; column-gap: 24px; align-items: start; padding: 14px; }
.woocommerce ul.products.is-list li.product a.woocommerce-LoopProduct-link { display: contents; }
.woocommerce ul.products.is-list li.product a img { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.woocommerce ul.products.is-list li.product .woocommerce-loop-product__title { grid-column: 2; font-size: 20px; margin: 6px 0 10px; }
.woocommerce ul.products.is-list li.product .ap-chips { grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.woocommerce ul.products.is-list li.product .price { grid-column: 3; grid-row: 1; margin: 6px 0 0; padding: 0; text-align: right; }
.woocommerce ul.products.is-list li.product .button { grid-column: 3; grid-row: 2; align-self: end; }
.woocommerce ul.products.is-list li.product .added_to_cart { grid-column: 3; }
.woocommerce ul.products.is-list li.product .star-rating { grid-column: 2; }
.woocommerce ul.products.is-list .ap-badges { top: 22px; left: 22px; }
.woocommerce ul.products.is-list span.onsale { left: 170px; right: auto; }

@media (max-width: 1100px) {
	.woocommerce ul.products.is-list li.product { grid-template-columns: 160px minmax(0, 1fr); }
	.woocommerce ul.products.is-list li.product .price { grid-column: 2; grid-row: auto; text-align: left; margin-top: 12px; }
	.woocommerce ul.products.is-list li.product .button { grid-column: 2; grid-row: auto; }
	.woocommerce ul.products.is-list li.product a img { grid-row: 1 / span 4; }
	.woocommerce ul.products.is-list span.onsale { left: 130px; }
}
@media (max-width: 900px) {
	.ap-shop-sidebar { max-height: none; overflow: visible; }
	.ap-filters__actions { bottom: 72px; }
	.ap-search__results { position: fixed; top: auto; left: 8px; right: 8px; max-height: 60vh; }
}
@media (max-width: 600px) {
	.ap-toolbar { padding: 10px; }
	.ap-toolbar__count { width: 100%; }
	.ap-toolbar__controls { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
	.ap-toolbar .woocommerce-ordering select { width: 100%; }
	.ap-subcats { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; scrollbar-width: none; }
	.ap-subcat { flex: none; }
	.woocommerce ul.products.is-list li.product { grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; padding: 10px; }
	.woocommerce ul.products.is-list li.product .woocommerce-loop-product__title { font-size: 17px; margin-top: 0; }
	.woocommerce ul.products.is-list li.product .ap-chips { grid-template-columns: 1fr; gap: 4px; }
	.woocommerce ul.products.is-list .ap-chip .ap-icon { width: 26px; height: 26px; padding: 5px; }
	.woocommerce ul.products.is-list .ap-badges { top: 14px; left: 14px; }
	.woocommerce ul.products.is-list .ap-badge { font-size: 11px; padding: 3px 6px; }
	.woocommerce ul.products.is-list span.onsale { left: 80px; top: 14px; font-size: 13px; padding: 4px 7px; }
	.woocommerce ul.products.is-list li.product .price { font-size: 20px; }
	.woocommerce ul.products.is-list li.product .button { grid-column: 1 / -1; }
}

/* Список разделов в фильтрах */
.ap-filters__cats > li { display: block; }
.ap-filters__cats .ap-count { font-size: 13px; color: var(--ap-muted); background: #f1f4f0; border-radius: 8px; padding: 1px 7px; margin-left: 2px; }
.ap-filters__cats .children { margin: 2px 0 6px 2px; }
.ap-filters__cats .children a { font-size: 15px; padding: 5px 0; }
.ap-catnav__all .sub-menu a { color: var(--ap-ink) !important; background: transparent; font-weight: 600; }
.ap-catnav__all .sub-menu a:hover { background: var(--ap-green-soft) !important; color: var(--ap-green) !important; }
.ap-catnav__all.menu-item-has-children > a::after { border-color: var(--ap-accent-ink); }
.ap-filters__cats li a { display: flex !important; justify-content: space-between; align-items: center; gap: 8px; }
.ap-filters__cats .ap-count { flex: none; }
.woocommerce ul.products.is-list li.product .ap-chips { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.woocommerce ul.products.is-list .ap-chip span { min-width: 0; }
@media (max-width: 600px) {
	.ap-toolbar__controls { grid-template-columns: minmax(0, 1fr) auto; }
	.ap-toolbar .woocommerce-ordering { grid-column: 1 / -1; }
	.ap-perpage select { width: 100%; }
}
.ap-sr__item .ap-sr__body { overflow: hidden; }
.ap-sr__price { max-width: 40%; text-align: right; }

/* Фото на главном экране */
.ap-hero--photo { position: relative; background-color: var(--ap-green-dark); }
.ap-photo-credit { position: absolute; right: 16px; bottom: 22px; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, .75) !important; text-decoration: none; background: rgba(0, 0, 0, .35); padding: 3px 8px; border-radius: 6px; }
.ap-photo-credit:hover { color: #fff !important; }
@media (max-width: 900px) {
	.ap-hero--photo { background: linear-gradient(180deg, rgba(14, 40, 20, .78) 0%, rgba(14, 40, 20, .9) 100%), var(--ap-hero-img-sm, var(--ap-hero-img)) center/cover no-repeat; }
}

.ap-footer__bottom { align-items: center; gap: 12px; flex-wrap: wrap; }
