/*
 * Diwali offer 2026 (mu-plugins/pv-diwali-offer.php): the ribbon, the popup, the homepage strip
 * and the note on the two combo pages. Colours and fonts are the v2 tokens (v2.css :root).
 * Text rules use two classes: design-tokens.css styles `.woocommerce-page p` at (0,1,1).
 * The version is in the file name (LiteSpeed strips ?ver=): copy to -2.css for any change.
 */

/* ---------- The lamp ---------- */
.pvdw-diya { flex: none; width: 22px; height: 22px; overflow: visible; }
.pvdw-diya__bowl { fill: var(--v2-gold-soft, #d6bd8f); }
.pvdw-diya__rim { fill: none; stroke: var(--v2-gold-deep, #8a6834); stroke-width: 1.4; stroke-linecap: round; }
.pvdw-diya__flame { fill: #ffb347; transform-box: fill-box; transform-origin: 50% 100%; animation: pvdw-flicker 2.6s ease-in-out infinite; }
@keyframes pvdw-flicker {
	0%, 100% { transform: scale(1, 1) rotate(0); opacity: 1; }
	30% { transform: scale(1.06, .93) rotate(-4deg); opacity: .92; }
	60% { transform: scale(.94, 1.06) rotate(3deg); opacity: 1; }
}

/* ---------- Ribbon: takes the announcement bar's place while the offer runs ---------- */
.pvdw-on .pvh-ann { display: none; }
.pvdw-bar {
	position: relative; z-index: 2;
	background: linear-gradient(100deg, #45101f 0%, var(--v2-wine, #7a1e35) 48%, #4d1222 100%);
	color: #f6ead2;
}
.pvdw-bar .pvdw-bar__in {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 38px; padding: 6px 16px;
	font: 400 13px/1.3 var(--v2-sans, "Jost", system-ui, sans-serif); letter-spacing: .02em;
	color: inherit; text-decoration: none;
}
.pvdw-bar .pvdw-bar__lead strong {
	font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--v2-gold-soft, #d6bd8f);
}
.pvdw-bar .pvdw-bar__short { display: none; }
.pvdw-bar .pvdw-bar__ends { color: rgba(246, 234, 210, .82); white-space: nowrap; }
.pvdw-bar [data-pvdw-count] { font-variant-numeric: tabular-nums; color: #fff; }
.pvdw-bar .pvdw-bar__go {
	padding: 4px 12px; border: 1px solid rgba(214, 189, 143, .65); border-radius: 999px;
	font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
	transition: background .25s, color .25s;
}
.pvdw-bar .pvdw-bar__in:hover .pvdw-bar__go,
.pvdw-bar .pvdw-bar__in:focus-visible .pvdw-bar__go { background: var(--v2-gold-soft, #d6bd8f); color: #3a0b18; }
@media (max-width: 639px) {
	.pvdw-bar .pvdw-bar__in { gap: 8px; padding: 6px 12px; font-size: 12px; }
	.pvdw-bar .pvdw-bar__lead strong { font-size: 11px; letter-spacing: .12em; }
	.pvdw-bar .pvdw-bar__more, .pvdw-bar .pvdw-bar__ends, .pvdw-bar .pvdw-bar__go-more { display: none; }
	.pvdw-bar .pvdw-bar__short { display: inline; margin-left: 8px; }
	.pvdw-bar .pvdw-bar__go { padding: 3px 10px; font-size: 10px; }
}

/* ---------- Popup (a .pv-drawer, so site.js opens, closes and scroll-locks it) ---------- */
.pvdw .pvdw__panel {
	position: absolute; left: 0; right: 0; bottom: 0;
	max-height: 92vh; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
	background: var(--v2-ivory, #faf7f2); color: var(--v2-ink, #1c1714);
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -12px 40px rgba(20, 10, 14, .28);
	transform: translateY(100%); transition: transform .4s var(--v2-ease, ease);
	font-family: var(--v2-sans, "Jost", system-ui, sans-serif);
}
.pvdw.is-open .pvdw__panel { transform: none; }
@media (min-width: 768px) {
	.pvdw .pvdw__panel {
		left: 50%; right: auto; top: 50%; bottom: auto;
		width: min(940px, calc(100vw - 48px)); max-height: calc(100vh - 48px);
		border-radius: 20px;
		box-shadow: 0 30px 80px rgba(20, 10, 14, .38);
		opacity: 0; transform: translate(-50%, -46%) scale(.97);
		transition: transform .4s var(--v2-ease, ease), opacity .3s var(--v2-ease, ease);
	}
	.pvdw.is-open .pvdw__panel { opacity: 1; transform: translate(-50%, -50%); }
}

.pvdw .pvdw__x {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #f8eedc; cursor: pointer;
	transition: background .2s;
}
.pvdw .pvdw__x:hover, .pvdw .pvdw__x:focus-visible { background: rgba(255, 255, 255, .24); }

.pvdw .pvdw__head {
	padding: 30px 20px 22px; text-align: center; color: #f8eedc;
	background: radial-gradient(120% 150% at 50% -30%, #a33a52 0%, var(--v2-wine, #7a1e35) 46%, #3b0a18 100%);
	border-bottom: 1px solid rgba(214, 189, 143, .45);
}
.pvdw .pvdw__eyebrow,
.pvdw-home .pvdw-home__eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
	font: 600 11px/1.2 var(--v2-sans, "Jost", system-ui, sans-serif); letter-spacing: .24em; text-transform: uppercase;
	color: var(--v2-gold-soft, #d6bd8f);
}
.pvdw .pvdw__title {
	margin: 0; padding: 0 28px;
	font: 400 26px/1.15 var(--v2-serif, "Lora", Georgia, serif); letter-spacing: -.005em; color: #fff8ee;
}
.pvdw .pvdw__sub { max-width: 44ch; margin: 8px auto 0; font: 400 14px/1.5 var(--v2-sans, "Jost", system-ui, sans-serif); color: rgba(248, 238, 220, .86); }
.pvdw .pvdw__count,
.pvdw-home .pvdw-home__count {
	display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 7px 14px;
	border: 1px solid rgba(214, 189, 143, .55); border-radius: 999px;
	font: 500 12px/1 var(--v2-sans, "Jost", system-ui, sans-serif); letter-spacing: .06em; color: var(--v2-gold-soft, #d6bd8f);
}
.pvdw .pvdw__count strong,
.pvdw-home .pvdw-home__count strong { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
	.pvdw .pvdw__head { padding: 36px 48px 28px; }
	.pvdw .pvdw__title { font-size: 36px; }
	.pvdw .pvdw__sub { font-size: 15px; }
}

.pvdw .pvdw__foot {
	margin: 0; padding: 6px 20px calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center;
	font: 400 12px/1.5 var(--v2-sans, "Jost", system-ui, sans-serif); color: var(--v2-muted, #6b6159);
}

/* ---------- The three box cards (popup + homepage) ---------- */
.pvdw .pvdw-boxes,
.pvdw-home .pvdw-boxes { display: grid; gap: 12px; margin: 0; padding: 16px; list-style: none; }
.pvdw-home .pvdw-boxes { padding: 0; }
.pvdw-boxes .pvdw-box { min-width: 0; margin: 0; }
.pvdw-boxes .pvdw-box__link {
	display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center;
	height: 100%; padding: 10px; border: 1px solid var(--v2-line, rgba(28, 23, 20, .12)); border-radius: 14px;
	background: #fff; color: var(--v2-ink, #1c1714); text-decoration: none;
	transition: border-color .25s, box-shadow .25s, transform .25s;
}
.pvdw-boxes .pvdw-box__link:hover,
.pvdw-boxes .pvdw-box__link:focus-visible { border-color: var(--v2-gold, #b08d57); box-shadow: 0 12px 28px rgba(28, 23, 20, .1); transform: translateY(-2px); }
.pvdw-boxes .pvdw-box__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: var(--v2-cream, #f3ede3); }
.pvdw-boxes .pvdw-box__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pvdw-boxes .pvdw-box__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pvdw-boxes .pvdw-box__tag { font: 600 10.5px/1.3 var(--v2-sans, "Jost", system-ui, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--v2-gold-deep, #8a6834); }
.pvdw-boxes .pvdw-box__name { font: 500 17px/1.25 var(--v2-serif, "Lora", Georgia, serif); color: var(--v2-ink, #1c1714); }
.pvdw-boxes .pvdw-box__note { font: 400 13px/1.4 var(--v2-sans, "Jost", system-ui, sans-serif); color: var(--v2-muted, #6b6159); }
.pvdw-boxes .pvdw-box__price { margin-top: 4px; font: 500 22px/1 var(--v2-serif, "Lora", Georgia, serif); color: var(--v2-wine, #7a1e35); }
.pvdw-boxes .pvdw-box__cta {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
	font: 600 11.5px/1 var(--v2-sans, "Jost", system-ui, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--v2-ink, #1c1714);
}
.pvdw-boxes .pvdw-box__cta svg { transition: transform .25s; }
.pvdw-boxes .pvdw-box__link:hover .pvdw-box__cta svg { transform: translateX(3px); }
@media (min-width: 768px) {
	.pvdw .pvdw-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 26px 28px 12px; }
	.pvdw-home .pvdw-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.pvdw-boxes .pvdw-box__link { display: flex; flex-direction: column; align-items: stretch; padding: 12px; }
	.pvdw-boxes .pvdw-box__media { aspect-ratio: 4 / 3; }
	.pvdw-boxes .pvdw-box__body { flex: 1; gap: 5px; padding: 14px 4px 4px; }
	.pvdw-boxes .pvdw-box__name { font-size: 19px; }
	/* Price and button sit at the card's foot, so they line up across the row. */
	.pvdw-boxes .pvdw-box__price { margin-top: auto; padding-top: 10px; font-size: 26px; }
	.pvdw-boxes .pvdw-box__cta { justify-content: center; margin-top: 14px; padding: 13px 14px; border-radius: 10px; background: var(--v2-ink, #1c1714); color: #fff; }
}

/* ---------- Homepage strip (between the hero and the values row) ---------- */
.pvdw-home { padding: 8px 0 44px; }
.pvdw-home .pvdw-home__panel {
	display: grid; gap: 22px; padding: 28px 16px 16px; border-radius: 20px; color: #f8eedc;
	background: radial-gradient(90% 120% at 10% 0%, #a33a52 0%, var(--v2-wine, #7a1e35) 42%, #3b0a18 100%);
	box-shadow: 0 24px 60px rgba(59, 10, 24, .22);
}
.pvdw-home .pvdw-home__head { text-align: center; }
.pvdw-home .pvdw-home__title { margin: 0; font: 400 clamp(28px, 3.4vw, 42px)/1.12 var(--v2-serif, "Lora", Georgia, serif); letter-spacing: -.01em; color: #fff8ee; }
.pvdw-home .pvdw-home__sub { max-width: 46ch; margin: 10px auto 0; font: 400 15px/1.55 var(--v2-sans, "Jost", system-ui, sans-serif); color: rgba(248, 238, 220, .86); }
@media (min-width: 768px) { .pvdw-home .pvdw-home__panel { padding: 36px 32px 32px; } }
@media (min-width: 1100px) {
	.pvdw-home { padding-bottom: 64px; }
	.pvdw-home .pvdw-home__panel { grid-template-columns: minmax(250px, 1fr) minmax(0, 2.5fr); align-items: center; gap: 40px; padding: 40px; }
	.pvdw-home .pvdw-home__head { text-align: left; }
	.pvdw-home .pvdw-home__sub { margin-left: 0; }
}

/* ---------- Note on the everyday combo pages ---------- */
.pvdw-note {
	display: flex; align-items: center; gap: 12px;
	width: min(100% - 32px, 1480px); margin: 14px auto 0; padding: 12px 16px; border-radius: 12px;
	background: linear-gradient(100deg, #45101f 0%, var(--v2-wine, #7a1e35) 60%, #4d1222 100%); color: #f8eedc;
}
.pvdw-note .pvdw-note__text { margin: 0; font: 400 14px/1.5 var(--v2-sans, "Jost", system-ui, sans-serif); color: inherit; }
.pvdw-note .pvdw-note__text strong { color: var(--v2-gold-soft, #d6bd8f); font-weight: 600; }
.pvdw-note .pvdw-note__link { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.pvdw-diya__flame { animation: none; }
	.pvdw .pvdw__panel, .pvdw-boxes .pvdw-box__link, .pvdw-boxes .pvdw-box__cta svg, .pvdw-bar .pvdw-bar__go { transition: none; }
}
