/* ==========================================================
   Aori Hero Slider — Elegant K-Beauty Product Hero
   Uses theme tokens: --font-body (Inter), --font-display (Pacifico)
   ========================================================== */

.aori-hs-v2 {
  --aori-font-display: var(--font-display, 'Pacifico', cursive);
  --aori-font-body: var(--font-body, 'Inter', system-ui, -apple-system, sans-serif);
  --aori-font-title: 'Poppins', var(--aori-font-body);
  --aori-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8C6B 20%, #FFA94D 40%, #FFD93D 60%, #D9A6FF 80%, #B695C0 100%);
  --aori-text: #1a1a1a;
  --aori-muted: #5f6368;
  --aori-accent: #FF6B6B;    /* coral — badge text + price */
  --aori-pink: #FE76A8;      /* brand pink — title + CTA */
  --aori-pink-dark: #B03D6D; /* darker rose — CTA hover */
  --aori-badge-bg: #FFECEC;  /* soft peach — badge background */
  --aori-badge-border: #FFD6D9;
  --aori-surface: linear-gradient(135deg, #fafaf8 0%, #f5f0f8 100%);
  --aori-radius-lg: 28px;
  --aori-radius-pill: 999px;

  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--aori-font-body);
  color: var(--aori-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.aori-hs-v2 *,
.aori-hs-v2 *::before,
.aori-hs-v2 *::after {
  box-sizing: border-box;
}

/* ---------- PROMO BANNER (optional) ---------- */
.aori-hs-v2__promo {
  background: linear-gradient(90deg, #FF6B6B 0%, #FFA94D 50%, #FFD93D 100%);
  padding: 12px 20px;
  text-align: center;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

/* ---------- HERO CONTAINER ---------- */
.aori-hs-v2 .aori-hs-v2__hero,
.aori-hs-v2__hero {
  display: grid !important;
  grid-template-columns: 1.05fr 1fr !important;
  grid-template-rows: auto !important;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  justify-items: center;
  /* extra breathing room at the bottom per request */
  padding: clamp(36px, 4.5vw, 56px) clamp(20px, 4vw, 56px) clamp(48px, 5.5vw, 70px);
  background:
    /* cinematic top accent line */
    linear-gradient(90deg, #FF6B6B 0%, #FF8C6B 20%, #FFA94D 40%, #FFD93D 60%, #D9A6FF 80%, #B695C0 100%) top / 100% 3px no-repeat,
    /* subtle dot pattern overlay (Slider Revolution vibe) */
    radial-gradient(rgba(26, 26, 26, 0.05) 1px, transparent 1.5px) 0 0 / 26px 26px,
    /* soft surface gradient */
    var(--aori-surface);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Force column order: image LEFT, text RIGHT */
.aori-hs-v2 .aori-hs-v2__product-col,
.aori-hs-v2__product-col {
  grid-column: 1 !important;
  order: 0 !important;
}

.aori-hs-v2 .aori-hs-v2__text-col,
.aori-hs-v2__text-col {
  grid-column: 2 !important;
  order: 1 !important;
}

/* Decorative background blobs (soft ambient light) */
.aori-hs-v2__hero::before,
.aori-hs-v2__hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.aori-hs-v2__hero::before {
  width: clamp(320px, 42vw, 600px);
  height: clamp(320px, 42vw, 600px);
  background: radial-gradient(circle, rgba(255, 107, 107, 0.07) 0%, transparent 65%);
  top: -14%;
  right: -14%;
}

.aori-hs-v2__hero::after {
  width: clamp(260px, 34vw, 500px);
  height: clamp(260px, 34vw, 500px);
  background: radial-gradient(circle, rgba(150, 100, 200, 0.07) 0%, transparent 65%);
  bottom: -14%;
  left: -12%;
}

/* ---------- PRODUCT COLUMN (LEFT) ---------- */
.aori-hs-v2__product-col {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
  width: 100%;
  max-width: 520px;
  /* lift image to align top with title area */
  padding-top: clamp(0px, 1vw, 12px);
}

.aori-hs-v2__product-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1.02;
  display: grid;
  place-items: center;
}

/* Gradient halo behind product */
.aori-hs-v2__product-circle {
  position: absolute;
  inset: 2% 1%;
  background: var(--aori-gradient);
  border-radius: var(--aori-radius-lg);
  z-index: 1;
  box-shadow:
    0 40px 80px -20px rgba(255, 107, 107, 0.28),
    0 20px 40px -10px rgba(150, 100, 200, 0.18);
  animation: aori-v2-gradient-shift 9s ease-in-out infinite;
}

/* Soft highlight overlay for depth */
.aori-hs-v2__product-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

@keyframes aori-v2-gradient-shift {
  0%, 100% {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8C6B 20%, #FFA94D 40%, #FFD93D 60%, #D9A6FF 80%, #B695C0 100%);
  }
  50% {
    background: linear-gradient(225deg, #FF6B6B 0%, #FF8C6B 20%, #FFA94D 40%, #FFD93D 60%, #D9A6FF 80%, #B695C0 100%);
  }
}

.aori-hs-v2__product-wrapper {
  position: relative;
  z-index: 2;
  width: 72%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.aori-hs-v2__product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.18));
}

.aori-hs-v2__product-image.is-active {
  opacity: 1;
  z-index: 2;
  animation: aori-v2-float 5s ease-in-out infinite;
}

@keyframes aori-v2-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- TEXT COLUMN (RIGHT) ---------- */
.aori-hs-v2__text-col {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas: "stack";
  width: 100%;
  max-width: 540px;
  justify-self: start;
  align-self: start;
}

/* Slides share the same grid cell — only the active one is visible */
.aori-hs-v2__slide {
  grid-area: stack;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.aori-hs-v2__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Staggered reveal of slide children for a "cinematic" entrance */
.aori-hs-v2__slide > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.aori-hs-v2__slide.is-active > * {
  opacity: 1;
  transform: translateY(0);
}

.aori-hs-v2__slide.is-active > *:nth-child(1) { transition-delay: 0.05s; }
.aori-hs-v2__slide.is-active > *:nth-child(2) { transition-delay: 0.15s; }
.aori-hs-v2__slide.is-active > *:nth-child(3) { transition-delay: 0.25s; }
.aori-hs-v2__slide.is-active > *:nth-child(4) { transition-delay: 0.35s; }
.aori-hs-v2__slide.is-active > *:nth-child(5) { transition-delay: 0.45s; }
.aori-hs-v2__slide.is-active > *:nth-child(6) { transition-delay: 0.55s; }
.aori-hs-v2__slide.is-active > *:nth-child(7) { transition-delay: 0.65s; }

/* Eyebrow badge — matches reference design 1:1 */
.aori-hs-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 20px 9px 16px;
  background: var(--aori-badge-bg);
  border: 1.5px solid var(--aori-badge-border);
  border-radius: var(--aori-radius-pill);
  font-family: var(--aori-font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--aori-accent);
  text-transform: uppercase;
  margin-bottom: 18px;
  line-height: 1;
}

.aori-hs-v2__badge::before {
  content: '✨';
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(255, 171, 50, 0.3));
}

/* Title — Poppins 500, elegant pink, fixed 2-line height so every slide keeps
   the same vertical rhythm regardless of product name length. */
.aori-hs-v2__title {
  font-family: var(--aori-font-title);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
  color: var(--aori-pink);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  /* Clamp to exactly 2 lines with ellipsis — stable height across slides */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.25em * 2);
  max-height: calc(1.25em * 2);
  word-break: break-word;
}

.aori-hs-v2__title strong {
  background: var(--aori-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.aori-hs-v2__subtitle {
  font-family: var(--aori-font-body);
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--aori-muted);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 52ch;
}

/* Features — elegant glass card with gradient icon chips */
.aori-hs-v2__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 0 0 22px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 10px 30px -12px rgba(26, 26, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.aori-hs-v2__feature {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--aori-text);
  font-weight: 500;
  line-height: 1.3;
  min-width: 0;
}

.aori-hs-v2__feature > span:not(.aori-hs-v2__feature-icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gradient icon chip — Slider Revolution style */
.aori-hs-v2__feature-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--aori-gradient) border-box;
  border: 1.5px solid transparent;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(255, 107, 107, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.aori-hs-v2__feature:hover .aori-hs-v2__feature-icon {
  transform: rotate(-6deg) scale(1.08);
}

/* Price */
.aori-hs-v2__price-section {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 22px;
}

.aori-hs-v2__price {
  font-family: var(--aori-font-title);
  font-size: clamp(30px, 3.2vw, 32px);
  font-weight: 600;
  color: var(--aori-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.aori-hs-v2__price del {
  font-size: 0.58em;
  font-weight: 500;
  color: var(--aori-muted);
  margin-right: 10px;
  opacity: 0.65;
  text-decoration: line-through;
}

.aori-hs-v2__price ins {
  text-decoration: none;
  color: var(--aori-accent);
}

.aori-hs-v2__price .woocommerce-Price-amount {
  font-family: inherit;
  color: inherit;
}

/* CTA button */
.aori-hs-v2__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--aori-pink);
  color: #fff;
  border: none;
  border-radius: var(--aori-radius-pill);
  font-family: var(--aori-font-title);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.35s ease;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 14px 30px -10px rgba(254, 118, 168, 0.55);
}

.aori-hs-v2__cta::after {
  content: '→';
  font-size: 16px;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.aori-hs-v2__cta:hover,
.aori-hs-v2__cta:focus-visible {
  transform: translateY(-3px);
  background: var(--aori-pink-dark);
  color: #fff;
  box-shadow: 0 20px 40px -10px rgba(176, 61, 109, 0.55);
  outline: none;
}

.aori-hs-v2__cta:hover::after,
.aori-hs-v2__cta:focus-visible::after {
  transform: translateX(4px);
}

/* Dots */
.aori-hs-v2__dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.aori-hs-v2__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.2);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.3s ease, width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.aori-hs-v2__dot:hover {
  background: rgba(26, 26, 26, 0.45);
}

.aori-hs-v2__dot.is-active {
  width: 26px;
  background: var(--aori-accent);
  border-radius: 4px;
}

/* Arrows */
.aori-hs-v2__arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 22px;
  color: var(--aori-text);
  z-index: 5;
  transform: translateY(-50%);
  line-height: 1;
  padding: 0;
}

.aori-hs-v2__arrow:hover,
.aori-hs-v2__arrow:focus-visible {
  background: #fff;
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%) scale(1.08);
  outline: none;
}

.aori-hs-v2__arrow--prev { left: clamp(10px, 2vw, 28px); }
.aori-hs-v2__arrow--next { right: clamp(10px, 2vw, 28px); }

/* ---------- RESPONSIVE ---------- */

/* Medium: keep 2 columns but tighter */
@media (max-width: 1100px) {
  .aori-hs-v2 .aori-hs-v2__hero,
  .aori-hs-v2__hero {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px;
  }

  .aori-hs-v2__product-container {
    max-width: 380px;
  }

  .aori-hs-v2__features {
    padding: 14px 16px;
  }
}

/* Tablet: still 2 columns, slightly smaller */
@media (max-width: 900px) {
  .aori-hs-v2__title {
    font-size: clamp(24px, 3.6vw, 36px);
  }

  .aori-hs-v2__product-container {
    max-width: 340px;
  }
}

/* Mobile: stack — image on top, text centered below */
@media (max-width: 768px) {
  .aori-hs-v2 .aori-hs-v2__hero,
  .aori-hs-v2__hero {
    grid-template-columns: 1fr !important;
    padding: clamp(28px, 6vw, 44px) clamp(18px, 4vw, 28px);
    gap: 28px;
    text-align: center;
  }

  .aori-hs-v2 .aori-hs-v2__product-col,
  .aori-hs-v2__product-col {
    grid-column: 1 !important;
    order: 0 !important;
    max-width: 360px;
    padding-top: 0;
  }

  .aori-hs-v2 .aori-hs-v2__text-col,
  .aori-hs-v2__text-col {
    grid-column: 1 !important;
    order: 1 !important;
    max-width: 100%;
    justify-self: center;
  }

  .aori-hs-v2__slide {
    align-items: center;
  }

  .aori-hs-v2__badge,
  .aori-hs-v2__cta,
  .aori-hs-v2__dots,
  .aori-hs-v2__price-section {
    align-self: center;
    justify-content: center;
  }

  .aori-hs-v2__subtitle {
    max-width: 100%;
  }

  .aori-hs-v2__features {
    text-align: left;
  }

  .aori-hs-v2__product-container {
    max-width: 320px;
  }

  /* Hide arrows on mobile — swipe + dots cover navigation */
  .aori-hs-v2__arrow {
    display: none;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .aori-hs-v2 .aori-hs-v2__hero,
  .aori-hs-v2__hero {
    padding: 26px 14px 36px;
    gap: 22px;
  }

  .aori-hs-v2__badge {
    font-size: 14px;
    padding: 6px 14px;
  }

  .aori-hs-v2__title {
    font-size: clamp(24px, 7.5vw, 34px);
    margin-bottom: 10px;
  }

  .aori-hs-v2__subtitle {
    font-size: 13.5px;
    margin-bottom: 16px;
  }

  /* Keep 2 columns on mobile for a cleaner, symmetric card */
  .aori-hs-v2__features {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    gap: 10px 12px;
    margin-bottom: 18px;
  }

  .aori-hs-v2__feature {
    gap: 8px;
    font-size: 12px;
  }

  .aori-hs-v2__feature-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .aori-hs-v2__price-section {
    margin-bottom: 18px;
  }

  .aori-hs-v2__cta {
    padding: 13px 26px;
    font-size: 12px;
  }

  .aori-hs-v2__product-container {
    max-width: 260px;
  }

  .aori-hs-v2__dots {
    gap: 8px;
    margin-top: 18px;
  }

  .aori-hs-v2__dot {
    width: 7px;
    height: 7px;
  }

  .aori-hs-v2__dot.is-active {
    width: 20px;
  }
}

/* Tiny phones — fallback if anything overflows */
@media (max-width: 360px) {
  .aori-hs-v2__features {
    padding: 12px;
    gap: 8px;
  }

  .aori-hs-v2__feature {
    font-size: 11.5px;
  }

  .aori-hs-v2__feature-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}

/* ---------- MOTION PREFERENCES ---------- */
@media (prefers-reduced-motion: reduce) {
  .aori-hs-v2 *,
  .aori-hs-v2 *::before,
  .aori-hs-v2 *::after {
    animation: none !important;
    transition: none !important;
  }
}
