/*
Theme Name: Art Box
Theme URI: https://artboxdesign.eu
Author: PHENGOS
Author URI: https://phengos.bg
Description: Тема за Art Box Design, изградена изцяло с блокове (Gutenberg). Дъщерна тема на Twenty Twenty-Five — всички секции, хедърът и футърът се редактират от Външен вид → Редактор.
Template: twentytwentyfive
Version: 0.1.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: artbox
*/

/* ------------------------------------------------------------------
   Тук е само това, което редакторът не може да направи сам:
   стъклото на менюто, залепването му горе и няколко детайла.
   Цветове, шрифт и размери са в theme.json (Външен вид → Редактор → Стилове).
   ------------------------------------------------------------------ */

:root {
	--ab-header-h: 80px;
}

/* Без празно място между хедъра и съдържанието */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part + * {
	margin-block-start: 0;
}

/* Без черна рамка при клик с мишката. При навигация с клавиатура —
   мека рамка в цвета на сайта (нужна е за достъпност). */
body *:focus:not(:focus-visible) {
	outline: none !important;
}

body :is(a, button, summary, [role="button"], [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1) !important;
	outline-offset: 3px;
}

/* ---------- Хедър: кафяво стъкло, залепен горе на всички страници ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.ab-header {
	position: relative;
	min-height: var(--ab-header-h);
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

/* Стъклото е на отделен слой, за да не „затваря“ падащото и мобилното меню в лентата */
.ab-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: rgba(133, 114, 88, 0.8);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
}

.ab-header .ab-logo,
.ab-header .ab-logo a,
.ab-header .ab-logo img {
	display: block;
	margin: 0;
	line-height: 0;
}

.ab-header .wp-block-navigation a,
.ab-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.ab-header .wp-block-navigation a:hover {
	opacity: 0.8;
}

/* Кръгли бутони за търсене и количка — еднакъв цвят */
.ab-header .ab-actions .wp-block-search__button,
.ab-header .ab-actions .wc-block-mini-cart__button {
	background: rgba(255, 255, 255, 0.16) !important;
	color: var(--wp--preset--color--white) !important;
	border: 0 !important;
	border-radius: 100px !important;
	min-width: 44px;
	height: 44px;
	padding: 0 14px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ab-header .ab-actions .wp-block-search__button:hover,
.ab-header .ab-actions .wc-block-mini-cart__button:hover {
	background: rgba(255, 255, 255, 0.28) !important;
}

.ab-header .ab-actions .wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper {
	background: transparent;
	border: 0;
}

.ab-actions .wp-block-search__button svg,
.ab-actions .wc-block-mini-cart__icon {
	fill: currentColor;
	color: var(--wp--preset--color--white);
}

.ab-actions .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
}

.ab-header .wp-block-navigation__responsive-container-open,
.ab-header .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--white);
}

/* Редовете с телефони и работно време са само за мобилното меню */
.ab-header .wp-block-navigation__responsive-container:not(.is-menu-open) .ab-mobile-only {
	display: none !important;
}

@media (max-width: 781px) {
	:root {
		--ab-header-h: 69px;
	}

	.ab-header .ab-logo img {
		width: 44px !important;
		height: 44px !important;
	}
}

/* ==================================================================
   МЕНЮ
   Съдържанието (връзки, снимки, текстове) се редактира от
   Външен вид → Редактор → Части → Хедър → блок „Навигация“.
   Тук е само подредбата: голям панел при „Осветителни тела“,
   малко падащо меню при „Магнитно-релсово“ и мобилното меню.
   ================================================================== */

/* ---------- Компютър: голям панел със снимки ---------- */
@media (min-width: 1200px) {
	/* Панелът се мери спрямо цялата лента, а не спрямо думата */
	.ab-header .ab-nav,
	.ab-header .ab-nav .wp-block-navigation__responsive-container,
	.ab-header .ab-nav .wp-block-navigation__responsive-close,
	.ab-header .ab-nav .wp-block-navigation__responsive-dialog,
	.ab-header .ab-nav .wp-block-navigation__responsive-container-content,
	.ab-header .ab-nav .wp-block-navigation__container,
	.ab-header .ab-nav .wp-block-navigation-item.ab-mega,
	.ab-header .ab-nav .wp-block-navigation-item.ab-drop {
		position: static;
	}

	.ab-header .ab-nav .ab-mega > .wp-block-navigation__submenu-container,
	.ab-header .ab-nav .ab-drop > .wp-block-navigation__submenu-container {
		background: rgba(245, 240, 234, 0.97);
		-webkit-backdrop-filter: blur(24px) saturate(130%);
		backdrop-filter: blur(24px) saturate(130%);
		border: 0;
		box-shadow: 0 32px 60px -28px rgba(31, 28, 25, 0.35);
		color: var(--wp--preset--color--contrast);
	}

	.ab-header .ab-nav .ab-mega > .wp-block-navigation__submenu-container {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr)) 360px;
		grid-template-rows: repeat(4, auto) auto 1fr;
		gap: 12px;
		padding: 40px max(clamp(16px, 4vw, 56px), calc((100% - 1328px) / 2)) 48px;
		border-radius: 0 0 28px 28px;
	}

	.ab-header .ab-nav .ab-drop > .wp-block-navigation__submenu-container {
		top: 100%;
		left: auto;
		margin-left: -14px;
		min-width: 300px;
		gap: 8px;
		padding: 14px;
		border-radius: 0 0 22px 22px;
	}

	/* Невидим „мост“, за да не се затваря менюто, докато мишката слиза към него */
	.ab-header .ab-nav .ab-mega > .wp-block-navigation__submenu-container::before,
	.ab-header .ab-nav .ab-drop > .wp-block-navigation__submenu-container::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: calc(var(--ab-header-h) / 2 - 6px);
	}

	/* Редовете в панела нямат собствен фон — фонът е само на чиповете */
	.ab-header .ab-nav :is(.ab-mega, .ab-drop) .wp-block-navigation-item {
		background: none;
	}

	/* Чип със снимка */
	.ab-header .ab-nav :is(.ab-mega, .ab-drop) .wp-block-navigation-item .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		width: 100%;
		padding: 6px 12px 6px 6px;
		border-radius: 14px;
		background: rgba(234, 226, 215, 0.7);
		color: var(--wp--preset--color--contrast);
		font-size: 14px;
		line-height: 1.3;
		opacity: 1;
		transition: background-color 0.2s ease;
	}

	.ab-header .ab-nav :is(.ab-mega, .ab-drop) .wp-block-navigation-item .wp-block-navigation-item__content:hover {
		background: var(--wp--preset--color--accent-2);
		opacity: 1;
	}

	.ab-header .ab-nav :is(.ab-mega, .ab-drop) .wp-block-navigation-item__label {
		display: flex;
		align-items: center;
		gap: 14px;
	}

	.ab-header .ab-nav :is(.ab-mega, .ab-drop) .wp-block-navigation-item__label img {
		flex: none;
		width: 40px !important;
		height: 40px;
		object-fit: cover;
		border-radius: 9px;
		background: var(--wp--preset--color--white);
	}

	.ab-header .ab-nav .ab-drop .wp-block-navigation-item__label img {
		width: 32px !important;
		height: 32px;
		border-radius: 8px;
	}

	/* „Всички … →“ */
	.ab-header .ab-nav .ab-mega .ab-mm-all {
		grid-column: 1 / 4;
		grid-row: 5;
	}

	.ab-header .ab-nav :is(.ab-mega, .ab-drop) .ab-mm-all .wp-block-navigation-item__content,
	.ab-header .ab-nav :is(.ab-mega, .ab-drop) .ab-mm-all .wp-block-navigation-item__content:hover {
		width: auto;
		padding: 14px 6px 4px;
		background: none;
		font-weight: 500;
	}

	.ab-header .ab-nav :is(.ab-mega, .ab-drop) .ab-mm-all .wp-block-navigation-item__content:hover {
		color: var(--wp--preset--color--accent-3);
	}

	/* Карта на шоурума вдясно */
	.ab-header .ab-nav .ab-mega .ab-mm-card {
		grid-column: 4;
		grid-row: 1 / -1;
		align-self: start;
		margin-left: 20px;
	}

	.ab-header .ab-nav .ab-mega .ab-mm-card .wp-block-navigation-item__content,
	.ab-header .ab-nav .ab-mega .ab-mm-card .wp-block-navigation-item__content:hover {
		display: block;
		padding: 12px 12px 24px;
		border-radius: 24px;
		background: var(--wp--preset--color--accent-2);
	}

	.ab-header .ab-nav .ab-mega .ab-mm-card .wp-block-navigation-item__label {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		padding: 0 10px;
		font-size: 18px;
	}

	.ab-header .ab-nav .ab-mega .ab-mm-card .wp-block-navigation-item__label img {
		width: calc(100% + 20px) !important;
		height: 220px;
		margin: 0 -10px;
		border-radius: 18px;
	}

	.ab-header .ab-nav .ab-mega .ab-mm-card .wp-block-navigation-item__description {
		display: block;
		margin-top: 8px;
		padding: 0 10px;
		font-size: 13px;
		line-height: 1.6;
		color: var(--wp--preset--color--accent-4);
	}
}

/* ---------- Таблет и телефон: бутон „меню“ ---------- */
@media (max-width: 1199px) {
	.ab-header .ab-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	/* Бутонът за менюто — в кръгче като търсенето и количката, с надпис „меню“ */
	.ab-header .ab-nav .wp-block-navigation__responsive-container-open {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		width: 44px;
		height: 44px;
		padding: 0;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.16);
		color: var(--wp--preset--color--white);
	}

	.ab-header .ab-nav .wp-block-navigation__responsive-container-open:hover {
		background: rgba(255, 255, 255, 0.28);
	}

	.ab-header .ab-nav .wp-block-navigation__responsive-container-open svg {
		width: 22px;
		height: 22px;
		margin: -2px 0 -3px;
	}

	.ab-header .ab-nav .wp-block-navigation__responsive-container-open::after {
		content: "меню";
		font-size: 10px;
		font-weight: 500;
		line-height: 1;
		letter-spacing: 0.03em;
	}

	.ab-header .ab-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	/* Бутон меню вляво, логото в средата, търсене и количка вдясно */
	.ab-header .ab-nav {
		order: -1;
		flex: 1 1 0;
		justify-content: flex-start;
	}

	.ab-header .ab-actions {
		flex: 1 1 0;
		justify-content: flex-end;
	}
}

/* ---------- Отвореното мобилно меню ---------- */
.ab-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: stretch;
	--navigation-layout-justify: flex-start;
	padding: 0 !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}

/* Кафявата лента горе с логото и бутона за затваряне */
.ab-header .is-menu-open .wp-block-navigation__responsive-dialog {
	position: relative;
	min-height: 100%;
	padding: calc(var(--ab-header-h) + 16px) 16px 32px;
	background: linear-gradient(rgb(133, 114, 88), rgb(133, 114, 88)) top / 100% var(--ab-header-h) no-repeat;
}

.ab-header .is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	position: absolute;
	top: calc((var(--ab-header-h) - 44px) / 2);
	left: 50%;
	width: 44px;
	height: 44px;
	transform: translateX(-50%);
	background: url("/wp-content/uploads/2026/11/art-box-design-logo-white.png") center / contain no-repeat;
}

.ab-header .is-menu-open .wp-block-navigation__responsive-container-close {
	top: calc((var(--ab-header-h) - 24px) / 2);
	left: clamp(16px, 4vw, 56px);
	right: auto;
	color: var(--wp--preset--color--white);
}

.ab-header .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 0 !important;
	max-width: 560px;
	margin: 0 auto;
}

.ab-header .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
}

.ab-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(.has-child) {
	align-items: stretch;
}

.ab-header .is-menu-open .wp-block-navigation-item,
.ab-header .is-menu-open .wp-block-navigation-item__content {
	box-sizing: border-box;
}

/* Рамката при фокус остава само за клавиатура, не и при докосване */
.ab-header .is-menu-open a:focus:not(:focus-visible) {
	outline: none;
}

/* Основните връзки — бяла карта с линии и стрелки */
.ab-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item.has-child {
	display: contents;
}

.ab-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(.ab-mobile-only) > .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 17px 20px;
	background:
		linear-gradient(var(--wp--preset--color--accent-6), var(--wp--preset--color--accent-6)) center bottom / calc(100% - 40px) 1px no-repeat,
		var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
	font-size: 19px;
	line-height: 1.3;
}

.ab-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(.ab-mobile-only) > .wp-block-navigation-item__content::after {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	margin-left: auto;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.55;
}

.ab-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:first-child > .wp-block-navigation-item__content {
	padding-top: 20px;
	border-radius: 24px 24px 0 0;
}

.ab-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(.ab-mobile-only):has(+ .ab-mobile-only) > .wp-block-navigation-item__content {
	padding-bottom: 20px;
	border-radius: 0 0 24px 24px;
	background: var(--wp--preset--color--accent-5);
}

/* Категориите — чипове със снимки по две на ред под картата */
.ab-header .is-menu-open .wp-block-navigation__container .ab-mega > .wp-block-navigation__submenu-container {
	order: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	width: 100%;
	margin-top: 16px;
	padding: 0 !important;
}

.ab-header .is-menu-open .wp-block-navigation__container .ab-drop > .wp-block-navigation__submenu-container,
.ab-header .is-menu-open .wp-block-navigation__container .ab-mega .wp-block-navigation-item.ab-mm-card {
	display: none;
}

.ab-header .is-menu-open .ab-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item {
	display: flex;
	align-items: stretch;
}

.ab-header .is-menu-open .ab-mega > .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 48px;
	padding: 5px 8px 5px 5px;
	border-radius: 14px;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
	font-size: 13px;
	line-height: 1.25;
}

.ab-header .is-menu-open .ab-mega .wp-block-navigation-item__label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ab-header .is-menu-open .ab-mega .wp-block-navigation-item__label img {
	flex: none;
	width: 38px !important;
	height: 38px;
	object-fit: cover;
	border-radius: 9px;
	background: var(--wp--preset--color--white);
}

.ab-header .is-menu-open .ab-mega .ab-mm-all {
	grid-column: 1 / -1;
}

.ab-header .is-menu-open .ab-mega > .wp-block-navigation__submenu-container .ab-mm-all .wp-block-navigation-item__content {
	min-height: 0;
	padding: 8px 4px;
	background: none;
	font-weight: 500;
}

/* Телефони и работно време — карта най-долу */
.ab-header .is-menu-open .wp-block-navigation__container > .ab-mobile-only {
	order: 3;
	width: 100%;
	padding: 0 16px;
	background-color: var(--wp--preset--color--accent-2) !important;
}

.ab-header .is-menu-open .wp-block-navigation__container > .ab-mobile-only:not(.ab-mobile-only + .ab-mobile-only) {
	margin-top: 16px;
	padding-top: 14px;
	border-radius: 20px 20px 0 0;
}

.ab-header .is-menu-open .wp-block-navigation__container > .ab-mobile-only:last-child {
	padding-bottom: 14px;
	border-radius: 0 0 20px 20px;
}

.ab-header .is-menu-open .wp-block-navigation__container > .ab-mobile-only > .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	color: var(--wp--preset--color--contrast);
	font-size: 13px;
}

.ab-header .is-menu-open .ab-mobile-only > .wp-block-navigation-item__content::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--wp--preset--color--accent-3);
	-webkit-mask: var(--ab-icon) center / contain no-repeat;
	mask: var(--ab-icon) center / contain no-repeat;
}

:root {
	--ab-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

.ab-header .ab-mm-tel {
	--ab-icon: var(--ab-phone);
}

.ab-header .ab-mm-hours {
	--ab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

/* ---------- Херо: снимката минава под стъкленото меню ---------- */
.ab-hero {
	margin-top: calc(-1 * var(--ab-header-h)) !important;
	border-radius: 0 0 36px 36px;
	overflow: hidden;
}

.ab-hero .wp-block-cover__inner-container {
	width: 100% !important;
}

/* ---------- Промо банер под херото (Black Friday) ----------
   Текстът, снимките, цветовете и бутонът се сменят от редактора на началната страница. */
.ab-bf {
	overflow: hidden;
}

.ab-bf .ab-bf-text {
	max-width: 520px;
	margin: 0;
}

.ab-bf .ab-bf-btn .wp-block-button__link:hover {
	background: var(--wp--preset--color--white) !important;
}

/* Снимките: малки квадрати, леко разместени */
.ab-bf .ab-bf-photos {
	flex: 1 1 380px;
	justify-content: flex-end;
	max-width: 740px;
	padding: 20px 0;
}

.ab-bf .ab-bf-photos .wp-block-image {
	flex: 1 1 0;
	min-width: 0;
	max-width: 172px;
	margin: 0;
}

.ab-bf .ab-bf-photos .wp-block-image:nth-child(even) {
	transform: translateY(-20px);
}

.ab-bf .ab-bf-photos .wp-block-image:nth-child(odd) {
	transform: translateY(12px);
}

.ab-bf .ab-bf-photos img {
	display: block;
	width: 100%;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
	transition: transform 0.3s ease;
}

.ab-bf .ab-bf-photos a:hover img {
	transform: scale(1.05);
}

@media (max-width: 1100px) {
	.ab-bf .ab-bf-photos {
		flex-basis: 100%;
		justify-content: flex-start;
	}
}

/* Връзки в колекциите и чиповете — без подчертаване */
.ab-collections a,
.ab-chips a,
.ab-products a {
	text-decoration: none;
}

/* Старият „preloader“ на темата Croccante не е част от новия дизайн */
.custom-preloader {
	display: none !important;
}

@media (max-width: 781px) {
	.ab-hero {
		min-height: 732px !important;
		border-radius: 0 0 28px 28px;
	}

	.ab-hero .ab-hero-card {
		display: none;
	}

	.ab-bf {
		border-radius: 28px !important;
	}

	.ab-bf .ab-bf-photos {
		max-width: none;
		padding: 0;
		gap: 10px;
	}

	.ab-bf .ab-bf-photos .wp-block-image:nth-child(n) {
		transform: none;
	}

	/* На телефон — три по-големи снимки */
	.ab-bf .ab-bf-photos .wp-block-image:nth-child(n + 4) {
		display: none;
	}
}

/* ---------- Стъклена карта (стил „Стъкло“ на блок Група) ---------- */
.is-style-ab-glass {
	background: rgba(251, 248, 244, 0.72) !important;
	-webkit-backdrop-filter: blur(20px) saturate(130%);
	backdrop-filter: blur(20px) saturate(130%);
	border: 1px solid rgba(255, 255, 255, 0.45);
}

/* ---------- Чип със снимка (стил „Чип“ на блок Група) ---------- */
.is-style-ab-chip {
	background: var(--wp--preset--color--accent-5);
	border-radius: 14px;
	padding: 6px 20px 6px 6px;
}

.is-style-ab-chip .wp-block-image,
.is-style-ab-chip p {
	margin: 0;
}

.is-style-ab-chip a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

/* ---------- Продуктови карти (Нови предложения и магазина) ---------- */
.ab-products .wc-block-product {
	background: var(--wp--preset--color--accent-5);
	border-radius: 24px;
	padding: 12px 12px 16px;
}

.ab-products .wc-block-product .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

/* Снимките на продуктите се показват цели — без изрязване */
.ab-products .wc-block-components-product-image img {
	object-fit: contain;
	background: var(--wp--preset--color--white);
}

/* ---------- За нас: малката снимка застъпва голямата ---------- */
.ab-about-inset {
	margin-top: -260px !important;
	margin-left: 46% !important;
	position: relative;
	z-index: 1;
}

.ab-about-inset img {
	outline: 10px solid var(--wp--preset--color--accent-5);
}

@media (max-width: 781px) {
	.ab-about-inset {
		display: none;
	}
}

/* ---------- Карти от „Семейство Art Box“ ---------- */
.ab-family .wp-block-cover {
	border-radius: 32px;
	overflow: hidden;
}

/* ---------- Футър ---------- */
.ab-footer a {
	color: inherit;
	text-decoration: none;
}

.ab-footer a:hover {
	text-decoration: underline;
}

/* ---------- Мобилни: колекциите и числата по две на ред ---------- */
@media (max-width: 781px) {
	.wp-block-columns.is-not-stacked-on-mobile.ab-collections,
	.wp-block-columns.is-not-stacked-on-mobile.ab-stats {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.is-not-stacked-on-mobile.ab-collections > .wp-block-column,
	.wp-block-columns.is-not-stacked-on-mobile.ab-stats > .wp-block-column {
		flex-basis: calc(50% - 8px) !important;
		flex-grow: 0 !important;
		box-sizing: border-box;
	}
}

/* ==================================================================
   СТРАНИЦА „ОСВЕТИТЕЛНИ ТЕЛА“
   Снимките, текстовете и връзките са обикновени блокове в страницата.
   Тук са само ефектите: закръглени снимки, стрелки, цветни кръгчета.
   ================================================================== */

.ab-crumbs a,
.ab-tile a,
.ab-rooms a,
.ab-colors a {
	color: inherit;
	text-decoration: none;
}

.ab-crumbs a:hover {
	color: var(--wp--preset--color--contrast);
}

/* ---------- Категории ---------- */
.ab-tile .wp-block-image {
	margin: 0;
	overflow: hidden;
	border-radius: 24px;
}

.ab-tile .wp-block-image img {
	width: 100%;
	transition: transform 0.6s ease;
}

.ab-tile:hover .wp-block-image img {
	transform: scale(1.04);
}

.ab-tile .ab-tile-title,
.ab-arrow {
	margin: 0;
}

.ab-arrow {
	flex: none;
}

.ab-arrow a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
	font-size: 15px;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ab-tile:hover .ab-arrow a {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--white);
}

/* ---------- По помещение и По цвят: цялата снимка е връзка ---------- */
.ab-room,
.ab-color {
	overflow: hidden;
}

.ab-room {
	border-radius: 28px;
}

.ab-color {
	border-radius: 24px;
}

.ab-room .wp-block-cover__image-background,
.ab-color .wp-block-cover__image-background {
	transition: transform 0.6s ease;
}

.ab-room:hover .wp-block-cover__image-background,
.ab-color:hover .wp-block-cover__image-background {
	transform: scale(1.05);
}

.ab-room .wp-block-button__link::before,
.ab-color a::before {
	content: "";
	position: absolute;
	inset: -1000px;
}

/* Бял етикет със стрелка в кръгче */
.ab-pill .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.ab-pill .wp-block-button__link::after {
	content: "→";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
	font-size: 13px;
}

/* Цветно кръгче пред името на цвета */
.ab-swatch {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.ab-swatch::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.85);
	background: var(--ab-sw, #fff);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

:root {
	--ab-sw-gold: linear-gradient(135deg, #f1d58a, #b8913a);
	--ab-sw-black: #23201e;
	--ab-sw-white: #fbf8f4;
	--ab-sw-silver: linear-gradient(135deg, #f4f4f4, #9a9a9a);
	--ab-sw-pink: #f4c6d2;
	--ab-sw-rose: linear-gradient(135deg, #f0c2ab, #c48266);
	--ab-sw-multi: conic-gradient(#e86a6a, #f2c14e, #6cc28f, #5aa0e6, #a67de0, #e86a6a);
}

.ab-sw-gold { --ab-sw: var(--ab-sw-gold); }
.ab-sw-black { --ab-sw: var(--ab-sw-black); }
.ab-sw-white { --ab-sw: var(--ab-sw-white); }
.ab-sw-silver { --ab-sw: var(--ab-sw-silver); }
.ab-sw-pink { --ab-sw: var(--ab-sw-pink); }
.ab-sw-rose { --ab-sw: var(--ab-sw-rose); }
.ab-sw-multi { --ab-sw: var(--ab-sw-multi); }

/* ---------- Помощ при избора: бутони с телефон ---------- */
.ab-tel .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.ab-tel .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--ab-phone) center / contain no-repeat;
	mask: var(--ab-phone) center / contain no-repeat;
}

.ab-cta-buttons {
	min-width: 220px;
}

/* ---------- Таблет: цветовете по 4 на ред ---------- */
@media (max-width: 1099px) {
	.ab-colors {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

/* ---------- Телефон ---------- */
@media (max-width: 781px) {
	.ab-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 28px 12px !important;
	}

	.ab-tile .ab-tile-title {
		font-size: 14px !important;
	}

	.ab-arrow a {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}

	/* Помещенията и цветовете се плъзгат настрани */
	.ab-scroll {
		display: flex !important;
		gap: 12px !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.ab-scroll::-webkit-scrollbar {
		display: none;
	}

	.ab-scroll > * {
		flex: 0 0 80%;
		scroll-snap-align: start;
	}

	.ab-rooms .ab-scroll {
		margin-inline: calc(-1 * clamp(20px, 3vw, 40px));
		padding-inline: clamp(20px, 3vw, 40px);
		scroll-padding-inline: clamp(20px, 3vw, 40px);
	}

	.ab-colors.ab-scroll {
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 16px));
		padding-inline: var(--wp--style--root--padding-left, 16px);
		scroll-padding-inline: var(--wp--style--root--padding-left, 16px);
	}

	.ab-colors.ab-scroll > * {
		flex-basis: 40%;
	}

	.ab-room {
		min-height: 300px !important;
	}

	.ab-color {
		min-height: 220px !important;
	}

	.ab-cta-buttons,
	.ab-cta-buttons .wp-block-button,
	.ab-cta-buttons .wp-block-button__link {
		width: 100%;
	}
}

/* ==================================================================
   МАГАЗИН И КАТЕГОРИИ (шаблон „Каталог с продукти“)
   Шаблонът е в Редактор → Шаблони → „Каталог с продукти“.
   Филтрите са блокове на WooCommerce; тук е само видът им.
   ================================================================== */

/* Имената на категориите са с главни букви — показваме ги като изречение */
.ab-archive-title {
	text-transform: lowercase;
}

.ab-archive-title::first-letter {
	text-transform: uppercase;
}

.ab-breadcrumbs .woocommerce-breadcrumb {
	margin: 0;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-4);
}

.ab-breadcrumbs .woocommerce-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.ab-breadcrumbs .woocommerce-breadcrumb a:hover {
	color: var(--wp--preset--color--contrast);
}

/* Бързи връзки към категориите (чипове със снимки) */
.ab-cat-chips .is-style-ab-chip {
	padding-right: 16px;
	transition: background-color 0.2s ease;
}

.ab-cat-chips .ab-chip-all {
	padding: 10px 16px;
	background: var(--wp--preset--color--accent-3);
}

.ab-cat-chips .ab-chip-all a {
	color: var(--wp--preset--color--white);
}

.ab-cat-chips .is-style-ab-chip:not(.ab-chip-all):hover {
	background: var(--wp--preset--color--accent-2);
}

/* ---------- Странична лента с филтри ---------- */
.ab-filters-title {
	display: none;
}

.ab-filters {
	gap: 28px;
}

.ab-filters h3 {
	margin: 0 0 12px !important;
	font-size: 14px !important;
	font-weight: 500;
	letter-spacing: 0;
}

.ab-filters .wc-block-product-filter-checkbox-list__items {
	gap: 8px;
}

.ab-filters .wc-block-product-filter-checkbox-list__label {
	cursor: pointer;
}

.ab-filters .wc-block-product-filter-checkbox-list__text {
	font-size: 13px;
	color: var(--wp--preset--color--contrast);
}

.ab-filters .wc-block-product-filter-checkbox-list__input {
	border: 1px solid var(--wp--preset--color--accent-6) !important;
	border-radius: 4px !important;
	background: var(--wp--preset--color--white) !important;
}

.ab-filters .wc-block-product-filter-checkbox-list__input:checked {
	border-color: var(--wp--preset--color--accent-3) !important;
	background: var(--wp--preset--color--accent-3) !important;
}

.ab-filters .wc-block-product-filter-checkbox-list__mark {
	color: var(--wp--preset--color--white);
}

/* Категории и помещения — като изречение, не с главни букви */
.ab-f-cats .wc-block-product-filter-checkbox-list__text,
.ab-f-rooms .wc-block-product-filter-checkbox-list__text {
	display: inline-block;
	text-transform: lowercase;
}

.ab-f-cats .wc-block-product-filter-checkbox-list__text::first-letter,
.ab-f-rooms .wc-block-product-filter-checkbox-list__text::first-letter {
	text-transform: uppercase;
}

/* „Категории“ без помещенията (те са отделно) и без общата „Осветителни тела“ */
.ab-f-cats .wc-block-product-filter-checkbox-list__item:has(input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%85%d0%be%d0%bb"], input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%82%d1%80%d0%b0%d0%bf%d0%b5%d0%b7%d0%b0%d1%80%d0%b8%d1%8f-%d0%b8-%d0%b1%d0%b0%d1%80"], input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%81%d0%bf%d0%b0%d0%bb%d0%bd%d1%8f"], input[value="%d0%bf%d0%be%d0%bb%d0%b8%d0%bb%d0%b5%d0%b8-%d0%b7%d0%b0-%d1%81%d1%82%d1%8a%d0%bb%d0%b1%d0%b8%d1%89%d0%b0"], input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0"]) {
	display: none;
}

/* „Помещение“ показва само четирите стаи, с кратки имена */
.ab-f-rooms .wc-block-product-filter-checkbox-list__item:not(:has(input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%85%d0%be%d0%bb"], input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%82%d1%80%d0%b0%d0%bf%d0%b5%d0%b7%d0%b0%d1%80%d0%b8%d1%8f-%d0%b8-%d0%b1%d0%b0%d1%80"], input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%81%d0%bf%d0%b0%d0%bb%d0%bd%d1%8f"], input[value="%d0%bf%d0%be%d0%bb%d0%b8%d0%bb%d0%b5%d0%b8-%d0%b7%d0%b0-%d1%81%d1%82%d1%8a%d0%bb%d0%b1%d0%b8%d1%89%d0%b0"])) {
	display: none;
}

.ab-f-rooms:not(:has(input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%85%d0%be%d0%bb"], input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%82%d1%80%d0%b0%d0%bf%d0%b5%d0%b7%d0%b0%d1%80%d0%b8%d1%8f-%d0%b8-%d0%b1%d0%b0%d1%80"], input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%81%d0%bf%d0%b0%d0%bb%d0%bd%d1%8f"], input[value="%d0%bf%d0%be%d0%bb%d0%b8%d0%bb%d0%b5%d0%b8-%d0%b7%d0%b0-%d1%81%d1%82%d1%8a%d0%bb%d0%b1%d0%b8%d1%89%d0%b0"])) {
	display: none;
}

.ab-f-rooms .wc-block-product-filter-checkbox-list__item .wc-block-product-filter-checkbox-list__text {
	font-size: 0;
}

.ab-f-rooms .wc-block-product-filter-checkbox-list__item .wc-block-product-filter-checkbox-list__text::after {
	font-size: 13px;
	text-transform: none;
}

.ab-f-rooms .wc-block-product-filter-checkbox-list__item:has(input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%85%d0%be%d0%bb"]) .wc-block-product-filter-checkbox-list__text::after { content: "Хол"; }
.ab-f-rooms .wc-block-product-filter-checkbox-list__item:has(input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%82%d1%80%d0%b0%d0%bf%d0%b5%d0%b7%d0%b0%d1%80%d0%b8%d1%8f-%d0%b8-%d0%b1%d0%b0%d1%80"]) .wc-block-product-filter-checkbox-list__text::after { content: "Трапезария и бар"; }
.ab-f-rooms .wc-block-product-filter-checkbox-list__item:has(input[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0-%d0%b7%d0%b0-%d1%81%d0%bf%d0%b0%d0%bb%d0%bd%d1%8f"]) .wc-block-product-filter-checkbox-list__text::after { content: "Спалня"; }
.ab-f-rooms .wc-block-product-filter-checkbox-list__item:has(input[value="%d0%bf%d0%be%d0%bb%d0%b8%d0%bb%d0%b5%d0%b8-%d0%b7%d0%b0-%d1%81%d1%82%d1%8a%d0%bb%d0%b1%d0%b8%d1%89%d0%b0"]) .wc-block-product-filter-checkbox-list__text::after { content: "Стълбища"; }

/* „Цвят“ — цветни кръгчета вместо кутийки */
.ab-f-colours .wc-block-product-filter-checkbox-list__items {
	gap: 2px;
}

.ab-f-colours .wc-block-product-filter-checkbox-list__input-wrapper {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.ab-f-colours .wc-block-product-filter-checkbox-list__label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 14px 4px 4px;
	border-radius: 100px;
	transition: background-color 0.2s ease;
}

.ab-f-colours .wc-block-product-filter-checkbox-list__label::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ab-sw, #ccc);
	box-shadow: inset 0 0 0 1px rgba(31, 28, 25, 0.14);
}

.ab-f-colours .wc-block-product-filter-checkbox-list__label:hover,
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input:checked) .wc-block-product-filter-checkbox-list__label {
	background: var(--wp--preset--color--accent-2);
}

.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input:checked) .wc-block-product-filter-checkbox-list__label::before {
	box-shadow: 0 0 0 2px var(--wp--preset--color--white), 0 0 0 3px var(--wp--preset--color--accent-3);
}

.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input:focus-visible) .wc-block-product-filter-checkbox-list__label {
	outline: 2px solid var(--wp--preset--color--accent-3);
}

.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="zlato"]) { --ab-sw: var(--ab-sw-gold); }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="cherno"]) { --ab-sw: var(--ab-sw-black); }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="byalo"]) { --ab-sw: var(--ab-sw-white); }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="srebro"]) { --ab-sw: var(--ab-sw-silver); }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="rozovo"]) { --ab-sw: var(--ab-sw-pink); }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="rozovo-zlato"]) { --ab-sw: var(--ab-sw-rose); }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="tsvetno"]) { --ab-sw: var(--ab-sw-multi); }

/* Подредба на цветовете като в дизайна */
.ab-f-colours .wc-block-product-filter-checkbox-list__items { display: flex; flex-direction: column; }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="zlato"]) { order: 1; }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="cherno"]) { order: 2; }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="byalo"]) { order: 3; }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="srebro"]) { order: 4; }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="rozovo"]) { order: 5; }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="rozovo-zlato"]) { order: 6; }
.ab-f-colours .wc-block-product-filter-checkbox-list__item:has(input[value="tsvetno"]) { order: 7; }

/* Избрани филтри — чипове с хикс */
.ab-f-active .wc-block-product-filter-removable-chips__items {
	gap: 6px;
}

.ab-f-active .wc-block-product-filter-removable-chips__item {
	border: 0 !important;
	border-radius: 100px !important;
	background: var(--wp--preset--color--accent-3) !important;
	color: var(--wp--preset--color--white) !important;
	font-size: 12px;
}

.ab-f-active .wc-block-product-filter-removable-chips__remove {
	color: inherit !important;
}

/* Текстът на избраните филтри: само името, като изречение */
.ab-f-active .wc-block-product-filter-removable-chips__item .wc-block-product-filter-removable-chips__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-transform: lowercase;
}

.ab-f-active .wc-block-product-filter-removable-chips__item .wc-block-product-filter-removable-chips__label::first-letter {
	text-transform: uppercase;
}

.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Злато"]) .wc-block-product-filter-removable-chips__label,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Черно"]) .wc-block-product-filter-removable-chips__label,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Бяло"]) .wc-block-product-filter-removable-chips__label,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Сребро"]) .wc-block-product-filter-removable-chips__label,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Розово"]) .wc-block-product-filter-removable-chips__label,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Розово злато"]) .wc-block-product-filter-removable-chips__label,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Цветно"]) .wc-block-product-filter-removable-chips__label,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ОСВЕТИТЕЛНИ ТЕЛА ЗА ХОЛ"]) .wc-block-product-filter-removable-chips__label,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ОСВЕТИТЕЛНИ ТЕЛА ЗА ТРАПЕЗАРИЯ И БАР"]) .wc-block-product-filter-removable-chips__label,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ОСВЕТИТЕЛНИ ТЕЛА ЗА СПАЛНЯ"]) .wc-block-product-filter-removable-chips__label,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ПОЛИЛЕИ ЗА СТЪЛБИЩА"]) .wc-block-product-filter-removable-chips__label {
	font-size: 0;
}

.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Злато"]) .wc-block-product-filter-removable-chips__label::after,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Черно"]) .wc-block-product-filter-removable-chips__label::after,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Бяло"]) .wc-block-product-filter-removable-chips__label::after,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Сребро"]) .wc-block-product-filter-removable-chips__label::after,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Розово"]) .wc-block-product-filter-removable-chips__label::after,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Розово злато"]) .wc-block-product-filter-removable-chips__label::after,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Цветно"]) .wc-block-product-filter-removable-chips__label::after,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ОСВЕТИТЕЛНИ ТЕЛА ЗА ХОЛ"]) .wc-block-product-filter-removable-chips__label::after,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ОСВЕТИТЕЛНИ ТЕЛА ЗА ТРАПЕЗАРИЯ И БАР"]) .wc-block-product-filter-removable-chips__label::after,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ОСВЕТИТЕЛНИ ТЕЛА ЗА СПАЛНЯ"]) .wc-block-product-filter-removable-chips__label::after,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ПОЛИЛЕИ ЗА СТЪЛБИЩА"]) .wc-block-product-filter-removable-chips__label::after {
	font-size: 12px;
	text-transform: none;
}

.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Злато"]) { --ab-sw: var(--ab-sw-gold); }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Злато"]) .wc-block-product-filter-removable-chips__label::after { content: "Злато"; }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Черно"]) { --ab-sw: var(--ab-sw-black); }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Черно"]) .wc-block-product-filter-removable-chips__label::after { content: "Черно"; }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Бяло"]) { --ab-sw: var(--ab-sw-white); }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Бяло"]) .wc-block-product-filter-removable-chips__label::after { content: "Бяло"; }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Сребро"]) { --ab-sw: var(--ab-sw-silver); }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Сребро"]) .wc-block-product-filter-removable-chips__label::after { content: "Сребро"; }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Розово"]) { --ab-sw: var(--ab-sw-pink); }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Розово"]) .wc-block-product-filter-removable-chips__label::after { content: "Розово"; }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Розово злато"]) { --ab-sw: var(--ab-sw-rose); }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Розово злато"]) .wc-block-product-filter-removable-chips__label::after { content: "Розово злато"; }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Цветно"]) { --ab-sw: var(--ab-sw-multi); }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Цветно"]) .wc-block-product-filter-removable-chips__label::after { content: "Цветно"; }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ОСВЕТИТЕЛНИ ТЕЛА ЗА ХОЛ"]) .wc-block-product-filter-removable-chips__label::after { content: "Хол"; }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ОСВЕТИТЕЛНИ ТЕЛА ЗА ТРАПЕЗАРИЯ И БАР"]) .wc-block-product-filter-removable-chips__label::after { content: "Трапезария и бар"; }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ОСВЕТИТЕЛНИ ТЕЛА ЗА СПАЛНЯ"]) .wc-block-product-filter-removable-chips__label::after { content: "Спалня"; }
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="ПОЛИЛЕИ ЗА СТЪЛБИЩА"]) .wc-block-product-filter-removable-chips__label::after { content: "Стълбища"; }

/* Цветно кръгче в чипа на избрания цвят */
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Злато"]) .wc-block-product-filter-removable-chips__label::before,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Черно"]) .wc-block-product-filter-removable-chips__label::before,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Бяло"]) .wc-block-product-filter-removable-chips__label::before,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Сребро"]) .wc-block-product-filter-removable-chips__label::before,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Розово"]) .wc-block-product-filter-removable-chips__label::before,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Розово злато"]) .wc-block-product-filter-removable-chips__label::before,
.ab-f-active .wc-block-product-filter-removable-chips__item:has(button[aria-label$="Етикет: Цветно"]) .wc-block-product-filter-removable-chips__label::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ab-sw);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.ab-f-active .wc-block-product-filter-clear-button .wp-block-button__link {
	border-color: var(--wp--preset--color--accent-6) !important;
	border-radius: 100px !important;
	color: var(--wp--preset--color--contrast) !important;
}

/* Цена */
.ab-f-price .wc-block-product-filter-price-slider__range {
	--range-color: var(--wp--preset--color--accent-3);
}

.ab-f-price input[type="text"],
.ab-f-price input[type="number"] {
	border: 1px solid var(--wp--preset--color--accent-6) !important;
	border-radius: 100px !important;
	background: var(--wp--preset--color--white) !important;
	font-size: 13px !important;
	text-align: center;
}

/* Карта „Нужен ви е съвет?“ */
.ab-help p {
	margin: 0;
}

.ab-help-tel a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.ab-help-tel a::before {
	content: "";
	width: 14px;
	height: 14px;
	background: var(--wp--preset--color--accent-3);
	-webkit-mask: var(--ab-phone) center / contain no-repeat;
	mask: var(--ab-phone) center / contain no-repeat;
}

/* ---------- Над продуктите: брой и подредба ---------- */
.ab-shop-bar {
	align-items: center;
}

.ab-shop-bar .ab-results,
.ab-shop-bar .ab-results p {
	margin: 0;
	font-size: 13px;
	color: var(--wp--preset--color--accent-4);
}

.ab-sorting select {
	appearance: none;
	-webkit-appearance: none;
	padding: 10px 40px 10px 18px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 100px;
	background: var(--wp--preset--color--accent-5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233D342E' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center / 11px;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

/* ---------- Продуктови карти ---------- */
.ab-catalog .wc-block-product {
	display: flex;
	flex-direction: column;
}

.ab-catalog .wc-block-product .wp-block-post-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ab-card-foot {
	margin-top: auto;
	align-items: center;
}

.ab-card-foot .wc-block-components-product-price {
	min-width: 0;
	margin: 0;
}

/* Кръгъл бутон „количка с +“ */
.ab-card-foot .ab-plus {
	flex: 0 0 44px !important;
	width: 44px !important;
	margin: 0 !important;
}

.ab-plus .wp-block-button__link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	min-width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0 !important;
	border-radius: 50% !important;
	background: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--white) !important;
	font-size: 0 !important;
}

.ab-plus .wp-block-button__link::before {
	content: "";
	width: 22px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5h2.2l2.1 11.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.2l1.4-7.2H6'/%3E%3Ccircle cx='9.5' cy='20' r='1.3'/%3E%3Ccircle cx='17' cy='20' r='1.3'/%3E%3Cpath d='M12.75 9v5M10.25 11.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Картите на началната страница — бутонът долу, до цената */
.ab-products .wc-block-product {
	display: flex;
	flex-direction: column;
}

.ab-plus .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-3) !important;
}

.ab-plus .added_to_cart {
	display: none !important;
}

/* Етикет „Промоция“ */
.ab-catalog .wc-block-components-product-sale-badge,
.ab-products .wc-block-components-product-sale-badge {
	border: 0 !important;
	border-radius: 100px !important;
	background: var(--wp--preset--color--sale) !important;
	color: var(--wp--preset--color--sale-text) !important;
	font-size: 11px !important;
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* Номера на страниците */
.ab-pagination {
	gap: 8px;
	margin-top: 40px;
}

.ab-pagination a,
.ab-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: 100px;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
	font-size: 13px;
	text-decoration: none;
}

.ab-pagination .page-numbers.current {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
}

.ab-pagination .page-numbers.dots {
	background: none;
}

.ab-pagination a:hover {
	background: var(--wp--preset--color--accent-2);
}

/* ---------- Телефон и таблет ---------- */
@media (max-width: 781px) {
	.ab-cat-chips {
		flex-wrap: nowrap !important;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 16px));
		padding-inline: var(--wp--style--root--padding-left, 16px);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ab-cat-chips::-webkit-scrollbar {
		display: none;
	}

	.ab-cat-chips > * {
		flex: none;
	}

	.ab-sidebar {
		padding: 16px !important;
	}

	.ab-filters-title {
		display: block;
		font-size: 22px !important;
	}

	.ab-help {
		display: none;
	}
}

/* ==================================================================
   СТРАНИЦА НА ПРОДУКТ (шаблон „Страница на продукт“)
   Снимките, цената, описанието и табовете идват от продукта.
   ================================================================== */

/* ---------- Снимки ---------- */
.ab-gallery .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.ab-gallery .woocommerce-product-gallery .flex-viewport,
.ab-gallery .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	overflow: hidden;
	border-radius: 28px;
	background: var(--wp--preset--color--white);
}

.ab-gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
}

.ab-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0 !important;
	padding: 0;
	list-style: none;
}

.ab-gallery .flex-control-thumbs li {
	float: none !important;
	width: 84px !important;
	margin: 0 !important;
}

.ab-gallery .flex-control-thumbs img {
	border-radius: 14px;
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.ab-gallery .flex-control-thumbs img:hover,
.ab-gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
}

.ab-gallery .flex-control-thumbs img.flex-active {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 2px;
}

.ab-gallery .woocommerce-product-gallery__trigger {
	top: 16px !important;
	right: 16px !important;
	border-radius: 50%;
	background: var(--wp--preset--color--white) !important;
}

/* ---------- Карта за покупка ---------- */
@media (min-width: 782px) {
	.ab-buy {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ab-header-h) + 24px);
	}
}

.ab-buy > * {
	margin-block: 0;
}

/* Въздух между цената, характеристиките, бутона за количката и плочките */
.ab-buy > * + * {
	margin-block-start: 22px;
}

.ab-buy > .ab-price-row {
	margin-block-start: 6px;
}

.ab-buy > .ab-help-tel {
	margin-block-start: 16px;
}

.ab-price-row .wc-block-components-product-price,
.ab-price-row .price {
	margin: 0;
}

.ab-price-row del {
	font-size: 0.6em;
	color: var(--wp--preset--color--accent-4);
}

.ab-price-row ins {
	text-decoration: none;
}

.ab-badge .wc-block-components-product-sale-badge {
	padding: 5px 12px !important;
	border: 0 !important;
	border-radius: 100px !important;
	background: var(--wp--preset--color--sale) !important;
	color: var(--wp--preset--color--sale-text) !important;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* Един етикет за промоция — до цената; вторият върху снимката не се показва */
.ab-gallery .onsale {
	display: none !important;
}

/* Кратко описание → таблица с параметри */
.ab-specs,
.ab-specs .wc-block-components-product-summary {
	margin: 0;
}

.ab-specs p {
	margin: 0 0 12px;
	color: var(--wp--preset--color--accent-4);
	font-size: 14px;
	line-height: 1.65;
}

.ab-specs ul {
	margin: 0;
	padding: 4px 18px;
	list-style: none;
	border-radius: 16px;
	background: var(--wp--preset--color--accent-2);
}

.ab-specs li {
	padding: 11px 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	font-size: 13px;
}

.ab-specs li:last-child {
	border-bottom: 0;
}

.ab-specs li.ab-spec {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.ab-spec-k {
	color: var(--wp--preset--color--accent-4);
}

.ab-spec-v {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	text-align: right;
}

/* Количество и бутон „Добавяне в количката“ */
.ab-atc form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin: 0 !important;
}

.ab-atc .quantity {
	display: inline-flex !important;
	align-items: center !important;
	flex: none;
	width: auto !important;
	height: 52px;
	margin: 0 !important;
	padding: 0 6px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 100px;
	background: var(--wp--preset--color--white);
}

/* Продукти „по 1 брой“: полето за количество е скрито — без празната рамка */
.ab-atc .quantity:has(input.qty[type="hidden"]) {
	display: none !important;
}

.ab-atc .quantity input.qty {
	width: 44px;
	height: 36px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 36px;
	border: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 15px;
	text-align: center;
	-moz-appearance: textfield;
}

.ab-atc .quantity input.qty::-webkit-inner-spin-button,
.ab-atc .quantity input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ab-atc .quantity button {
	width: 36px;
	height: 36px;
	border: 0 !important;
	border-radius: 50%;
	background: none !important;
	color: var(--wp--preset--color--contrast) !important;
	font-size: 18px;
	cursor: pointer;
}

.ab-atc .quantity button:hover {
	background: var(--wp--preset--color--accent-2) !important;
}

.ab-atc .single_add_to_cart_button {
	flex: 1 1 140px;
	height: 52px;
	border: 0 !important;
	border-radius: 100px !important;
	background: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--white) !important;
	font-size: 15px !important;
	font-weight: 500;
}

.ab-atc .single_add_to_cart_button:hover {
	background: var(--wp--preset--color--accent-3) !important;
}

/* Продукти с варианти (размер, цвят) */
.ab-atc table.variations,
.ab-atc table.variations tbody,
.ab-atc table.variations tr {
	display: block;
	width: 100%;
}

.ab-atc table.variations {
	margin: 0 0 4px !important;
	border: 0 !important;
}

.ab-atc table.variations th,
.ab-atc table.variations td {
	display: block;
	padding: 0 0 6px !important;
	border: 0 !important;
	text-align: left;
	font-size: 13px;
}

.ab-atc table.variations th label {
	color: var(--wp--preset--color--accent-4);
	font-size: 13px;
	font-weight: 500 !important;
}

.ab-atc table.variations select,
.woocommerce .ab-atc table.variations tr td select {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 44px 0 18px !important;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 100px;
	background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233D342E' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 20px center / 11px !important;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 15px !important;
	line-height: 50px;
	appearance: none;
	-webkit-appearance: none;
}

/* Без синята рамка на браузъра — рамка в цвета на сайта */
.ab-atc table.variations select:focus {
	border-color: var(--wp--preset--color--accent-1);
	outline: none;
	box-shadow: 0 0 0 3px rgba(176, 152, 128, 0.25);
}

.ab-atc .reset_variations {
	font-size: 12px;
	color: var(--wp--preset--color--accent-4);
}

.ab-atc .single_variation_wrap,
.ab-atc .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
}

.ab-atc .woocommerce-variation {
	width: 100%;
}

/* Описанието на избрания вариант — дребен текст в рамка */
.ab-atc .woocommerce-variation-description {
	margin: 0 0 14px;
	padding: 14px 18px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 16px;
	color: var(--wp--preset--color--accent-4);
	font-size: 14px;
	line-height: 1.65;
}

.ab-atc .woocommerce-variation-description:empty {
	display: none;
}

.ab-atc .woocommerce-variation-description p {
	margin: 0 !important;
}

.ab-atc .woocommerce-variation-price .price {
	font-size: 22px;
	font-weight: 300;
}

.ab-atc .stock {
	margin: 0;
	font-size: 13px;
	color: var(--wp--preset--color--accent-3);
}

/* Три плочки: гаранция, връщане, шоурум */
.ab-perk {
	position: relative;
	transition: background-color 0.2s ease;
}

.ab-perk:hover {
	background: var(--wp--preset--color--accent-6) !important;
}

.ab-perk p {
	margin: 0;
}

.ab-perk a {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.ab-perk a::before {
	content: "";
	width: 18px;
	height: 18px;
	background: var(--wp--preset--color--accent-3);
	-webkit-mask: var(--ab-icon) center / contain no-repeat;
	mask: var(--ab-icon) center / contain no-repeat;
}

.ab-perk a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ab-perk-warranty { --ab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.ab-perk-return { --ab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E"); }
.ab-perk-store { --ab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9'/%3E%3Cpath d='M3 9h18v2a3 3 0 0 1-6 0 3 3 0 0 1-6 0 3 3 0 0 1-6 0z'/%3E%3Cpath d='M5 13v8h14v-8'/%3E%3Cpath d='M10 21v-5h4v5'/%3E%3C/svg%3E"); }

/* ---------- Табове: описание, технически данни, доставка, гаранция ---------- */
.ab-tabs .woocommerce-tabs {
	margin: 0 !important;
	padding: 0 !important;
}

/* Up-sell и свързаните продукти се показват отдолу в новия вид — не и в панела */
.ab-details .up-sells,
.ab-details .related.products {
	display: none !important;
}

.ab-tabs .woocommerce-tabs ul.wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px !important;
	padding: 0 !important;
	list-style: none;
	border: 0 !important;
	overflow: visible !important;
}

.ab-tabs .woocommerce-tabs ul.wc-tabs::before,
.ab-tabs .woocommerce-tabs ul.wc-tabs::after,
.ab-tabs .woocommerce-tabs ul.wc-tabs li::before,
.ab-tabs .woocommerce-tabs ul.wc-tabs li::after {
	display: none !important;
}

.ab-tabs .woocommerce-tabs ul.wc-tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 100px !important;
	background: none !important;
}

.ab-tabs .woocommerce-tabs ul.wc-tabs li a {
	display: inline-block;
	padding: 9px 18px !important;
	border-radius: 100px;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast) !important;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.ab-tabs .woocommerce-tabs ul.wc-tabs li.active a {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--white) !important;
}

.ab-tabs .woocommerce-Tabs-panel {
	margin: 0 !important;
	color: var(--wp--preset--color--contrast);
	font-size: 15px;
	line-height: 1.75;
}

.ab-tabs .woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

.ab-tabs .woocommerce-Tabs-panel p,
.ab-tabs .woocommerce-Tabs-panel li {
	color: var(--wp--preset--color--accent-4);
}

.ab-tabs .woocommerce-Tabs-panel strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}

.ab-tabs .woocommerce-Tabs-panel table {
	width: 100%;
	border-collapse: collapse;
}

.ab-tabs .woocommerce-Tabs-panel th,
.ab-tabs .woocommerce-Tabs-panel td {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	text-align: left;
	font-size: 14px;
}

@media (max-width: 781px) {
	/* Табовете на телефон — на два реда, за да се виждат всички */
	.ab-tabs .woocommerce-tabs ul.wc-tabs {
		gap: 6px;
	}

	.ab-tabs .woocommerce-tabs ul.wc-tabs li a {
		padding: 9px 14px !important;
		font-size: 13px !important;
		white-space: nowrap;
	}

	.ab-gallery .flex-control-thumbs li {
		width: 64px !important;
	}

	/* Количество и бутон на един ред */
	.ab-atc form.cart {
		padding: 0 !important;
		gap: 10px;
	}

	.ab-atc .quantity {
		height: 48px;
		padding: 0 4px;
	}

	.ab-atc .quantity button {
		width: 30px;
		height: 30px;
	}

	.ab-atc .quantity input.qty {
		width: 30px;
	}

	.ab-atc .single_add_to_cart_button {
		flex: 1 1 120px;
		height: 48px;
		padding: 0 10px !important;
		font-size: 13px !important;
		line-height: 1.2;
	}

	/* Плочките — по-дребен текст, без разделяне на думите */
	.ab-perk {
		padding: 12px 10px !important;
	}

	.ab-perk p {
		font-size: 12px !important;
	}

	.ab-perk a {
		hyphens: none;
		overflow-wrap: normal;
		word-break: normal;
	}
}

/* ==================================================================
   ТЪРСЕНЕ (FiboSearch)
   Текстовете, броят резултати, снимките и цените се настройват от
   FiboSearch → Настройки. Бутоните „Често търсени“ се редактират от
   Външен вид → Редактор → Части → Хедър (блок „Бутони“ до лупата).
   Тук е само подредбата: панел под менюто, резултати вляво,
   категории или „Често търсени“ вдясно.
   ================================================================== */

:root {
	--ab-sx: max(clamp(16px, 4vw, 56px), calc((100% - 1328px) / 2));
	--ab-search-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ab-header-h));
}

/* Лупата в хедъра — кръгъл бутон като количката */
.ab-header .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon {
	max-width: none !important;
	width: 44px;
	min-width: 44px;
	height: 44px;
	margin: 0;
}

.ab-header .dgwt-wcas-search-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.16);
	color: var(--wp--preset--color--white);
	position: static;
}

.ab-header .dgwt-wcas-search-icon:hover {
	background: rgba(255, 255, 255, 0.28);
}

.ab-header .dgwt-wcas-search-icon svg,
.ab-header .dgwt-wcas-search-icon svg path {
	width: 20px;
	height: 20px;
	fill: currentColor !important;
}

.ab-header .dgwt-wcas-search-icon-arrow {
	display: none !important;
}

/* „Често търсени“ — видими само при отворено търсене */
.ab-header .ab-popular {
	display: none;
}

.ab-popular .ab-popular-title {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--wp--preset--color--accent-4);
}

.ab-popular .ab-popular-chips {
	gap: 8px;
}

.ab-popular .wp-block-button__link {
	padding: 8px 15px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 100px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
}

.ab-popular .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-2);
}

/* Полето за търсене */
.dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp {
	max-width: none;
	padding: 0 !important;
	background: none !important;
}

.dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
	height: 63px;
	padding: 0 64px 0 60px !important;
	border: 1.5px solid var(--wp--preset--color--contrast) !important;
	border-radius: 100px !important;
	background: var(--wp--preset--color--white) !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 20px;
	font-weight: 400;
}

.dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
	font-size: 15px;
	color: var(--wp--preset--color--accent-4);
	opacity: 1;
}

.dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit {
	left: 24px !important;
	top: 50% !important;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	min-height: 0;
	padding: 0 !important;
	background: none !important;
	color: var(--wp--preset--color--contrast) !important;
	opacity: 1 !important;
}

.dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit svg,
.dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit svg path {
	width: 20px;
	height: 20px;
	fill: currentColor !important;
}

.dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp .dgwt-wcas-close {
	right: 11px !important;
	top: 50% !important;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-2);
}

.dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp .dgwt-wcas-close svg {
	width: 12px;
	height: 12px;
	fill: var(--wp--preset--color--contrast);
}

/* Резултатите */
.dgwt-wcas-suggestions-wrapp {
	border: 0 !important;
	font-family: inherit;
	color: var(--wp--preset--color--contrast);
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
	border: 0 !important;
	background: none;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion::after {
	display: none;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline {
	padding: 0 0 8px !important;
	background: none !important;
	pointer-events: none;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
	padding: 0;
	border: 0;
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	color: var(--wp--preset--color--accent-4);
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product {
	display: flex !important;
	align-items: center;
	box-sizing: border-box;
	min-height: 96px;
	margin-bottom: 8px;
	padding: 10px !important;
	border-radius: 18px;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product:hover,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected {
	background: var(--wp--preset--color--accent-2) !important;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si {
	flex: 0 0 76px;
	width: 76px !important;
	height: 76px;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
	width: 76px;
	height: 76px;
	max-width: none !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 12px;
	object-fit: cover;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp {
	gap: 24px;
	padding: 0 8px 0 18px !important;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-title {
	font-size: 16px;
	line-height: 1.35;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st strong {
	font-weight: inherit;
	color: var(--wp--preset--color--accent-1);
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp {
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--wp--preset--color--contrast);
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp > span:not(.screen-reader-text) {
	display: inline;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-st {
	flex: 1 1 auto;
	min-width: 0;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-meta {
	flex: 0 0 auto;
	margin-left: auto;
	text-align: right;
}

/* Категориите — с малки букви, като в менюто */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax {
	padding: 7px 0 !important;
	background: none !important;
	font-size: 16px;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax .dgwt-wcas-st {
	display: block;
	text-transform: lowercase;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax .dgwt-wcas-st::first-letter {
	text-transform: uppercase;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax:hover .dgwt-wcas-st,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax.dgwt-wcas-suggestion-selected .dgwt-wcas-st {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* „Виж всички резултати“ */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 0 0 !important;
	background: none !important;
	text-transform: none;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more::before {
	content: "Натиснете Enter за всички резултати";
	font-size: 13px;
	color: var(--wp--preset--color--accent-4);
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more .dgwt-wcas-st-more {
	padding: 14px 26px;
	line-height: 1.2;
	border-radius: 100px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
	font-size: 15px;
	font-weight: 500;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more:hover .dgwt-wcas-st-more,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-selected .dgwt-wcas-st-more {
	background: var(--wp--preset--color--accent-3);
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-nores {
	padding: 8px 0 !important;
	font-size: 16px;
	color: var(--wp--preset--color--contrast);
}

/* Десктоп: панел на цялата ширина под менюто */
@media (min-width: 782px) {
	.ab-header .dgwt-wcas-layout-icon-open .dgwt-wcas-search-form {
		position: fixed !important;
		z-index: 1;
		top: var(--ab-search-top) !important;
		left: 0 !important;
		right: 0;
		width: auto !important;
		max-width: none;
		box-sizing: border-box;
		padding: 32px var(--ab-sx) 132px;
		border-radius: 0 0 24px 24px;
		background: var(--wp--preset--color--accent-5);
		box-shadow: 0 24px 48px rgba(31, 28, 25, 0.18);
	}

	/* Докато има резултати, панелът продължава в списъка с резултати */
	body.dgwt-wcas-open .ab-header .dgwt-wcas-layout-icon-open .dgwt-wcas-search-form {
		padding-bottom: 28px;
		border-radius: 0;
		box-shadow: none;
	}

	.ab-header .ab-actions:has(.dgwt-wcas-layout-icon-open) .ab-popular {
		display: block;
		position: fixed;
		z-index: 1001;
		top: calc(var(--ab-search-top) + 123px);
		left: var(--ab-sx);
		right: var(--ab-sx);
		margin: 0;
		pointer-events: none;
	}

	.ab-popular a {
		pointer-events: auto;
	}

	/* Затъмняване на страницата отдолу (клик върху него затваря търсенето) */
	body:has(.ab-header .dgwt-wcas-layout-icon-open)::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 98;
		background: rgba(31, 28, 25, 0.35);
	}

	body.dgwt-wcas-open .dgwt-wcas-suggestions-wrapp:not([style*="display: none"]) {
		position: fixed !important;
		z-index: 99 !important;
		top: calc(var(--ab-search-top) + 103px) !important;
		left: 0 !important;
		width: 100% !important;
		max-height: calc(100vh - var(--ab-search-top) - 127px) !important;
		margin: 0 !important;
		box-sizing: border-box;
		padding: 20px var(--ab-sx) 32px !important;
		border-radius: 0 0 24px 24px;
		background: var(--wp--preset--color--accent-5);
	}

	/* С резултати „Често търсени“ отиват вдясно, а при намерени категории се скриват */
	body.dgwt-wcas-open .ab-header .ab-actions:has(.dgwt-wcas-layout-icon-open) .ab-popular {
		left: auto;
		width: 380px;
	}

	body.dgwt-wcas-open:has(.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax) .ab-header .ab-popular {
		display: none !important;
	}
}

/* Широк екран: продукти вляво, категории вдясно */
@media (min-width: 1100px) {
	body.dgwt-wcas-open .dgwt-wcas-suggestions-wrapp:not([style*="display: none"]) {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 380px;
		grid-auto-flow: row dense;
		align-content: start;
		column-gap: 48px;
		min-height: 220px;
	}

	.dgwt-wcas-suggestions-wrapp > * {
		grid-column: 1;
	}

	.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-tax,
	.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-headline:has(+ .dgwt-wcas-suggestion-tax) {
		grid-column: 2;
	}

	.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-product {
		grid-row: span 3;
	}

	.dgwt-wcas-suggestions-wrapp > .dgwt-wcas-suggestion-more {
		grid-column: 1 / -1;
	}
}

@media (min-width: 782px) and (max-width: 1099px) {
	body.dgwt-wcas-open .ab-header .ab-popular {
		display: none !important;
	}
}
/* Мобилно: търсенето се отваря на цял екран (кафява лента с полето и „Отказ“) */
@media (max-width: 781px) {
	.dgwt-wcas-overlay-mobile {
		z-index: 100000 !important;
		background: var(--wp--preset--color--accent-5) !important;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-om-bar {
		display: flex;
		align-items: center;
		gap: 14px;
		box-sizing: border-box;
		height: 72px;
		padding: 0 16px;
		background: var(--wp--preset--color--accent-3);
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-search-wrapp {
		order: 1;
		flex: 1 1 auto;
		max-width: none;
		margin: 0;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-om-return {
		order: 2;
		width: auto !important;
		height: auto !important;
		padding: 0 !important;
		border: 0;
		background: none !important;
		color: var(--wp--preset--color--white);
		font-family: inherit;
		font-size: 15px;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-om-return svg {
		display: none;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-om-return::before {
		content: "Отказ";
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
		height: 46px;
		padding: 0 48px 0 54px !important;
		border: 0 !important;
		font-size: 16px;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit {
		display: block !important;
		left: 16px !important;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-search-wrapp .dgwt-wcas-search-form .dgwt-wcas-sf-wrapp .dgwt-wcas-close {
		right: 5px !important;
		width: 36px;
		height: 36px;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestions-wrapp {
		top: 72px !important;
		height: calc(100% - 72px) !important;
		max-height: none !important;
		box-sizing: border-box;
		padding: 20px 16px 32px !important;
		background: var(--wp--preset--color--accent-5) !important;
	}

	/* Продуктите първо, после категориите */
	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-overlay-mobile .dgwt-wcas-suggestions-wrapp:not([style*="display: none"]) {
		display: flex !important;
		flex-direction: column;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-product,
	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-headline:has(+ .dgwt-wcas-suggestion-product) {
		order: 1;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-tax,
	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-headline:has(+ .dgwt-wcas-suggestion-tax) {
		order: 2;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-headline:has(+ .dgwt-wcas-suggestion-tax) {
		margin-top: 16px;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-more {
		order: 3;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
		flex-direction: column;
		align-items: flex-start !important;
		justify-content: center;
		gap: 4px;
		padding: 0 0 0 16px !important;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-product .dgwt-wcas-st {
		flex: 0 0 auto;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-product .dgwt-wcas-meta {
		margin-left: 0;
		text-align: left;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-sp {
		padding-left: 0;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-tax {
		padding: 9px 0 !important;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-more::before {
		display: none;
	}

	.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-more .dgwt-wcas-st-more {
		flex: 1 1 auto;
		padding: 16px;
		text-align: center;
	}

	/* „Често търсени“ под полето, докато още нищо не е написано */
	html.dgwt-wcas-overlay-mobile-on .wp-site-blocks > header.wp-block-template-part {
		z-index: 100001;
		visibility: hidden;
	}

	html.dgwt-wcas-overlay-mobile-on .ab-header .ab-popular {
		display: block;
		visibility: visible;
		position: fixed;
		top: 96px;
		left: 16px;
		right: 16px;
		margin: 0;
	}

	html.dgwt-wcas-overlay-mobile-on body.dgwt-wcas-open .ab-header .ab-popular {
		display: none;
	}
}
/* ==================================================================
   РЕЗУЛТАТИ ОТ ТЪРСЕНЕ (шаблон „Резултати от търсене на продукти“)
   Шаблонът е в Редактор → Шаблони. Чиповете с категориите са
   филтър на WooCommerce и показват само категориите в резултатите.
   ================================================================== */

.ab-search-title {
	max-width: 780px;
	margin: 0;
}

.ab-f-search-cats .wc-block-product-filter-chips__items {
	gap: 8px;
}

.ab-f-search-cats .wc-block-product-filter-chips__item {
	padding: 11px 18px;
	border: 0;
	border-radius: 14px;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ab-f-search-cats .wc-block-product-filter-chips__item:hover {
	background: var(--wp--preset--color--accent-2);
}

.ab-f-search-cats .wc-block-product-filter-chips__item[aria-checked="true"] {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--white);
}

.ab-f-search-cats .wc-block-product-filter-chips__label {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.ab-f-search-cats .wc-block-product-filter-chips__text {
	display: inline-block;
	text-transform: lowercase;
}

.ab-f-search-cats .wc-block-product-filter-chips__text::first-letter {
	text-transform: uppercase;
}

.ab-f-search-cats .wc-block-product-filter-chips__count {
	font-size: 12px;
	color: var(--wp--preset--color--accent-4);
}

.ab-f-search-cats .wc-block-product-filter-chips__item[aria-checked="true"] .wc-block-product-filter-chips__count {
	color: rgba(255, 255, 255, 0.75);
}

/* Общата категория „Осветителни тела“ не помага при търсене */
.ab-f-search-cats .wc-block-product-filter-chips__item[value="%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b8%d1%82%d0%b5%d0%bb%d0%bd%d0%b8-%d1%82%d0%b5%d0%bb%d0%b0"] {
	display: none;
}

/* „Не открихте търсения модел?“ */
.ab-search-help p {
	margin: 0;
}

.ab-search-help .wp-block-button__link {
	padding: 13px 24px;
	border-radius: 100px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
	font-size: 14px;
	font-weight: 500;
}

.ab-search-help .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-3);
}

@media (max-width: 781px) {
	.ab-f-search-cats .wc-block-product-filter-chips__items {
		flex-wrap: nowrap;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 16px));
		padding-inline: var(--wp--style--root--padding-left, 16px);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ab-f-search-cats .wc-block-product-filter-chips__items::-webkit-scrollbar {
		display: none;
	}

	.ab-f-search-cats .wc-block-product-filter-chips__item {
		flex: none;
	}

	/* Чиповете остават на страницата и на телефон (без прозорец „Филтриране“) */
	.ab-search-filters .wc-block-product-filters__open-overlay,
	.ab-search-filters .wc-block-product-filters__overlay-header,
	.ab-search-filters .wc-block-product-filters__overlay-footer {
		display: none !important;
	}

	.ab-search-filters .wc-block-product-filters__overlay,
	.ab-search-filters .wc-block-product-filters__overlay-wrapper,
	.ab-search-filters .wc-block-product-filters__overlay-dialog,
	.ab-search-filters .wc-block-product-filters__overlay-content {
		position: static !important;
		inset: auto !important;
		width: auto !important;
		height: auto !important;
		padding: 0 !important;
		overflow: visible !important;
		transform: none !important;
		background: none !important;
		pointer-events: auto !important;
	}

	.ab-search-help {
		padding: 22px 20px !important;
	}
}
/* ==================================================================
   КОЛИЧКА И ПОРЪЧКА (шаблони „Списък с покупки“ и „Плащане по поръчка“)
   Формите, полетата и начините на плащане са стандартните на
   WooCommerce — същите като досега. Тук е само видът им.
   ================================================================== */

.ab-page-title {
	margin-bottom: clamp(24px, 3vw, 40px) !important;
}

/* WooCommerce стеснява тези страници до 1000px — тук са на цялата ширина */
.ab-cart-page .wp-block-post-title,
.ab-checkout-page .wp-block-post-title,
.ab-cart-page .wp-block-post-content > .woocommerce,
.ab-checkout-page .wp-block-post-content > .woocommerce {
	max-width: none;
}

/* Карти */
.ab-cart-page .woocommerce-cart-form,
.ab-cart-page .cart_totals,
.ab-checkout-page #customer_details,
.ab-checkout-page #order_review {
	box-sizing: border-box;
	padding: clamp(20px, 3vw, 32px);
	border-radius: 28px;
	background: var(--wp--preset--color--accent-5);
}

.ab-cart-page .woocommerce h2,
.ab-checkout-page .woocommerce h3,
.ab-checkout-page #order_review_heading {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0;
}

/* Полета */
.ab-cart-page .woocommerce input.input-text,
.ab-checkout-page .woocommerce form .form-row input.input-text,
.ab-checkout-page .woocommerce form .form-row textarea,
.ab-checkout-page .woocommerce form .form-row select,
.ab-checkout-page .woocommerce .select2-container .select2-selection--single {
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	box-shadow: none;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 14px;
}

.ab-checkout-page .woocommerce .select2-container .select2-selection--single {
	height: 48px;
	padding: 0;
}

.ab-checkout-page .woocommerce .select2-container .select2-selection__rendered {
	padding: 0 40px 0 16px !important;
	line-height: 46px;
	color: var(--wp--preset--color--contrast);
}

.ab-checkout-page .woocommerce .select2-container .select2-selection__arrow {
	top: 0;
	right: 10px;
	height: 46px;
}

.ab-checkout-page .woocommerce form .form-row textarea {
	min-height: 120px;
}

.ab-checkout-page .woocommerce form .form-row label {
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--wp--preset--color--contrast);
}

.ab-checkout-page .woocommerce form .form-row .required {
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}

/* Бутони */
.ab-cart-page .woocommerce .button,
.ab-checkout-page .woocommerce .button {
	padding: 13px 24px;
	border: 0;
	border-radius: 100px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
}

.ab-cart-page .woocommerce .button:hover,
.ab-checkout-page .woocommerce .button:hover {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--white);
}

.ab-cart-page .woocommerce .button:disabled,
.ab-cart-page .woocommerce .button[disabled] {
	opacity: 0.45;
}

.ab-cart-page .checkout-button,
.ab-checkout-page #place_order {
	display: block;
	box-sizing: border-box;
	width: 100%;
	float: none;
	padding: 18px 24px !important;
	font-size: 16px !important;
	text-align: center;
}

/* Таблици */
.ab-cart-page .woocommerce table.shop_table,
.ab-checkout-page .woocommerce table.shop_table {
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	background: none;
}

.ab-cart-page .woocommerce table.shop_table th,
.ab-cart-page .woocommerce table.shop_table td,
.ab-checkout-page .woocommerce table.shop_table th,
.ab-checkout-page .woocommerce table.shop_table td {
	padding: 14px 8px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--accent-6);
	background: none;
	vertical-align: middle;
}

.ab-cart-page .woocommerce table.shop_table thead th,
.ab-checkout-page .woocommerce table.shop_table thead th {
	border-top: 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-4);
}

.ab-checkout-page .woocommerce table.shop_table td:last-child,
.ab-checkout-page .woocommerce table.shop_table th:last-child,
.ab-cart-page .cart_totals table.shop_table td {
	text-align: right;
}

.ab-cart-page .woocommerce table.shop_table .order-total th,
.ab-cart-page .woocommerce table.shop_table .order-total td,
.ab-checkout-page .woocommerce table.shop_table .order-total th,
.ab-checkout-page .woocommerce table.shop_table .order-total td {
	font-size: 18px;
	font-weight: 600;
}

.ab-cart-page .woocommerce table.shop_table .shipping td,
.ab-checkout-page .woocommerce table.shop_table .shipping td {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

/* Сумите (количка и поръчка): всеки ред — етикет вляво, стойност вдясно */
.ab-cart-page .cart_totals table.shop_table,
.ab-cart-page .cart_totals table.shop_table tbody,
.ab-checkout-page table.woocommerce-checkout-review-order-table,
.ab-checkout-page table.woocommerce-checkout-review-order-table thead,
.ab-checkout-page table.woocommerce-checkout-review-order-table tbody,
.ab-checkout-page table.woocommerce-checkout-review-order-table tfoot {
	display: block;
}

.ab-cart-page .cart_totals table.shop_table tr,
.ab-checkout-page table.woocommerce-checkout-review-order-table tr {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid var(--wp--preset--color--accent-6);
}

.ab-cart-page .cart_totals table.shop_table tr:first-child,
.ab-checkout-page table.woocommerce-checkout-review-order-table thead tr {
	border-top: 0;
}

.ab-cart-page .woocommerce .cart_totals table.shop_table th,
.ab-cart-page .woocommerce .cart_totals table.shop_table td,
.ab-checkout-page .woocommerce table.woocommerce-checkout-review-order-table th,
.ab-checkout-page .woocommerce table.woocommerce-checkout-review-order-table td {
	display: block;
	border-top: 0;
}

.ab-checkout-page table.woocommerce-checkout-review-order-table td.product-total,
.ab-checkout-page table.woocommerce-checkout-review-order-table tfoot tr:not(.shipping) td {
	white-space: nowrap;
}

/* Доставката: етикетът над текста, за да не се свива текстът в тясна колона */
.ab-cart-page .woocommerce table.shop_table tr.shipping,
.ab-checkout-page .woocommerce table.shop_table tr.shipping {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.ab-cart-page .woocommerce table.shop_table tr.shipping th,
.ab-cart-page .woocommerce table.shop_table tr.shipping td,
.ab-checkout-page .woocommerce table.shop_table tr.shipping th,
.ab-checkout-page .woocommerce table.shop_table tr.shipping td {
	display: block;
	border-top: 0;
	text-align: left;
}

.ab-cart-page .woocommerce table.shop_table tr.shipping td,
.ab-checkout-page .woocommerce table.shop_table tr.shipping td {
	padding-top: 0;
	border-top: 0;
}

/* Количка: снимки, имена, количество */
.ab-cart-page .woocommerce table.cart td.product-thumbnail img {
	width: 80px;
	height: 80px;
	border-radius: 14px;
	object-fit: cover;
}

.ab-cart-page .woocommerce table.cart td.product-name a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.ab-cart-page .woocommerce table.cart td.product-name a:hover {
	text-decoration: underline;
}

.ab-cart-page .woocommerce table.cart a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast) !important;
	font-size: 18px;
	font-weight: 400;
	text-decoration: none;
}

.ab-cart-page .woocommerce table.cart a.remove:hover {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--white) !important;
}

.ab-cart-page .woocommerce .quantity .qty {
	width: 72px;
	min-height: 40px;
	padding: 6px 8px;
	border-radius: 100px;
	text-align: center;
}

.ab-cart-page .woocommerce table.cart td.actions {
	padding-top: 20px;
}

.ab-cart-page .woocommerce table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ab-cart-page .woocommerce table.cart td.actions .coupon .input-text {
	width: 200px;
	border-radius: 100px;
}

.ab-cart-page .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
}

.ab-cart-page .wc-proceed-to-checkout {
	padding: 20px 0 0;
}

/* Поръчка: данните едно под друго, плащането като отделни карти */
.ab-checkout-page .woocommerce .col2-set .col-1,
.ab-checkout-page .woocommerce .col2-set .col-2 {
	float: none;
	width: 100%;
	max-width: none;
}

.ab-checkout-page .woocommerce .col2-set .col-2 {
	margin-top: 24px;
}

.ab-checkout-page #order_review_heading {
	margin: 0;
	padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 8px;
	border-radius: 28px 28px 0 0;
	background: var(--wp--preset--color--accent-5);
}

.ab-checkout-page #order_review {
	padding-top: 0;
	border-radius: 0 0 28px 28px;
}

.ab-checkout-page #payment {
	margin-top: 24px;
	border-radius: 0;
	background: none !important;
}

.ab-checkout-page #payment ul.payment_methods {
	margin: 0;
	padding: 0;
	border: 0;
}

.ab-checkout-page #payment ul.payment_methods li {
	margin: 0 0 8px;
	padding: 14px 16px;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	list-style: none;
}

.ab-checkout-page #payment div.payment_box {
	margin: 10px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--wp--preset--color--accent-2) !important;
	color: var(--wp--preset--color--contrast);
	font-size: 13px;
}

.ab-checkout-page #payment div.payment_box::before {
	display: none;
}

.ab-checkout-page #payment div.payment_box p {
	margin: 0;
}

.ab-checkout-page #payment div.form-row.place-order {
	margin: 0;
	padding: 16px 0 0;
}

.ab-checkout-page .woocommerce-terms-and-conditions-wrapper,
.ab-checkout-page .woocommerce-privacy-policy-text {
	font-size: 13px;
	line-height: 1.5;
}

/* Съобщения (промо код, грешки) */
.ab-cart-page .wc-block-components-notice-banner,
.ab-checkout-page .wc-block-components-notice-banner {
	border: 0;
	border-radius: 16px;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}

.ab-cart-page .wc-block-components-notice-banner.is-info > svg,
.ab-checkout-page .wc-block-components-notice-banner.is-info > svg {
	background: var(--wp--preset--color--accent-1);
}

/* Панелът на количката (отваря се от иконата в менюто) — без дългите описания */
.wc-block-mini-cart__drawer .wc-block-components-product-metadata__description,
.wc-block-mini-cart__drawer .wc-block-components-product-backorder-badge {
	display: none;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
	font-weight: 400;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__image img {
	border-radius: 12px;
}

.wc-block-mini-cart__drawer a.wc-block-components-product-name {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button {
	border-radius: 100px;
}

/* Широк екран: таблицата/данните вляво, сумата вдясно */
@media (min-width: 1000px) {
	.ab-cart-page .wp-block-post-content > .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 400px;
		align-items: start;
		gap: 32px;
	}

	.ab-cart-page .wp-block-post-content > .woocommerce > .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
	}

	.ab-cart-page .wp-block-post-content > .woocommerce > .woocommerce-notices-wrapper:empty {
		display: none;
	}

	.ab-checkout-page form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 440px;
		grid-template-rows: auto auto 1fr;
		align-items: start;
		column-gap: 40px;
	}

	.ab-checkout-page form.checkout > * {
		grid-column: 1;
	}

	.ab-checkout-page form.checkout > .woocommerce-NoticeGroup {
		grid-row: 1;
		grid-column: 1 / -1;
	}

	.ab-checkout-page form.checkout > #customer_details {
		grid-row: 2 / span 2;
	}

	.ab-checkout-page form.checkout > #order_review_heading {
		grid-row: 2;
		grid-column: 2;
	}

	.ab-checkout-page form.checkout > #order_review {
		grid-row: 3;
		grid-column: 2;
	}
}

@media (max-width: 781px) {
	.ab-cart-page .woocommerce-cart-form,
	.ab-checkout-page #customer_details {
		margin-bottom: 20px;
	}

	.ab-cart-page .woocommerce table.cart td.actions .coupon .input-text {
		width: 100%;
	}
}

/* Телефон: всеки продукт в количката е компактен ред — снимка, име, цена, количество */
@media (max-width: 768px) {
	.ab-cart-page .woocommerce table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 72px minmax(0, 1fr) 28px;
		grid-template-areas:
			"img name remove"
			"img price price"
			"img qty total";
		align-items: center;
		column-gap: 14px;
		row-gap: 6px;
		padding: 16px 0;
		border-top: 1px solid var(--wp--preset--color--accent-6);
	}

	.ab-cart-page .woocommerce table.cart tr.cart_item:first-child {
		border-top: 0;
		padding-top: 0;
	}

	.ab-cart-page .woocommerce table.cart tr.cart_item td {
		display: block;
		padding: 0;
		border: 0;
		background: none;
		text-align: left !important;
	}

	.ab-cart-page .woocommerce table.cart tr.cart_item td::before {
		display: none;
	}

	.ab-cart-page .woocommerce table.cart tr.cart_item td.product-thumbnail {
		display: block !important;
		grid-area: img;
		align-self: start;
	}

	.ab-cart-page .woocommerce table.cart tr.cart_item td.product-thumbnail img {
		width: 72px;
		height: 72px;
		max-width: none;
	}

	.ab-cart-page .woocommerce table.cart tr.cart_item td.product-name {
		grid-area: name;
		font-size: 14px;
		line-height: 1.4;
	}

	.ab-cart-page .woocommerce table.cart tr.cart_item td.product-remove {
		grid-area: remove;
		align-self: start;
	}

	.ab-cart-page .woocommerce table.cart tr.cart_item td.product-price {
		grid-area: price;
		font-size: 13px;
		color: var(--wp--preset--color--accent-4);
	}

	.ab-cart-page .woocommerce table.cart tr.cart_item td.product-quantity {
		grid-area: qty;
	}

	.ab-cart-page .woocommerce table.cart tr.cart_item td.product-subtotal {
		grid-area: total;
		grid-column: 3 / -1;
		justify-self: end;
		font-weight: 600;
		white-space: nowrap;
	}

	.ab-cart-page .woocommerce table.cart td.actions {
		padding: 16px 0 0;
		border-top: 1px solid var(--wp--preset--color--accent-6);
		background: none;
	}

	.ab-cart-page .woocommerce table.cart td.actions .coupon .input-text {
		flex: 1 1 100%;
		width: 100% !important;
	}

	.ab-cart-page .woocommerce table.cart td.actions::before {
		display: none;
	}

	.ab-cart-page .woocommerce table.cart td.actions .button {
		width: 100%;
	}

	/* Сумата: етикет вляво, стойност вдясно */
	.ab-cart-page .cart_totals table.shop_table tr {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 4px 12px;
		padding: 14px 0;
		border-top: 1px solid var(--wp--preset--color--accent-6);
	}

	.ab-cart-page .cart_totals table.shop_table tr:first-child {
		padding-top: 0;
		border-top: 0;
	}

	.ab-cart-page .cart_totals table.shop_table th,
	.ab-cart-page .cart_totals table.shop_table td {
		display: block !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
	}

	.ab-cart-page .cart_totals table.shop_table td::before {
		display: none;
	}

	.ab-cart-page .cart_totals table.shop_table tr.shipping td {
		flex: 1 1 100%;
		text-align: left !important;
	}
}

/* ==================================================================
   ЛОКАЦИИ И КОНТАКТИ
   Текстовете, снимките и бутоните се сменят направо в страниците.
   ================================================================== */

.ab-contact-lines a,
.ab-contact-card .ab-v a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.ab-contact-lines a:hover,
.ab-contact-card .ab-v a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ab-contact-card .ab-k {
	margin-top: 14px !important;
	margin-bottom: 2px !important;
}

.ab-contact-card .ab-v {
	margin-top: 0 !important;
}

/* Втората локация — снимката вдясно */
@media (min-width: 782px) {
	.ab-location-rev {
		flex-direction: row-reverse;
	}
}

/* ==================================================================
   ПОРЪЧКА НА ЕДНА СТРАНИЦА
   При пълна количка „Количка“ води направо към „Поръчка“ (functions.php).
   На телефон: първо продуктите, после данните, накрая плащането.
   ================================================================== */

/* Иконата на количката в менюто се вижда и на страницата за поръчка */
.ab-header .wc-block-mini-cart[aria-hidden="true"] {
	visibility: visible !important;
}

.ab-header .wc-block-mini-cart[aria-hidden="true"] .wc-block-mini-cart__button {
	cursor: default;
	opacity: 1;
}

/* В панела на количката остава само „Към поръчката“ */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart {
	display: none !important;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout {
	flex: 1 1 100%;
}

/* В панела — без значката „Съхраняване“ (грешен превод на „Спестявате“);
   старата и новата цена се виждат и без нея */
.wc-block-mini-cart__drawer .wc-block-components-sale-badge {
	display: none !important;
}

/* „Промени продуктите в количката“ под заглавието */
.ab-edit-cart {
	margin-top: -12px !important;
	margin-bottom: 24px !important;
	font-size: 14px;
}

.ab-edit-cart a {
	color: var(--wp--preset--color--accent-3);
}

.woocommerce-order-received .ab-edit-cart,
.woocommerce-order-pay .ab-edit-cart {
	display: none;
}

/* Количката (при промяна на продуктите) — без калкулатора за доставка */
.ab-cart-page .woocommerce-shipping-calculator,
.ab-cart-page .woocommerce-shipping-destination {
	display: none;
}

@media (max-width: 999px) {
	.ab-checkout-page form.checkout {
		display: flex;
		flex-direction: column;
	}

	.ab-checkout-page form.checkout > * {
		order: 5;
	}

	.ab-checkout-page form.checkout > .woocommerce-NoticeGroup {
		order: 0;
	}

	.ab-checkout-page form.checkout > #order_review_heading {
		order: 1;
	}

	.ab-checkout-page form.checkout > #order_review {
		display: contents;
	}

	.ab-checkout-page #order_review > * {
		order: 4;
	}

	.ab-checkout-page #order_review > .woocommerce-checkout-review-order-table {
		order: 2;
		box-sizing: border-box;
		margin: 0 0 20px !important;
		padding: 0 20px 20px !important;
		border-radius: 0 0 28px 28px !important;
		background: var(--wp--preset--color--accent-5) !important;
	}

	.ab-checkout-page form.checkout > #customer_details {
		order: 3;
		margin-bottom: 20px;
	}

	.ab-checkout-page #order_review > #payment {
		order: 4;
		box-sizing: border-box;
		margin-top: 0 !important;
		padding: 20px !important;
		border-radius: 28px !important;
		background: var(--wp--preset--color--accent-5) !important;
	}
}

/* Без иконата за профил в менюто (WooCommerce я добавя сам) */
.ab-header .wp-block-woocommerce-customer-account {
	display: none !important;
}

/* „Лична:“ пред името на скрит продукт — в червено (вижда се само от администратори) */
.ab-private {
	color: #c62828;
	font-weight: 600;
}
