/* Dedoka — homepage hero carousel */

.default-block-padding {
  padding: 60px 0;
}

.hero-carousel {
  padding-bottom: 220px;
  position: relative;
  overflow: hidden;
}

.hero-carousel.default-block-padding {
  padding-top: 0;
}

/* Single-product hero (no carousel) */
.hero-carousel--single .backgrounds .next,
.hero-carousel--single .embla__nav {
  display: none;
}

.hero-carousel--single .embla__container {
  justify-content: center;
  transform: none !important;
}

.hero-carousel--single .slide-content-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-carousel--single .hero-copy {
  max-width: none;
}

.hero-carousel--single .hero-copy__subhead,
.hero-carousel--single .hero-copy__tagline {
  max-width: none;
}

.hero-carousel--single {
  min-height: calc(72vh + var(--site-header-clearance));
  padding-bottom: 80px;
}

.hero-carousel--single .embla__slide {
  flex: 0 0 100%;
  max-width: min(1728px, calc(100vw - 32px));
  min-width: 0;
  width: 100%;
}

.hero-carousel--single .slide-content-container {
  max-width: min(1728px, calc(100vw - 32px));
  width: 100%;
}

@media (min-width: 769px) {
  .hero-carousel--single .embla__slide,
  .hero-carousel--single .slide-content-container {
    max-width: min(1728px, calc(100vw - 64px));
  }
}

@media (min-width: 1025px) {
  .hero-carousel--single .carousel {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: calc(var(--site-header-clearance) + 48px);
  }

  .hero-carousel--single .bg-shape {
    left: 25%;
    max-width: min(980px, 76vw);
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-carousel--single .slide-content-container {
    align-items: center;
    display: grid;
    gap: 3rem 5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(85vh - var(--site-header-clearance));
    text-align: left;
  }

  .hero-carousel--single .hero-copy {
    margin: 0;
    max-width: none;
    padding: 0;
  }

  .hero-carousel--single .hero-copy__title {
    font-size: 3rem;
    letter-spacing: -1.44px;
    line-height: 0.95;
    margin-top: 0;
  }

  .hero-carousel--single .hero-copy__subhead {
    font-size: 1.375rem;
    letter-spacing: -0.22px;
    line-height: 1.5;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    padding: 0;
    text-align: left;
  }

  .hero-carousel--single .hero-copy__tagline {
    font-size: 1.375rem;
    letter-spacing: -0.22px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1.5rem;
    max-width: none;
    padding: 0;
    text-align: left;
  }

  .hero-carousel--single .hero-copy .product-links {
    justify-content: flex-start;
    margin-top: 1.75rem;
  }
}

@media (min-width: 1400px) {
  .hero-carousel--single .slide-content-container {
    gap: 3.5rem 6rem;
  }

  .hero-carousel--single .hero-copy__title {
    font-size: 3.25rem;
    letter-spacing: -1.56px;
  }

  .hero-carousel--single .hero-copy__subhead {
    font-size: 1.5rem;
  }

  .hero-carousel--single .hero-copy__tagline {
    font-size: 1.5rem;
    margin-top: 1.75rem;
  }
}

@media (min-width: 1025px) {
  .hero-carousel--single .embla__slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

@media (min-width: 1400px) {
  .hero-carousel--single .embla__slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

@media (min-width: 1025px) {
  .hero-carousel {
    min-height: 1000px;
    padding-bottom: 300px;
  }

  .hero-carousel--single {
    min-height: calc(85vh + var(--site-header-clearance));
    padding-bottom: 120px;
  }
}

/* —— Background wipe (active / next) —— */
.hero-carousel .backgrounds {
  z-index: 0;
}

.hero-carousel .backgrounds,
.hero-carousel .backgrounds .active,
.hero-carousel .backgrounds .next {
  height: calc(100% + var(--site-header-clearance));
  left: 0;
  position: absolute;
  top: calc(-1 * var(--site-header-clearance));
  width: 100%;
}

.hero-carousel .backgrounds .active {
  z-index: 1;
}

.hero-carousel .backgrounds .next {
  clip-path: circle(0% at 50% 50%);
  transition: none;
  will-change: clip-path;
  z-index: 2;
}

.hero-carousel .backgrounds .active.is-wiping,
.hero-carousel .backgrounds .next.is-wiping {
  transition: clip-path 0.5s cubic-bezier(0.2, 1, 0.2, 1);
}

main > .hero-carousel:not(:first-child) .backgrounds,
main > .hero-carousel:not(:first-child) .backgrounds .active,
main > .hero-carousel:not(:first-child) .backgrounds .next {
  height: 100%;
  top: 0;
}

main > .hero-carousel:not(:first-child) .carousel {
  padding-top: 48px;
}

@media (min-width: 1025px) {
  main > .hero-carousel:not(:first-child) .carousel {
    padding-top: 64px;
  }

  main > .hero-carousel.hero-carousel--single:not(:first-child) .carousel {
    padding-top: 64px;
  }
}

.hero-carousel .bg-shape {
  aspect-ratio: 1 / 1;
  height: 100%;
  left: 50%;
  max-width: 420px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  z-index: 2;
}

@media (min-width: 1025px) {
  .hero-carousel .bg-shape {
    max-width: 800px;
    top: 60px;
    transform: translate(-50%, 60px);
  }
}

.hero-carousel .bg-shape img {
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-carousel .bg-shape img {
    margin-top: 100px;
  }
}

.hero-carousel .bg-shape.is-hidden {
  opacity: 0;
}

/* —— Carousel track —— */
.hero-carousel .carousel {
  margin-top: 0;
  padding-top: var(--site-header-clearance);
  position: relative;
  z-index: 11;
}

@media (min-width: 1025px) {
  .hero-carousel .carousel {
    padding-top: calc(var(--site-header-clearance) + 20px);
  }
}

.hero-carousel .embla {
  overflow: hidden;
}

.hero-carousel .embla__container {
  backface-visibility: hidden;
  display: flex;
  opacity: 0;
  transform: translateZ(0);
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
  will-change: transform;
}

.hero-carousel.is-ready .embla__container {
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1), opacity 0.5s ease;
}

.hero-carousel .embla__slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 1025px) {
  .hero-carousel .embla__slide {
    flex: 0 0 67%;
    min-width: 67%;
  }
}

@media (min-width: 1400px) {
  .hero-carousel .embla__slide {
    flex: 0 0 58%;
    min-width: 58%;
  }
}

/* —— Slide content —— */
.slide-content-container {
  margin: 0 auto;
  max-width: 800px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 2;
}

@media (min-width: 1025px) {
  .slide-content-container {
    max-width: 1000px;
  }
}

.hero-copy {
  margin: 0 auto;
  max-width: 500px;
  padding: 0 8px;
}

@media (min-width: 1025px) {
  .hero-copy {
    max-width: 877px;
  }
}

.hero-copy__eyebrow,
.hero-copy__title,
.hero-copy__subhead,
.hero-copy__tagline,
.hero-copy__stats {
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-copy__eyebrow {
  background: var(--color-brars-red)14;
  border: 1px solid var(--color-brars-red)33;
  border-radius: 999px;
  color: var(--color-brars-orange);
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 0.4em 1em;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .hero-copy__eyebrow {
    font-size: 0.9375rem;
  }
}

.hero-copy__title {
  color: var(--color-brars-red);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -1.08px;
  line-height: 0.95;
  margin-top: 0.5em;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .hero-copy__title {
    font-size: 2.75rem;
    letter-spacing: -1.32px;
  }
}

@media (min-width: 1025px) {
  .hero-copy__title {
    font-size: 3rem;
    letter-spacing: -1.44px;
  }
}

@media (min-width: 1400px) {
  .hero-copy__title {
    font-size: 3.25rem;
    letter-spacing: -1.56px;
  }
}

.hero-copy__subhead {
  color: var(--color-almost-black);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.18px;
  line-height: 1.55;
  margin-top: 1rem;
  max-width: 26em;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
  text-align: center;
  text-transform: none;
}

.hero-copy__tagline {
  color: var(--color-almost-black);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.18px;
  line-height: 1.3;
  margin: 1.25rem auto 0;
  max-width: 26em;
  padding: 0 8px;
  text-align: center;
}

@media (min-width: 1025px) {
  .hero-copy__subhead {
    font-size: 1.375rem;
    letter-spacing: -0.22px;
    line-height: 1.5;
    margin-top: 1.25rem;
  }

  .hero-copy__tagline {
    font-size: 1.375rem;
    letter-spacing: -0.22px;
    margin-top: 1.5rem;
    text-align: left;
  }
}

.hero-copy__stats {
  align-items: center;
  color: var(--color-almost-black);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  gap: 0.6em;
  justify-content: center;
  list-style: none;
  margin-top: 1.1rem;
  padding: 0;
}

.hero-copy__stats li {
  align-items: center;
  display: flex;
  gap: 0.6em;
}

.hero-copy__stats li + li::before {
  background: var(--color-almost-black)4d;
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 4px;
  width: 4px;
}

.hero-copy__stats strong {
  color: var(--color-brars-orange);
  font-weight: 700;
}

@media (min-width: 1025px) {
  .hero-copy__stats {
    font-size: 1.0625rem;
  }
}

.hero-carousel .embla__slide.is-selected .hero-copy__eyebrow,
.hero-carousel .embla__slide.is-selected .hero-copy__title,
.hero-carousel .embla__slide.is-selected .hero-copy__subhead,
.hero-carousel .embla__slide.is-selected .hero-copy__tagline,
.hero-carousel .embla__slide.is-selected .hero-copy__stats,
.hero-carousel.is-ready .hero-copy__eyebrow,
.hero-carousel.is-ready .hero-copy__title,
.hero-carousel.is-ready .hero-copy__subhead,
.hero-carousel.is-ready .hero-copy__tagline,
.hero-carousel.is-ready .hero-copy__stats {
  opacity: 1;
  transform: translateY(0);
}

.hero-carousel .embla__slide:not(.is-selected) .hero-copy__eyebrow,
.hero-carousel .embla__slide:not(.is-selected) .hero-copy__title,
.hero-carousel .embla__slide:not(.is-selected) .hero-copy__subhead,
.hero-carousel .embla__slide:not(.is-selected) .hero-copy__tagline,
.hero-carousel .embla__slide:not(.is-selected) .hero-copy__stats {
  transform: translateY(24px);
}

/* —— Homepage packshots (about-style mandala) —— */
.hero-packshots {
  display: block;
  margin: 0 auto;
  max-width: 360px;
  min-height: 380px;
  overflow: visible;
  padding: 32px 0;
  position: relative;
  width: 100%;
}

@media (min-width: 769px) {
  .hero-packshots {
    max-width: 520px;
    min-height: 460px;
  }
}

@media (min-width: 1025px) {
  .hero-packshots {
    margin: 0;
    max-width: none;
    min-height: 540px;
    padding: 48px 0;
  }
}

@media (min-width: 1400px) {
  .hero-packshots {
    min-height: 580px;
  }

  .hero-packshots__pack {
    max-width: 360px;
  }
}

.hero-packshots__mandala {
  animation: hero-mandala-spin 51s linear infinite;
  color: var(--color-brars-red);
  inset: 0;
  opacity: 0.85;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-packshots__mandala img {
  display: block;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  width: 100%;
}

@keyframes hero-mandala-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-packshots__pack {
  display: block;
  margin: 0 auto;
  max-width: 240px;
  opacity: 1;
  position: relative;
  transform: rotate(-7deg);
  width: 100%;
  z-index: 5;
}

@media (min-width: 769px) {
  .hero-packshots__pack {
    max-width: 300px;
  }
}

@media (min-width: 1025px) {
  .hero-packshots__pack {
    max-width: 320px;
  }
}

.hero-packshots__sparkle {
  position: absolute;
  width: 24px;
  z-index: 4;
}

.hero-packshots__sparkle--1 {
  left: 16%;
  top: -3%;
  transform: rotate(-8deg);
}

.hero-packshots__sparkle--2 {
  left: 11%;
  top: 85%;
  transform: rotate(-40deg);
}

@media (min-width: 1025px) {
  .hero-packshots__sparkle--2 {
    left: auto;
    right: 10%;
    top: 35%;
  }
}

.hero-packshots__sparkle--3 {
  left: 52%;
  top: -12%;
  transform: rotate(60deg);
  width: 16px;
}

.hero-packshots__sparkle--4 {
  left: 76%;
  top: 92%;
  width: 18px;
}

.hero-packshots__sticker {
  position: absolute;
  width: 72px;
  z-index: 6;
}

@media (min-width: 769px) {
  .hero-packshots__sticker {
    width: 96px;
  }
}

@media (min-width: 1025px) {
  .hero-packshots__sticker {
    width: 110px;
  }
}

.hero-packshots__sticker--1 {
  left: 5%;
  top: 26%;
  transform: rotate(-24deg);
}

.hero-packshots__sticker--2 {
  right: 8%;
  top: 0;
  transform: rotate(13deg);
}

.hero-carousel--single .hero-packshots__pack {
  opacity: 0;
  transform: rotate(-7deg) translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-carousel--single.is-ready .hero-packshots__pack {
  opacity: 1;
  transform: rotate(-7deg) translateY(0);
}

.hero-carousel--single .hero-packshots__sticker,
.hero-carousel--single .hero-packshots__sparkle {
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
}

.hero-carousel--single.is-ready .hero-packshots__sticker,
.hero-carousel--single.is-ready .hero-packshots__sparkle {
  opacity: 1;
}

/* —— Product image area (legacy carousel slides) —— */
.hero-carousel .embla__slide .image-container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 300px;
  overflow: visible;
  position: relative;
}

.hero-carousel--single .slide-content-container {
  overflow: visible;
}

.hero-carousel .embla__slide .image-container::after {
  background: var(--color-almost-black)33;
  border-radius: 30%;
  content: "";
  filter: blur(12px);
  height: 50px;
  left: 50%;
  position: absolute;
  top: 70%;
  transform: translate(-50%, -70%) scale(3);
  width: 50px;
  z-index: -1;
}

@media (min-width: 769px) {
  .hero-carousel .embla__slide .image-container::after {
    height: 100px;
    width: 100px;
  }
}

@media (min-width: 1025px) {
  .hero-carousel .embla__slide .image-container {
    max-width: 600px;
  }
}

.hero-carousel .embla__slide .image-container .main-image {
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 210px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.5;
  position: relative;
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: auto;
}

@media (min-width: 769px) {
  .hero-carousel .embla__slide .image-container .main-image {
    max-height: 320px;
  }
}

@media (min-width: 1025px) {
  .hero-carousel .embla__slide .image-container .main-image {
    max-height: 420px;
  }
}

.hero-carousel .embla__slide.is-selected .image-container .main-image {
  opacity: 1;
}

.hero-carousel .embla__slide.is-selected .image-container .main-image.is-bobbing {
  animation: hero-bob 3.2s ease-in-out infinite alternate;
}

@keyframes hero-bob {
  from { transform: translateY(0) rotate(-0.4deg); }
  to { transform: translateY(5px) rotate(0.4deg); }
}

/* —— Stickers —— */
.hero-carousel .sticker-wrapper {
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: -1;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-carousel .embla__slide.is-selected .sticker-wrapper {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel .sticker {
  aspect-ratio: 1 / 1;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  width: 100px;
  z-index: 0;
}

@media (min-width: 1025px) {
  .hero-carousel .sticker {
    width: 200px;
  }

  .hero-carousel .sticker--1 {
    width: 230px;
  }
}

.hero-carousel .sticker--2 {
  width: 90px;
}

@media (max-width: 768px) {
  .hero-carousel .sticker--2 {
    display: none;
  }
}

@media (min-width: 1025px) {
  .hero-carousel .sticker--2 {
    width: 160px;
  }
}

.hero-carousel .embla__slide.is-selected .sticker {
  opacity: 1;
}

.hero-carousel .embla__slide.is-selected .sticker--0 {
  transform: translate(calc(-50% - 200%), calc(-50% - 80%)) rotate(-18deg);
}

.hero-carousel .sticker--vegetarian {
  z-index: 3;
}

.hero-carousel .embla__slide.is-selected .sticker--vegetarian {
  opacity: 1;
  transform: translate(calc(-50% + 155%), calc(-50% + 25%)) rotate(20deg);
}

@media (min-width: 769px) {
  .hero-carousel .embla__slide.is-selected .sticker--vegetarian {
    transform: translate(calc(-50% + 175%), calc(-50% + 30%)) rotate(20deg);
  }
}

@media (min-width: 1025px) {
  .hero-carousel .sticker--vegetarian {
    width: 200px;
  }

  .hero-carousel .embla__slide.is-selected .sticker--vegetarian {
    transform: translate(calc(-50% + 200%), calc(-50% + 28%)) rotate(20deg);
  }
}

.hero-carousel .embla__slide.is-selected .sticker--2 {
  transform: translate(calc(-50% + 210%), calc(-50% - 110%)) rotate(20deg);
}

/* —— Sparkles —— */
.hero-carousel .sparkle-wrapper {
  aspect-ratio: 16 / 9;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: 100%;
  z-index: 10;
}

.hero-carousel .embla__slide.is-selected .sparkle-wrapper {
  opacity: 1;
  transform: scale(1);
}

@media (min-width: 1025px) {
  .hero-carousel .embla__slide.is-selected .sparkle-wrapper {
    transform: scale(0.8);
  }
}

.hero-carousel .sparkle {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  width: 25px;
  z-index: 1;
}

.hero-carousel .sparkle img {
  animation: hero-sparkle-spin 51.43s linear infinite;
  width: 100%;
}

@media (min-width: 1025px) {
  .hero-carousel .sparkle {
    width: 44px;
  }

  .hero-carousel .sparkle--0,
  .hero-carousel .sparkle--3 {
    width: 35px;
  }
}

.hero-carousel .embla__slide.is-selected .sparkle--0 {
  transform: translate(calc(-50% - 800%), calc(-50% - 450%)) rotate(18deg);
}

.hero-carousel .embla__slide.is-selected .sparkle--1 {
  transform: translate(calc(-50% - 1000%), calc(-50% + 60%)) rotate(28deg);
}

.hero-carousel .embla__slide.is-selected .sparkle--2 {
  transform: translate(calc(-50% + 700%), calc(-50%)) rotate(68deg);
}

.hero-carousel .embla__slide.is-selected .sparkle--3 {
  transform: translate(calc(-50% + 800%), calc(-50% - 200%)) rotate(48deg);
}

@keyframes hero-sparkle-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* —— Product CTAs —— */
.hero-carousel .product-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-carousel.is-ready .product-links {
  opacity: 1;
  transform: translateY(0);
}

.hero-carousel .product-links > :nth-child(2) {
  margin-left: 0;
}

/* —— Dot navigation —— */
.hero-carousel .embla__nav {
  margin: 30px auto 0;
  opacity: 0;
  padding: 10px;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-carousel.is-ready .embla__nav {
  opacity: 1;
  transform: translateY(0);
}

.hero-carousel .embla__dots {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 20px;
}

@media (min-width: 1025px) {
  .hero-carousel .embla__dots {
    min-width: 257px;
  }
}

.hero-carousel .embla__dots button.dot {
  background: var(--color-almost-black)4d;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 8px;
  height: 8px;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: flex-basis 0.3s cubic-bezier(0.2, 1, 0.2, 1), opacity 0.3s cubic-bezier(0.2, 1, 0.2, 1);
}

.hero-carousel .embla__dots button.dot::after {
  background: var(--color-almost-black);
  border-radius: 8px;
  content: "";
  height: 8px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 5s linear;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-carousel .embla__dots button.dot {
    aspect-ratio: 1 / 1;
    width: 10px;
  }
}

.hero-carousel .embla__dots button.dot.is-selected {
  flex: 0 0 20px;
  opacity: 1;
}

.hero-carousel .embla__dots button.dot.is-selected::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-packshots__mandala,
  .hero-carousel .backgrounds .next.is-wiping,
  .hero-carousel .embla__container,
  .hero-carousel .sparkle img,
  .hero-carousel .embla__slide.is-selected .image-container .main-image.is-bobbing {
    animation: none;
    transition: none;
  }
}
