/* Developer: Benedict O. */
/* Z!MA inner pages: product page, Care pages and the brewing guide. Loads after pour.css and reuses its tokens and the .ph scroll animation. */

/* ===== A. Product page: sticky gallery, staggered entrance, buy box, ritual strip, related blends ===== */
.pour-pdp .pdp { padding: 36px 0 104px; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: start; }

/* Gallery */
.pdp-gallery { position: sticky; top: 104px; }
.pdp-stage { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--pour-forest); animation: pdp-reveal 1s cubic-bezier(.2, .7, .2, 1) both; }
.pdp-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.pdp-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pour-pdp .pdp-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .pdp-stage:hover .pdp-slide.is-on img { transform: scale(1.05); } }
.pdp-thumbs { display: flex; gap: 12px; margin-top: 16px; animation: pdp-rise .8s .35s cubic-bezier(.2, .7, .2, 1) both; }
.pour-pdp .pdp-thumb { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 16px; overflow: hidden; background: var(--pour-surface); cursor: pointer; opacity: .65; transition: opacity .25s, border-color .25s, transform .25s; }
.pour-pdp .pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pour-pdp .pdp-thumb:hover { opacity: 1; transform: translateY(-2px); }
.pour-pdp .pdp-thumb.is-on { opacity: 1; border-color: var(--pour-accent); }
.pour-pdp .pdp-thumb:focus-visible { outline: 2px solid var(--pour-accent); outline-offset: 3px; }

/* Info column: each piece rises in one after another on load */
.pdp-info > * { animation: pdp-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.pdp-info > :nth-child(1) { animation-delay: .05s; }
.pdp-info > :nth-child(2) { animation-delay: .12s; }
.pdp-info > :nth-child(3) { animation-delay: .19s; }
.pdp-info > :nth-child(4) { animation-delay: .26s; }
.pdp-info > :nth-child(5) { animation-delay: .32s; }
.pdp-info > :nth-child(6) { animation-delay: .38s; }
.pdp-info > :nth-child(7) { animation-delay: .44s; }
.pdp-info > :nth-child(8) { animation-delay: .50s; }
.pdp-info > :nth-child(9) { animation-delay: .56s; }
.pdp-info > :nth-child(10) { animation-delay: .62s; }
.pdp-info > :nth-child(11) { animation-delay: .68s; }
@keyframes pdp-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pdp-reveal { from { opacity: 0; transform: scale(1.04); clip-path: inset(6% 6% 6% 6% round 28px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 28px); } }

.pdp-crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 30px; font: 600 11px/1.4 var(--pour-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pour-muted); }
.pdp-crumbs a:hover { color: #8A6420; }
.pour .pdp-info .pdp-eyebrow { display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--pour-sans); letter-spacing: .18em; text-transform: uppercase; color: #8A6420; }
.pdp-badge { padding: 7px 14px; border-radius: 9999px; background: var(--pour-forest); color: #FDF9F0; letter-spacing: .14em; }
.pour .pdp-info h1 { margin-top: 18px; font: 400 clamp(44px, 5vw, 72px)/1.04 var(--pour-serif); letter-spacing: -.025em; color: var(--pour-forest-deep); }
.pour .pdp-info .pdp-price { margin-top: 18px; font: 500 34px/1 var(--pour-serif); color: #8A6420; }
.pdp-price > span { font: 600 11px/1 var(--pour-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pour-muted); } /* only the "a box" label, not the amount WooCommerce wraps in its own spans */
.pdp-price .woocommerce-Price-amount, .pdp-price .woocommerce-Price-currencySymbol { font: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.pour .pdp-info .pdp-taste { margin-top: 14px; font: italic 400 22px/1.3 var(--pour-serif); color: var(--pour-forest); }
.pour .pdp-info .pdp-rule { display: block; width: 40px; height: 1px; margin: 26px 0; background: var(--pour-accent); }
.pour .pdp-info .pdp-story { max-width: 46ch; font-size: 17px; line-height: 1.75; color: var(--pour-muted); }
.pdp-notices:empty { display: none; }
.pdp-notices { margin-top: 22px; }
.pdp-notices .woocommerce-message, .pdp-notices .woocommerce-error, .pdp-notices .woocommerce-info { list-style: none; margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--pour-surface); border: 1px solid var(--pour-line); font-size: 14px; }
.pdp-notices .woocommerce-message a { color: #8A6420; font-weight: 600; }

/* Buy box */
.pdp-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-top: 30px; }
.pdp-qty { display: inline-flex; align-items: center; border: 1px solid var(--pour-line); border-radius: 9999px; background: #fff; }
.pour-pdp .pdp-qty button { width: 46px; height: 54px; border: 0; background: transparent; font: 400 22px/1 var(--pour-sans); color: var(--pour-forest-deep); cursor: pointer; transition: color .2s; }
.pour-pdp .pdp-qty button:hover { color: #8A6420; }
.pour-pdp .pdp-qty input { width: 44px; height: 54px; border: 0; background: transparent; text-align: center; font: 600 16px/1 var(--pour-sans); color: var(--pour-ink); -moz-appearance: textfield; appearance: textfield; padding: 0; }
.pdp-qty input::-webkit-outer-spin-button, .pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pour .pdp-buy__add { flex: 1 1 220px; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 9999px; background: var(--pour-forest); color: #FDF9F0; font: 600 12px/1 var(--pour-sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .25s, transform .25s; }
.pour .pdp-buy__add:hover { background: var(--pour-forest-deep); transform: translateY(-2px); color: #FDF9F0; }
.pour .pdp-buy__add:active { transform: none; }
.pour .pdp-buy__add.is-busy { opacity: .7; pointer-events: none; }
.pdp-buy__add:focus-visible, .pdp-qty:focus-within { outline: 2px solid var(--pour-accent); outline-offset: 3px; }

.pdp-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--pour-line); }
.pdp-facts li { padding: 22px 14px 0 18px; border-left: 1px solid var(--pour-line); }
.pdp-facts li:first-child { padding-left: 0; border-left: 0; }
.pdp-facts strong { display: block; font: 500 24px/1.2 var(--pour-serif); color: var(--pour-forest-deep); }
.pdp-facts span { display: block; margin-top: 6px; font: 600 10px/1.5 var(--pour-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--pour-muted); }
.pour .pdp-info .pdp-links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; font: 600 11px/1 var(--pour-sans); letter-spacing: .14em; text-transform: uppercase; }
.pdp-links a { color: #8A6420; border-bottom: 1px solid rgba(138, 100, 32, .35); padding-bottom: 6px; }
.pdp-links a:hover { border-color: #8A6420; }

/* Ritual strip and related blends reuse the shop pieces */
.pdp-ritual { padding: 96px 0 104px; }
.pour-pdp .shop-steep__head h2 { font: 400 clamp(36px, 4.2vw, 56px)/1.08 var(--pour-serif); color: #FDF9F0; }
.pour-pdp .pdp-ritual em { color: var(--pour-accent-light); }
.pdp-more { padding: 96px 0 104px; }
.pdp-more__head { text-align: center; margin-bottom: 48px; }
.pour-pdp .pdp-more h2 { font: 400 clamp(36px, 4.2vw, 56px)/1.08 var(--pour-serif); color: var(--pour-forest-deep); }
.pdp-more__all { margin-top: 36px; text-align: center; font: 600 12px/1 var(--pour-sans); letter-spacing: .14em; text-transform: uppercase; }
.pdp-more__all a { color: #8A6420; border-bottom: 1px solid rgba(138, 100, 32, .35); padding-bottom: 6px; }

@media (max-width: 1100px) { .pdp__grid { gap: 48px; } }
@media (max-width: 900px) {
	.pdp__grid { grid-template-columns: 1fr; gap: 36px; }
	.pdp-gallery { position: static; }
	.pdp-stage { aspect-ratio: 1 / 1; }
	.pour-pdp .pdp { padding-bottom: 72px; }
	.pdp-ritual, .pdp-more { padding: 72px 0 80px; }
}
@media (max-width: 520px) {
	.pdp__grid { padding-left: 20px; padding-right: 20px; }
	.pdp-crumbs { margin-bottom: 20px; }
	.pour .pdp-info h1 { font-size: 44px; }
	.pdp-facts strong { font-size: 19px; }
	.pdp-facts li { padding: 18px 8px 0 12px; }
	.pour .pdp-buy__add { flex-basis: 100%; }
	.pdp-qty { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
	.pdp-stage, .pdp-thumbs, .pdp-info > * { animation: none; }
	.pdp-slide { transition: none; }
}
