/* Product detail redesign (PREVIEW) — "the candy counter ticket".
   Loaded after products-slug.css and scoped to .pdp2, so the live page is
   untouched. Brand: ink #18120c, red #d21e2a, cream #fcf6ea, yellow #fbbf24,
   Bebas Neue for display, Oswald for labels, Inter for reading. */

.pdp2 {
	--ink: var(--retro-navy, #18120c);
	--red: var(--retro-red, #d21e2a);
	--cream: var(--retro-cream, #fcf6ea);
	--sun: var(--retro-yellow, #fbbf24);
	--paper: #fffdf8;
	--muted: #6f6253;
	--line: #e6dccb;
	background:
		radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.13), transparent 38%),
		radial-gradient(circle at 92% 18%, rgba(210, 30, 42, 0.07), transparent 34%),
		var(--cream);
	padding-bottom: 3rem;
}

/* ── breadcrumbs ───────────────────────────────────────────────────────── */
.pdp2-crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; padding: 1.1rem 0 1rem; font: 600 0.78rem/1.3 var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pdp2-crumbs a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed rgba(24, 18, 12, 0.35); }
.pdp2-crumbs a:hover { color: var(--red); border-bottom-color: var(--red); }
.pdp2-crumbs [aria-current] { color: var(--muted); max-width: 32ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── hero: gallery + ticket ───────────────────────────────────────────── */
.pdp2-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }

.pdp2-gallery { position: sticky; top: 92px; animation: pdp2-rise 0.5s ease both; }
.pdp2-stage { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 9px 9px 0 var(--ink); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.pdp2-stage img { width: 88%; height: 88%; object-fit: contain; transition: transform 0.35s ease; }
.pdp2-stage:hover img { transform: scale(1.06); }
.pdp2-sticker { position: absolute; top: 16px; right: 16px; z-index: 2; width: 86px; height: 86px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); display: grid; place-content: center; text-align: center; font: 700 0.72rem/1.05 var(--font-heading); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); transform: rotate(12deg); box-shadow: 3px 3px 0 var(--ink); }
.pdp2-sticker b { font: 400 1.7rem/1 var(--font-display); color: var(--red); display: block; }
.pdp2-thumbs { display: flex; gap: 0.6rem; margin-top: 1.1rem; overflow-x: auto; padding: 0 4px 6px 0; }
.pdp2-thumbs .thumbnail { flex: 0 0 76px; height: 76px; padding: 4px; background: #fff; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.pdp2-thumbs .thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.pdp2-thumbs .thumbnail:hover { transform: translateY(-2px); }
.pdp2-thumbs .thumbnail.selected { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

/* The ticket */
.pdp2-ticket { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 9px 9px 0 var(--red); animation: pdp2-rise 0.5s 0.08s ease both; }
.pdp2-ticket-top { padding: 1.6rem 1.7rem 1.3rem; }
.pdp2-ticket-body { padding: 1.3rem 1.7rem 1.6rem; }
.pdp2-perf { position: relative; height: 0; border-top: 3px dashed var(--ink); margin: 0 1.2rem; }
.pdp2-perf::before, .pdp2-perf::after { content: ""; position: absolute; top: -15px; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); border: 3px solid var(--ink); }
.pdp2-perf::before { left: -36px; clip-path: inset(0 0 0 50%); }
.pdp2-perf::after { right: -36px; clip-path: inset(0 50% 0 0); }

.pdp2-brand { display: inline-block; font: 700 0.8rem/1 var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); text-decoration: none; padding: 0.35rem 0.6rem; border: 2px solid var(--red); border-radius: 999px; }
.pdp2-brand:hover { background: var(--red); color: #fff; }
.pdp2-title { font: 400 clamp(2.1rem, 3.4vw, 3rem)/0.98 var(--font-display); letter-spacing: 0.01em; color: var(--ink); margin: 0.75rem 0 0.8rem; text-wrap: balance; }

.pdp2-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; padding: 0; }
.pdp2-proof li { font: 600 0.78rem/1 var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.45rem 0.7rem; }
.pdp2-proof li b { color: var(--red); }
.pdp2-stock p { margin: 0; display: inline; color: #0f7a46; font-weight: 700; }
.pdp2-stock p + p { display: none; }
.pdp2-stock .low-stock-text { color: #b45309; }
.pdp2-stock .sold-out-text { color: var(--red); }

.pdp2-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 0.9rem; margin-bottom: 1.1rem; }
.pdp2-price { font: 400 3.4rem/0.9 var(--font-display); color: var(--ink); background: var(--sun); padding: 0.3rem 0.8rem 0.15rem; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1.5deg); }
.pdp2-was { font: 600 1.05rem var(--font-heading); color: var(--muted); }
.pdp2-ship-pill { font: 700 0.78rem/1 var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: #0f7a46; padding: 0.5rem 0.75rem; border-radius: 6px; }

.pdp2-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pdp2-highlights li { position: relative; padding-left: 1.7rem; font-size: 0.93rem; line-height: 1.45; color: #3b3129; }
.pdp2-highlights li::before { content: "✓"; position: absolute; left: 0; top: 0.05rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--ink); color: var(--sun); font: 700 0.7rem/1.15rem var(--font-body); text-align: center; }
.pdp2-highlights b { color: var(--ink); }

.pdp2-label { font: 700 0.82rem/1 var(--font-heading); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.6rem; }
.pdp2-label span { color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: none; font-family: var(--font-body); font-size: 0.78rem; margin-left: 0.3rem; }

/* variations, restyled */
.pdp2-variations { margin-bottom: 1.2rem; }
.pdp2 .tiktok-variation-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.45rem; max-height: 300px; overflow-y: auto; padding: 4px 6px 6px 2px; }
.pdp2 .tiktok-var-card { border: 2px solid var(--line); border-radius: 10px; background: #fff; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.pdp2 .tiktok-var-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.pdp2 .tiktok-var-card.active { border-color: var(--ink); box-shadow: 3px 3px 0 var(--red); }

/* bundle & save */
.pdp2-bundles { margin-bottom: 1.2rem; }
.pdp2-bundle-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 0.55rem; }
.pdp2-bundle { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 0.7rem 0.75rem; background: #fff; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.pdp2-bundle:hover { transform: translateY(-2px); border-color: var(--ink); }
.pdp2-bundle.is-on { border-color: var(--ink); background: #fff8e3; box-shadow: 4px 4px 0 var(--ink); }
.pdp2-bundle-qty { font: 700 0.78rem/1 var(--font-heading); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pdp2-bundle-total { font: 400 1.7rem/1 var(--font-display); color: var(--ink); }
.pdp2-bundle-save { font: 700 0.72rem/1.2 var(--font-body); color: #0f7a46; }
.pdp2-bundle-save s { color: var(--muted); font-weight: 500; margin-left: 0.2rem; }
.pdp2-bundle-save.is-plain { color: var(--muted); font-weight: 500; }

/* buy row */
.pdp2-buy { display: flex; gap: 0.7rem; align-items: stretch; margin-bottom: 1.2rem; }
.pdp2-qty { margin: 0; display: flex; align-items: center; gap: 0.5rem; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 0 0.6rem; }
.pdp2-qty .quantity-label { font: 700 0.75rem var(--font-heading); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pdp2-qty .quantity-buttons { gap: 0.2rem; }
.pdp2 .pdp2-add { flex: 1; margin: 0; min-height: 3.6rem; font: 400 1.65rem/1 var(--font-display); letter-spacing: 0.06em; background: var(--red); color: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s; position: relative; overflow: hidden; }
.pdp2 .pdp2-add:not(:disabled):hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.pdp2 .pdp2-add:not(:disabled):active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.pdp2 .pdp2-add::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%); transform: translateX(-100%); animation: pdp2-shine 4.5s 1.2s ease-in-out infinite; }
.pdp2 .pdp2-add:disabled::after { display: none; }

.pdp2-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.pdp2-trust li { display: grid; grid-template-columns: auto 1fr; column-gap: 0.55rem; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.6rem 0.7rem; }
.pdp2-ico { grid-row: span 2; font-size: 1.25rem; }
.pdp2-trust b { font: 700 0.8rem/1.2 var(--font-heading); color: var(--ink); text-transform: uppercase; letter-spacing: 0.03em; }
.pdp2-trust span:not(.pdp2-ico) { font-size: 0.74rem; color: var(--muted); line-height: 1.3; }

/* ── details ──────────────────────────────────────────────────────────── */
.pdp2-details { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.6rem; margin-top: 3rem; align-items: start; }
.pdp2-panel { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 1.6rem 1.7rem; box-shadow: 6px 6px 0 var(--ink); }
.pdp2-h2 { font: 400 2rem/1 var(--font-display); letter-spacing: 0.02em; color: var(--ink); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem; }
.pdp2-h2::before { content: ""; width: 14px; height: 14px; background: var(--red); border: 2px solid var(--ink); transform: rotate(45deg); flex: 0 0 auto; }

.pdp2-scoop-body { position: relative; font-size: 0.95rem; line-height: 1.65; color: #3b3129; }
.pdp2-scoop-body h2, .pdp2-scoop-body h3, .pdp2-scoop-body h4 { font: 700 1.05rem var(--font-heading); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin: 1.4rem 0 0.4rem; }
.pdp2-scoop-body ul { padding-left: 1.2rem; margin: 0.5rem 0 0.9rem; }
.pdp2-scoop-body li { margin: 0.2rem 0; }
.pdp2-scoop-body.is-folded { max-height: 520px; overflow: hidden; }
.pdp2-scoop-body.is-folded::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to bottom, rgba(255, 253, 248, 0), var(--paper)); }
.pdp2-more { margin-top: 0.8rem; font: 700 0.85rem var(--font-heading); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 8px; padding: 0.6rem 1rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }

.pdp2-specs table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.pdp2-specs th { text-align: left; font: 700 0.75rem var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0.6rem 0.8rem 0.6rem 0; width: 42%; vertical-align: top; }
.pdp2-specs td { padding: 0.6rem 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.pdp2-specs tr + tr { border-top: 1.5px dashed var(--line); }
.pdp2-specs a { color: var(--red); }
.pdp2-ingredients { margin-top: 1rem; border-top: 3px solid var(--ink); padding-top: 0.8rem; }
.pdp2-ingredients summary, .pdp2-faq summary { cursor: pointer; font: 700 0.95rem var(--font-heading); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.pdp2-ingredients summary::-webkit-details-marker, .pdp2-faq summary::-webkit-details-marker { display: none; }
.pdp2-ingredients summary::after, .pdp2-faq summary::after { content: "+"; font: 400 1.5rem/0.8 var(--font-display); color: var(--red); transition: transform 0.2s; }
.pdp2-ingredients[open] summary::after, .pdp2-faq details[open] summary::after { transform: rotate(45deg); }
.pdp2-ingredients p { font-size: 0.82rem; line-height: 1.55; color: #4b4037; }

.pdp2-faq { margin-top: 1.6rem; }
.pdp2-faq details { border-top: 1.5px dashed var(--line); padding: 0.95rem 0; }
.pdp2-faq details:first-of-type { border-top: 0; }
.pdp2-faq p { margin: 0.6rem 0 0; font-size: 0.92rem; line-height: 1.6; color: #3b3129; max-width: 75ch; }

.pdp2-related { margin-top: 2.6rem; }
.pdp2-related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem 1.5rem; margin-bottom: 1.2rem; }
.pdp2-related-head .pdp2-h2 { margin: 0; }
.pdp2-related-deal { margin: 0; font-size: 0.9rem; color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 0.45rem 0.9rem; }

/* ── sticky buy bar (all sizes) ───────────────────────────────────────── */
.pdp2 .pdp2-bar { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 160%); z-index: 90; display: flex; align-items: center; gap: 0.8rem; width: min(760px, calc(100% - 24px)); padding: 0.6rem 0.7rem 0.6rem 0.6rem; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); transition: transform 0.3s ease; }
.pdp2 .pdp2-bar.is-shown { transform: translate(-50%, 0); }
.pdp2-bar-img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; border: 1.5px solid var(--line); flex: 0 0 auto; }
.pdp2 .pdp2-bar .buy-bar-info { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 0.15rem; }
.pdp2 .pdp2-bar .buy-bar-title { font: 700 0.85rem/1.2 var(--font-heading); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp2 .pdp2-bar .buy-bar-price { font: 400 1.35rem/1 var(--font-display); color: var(--red); }
.pdp2 .pdp2-bar .buy-bar-btn { flex: 0 0 auto; background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 0.75rem 1.2rem; font: 400 1.25rem/1 var(--font-display); letter-spacing: 0.06em; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.pdp2 .pdp2-bar .buy-bar-btn:disabled { background: #ccc; color: #666; }

@keyframes pdp2-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pdp2-shine { 0%, 70% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .pdp2 * { animation: none !important; transition: none !important; } }

/* ── tablet / phone ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
	.pdp2-hero, .pdp2-details { grid-template-columns: 1fr; }
	.pdp2-gallery { position: static; }
}
@media (max-width: 600px) {
	.pdp2 .container { padding: 0 1rem; }
	.pdp2-crumbs { font-size: 0.7rem; padding: 0.8rem 0; }
	.pdp2-stage { box-shadow: 6px 6px 0 var(--ink); border-radius: 14px; }
	.pdp2-sticker { width: 70px; height: 70px; top: 10px; right: 10px; font-size: 0.62rem; }
	.pdp2-sticker b { font-size: 1.35rem; }
	.pdp2-ticket { box-shadow: 6px 6px 0 var(--red); }
	.pdp2-ticket-top, .pdp2-ticket-body { padding-left: 1.1rem; padding-right: 1.1rem; }
	.pdp2-title { font-size: 2.15rem; }
	.pdp2-price { font-size: 2.8rem; }
	.pdp2-bundle-row { grid-auto-flow: row; grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
	.pdp2-bundle { padding: 0.55rem 0.5rem; }
	.pdp2-bundle-total { font-size: 1.35rem; }
	.pdp2-bundle-save s { display: block; margin: 0; }
	.pdp2-trust { grid-template-columns: 1fr; }
	.pdp2 .tiktok-variation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 270px; }
	.pdp2-qty .quantity-label { display: none; }
	.pdp2-qty { padding: 0 0.35rem; }
	.pdp2 .pdp2-add { font-size: 1.4rem; white-space: nowrap; min-height: 3.3rem; }
	.pdp2-panel { padding: 1.2rem 1.1rem; box-shadow: 5px 5px 0 var(--ink); }
	.pdp2 .pdp2-bar { bottom: 0; width: 100%; border-radius: 14px 14px 0 0; border-width: 3px 0 0; box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.15); padding-bottom: calc(0.6rem + env(safe-area-inset-bottom)); transform: translate(-50%, 0); }
	.pdp2-bar-img { display: none; }
	.pdp2 { padding-bottom: 5.5rem; }
}

.pdp2-range-note { margin: -0.4rem 0 1rem; font-size: 0.85rem; color: var(--muted); background: #fff8e3; border-left: 4px solid var(--sun); padding: 0.55rem 0.8rem; border-radius: 0 8px 8px 0; }
