/*
 * Black Friday page. Sits on the lacquer from chrome.css.
 */
:root { --wbf-ink: #080b0a; --wbf-text: #f4f6f5; --wbf-muted: #a9b4b2; --wbf-gold: #e7b848; --wbf-line: rgb(231 184 72 / 0.3); }

.wbf { color: var(--wbf-text); font-family: var(--wx-body); font-variant-numeric: lining-nums; }
.wbf :is(h1, h2, h3) { margin: 0; color: inherit; font-family: var(--wx-display); font-weight: 400; }
.wbf p { margin: 0; }
.wbf-inner { max-width: 96rem; margin-inline: auto; padding-inline: var(--wauw-gutter); }

.wbf :is(a, button):focus-visible { outline: 2px solid var(--wbf-gold); outline-offset: 3px; }

/* Salon with the lights out. The pointer is the torch; until it moves, the
   light sweeps the room once and settles on the product shelf. */
@property --wbf-x { syntax: "<percentage>"; inherits: true; initial-value: 84%; }
@property --wbf-y { syntax: "<percentage>"; inherits: true; initial-value: 60%; }
.wbf-stage { position: relative; overflow: hidden; isolation: isolate; animation: wbf-sweep 5s ease-in-out 0.4s backwards; transition: --wbf-x 0.25s ease-out, --wbf-y 0.25s ease-out; }
.wbf-room { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; --wbf-mask: radial-gradient(circle clamp(11rem, 34vw, 34rem) at var(--wbf-x) var(--wbf-y), #000 0 30%, rgb(0 0 0 / 0.55) 60%, rgb(0 0 0 / 0.1) 100%), linear-gradient(#000 62%, transparent); -webkit-mask-image: var(--wbf-mask); mask-image: var(--wbf-mask); -webkit-mask-composite: source-in; mask-composite: intersect; }
.wbf-stage .wbf-inner { padding-block: clamp(2rem, 7svh, 5rem) clamp(1.5rem, 4svh, 3rem); }
@keyframes wbf-sweep { 0% { --wbf-x: 4%; --wbf-y: 30%; } 60% { --wbf-x: 94%; --wbf-y: 62%; } }

/* Twin-line tube lettering, as in the WAUW! logo: one white stroke, one ink stroke on top. */
.wbf-letters { position: relative; display: block; width: min(100%, 116svh); }
.wbf-type { display: block; width: 100%; height: auto; fill: none; stroke-miterlimit: 8; }
.wbf-type use { animation: wbf-draw 1.8s cubic-bezier(0.6, 0, 0.2, 1) backwards; }
.wbf-type .tube { stroke: url(#wbf-foil); stroke-width: 40; }
.wbf-type .core { stroke: var(--wbf-ink); stroke-width: 31; }
@keyframes wbf-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }

/* Foil type: the logo gradient, shifted by whatever moves --wbf-foil-x. */
.wbf-foil, .wbf-products > .wp-block-heading { background: var(--wbf-foilbg) var(--wbf-foil-x, 30%) 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.wbf { --wbf-foilbg: linear-gradient(100deg, #fcfcbe, #ce932c 14%, #c97700 23%, #d49c33 32%, #fcfcbe 47%, #c37c2d 57%, #e7b848 65%, #fcfcbe 74%, #fdf78a 84%, #c97700 93%, #e7b848); }

.wbf-bar { display: grid; grid-template: "when count act" auto / minmax(0, 1fr) auto auto; gap: 1.5rem clamp(1.5rem, 4vw, 4.5rem); align-items: center; padding-block: 2rem 3rem; }
.wbf-when { grid-area: when; }
.wbf-date { font-family: var(--wx-display); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.1; }
.wbf-date span { font-family: var(--wx-body); }
.wbf-lede { max-width: 26rem; margin-top: 0.6rem !important; color: var(--wbf-muted); font-size: 1.1rem; line-height: 1.5; }
.wbf-count { grid-area: count; }
.wbf-count p { margin-bottom: 0.5rem; color: var(--wbf-gold); font-weight: 700; }
.wbf-clock { display: flex; gap: 0.4rem; }
.wbf-unit { width: 4.3rem; padding: 0.7rem 0 0.6rem; border: 1px solid rgb(231 184 72 / 0.6); background: linear-gradient(115deg, transparent 34%, rgb(255 246 222 / 0.1) 46%, transparent 58%), rgb(4 6 6 / 0.6); text-align: center; }
.wbf-unit b { display: block; overflow: hidden; font-size: 2.2rem; line-height: 1.1; }
.wbf-unit i { color: var(--wbf-muted); font-size: 0.85rem; font-style: normal; }
.wbf-act { grid-area: act; display: grid; gap: 0.75rem; align-content: center; justify-items: stretch; }
.wbf-max { display: flex; gap: 0.5rem; align-items: baseline; white-space: nowrap; }
.wbf-max[hidden] { display: none; }
.wbf-max b { font-size: clamp(2.8rem, 4.6vw, 4.2rem); line-height: 0.9; }

.wbf-products { --wbf-frame: 5 / 4; padding-block: 1rem 4.5rem; scroll-margin-top: 6rem; }
.wbf-products > .wp-block-heading { position: relative; width: fit-content; margin-bottom: 0.4em; font-size: var(--wx-title); line-height: 1.1; letter-spacing: -0.02em; }
.wbf-products ul.products { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; margin: 0; padding: 0; }
.wbf-products ul.products::before,
.wbf-products ul.products::after { display: none; }

/* Each card is a dark case with one lamp: --wbf-lit opens the pool of light. */
@property --wbf-lx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --wbf-ly { syntax: "<percentage>"; inherits: true; initial-value: 60%; }
@property --wbf-lit { syntax: "<number>"; inherits: true; initial-value: 1; }
.wbf-products ul.products > li.product { position: relative; display: flex; flex-direction: column; float: none; width: auto; margin: 0; overflow: hidden; isolation: isolate; border-radius: 0; background: linear-gradient(170deg, rgb(8 11 10 / 0.35), rgb(5 7 7 / 0.72)) !important; box-shadow: none; color: var(--wbf-text); transition: --wbf-lit 0.6s ease-out, --wbf-lx 0.5s ease-out, --wbf-ly 0.5s ease-out; }
.wbf-products ul.products > li.product::before { content: ""; position: absolute; inset: 0; z-index: 4; padding: 1.5px; background: radial-gradient(17rem circle at var(--wbf-px, -40rem) var(--wbf-py, -40rem), #fcfcbe, #e7b848 30%, transparent 70%), linear-gradient(150deg, rgb(252 252 190 / 0.85), rgb(201 119 0 / 0.55) 22%, rgb(231 184 72 / 0.28) 50%, rgb(252 247 138 / 0.6) 78%, rgb(201 119 0 / 0.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.wbf-products ul.products > li.product::after { content: ""; position: absolute; inset: 0; z-index: 3; display: block; background: linear-gradient(112deg, transparent 40%, rgb(255 248 228 / 0.16) 47%, rgb(255 248 228 / 0.03) 52%, transparent 60%) var(--wbf-gloss, 78%) 0 / 260% 100% no-repeat; pointer-events: none; transition: background-position 0.5s ease-out; }
.wbf-products ul.products > li.outofstock { order: 1; }
.wbf-products ul.products > li.outofstock img { filter: grayscale(1); opacity: 0.6; }
.wbf-products ul.products li.outofstock .onsale { display: none; }
.wbf-products ul.products li.product .woocommerce-loop-image-link { position: relative; display: flex !important; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.wbf-products .woocommerce-loop-image-link::after { content: ""; position: absolute; inset: auto 0 0; aspect-ratio: var(--wbf-frame); background: radial-gradient(ellipse calc(104% * var(--wbf-lit) + 0.1%) calc(92% * var(--wbf-lit) + 0.1%) at var(--wbf-lx, 50%) var(--wbf-ly, 60%), #f3ece0 8%, #d9cbb2 38%, #8d7a5a 64%, #34291a 86%, #0a0806); mix-blend-mode: multiply; pointer-events: none; }
.wbf-products .woocommerce-loop-image-link::before { content: ""; position: absolute; inset: auto 0 0; aspect-ratio: var(--wbf-frame); background: #060908; }
.wbf-products ul.products li.product img { position: relative; }
/* Photo and light share one mask, so both dissolve into the lacquer. */
.wbf-products .woocommerce-loop-image-link::before,
.wbf-products .woocommerce-loop-image-link::after,
.wbf-products ul.products li.product img { --wbf-melt: linear-gradient(transparent, rgb(0 0 0 / 0.6) 18%, #000 36% 90%, transparent), radial-gradient(ellipse calc(158% * var(--wbf-lit) + 0.1%) calc(104% * var(--wbf-lit) + 0.1%) at 50% 58%, #000 50%, transparent 92%); -webkit-mask-image: var(--wbf-melt); mask-image: var(--wbf-melt); -webkit-mask-composite: source-in; mask-composite: intersect; }
.wbf-products ul.products li.product img { width: 100%; height: auto; aspect-ratio: var(--wbf-frame); object-fit: contain; margin: 0; border-radius: 0; background: #fff; }
.wbf-products ul.products li.product img.is-wide { object-fit: cover; }
.wbf-products ul.products li.product .product-details { display: flex; flex: 1; flex-direction: column; margin: 0; padding: 1.25rem; border-radius: 0; background: none !important; box-shadow: none; }
.wbf-products ul.products li.product .woocommerce-loop-product__title { margin: 0; }
.wbf-products ul.products li.product .woocommerce-loop-product__title a { text-decoration: none; }
.wbf-products ul.products { list-style: none; }
.wbf-products ul.products li.product .price { display: flex; flex-wrap: wrap; gap: 0 0.5rem; align-items: baseline; }
.wbf-products ul.products li.product .woocommerce-loop-product__title a { color: var(--wbf-text); font-size: 1.1rem; line-height: 1.3; }
.wbf-products ul.products li.product .price { margin-block: auto 1.1rem; padding-top: 0.9rem; color: var(--wbf-text); font-size: 1rem; }
.wbf-products ul.products li.product .price ins { color: var(--wbf-gold); font-size: 1.6em; font-weight: 700; text-decoration: none; }
.wbf-products ul.products li.product .price .amount { white-space: nowrap; }
.wbf-products ul.products li.product .price del { opacity: 1; color: var(--wbf-muted); }
.wbf-products ul.products li.product .product-action-wrap .button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3rem; padding: 0.4rem 0.75rem; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45); color: var(--wx-ivory); font-family: var(--wx-body); font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.wbf-products ul.products li.product .product-action-wrap .button:is(:hover, .is-in) { background: var(--wx-ivory); color: var(--wbf-ink); }
.wbf-products ul.products li.outofstock .product-action-wrap .button { box-shadow: inset 0 0 0 1px var(--wbf-line); color: var(--wbf-muted); }
.wbf-products ul.products li.product .onsale { position: absolute; top: 1rem; right: auto; left: 1rem; z-index: 3; min-width: 0; min-height: 0; margin: 0; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--wx-ivory); color: var(--wbf-ink); font-size: 0.95rem; font-weight: 600; line-height: 1.3; text-shadow: none; pointer-events: none; }

.wbf-products ul.products > li.wbf-lead { grid-row: span 2; grid-column: span 2; order: -1; }
.wbf-products ul.products li.product.wbf-lead .woocommerce-loop-image-link { flex: 1; }
.wbf-products ul.products li.wbf-lead .product-details { flex: none; padding: 1rem 2rem 2rem; }
.wbf-products ul.products li.wbf-lead .woocommerce-loop-product__title a { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.15; }
.wbf-products ul.products li.wbf-lead .price { margin-top: 0; font-size: 1.7rem; }
.wbf-products ul.products li.wbf-lead .onsale { top: 2rem; left: 2rem; padding: 0.4rem 1rem; font-size: 1.15rem; }
.wbf-products ul.products li.wbf-lead .product-action-wrap .button { min-height: 3.25rem; background: var(--wx-ivory); box-shadow: inset 0 0 0 1px var(--wx-ivory); color: var(--wbf-ink); font-size: 1rem; }
.wbf-products ul.products li.wbf-lead .product-action-wrap .button:hover { background: transparent; color: var(--wx-ivory); }

@media (hover: hover) {
	.wbf-products ul.products li.product:is(:hover, :focus-within) { --wbf-lit: 1.3; z-index: 2; }
}

@supports (animation-timeline: view()) {
	.wbf-products > .wp-block-heading { animation: wbf-sheen linear both; animation-timeline: view(); }
}
@keyframes wbf-sheen { from { background-position: 0 0; } to { background-position: 100% 0; } }

.wbf-info { padding-bottom: 4.5rem; background: radial-gradient(closest-side, rgb(8 11 10 / 0.72), transparent); }
.wbf-info dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; margin: 0 0 2.5rem; padding-top: 2rem; border-top: 1px solid var(--wbf-line); }
.wbf-info dt { margin-bottom: 0.35rem; font-weight: 700; }
.wbf-info dd { margin: 0; color: var(--wbf-muted); }
.wbf-info dd a { color: var(--wbf-gold); text-decoration: underline; text-underline-offset: 0.2em; }
.wbf-info dt { font-family: var(--wx-display); font-size: 1.3rem; font-weight: 400; }
.wbf-foot { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }

/* Four columns, so one large case and four small ones fill the grid exactly. */
@media (min-width: 62rem) {
	.wbf-products ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Two columns: the large case lies on its side across both. */
@media (min-width: 601px) and (max-width: 61.99rem) {
	.wbf-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wbf-products ul.products > li.product.wbf-lead { flex-direction: row; align-items: stretch; grid-row: auto; }
	.wbf-products ul.products li.wbf-lead .product-details { flex: 0 0 44%; justify-content: center; padding: 2rem; }
}
@media (min-width: 601px) and (max-width: 920px) {
	.wbf-bar { grid-template: "when act" auto "count count" auto / minmax(0, 1fr) auto; }
}
@media (max-width: 600px) {
	.wbf-stage { --wbf-x: 60%; --wbf-y: 36%; }
	.wbf-stage .wbf-inner { padding-block: 8.5rem 1.25rem; }
	.wbf-room { object-position: 88% 50%; }
	.wbf-bar { grid-template: "when" "act" "count" / minmax(0, 1fr); gap: 1.25rem; padding-block: 1.25rem 2.5rem; }
	.wbf-act { grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
	.wbf-act .wx-btn { padding-inline: 1rem; }
	.wbf-max b { font-size: min(2.8rem, 11.5vw); }
	.wbf-clock { display: grid; grid-template-columns: repeat(4, 1fr); }
	.wbf-unit { width: auto; }
	.wbf-products { padding-block: 0.5rem 2.5rem; }
	.wbf-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
	.wbf-products ul.products > li.wbf-lead { grid-row: auto; }
	.wbf-products ul.products li.product .product-details { padding: 0.9rem; }
	.wbf-products ul.products li.wbf-lead .product-details { padding: 1.25rem; }
	.wbf-products ul.products li.product .onsale { top: 0.6rem; left: 0.6rem; }
	.wbf-products ul.products li.wbf-lead .onsale { top: 1.25rem; left: 1.25rem; }
	.wbf-products ul.products li.product .price ins { font-size: 1.35em; }
	.wbf-products ul.products li.product:not(.wbf-lead) .price ins { font-size: min(1.35em, 6.1vw); }
}
@media (prefers-reduced-motion: reduce) {
	.wbf-stage, .wbf-type use { animation: none; transition: none; }
	.wbf-products > .wp-block-heading { animation: none; }
	.wbf-products ul.products > li.product,
	.wbf-products ul.products li.product img,
	.wbf-products ul.products li.product .button { transition: none; }
}
.wbf-empty { padding: 4rem 0; color: var(--wbf-muted); font-family: var(--wx-display); font-size: 1.6rem; }
