/*
Theme Name: AgroParts — Hello Elementor
Theme URI: https://agroparts.ru
Author: AgroParts
Description: Дочерняя тема Hello Elementor для интернет-магазина AgroParts (оборудование для внесения жидких удобрений) на WooCommerce. Русский интерфейс, крупные элементы для фермеров, своя шапка и подвал, виджеты Elementor «AgroParts»: первый экран, преимущества, категории, товары, калькулятор расхода, этапы, отзывы, форма звонка.
Template: hello-elementor
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 7.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agroparts
*/

/* ============ Переменные ============ */
:root {
  --ap-green: #2e7d32;
  --ap-green-dark: #1b5e20;
  --ap-green-deep: #10361a;
  --ap-green-light: #e8f3e5;
  --ap-yellow: #f9b91a;
  --ap-yellow-dark: #e09e00;
  --ap-soil: #6b4f3a;
  --ap-bg: #f5f7f1;
  --ap-white: #ffffff;
  --ap-text: #1d2a1e;
  --ap-muted: #5d6b5e;
  --ap-border: #dbe3d6;
  --ap-red: #c62828;
  --ap-radius: 14px;
  --ap-radius-sm: 10px;
  --ap-shadow: 0 6px 24px rgba(16, 54, 26, .08);
  --ap-shadow-hover: 0 14px 36px rgba(16, 54, 26, .16);
  --ap-container: 1240px;
  --ap-font: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* ============ База ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ap-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ap-text);
  background: var(--ap-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ap-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ap-green-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ap-green-deep); font-weight: 800; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.ap-container { max-width: var(--ap-container); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.ap-section { padding: 72px 0; }
.ap-section--white { background: var(--ap-white); }
.ap-section__head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.ap-section__head p { color: var(--ap-muted); font-size: 18px; }
.ap-eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ap-green); background: var(--ap-green-light); padding: 6px 14px; border-radius: 99px; margin-bottom: 14px;
}

/* ============ Кнопки ============ */
.ap-btn, .button, button.button, input.button, .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  font: 700 17px/1.2 var(--ap-font);
  color: var(--ap-white); background: var(--ap-green);
  border: 2px solid var(--ap-green); border-radius: var(--ap-radius-sm);
  cursor: pointer; text-align: center; transition: background .2s, transform .15s, box-shadow .2s;
}
.ap-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--ap-green-dark); border-color: var(--ap-green-dark); color: var(--ap-white); transform: translateY(-1px);
}
.ap-btn--yellow, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order {
  background: var(--ap-yellow); border-color: var(--ap-yellow); color: var(--ap-green-deep);
}
.ap-btn--yellow:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--ap-yellow-dark); border-color: var(--ap-yellow-dark); color: var(--ap-green-deep);
}
.ap-btn--outline { background: transparent; color: var(--ap-white); border-color: rgba(255,255,255,.7); }
.ap-btn--outline:hover { background: var(--ap-white); color: var(--ap-green-deep); border-color: var(--ap-white); }
.ap-btn--ghost { background: transparent; color: var(--ap-green); }
.ap-btn--ghost:hover { background: var(--ap-green); color: var(--ap-white); }
.ap-btn--block { width: 100%; }
.ap-btn--lg { min-height: 60px; font-size: 19px; padding: 14px 34px; }

/* ============ Верхняя полоса ============ */
.ap-topbar { background: var(--ap-green-deep); color: #cfe3cf; font-size: 14px; }
.ap-topbar .ap-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.ap-topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.ap-topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.ap-topbar a { color: #fff; font-weight: 600; }
.ap-topbar__msg { display: flex; gap: 14px; }

/* ============ Шапка ============ */
.ap-header { background: var(--ap-white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.admin-bar .ap-header { top: 32px; }
.ap-header__main { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.ap-logo { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 900; color: var(--ap-green-deep); letter-spacing: -.02em; flex-shrink: 0; }
.ap-logo:hover { color: var(--ap-green-deep); }
.ap-logo span { color: var(--ap-green); }
.ap-logo svg { width: 42px; height: 42px; }
.ap-logo img { max-height: 56px; width: auto; }
.ap-search { flex: 1; display: flex; max-width: 520px; }
.ap-search input[type="search"] {
  flex: 1; min-height: 50px; padding: 0 18px; font-size: 16px;
  border: 2px solid var(--ap-border); border-right: 0; border-radius: var(--ap-radius-sm) 0 0 var(--ap-radius-sm); outline: none;
}
.ap-search input[type="search"]:focus { border-color: var(--ap-green); }
.ap-search button { min-height: 50px; padding: 0 20px; border: 0; background: var(--ap-green); color: #fff; border-radius: 0 var(--ap-radius-sm) var(--ap-radius-sm) 0; cursor: pointer; }
.ap-search button:hover { background: var(--ap-green-dark); }
.ap-header__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; margin-left: auto; }
.ap-header__phone { font-size: 22px; font-weight: 800; color: var(--ap-green-deep); white-space: nowrap; }
.ap-header__callback { background: none; border: 0; padding: 0; color: var(--ap-green); font: 600 14px var(--ap-font); cursor: pointer; border-bottom: 1px dashed currentColor; }
.ap-cart {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px;
  background: var(--ap-yellow); color: var(--ap-green-deep); border-radius: var(--ap-radius-sm); font-weight: 700; white-space: nowrap;
}
.ap-cart:hover { background: var(--ap-yellow-dark); color: var(--ap-green-deep); }
.ap-cart__count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--ap-green-deep); color: #fff;
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}
.ap-burger { display: none; width: 52px; height: 52px; border: 2px solid var(--ap-border); background: #fff; border-radius: var(--ap-radius-sm); cursor: pointer; }
.ap-burger span, .ap-burger span::before, .ap-burger span::after { display: block; width: 24px; height: 3px; background: var(--ap-green-deep); margin: 0 auto; position: relative; border-radius: 2px; }
.ap-burger span::before, .ap-burger span::after { content: ""; position: absolute; left: 0; }
.ap-burger span::before { top: -8px; } .ap-burger span::after { top: 8px; }

/* ============ Меню ============ */
.ap-nav { background: var(--ap-green); }
.ap-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.ap-nav li { position: relative; }
.ap-nav a { display: block; padding: 14px 18px; color: #fff; font-weight: 600; font-size: 16px; }
.ap-nav a:hover, .ap-nav .current-menu-item > a, .ap-nav .current-menu-ancestor > a { background: var(--ap-green-dark); color: #fff; }
.ap-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: var(--ap-shadow-hover); border-radius: 0 0 var(--ap-radius-sm) var(--ap-radius-sm); z-index: 50; flex-direction: column; }
.ap-nav .sub-menu a { color: var(--ap-text); padding: 12px 18px; }
.ap-nav .sub-menu a:hover { background: var(--ap-green-light); color: var(--ap-green-dark); }
.ap-nav li:hover > .sub-menu, .ap-nav li:focus-within > .sub-menu { display: flex; }
.ap-nav__catalog > a { background: var(--ap-green-dark); }

/* ============ Hero ============ */
.ap-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(16,54,26,.94) 0%, rgba(16,54,26,.78) 45%, rgba(16,54,26,.25) 100%),
    var(--ap-hero-image, linear-gradient(160deg, #6fa84a 0%, #3f7a2d 50%, #6b4f3a 100%));
  background-size: cover; background-position: center;
}
.ap-hero { background-color: var(--ap-green-dark); }
.ap-hero--photo .ap-hero__rows { display: none; }
.ap-hero__rows { position: absolute; inset: auto 0 0 0; height: 40%; opacity: .14; pointer-events: none; }
.ap-hero .ap-container { position: relative; padding-top: 90px; padding-bottom: 96px; }
.ap-hero__content { max-width: 680px; }
.ap-hero h1 { color: #fff; margin-bottom: 18px; }
.ap-hero h1 mark { background: none; color: var(--ap-yellow); }
.ap-hero__lead { font-size: 20px; color: #e3efe0; margin-bottom: 30px; }
.ap-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.ap-hero__stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.ap-hero__stat strong { display: block; font-size: 36px; font-weight: 900; color: var(--ap-yellow); line-height: 1; }
.ap-hero__stat span { font-size: 15px; color: #cfe3cf; }

/* ============ Преимущества ============ */
.ap-benefits { margin-top: -44px; position: relative; z-index: 2; }
.ap-benefits__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ap-benefit { background: #fff; border-radius: var(--ap-radius); padding: 24px; box-shadow: var(--ap-shadow); display: flex; gap: 16px; align-items: flex-start; }
.ap-benefit__icon { flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px; background: var(--ap-green-light); color: var(--ap-green); display: flex; align-items: center; justify-content: center; }
.ap-benefit__icon svg { width: 28px; height: 28px; }
.ap-benefit h3 { font-size: 18px; margin-bottom: 4px; }
.ap-benefit p { font-size: 15px; color: var(--ap-muted); margin: 0; }

/* ============ Категории ============ */
.ap-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ap-cat {
  background: #fff; border: 2px solid var(--ap-border); border-radius: var(--ap-radius); padding: 26px 22px;
  display: flex; flex-direction: column; gap: 12px; color: var(--ap-text); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ap-cat:hover { border-color: var(--ap-green); box-shadow: var(--ap-shadow-hover); transform: translateY(-3px); color: var(--ap-text); }
.ap-cat__img { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--ap-radius-sm); background: var(--ap-green-light); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ap-green); }
.ap-cat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ap-cat:hover .ap-cat__img img { transform: scale(1.05); }
.ap-cat__img svg { width: 64px; height: 64px; }
.ap-cat h3 { margin: 0; font-size: 19px; overflow-wrap: anywhere; hyphens: auto; }
.ap-cat__count { color: var(--ap-muted); font-size: 15px; }
.ap-cat__more { margin-top: auto; font-weight: 700; color: var(--ap-green); }

/* ============ Калькулятор ============ */
.ap-calc { background: var(--ap-green-deep); color: #fff; border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.ap-calc h2 { color: #fff; }
.ap-calc p { color: #cfe3cf; }
.ap-calc__form { background: #fff; color: var(--ap-text); border-radius: var(--ap-radius); padding: 30px; }
.ap-calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-field { margin-bottom: 16px; }
.ap-field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ap-field input, .ap-field select, .ap-field textarea {
  width: 100%; min-height: 52px; padding: 10px 16px; font: 17px var(--ap-font); color: var(--ap-text);
  border: 2px solid var(--ap-border); border-radius: var(--ap-radius-sm); background: #fff; outline: none;
}
.ap-field input:focus, .ap-field select:focus, .ap-field textarea:focus { border-color: var(--ap-green); }
.ap-calc__result { margin-top: 8px; background: var(--ap-green-light); border-radius: var(--ap-radius-sm); padding: 18px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.ap-calc__result strong { display: block; font-size: 26px; color: var(--ap-green-dark); font-weight: 900; line-height: 1.1; }
.ap-calc__result span { font-size: 13px; color: var(--ap-muted); }
.ap-calc .ap-calc__tip { margin-top: 14px; font-size: 15px; color: var(--ap-text); }
.ap-checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.ap-checklist li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.ap-checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--ap-yellow); color: var(--ap-green-deep); font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; }

/* ============ Шаги ============ */
.ap-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.ap-step { background: var(--ap-bg); border-radius: var(--ap-radius); padding: 28px 24px; position: relative; }
.ap-step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ap-green); color: #fff; font-size: 22px; font-weight: 900; margin-bottom: 16px; }
.ap-step h3 { font-size: 19px; }
.ap-step p { color: var(--ap-muted); font-size: 15px; margin: 0; }

/* ============ Отзывы ============ */
.ap-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ap-review { background: #fff; border-radius: var(--ap-radius); padding: 28px; box-shadow: var(--ap-shadow); display: flex; flex-direction: column; }
.ap-review__stars { color: var(--ap-yellow); font-size: 20px; letter-spacing: 2px; margin-bottom: 12px; }
.ap-review__text { flex: 1; font-size: 16px; }
.ap-review__author { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ap-border); }
.ap-review__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ap-green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ap-review__author strong { display: block; line-height: 1.2; }
.ap-review__author span { font-size: 14px; color: var(--ap-muted); }

/* ============ CTA / обратный звонок ============ */
.ap-cta { background: linear-gradient(120deg, var(--ap-yellow) 0%, #ffd45c 100%); border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ap-cta h2 { margin-bottom: 10px; }
.ap-cta p { font-size: 18px; color: var(--ap-green-deep); }
.ap-cta__phone { font-size: 30px; font-weight: 900; color: var(--ap-green-deep); }
.ap-form { background: #fff; padding: 28px; border-radius: var(--ap-radius); box-shadow: var(--ap-shadow); }
.ap-form__note { font-size: 13px; color: var(--ap-muted); margin: 10px 0 0; }
.ap-notice { padding: 14px 18px; border-radius: var(--ap-radius-sm); margin-bottom: 14px; font-weight: 600; }
.ap-notice--ok { background: var(--ap-green-light); color: var(--ap-green-dark); }
.ap-notice--err { background: #fdecea; color: var(--ap-red); }

/* ============ Модальное окно ============ */
.ap-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,30,14,.6); }
.ap-modal.is-open { display: flex; }
.ap-modal__box { position: relative; background: #fff; border-radius: var(--ap-radius); width: 100%; max-width: 440px; padding: 34px 30px 28px; }
.ap-modal__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ap-muted); }
.ap-modal .ap-form { box-shadow: none; padding: 0; }

/* ============ Подвал ============ */
.ap-footer { background: var(--ap-green-deep); color: #b9d0b9; padding: 60px 0 0; margin-top: 0; font-size: 16px; }
.ap-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.ap-footer h4 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.ap-footer ul { list-style: none; margin: 0; padding: 0; }
.ap-footer li { margin-bottom: 9px; }
.ap-footer a { color: #e3efe0; }
.ap-footer a:hover { color: var(--ap-yellow); }
.ap-footer .ap-logo { color: #fff; margin-bottom: 14px; }
.ap-footer__phone { font-size: 24px; font-weight: 800; color: #fff !important; }
.ap-footer__bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Плавающая кнопка звонка (мобильные) */
.ap-float-call { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 62px; height: 62px; border-radius: 50%; background: var(--ap-green); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); align-items: center; justify-content: center; }
.ap-float-call svg { width: 28px; height: 28px; }

/* ============ Контент страниц ============ */
.ap-page { padding: 44px 0 72px; }
.ap-page__box { background: #fff; border-radius: var(--ap-radius); padding: 40px; box-shadow: var(--ap-shadow); }
.ap-breadcrumbs, .woocommerce-breadcrumb { font-size: 14px; color: var(--ap-muted); margin-bottom: 20px !important; }
.ap-breadcrumbs a, .woocommerce-breadcrumb a { color: var(--ap-green); }
.ap-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ap-post { background: #fff; border-radius: var(--ap-radius); overflow: hidden; box-shadow: var(--ap-shadow); }
.ap-post__body { padding: 22px; }
.ap-post__meta { font-size: 14px; color: var(--ap-muted); }
.ap-pagination { margin-top: 32px; display: flex; gap: 8px; justify-content: center; }
.ap-pagination .page-numbers { min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ap-radius-sm); background: #fff; border: 2px solid var(--ap-border); font-weight: 700; }
.ap-pagination .current { background: var(--ap-green); border-color: var(--ap-green); color: #fff; }
.ap-404 { text-align: center; padding: 90px 0; }
.ap-404 strong { font-size: 120px; font-weight: 900; color: var(--ap-green); line-height: 1; display: block; }

/* ============ WooCommerce: каталог ============ */
.woocommerce .woocommerce-products-header__title, .woocommerce-products-header h1 { margin-bottom: 10px; }
.woocommerce .woocommerce-result-count { color: var(--ap-muted); margin: 0 0 20px; }
.woocommerce .woocommerce-ordering select { min-height: 48px; padding: 0 14px; border: 2px solid var(--ap-border); border-radius: var(--ap-radius-sm); font-size: 16px; background: #fff; }
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0 0 32px !important; padding: 0; list-style: none;
}
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
  background: #fff; border-radius: var(--ap-radius); padding: 16px 16px 20px; box-shadow: var(--ap-shadow);
  display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--ap-shadow-hover); transform: translateY(-3px); }
.woocommerce ul.products li.product a img { border-radius: var(--ap-radius-sm); margin: 0 0 14px; aspect-ratio: 1; object-fit: contain; background: var(--ap-bg); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px !important; font-weight: 700; color: var(--ap-text); padding: 0 !important; margin-bottom: 8px; line-height: 1.35; }
.woocommerce ul.products li.product .price { color: var(--ap-green-deep) !important; font-size: 22px !important; font-weight: 900; margin: auto 0 12px !important; }
.woocommerce ul.products li.product .price del { color: var(--ap-muted); font-size: 16px; font-weight: 400; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--ap-red); }
.woocommerce ul.products li.product .button { width: 100%; margin: 0 !important; }
.woocommerce ul.products li.product .added_to_cart { display: block; text-align: center; margin-top: 8px; font-weight: 600; }
.woocommerce span.onsale { position: absolute; z-index: 2; min-width: 0; min-height: 0; line-height: 1; padding: 7px 12px; border-radius: 99px; background: var(--ap-red); font-weight: 800; font-size: 13px; top: 24px !important; left: 24px !important; right: auto !important; margin: 0 !important; }
.ap-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ap-stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.ap-stock--in { color: var(--ap-green); }
.ap-stock--out { color: var(--ap-muted); }
.ap-stock--order { color: var(--ap-yellow-dark); }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; justify-content: center; gap: 8px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: var(--ap-radius-sm); background: #fff; border: 2px solid var(--ap-border); font-weight: 700; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ap-green); border-color: var(--ap-green); color: #fff; }

/* Подкатегории в каталоге */
.ap-subcats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.ap-subcats a { padding: 10px 18px; border-radius: 99px; background: #fff; border: 2px solid var(--ap-border); font-weight: 600; color: var(--ap-text); }
.ap-subcats a:hover { border-color: var(--ap-green); color: var(--ap-green); }

/* ============ WooCommerce: карточка товара ============ */
.woocommerce div.product { background: #fff; border-radius: var(--ap-radius); padding: 32px; box-shadow: var(--ap-shadow); }
.woocommerce div.product .product_title { font-size: clamp(26px, 3vw, 36px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ap-green-deep) !important; font-size: 34px !important; font-weight: 900; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 20px 0 !important; }
.woocommerce div.product form.cart .button { min-height: 58px; font-size: 18px; flex: 1; min-width: 220px; }
.woocommerce .quantity .qty { width: 90px; min-height: 58px; border: 2px solid var(--ap-border); border-radius: var(--ap-radius-sm); font-size: 18px; text-align: center; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 20px !important; display: flex; gap: 8px; flex-wrap: wrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 2px solid var(--ap-border) !important; background: #fff !important; border-radius: var(--ap-radius-sm) !important; margin: 0 !important; padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 20px !important; font-weight: 700; color: var(--ap-text) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--ap-green) !important; border-color: var(--ap-green) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 12px 16px !important; border-color: var(--ap-border) !important; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: var(--ap-bg) !important; }
.ap-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.ap-trust__item { display: flex; gap: 10px; align-items: center; background: var(--ap-bg); padding: 12px 14px; border-radius: var(--ap-radius-sm); font-size: 15px; font-weight: 600; }
.ap-trust__item svg { width: 24px; height: 24px; color: var(--ap-green); flex-shrink: 0; }
.ap-consult { background: var(--ap-green-light); border-left: 5px solid var(--ap-green); padding: 16px 20px; border-radius: var(--ap-radius-sm); margin: 18px 0; }
.ap-consult strong { display: block; font-size: 17px; color: var(--ap-green-deep); }
.ap-consult a { font-size: 22px; font-weight: 800; }
.woocommerce .related > h2, .woocommerce .upsells > h2 { margin-top: 40px; }

/* ============ WooCommerce: корзина, оформление ============ */
.woocommerce-cart .ap-page__box, .woocommerce-checkout .ap-page__box { padding: 32px; }
.woocommerce table.shop_table { border: 2px solid var(--ap-border) !important; border-radius: var(--ap-radius) !important; overflow: hidden; border-collapse: separate !important; }
.woocommerce table.shop_table th { background: var(--ap-bg); font-weight: 700; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px 16px !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection--single {
  min-height: 52px; padding: 10px 16px; border: 2px solid var(--ap-border) !important; border-radius: var(--ap-radius-sm) !important; font-size: 17px;
}
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 30px !important; }
.woocommerce form .form-row label { font-weight: 700; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--ap-radius-sm); border-top-color: var(--ap-green) !important; background: #fff !important; box-shadow: var(--ap-shadow); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ap-green) !important; }
.woocommerce-error { border-top-color: var(--ap-red) !important; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 24px; }
.woocommerce #payment { background: var(--ap-bg) !important; border-radius: var(--ap-radius) !important; }

/* ============ Адаптив ============ */
@media (max-width: 1100px) {
  .ap-benefits__grid, .ap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-cats, .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-footer__grid { grid-template-columns: 1fr 1fr; }
  .ap-header__contact { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .ap-burger { display: block; order: 3; }
  .ap-header__main { flex-wrap: wrap; gap: 12px; }
  .ap-search { order: 5; max-width: none; flex-basis: 100%; }
  .ap-cart { margin-left: auto; }
  .ap-nav { display: none; }
  .ap-nav.is-open { display: block; }
  .ap-nav ul { flex-direction: column; }
  .ap-nav .sub-menu { position: static; display: flex; box-shadow: none; background: var(--ap-green-dark); border-radius: 0; }
  .ap-nav .sub-menu a { color: #fff; padding-left: 36px; }
  .ap-calc, .ap-cta { grid-template-columns: 1fr; padding: 30px 22px; }
  .ap-reviews, .ap-posts { grid-template-columns: 1fr; }
  .ap-cats, .woocommerce ul.products, .woocommerce-page ul.products, .woocommerce ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ap-section { padding: 52px 0; }
  .ap-hero .ap-container { padding-top: 56px; padding-bottom: 80px; }
  .ap-float-call { display: flex; }
  .ap-topbar__info span:nth-child(n+2) { display: none; }
  .woocommerce div.product { padding: 20px; }
  .ap-page__box { padding: 22px; }
  .admin-bar .ap-header { top: 0; }
}
@media (max-width: 560px) {
  .ap-benefits__grid, .ap-steps, .ap-footer__grid, .ap-trust { grid-template-columns: 1fr; }
  .ap-calc__row { grid-template-columns: 1fr; }
  .ap-calc__result { padding: 14px 8px; gap: 6px; }
  .ap-calc__result strong { font-size: 20px; }
  .ap-calc__form { padding: 22px 18px; }
  .ap-cart__label { display: none; }
  .ap-logo { font-size: 23px; }
  .ap-logo svg { width: 34px; height: 34px; }
  .ap-hero__stats { gap: 24px; }
  .ap-hero__buttons .ap-btn { width: 100%; }
  .ap-cat { padding: 16px 14px; }
  .ap-cat h3 { font-size: 16px; }
  .woocommerce ul.products li.product { padding: 12px 12px 16px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; }
  .woocommerce ul.products li.product .price { font-size: 18px !important; }
  .woocommerce ul.products li.product .button { font-size: 15px; padding: 10px; }
}


/* ============ Совместимость с Hello Elementor ============ */
/* reset.css Hello задаёт всем кнопкам рамку и малиновый hover — возвращаем стиль темы */
.ap-btn, .ap-header button, .ap-footer button, .ap-modal button, .ap-form button, .ap-calc button, .ap-consult button { white-space: normal; font-family: var(--ap-font); }
.ap-btn:focus { color: var(--ap-white); background: var(--ap-green-dark); border-color: var(--ap-green-dark); }
.ap-btn--yellow:focus { color: var(--ap-green-deep); background: var(--ap-yellow-dark); border-color: var(--ap-yellow-dark); }
.ap-btn--outline:focus { background: var(--ap-white); color: var(--ap-green-deep); border-color: var(--ap-white); }
.ap-btn--ghost:focus { background: var(--ap-green); color: var(--ap-white); }
.ap-header__callback, .ap-header__callback:hover, .ap-header__callback:focus { background: none; border: 0; border-bottom: 1px dashed currentColor; border-radius: 0; padding: 0; color: var(--ap-green); font-weight: 600; font-size: 14px; }
.ap-header__callback:hover { color: var(--ap-green-dark); }
.ap-burger:hover, .ap-burger:focus { background: #fff; border-color: var(--ap-green); padding: 0; }
.ap-modal__close, .ap-modal__close:hover, .ap-modal__close:focus { background: none; border: 0; padding: 0; color: var(--ap-muted); }
.ap-modal__close:hover { color: var(--ap-text); }
.ap-search button, .ap-search button:focus { border: 0; border-radius: 0 var(--ap-radius-sm) var(--ap-radius-sm) 0; background: var(--ap-green); color: #fff; padding: 0 20px; }
.ap-search button:hover { background: var(--ap-green-dark); }
.ap-search input[type="search"] { border-radius: var(--ap-radius-sm) 0 0 var(--ap-radius-sm); }
:focus-visible { outline: 3px solid var(--ap-yellow); outline-offset: 2px; }

/* Стандартные страницы Hello (записи, архив, поиск) в стиле магазина */
body:not([class*="elementor-page-"]) .site-main { padding-top: 40px; padding-bottom: 64px; }
.site-main .page-header .entry-title { color: var(--ap-green-deep); font-weight: 800; }
body:not([class*="elementor-page-"]) .site-main .page-content { background: #fff; border-radius: var(--ap-radius); padding: 32px; box-shadow: var(--ap-shadow); }

/* Виджеты Elementor: секции во всю ширину без лишних отступов */
.elementor-widget[class*="elementor-widget-agroparts-"] > .elementor-widget-container { padding: 0; margin: 0; }
.elementor-editor-active .ap-modal { display: none !important; }
