/**
 * Waterclick hero — bold, red-forward product hero (replaces Smart Slider 3).
 * All classes namespaced .wclk-hero-* to stay clear of the theme/WooCommerce.
 *
 * Design: the company red is the stage, not an accent. The product floats under
 * a white spotlight and uses mix-blend-mode:multiply so its opaque white studio
 * background melts into the light — no transparent PNG required (supply one later
 * and it only gets cleaner). Features read as an engineered rail with connector
 * ticks, not catalog chips. One cool "water" accent (aqua) marks the key spec.
 * Fonts inherit the theme's Prompt / IBM Plex Mono. Fixed palette on purpose.
 */
.wclk-hero{
	--wclk-red:#d72127;
	--wclk-red-2:#c0141a;
	--wclk-red-deep:#8f0d12;
	--wclk-ink:#2a0608;
	--wclk-cream:#fff3ee;
	--wclk-aqua:#8fe6f2;
	--wclk-on:#ffffff;
	--wclk-on-soft:rgba(255,255,255,.74);
	--wclk-on-faint:rgba(255,255,255,.46);
	--wclk-hair:rgba(255,255,255,.22);
	--wclk-sans:'Prompt','Sukhumvit Set','Noto Sans Thai',system-ui,-apple-system,sans-serif;
	--wclk-mono:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,monospace;
	--wclk-hero-dur:6000ms;

	position:relative;
	border-radius:16px;
	overflow:hidden;
	color:var(--wclk-on);
	font-family:var(--wclk-sans);
	line-height:1.5;
	background:
		radial-gradient(140% 120% at 82% 30%,rgba(255,120,120,.35),transparent 55%),
		linear-gradient(118deg,var(--wclk-red) 0%,var(--wclk-red-2) 46%,var(--wclk-red-deep) 100%);
	box-shadow:0 24px 60px -28px rgba(120,10,14,.65);
}
.wclk-hero *{box-sizing:border-box}

.wclk-hero-track{position:relative}
.wclk-hero-stage{display:grid;grid-template-columns:1fr 1.1fr;min-height:560px}
.wclk-hero--static .wclk-hero-stage{min-height:580px}

/* full-bleed (homepage): red spans the viewport, content stays centred & capped */
.wclk-hero--full{border-radius:0;width:100vw;margin-left:calc(50% - 50vw);box-shadow:none}
.wclk-hero--full .wclk-hero-stage{max-width:1280px;margin-inline:auto;min-height:clamp(560px,72vh,760px)}
.wclk-hero--full .wclk-hero-controls{left:max(54px,calc(50% - 640px + 54px))}

/* ---- product pane (right) ---- */
.wclk-hero-pane{
	position:relative;order:2;display:grid;place-items:center;overflow:hidden;padding:38px 30px;
}
/* faint concentric water ripples behind the product */
.wclk-hero-pane::before{
	content:"";position:absolute;width:150%;aspect-ratio:1;left:50%;top:48%;
	transform:translate(-50%,-50%);pointer-events:none;
	background:repeating-radial-gradient(circle,transparent 0 40px,rgba(255,255,255,.05) 40px 41px);
	-webkit-mask-image:radial-gradient(circle,#000 30%,transparent 70%);
	        mask-image:radial-gradient(circle,#000 30%,transparent 70%);
}
/* the product box shrinks to the image; the image is capped by viewport + px so
   any aspect ratio (tall faucet, wide faucet, square unit) fits without clipping */
.wclk-hero-prod{
	position:relative;display:grid;place-items:center;z-index:1;
}
/* soft ambient spotlight + grounding shadow — the product cutouts are transparent */
.wclk-hero-prod::before{
	content:"";position:absolute;width:118%;height:118%;border-radius:50%;z-index:0;pointer-events:none;
	background:radial-gradient(circle,rgba(255,255,255,.2),rgba(255,255,255,.07) 46%,transparent 66%);
}
.wclk-hero-prod::after{
	content:"";position:absolute;left:50%;bottom:-4%;transform:translateX(-50%);z-index:0;
	width:64%;height:8%;border-radius:50%;pointer-events:none;
	background:radial-gradient(ellipse,rgba(70,4,8,.5),transparent 72%);filter:blur(3px);
}
.wclk-hero-prod img{
	position:relative;z-index:1;width:auto;height:auto;
	max-width:min(94%,400px);max-height:min(58vh,510px);object-fit:contain;
	filter:drop-shadow(0 20px 26px rgba(70,4,8,.45));
}
.wclk-hero--static .wclk-hero-prod img{max-width:min(96%,440px);max-height:min(64vh,560px)}
.wclk-hero-tag{
	position:absolute;left:0;right:0;bottom:20px;text-align:center;z-index:2;
	font-family:var(--wclk-mono);font-size:10.5px;letter-spacing:.16em;
	text-transform:uppercase;color:var(--wclk-on-soft);
}
/* vertical spec gauge on the red */
.wclk-hero-measure{
	position:absolute;right:26px;top:38px;bottom:38px;z-index:2;display:flex;
	flex-direction:column;justify-content:space-between;align-items:flex-end;
	font-family:var(--wclk-mono);font-size:9.5px;color:var(--wclk-on-faint);letter-spacing:.06em;
}
.wclk-hero-measure span{position:relative;padding-right:16px}
.wclk-hero-measure span::after{
	content:"";position:absolute;right:0;top:50%;width:10px;height:1px;background:var(--wclk-hair);
}
.wclk-hero-measure .is-hit{color:var(--wclk-aqua);font-size:13px}
.wclk-hero-measure .is-hit::after{background:var(--wclk-aqua);width:16px;height:2px}

/* ---- copy pane (left) ---- */
.wclk-hero-copy{order:1;padding:52px 40px 52px 54px;display:flex;flex-direction:column;justify-content:center}
.wclk-hero-eyebrow{
	font-family:var(--wclk-mono);font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;
	color:var(--wclk-on);display:inline-flex;align-items:center;gap:9px;
}
.wclk-hero-eyebrow::before{content:"";width:22px;height:2px;background:var(--wclk-cream);display:inline-block}
.wclk-hero-kicker{margin:18px 0 8px;font-weight:600;font-size:13.5px;color:var(--wclk-on-soft);letter-spacing:.01em}
.wclk-hero-headline{
	margin:0;font-weight:700;font-size:clamp(30px,3.9vw,48px);line-height:1.08;
	letter-spacing:-.02em;text-wrap:balance;max-width:15ch;color:var(--wclk-on);
	text-shadow:0 2px 20px rgba(90,6,10,.25);
}
.wclk-hero--static .wclk-hero-headline{font-size:clamp(33px,4.6vw,54px)}
.wclk-hero-sub{margin:16px 0 0;font-size:15px;color:var(--wclk-on-soft);max-width:40ch}

/* features as an engineered rail, not chips */
.wclk-hero-specs{display:flex;flex-wrap:wrap;gap:9px;margin:26px 0 0;max-width:40ch}
.wclk-hero-chip{
	font-family:var(--wclk-mono);font-size:11.5px;letter-spacing:.02em;color:var(--wclk-on);
	padding:7px 14px;border-radius:999px;white-space:nowrap;
	background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.30);
}
.wclk-hero-chip em{font-style:normal;font-weight:600;color:var(--wclk-aqua)}

.wclk-hero-pricerow{display:flex;align-items:flex-end;gap:14px;margin:28px 0 0;flex-wrap:wrap}
.wclk-hero-price{
	font-family:var(--wclk-mono);font-weight:600;font-size:34px;color:var(--wclk-on);
	letter-spacing:-.01em;font-variant-numeric:tabular-nums;line-height:1;
}
.wclk-hero-was{
	font-family:var(--wclk-mono);font-size:14px;color:var(--wclk-on-faint);
	text-decoration:line-through;font-variant-numeric:tabular-nums;
}
.wclk-hero-save{
	font-family:var(--wclk-mono);font-weight:600;font-size:11px;letter-spacing:.06em;text-transform:uppercase;
	color:var(--wclk-red);background:var(--wclk-cream);padding:5px 10px;border-radius:6px;margin-bottom:3px;
}

.wclk-hero-actions{display:flex;align-items:center;gap:14px 20px;margin:30px 0 0;flex-wrap:wrap}
.wclk-hero-cta{
	display:inline-block;text-decoration:none;font-family:var(--wclk-sans);font-weight:700;font-size:15.5px;
	color:var(--wclk-red);background:var(--wclk-on);padding:15px 34px;border-radius:11px;letter-spacing:.01em;
	transition:transform .15s ease,background .15s ease,box-shadow .15s ease,color .15s ease;
	box-shadow:0 12px 26px -12px rgba(0,0,0,.5);
}
.wclk-hero-cta:hover,.wclk-hero-cta:focus{background:var(--wclk-cream);color:var(--wclk-red-deep);text-decoration:none;transform:translateY(-2px);box-shadow:0 18px 32px -14px rgba(0,0,0,.55)}
.wclk-hero-cta:focus-visible{outline:2px solid #fff;outline-offset:3px}
.wclk-hero-cta--disabled{opacity:.6;box-shadow:none;pointer-events:none}
.wclk-hero-txtbtn{
	text-decoration:none;font-family:var(--wclk-sans);font-weight:500;font-size:14px;color:var(--wclk-on);
	padding:9px 16px;display:inline-flex;align-items:center;gap:8px;border-radius:9px;
	border:1px solid var(--wclk-hair);transition:border-color .15s ease,background .15s ease;
}
.wclk-hero-txtbtn,.wclk-hero-txtbtn:hover,.wclk-hero-txtbtn:focus{color:var(--wclk-on);text-decoration:none}
.wclk-hero-txtbtn:hover{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.08)}
.wclk-hero-txtbtn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.wclk-hero-dot{width:7px;height:7px;border-radius:50%;background:var(--wclk-cream);flex:none}
.wclk-hero-dot.is-line{background:#06c755}

/* ---- slider mechanics ---- */
.wclk-hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .5s ease}
.wclk-hero-slide.is-on{position:relative;opacity:1;visibility:visible}
.wclk-hero-slide.is-on .wclk-hero-copy>*{animation:wclk-hero-rise .55s cubic-bezier(.2,.7,.2,1) both}
.wclk-hero-slide.is-on .wclk-hero-copy>*:nth-child(2){animation-delay:.05s}
.wclk-hero-slide.is-on .wclk-hero-copy>*:nth-child(3){animation-delay:.10s}
.wclk-hero-slide.is-on .wclk-hero-copy>*:nth-child(4){animation-delay:.15s}
.wclk-hero-slide.is-on .wclk-hero-copy>*:nth-child(5){animation-delay:.20s}
.wclk-hero-slide.is-on .wclk-hero-copy>*:nth-child(6){animation-delay:.25s}
.wclk-hero-slide.is-on .wclk-hero-prod{animation:wclk-hero-pop .7s cubic-bezier(.2,.7,.2,1) both}
@keyframes wclk-hero-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes wclk-hero-pop{from{opacity:0;transform:scale(.92) translateX(14px)}to{opacity:1;transform:none}}

.wclk-hero-controls{position:absolute;left:54px;bottom:28px;display:flex;align-items:center;gap:16px;z-index:4}
.wclk-hero-dots{display:flex;gap:9px}
.wclk-hero-dots button{
	width:9px;height:9px;padding:0;border-radius:50%;border:1px solid var(--wclk-on-faint);
	background:transparent;cursor:pointer;transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
.wclk-hero-dots button[aria-current="true"]{background:var(--wclk-on);border-color:var(--wclk-on);transform:scale(1.2)}
.wclk-hero-dots button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.wclk-hero-counter{font-family:var(--wclk-mono);font-size:11px;color:var(--wclk-on-faint);letter-spacing:.1em}

.wclk-hero-progress{position:absolute;left:0;top:0;height:3px;width:100%;background:rgba(255,255,255,.14);z-index:4}
.wclk-hero-progress i{display:block;height:100%;width:0;background:var(--wclk-cream);box-shadow:0 0 12px rgba(255,255,255,.7)}
.wclk-hero-progress i.is-run{animation:wclk-hero-fill var(--wclk-hero-dur) linear forwards}
@keyframes wclk-hero-fill{from{width:0}to{width:100%}}

.wclk-hero-empty{
	padding:18px 20px;border:1px dashed #c9c9c9;border-radius:8px;color:#666;background:#fafafa;font-size:14px;
}

@media (max-width:860px){
	.wclk-hero-stage,.wclk-hero--static .wclk-hero-stage,.wclk-hero--full .wclk-hero-stage{grid-template-columns:1fr;min-height:0}
	.wclk-hero-pane{order:1;min-height:auto;padding:34px 20px 18px}
	.wclk-hero-prod img,.wclk-hero--static .wclk-hero-prod img{max-width:min(82%,320px);max-height:min(46vh,380px)}
	.wclk-hero-copy{order:2;padding:16px 24px 34px}
	.wclk-hero-measure{display:none}
	.wclk-hero-controls{position:static;padding:0 24px 18px}
	.wclk-hero--full .wclk-hero-controls{left:26px}
	.wclk-hero-headline{max-width:none}
}
@media (prefers-reduced-motion:reduce){
	.wclk-hero *{animation:none!important;transition:none!important}
	.wclk-hero-cta:hover{transform:none}
}

/* ---- homepage: the theme's transparent header overlays this red hero ----
   Only loads where [waterclick_hero] is present (the homepage), and scoped to
   body.home, so other pages' headers are untouched. Makes the nav/icons legible
   on red and pushes hero content clear of the overlapping header. */
@media (min-width:1024px){
	body.home .site-header:not(.active) .s-nav>li>a,
	body.home .site-header:not(.active) .wclk-lang-toggle,
	body.home .site-header:not(.active) .site-member,
	body.home .site-header:not(.active) .site-cart,
	body.home .site-header:not(.active) .dgwt-wcas-search-icon{color:#fff}
	body.home .site-header:not(.active) .site-member svg,
	body.home .site-header:not(.active) .site-cart svg,
	body.home .site-header:not(.active) .dgwt-wcas-search-icon svg{color:#fff}
	body.home .site-header:not(.active) .site-member svg [fill]:not([fill="none"]),
	body.home .site-header:not(.active) .site-cart svg [fill]:not([fill="none"]),
	body.home .site-header:not(.active) .dgwt-wcas-search-icon svg [fill]:not([fill="none"]){fill:#fff}
	body.home .site-header:not(.active) .site-member svg [stroke]:not([stroke="none"]),
	body.home .site-header:not(.active) .site-cart svg [stroke]:not([stroke="none"]),
	body.home .site-header:not(.active) .dgwt-wcas-search-icon svg [stroke]:not([stroke="none"]){stroke:#fff}
	/* search icon: its <path> has no fill attr (defaults black) — set fill directly */
	body.home .site-header:not(.active) .dgwt-wcas-search-icon svg,
	body.home .site-header:not(.active) .dgwt-wcas-search-icon svg path{fill:#fff}
	body.home .wclk-hero--full .wclk-hero-stage{padding-top:76px}
	body.home .wclk-hero--full .wclk-hero-measure{top:88px}
}
