/* Homepage hero slider */
.ph-hs { --ph-teal: #004d4c; --ph-saffron: #e8912d; position: relative; overflow: hidden; color: #fff; background: #003536; }
.ph-hs-track { display: grid; }
.ph-hs-slide { grid-area: 1 / 1; position: relative; display: flex; min-height: clamp(560px, 78vh, 720px); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.ph-hs-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; z-index: 1; }
.ph-hs-slide.is-mushroom { background: radial-gradient(circle at 78% 45%, rgba(255,255,255,.28), transparent 38%), radial-gradient(circle at 12% 90%, rgba(232,145,45,.28), transparent 35%), linear-gradient(120deg, #0a3d8f 0%, #1b5cc4 55%, #3f86e8 100%); }
.ph-hs-slide.is-ortho { background: radial-gradient(circle at 22% 45%, rgba(255,255,255,.22), transparent 36%), radial-gradient(circle at 90% 10%, rgba(75,46,131,.7), transparent 45%), linear-gradient(120deg, #1f6b3a 0%, #23843d 40%, #2b1a5a 100%); }
.ph-hs-slide::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.ph-hs-slide.is-photo::before { background: linear-gradient(90deg, rgba(0,30,30,.9) 0%, rgba(0,30,30,.72) 42%, rgba(0,30,30,.12) 100%); }
.ph-hs-slide.is-banner::before { display: none; }
.ph-hs-bg { position: absolute; inset: 0; }
.ph-hs-slide.is-photo::before { z-index: 1; }
.ph-hs-slide.is-photo .ph-hs-inner { z-index: 2; }
.ph-hs-bg img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 7s ease-out; mix-blend-mode: normal !important; }
.ph-hs-slide.is-active .ph-hs-bg img { transform: scale(1); }
.ph-hs-slide.is-award { background: #062a29; }
@media (min-width: 900px) { .ph-hs-slide.is-award .ph-hs-bg { left: 36%; } .ph-hs-slide.is-award .ph-hs-bg img { object-position: 12% 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); } .ph-hs-slide.is-award::before { background: linear-gradient(90deg, rgba(6,42,41,.95) 0%, rgba(6,42,41,.6) 40%, rgba(0,30,30,0) 70%); } }
.ph-hs-slide.is-award .ph-hs-bg img { object-position: 18% 30%; }
.ph-hs-inner { position: relative; display: grid; align-items: center; gap: 24px; width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 96px; }
.ph-hs-copy { max-width: 600px; min-width: 0; }
.ph-hs-copy > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.ph-hs-slide.is-active .ph-hs-copy > * { opacity: 1; transform: none; }
.ph-hs-slide.is-active .ph-hs-copy > *:nth-child(2) { transition-delay: .08s; }
.ph-hs-slide.is-active .ph-hs-copy > *:nth-child(3) { transition-delay: .16s; }
.ph-hs-slide.is-active .ph-hs-copy > *:nth-child(n+4) { transition-delay: .24s; }
.ph-hs-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd8a6; }
.ph-hs-kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--ph-saffron); }
.ph-hs-title { margin: 0 0 14px !important; color: #fff !important; font-size: clamp(36px, 5.6vw, 68px) !important; line-height: 1.03 !important; font-weight: 700 !important; letter-spacing: -.03em; text-shadow: 0 2px 20px rgba(0,0,0,.18); }
.ph-hs-lead { margin: 0 0 18px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: rgba(255,255,255,.92); }
.ph-hs-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.ph-hs-facts li { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); font-size: 13px; font-weight: 600; }
.ph-hs-prices { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 20px; }
.ph-hs-price { display: flex; align-items: baseline; gap: 8px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; color: #fff; }
.ph-hs-price small { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); }
.ph-hs-price .woocommerce-Price-amount, .ph-hs-price bdi { color: #fff; }
.ph-hs .ph-btn-solid { background: #fff; border-color: #fff; color: var(--ph-teal) !important; }
.ph-hs .ph-btn-link { color: #fff; border-bottom-color: var(--ph-saffron); }
.ph-hs .ph-hero-actions .added_to_cart { color: #fff; }
.ph-hs .ph-stock-out { color: #ffd2c8; }
.ph-hs-art { position: relative; display: flex; justify-content: center; align-items: center; }
.ph-hs-art::before { content: ""; position: absolute; width: min(78%, 440px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.96) 0%, rgba(255,255,255,.8) 55%, rgba(255,255,255,0) 72%); }
.ph-hs-art img { position: relative; width: auto; max-width: 100%; height: clamp(240px, 46vh, 470px); object-fit: contain; mix-blend-mode: multiply !important; margin: 0 !important; transform: translateY(24px) scale(.94); opacity: 0; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .8s ease; }
.ph-hs-slide.is-active .ph-hs-art img { transform: none; opacity: 1; }
.ph-hs-banner { display: block; width: 100%; }
.ph-hs-banner img { width: 100%; height: 100%; min-height: clamp(560px, 78vh, 720px); object-fit: cover; display: block; mix-blend-mode: normal !important; }

/* Controls */
.ph-hs-controls { position: absolute; z-index: 5; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 999px; background: rgba(0,0,0,.32); }
.ph-hs-arrow, .ph-hs-pause { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s; }
.ph-hs-pause { font-size: 11px; letter-spacing: -1px; }
.ph-hs-arrow:hover, .ph-hs-pause:hover { background: rgba(255,255,255,.32); }
.ph-hs-arrow:focus-visible, .ph-hs-pause:focus-visible, .ph-hs-dot:focus-visible { outline: 3px solid var(--ph-saffron); outline-offset: 2px; }
.ph-hs-dots { display: flex; gap: 2px; }
.ph-hs-dot { display: grid; place-items: center; width: 30px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.ph-hs-dot span { position: relative; display: block; width: 18px; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.42); transition: width .3s; }
.ph-hs-dot[aria-current] span { width: 28px; }
.ph-hs-dot[aria-current] span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(1); }
.ph-hs.is-ticking .ph-hs-dot[aria-current] span::after { animation: ph-hs-progress 5.5s linear forwards; }
@keyframes ph-hs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 900px) {
	.ph-hs-slide.is-product .ph-hs-inner { grid-template-columns: 1.05fr .95fr; gap: 40px; padding: 56px 0 104px; }
	.ph-hs-slide.is-photo .ph-hs-inner { padding: 72px 0 112px; }
	.ph-hs-slide.is-ortho .ph-hs-art { order: -1; }
	.ph-hs-slide.is-ortho .ph-hs-copy { justify-self: end; }
}
@media (max-width: 899px) {
	.ph-hs-slide { min-height: 0; }
	.ph-hs-inner { padding: 24px 0 84px; gap: 6px; }
	.ph-hs-slide.is-product .ph-hs-art { order: -1; }
	.ph-hs-art img { height: 220px; }
	.ph-hs-art::before { width: 240px; }
	.ph-hs-slide.is-photo { min-height: 540px; align-items: flex-end; }
	.ph-hs-slide.is-photo::before { background: linear-gradient(180deg, rgba(0,30,30,.15) 0%, rgba(0,30,30,.75) 42%, rgba(0,30,30,.96) 100%); }
	.ph-hs-slide.is-photo .ph-hs-inner { align-self: flex-end; }
	.ph-hs-facts { display: none; }
	.ph-hs-title { font-size: clamp(30px, 8.6vw, 44px) !important; }
	.ph-hs-lead { font-size: 15px; margin-bottom: 12px; }
	.ph-hs-prices { margin-bottom: 14px; }
	.ph-hs .ph-hero-actions .ph-btn { flex: 1 1 0; padding: 0 14px; }
	.ph-hs .ph-btn-link { flex-basis: 100%; text-align: center; border: 0; text-decoration: underline; }
	.ph-hs-controls { bottom: 16px; }
	.ph-hs-arrow { display: none; }
	.ph-hs-banner img { min-height: 0; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.ph-hs-slide, .ph-hs-copy > *, .ph-hs-art img, .ph-hs-bg img { transition: none !important; transform: none !important; }
	.ph-hs.is-ticking .ph-hs-dot[aria-current] span::after { animation: none; }
}

/* Image-banner mode (banners in assets/images/banners or the Customizer) */
.ph-hs.is-banners { background: #0b2f2e; }
.ph-hs-slide.is-banner { min-height: 0; display: block; }
.ph-hs-slide.is-banner .ph-hs-banner img { width: 100%; height: auto; min-height: 0; aspect-ratio: auto; object-fit: contain; }
.ph-hs-slide.is-banner .ph-hs-banner img { transform: scale(1.02); transition: transform 6s ease-out; }
.ph-hs-slide.is-banner.is-active .ph-hs-banner img { transform: scale(1); }
.ph-hs.is-banners .ph-hs-controls { bottom: 14px; }
@media (max-width: 767px) {
	.ph-hs.is-banners .ph-hs-controls { position: static; transform: none; width: max-content; margin: 8px auto; background: rgba(255,255,255,.08); }
	.ph-hs.is-banners .ph-hs-pause { width: 34px; height: 34px; }
	.ph-hs.is-banners .ph-hs-dot { height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .ph-hs-slide.is-banner .ph-hs-banner img { transform: none !important; transition: none !important; } }

.ph-hs-slide.is-banner picture { display: block; }
.ph-hs-empty { width: min(1280px, calc(100% - 32px)); margin: 16px auto; padding: 14px 18px; border: 1px dashed #be7951; border-radius: 12px; background: #fff8ee; color: #6b4a1d; font-size: 14px; }
/* Banners always use their real height (see sizes="auto" note in hero-products.php). */
.ph-hs .ph-hs-banner img, .ph-hs .ph-hs-banner-img { height: auto !important; min-height: 0 !important; }
.ph-hs.is-banners .ph-hs-slide, .ph-hs.is-banners .ph-hs-banner { min-height: 0 !important; height: auto !important; }
