/* ==========================================================================
   АгроКомфорт: каталог, сторінка товару, кошик, оформлення, пошук
   ========================================================================== */

:root {
	--tile-cream: #fffbe3;
	--tile-navy: #04162b;
	--paper: #fff8de;
	--paper-2: #fff7e6;
	--green-btn: #98ff98;
	--green-text: #2f8f3a;
}

.ac-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Пошук ---------- */

.ac-searchbtn {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--cream);
	cursor: pointer;
}

.ac-cart--topbar {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: none;
	font-weight: 500;
	font-size: 14px;
}

.ac-searchpanel {
	padding-top: 12px;
}

.ac-searchpanel[hidden] {
	display: none;
}

.ac-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.ac-search__input {
	width: 100%;
	height: 48px;
	padding: 0 52px 0 20px;
	border: 2px solid #e7e0d2;
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	-webkit-appearance: none;
	appearance: none;
}

.ac-search__input:focus {
	outline: none;
	border-color: var(--navy);
}

.ac-search__btn {
	position: absolute;
	right: 6px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	cursor: pointer;
}

.ac-search__btn .ac-icon {
	width: 18px;
	height: 18px;
}

@media (min-width: 901px) {
	.ac-searchpanel {
		max-width: 520px;
		margin-left: auto;
	}
}

/* ---------- Каркас каталогу ---------- */

.ac-shop {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	padding-block: 12px 56px;
}

.ac-shop__main {
	min-width: 0;
}

.ac-shop__title {
	margin-bottom: 18px;
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 600;
}

/* Бічна панель */

.ac-side {
	background: var(--navy);
	color: #fff;
	border-radius: 20px;
	padding: 18px 20px 22px;
}

.ac-side__toggle {
	display: none;
}

.ac-side__search {
	margin-bottom: 14px;
}

.ac-side__search .ac-search__input {
	height: 42px;
	padding-left: 16px;
	font-size: 14px;
	border-color: transparent;
}

.ac-side__search .ac-search__btn {
	width: 32px;
	height: 32px;
}

.ac-side__list {
	display: flex;
	flex-direction: column;
}

.ac-side__parent {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 0 4px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.ac-side__parent .ac-icon {
	width: 14px;
	height: 14px;
}

.ac-side__sub a {
	display: block;
	padding: 8px 8px;
	margin-bottom: 1px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
	font-size: 14px;
	line-height: 1.3;
	border-radius: 0;
}

.ac-side__sub li:last-child a {
	border-bottom: 0;
}

.ac-side a.is-current {
	background: var(--cream);
	color: var(--navy);
	border-radius: 10px;
	border-bottom-color: transparent;
}

.ac-side__parent.is-current {
	padding-inline: 8px;
}

@media (hover: hover) {
	.ac-side a:not(.is-current):hover {
		color: var(--orange);
	}
}

/* ---------- Плитки категорій (головна каталогу) ---------- */

.ac-cats {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ac-cats__row {
	display: flex;
	gap: 14px;
}

.ac-cat {
	position: relative;
	display: block;
	flex: 0 0 calc((100% - 28px) * var(--w, 300) / 859);
	min-width: 0;
	aspect-ratio: var(--w, 300) / var(--h, 298);
	border-radius: var(--radius);
	overflow: hidden;
	isolation: isolate;
}

.ac-cat--cream {
	background: var(--tile-cream);
	color: var(--ink);
}

.ac-cat--navy {
	background: var(--tile-navy);
	color: #fff;
}

.ac-cat__text {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 16px 18px 18px;
	max-width: 100%;
}

.ac-cat__title {
	font-size: clamp(16px, 1.42vw, 20px);
	font-weight: 600;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.ac-cat__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	opacity: 0.8;
}

.ac-cat__img {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.ac-cat__img--photo {
	inset: auto 0 0 auto;
	width: 100%;
	height: 82%;
	object-fit: contain;
	object-position: right bottom;
}

@media (hover: hover) {
	.ac-cat:hover .ac-cat__img {
		transform: scale(1.03);
	}
}

/* ---------- Сітка товарів ---------- */

.ac-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ac-card-product {
	position: relative;
	display: flex;
	min-height: 340px;
	padding: 22px 24px;
	background: var(--paper);
	border-radius: var(--radius);
	overflow: hidden;
	isolation: isolate;
}

.ac-pc__text {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.ac-pc__title {
	max-width: 100%;
	font-size: clamp(18px, 1.55vw, 22px);
	font-weight: 500;
	line-height: 1.25;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow-wrap: anywhere;
}

.ac-stock {
	font-size: 14px;
	font-weight: 600;
}

.ac-stock--in {
	color: var(--green-text);
}

.ac-stock--out {
	color: #8a8f98;
}

.ac-pc__price {
	font-size: 17px;
	font-weight: 700;
}

.ac-pc__price del {
	opacity: 0.5;
	font-weight: 500;
	margin-right: 6px;
}

.ac-pc__price ins {
	text-decoration: none;
}

.ac-pc__add {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-size: 19px;
	font-weight: 600;
}

.ac-pc__plus {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #0c0c0f;
	color: #8dff9c;
}

.ac-pc__plus .ac-icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.4;
}

.ac-pc__add.loading {
	opacity: 0.6;
	pointer-events: none;
}

.ac-pc__add.added .ac-pc__add-label::after {
	content: " ✓";
}

.ac-pc__add + .added_to_cart {
	display: none;
}

.ac-pc__more {
	margin-top: 4px;
	font-size: 19px;
	padding: 10px 12px 10px 24px;
}

.ac-pc__more .ac-btn__dot {
	width: 28px;
	height: 28px;
}

.ac-pc__media {
	position: absolute;
	right: -2%;
	bottom: 0;
	z-index: 1;
	width: 52%;
	height: 66%;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
}

.ac-pc__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right bottom;
	mix-blend-mode: multiply;
}

/* Пагінація */

.woocommerce-pagination {
	margin-top: 28px;
}

.woocommerce-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--paper);
	font-weight: 600;
}

.woocommerce-pagination .page-numbers .current {
	background: var(--navy);
	color: #fff;
}

/* Порожній результат */

.ac-empty {
	padding: 48px 24px;
	text-align: center;
	background: var(--paper);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.ac-empty__title {
	font-size: 24px;
	font-weight: 600;
}

/* ---------- Сторінка товару ---------- */

.ac-crumbs {
	margin-bottom: 14px;
	padding: 6px 16px;
	background: var(--navy);
	color: #fff;
	border-radius: 8px;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.ac-crumbs a {
	color: #fff;
}

.ac-product {
	max-width: 940px;
}

.ac-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.ac-gallery__item {
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 5px 14px rgba(30, 20, 10, 0.16);
	overflow: hidden;
	aspect-ratio: 1 / 1.22;
}

.ac-gallery__item a {
	display: block;
	height: 100%;
}

.ac-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6%;
	mix-blend-mode: multiply;
}

.ac-product__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	margin-top: 22px;
}

.ac-product__titles {
	min-width: 0;
}

.ac-product__title {
	font-size: clamp(22px, 2.3vw, 32px);
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.ac-product__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin-top: 10px;
}

.ac-product__price {
	font-size: 22px;
	font-weight: 700;
}

.ac-product__price del {
	opacity: 0.5;
	margin-right: 6px;
	font-weight: 500;
}

.ac-product__price ins {
	text-decoration: none;
}

.ac-product__sku {
	font-size: 14px;
	color: var(--ink-soft);
}

.ac-product__short {
	margin-top: 10px;
	font-size: 17px;
	line-height: 1.5;
	max-height: 7.5em;
	overflow: hidden;
}

.ac-buy {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.ac-buy__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 12px 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--green-btn);
	color: #0e3a14;
	font: inherit;
	font-size: 22px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.18s ease, transform 0.12s ease;
}

.ac-buy__btn:active {
	transform: scale(0.97);
}

.ac-buy__btn .ac-pc__plus {
	width: 34px;
	height: 34px;
}

@media (hover: hover) {
	.ac-buy__btn:hover {
		background: #7df57d;
	}
}

/* Лічильник кількості */

.ac-qty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ac-qty button {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 2px solid #2a2a2a;
	border-radius: 50%;
	background: transparent;
	color: #2a2a2a;
	cursor: pointer;
}

.ac-qty button .ac-icon {
	width: 18px;
	height: 18px;
}

.ac-qty input {
	width: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.ac-qty input::-webkit-outer-spin-button,
.ac-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Опис: розділи в колонках */

.ac-desc__intro {
	margin-top: 24px;
	font-size: 18px;
	line-height: 1.55;
}

.ac-desc {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px 0;
	margin-top: 26px;
}

.ac-desc[data-cols="2"] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ac-desc[data-cols="2"] .ac-desc__col:nth-child(odd) {
	padding-right: 24px;
	border-right: 2px solid #1b1b1b;
}

.ac-desc[data-cols="2"] .ac-desc__col:nth-child(even) {
	padding-left: 24px;
}

.ac-desc__pill {
	display: inline-block;
	margin-bottom: 18px;
	padding: 8px 22px;
	border: 3px solid var(--navy);
	border-radius: 20px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.ac-desc__body {
	font-size: 18px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.ac-desc__body p,
.ac-desc__body li {
	margin: 0 0 22px;
}

.ac-desc__body ul,
.ac-desc__body ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ac-desc__body strong,
.ac-desc__intro strong {
	font-weight: 600;
}

.ac-desc__body img,
.ac-desc__intro img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.ac-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.ac-badges li {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 18px;
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font-size: 18px;
	font-weight: 500;
}

.ac-badges__tick {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--cream);
	color: var(--navy);
}

.ac-badges__tick .ac-icon {
	width: 18px;
	height: 18px;
	stroke-width: 2.4;
}

.ac-product__contact {
	margin-top: 28px;
	font-size: 18px;
	line-height: 1.55;
}

.ac-product__contact p + p {
	margin-top: 18px;
}

/* ---------- Картка-«вікно»: кошик, оформлення, дякуємо ---------- */

.ac-wcwrap {
	padding-block: 24px 64px;
}

.ac-card {
	max-width: 800px;
	margin-inline: auto;
	background: var(--paper-2);
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(10, 26, 51, 0.16);
	overflow: hidden;
}

.ac-card__head {
	display: flex;
	justify-content: center;
	height: 112px;
}

.ac-card__head span {
	display: grid;
	place-items: end center;
	width: 76%;
	height: 100%;
	padding-bottom: 16px;
	background: var(--orange);
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
	font-size: 30px;
	font-weight: 700;
	color: var(--navy);
}

.ac-card__body {
	padding: 36px 64px 56px;
}

.ac-card__body--center {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding-block: 56px 64px;
}

.ac-card__title {
	margin-bottom: 20px;
	text-align: center;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 600;
	line-height: 1.3;
}

.ac-card__body--center .ac-card__title {
	margin: 0;
}

.ac-card__title--ok {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.ac-ok {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #43b343;
	color: #fff;
}

.ac-ok .ac-icon {
	width: 22px;
	height: 22px;
	stroke-width: 3;
}

.ac-card__text {
	max-width: 520px;
	font-size: 19px;
	line-height: 1.5;
}

.ac-card__text--left {
	max-width: none;
	margin-bottom: 20px;
	font-size: 16px;
	color: var(--ink-soft);
}

.ac-card__note {
	font-size: 16px;
	color: var(--ink-soft);
}

.ac-card__sub {
	margin: 24px 0 10px;
	font-size: 20px;
	font-weight: 600;
}

.ac-card__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 8px;
}

.ac-card__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	margin-top: 8px;
	font-size: 16px;
}

.ac-card__links a,
.ac-card__back a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ac-card__back {
	margin-top: 8px;
	text-align: right;
	font-size: 16px;
}

.ac-btn--block {
	width: 100%;
	justify-content: center;
	margin-top: 22px;
	font-size: 19px;
	padding-block: 11px;
}

/* Список у кошику */

.ac-cart-list {
	display: flex;
	flex-direction: column;
}

.ac-cart-item {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 22px;
	padding-block: 18px;
	border-bottom: 2px solid #2b2b2b;
}

.ac-cart-item:last-child {
	border-bottom: 0;
}

.ac-cart-item__img {
	display: block;
	align-self: start;
	aspect-ratio: 1 / 1;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 12px rgba(30, 20, 10, 0.2);
	overflow: hidden;
}

.ac-cart-item__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6%;
	mix-blend-mode: multiply;
}

.ac-cart-item__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.ac-cart-item__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.ac-cart-item__name {
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ac-cart-item__remove {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: #6b6b6b;
}

.ac-cart-item__remove .ac-icon {
	width: 18px;
	height: 18px;
}

@media (hover: hover) {
	.ac-cart-item__remove:hover {
		background: rgba(0, 0, 0, 0.08);
		color: #000;
	}
}

.ac-cart-item__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.ac-cart-item__sum {
	font-size: 20px;
	font-weight: 700;
	white-space: nowrap;
}

.ac-totals {
	margin: 18px 0 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ac-totals > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 17px;
}

.ac-totals dt,
.ac-totals dd {
	margin: 0;
}

.ac-totals__sum {
	font-weight: 700;
}

/* Форма оформлення */

.woocommerce-billing-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
	display: grid;
	gap: 14px;
}

.woocommerce form .form-row {
	margin: 0;
	padding: 0;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.woocommerce form .form-row .required {
	color: #d4421c;
	text-decoration: none;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #2b2b2b;
	border-radius: 16px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	-webkit-appearance: none;
	appearance: none;
}

.woocommerce form .form-row textarea {
	min-height: 96px;
	resize: vertical;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	outline: none;
	border-color: var(--orange-deep);
}

.woocommerce form .form-row.woocommerce-invalid input.input-text {
	border-color: #d4421c;
}

.ac-review {
	padding: 14px 18px;
	background: #fff;
	border-radius: 16px;
}

.ac-review__list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 6px;
	font-size: 16px;
}

.ac-review__qty {
	color: var(--ink-soft);
}

.ac-review__sum {
	font-weight: 600;
	white-space: nowrap;
}

.ac-review__total {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	padding-top: 10px;
	border-top: 2px solid #2b2b2b;
	font-size: 19px;
}

#payment .place-order {
	margin-top: 18px;
}

#payment #place_order {
	width: 100%;
	padding: 14px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--orange);
	color: #3a1d0b;
	font: inherit;
	font-size: 19px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.12s ease;
}

#payment #place_order:active {
	transform: scale(0.98);
}

@media (hover: hover) {
	#payment #place_order:hover {
		background: var(--orange-deep);
	}
}

/* Повідомлення WooCommerce */

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	margin: 0 0 18px;
	padding: 12px 18px;
	border-radius: 14px;
	background: #fff;
	border: 2px solid var(--orange);
	font-size: 15px;
	line-height: 1.45;
}

.woocommerce-error {
	border-color: #d4421c;
}

.woocommerce-error li {
	margin: 2px 0;
}

.woocommerce-message .button {
	margin-left: 8px;
	text-decoration: underline;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
	.ac-products {
		grid-template-columns: minmax(0, 1fr);
	}

	.ac-card-product {
		min-height: 300px;
	}
}

@media (max-width: 900px) {
	.ac-shop {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding-top: 8px;
	}

	.ac-side {
		padding: 0;
		border-radius: 16px;
	}

	.ac-side__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 14px 18px;
		border: 0;
		background: transparent;
		color: #fff;
		font: inherit;
		font-size: 16px;
		font-weight: 600;
		cursor: pointer;
	}

	.ac-side__toggle[aria-expanded="true"] .ac-icon {
		transform: rotate(180deg);
	}

	.ac-side__panel {
		display: none;
		padding: 0 18px 18px;
	}

	.ac-side__panel.is-open {
		display: block;
	}

	.ac-cats {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ac-cats__row {
		display: contents;
	}

	/* Готові плитки: ті самі пропорції, що в макеті. Широкі плитки займають весь рядок, вузькі йдуть парами */
	.ac-cats {
		grid-auto-flow: dense;
	}

	.ac-cat {
		flex: none;
		display: flex;
		flex-direction: column;
		aspect-ratio: 227 / 298;
	}

	.ac-cat--wide {
		grid-column: span 2;
		aspect-ratio: 391 / 298;
	}

	.ac-cat__text {
		flex: none;
		padding: 14px 16px 6px;
	}

	.ac-cat__title {
		font-size: 15px;
		overflow-wrap: break-word;
	}

	.ac-cat__img {
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: right bottom;
	}

	/* Фото категорії, додане власницею: текст зверху, фото займає лише залишок плитки */
	.ac-cat__img--photo {
		position: static;
		inset: auto;
		flex: 1 1 0;
		min-height: 0;
		height: auto;
		object-fit: contain;
		object-position: center bottom;
	}

	.ac-cat__more {
		font-size: 13px;
	}

	/* Лише на телефоні в плитці каталогу лишається стрілка; текст доступний для читачів з екрана */
	.ac-cat .ac-cat__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.ac-gallery {
		display: flex;
		overflow-x: auto;
		gap: 12px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		padding-bottom: 6px;
	}

	.ac-gallery::-webkit-scrollbar {
		display: none;
	}

	.ac-gallery .ac-gallery__item {
		flex: 0 0 72%;
		scroll-snap-align: start;
	}

	.ac-gallery[data-count="1"] .ac-gallery__item {
		flex-basis: 100%;
	}

	.ac-product__head {
		flex-direction: column;
		gap: 16px;
	}

	.ac-buy {
		width: 100%;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.ac-buy__btn {
		font-size: 19px;
	}

	.ac-desc[data-cols="2"] {
		grid-template-columns: minmax(0, 1fr);
	}

	.ac-desc[data-cols="2"] .ac-desc__col:nth-child(odd),
	.ac-desc[data-cols="2"] .ac-desc__col:nth-child(even) {
		padding: 0;
		border: 0;
	}

	.ac-desc__body p,
	.ac-desc__body li {
		margin-bottom: 16px;
	}

	.ac-badges li {
		font-size: 15px;
	}

	.ac-card__head {
		height: 84px;
	}

	.ac-card__head span {
		font-size: 24px;
		padding-bottom: 12px;
	}

	.ac-card__body {
		padding: 24px 18px 32px;
	}

	.ac-card__body--center {
		padding-block: 36px 40px;
	}

	.ac-cart-item {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 14px;
	}

	.ac-cart-item__name {
		font-size: 16px;
	}

	.ac-cart-item__sum {
		font-size: 17px;
	}
}

@media (max-width: 560px) {
	.ac-card-product {
		min-height: 280px;
		padding: 18px;
	}

	.ac-pc__more {
		font-size: 16px;
	}

	.ac-product__contact,
	.ac-desc__body,
	.ac-desc__intro {
		font-size: 16px;
	}

	.ac-card__actions .ac-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Товар без фото: не показуємо сіру заглушку WooCommerce */
.ac-pc__media img.woocommerce-placeholder {
	display: none;
}

@media (max-width: 900px) {
	.ac-cart--topbar {
		display: none;
	}
}

/* Підкатегорії в один рядок (МТЗ, ЮМЗ, Т-25, Т-40) */
.ac-side__sub.is-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
}

.ac-side__sub.is-inline a,
.ac-side__sub.is-inline li:last-child a {
	display: inline-block;
	padding: 8px 2px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

/* ---------- Кнопка «Передзвонимо за 30 секунд» ---------- */

.ac-cb {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 60;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.ac-cb__fab {
	position: relative;
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--amber);
	color: #fff;
	box-shadow: 0 8px 22px rgba(240, 119, 61, 0.45);
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.18s ease;
}

.ac-cb__fab .ac-icon {
	width: 28px;
	height: 28px;
}

.ac-cb__fab::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--amber);
	animation: ac-cb-ring 2.4s ease-out infinite;
}

@keyframes ac-cb-ring {
	0% {
		transform: scale(1);
		opacity: 0.7;
	}

	70%,
	100% {
		transform: scale(1.55);
		opacity: 0;
	}
}

.ac-cb__fab:active {
	transform: scale(0.94);
}

@media (hover: hover) {
	.ac-cb__fab:hover {
		background: #e68f0e;
	}
}

.ac-cb__panel {
	position: relative;
	width: min(340px, calc(100vw - 32px));
	padding: 26px 22px 22px;
	background: var(--paper-2);
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(10, 26, 51, 0.28);
}

.ac-cb__panel[hidden] {
	display: none;
}

.ac-cb__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #555;
	cursor: pointer;
}

.ac-cb__title {
	padding-right: 30px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
}

.ac-cb__sub {
	margin-top: 6px;
	font-size: 14px;
	color: var(--ink-soft);
}

.ac-cb__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.ac-cb__input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 2px solid #2b2b2b;
	border-radius: 14px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	-webkit-appearance: none;
	appearance: none;
}

.ac-cb__input:focus {
	outline: none;
	border-color: var(--orange-deep);
}

.ac-cb__submit {
	justify-content: center;
	font-size: 17px;
}

.ac-cb__submit[disabled] {
	opacity: 0.6;
	pointer-events: none;
}

.ac-cb__msg {
	min-height: 1.3em;
	font-size: 14px;
	line-height: 1.4;
}

.ac-cb__msg.is-error {
	color: #c4381a;
}

.ac-cb__msg.is-ok {
	color: var(--green-text);
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.ac-cb__fab::before {
		animation: none;
		opacity: 0;
	}
}

/* ---------- Повідомлення WooCommerce («товар видалено. Скасувати?», помилки форми) ---------- */

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 12px 18px !important;
	border: 2px solid var(--orange) !important;
	border-radius: 14px;
	background: #fff !important;
	color: var(--ink) !important;
	list-style: none;
	text-align: left;
}

.woocommerce-error {
	border-color: #d4421c !important;
}

.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus,
.woocommerce-message:focus-visible,
.woocommerce-error:focus-visible {
	outline: none;
}

.woocommerce-message a,
.woocommerce-info a {
	margin-left: 6px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce-message a.button,
.woocommerce-message .restore-item {
	float: none;
	background: none;
	padding: 0;
}

/* ---------- Підказки пошуку ---------- */

.ac-search {
	position: relative;
}

.ac-suggest {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 80;
	max-height: min(80vh, 540px);
	overflow-y: auto;
	padding: 6px;
	background: #fff;
	color: var(--ink);
	border-radius: 18px;
	box-shadow: 0 16px 40px rgba(10, 26, 51, 0.24);
}

.ac-suggest[hidden] {
	display: none;
}

.ac-side__search .ac-suggest {
	min-width: min(320px, calc(100vw - 48px));
}

.ac-suggest__item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
}

.ac-suggest__item.is-active,
.ac-suggest__item:hover {
	background: var(--cream);
}

.ac-suggest__img {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: var(--paper);
	overflow: hidden;
}

.ac-suggest__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.ac-suggest__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.ac-suggest__title mark {
	background: transparent;
	color: var(--orange-deep);
	font-weight: 700;
}

.ac-suggest__price {
	font-weight: 700;
	white-space: nowrap;
}

.ac-suggest__all,
.ac-suggest__empty {
	display: block;
	padding: 10px 12px;
	font-size: 14px;
	text-align: center;
	color: var(--ink-soft);
}

.ac-suggest__all {
	margin-top: 4px;
	border-top: 1px solid var(--line);
	font-weight: 600;
	color: var(--navy);
}

.ac-suggest__all.is-more {
	margin-top: 6px;
	padding: 12px 14px;
	border: 0;
	border-radius: 12px;
	background: var(--orange);
	color: #3a1d0b;
}

@media (hover: hover) {
	.ac-suggest__all.is-more:hover {
		background: var(--orange-deep);
	}
}

/* Кнопка «Показати всі» завжди видна внизу списку */
.ac-suggest__all {
	position: sticky;
	bottom: -6px;
	background: #fff;
}

.ac-suggest__all.is-more {
	background: var(--orange);
}

/* ---------- Інформаційні сторінки: доставка, FAQ, контакти, політика ---------- */

.ac-pill {
	display: block;
	margin: 0 0 14px;
	padding: 10px 16px;
	background: #e6e6e6;
	border-radius: 14px;
	font-size: clamp(19px, 1.75vw, 25px);
	font-weight: 600;
	line-height: 1.25;
}

.ac-info {
	padding-top: 8px;
}

.ac-info .ac-h2,
.ac-faq .ac-h2 {
	font-size: clamp(22px, 2.1vw, 30px);
	font-weight: 600;
	margin-bottom: 14px;
}

.ac-info__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px 32px;
	padding-block: 14px 8px;
	border-top: 1px solid #3a3a3a;
}

.ac-info__row--first {
	border-top: 0;
	padding-top: 0;
	padding-bottom: 6px;
}

.ac-info__row--full {
	grid-template-columns: minmax(0, 1fr);
	padding-top: 6px;
}

.ac-info__cell {
	min-width: 0;
}

.ac-info__cell .ac-about__text + .ac-about__text {
	margin-top: 22px;
}

.ac-about__photo--wide img {
	aspect-ratio: 655 / 210;
}

.ac-faq {
	padding-block: 14px 24px;
	border-top: 1px solid #3a3a3a;
	margin-top: 8px;
}

.ac-faq__item {
	margin-bottom: 12px;
}

.ac-faq__item summary {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	max-width: 100%;
	padding: 8px 10px 8px 16px;
	background: #e6e6e6;
	border-radius: 16px;
	font-size: clamp(17px, 1.65vw, 24px);
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
}

.ac-faq__item summary::-webkit-details-marker {
	display: none;
}

.ac-faq__chev {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	transition: transform 0.2s ease;
}

.ac-faq__chev .ac-icon {
	width: 20px;
	height: 20px;
}

.ac-faq__item[open] .ac-faq__chev {
	transform: rotate(180deg);
}

.ac-faq__a {
	padding: 14px 4px 6px;
	font-size: clamp(17px, 1.7vw, 24px);
	line-height: 1.45;
}

.ac-faq__a strong {
	font-weight: 600;
}

.ac-faq__a a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ac-policy-link {
	margin-top: 22px;
	font-size: clamp(17px, 1.7vw, 24px);
	font-weight: 600;
	text-transform: uppercase;
}

.ac-policy-link a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Контакти */

.ac-contacts {
	padding-block: 18px 48px;
}

.ac-contacts__title {
	margin-bottom: 18px;
	font-size: clamp(26px, 2.5vw, 36px);
	font-weight: 600;
}

.ac-contacts__row {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
	gap: 8px 24px;
	padding-block: 18px;
	border-bottom: 1px solid #1b1b1b;
	font-size: clamp(18px, 1.9vw, 28px);
	line-height: 1.4;
}

.ac-contacts__row dt {
	font-weight: 600;
}

.ac-contacts__row dd {
	margin: 0;
	font-weight: 400;
	overflow-wrap: anywhere;
}

.ac-contacts__row a {
	text-decoration: underline;
	text-decoration-color: rgba(0, 0, 0, 0.3);
	text-underline-offset: 4px;
}

@media (hover: hover) {
	.ac-contacts__row a:hover {
		text-decoration-color: var(--orange-deep);
	}
}

/* Політика конфіденційності */

.ac-legal {
	max-width: 1000px;
	padding-block: 18px 56px;
	font-size: clamp(16px, 1.45vw, 20px);
	line-height: 1.75;
}

.ac-legal__title {
	margin-bottom: 20px;
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: 600;
	text-transform: uppercase;
}

.ac-legal h2 {
	margin: 28px 0 6px;
	font-size: inherit;
	font-weight: 700;
	font-style: italic;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ac-legal p {
	margin: 0 0 14px;
}

.ac-legal ul {
	margin: 0 0 14px;
	padding-left: 1.4em;
	list-style: disc;
}

.ac-legal li {
	margin-bottom: 4px;
}

/* Згода під формами */

.ac-consent,
.ac-cb__consent {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ink-soft);
}

.ac-consent a,
.ac-cb__consent a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ac-footer__copy a {
	margin-left: 14px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 900px) {
	.ac-info__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.ac-contacts__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
		padding-block: 14px;
	}

	.ac-faq__item summary {
		display: flex;
		justify-content: space-between;
	}
}

/* ---------- Банер згоди на cookie ---------- */

.ac-consent-bar {
	position: fixed;
	left: max(16px, env(safe-area-inset-left));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 70;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: min(460px, calc(100vw - 32px));
	padding: 18px 20px;
	background: #fff;
	color: var(--ink);
	border-radius: 20px;
	box-shadow: 0 16px 44px rgba(10, 26, 51, 0.28);
}

.ac-consent-bar[hidden] {
	display: none;
}

.ac-consent-bar__text {
	font-size: 14px;
	line-height: 1.5;
}

.ac-consent-bar__text a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ac-consent-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ac-consent-bar__accept,
.ac-consent-bar__necessary {
	padding: 10px 18px;
	font-size: 15px;
	line-height: 1.2;
}

.ac-consent-bar__necessary {
	background: transparent;
	border-color: #2b2b2b;
	color: var(--ink);
}

@media (hover: hover) {
	.ac-consent-bar__necessary:hover {
		background: var(--cream);
	}
}

@media (max-width: 700px) {
	.ac-consent-bar {
		right: 16px;
		width: auto;
	}

	/* Кнопка зворотного дзвінка піднімається над банером */
	body.has-consent-bar .ac-cb {
		bottom: calc(var(--ac-bar-h, 150px) + 32px);
	}
}
