/*! Paparoni — живі картки · кнопки «Обрати» · © 2026 Seganiko — https://seganiko.com */
/*
 * Paparoni — об'ємні кнопки «Обрати» (24.11, тест ?v=newcard).
 * Та сама мова, що в кошику й на оформленні: персикова «таблетка» з бортиком — у списку товарів,
 * головна дія (вікно товару, сторінка товару) — фіолетова з білою фішкою-пакетом і відблиском; натиск — кнопка просідає.
 * Іконки — псевдоелементи: тема щосекунди переписує текст кнопки, а ::before/::after від цього не зникають.
 * !important — бо тема (BeTheme + «button-custom») сама ставить !important на кнопки.
 */
body.ppc-on {
	--pb-peach: linear-gradient(180deg, #fff8f2 0%, #ffe2cc 100%);
	--pb-peach-h: linear-gradient(180deg, #fff1e5 0%, #ffd6b8 100%);
	--pb-peach-edge: #efbb94;
	--pb-orange: #d15700;
	--pb-on: linear-gradient(180deg, #ab40ea 0%, #8f1fce 100%);
	--pb-on-edge: #65108f;
	--pb-on-glow: rgba(152, 37, 214, .8);
	--pb-ease: cubic-bezier(.2, .8, .2, 1);
	--pb-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2470a' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
	--pb-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f1fce' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
	--pb-shine: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .38) 50%, rgba(255, 255, 255, 0) 100%);
}
@keyframes pb-shine {
	0% { transform: translateX(-140%) skewX(-18deg); }
	55%, 100% { transform: translateX(420%) skewX(-18deg); }
}

/* ══ Список товарів (головна, розділи): «Обрати» — персикова об'ємна з фішкою «+» ═══════════════════ */
/* Тема ставить кнопку абсолютно на left:72px від початку тексту, тобто під коротку ціну. «360,00 ₴» ширша —
   кнопка налазила на «₴» (26.11, скарга клієнта з телефона). Повертаємо кнопку в рядок одразу за ціною:
   стоїть праворуч від ціни будь-якої довжини, а якщо не вміщається — переноситься нижче, але не перекриває. */
body.ppc-on ul.products li.product .desc > .price {
	width: auto !important;
	margin: 0 10px 0 0 !important;
	align-self: center;
}
body.ppc-on ul.products li.product .desc > .mfn-li-product-row.mfn-li-product-row-button.show-button {
	position: static !important;
	left: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	align-self: center;
}
body.ppc-on ul.products li.product .mfn-li-product-row-button a.button {
	position: relative !important;
	padding: 7px 16px 7px 33px !important;
	margin-bottom: 3px !important;
	line-height: 18px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--pb-orange) !important;
	background: var(--pb-peach) !important;
	border: 1px solid #f7d2b6 !important;
	border-radius: 9999px !important;
	box-shadow: 0 3px 0 var(--pb-peach-edge), 0 9px 14px -9px rgba(209, 87, 0, .55) !important;
	transform: translateY(0);
	transition: transform .12s var(--pb-ease), box-shadow .12s var(--pb-ease), background .2s !important;
	-webkit-tap-highlight-color: transparent;
	white-space: nowrap;
}
body.ppc-on ul.products li.product .mfn-li-product-row-button a.button::before {
	content: '';
	position: absolute;
	left: 5px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	border-radius: 50%;
	background: #fff var(--pb-plus) center / 12px 12px no-repeat;
	box-shadow: 0 2px 5px -2px rgba(209, 87, 0, .55);
	transition: transform .25s var(--pb-ease);
}
@media (hover: hover) {
	body.ppc-on ul.products li.product .mfn-li-product-row-button a.button:hover {
		color: var(--pb-orange) !important;
		background: var(--pb-peach-h) !important;
		transform: translateY(-1px);
		box-shadow: 0 4px 0 var(--pb-peach-edge), 0 12px 16px -9px rgba(209, 87, 0, .6) !important;
	}
	body.ppc-on ul.products li.product .mfn-li-product-row-button a.button:hover::before { transform: rotate(90deg) scale(1.08); }
}
body.ppc-on ul.products li.product .mfn-li-product-row-button a.button:active {
	transform: translateY(3px) !important;
	box-shadow: 0 0 0 var(--pb-peach-edge), 0 3px 6px -4px rgba(209, 87, 0, .5) !important;
}

/* ══ Вікно товару й сторінка товару: «Обрати N ₴» — фіолетова об'ємна, фішка з пакетом, відблиск ═════ */
body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button,
body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button {
	overflow: hidden !important;
	height: 52px !important;
	min-height: 52px !important;
	padding: 0 58px !important;
	line-height: 52px !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	letter-spacing: .1px;
	color: #fff !important;
	background: var(--pb-on) !important;
	border: 0 !important;
	border-radius: 9999px !important;
	box-shadow: 0 5px 0 var(--pb-on-edge), 0 18px 30px -14px var(--pb-on-glow) !important;
	transform: translateY(0);
	transition: transform .12s var(--pb-ease), box-shadow .12s var(--pb-ease), filter .2s, opacity .2s !important;
	-webkit-tap-highlight-color: transparent;
	white-space: nowrap;
	text-align: center;
}
/* кнопка «плаває» внизу (position: fixed у темі) — піднімаємо на висоту бортика, щоб його було видно */
body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button { bottom: 21px !important; }
/* ppc.js рахує низ САМОГО вікна (не екрана) — кнопка завжди притиснута до низу вікна товару */
body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button.ppc-pinned {
	top: var(--ppc-qv-top) !important;
	bottom: auto !important;
	left: var(--ppc-qv-left) !important;
	margin: 0 !important;
}
body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button { min-width: 280px; }
/* телефон: тема лишає 150 px порожнечі під вмістом вікна (місце під кнопку) — трохи менше, щоб кнопка була ближче */
@media (max-width: 768px) {
	body.ppc-on #yith-quick-view-content div.summary { padding-bottom: 86px !important; }
}

/*
 * Підкладка під кнопкою (.ppc-qv-dock, додає ppc.js останнім елементом колонки): біла смуга, «прилипла» до низу
 * вікна. Те, що прокручується, плавно тане над кнопкою й зникає під нею — під кнопкою та по боках нічого не видно.
 * Вона займає рівно те місце, що раніше давав нижній відступ колонки (80 px / телефон 86 px), тому в кінці
 * прокрутки все стоїть як було. Для живих карток (.ppc) підкладка заходить ще на їхні 14 px відступу — довше «тане».
 */
body.ppc-on #yith-quick-view-content div.summary.ppc-docked { padding-bottom: 0 !important; }
body.ppc-on #yith-quick-view-content div.summary > .ppc-qv-dock {
	--dock-h: 80px;
	--dock-fade: 10px;
	position: -webkit-sticky;
	position: sticky;
	bottom: 0;
	z-index: 20;
	display: block;
	clear: both;
	height: var(--dock-h);
	margin: 0 -30px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, #fff var(--dock-fade), #fff 100%);
}
body.ppc-on #yith-quick-view-content div.summary > .summary-content:has(.ppc) ~ .ppc-qv-dock {
	--dock-h: 94px;
	--dock-fade: 24px;
	margin-top: -14px;
}
/* піца: у теми під кнопкою своя біла плашка (.quantity, fixed) — вона різала добавки рівною лінією посеред цін;
   додаємо їй над верхнім краєм таке ж плавне «танення» */
@media (min-width: 769px) {
	body.ppc-on #yith-quick-view-modal #yith-quick-view-content .product div.entry-summary .cart .quantity::before {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: 22px;
		background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
		pointer-events: none;
	}
}
@media (max-width: 768px) {
	body.ppc-on #yith-quick-view-content div.summary > .ppc-qv-dock { --dock-h: 86px; --dock-fade: 14px; margin-left: -20px; margin-right: -20px; }
	body.ppc-on #yith-quick-view-content div.summary > .summary-content:has(.ppc) ~ .ppc-qv-dock { --dock-h: 100px; --dock-fade: 28px; }
}

/*
 * Смуга прокрутки у вікні: замість широкої сірої (15 px, біля самого хрестика, обрізана кутом вікна) —
 * тонка фіолетова «пігулка» у кольорах сайту. Починається нижче хрестика й закінчується над кнопкою,
 * ледь помітна, яскравішає, коли курсор над вікном. На телефонах не чіпаємо — там своя тонка смуга, що ховається сама.
 */
@media (min-width: 769px) {
	body.ppc-on #yith-quick-view-content div.summary { scrollbar-width: auto; scrollbar-color: auto; }
}
@media (max-width: 768px) and (hover: hover) and (pointer: fine) {
	body.ppc-on #yith-quick-view-modal .yith-wcqv-main { scrollbar-width: auto; scrollbar-color: auto; }
}
@media (min-width: 769px) {
	body.ppc-on #yith-quick-view-content div.summary::-webkit-scrollbar { width: 12px; height: 0; background: transparent; }
	body.ppc-on #yith-quick-view-content div.summary::-webkit-scrollbar-track { background: transparent; margin: 60px 0 84px; }
	body.ppc-on #yith-quick-view-content div.summary::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
	body.ppc-on #yith-quick-view-content div.summary::-webkit-scrollbar-thumb {
		min-height: 44px;
		border: 3px solid transparent;
		border-radius: 99px;
		background-color: rgba(143, 31, 206, .2);
		background-clip: padding-box;
	}
	body.ppc-on #yith-quick-view-content div.summary:hover::-webkit-scrollbar-thumb { background-color: rgba(143, 31, 206, .42); }
	body.ppc-on #yith-quick-view-content div.summary::-webkit-scrollbar-thumb:hover,
	body.ppc-on #yith-quick-view-content div.summary::-webkit-scrollbar-thumb:active { background-color: rgba(143, 31, 206, .7); }
}
/* вузьке вікно на комп'ютері: там прокручується весь вміст вікна, а не колонка */
@media (max-width: 768px) and (hover: hover) and (pointer: fine) {
	body.ppc-on #yith-quick-view-modal .yith-wcqv-main::-webkit-scrollbar { width: 12px; height: 0; background: transparent; }
	body.ppc-on #yith-quick-view-modal .yith-wcqv-main::-webkit-scrollbar-track { background: transparent; margin: 12px 0 92px; }
	body.ppc-on #yith-quick-view-modal .yith-wcqv-main::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
	body.ppc-on #yith-quick-view-modal .yith-wcqv-main::-webkit-scrollbar-thumb {
		min-height: 44px;
		border: 3px solid transparent;
		border-radius: 99px;
		background-color: rgba(143, 31, 206, .28);
		background-clip: padding-box;
	}
	body.ppc-on #yith-quick-view-modal .yith-wcqv-main::-webkit-scrollbar-thumb:hover,
	body.ppc-on #yith-quick-view-modal .yith-wcqv-main::-webkit-scrollbar-thumb:active { background-color: rgba(143, 31, 206, .7); }
}
/* Firefox (без ::-webkit-scrollbar) — стандартна тонка смуга того ж кольору */
@supports not selector(::-webkit-scrollbar) {
	@media (min-width: 769px) {
		body.ppc-on #yith-quick-view-content div.summary { scrollbar-width: thin; scrollbar-color: rgba(143, 31, 206, .38) transparent; }
	}
	@media (max-width: 768px) and (hover: hover) and (pointer: fine) {
		body.ppc-on #yith-quick-view-modal .yith-wcqv-main { scrollbar-width: thin; scrollbar-color: rgba(143, 31, 206, .38) transparent; }
	}
}

body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button::before,
body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button::before {
	content: '' !important;
	position: absolute !important;
	left: 7px;
	top: 50%;
	width: 38px !important;
	height: 38px !important;
	margin-top: -19px;
	border-radius: 50%;
	background: #fff var(--pb-bag) center / 20px 20px no-repeat !important;
	box-shadow: 0 3px 8px -3px rgba(60, 8, 90, .55);
	opacity: 1 !important;
	transition: transform .2s var(--pb-ease);
}
body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button::after,
body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button::after {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 32% !important;
	height: auto !important;
	margin: 0 !important;
	background: var(--pb-shine) !important;
	opacity: 1 !important;
	pointer-events: none;
	animation: pb-shine 3.8s ease-in-out 1.2s infinite;
}
@media (hover: hover) {
	body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button:hover,
	body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button:hover {
		color: #fff !important;
		background: var(--pb-on) !important;
		filter: brightness(1.06);
		transform: translateY(-1px);
		box-shadow: 0 6px 0 var(--pb-on-edge), 0 22px 34px -14px var(--pb-on-glow) !important;
	}
	body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button:hover::before,
	body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button:hover::before { transform: scale(1.1) rotate(-8deg); }
}
body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button:active,
body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button:active {
	transform: translateY(4px) !important;
	box-shadow: 0 1px 0 var(--pb-on-edge), 0 6px 10px -6px var(--pb-on-glow) !important;
}
/* ще не обрано розмір / йде додавання в кошик — без відблиску, бортик сіруватий */
body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button.disabled,
body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button.loading,
body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button.disabled,
body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button.loading {
	transform: none !important;
	box-shadow: 0 4px 0 #b8a3c7 !important;
}
body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button.disabled::after,
body.ppc-on #yith-quick-view-content div.summary button.single_add_to_cart_button.loading::after,
body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button.disabled::after,
body.ppc-on.single-product div.product div.entry-summary form.cart button.single_add_to_cart_button.loading::after { animation: none; opacity: 0 !important; }

@media (prefers-reduced-motion: reduce) {
	body.ppc-on #yith-quick-view-content button.single_add_to_cart_button::after,
	body.ppc-on.single-product button.single_add_to_cart_button::after { animation: none !important; opacity: 0 !important; }
	body.ppc-on ul.products li.product .mfn-li-product-row-button a.button,
	body.ppc-on button.single_add_to_cart_button { transition: none !important; }
}
