/* front2 — home hero slider (3 heroes) */
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s .5s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-nav { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; margin-top: -8px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { position: relative; width: 46px; height: 6px; border-radius: 6px; background: rgba(21,23,26,.14); overflow: hidden; }
.hero-dot i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; background: var(--accent); }
.hero-dot.is-on i { transform: scaleX(.18); }
.hero-dot.is-on.is-run i { animation: dotrun var(--dur, 9s) linear forwards; }
@keyframes dotrun { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-car { display: grid; gap: 14px; }
.hero-car__stage { aspect-ratio: 16 / 10; }
.hero-car__stage .car-studio__svg { margin-bottom: 9%; }
.hero-car__chips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.hero-car__chips .swatch { aspect-ratio: 1; }
.hero-car__chips .swatch.is-active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.hero-scan { border-radius: var(--r-lg); background: radial-gradient(120% 90% at 50% 0%, #2A303A, #15181D); padding: 16px; box-shadow: var(--shadow-2); }
@media (max-width: 640px) { .hero-car__chips { grid-template-columns: repeat(6, 1fr); } .hero-dot { width: 32px; } }
@media (prefers-reduced-motion: reduce) { .hero-dot.is-on i { transform: scaleX(1); animation: none; } }

/* Slide 2 — wall colour visualiser */
.hero-wall { display: grid; gap: 14px; }
.hero-wall__stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg, 22px); overflow: hidden; background: #E9E5DD; box-shadow: 0 30px 60px -30px rgba(20, 22, 26, .45); isolation: isolate; }
.hero-wall__scene { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease-out, ease); }
.hero-wall__scene.is-on { opacity: 1; }
.hero-wall__paint, .hero-wall__roll { position: absolute; inset: 0; }
.hero-wall__paint { background: var(--wall); }
.hero-wall__roll { background: var(--next, var(--wall)); clip-path: inset(0 100% 0 0); }
.hero-wall__roll.go { animation: hwRoll .85s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes hwRoll { to { clip-path: inset(0 0 0 0); } }
.hero-wall__shade, .hero-wall__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-wall__shade { mix-blend-mode: soft-light; }
.hero-wall__tabs { position: absolute; top: 14px; left: 14px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-wall__tabs button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2, #3A3D42); }
.hero-wall__tabs button[aria-selected="true"] { background: var(--ink, #15171A); color: #fff; }
.hero-wall__badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 8px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; color: var(--ink-2, #3A3D42); }
.hero-wall__badge i { width: 26px; height: 26px; border-radius: 50%; background: var(--next, var(--wall)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: background-color .4s; }
.hero-wall__badge b { color: var(--ink, #15171A); }
@media (max-width: 640px) { .hero-wall__tabs button { padding: 0 10px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .hero-wall__roll.go { animation-duration: .01s; } }

/* photo slide (admin) */
.hero-photo { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg, 22px); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20, 22, 26, .45); background: #E9E5DD; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* arrows on the left / right edges, progress dots at the bottom */
.hero-slides { touch-action: pan-y; }
.hero-nav { position: absolute; inset: 0; margin: 0; max-width: none; padding: 0; pointer-events: none; display: block; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; pointer-events: auto; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.86); box-shadow: 0 8px 24px -10px rgba(20,22,26,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .2s, background-color .2s; }
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-arrow--prev { left: max(10px, calc((100vw - 1400px) / 2 - 64px)); }
.hero-arrow--next { right: max(10px, calc((100vw - 1400px) / 2 - 64px)); }
.hero-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); pointer-events: auto; }
@media (max-width: 1500px) { .hero-arrow--prev { left: 10px; } .hero-arrow--next { right: 10px; } }

/* Polisan Club slide */
.hero-club { display: grid; }
.hero-club__panel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg, 22px); padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; justify-items: start;
  color: #fff; background: linear-gradient(135deg, #8E0A22 0%, #C8102E 55%, #E9374A 100%); box-shadow: 0 30px 60px -30px rgba(160, 12, 38, .7); }
.hero-club__panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #7b2cbf, #1e5fd8, #12a3d9, #19b34a, #f2d21b, #f28c1b, #e5302c); }
.hero-club__rays { position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 200deg at 70% 30%, rgba(255,255,255,.16), transparent 18%, rgba(255,255,255,.08) 30%, transparent 46%); animation: clubspin 24s linear infinite; }
@keyframes clubspin { to { transform: rotate(360deg); } }
.hero-club__card { width: min(360px, 78%); border-radius: 16px; box-shadow: 0 24px 40px -16px rgba(0,0,0,.55); transform: rotate(-5deg); animation: clubfloat 6s ease-in-out infinite; }
@keyframes clubfloat { 50% { transform: rotate(-3deg) translateY(-8px); } }
.hero-club__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 700; font-size: 15px; }
.hero-club__perks li { display: flex; align-items: center; gap: 10px; }
.hero-club__perks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255,255,255,.2); }
.hero-club__btn { display: inline-flex; align-items: center; gap: 16px; padding: 10px 14px 10px 22px; border-radius: 999px; background: #fff; color: #B30E2A; box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.hero-club__btn span { display: flex; flex-direction: column; line-height: 1.15; }
.hero-club__btn small { font-size: 11.5px; font-weight: 700; opacity: .75; }
.hero-club__btn b { font-size: 17px; }
.hero-club__btn > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #C8102E; color: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-club__rays, .hero-club__card { animation: none; } }

/* New products slide */
.hero-fresh { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hero-fresh__item { position: relative; display: grid; gap: 6px; padding: 12px; border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 18px 40px -26px rgba(20,22,26,.5); transition: transform .25s var(--ease-out); }
.hero-fresh__item:hover { transform: translateY(-4px); }
.hero-fresh__img { aspect-ratio: 4 / 3; border-radius: 12px; background: #F2EFEA; display: grid; place-items: center; overflow: hidden; }
.hero-fresh__img img { width: 88%; height: 88%; object-fit: contain; }
.hero-fresh__new { position: absolute; top: 18px; left: 18px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; }
.hero-fresh__item b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-fresh__item em { font-style: normal; font-weight: 800; font-size: 14px; color: var(--accent); }

/* desktop: shorter covers */
@media (min-width: 901px) { .hero--home { padding: clamp(24px, 3vw, 44px) 0 clamp(56px, 5vw, 72px); } .hero--home .hero__grid { min-height: min(62vh, 600px); } }

/* ---------- phone / small tablet: compact covers ---------- */
@media (max-width: 900px) {
  .hero--home { padding: 18px 0 46px; }
  .hero--home .hero__grid { gap: 16px; }
  .hero--home .hero__title { font-size: clamp(28px, 8vw, 40px); margin: 8px 0 10px; }
  .hero--home .lead { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero--home .hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .hero--home .hero__actions .btn { height: 44px; padding: 0 16px; font-size: 14px; }
  .hero--home .hero__meta { display: none; }
  .hero--home .swatch-grid .swatch:nth-child(n+11) { display: none; }
  .hero--home .hero__palette > p, .hero--home .palette-note { display: none; }
  .hero-scan { max-height: 260px; overflow: hidden; }
  .hero-photo, .hero-wall__stage { aspect-ratio: 16 / 9; }
  .hero-arrow { width: 38px; height: 38px; top: auto; bottom: 4px; transform: none; }
  .hero-arrow:hover { transform: none; }
  .hero-arrow--prev { left: 16px; } .hero-arrow--next { right: 16px; }
  .hero-dots { bottom: 19px; }
  .hero-club__panel { padding: 18px; gap: 12px; grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-club__card { width: 100%; grid-row: span 2; }
  .hero-club__perks { font-size: 13px; }
  .hero-club__btn { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
  .hero-fresh { gap: 10px; }
  .hero-fresh__item { padding: 8px; }
  .hero-fresh__item:nth-child(n+3) { display: none; }
}
.hero--home .scroll-cue { display: none; }
@media (max-width: 900px) {
  .hero--home .palette-tabs button small { display: none; }
  .hero--home .palette-tabs button { white-space: nowrap; font-size: 13px; }
}
@media (max-width: 900px) {
  .hero-arrow { top: 50%; bottom: auto; transform: translateY(-50%); width: 34px; height: 34px; background: rgba(255,255,255,.78); }
  .hero-arrow:hover { transform: translateY(-50%); }
  .hero-arrow .icon { width: 16px; height: 16px; }
  .hero-arrow--prev { left: 4px; } .hero-arrow--next { right: 4px; }
  .hero-dots { bottom: 16px; }
}

/* slide change: plain horizontal slide driven by JS (transform only) */
.hero-slide { transition: none; backface-visibility: hidden; }
