/* ==========================================================
   Aori Hero Slider — premium K-Beauty product hero
   ========================================================== */
.aori-hs {
  --hs-pink: #FE76A8;
  --hs-orange: #FE6B20;
  --hs-ink: #14131a;
  --hs-muted: #6c6a74;
  --hs-line: rgba(20, 19, 26, 0.08);
  --hs-radius: 36px;
  --hs-ease: cubic-bezier(.22, 1, .36, 1);

  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ---------- Stage ---------- */
.aori-hs__viewport {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: clamp(560px, 70vw, 760px);
  isolation: isolate;
  background:
    radial-gradient(1100px 520px at 12% 18%, rgba(254, 118, 168, 0.22), transparent 60%),
    radial-gradient(900px 480px at 92% 88%, rgba(254, 107, 32, 0.14), transparent 60%),
    radial-gradient(600px 320px at 60% 10%, rgba(255, 221, 122, 0.20), transparent 60%),
    linear-gradient(140deg, #fffaf6 0%, #fdf1f3 55%, #f9e6ec 100%);
  box-shadow:
    0 40px 70px -40px rgba(24, 6, 18, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Subtle grain texture for premium feel */
.aori-hs__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 19, 26, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: .4;
  z-index: 0;
}

/* ---------- Slides (crossfade + gentle lift) ---------- */
.aori-hs__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding: clamp(48px, 6vw, 90px) clamp(40px, 7vw, 120px) clamp(96px, 9vw, 140px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.992);
  transition:
    opacity .9s var(--hs-ease),
    transform 1s var(--hs-ease),
    visibility 0s linear .9s;
  pointer-events: none;
  z-index: 1;
}

.aori-hs__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity .9s var(--hs-ease),
    transform 1s var(--hs-ease),
    visibility 0s linear 0s;
  pointer-events: auto;
  z-index: 2;
}

/* Staggered reveal of content blocks */
.aori-hs__slide .aori-hs__eyebrow,
.aori-hs__slide .aori-hs__title,
.aori-hs__slide .aori-hs__excerpt,
.aori-hs__slide .aori-hs__price,
.aori-hs__slide .aori-hs__actions {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--hs-ease), transform .9s var(--hs-ease);
}
.aori-hs__slide.is-active .aori-hs__eyebrow  { opacity: 1; transform: none; transition-delay: .10s; }
.aori-hs__slide.is-active .aori-hs__title    { opacity: 1; transform: none; transition-delay: .18s; }
.aori-hs__slide.is-active .aori-hs__excerpt  { opacity: 1; transform: none; transition-delay: .28s; }
.aori-hs__slide.is-active .aori-hs__price    { opacity: 1; transform: none; transition-delay: .36s; }
.aori-hs__slide.is-active .aori-hs__actions  { opacity: 1; transform: none; transition-delay: .44s; }

.aori-hs__slide .aori-hs__img {
  opacity: 0;
  transform: translateY(30px) scale(.95);
  transition: opacity 1.1s var(--hs-ease), transform 1.2s var(--hs-ease);
}
.aori-hs__slide.is-active .aori-hs__img {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: .15s;
}

/* ---------- Media column ---------- */
.aori-hs__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aori-hs__blob {
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle at 30% 25%, #ffe3ec 0%, #ffc1d4 35%, #fe96b7 75%, #f778a1 100%);
  border-radius: 64% 36% 58% 42% / 42% 58% 42% 58%;
  animation: aori-hs-blob 16s ease-in-out infinite alternate;
  box-shadow:
    0 50px 100px -30px rgba(254, 118, 168, 0.42),
    inset 0 0 80px rgba(255, 255, 255, 0.25);
}

/* Secondary decorative ring */
.aori-hs__media::before {
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  border: 1px dashed rgba(254, 118, 168, 0.35);
  animation: aori-hs-rotate 40s linear infinite;
  z-index: 0;
}

@keyframes aori-hs-blob {
  0%   { border-radius: 64% 36% 58% 42% / 42% 58% 42% 58%; transform: rotate(0deg) scale(1); }
  50%  { border-radius: 42% 58% 36% 64% / 58% 42% 58% 42%; transform: rotate(10deg) scale(1.04); }
  100% { border-radius: 58% 42% 64% 36% / 36% 64% 42% 58%; transform: rotate(-8deg) scale(1.02); }
}

@keyframes aori-hs-rotate {
  to { transform: rotate(360deg); }
}

.aori-hs__img {
  position: relative;
  z-index: 2;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 38px 44px rgba(120, 24, 60, 0.34)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
  animation: aori-hs-float 7s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes aori-hs-float {
  from { transform: translateY(-6px) rotate(-1deg); }
  to   { transform: translateY(10px) rotate(1.5deg); }
}

.aori-hs__tag {
  position: absolute;
  top: 5%;
  left: 5%;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hs-pink), var(--hs-orange));
  box-shadow: 0 14px 28px -10px rgba(254, 107, 32, 0.6);
  animation: aori-hs-pulse 2.8s ease-in-out infinite;
}

@keyframes aori-hs-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ---------- Content column ---------- */
.aori-hs__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.aori-hs__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--hs-pink);
  margin-bottom: 22px;
  padding: 8px 16px;
  background: rgba(254, 118, 168, 0.08);
  border: 1px solid rgba(254, 118, 168, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.aori-hs__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hs-pink);
  box-shadow: 0 0 0 3px rgba(254, 118, 168, 0.18);
}

.aori-hs__title {
  font-family: var(--font-display, 'Playfair Display', 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.02;
  font-weight: 600;
  color: var(--hs-ink);
  margin: 0 0 22px;
  letter-spacing: -0.015em;
}

.aori-hs__excerpt {
  color: var(--hs-muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 48ch;
}

.aori-hs__price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--hs-ink);
  margin-bottom: 36px;
  padding: 10px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.18), inset 0 0 0 1px var(--hs-line);
}
.aori-hs__price del  { color: #b9b0b3; font-weight: 500; font-size: 17px; }
.aori-hs__price ins  { text-decoration: none; color: var(--hs-orange); }
.aori-hs__price .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }

.aori-hs__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.aori-hs__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 34px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--hs-ink);
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  transition: transform .4s var(--hs-ease), box-shadow .4s var(--hs-ease), color .4s var(--hs-ease);
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.4);
}
.aori-hs__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hs-pink), var(--hs-orange));
  opacity: 0;
  transition: opacity .4s var(--hs-ease);
  z-index: 0;
}
.aori-hs__cta > * { position: relative; z-index: 1; }
.aori-hs__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -14px rgba(254, 107, 32, 0.55);
  color: #fff;
}
.aori-hs__cta:hover::before { opacity: 1; }
.aori-hs__cta svg { transition: transform .4s var(--hs-ease); }
.aori-hs__cta:hover svg { transform: translateX(6px); }

/* ---------- Arrows ---------- */
.aori-hs__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hs-line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  color: var(--hs-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--hs-ease), background .3s ease, box-shadow .3s ease;
  z-index: 5;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.4);
}
.aori-hs__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.35);
}
.aori-hs__arrow:active { transform: translateY(-50%) scale(0.95); }
.aori-hs__arrow--prev { left: 32px; }
.aori-hs__arrow--next { right: 32px; }

/* ---------- Dots ---------- */
.aori-hs__dots {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  border: 1px solid var(--hs-line);
}
.aori-hs__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(20, 19, 26, 0.2);
  cursor: pointer;
  transition: background .35s var(--hs-ease), width .45s var(--hs-ease);
}
.aori-hs__dot:hover { background: rgba(20, 19, 26, 0.4); }
.aori-hs__dot.is-active {
  background: linear-gradient(90deg, var(--hs-pink), var(--hs-orange));
  width: 32px;
  border-radius: 999px;
}

/* ---------- Progress bar ---------- */
.aori-hs__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(20, 19, 26, 0.06);
  overflow: hidden;
  z-index: 4;
}
.aori-hs__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--hs-pink), var(--hs-orange));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(254, 118, 168, 0.5);
  transition: width .1s linear;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .aori-hs__viewport { min-height: clamp(520px, 90vw, 640px); }
  .aori-hs__slide { gap: 40px; padding: 60px 56px 110px; }
  .aori-hs__arrow--prev { left: 20px; }
  .aori-hs__arrow--next { right: 20px; }
}

@media (max-width: 768px) {
  .aori-hs__viewport {
    min-height: 0;
  }
  .aori-hs__slide {
    position: relative;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 40px 24px 120px;
    transform: none;
  }
  .aori-hs__slide:not(.is-active) { display: none; }
  .aori-hs__slide.is-active       { display: grid; }
  .aori-hs__media { aspect-ratio: 1 / 1; max-width: 340px; margin: 0 auto; }
  .aori-hs__content { text-align: center; margin: 0 auto; max-width: 100%; }
  .aori-hs__excerpt { margin-left: auto; margin-right: auto; }
  .aori-hs__actions { justify-content: center; }
  .aori-hs__title { font-size: clamp(26px, 7vw, 40px); }
  .aori-hs__excerpt { font-size: 15px; }
  .aori-hs__price { font-size: 22px; padding: 8px 16px; }
  .aori-hs__cta   { padding: 15px 28px; font-size: 12px; }
  .aori-hs__arrow {
    width: 40px;
    height: 40px;
    top: 48%;
    transform: translateY(-50%);
  }
  .aori-hs__arrow--prev { left: 14px; }
  .aori-hs__arrow--next { right: 14px; }
  .aori-hs__arrow:hover { transform: translateY(-50%) scale(1.06); }
  .aori-hs__arrow:active { transform: translateY(-50%) scale(0.94); }
  .aori-hs__dots { bottom: 40px; }
}

@media (max-width: 480px) {
  .aori-hs__slide { padding: 32px 18px 110px; }
  .aori-hs__eyebrow { font-size: 9.5px; letter-spacing: 3px; padding: 6px 12px; margin-bottom: 16px; }
  .aori-hs__title { margin-bottom: 16px; }
  .aori-hs__excerpt { margin-bottom: 22px; }
  .aori-hs__price { margin-bottom: 24px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .aori-hs__blob,
  .aori-hs__img,
  .aori-hs__media::before,
  .aori-hs__tag { animation: none; }
  .aori-hs__slide,
  .aori-hs__slide .aori-hs__img,
  .aori-hs__slide .aori-hs__eyebrow,
  .aori-hs__slide .aori-hs__title,
  .aori-hs__slide .aori-hs__excerpt,
  .aori-hs__slide .aori-hs__price,
  .aori-hs__slide .aori-hs__actions {
    transition-duration: .01ms !important;
    transform: none !important;
  }
}
