/*! Paparoni — живі картки · © 2026 Seganiko — https://seganiko.com */
/* Paparoni — живі картки товарів (напої, десерти, соуси). Усе під .ppc / .ppc-sticker, нічого не зачіпає ззовні. */

.ppc, .ppc-sticker {
	--ppc-red: #ff3403;
	--ppc-red-d: #e02a00;
	--ppc-purple: #9825d6;
	--ppc-ink: #161922;
	--ppc-muted: #7d7873;
	--ppc-line: #efe6df;
	--ppc-peach: #fff0e6;
	--ppc-ok: #17a957;
	--ppc-soft: #f7f4f1;
}

.ppc {
	margin: 2px 0 0;
	color: var(--ppc-ink);
	font-family: inherit;
	animation: ppcIn .45s cubic-bezier(.2, .8, .2, 1) both;
}
.ppc *, .ppc *::before, .ppc *::after { box-sizing: border-box; }

@keyframes ppcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ppcPop { 0% { opacity: 0; transform: scale(.6) rotate(-14deg); } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }

/* Опис із картки замінюємо нашим живим текстом. Кнопку «Обрати» не чіпаємо. */
#yith-quick-view-content .summary-content:has(.ppc) .woocommerce-product-details__short-description,
.entry-summary:has(> .ppc) .woocommerce-product-details__short-description { display: none; }
/* під кнопку вже є 80 px від теми (padding у div.summary) — додаємо зовсім трохи, щоб не було «дірки» над кнопкою */
#yith-quick-view-content .summary-content:has(.ppc) { padding-bottom: 14px; }
#yith-quick-view-content [id^="product-"]:has(.ppc-sticker) { position: relative; }

/* ---------- значки ---------- */
.ppc__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ppc-badge {
	display: inline-flex; align-items: center; gap: 6px;
	height: 28px; padding: 0 11px 0 9px; border-radius: 999px;
	font-size: 12.5px; font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: .01em;
}
.ppc-badge .ppc-i { width: 15px; height: 15px; flex: none; }
.ppc-tone--ink    { background: var(--ppc-ink); color: #fff; }
.ppc-tone--red    { background: #ffe8df; color: var(--ppc-red-d); }
.ppc-tone--purple { background: #f3e7fb; color: #7d19b4; }
.ppc-tone--green  { background: #e5f6ec; color: #11863f; }
.ppc-tone--peach  { background: var(--ppc-peach); color: #b4531d; }

/* ---------- текст ---------- */
.ppc__lead {
	margin: 0 0 16px;
	font-family: "Open Sans", sans-serif; font-size: 14px; line-height: 1.55; color: #4a4744;
}

.ppc__sec { margin: 0 0 14px; }
.ppc__h { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; line-height: 1.2; color: var(--ppc-ink); }

/* ---------- перемикач об'єму / смаку ---------- */
.ppc__chips { display: grid; gap: 8px; }
.ppc__chips--size { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ppc__chips--tiles { grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; }

.ppc-chip {
	position: relative; display: flex; align-items: center; gap: 10px;
	min-width: 0; padding: 7px 10px 7px 7px;
	background: #fff; border: 1.5px solid var(--ppc-line); border-radius: 14px;
	color: var(--ppc-ink) !important; text-decoration: none !important;
	transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
	cursor: pointer;
}
a.ppc-chip:hover { border-color: #ffc4ad; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 52, 3, .09); }
a.ppc-chip:focus-visible { outline: 2px solid var(--ppc-red); outline-offset: 2px; }
.ppc-chip.is-on { border-color: var(--ppc-red); background: #fff7f3; box-shadow: 0 0 0 3px rgba(255, 52, 3, .09); cursor: default; }
.ppc-chip img { width: 38px; height: 38px; object-fit: contain; flex: none; border-radius: 8px; mix-blend-mode: multiply; }
.ppc-chip__t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ppc-chip__t b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.ppc-chip__t small { margin-top: 2px; font-size: 11.5px; line-height: 1.2; color: var(--ppc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppc-chip__p { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ppc-chip__p .ppc-i { width: 14px; height: 14px; color: var(--ppc-red); stroke-width: 3; }

.ppc__chips--tiles .ppc-chip {
	flex-direction: column; gap: 3px;
	padding: 7px 4px 8px; text-align: center;
}
.ppc__chips--tiles .ppc-chip img { width: 100%; max-width: 54px; height: 54px; }
.ppc__chips--tiles .ppc-chip__t { align-items: center; width: 100%; }
.ppc__chips--tiles .ppc-chip__t b { font-size: 12px; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.ppc__chips--tiles .ppc-chip__t small { font-size: 10.5px; color: var(--ppc-red-d); }
.ppc__chips--tiles .ppc-chip__p { font-size: 12px; font-weight: 600; color: var(--ppc-muted); }
.ppc__chips--tiles .ppc-chip.is-on .ppc-chip__p { color: var(--ppc-ink); }

/* ---------- головні факти ---------- */
.ppc__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.ppc__facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ppc__facts--4 .ppc-fact { padding: 10px 9px; }
.ppc__facts--4 .ppc-fact > b { font-size: 19px; }
.ppc__facts--4 .ppc-fact--text > b { font-size: 14px; }
.ppc-fact {
	--fi: #b4531d; --fi-bg: #ffe9dc;
	position: relative;
	display: flex; flex-direction: column; justify-content: flex-start;
	min-height: 66px; padding: 10px 12px 11px;
	background: linear-gradient(160deg, var(--fi-bg) 0%, var(--ppc-soft) 58%);
	border: 1px solid rgba(22, 25, 34, .04);
	border-radius: 16px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 6px 14px -12px rgba(22, 25, 34, .35);
}
/* іконка факту: кольорова «фішка» зверху плитки */
.ppc-fact__i {
	display: flex; align-items: center; justify-content: center; flex: none;
	width: 28px; height: 28px; margin: 0 0 7px;
	border-radius: 10px; background: #fff; color: var(--fi);
	box-shadow: 0 3px 8px -4px var(--fi), inset 0 -2px 0 rgba(0, 0, 0, .05);
	font-style: normal;
}
.ppc-fact__i .ppc-i { width: 17px; height: 17px; stroke-width: 2.1; }
.ppc-fact__i .ppc-i--pepper { fill: currentColor; stroke-width: 1.4; }
.ppc-fact--c-blue   { --fi: #1d8fd6; --fi-bg: #e2f1fc; }
.ppc-fact--c-orange { --fi: #f26100; --fi-bg: #ffead9; }
.ppc-fact--c-green  { --fi: #17a957; --fi-bg: #e1f5e8; }
.ppc-fact--c-brown  { --fi: #9b6232; --fi-bg: #f6eadf; }
.ppc-fact--c-purple { --fi: #9825d6; --fi-bg: #f2e5fb; }
.ppc-fact--c-pink   { --fi: #e23d7f; --fi-bg: #fde6ef; }
.ppc-fact--c-teal   { --fi: #0f9e8c; --fi-bg: #ddf5f1; }
.ppc-fact--c-red    { --fi: #ff3403; --fi-bg: #ffe6de; }
.ppc-fact--c-ink    { --fi: #161922; --fi-bg: #ececef; }
.ppc-fact--c-peach  { --fi: #d15700; --fi-bg: #ffeadc; }
.ppc-fact > b { display: flex; align-items: baseline; gap: 3px; font-size: 21px; font-weight: 800; line-height: 1.05; color: var(--ppc-ink); }
.ppc-fact > b small { font-size: 12.5px; font-weight: 700; }
.ppc-fact > span { margin-top: 4px; font-size: 11.5px; line-height: 1.25; color: var(--ppc-muted); }
.ppc-fact--text > b { font-size: 15px; line-height: 1.15; }
.ppc-fact--todo { background: transparent; border: 1.5px dashed #e4d8cf; box-shadow: none; }
.ppc-fact--todo .ppc-fact__i { color: #cdbfb5; box-shadow: none; background: #f7f4f1; }
.ppc-fact--todo > b { color: #cdbfb5; }
.ppc-fact--todo em { display: block; margin-top: 1px; font-style: normal; color: #c0a493; }

.ppc-meter { display: flex !important; align-items: center; gap: 4px; min-height: 22px; }
.ppc-meter i { display: block; width: 11px; height: 11px; border-radius: 50%; background: #e6ddd6; }
.ppc-meter--gas i { width: 9px; height: 9px; border: 2px solid #d9cfc7; background: transparent; }
.ppc-meter--gas i:nth-child(2) { width: 12px; height: 12px; }
.ppc-meter--gas i:nth-child(3) { width: 15px; height: 15px; }
.ppc-meter--gas i.on { border-color: var(--ppc-red); background: rgba(255, 52, 3, .12); }
.ppc-meter--sweet i.on { background: var(--ppc-purple); }
.ppc-meter--heat i { width: auto; height: auto; background: none; border-radius: 0; color: #e2d7cf; line-height: 0; }
.ppc-meter--heat i .ppc-i { width: 19px; height: 19px; fill: currentColor; stroke-width: 1.4; }
.ppc-meter--heat i.on { color: var(--ppc-red); }

/* ---------- склад ---------- */
.ppc__compo {
	margin: 0 0 14px; padding: 0 14px;
	background: #fff; border: 1.5px solid var(--ppc-line); border-radius: 14px;
	transition: border-color .2s;
}
.ppc__compo[open] { border-color: #e7d9ce; }
.ppc__compo summary {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 0; list-style: none; cursor: pointer;
	font-size: 13.5px; font-weight: 700; color: var(--ppc-ink);
}
.ppc__compo summary::-webkit-details-marker { display: none; }
.ppc__compo summary::after {
	content: ""; width: 9px; height: 9px; margin-right: 3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px); transition: transform .25s;
}
.ppc__compo[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.ppc__compo-body { padding: 0 0 12px; animation: ppcIn .3s ease both; }
.ppc__compo-body p { margin: 0 0 10px; font-family: "Open Sans", sans-serif; font-size: 12.5px; line-height: 1.55; color: #4a4744; }
.ppc__compo-body p:last-child { margin-bottom: 0; }
.ppc__warn { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ppc-red-d) !important; }
.ppc__warn .ppc-i { flex: none; }
.ppc__todo { color: var(--ppc-muted) !important; font-style: italic; }
.ppc-allerg { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 0 6px; }
.ppc-allerg__l { display: inline-flex; align-items: center; gap: 5px; margin-right: 2px; font-size: 12.5px; font-weight: 700; color: var(--ppc-red-d); }
.ppc-allerg__l .ppc-i { width: 15px; height: 15px; }
.ppc-allerg__i { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: #ffe8df; color: var(--ppc-red-d); font-size: 12px; font-weight: 700; }
.ppc-allerg--none { gap: 6px; font-size: 12.5px; font-weight: 700; color: #11863f; }
.ppc-allerg--none .ppc-i { width: 15px; height: 15px; stroke-width: 3; }
.ppc-allerg__tr { margin: 0 0 4px !important; font-size: 11.5px !important; color: var(--ppc-muted) !important; }
.ppc-nutr { width: 100%; margin: 0 0 10px; border-collapse: collapse; font-size: 12.5px; }
.ppc-nutr caption { padding: 0 0 4px; text-align: left; font-size: 11.5px; color: var(--ppc-muted); caption-side: top; }
.ppc-nutr td { padding: 6px 0; border-top: 1px solid var(--ppc-line); color: #4a4744; }
.ppc-nutr td:last-child { text-align: right; font-weight: 700; color: var(--ppc-ink); white-space: nowrap; }

/* ---------- разом смакує ---------- */
.ppc__pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.ppc-pair {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0;
	padding: 10px 8px 10px; text-align: center;
	background: #fff; border: 1.5px solid var(--ppc-line); border-radius: 14px;
	color: var(--ppc-ink) !important; text-decoration: none !important;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ppc-pair:hover { border-color: #ffc4ad; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 52, 3, .09); }
.ppc-pair img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; flex: none; }
.ppc-pair__t { display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; }
.ppc-pair__t b { font-size: 12.5px; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ppc-pair__t small { margin-top: 3px; font-size: 11.5px; color: var(--ppc-muted); white-space: nowrap; }
.ppc-pair__go {
	position: absolute; top: 8px; right: 8px;
	display: flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--ppc-red); color: #fff;
	box-shadow: 0 4px 10px rgba(255, 52, 3, .3);
}
.ppc-pair__go .ppc-i { width: 14px; height: 14px; stroke-width: 2.6; }

/* ---------- наліпка на фото ---------- */
.ppc-sticker {
	position: absolute; top: 26px; left: 26px; z-index: 3;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 86px; height: 86px; padding: 6px; border-radius: 50%;
	text-align: center; pointer-events: none;
	box-shadow: 0 10px 24px rgba(22, 25, 34, .14);
	transform: rotate(-8deg);
	animation: ppcPop .55s .12s cubic-bezier(.2, 1.4, .4, 1) both;
}
.ppc-sticker b { font-size: 25px; font-weight: 800; line-height: 1; }
.ppc-sticker span { margin-top: 3px; font-size: 11px; font-weight: 700; line-height: 1.1; }
.ppc-sticker .ppc-i { width: 30px; height: 30px; stroke-width: 1.8; }
.ppc-sticker.ppc-tone--red { background: var(--ppc-red); color: #fff; }
.ppc-sticker.ppc-tone--green { background: var(--ppc-ok); color: #fff; }
.ppc-sticker.ppc-tone--purple { background: var(--ppc-purple); color: #fff; }
.ppc-sticker.ppc-tone--peach { background: #fff; color: #b4531d; border: 2px solid #ffd9c4; }
.ppc-sticker .ppc-i--pepper { fill: currentColor; }

/* ---------- печатка (24.11): хвилястий край, пунктирне кільце, текст по колу ---------- */
.ppc-sticker.ppc-seal {
	width: 104px; height: 104px; padding: 0;
	border: 0; border-radius: 50%;
	background: none; color: #fff;
	box-shadow: none;
	filter: drop-shadow(0 10px 14px rgba(22, 25, 34, .22)) drop-shadow(0 2px 3px rgba(22, 25, 34, .12));
}
.ppc-seal__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ppc-seal__edge { fill: var(--seal, #ff3403); }
.ppc-seal__dash { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1.1; stroke-dasharray: 2.3 2.1; }
.ppc-seal__ring { fill: rgba(0, 0, 0, .07); stroke: rgba(255, 255, 255, .6); stroke-width: .9; }
.ppc-seal__arc { transform-box: view-box; transform-origin: 50% 50%; animation: ppcSpin 30s linear infinite; }
.ppc-seal__arc text { font-size: 6.6px; font-weight: 800; letter-spacing: .4px; fill: #fff; }
/* блік зверху ліворуч — «соковитість» */
.ppc-sticker.ppc-seal::after {
	content: ''; position: absolute; inset: 5%; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 42%);
}
.ppc-seal__c {
	position: relative; z-index: 1;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 60%; line-height: 1; text-align: center;
}
.ppc-sticker.ppc-seal .ppc-seal__c b { font-size: 23px; font-weight: 900; line-height: 1; letter-spacing: -.3px; text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.ppc-sticker.ppc-seal .ppc-seal__c > span { margin-top: 2px; font-size: 9.5px; font-weight: 800; line-height: 1.05; }
.ppc-sticker.ppc-seal .ppc-seal__c .ppc-i { width: 25px; height: 25px; stroke-width: 2.2; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .15)); }
@keyframes ppcSpin { to { transform: rotate(360deg); } }

/* Плавна заміна вмісту, коли перемикаємо об'єм / смак у вікні. */
.ppc.is-switching { opacity: .45; transition: opacity .15s; pointer-events: none; }

@media (max-width: 768px) {
	.ppc__lead { font-size: 13.5px; }
	.ppc-fact { min-height: 60px; padding: 9px 10px; }
	.ppc-fact > b { font-size: 18px; }
	/* на телефоні шапка сайту перекриває верх вікна — наліпку опускаємо нижче */
	.ppc-sticker { top: 74px; left: 14px; width: 68px; height: 68px; }
	.ppc-sticker.ppc-seal { width: 82px; height: 82px; }
	.ppc-sticker.ppc-seal .ppc-seal__c b { font-size: 18px; }
	.ppc-sticker.ppc-seal .ppc-seal__c > span { font-size: 8px; }
	.ppc-sticker.ppc-seal .ppc-seal__c .ppc-i { width: 20px; height: 20px; }
	.ppc-fact__i { width: 24px; height: 24px; margin-bottom: 5px; border-radius: 8px; }
	.ppc-fact__i .ppc-i { width: 15px; height: 15px; }
	.ppc-sticker b { font-size: 20px; }
	.ppc-sticker span { font-size: 9.5px; }
	.ppc-sticker .ppc-i { width: 24px; height: 24px; }
}

/* вузький телефон: 4 факти — сіткою 2×2, щоб «≈270 ккал» не тіснилось */
@media (max-width: 480px) {
	.ppc__facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.ppc, .ppc-sticker, .ppc__compo-body, .ppc-seal__arc { animation: none; }
	.ppc-sticker { transform: rotate(-8deg); }
}
