/* styles.css
   Page-specific styles. */

/* =============================================
   SECTION 1 — Hero
   ============================================= */

.gemstone-hero {
  /* Mobile: keep in normal flow (no pull-up overlap behavior) */
  /* Multiple height and min-height declarations to support all browsers/devices:
     - 100vh: Traditional "viewport height" unit, but can be inaccurate on some mobile browsers (due to toolbars, etc.)
     - 100svh: "Small viewport height" (viewport height minus overlays/toolbars); more accurate on modern mobile browsers.
     - 100dvh: "Dynamic viewport height" (true current viewport height, including if overlays are shown/hidden); best fit on the newest browsers.
     All three are listed for maximum compatibility and consistency across browsers/platforms.
  */
  height: calc(100vh - var(--header-row1-h) - var(--header-row2-h));
  height: calc(100svh - var(--header-row1-h) - var(--header-row2-h));
  height: calc(100dvh - var(--header-row1-h) - var(--header-row2-h));
  min-height: calc(100vh - var(--header-row1-h) - var(--header-row2-h));
  min-height: calc(100svh - var(--header-row1-h) - var(--header-row2-h));
  min-height: calc(100dvh - var(--header-row1-h) - var(--header-row2-h));
  z-index: 0;
}

.gemstone-hero__bg-img {
  object-fit: cover;
  height: 100%;
}

.gemstone-hero__bg > .d-lg-block,
.gemstone-hero__bg > .d-lg-none {
  height: 100%;
}

.gemstone-hero__bg fw-player.gemstone-hero__bg-img {
  width: 100%;
  height: 100%;
}

.gemstone-hero__intro {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    cursor: pointer;
    position: relative;
    height: 100%;
    justify-content: end;
  }

/* Mobile-only Figma gradient overlays for section 1 hero */
@media (max-width: 767.98px) {
  .gemstone-hero__bg::before,
  .gemstone-hero__bg::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
    filter: blur(73px);
    background-repeat: no-repeat;
  }

  .gemstone-hero__bg::before {
    /* Bottom soft glow from Figma node 820:1566 */
    bottom: -62px;
    width: 360px;
    height: 540px;
    background-image: linear-gradient(269.87deg, rgba(67, 48, 35, 1) 0%, rgba(67, 48, 35, 0) 91.77%);
  }

  .gemstone-hero__bg::after {
    /* Top soft fade from Figma node 820:1567 */
    top: -8px;
    width: 360px;
    height: 155px;
    background-image: linear-gradient(269.96deg, rgba(67, 48, 35, 1) 0%, rgba(67, 48, 35, 0.6) 91.77%);
  }

  .product-popup-padding {
    padding: 0 15px;
  }

  .shop-personality-overlay__close {
    width: 40px;
    height: 40px;
    font-size: 25px;
  }
}

.gemstone-hero__brand {
  top: 36px;
  right: 20px;
  z-index: 1;
}

.gemstone-hero__brand-img {
  width: 162px;
  height: auto;
}

.gemstone-hero__content {
  bottom: 40px;
  left: 20px;
  gap: var(--space-3);
  z-index: 1;
  max-width: 90%;
}

.gemstone-hero__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-4xl);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-white);
  font-feature-settings:
    'lnum' 1,
    'pnum' 1;
}

.gemstone-hero__subtitle {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: normal;
  color: var(--color-white-80);
}

/* md — 768px */
@media (min-width: 768px) {
  .gemstone-hero {
    /* Fixed hero sits below site header row + main menu (not under them) */
    top: calc(var(--header-row1-h) + var(--header-row2-h));
    height: calc(100vh - var(--header-row1-h) - var(--header-row2-h));
    height: calc(100svh - var(--header-row1-h) - var(--header-row2-h));
    height: calc(100dvh - var(--header-row1-h) - var(--header-row2-h));
    min-height: calc(100vh - var(--header-row1-h) - var(--header-row2-h));
    min-height: calc(100svh - var(--header-row1-h) - var(--header-row2-h));
    min-height: calc(100dvh - var(--header-row1-h) - var(--header-row2-h));
    transition:
      top 0.4s cubic-bezier(0.33, 1, 0.68, 1),
      height 0.4s cubic-bezier(0.33, 1, 0.68, 1),
      min-height 0.4s cubic-bezier(0.33, 1, 0.68, 1),
      opacity 0.35s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    .gemstone-hero {
      transition: none;
    }
  }

  /*
   * Row 1 is fixed; the main menu scrolls away. While the menu is still in view,
   * hero top includes both rows. Once the menu has scrolled past the fixed bar
   * (no longer occupies space below row 1), match hero top to row 1 only — avoids
   * a gap between the fixed header and the fixed video.
   */
  .gemstone-hero.gemstone-hero--menu-offscreen {
    top: var(--header-row1-h);
    height: calc(100vh - var(--header-row1-h));
    height: calc(100svh - var(--header-row1-h));
    height: calc(100dvh - var(--header-row1-h));
    min-height: calc(100vh - var(--header-row1-h));
    min-height: calc(100svh - var(--header-row1-h));
    min-height: calc(100dvh - var(--header-row1-h));
  }

  .gemstone-hero.gemstone-hero--covered {
    opacity: 0;
    pointer-events: none;
  }

  .gemstone-hero__brand {
    top: 32px;
    right: 32px;
  }

  .gemstone-hero__brand-img {
    width: 140px;
  }

  .gemstone-hero__content {
    bottom: 40px;
    left: 40px;
    gap: var(--space-3);
  }

  .gemstone-hero__title {
    font-size: var(--font-size-4xl);
  }

  .gemstone-hero__subtitle {
    font-size: var(--font-size-lg);
  }
}

/* xl — 1200px */
@media (min-width: 1200px) {
  .gemstone-hero__brand {
    top: 168px;
    right: 60px;
  }

  .gemstone-hero__brand-img {
    width: 221px;
  }

  .gemstone-hero__content {
    bottom: 80px;
    left: 80px;
    max-width: 576px;
  }

  .gemstone-hero__title {
    font-size: 64px;
  }

  .gemstone-hero__subtitle {
    font-size: var(--font-size-xl);
  }
}

/* Desktop XL — 1920px */
@media (min-width: 1920px) {
  .gemstone-hero__brand {
    top: 160px;
    right: 80px;
  }

  .gemstone-hero__brand-img {
    width: 256px;
  }

  .gemstone-hero__content {
    bottom: 110px;
    left: 80px;
    max-width: 640px;
  }

  .gemstone-hero__title {
    font-size: 72px;
  }

  .gemstone-hero__subtitle {
    font-size: var(--font-size-2xl);
  }
}

/* =============================================
   SECTION 2 — Gemstone Colour
   ============================================= */

.gemstone-colour {
  z-index: 1;
  background-color: var(--color-page-bg);
  padding: var(--bs-gutter-x);
  overflow: hidden;
}

.gemstone-colour__card {
  /* Mobile: preserve Figma frame ratio without hard-coding height */
  aspect-ratio: 320 / 628;
  border-radius: var(--radius-lg);
  background-color: var(--color-page-bg);
}

.gemstone-colour__media {
  z-index: 0;
}

.gemstone-colour__image {
  object-fit: cover;
  object-position: center top;
}

.gemstone-colour__bg-layer {
  /* Mobile: seamless full-surface overlays (no mid-band seam) */
  max-width: none;
  background: linear-gradient(270deg, rgba(41, 29, 21, 0.6) 0%, rgba(67, 48, 35, 0) 91.77%), linear-gradient(90deg, rgba(41, 29, 21, 0.56) 0%, rgba(67, 48, 35, 0) 91.77%);
  background-repeat: repeat;
}

.gemstone-colour__content {
  z-index: 1;
  padding: 28px 24px 36px;
}

.gemstone-colour__logo-mask {
  /* Mobile Figma logo mask dimensions */
  width: 198px;
  height: 102px;
  background-color: var(--color-white);
  -webkit-mask-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/hues-logo.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: left center;
  mask-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/hues-logo.svg');
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: left center;
}

.gemstone-colour__copy {
  max-width: 520px;
}

.gemstone-colour__subtitle {
  font-family: var(--font-secondary);
  font-size: var(--font-size-2xs);
  line-height: 24px;
  letter-spacing: 0.48px;
  color: var(--color-white);
}

.gemstone-colour__title {
  font-family: var(--font-primary);
  max-width: 229px;
  font-size: var(--font-size-3xl);
  line-height: 36px;
  letter-spacing: -0.32px;
  color: var(--color-white);
}

.gemstone-colour__bottom {
  margin-top: 28px;
}

/* Figma 532:8373 — solid white pill, 16px/28px padding, no frosted fill */
.gemstone-colour__cta {
  padding: var(--space-4) var(--space-7);
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  color: var(--color-text-strong);
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.66px;
  line-height: 1.28;
}

.gemstone-colour__enter {
  gap: var(--space-2);
  font-family: var(--font-secondary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.66px;
  color: var(--color-white);
  opacity: 0.35;
}

.gemstone-colour__enter-icon {
  width: 12px;
  height: 12px;
}

@media (max-width: 767.98px) {
  .gemstone-colour__container {
    position: relative;
    z-index: 1;
  }

  /* Keep full-height layout on mobile without % height quirks in aspect-ratio parent. */
  .gemstone-colour__content {
    position: absolute !important;
    inset: 0;
    height: auto !important;
    min-height: 0;
  }
}

/* md — 768px */
@media (min-width: 768px) {
  .gemstone-colour {
    border-radius: 12px;
  }

  .gemstone-colour__bg-layer {
    /* Restore original desktop/tablet gradient behavior */
    max-width: 80%;
    background: linear-gradient(60deg, rgba(41, 29, 21, 0.4) 0%, rgba(67, 48, 35, 0.15) 48%, rgba(67, 48, 35, 0) 65%);
    background-repeat: no-repeat;
  }

  .gemstone-colour__container {
    padding: var(--space-4) var(--space-6) var(--space-6);
  }

  .gemstone-colour__card {
    max-width: 1310px;
    height: 600px;
    margin: var(--space-15) auto 0;
    border-radius: var(--radius-2xl);
  }

  .gemstone-colour__content {
    padding: 116px var(--space-20) var(--space-10) 116px;
  }

  .gemstone-colour__logo-mask {
    width: 305px;
    height: 157px;
  }

  .gemstone-colour__subtitle {
    font-size: var(--font-size-sm);
    letter-spacing: 0.56px;
    color: var(--color-white-75);
  }

  .gemstone-colour__title {
    max-width: 520px;
    font-size: var(--font-size-5xl);
    line-height: 1.08;
    letter-spacing: -0.64px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  }

  .gemstone-colour__bottom {
    gap: var(--space-8);
  }
}

/* Desktop-only spacing to avoid overlap with fixed hero section */
@media (min-width: 992px) {
  .gemstone-colour {
    margin-top: 100vh;
    /* Keep sticky video pinning relative to the viewport on desktop. */
    overflow: visible;
  }
}

/* xl — 1200px */
@media (min-width: 1200px) {
  .gemstone-colour__card {
    height: 780px;
  }

  .gemstone-colour__bottom {
    margin-top: 38px;
  }
}

.gemstone-video-block {
  position: relative;
  padding-top: 120px;
}

.gemstone-video-block__flower {
  top: var(--space-6);
  z-index: 0;
  pointer-events: none;
  width: clamp(130px, 14vw, 200px);
  height: auto;
}

.gemstone-video-block__flower--left {
  left: 0;
  top: calc(var(--space-6) - 24px);
  width: clamp(160px, 16vw, 260px);
}

.gemstone-video-block__flower--right {
  right: 0;
  top: calc(var(--space-6) + 18px);
  width: clamp(130px, 14vw, 220px);
}

.gemstone-video-block__inner {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin: auto;
  border-radius: 12px;
}

/* img fallback keeps the original aspect-ratio */
img.gemstone-video-block__image {
  aspect-ratio: 320 / 497;
  display: block;
  object-fit: cover;
}

/* Crop container: fills the inner, clips overflow so the wider video covers fully */
.gemstone-video-block__player-crop {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Mobile: fw-player in flow, portrait ratio matching the source video. */
.gemstone-video-block__player-crop fw-player {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
}

/* Desktop: fw-player fills the crop container absolutely (GSAP scaling
   sets crop to position:absolute;inset:0 on the inner). */
@media (min-width: 768px) {
  .gemstone-video-block__player-crop fw-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 767.98px) {
  .gemstone-video-block__inner {
    max-width: 100%;
  }

  .gemstone-video-block__player-crop.d-lg-none.d-md-none.d-block {
    width: 100%;
  }

  .gemstone-video-block {
    isolation: isolate;
    overflow: visible;
  }

  /* Keep desktop flower markup untouched; replace only on mobile. */
  .gemstone-video-block__flower {
    display: none !important;
  }

  .gemstone-video-block::before,
  .gemstone-video-block::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .gemstone-video-block::before {
    left: -52px;
    top: -78px;
    width: 204px;
    aspect-ratio: 150 / 298;
    background-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/flower-left.svg');
  }

  .gemstone-video-block::after {
    right: -72px;
    bottom: -150px;
    width: 273px;
    aspect-ratio: 175 / 346;
    background-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/flower-right.svg');
  }
}

@media (min-width: 768px) {
  .gemstone-video-block {
    padding-top: var(--space-10);
  }

  .gemstone-video-block__flower {
    top: var(--space-10);
    width: clamp(150px, 12vw, 240px);
  }

  .gemstone-video-block__flower--left {
    left: -11px;
    /* Figma is measured on an 824px-tall frame; using vh keeps the initial position aligned
       across different viewport heights (100vh sticky). */
    top: min(643px, 78vh);
    width: auto;
    height: clamp(420px, 87vh, 716px);
    z-index: -1;
  }

  .gemstone-video-block__flower--right {
    right: 0;
    bottom: 160px;
    top: auto;
    width: auto;
    height: clamp(520px, 95vh, 824px);
  }

  .gemstone-video-block__inner {
    max-width: 1198px;
    aspect-ratio: 2.35 / 1;
    border-radius: var(--radius-lg);
  }

  img.gemstone-video-block__image {
    aspect-ratio: 1198 / 650;
    object-fit: cover;
  }
}

@media (min-width: 1200px) {
  .gemstone-video-block__inner {
    border-radius: var(--radius-2xl);
  }
}

/* =============================================
   SECTION 3 — Gemstone Palette
   ============================================= */

.gemstone-palette {
  background-color: var(--color-page-bg);
  padding: var(--space-12) var(--space-4) var(--space-16);
}

.gemstone-palette__bg-layer {
  z-index: 0;
}

.gemstone-palette__bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gemstone-palette__bg-img.is-active {
  opacity: 1;
}

.gemstone-palette__gradient {
  background: linear-gradient(to top, var(--color-page-bg) 0%, var(--color-lavender-soft) 100%);
  z-index: 0;
  opacity: 0.2;
}

.gemstone-palette__floral {
  z-index: 0;
  pointer-events: none;
  display: none;
}

.gemstone-palette__floral-inner {
  width: 100%;
}

.gemstone-palette__floral-img {
  width: min(100%, 1440px);
  max-width: none;
  height: auto;
  object-fit: contain;
}

.gemstone-palette__shell {
  z-index: 1;
}

.gemstone-palette__header {
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.gemstone-palette__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  letter-spacing: -0.01em;
  color: var(--color-black);
  max-width: 20ch;
}

.gemstone-palette__tabs {
  gap: 14px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--color-white-40);
  flex-wrap: nowrap;
}

.gemstone-palette__tab {
  width: 55.564px;
  height: 61px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
}

.gemstone-palette__tab:focus-visible {
  outline: 2px solid var(--color-explore-cta-text);
  outline-offset: 2px;
}

.gemstone-palette__tab--active {
  width: auto;
  height: 61.662px;
  gap: 2px;
  padding: 0 28px 0 4px !important;
  justify-content: flex-start;
  border-radius: 52px;
  background-color: var(--color-white) !important;
  border: 1px solid var(--color-white) !important;
}

.gemstone-palette__tab-label {
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  letter-spacing: -0.01em;
  color: var(--color-black);
  white-space: nowrap;
  display: none;
}

.gemstone-palette__tab--active .gemstone-palette__tab-label {
  display: inline-block;
}

.gemstone-palette__tab-icon {
  width: 55.564px;
  height: 61px;
}

.gemstone-palette__tab-img {
  width: 32px;
  height: 44px;
  object-fit: contain;
}

/* Match Figma gem proportions for tab icon nodes that differ from base size */

.gemstone-palette__tab[data-slide-index='1'] .gemstone-palette__tab-img {
  width: 37px;
  height: 38px;
}

.gemstone-palette__tab[data-slide-index='3'] .gemstone-palette__tab-img {
  width: 38px;
  height: 39px;
}

.gemstone-palette__tab[data-slide-index='4'] .gemstone-palette__tab-img {
  width: 31px;
  height: 44px;
}

.gemstone-palette__tagline {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 28rem;
}

.gemstone-palette__carousel {
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  min-height: 200px;
}

/* Desktop product carousel — Swiper: 3 columns; center large, sides small (Figma / original layout) */
/* Slider track (xl cards): side 244 + gap 43 + center 298 + gap 43 + side 244 = 872px */
/* Bootstrap .d-flex on .swiper breaks slide width math — Swiper needs a block-level root */
.gemstone-palette .gemstone-palette__swiper.swiper {
  display: block;
}

.gemstone-palette__swiper {
  width: 100%;
  max-width: 872px;
  margin-inline: auto;
  overflow: hidden;
  min-height: 360px;
}

/*
 * Prev/next sit beside the track (Figma node 34:271): do NOT flex-grow the swiper or
 * the arrows pin to the viewport edges while cards stay centered in a wide middle slot.
 */
.gemstone-palette__carousel .gemstone-palette__swiper {
  flex: 0 1 872px;
  margin-inline: 0;
  min-width: 0;
}

.gemstone-palette__swiper .swiper-wrapper {
  align-items: center;
}

/* slidesPerView: 3 — Swiper sets slide width; we only center the card inside each column */
.gemstone-palette__swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  height: auto;
  transition: opacity 0.35s ease;
}

.gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.92;
}

.gemstone-palette__swiper .swiper-slide-active {
  z-index: 2;
  opacity: 1;
}

/* Side “peek”: same card component, side dimensions + side gradient */
.gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) .gemstone-palette__card--center {
  width: 120px;
  height: 390px;
  padding: var(--space-3);
  gap: 0;
  background-image: linear-gradient(-16.258deg, #cffcd9 0%, #fff 34%, #fff 93%);
}

.gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) .gemstone-palette__card-caption {
  display: none;
}

/* Center focus */
.gemstone-palette__swiper .swiper-slide-active .gemstone-palette__card--center {
  width: 248px;
  height: 360px;
  padding: var(--space-4) var(--space-4) var(--space-5);
  gap: var(--space-3);
  background-image: linear-gradient(1.206deg, #cffceb 0%, #fff 34%, #fff 93%);
}

/* Per-tab card gradients from Figma references */
[data-gemstone-palette-panel='pinkTourmaline'] .gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) .gemstone-palette__card--center {
  background-image: linear-gradient(-16.258deg, #fff 0%, #fff 34%, #fff 93%);
}

[data-gemstone-palette-panel='pinkTourmaline'] .gemstone-palette__swiper .swiper-slide-active .gemstone-palette__card--center {
  background-image: linear-gradient(1.206deg, #fcdccf 0%, #fff 34%, #fff 93%);
}

[data-gemstone-palette-panel='amethyst'] .gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) .gemstone-palette__card--center,
[data-gemstone-palette-panel='amethyst'] .gemstone-palette__swiper .swiper-slide-active .gemstone-palette__card--center {
  background-image: linear-gradient(1.206deg, #d7cffc 0%, #fff 34%, #fff 93%);
}

[data-gemstone-palette-panel='carnelian'] .gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) .gemstone-palette__card--center {
  background-image: linear-gradient(-16.258deg, #ecdbd3 0%, #fff 34%, #fff 93%);
}

[data-gemstone-palette-panel='carnelian'] .gemstone-palette__swiper .swiper-slide-active .gemstone-palette__card--center {
  background-image: linear-gradient(1.206deg, #fccfcf 0%, #fff 34%, #fff 93%);
}

[data-gemstone-palette-panel='tanzanite'] .gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) .gemstone-palette__card--center {
  background-image: linear-gradient(-16.258deg, #cfdcfc 0%, #fff 34%, #fff 93%);
}

[data-gemstone-palette-panel='tanzanite'] .gemstone-palette__swiper .swiper-slide-active .gemstone-palette__card--center {
  background-image: linear-gradient(1.206deg, #d7cffc 0%, #fff 34%, #fff 93%);
}

.gemstone-palette__swiper .swiper-slide-active .gemstone-palette__card-caption {
  display: block;
}

/* xl — match Figma / existing .gemstone-palette__card side & center sizes */
@media (min-width: 1200px) {
  .gemstone-palette__swiper {
    min-height: 396px;
  }

  .gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) .gemstone-palette__card--center {
    width: 244px;
    height: 322px;
  }

  .gemstone-palette__swiper .swiper-slide-active .gemstone-palette__card--center {
    width: 298px;
    height: 396px;
  }
}

/* ── Cards wrapper — simple flex, 3 cards ─────────────────────────────── */
.gemstone-palette__cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

/* ── Card base ────────────────────────────────────────────────────────── */
.gemstone-palette__card {
  flex-shrink: 0;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-image: linear-gradient(-16.258deg, #cffcd9 0%, #fff 34%, #fff 93%);
}

/* ── Side cards ───────────────────────────────────────────────────────── */
.gemstone-palette__card--side {
  width: 200px;
  height: 264px;
  padding: var(--space-3);
}

/* ── Center card ──────────────────────────────────────────────────────── */
.gemstone-palette__card--center {
  width: 248px;
  height: 360px;
  padding: var(--space-4) var(--space-4) var(--space-5);
  gap: var(--space-3);
  z-index: 1;
  background-image: linear-gradient(1.206deg, #cffceb 0%, #fff 34%, #fff 93%);
}

/* ── Card media & image ───────────────────────────────────────────────── */
.gemstone-palette__card-media {
  position: relative;
  width: 100%;
  flex: 1 1 0%;
  min-height: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  border-radius: 8px;
}

.gemstone-palette__card-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 100%);
}

.gemstone-palette__card-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.gemstone-palette__card-caption {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-text-muted);
  display: block;
  /* Keep product name in one line; show ellipsis if it overflows */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}

.gemstone-palette__arrow {
  flex-shrink: 0;
  width: 50px;
  height: 38px;
  padding: var(--space-3) 18px;
  border-radius: 42px;
  background-color: var(--color-white);
}

.gemstone-palette__arrow:focus-visible {
  outline: 2px solid var(--color-explore-cta-text);
  outline-offset: 2px;
}

.gemstone-palette__arrow-img {
  width: 14px;
  height: 14px;
}

.gemstone-palette__arrow-img--prev {
  transform: scaleX(-1);
}

.gemstone-palette__explore {
  min-height: 56px;
  padding: var(--space-4) var(--space-8);
  border-radius: 108px;
  background-color: var(--color-white);
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--color-explore-cta-text);
}

.gemstone-palette__explore:focus-visible {
  outline: 2px solid var(--color-explore-cta-text);
  outline-offset: 2px;
}

/* md — 768px */
@media (min-width: 768px) {
  .gemstone-palette {
    padding: var(--space-21) var(--space-8) var(--space-20);
  }

  .gemstone-palette__title {
    font-size: var(--font-size-4xl);
    max-width: none;
  }

  .gemstone-palette__header {
    margin-bottom: var(--space-12);
  }

  .gemstone-palette__carousel {
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    min-height: 0;
  }
}

/* xl — 1200px */
@media (min-width: 1200px) {
  .gemstone-palette__title {
    /* 48px — Figma section title */
    font-size: var(--font-size-48);
    letter-spacing: -0.48px;
  }

  .gemstone-palette__card--side {
    width: 244px;
    height: 322px;
  }

  .gemstone-palette__card--center {
    width: 298px;
    height: 396px;
  }

  .gemstone-palette__tagline {
    font-size: var(--font-size-base);
  }
}

/* Desktop XL — 1920px */
@media (min-width: 1920px) {
  .gemstone-palette {
    padding-block: var(--space-20);
  }

  .gemstone-palette__floral-img {
    width: min(100%, 1600px);
  }
}

@media (max-width: 767.98px) {
  .gemstone-palette {
    padding: 60px 0 32px;
  }

  .gemstone-palette__gradient {
    background: linear-gradient(to top, #d7cffc 0%, #e7edef 100%);
  }

  .gemstone-palette__shell {
    padding-left: var(--bs-gutter-x);
    padding-right: 0;
  }

  .gemstone-palette__header {
    gap: 16px;
    margin-bottom: 16px;
    padding-right: 20px;
  }

  .gemstone-palette__cta-wrap {
    padding-right: 20px;
  }

  .gemstone-palette__title {
    width: 100%;
    line-height: 0.9;
  }

  .gemstone-palette__tabs {
    gap: 10px;
    justify-content: flex-start !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gemstone-palette__tabs::-webkit-scrollbar {
    display: none;
  }

  .gemstone-palette__tab {
    width: auto;
    height: auto;
  }

  .gemstone-palette__tab:not(.gemstone-palette__tab--active) .gemstone-palette__tab-label {
    display: none;
  }

  .gemstone-palette__tab--active {
    min-height: 48px;
    gap: 4px;
    padding: 4px 14px 4px 4px !important;
  }

  .gemstone-palette__tab-icon {
    width: 36px;
    height: 40px;
  }

  .gemstone-palette__tab-img {
    width: 24px;
    height: 32px;
  }

  .gemstone-palette__tab-label {
    font-size: 14px;
    line-height: 1.1;
  }

  .gemstone-palette__carousel {
    margin-bottom: 24px;
  }

  .gemstone-palette__arrow {
    display: none !important;
  }

  .gemstone-palette__swiper {
    max-width: none;
    min-height: 0;
    overflow: hidden;
  }

  .gemstone-palette__carousel .gemstone-palette__swiper {
    flex: 1 1 auto;
    margin-left: -20px;
    margin-right: 0;
    width: calc(100% + 20px);
    padding: 6px 0 8px;
  }

  .gemstone-palette__swiper .swiper-slide {
    width: 82%;
    min-height: 0;
    align-items: flex-start;
    transition: transform 0.3s ease;
  }

  .gemstone-palette__swiper .swiper-wrapper {
    height: auto !important;
    align-items: flex-start;
  }

  .gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.85);
    transform-origin: center left;
    opacity: 1;
  }

  .gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) .gemstone-palette__card--center {
    width: 100%;
    height: 400px;
    padding: 12px 12px 14px;
    gap: 8px;
  }

  .gemstone-palette__swiper .swiper-slide-active .gemstone-palette__card--center {
    width: 100%;
    height: 400px;
    padding: 12px 12px 14px;
    gap: 8px;
  }

  .gemstone-palette__card-media {
    flex: 0 0 auto;
    height: 320px;
  }

  .gemstone-palette__card-img {
    object-fit: cover;
    background: #ececec;
  }

  .gemstone-palette__swiper .swiper-slide:not(.swiper-slide-active) .gemstone-palette__card-caption {
    display: none;
  }

  .gemstone-palette__card-caption {
    text-align: center;
    margin: 0;
  }

  .gemstone-palette__swiper .swiper-slide > a {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
}

/* =============================================
   SECTION 4 — Shop by Personality
   ============================================= */

.shop-personality {
  background-color: var(--color-white);
  padding: var(--space-10) 0 var(--space-16);
}

/* ---- Tab Navigation ---- */

.shop-personality__tabs {
  --_accent: #921e21;
  --shop-tabs-rail: 849px;
  /* Figma: 6 × 129px slots + 5 × 8px gaps = 814px content inside 849px rail */
  --shop-tabs-slot: 129px;
  --shop-tabs-gap: 8px;
  margin-bottom: var(--space-10);
  max-width: var(--shop-tabs-rail);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

.shop-personality__tabs-track {
  flex-direction: column;
  /* center slot rows; do not stretch 814px strip to full 849px (was widening gaps) */
  align-items: center;
  gap: 0;
  width: min(100%, var(--shop-tabs-rail));
  max-width: var(--shop-tabs-rail);
  margin: 0 auto;
  box-sizing: border-box;
}

/* Icon row — fixed slot width so flex never stretches tabs to fill 849px */
.shop-personality__tabs-icons {
  gap: var(--shop-tabs-gap);
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.shop-personality__tab {
  flex: 0 0 var(--shop-tabs-slot);
  width: var(--shop-tabs-slot);
  min-width: var(--shop-tabs-slot);
  max-width: var(--shop-tabs-slot);
  box-sizing: border-box;
  padding: 8px 0 16px;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.shop-personality__tab--active {
  opacity: 1;
  color: var(--_accent);
}

/* Red bar under active icon — positioned at the bottom of the tab, overlapping the divider */
.shop-personality__tab--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 69px;
  height: 1px;
  background-color: var(--_accent);
  z-index: 1;
}

.shop-personality__tab-icon {
  width: 33px;
  height: 41px;
}

.shop-personality__tab-icon--earrings,
.shop-personality__tab-icon--rings,
.shop-personality__tab-icon--pendants,
.shop-personality__tab-icon--necklace {
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

.shop-personality__tab-icon--earrings {
  /* Use local asset to avoid any cross-origin/mask rendering issues */
  -webkit-mask-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/shop-icon-earrings.svg');
  mask-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/shop-icon-earrings.svg');
}

.shop-personality__tab-icon--rings {
  -webkit-mask-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/shop-icon-rings.svg');
  mask-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/shop-icon-rings.svg');
}

.shop-personality__tab-icon--pendants {
  -webkit-mask-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/shop-icon-pendants.svg');
  mask-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/shop-icon-pendants.svg');
}

.shop-personality__tab-icon--necklace {
  -webkit-mask-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/shop-icon-necklace.svg');
  mask-image: url('https://staticimg.tanishq.co.in/microsite/gemstone/assets/images/shop-icon-necklace.svg');
}

/* Full-width gray divider between icons and labels */
.shop-personality__tabs-divider {
  align-self: stretch;
  width: 100%;
  height: 1px;
  background-color: #d9d9d9;
}

/* Label row */
.shop-personality__tabs-labels {
  gap: var(--shop-tabs-gap);
  margin-left: auto;
  margin-right: auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  border-bottom: 1px solid #d9d9d9;
}

.shop-personality__tab-label {
  flex: 0 0 var(--shop-tabs-slot);
  width: var(--shop-tabs-slot);
  min-width: var(--shop-tabs-slot);
  max-width: var(--shop-tabs-slot);
  box-sizing: border-box;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: var(--font-size-2xs);
  line-height: 1.2;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  padding: 12px 0 12px;
  color: var(--color-text-muted);
  opacity: 0.5;
  cursor: pointer;
}

.shop-personality__tab-label--active {
  opacity: 1;
  color: var(--_accent);
}

.shop-personality__tab-panel {
  display: none;
}

.shop-personality__tab-panel--active {
  display: block;
}

.shop-personality__tab-panel .shop-personality-overlay__footer {
  margin-top: 16px;
}

/* Narrow viewports: Figma strip is 814px — scroll instead of stretching slots */
@media (max-width: 848px) {
  .shop-personality__tabs-track {
    align-items: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .shop-personality__tabs-track::-webkit-scrollbar {
    height: 4px;
  }

  .shop-personality__tabs-icons,
  .shop-personality__tabs-labels {
    width: 814px;
    min-width: 814px;
    max-width: none;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .shop-personality__tabs-divider {
    width: 814px;
    min-width: 814px;
    flex-shrink: 0;
  }
}

/* ---- Card Marquee (2 rows, continuous scroll) ---- */

.shop-personality__marquee-wrap {
  gap: var(--space-8);
}

.shop-personality__marquee {
  width: max-content;
  animation: shopMarquee 30s linear infinite;
}

.shop-personality__marquee--reverse {
  animation-direction: reverse;
}

@keyframes shopMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.shop-personality__card {
  gap: 40px;
  color: var(--color-black);
  flex-shrink: 0;
  padding-right: 120px;
}

/* ---- Stacked Photo Effect ---- */

.shop-personality__photos {
  /* Mobile: compact photo area */
  width: 160px;
  height: 180px;
}

.shop-personality__photo {
  background-color: var(--color-white);
  padding: var(--space-2);
  /* Polaroid card shadow */
  box-shadow: -2px -1px 4px rgba(0, 0, 0, 0.1);
  width: 85%;
  height: 92%;
  top: 50%;
  left: 50%;
  transform-origin: center center;
}

.shop-personality__photo--back {
  transform: translate(-50%, -50%) rotate(1.3deg);
  z-index: 0;
}

.shop-personality__photo--front {
  transform: translate(-50%, -50%) rotate(-3deg);
  z-index: 1;
}

/* ---- Card Text Content ---- */

.shop-personality__content {
  gap: var(--space-2);
}

.shop-personality__text {
  gap: var(--space-1);
}

.shop-personality__category {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  font-feature-settings:
    'lnum' 1,
    'pnum' 1;
}

.shop-personality__headline {
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.shop-personality__price {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* md — 768px */
@media (min-width: 768px) {
  .shop-personality {
    padding: var(--space-12) 0 var(--space-20);
  }

  .shop-personality__tabs {
    margin-bottom: var(--space-12);
    padding: 0;
  }

  .shop-personality__tabs-icons,
  .shop-personality__tabs-labels {
    width: 100%;
    max-width: 100%;
  }

  .shop-personality__card {
    gap: 40px;
    padding-right: 136px;
  }

  .shop-personality__photos {
    width: 180px;
    height: 200px;
  }

  .shop-personality__photo {
    padding: var(--space-2);
  }

  .shop-personality__category {
    font-size: var(--font-size-2xl);
  }

  .shop-personality__headline {
    font-size: var(--font-size-4xl);
    line-height: 1.08;
  }

  .shop-personality__price {
    font-size: var(--font-size-base);
  }
}

/* xl — 1200px */
@media (min-width: 1200px) {
  .shop-personality {
    padding: var(--space-16) 0 var(--space-20);
    position: relative;
    z-index: 1;
  }

  .shop-personality__tabs {
    margin-bottom: var(--space-15);
  }

  .shop-personality__card {
    gap: 40px;
    padding-right: 156px;
  }

  .shop-personality__photos {
    width: 243px;
    height: 269px;
  }

  .shop-personality__photo {
    padding: var(--space-3);
  }

  .shop-personality__category {
    font-size: var(--font-size-34);
    letter-spacing: -0.34px;
  }

  .shop-personality__headline {
    font-size: var(--font-size-72);
    line-height: 76px;
    letter-spacing: -1.44px;
  }

  .shop-personality__price {
    font-size: var(--font-size-base);
    line-height: 24px;
  }
}

.shop-personality-overlay {
  z-index: 1200;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.shop-personality-overlay--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.shop-personality-overlay__surface {
  max-width: 1440px;
  padding: 48px 0 24px;
}

.shop-personality-overlay__content {
  min-height: calc(100vh - 72px);
  gap: 24px;
}

.shop-personality-overlay__header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.98);
  padding: 0 52px;
  padding-top: 8px;
  padding-bottom: 14px;
  gap: 16px;
}

.shop-personality-overlay__copy {
  gap: 8px;
}

.shop-personality-overlay__title {
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #111;
}

.shop-personality-overlay__title-muted {
  color: rgba(17, 17, 17, 0.2);
}

.shop-personality-overlay__title-separator {
  color: rgba(17, 17, 17, 0.2);
  font-size: 18px;
  transform: translateY(-10px);
}

.shop-personality-overlay__meta {
  gap: 10px;
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 24px;
  color: #6c737f;
}

.shop-personality-overlay__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8f949d;
}

.shop-personality-overlay__close {
  width: 40px;
  height: 40px;
  border-radius: 60px;
  background: #f4f4f4 !important;
  font-size: 24px;
  line-height: 0;
  color: #111;
}

.shop-personality-overlay__close span {
  width: 16px;
  height: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.shop-personality-overlay__grid {
  flex: 1;
  margin-top: 16px;
  border-top: 1px solid rgba(99, 77, 78, 0.1);
  border-bottom: 1px solid rgba(99, 77, 78, 0.1);
}

.shop-personality-overlay__grid > div {
  display: flex;
}

.shop-personality-overlay__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  /* min-height: 260px; */
  padding: 16px;
  border-right: 1px solid rgba(99, 77, 78, 0.1);
  border-bottom: 1px solid rgba(99, 77, 78, 0.1);
  background: #f7f7f7;
}

.shop-personality-overlay__card a{
  text-decoration: none !important;
}

.shop-personality-overlay__wishlist {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: #8f8f8f;
  line-height: 1;
}

.shop-personality-overlay__image {
  /* width: 140px !important;
  height: 140px; */
  object-fit: contain;
  background: transparent;
}

.shop-personality-overlay__product-title {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 22px;
  line-height: 1.02;
  color: #1c1a1a;
}

.shop-personality-overlay__price {
  text-align: center;
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.54;
  letter-spacing: -0.02em;
  color: #8a8a8a;
}

.shop-personality-overlay__footer {
  padding: 6px 0 8px;
}

.shop-personality-overlay__cta {
  min-width: 214px;
  padding: 18px 32px;
  border-radius: 108px;
  border: 3px solid #ca5b5d;
  background: radial-gradient(60% 160% at 55% 50%, #832729 0%, #631517 100%);
  box-shadow:
    inset 0 7px 5px #d16e70,
    inset 0 -7px 5px rgba(172, 69, 72, 0.7),
    0 10px 18px rgba(140, 24, 29, 0.35);
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.03em;
  color: #fff !important;
}

body.shop-overlay-open,
body.quiz-modal-open {
  overflow: hidden;
}

@media (min-width: 992px) {
  .shop-personality-overlay__surface {
    padding: 12px 0 12px;
  }

  .shop-personality-overlay__content {
    gap: 18px;
  }
}

@media (max-width: 991px) {
  .shop-personality-overlay__surface {
    padding: 20px 0;
  }

  .shop-personality-overlay__header {
    padding: 0 20px;
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .shop-personality-overlay__title {
    font-size: 30px;
    gap: 8px;
  }

  .shop-personality-overlay__title-separator {
    display: none;
  }

  .shop-personality-overlay__meta {
    font-size: 14px;
    line-height: 20px;
  }

  .shop-personality-overlay__close {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .shop-personality-overlay__grid {
    margin-top: 0;
  }

  .shop-personality-overlay__card {
    min-height: 230px;
    padding: 16px;
  }

  .shop-personality-overlay__image {
    width: 120px !important;
    height: 120px;
  }

  .shop-personality-overlay__product-title {
    font-size: 16px;
  }
}

/* =============================================
   SECTION 5 — The Five Truths
   ============================================= */

.gemstone-truths {
  background: linear-gradient(to top, #e3eaed 0%, var(--color-white) 100%);
  padding: var(--space-12) var(--space-4) var(--space-16) 0;
}

.gemstone-truths-wrap {
  position: relative;
}

.gemstone-truths__flower {
  top: 24px;
  left: -42px;
  width: 190px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.gemstone-truths__shell {
  gap: var(--space-8);
  z-index: 1;
}

.gemstone-truths__left {
  gap: var(--space-6);
}

.gemstone-truths__text {
  gap: var(--space-4);
  padding-right: var(--bs-gutter-x);
}

.gemstone-truths__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  line-height: 1.12;
  color: var(--color-black);
  margin: 0;
}

.gemstone-truths__description {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 28ch;
}

.gemstone-truths__arrows {
  gap: var(--space-3);
}

.gemstone-truths__arrow {
  width: 50px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background-color: transparent;
}

.gemstone-truths__arrow-icon {
  width: 14px;
  height: 14px;
}

.gemstone-truths__arrow--next .gemstone-truths__arrow-icon {
  transform: rotate(180deg);
}

.gemstone-truths__gallery {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gemstone-truths__gallery.swiper {
  overflow: hidden;
}

.gemstone-truths__gallery::-webkit-scrollbar {
  display: none;
}

.gemstone-truths__track {
  display: flex;
  gap: 0;
  width: max-content;
}

.gemstone-truths__gallery.swiper .gemstone-truths__card.swiper-slide {
  width: 85%;
}

.gemstone-truths__card {
  width: 85%;
  height: auto;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  outline: none;
}

.gemstone-truths__card-image {
  width: 100%;
  height: 100%;
}

.gemstone-truths__card-panel {
  min-width: 196px;
  padding: 24px 32px;
  background-color: var(--color-white);
  border-top-left-radius: 4px;
}

.gemstone-truths__card-label {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--color-black);
  text-transform: uppercase;
}

.gemstone-truths__card-description {
  display: none;
}

@media (max-width: 1199px) {
  .gemstone-truths__card .gemstone-truths__card-panel {
    width: min(168px, calc(100% - 16px));
    min-width: 0;
    overflow: hidden;
    transition:
      width 280ms ease,
      padding 280ms ease;
    bottom: 0;
    right: 0;
  }

  .gemstone-truths__card .gemstone-truths__card-description {
    display: block;
    margin-top: 0;
    padding-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition:
      max-height 280ms ease,
      opacity 220ms ease,
      transform 220ms ease,
      padding-top 220ms ease;
  }

  .gemstone-truths__card.is-expanded .gemstone-truths__card-panel {
    width: min(238px, calc(100% - 16px));
    min-width: 0;
    padding: 24px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    bottom: 0;
    right: 0;
  }

  .gemstone-truths__card.is-expanded .gemstone-truths__card-description {
    margin-top: 0;
    padding-top: 8px;
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
    font-size: 12px;
    line-height: 1.4;
    color: #6c737f;
  }
}

/* mobile-only fixes for gemstone-truths — max 767px */
@media (max-width: 767px) {
  .gemstone-truths {
    padding-right: 0;
    overflow-x: hidden;
  }

  .gemstone-truths__text {
    max-width: 282px;
  }

  .gemstone-truths__flower {
    top: -118px;
    left: -80px;
    width: 292px;
  }

  .gemstone-truths__left {
    align-items: center;
  }

  .gemstone-truths__title {
    text-align: center;
  }

  .gemstone-truths__description {
    text-align: center;
    max-width: none;
  }

  .gemstone-truths__arrows {
    display: none;
  }

  .gemstone-truths__track {
    width: 100%;
  }

  .gemstone-truths__card,
  .gemstone-truths__gallery.swiper .gemstone-truths__card.swiper-slide {
    width: 85%;
    height: 520px;
  }

  .gemstone-truths__card-image {
    height: 520px;
  }
}

/* md — 768px */
@media (min-width: 768px) {
  .gemstone-truths {
    padding: var(--space-16) var(--space-8) var(--space-20);
  }

  .gemstone-truths__title {
    font-size: var(--font-size-4xl);
  }

  .gemstone-truths__card {
    width: 390px;
    height: 520px;
  }

  .gemstone-truths__gallery.swiper .gemstone-truths__card.swiper-slide {
    width: 390px;
  }
}

/* xl — 1200px */
@media (min-width: 1200px) {
  .gemstone-truths {
    padding: 100px 0 100px 80px;
  }

  .gemstone-truths__flower {
    top: -22px;
    left: -6px;
    width: 370px;
    z-index: 1;
  }

  .gemstone-truths__shell {
    gap: 90px;
  }

  .gemstone-truths__left {
    width: 413px;
    flex-shrink: 0;
    gap: 28px;
  }

  .gemstone-truths__title {
    font-size: var(--font-size-48);
  }

  .gemstone-truths__description {
    font-size: var(--font-size-lg);
    max-width: 315px;
  }

  .gemstone-truths__gallery {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .gemstone-truths__card {
    width: 472px;
    height: 604px;
    border-radius: 8px;
  }

  .gemstone-truths__gallery.swiper .gemstone-truths__card.swiper-slide {
    width: 472px;
    height: 604px;
  }

  .gemstone-truths__card-panel {
    width: 314px;
    min-width: 314px;
    height: 88px;
    min-height: 88px;
    right: 0;
    bottom: 0;
    padding: 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transition:
      width 260ms ease,
      height 260ms ease,
      min-height 260ms ease,
      right 260ms ease,
      background-color 260ms ease;
  }

  .gemstone-truths__card-description {
    display: block;
    font-family: var(--font-secondary);
    font-size: 14px;
    line-height: 19px;
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateY(8px);
    max-height: 0;
    overflow: hidden;
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      max-height 260ms ease;
  }

  .gemstone-truths__card:hover .gemstone-truths__card-panel,
  .gemstone-truths__card:focus-within .gemstone-truths__card-panel,
  .gemstone-truths__card:focus-visible .gemstone-truths__card-panel {
    width: 298px;
    min-width: 298px;
    height: 284px;
    min-height: 284px;
    right: 0;
    padding: 32px 24px;
    gap: 63px;
  }

  .gemstone-truths__card:hover .gemstone-truths__card-description,
  .gemstone-truths__card:focus-within .gemstone-truths__card-description,
  .gemstone-truths__card:focus-visible .gemstone-truths__card-description {
    opacity: 1;
    transform: translateY(0);
    max-height: 150px;
  }

  .gemstone-truths__card:focus-visible {
    box-shadow: 0 0 0 2px rgba(32, 33, 35, 0.35);
  }
}

/* Desktop XL — 1920px */
@media (min-width: 1920px) {
  .gemstone-truths {
    padding-left: max(80px, calc((100vw - 1760px) / 2));
  }

  .gemstone-truths__shell {
    max-width: 1920px;
  }
}

/* =============================================
   SECTION 5 — Tanishq Gemstone Promises
   ============================================= */

.gemstone-promises__shell {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 48px 28px;
}

/* Decorative parrots — bottom-right of Promises block, overlapping into next section */
.gemstone-promises__parots {
  position: absolute;
  right: 0;
  bottom: -165px;
  width: clamp(220px, 19vw, 264px);
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.gemstone-promises__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-2xl);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-black);
}

.gemstone-promises__slider {
  margin-top: var(--space-8);
}

.gemstone-promises__slider.swiper {
  overflow: hidden;
}

.gemstone-promises__slider .swiper-wrapper {
  height: auto;
}

.gemstone-promises__item.swiper-slide {
  width: 208px;
  height: auto;
}

.gemstone-promises__item {
  gap: 10px;
  padding: 12px 20px;
}

.gemstone-promises__icon {
  width: 32px;
  height: 32px;
}

.gemstone-promises__label {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(43, 43, 43, 0.8);
}

.gemstone-promises__controls {
  gap: 16px;
  margin-top: 30px;
}

.gemstone-promises__pagination {
  display: none;
}

.gemstone-promises__arrow {
  width: 76px;
  height: 54px;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  background: #f7f7f7;
  color: #1f1f1f;
  font-size: 0;
  line-height: 1;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.gemstone-promises__arrow-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.gemstone-promises__arrow:hover:not(.swiper-button-disabled),
.gemstone-promises__arrow:focus-visible:not(.swiper-button-disabled) {
  border-color: #d3d3d3;
  background: #f4f4f4;
}

.gemstone-promises__arrow.swiper-button-disabled {
  color: #c8c8c8;
  border-color: #e6e6e6;
  background: #f8f8f8;
  opacity: 1;
  cursor: default;
}

@media (max-width: 767px) {
  .gemstone-promises {
    padding: 0 var(--bs-gutter-x) var(--space-12) var(--bs-gutter-x);
    margin-top: 40px;
  }

  .gemstone-promises__shell {
    padding: 32px 16px;
  }

  .gemstone-promises__title {
    font-size: var(--font-size-xl);
  }

  .gemstone-promises__slider {
    margin-top: var(--space-6);
  }

  .gemstone-promises__item.swiper-slide {
    width: auto;
  }

  .gemstone-promises__item {
    width: 100%;
    padding: 12px;
  }

  .gemstone-promises__label {
    font-size: var(--font-size-lg);
    line-height: 1.35;
  }

  .gemstone-promises__slider .swiper-wrapper {
    align-items: stretch;
  }

  .gemstone-promises__controls {
    margin-top: 26px;
  }

  .gemstone-promises__arrow {
    display: none !important;
  }

  .gemstone-promises__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 10px;
  }

  .gemstone-promises__pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 !important;
    border-radius: 999px;
    background: #9e9e9e;
    opacity: 0.45;
  }

  .gemstone-promises__pagination .swiper-pagination-bullet-active {
    width: 20px;
    background: #2d2d2d;
    opacity: 1;
  }

  .gemstone-promises__parots {
    width: 138px;
    bottom: -76px;
    right: 0;
  }
}

@media (min-width: 1200px) {
  .gemstone-promises {
    margin-top: 90px;
    padding-right: 80px;
  }
}

/* =============================================
   SECTION ENVELOPE
   ============================================= */

.envelope-section {
  width: 100%;
  min-height: 830px;
  background: #fbf3e5;
  isolation: isolate;
}

.envelope-section__left-frame {
  width: 866px;
  height: 1231px;
  left: -257px;
  top: 26px;
  transform: rotate(180deg) scaleY(-1);
  z-index: 4;
}

.envelope-section__right {
  right: -8px;
  bottom: -12px;
  width: 432px;
  z-index: 4;
}

.envelope-section__left {
  width: 866px;
  height: 1231px;
}

.envelope-section__left-image {
  width: 210.46%;
  height: 83.03%;
  left: -83.52%;
  top: -8.29%;
}

.envelope-section__right-image {
  height: auto;
}

.envelope-section__card {
  left: 42%;
  top: 61px;
  width: min(953px, 66.2vw);
  aspect-ratio: 953 / 775;
  transform: translateX(-50%);
  z-index: 3;
}

.envelope-section__card-image {
  height: auto;
  pointer-events: none;
}

.envelope-section__mobile-floral {
  display: none;
}

.envelope-section__mobile-bottom-flower {
  display: none;
}

.envelope-section__mobile-cta {
  display: none;
}

/* ── Envelope card content (inside white bordered area) ─── */
.envelope-section__card-content {
  top: var(--content-top);
  left: var(--content-left);
  right: var(--content-right);
  bottom: var(--content-bottom);
  gap: clamp(16px, 1.5vw, 24px);
  justify-content: center;
  z-index: 4;
}

.envelope-section__hue-logo {
  width: clamp(160px, 14vw, 228px);
  height: auto;
}

.envelope-section__description {
  font-family: var(--font-secondary);
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: normal;
  color: var(--color-text-muted, #4a4a4a);
}

/* ── Envelope card footer (on beige shadow card) ─── */
.envelope-section__card-footer {
  bottom: var(--footer-bottom);
  left: var(--footer-left);
  right: var(--footer-right);
  gap: 6px;
  z-index: 4;
}

.envelope-section__with-love {
  font-family: var(--font-secondary);
  font-size: clamp(12px, 1vw, 15px);
  color: var(--color-text-muted, #4a4a4a);
  font-style: italic;
  /* Match envelope tilt from design (Figma: rotate -11.7deg on footer label + logo) */
  transform: translateX(-15px) rotate(-11.7deg);
  transform-origin: center center;
}

/* Logo SVG already includes rotate(-11.7deg) on the artwork — do not add CSS rotate or it doubles (~-23deg vs text). */
.envelope-section__tanishq-logo {
  width: clamp(50px, 5vw, 85px);
  height: auto;
}

.envelope-section__cta {
  position: relative;
  z-index: 4;
}

.envelope-section__fade {
  left: 0;
  right: 0;
  bottom: 0;
  height: 128px;
  background: linear-gradient(180deg, rgba(251, 243, 229, 0) 28%, #fbf3e5 74%);
  z-index: 4;
  pointer-events: none;
}

@media (max-width: 991px) {
  .envelope-section {
    min-height: 640px;
    /* Figma 119:276 — top #eeeee0 → bottom #fbf3e5; matches crimson 119:243 bottom #eeeee0 */
    background: linear-gradient(180deg, #eeeee0 0%, #fbf3e5 100%);
  }

  .envelope-section__left-frame {
    transform: rotate(180deg) scaleY(-1) scale(0.7);
    transform-origin: top left;
    left: -180px;
    top: 120px;
  }

  .envelope-section__right {
    width: 300px;
    right: -20px;
    bottom: -8px;
  }

  .envelope-section__card {
    top: 72px;
    width: min(700px, 88vw);
  }
}

@media (max-width: 767px) {
  .envelope-section {
    min-height: 664px;
    padding: 48px 0 40px;
  }

  .envelope-section__left-frame {
    transform: rotate(180deg) scaleY(-1) scale(0.56);
    left: -120px;
    top: 190px;
  }

  .envelope-section__right {
    width: 215px;
    right: -22px;
    bottom: -6px;
  }

  .envelope-section__card {
    display: none !important;
  }

  .envelope-section__cta {
    display: none !important;
  }

  .envelope-section__left-frame,
  .envelope-section__right {
    display: none;
  }

  .envelope-section__mobile-floral {
    display: block;
    width: 100%;
    top: -18px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
  }

  .envelope-section__mobile-floral > img {
    width: 96%;
    height: auto;
    margin: 0 auto;
  }

  .envelope-section__mobile-content {
    top: var(--m-content-top);
    left: var(--m-content-left);
    right: var(--m-content-right);
    bottom: var(--m-content-bottom);
    gap: 8.5px;
    justify-content: center;
    z-index: 4;
  }

  .envelope-section__mobile-hue-logo {
    width: clamp(110px, 34.4vw, 134px);
    height: auto;
  }

  .envelope-section__mobile-description {
    font-family: var(--font-secondary);
    font-size: 11px;
    line-height: normal;
    color: #6c737f;
    max-width: 182px;
  }

  .envelope-section__mobile-footer {
    bottom: var(--m-footer-bottom);
    left: var(--m-footer-left);
    right: var(--m-footer-right);
    gap: 4px;
    z-index: 4;
  }

  .envelope-section__mobile-tanishq-logo {
    width: 55px;
    height: auto;
  }

  .envelope-section__mobile-with-love {
    font-family: var(--font-secondary);
    font-size: clamp(10px, 2.5vw, 13px);
    color: #9b9286;
    font-style: italic;
    transform: translateX(-15px) rotate(-11.7deg);
    transform-origin: center center;
  }

  .envelope-section__mobile-cta {
    position: relative;
    z-index: 5;
    min-width: 150px;
    height: 46px;
    padding: 12px 24px;
    border: 2.464px solid #ca5b5d;
    border-radius: 88.714px;
    background: radial-gradient(1598.6% 2012.17% at 55.16% 50%, #832729 0%, #631517 100%);
    box-shadow:
      inset 0 5.75px 4.107px 0 #d16e70,
      inset 0 -5.75px 4.107px 0 rgba(172, 69, 72, 0.7);
    color: #fff;
    font-family: 'Albert Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.36px;
    white-space: nowrap;
    z-index: 5;
  }

  .envelope-section__mobile-cta:hover,
  .envelope-section__mobile-cta:focus-visible {
    color: #fff;
    text-decoration: none;
  }

  .envelope-section__mobile-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .envelope-section__mobile-bottom-flower {
    display: block;
    bottom: 0px;
    z-index: 4;
    pointer-events: none;
  }

  .envelope-section__fade {
    height: 96px;
  }
}

/* =============================================
   SECTION 6 — Shop by Occasion Slider
   ============================================= */

.occasion-section {
  background: #e3eaed;
  padding: var(--space-16) 0 var(--space-16);
}

.occasion-section__heading {
  font-family: var(--font-primary);
  font-size: var(--font-size-4xl);
  font-weight: 400;
  line-height: 1.12;
  color: var(--color-black);
  margin: 0 0 var(--space-10);
}

.occasion-section__heading span {
  display: inline;
}

.occasion-slider {
  max-width: 1440px;
  padding: 0;
}

.occasion-slider__carousel {
  overflow: visible;
}

.occasion-slider__carousel .swiper-slide {
  display: flex;
  justify-content: center;
  transition: transform 0.45s ease;
  transform: scale(1);
  z-index: 0;
}

.occasion-slider__carousel .swiper-slide-active {
  z-index: 1;
}

/* Non-active: hide white card bg, background decoration, and text panel —
   only the portrait image remains visible */
.occasion-slider__carousel .swiper-slide:not(.swiper-slide-active) .occasion-slide {
  background: transparent;
  box-shadow: none;
}

.occasion-slider__carousel .swiper-slide:not(.swiper-slide-active) .occasion-slide__left-bg,
.occasion-slider__carousel .swiper-slide:not(.swiper-slide-active) .occasion-slide__right {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

/* Active: restore everything */
.occasion-slider__carousel .swiper-slide-active .occasion-slide__left-bg,
.occasion-slider__carousel .swiper-slide-active .occasion-slide__right {
  opacity: 1;
  transition: opacity 0.45s ease;
}

.occasion-slider__carousel .swiper-slide-active .occasion-slide {
  pointer-events: auto;
}

.occasion-slider__carousel .swiper-slide:not(.swiper-slide-active) .occasion-slide {
  pointer-events: none;
}

.occasion-slide {
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 1120px;
  width: 1120px;
  min-height: 616px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
  transition:
    background 0.45s ease,
    box-shadow 0.45s ease;
}

.occasion-slide__left {
  width: 487px;
  min-height: 616px;
}

.occasion-slide__left-bg {
  inset: 0 auto 0 0;
  width: 396px;
}

.occasion-slide__left-bg img {
  width: 655px;
  max-width: none;
  height: 1169px;
  object-fit: cover;
  transform: translate(-31px, -215px);
}

.occasion-slide__portrait {
  top: 50%;
  left: calc(50% + 68px);
  width: 352px;
  height: 420px;
  border-radius: var(--radius-md);
  transform: translate(-50%, -50%);
}

.occasion-slide__portrait img {
  object-fit: cover;
}

.occasion-slide__right {
  gap: var(--space-5);
  padding: var(--space-12);
}

.occasion-slide__text {
  gap: var(--space-7);
  max-width: 431px;
}

.occasion-slide__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-2xl);
  font-weight: 400;
  line-height: 1.12;
  color: var(--color-black);
}

.occasion-slide__description {
  max-width: 329px;
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.3;
  text-transform: capitalize;
  color: var(--color-text-muted);
}

.occasion-slide__cta {
  width: fit-content;
  border: 1px solid rgba(119, 119, 119, 0.12);
  border-radius: 50px;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-secondary);
  font-size: var(--font-size-2xs);
  line-height: 20px;
  letter-spacing: 0.03em;
  color: var(--color-black);
  text-decoration: none;
}

.occasion-slide__products {
  gap: var(--space-2);
  max-width: 431px;
}

.occasion-slide__product {
  flex: 1;
  min-height: 96px;
  background: #f6f6f6;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.occasion-slide__product img {
  max-width: 168px;
  height: auto;
  object-fit: contain;
}

.occasion-slider__controls {
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.occasion-slider__nav {
  gap: var(--space-3);
}

.occasion-slider__arrow {
  width: 50px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #2d2d2d;
  font-size: 18px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.occasion-slider__arrow.swiper-button-disabled {
  opacity: 0.4;
}

.occasion-slider__progress {
  /* Swiper JS sets inline style="position:absolute; top:0; left:0; width:100%"
     on whatever element is passed as pagination.el — override all of them */
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 261px !important;
  height: 2px !important;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.1);
}

.occasion-slider__progress .swiper-pagination-progressbar-fill {
  background: #111 !important;
}

/* Desktop peek: reposition portrait so it's visible in adjacent slide areas */
@media (min-width: 992px) {
  .occasion-slider__carousel {
    height: auto !important;
  }

  .occasion-slider__carousel .swiper-wrapper {
    height: auto !important;
    align-items: flex-start;
  }

  .occasion-slider__carousel .swiper-slide {
    height: auto !important;
    align-items: flex-start;
  }

  .occasion-slide {
    height: 616px !important;
    min-height: 616px;
  }

  .occasion-slide__left {
    height: 616px !important;
    min-height: 616px;
  }

  .occasion-slide__right {
    height: 616px !important;
  }

  /* PREV slide: move portrait to the right edge of the full 1120px slide
     __left is 487px wide; right:-633px puts portrait right edge at 487+633=1120px */
  .occasion-slider__carousel .swiper-slide-prev .occasion-slide__left,
  .occasion-slider__carousel .swiper-slide-duplicate-prev .occasion-slide__left {
    overflow: visible !important;
  }

  .occasion-slider__carousel .swiper-slide-prev .occasion-slide__portrait,
  .occasion-slider__carousel .swiper-slide-duplicate-prev .occasion-slide__portrait {
    left: auto;
    right: -633px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
  }

  /* NEXT slide: move portrait to left edge of slide (x=0) */
  .occasion-slider__carousel .swiper-slide-next .occasion-slide__left,
  .occasion-slider__carousel .swiper-slide-duplicate-next .occasion-slide__left {
    overflow: visible !important;
  }

  .occasion-slider__carousel .swiper-slide-next .occasion-slide__portrait,
  .occasion-slider__carousel .swiper-slide-duplicate-next .occasion-slide__portrait {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
  }
}

@media (max-width: 991px) {
  .occasion-slider__carousel,
  .occasion-slider__carousel .swiper-wrapper,
  .occasion-slider__carousel .swiper-slide,
  .occasion-slide {
    height: auto !important;
  }

  .occasion-section {
    padding: 0;
    overflow-x: clip !important;
  }

  .occasion-section__heading {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -0.32px;
    font-feature-settings:
      'lnum' 1,
      'pnum' 1;
    margin-bottom: var(--space-8);
    text-align: left;
    padding: 0 0 0 var(--bs-gutter-x);
    max-width: 172px;
  }

  .occasion-section__heading span {
    display: block;
  }

  .occasion-slider {
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    position: relative;
  }

  .occasion-slider__carousel {
    overflow: hidden;
  }

  .occasion-slider__carousel .swiper-slide {
    opacity: 1;
    transform: none;
    z-index: 0;
  }

  .occasion-slide {
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .occasion-slide__left {
    width: 100%;
    min-height: 336px;
    padding: 0 20px 0;
    overflow: hidden;
  }

  .occasion-slide__left-bg {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 201px;
    opacity: 1 !important;
    z-index: 1;
  }

  .occasion-slide__left-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
  }

  .occasion-slider__carousel .swiper-slide:not(.swiper-slide-active) .occasion-slide__left-bg {
    display: none;
  }

  .occasion-slide__portrait {
    left: 50%;
    width: calc(100% - 40px);
    max-width: 300px;
    height: auto;
    aspect-ratio: 260 / 272;
    top: 20px;
    transform: translateX(-50%);
    border-radius: var(--radius-md);
    z-index: 2;
  }

  .occasion-slide__right {
    gap: var(--space-6);
    padding: var(--space-6) var(--space-5);
  }

  /* Hide arrows + progress bar on mobile */
  .occasion-slider__controls {
    display: none !important;
  }

  /* 2 product images in a row, hide 3rd */
  .occasion-slide__products {
    flex-direction: row;
  }

  .occasion-slide__product:nth-child(3) {
    display: none !important;
  }
}

/* =============================================
   SECTION 7 — Style Inspiration
   ============================================= */
.style-inspiration {
  --style-hotspot-reveal-delay: 600ms;
  padding: 80px 0;
  background: linear-gradient(180deg, #e3eaed 0%, #fcf4e6 100%);
}

.style-inspiration__title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  color: #151413;
}

.style-inspiration__description {
  max-width: 568px;
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 20px;
  line-height: 1.4;
  color: #6c737f;
}

.style-inspiration__panels {
  gap: 24px;
  height: 560px;
}

.style-inspiration__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  --style-hotspot-x: 50%;
  --style-hotspot-y: 50%;
  will-change: flex-basis, transform;
  transition:
    flex-basis 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.style-inspiration__panel--active {
  flex: 0 0 628px;
}

/* Collapsed strips: horizontal focal point per panel via --style-object-collapsed-x on each article */
.style-inspiration__panel-image {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  object-fit: cover;
  object-position: var(--style-object-collapsed-x, 28%) center;
  transform: scale(1.42);
  opacity: 0.94;
  will-change: transform, opacity;
  transition-delay: 0s, 0s;
  transition:
    transform 0.92s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.68s ease,
    object-position 0.92s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Expanded: horizontal focal point per panel via --style-object-expanded-x on each article */
.style-inspiration__panel--active .style-inspiration__panel-image {
  object-position: var(--style-object-expanded-x, 50%) center;
  transform: scale(1);
  opacity: 1;
  transition-delay: 0.24s, 0.12s;
}

/* Hotspot 1: --style-hotspot-x / --style-hotspot-y on each article */
.style-inspiration__product-hotspot {
  left: var(--style-hotspot-x);
  top: var(--style-hotspot-y);
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: none;
  isolation: isolate;
}

/* Hotspot 2: --style-hotspot-2-x / --style-hotspot-2-y on each article */
.style-inspiration__product-hotspot--2 {
  left: var(--style-hotspot-2-x, 50%);
  top: var(--style-hotspot-2-y, 50%);
}

/* Wait for panel expand before showing hotspots (avoids wrong position during image scale) */
.style-inspiration__panel--active .style-inspiration__product-hotspot {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.25s ease var(--style-hotspot-reveal-delay, 300ms),
    visibility 0s linear var(--style-hotspot-reveal-delay, 300ms);
  animation: style-hotspot-heartbeat 1.4s ease-in-out infinite;
  animation-delay: var(--style-hotspot-reveal-delay, 300ms);
}

.style-inspiration__hotspot-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.style-inspiration__product-hotspot::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  z-index: 1;
  transform: scale(0.8);
  opacity: 0.9;
  animation: none;
}

.style-inspiration__panel--active .style-inspiration__product-hotspot::before {
  animation: style-hotspot-bubble 1.4s ease-out infinite;
  animation-delay: var(--style-hotspot-reveal-delay, 300ms);
}

@keyframes style-hotspot-heartbeat {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  10% {
    transform: translate(-50%, -50%) scale(1.14);
  }
  20% {
    transform: translate(-50%, -50%) scale(0.96);
  }
  34% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  48% {
    transform: translate(-50%, -50%) scale(1.02);
  }
}

@keyframes style-hotspot-bubble {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  60% {
    transform: scale(1.45);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .style-inspiration__panel--active .style-inspiration__product-hotspot {
    transition-delay: 0s;
    animation-delay: 0s;
    animation: none;
  }

  .style-inspiration__panel--active .style-inspiration__product-hotspot::before {
    animation-delay: 0s;
    animation: none;
  }
}

.style-inspiration__controls {
  gap: 40px;
  position: relative;
  z-index: 3;
}

.style-inspiration__pagination {
  width: 261px;
  height: 2px;
  background: #d6d3cc;
}

.style-inspiration__pagination-progress {
  height: 100%;
  width: 25%;
  background: #151413;
  transition: width 0.35s ease;
}

.style-inspiration__nav {
  gap: 12px;
}

.style-inspiration__arrow {
  width: 72px;
  height: 56px;
  border: 1.25px solid #e0e0e0;
  border-radius: 60px;
  background: transparent;
  color: #6c737f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.style-inspiration__modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(204px, calc(100% - 24px));
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.style-inspiration__modal::backdrop {
  background: transparent;
}

.style-inspiration__modal-content {
  position: relative;
  background: #fff;
  padding: 20px !important;
  border-radius: 8px !important;
}

.style-inspiration__modal-image {
  width: 164px;
  height: 176px;
  object-fit: cover;
  margin-bottom: 12px !important;
}

.style-inspiration__modal-title {
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.54;
  letter-spacing: -0.01em;
  color: #151413;
  text-align: left !important;
  max-width: 164px;
}

.style-inspiration__modal-price {
  font-family: var(--font-secondary);
  font-size: 12px;
  line-height: 1.54;
  letter-spacing: -0.02em;
  color: rgba(21, 20, 19, 0.55);
  text-align: left !important;
  max-width: 164px;
}

.style-inspiration__modal-footer {
  margin-top: 14px;
  width: 100%;
}

.style-inspiration__modal-counter {
  font-family: var(--font-secondary);
  font-size: 12px;
  line-height: 1.54;
  letter-spacing: -0.02em;
  color: rgba(21, 20, 19, 0.55);
}

.style-inspiration__modal-arrows {
  gap: 10px;
}

.style-inspiration__modal-arrow {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.style-inspiration__modal-arrow:focus-visible {
  outline: 2px solid rgba(21, 20, 19, 0.35);
  outline-offset: 2px;
  border-radius: 6px;
}

.style-inspiration__modal-arrow-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.style-inspiration__modal-arrow-icon--prev {
  transform: scaleX(-1);
}

@media (max-width: 1199px) {
  .style-inspiration__title {
    font-size: 40px;
  }

  .style-inspiration__panels {
    height: 500px;
  }

  .style-inspiration__panel--active {
    flex-basis: 520px;
  }
}

@media (max-width: 991px) {
  .style-inspiration {
    padding: 40px 0;
  }

  .style-inspiration__title {
    font-size: 28px;
  }

  .style-inspiration__description {
    font-size: 14px;
    line-height: 1.3;
    max-width: 280px;
  }

  .style-inspiration__panels {
    gap: 0;
    height: auto;
    margin-top: 20px;
    overflow: hidden;
  }

  .style-inspiration__panels.swiper {
    overflow: hidden;
    margin-right: calc(-1 * var(--bs-gutter-x));
    margin-left: calc(-1 * var(--bs-gutter-x));
  }

  .style-inspiration__panels.swiper .style-inspiration__panel.swiper-slide {
    flex: none;
    width: calc(100% - 40px);
    aspect-ratio: 320 / 440;
    height: auto;
    border-radius: 0;
    transition: none;
  }

  .style-inspiration__panel-image {
    transform: none !important;
    opacity: 1 !important;
    object-position: var(--style-object-collapsed-x, 28%) center;
  }

  /* Mobile: when a panel is active, use the per-slide expanded-x focal point */
  .style-inspiration__panel--active .style-inspiration__panel-image {
    object-position: var(--style-object-expanded-x-mobile, var(--style-object-expanded-x, 50%)) center;
  }

  .style-inspiration__product-hotspot {
    width: 36px;
    height: 36px;
    left: var(--style-hotspot-x-mobile, var(--style-hotspot-x));
    top: var(--style-hotspot-y-mobile, var(--style-hotspot-y));
  }

  .style-inspiration__product-hotspot--2 {
    left: var(--style-hotspot-2-x-mobile, var(--style-hotspot-2-x, 50%));
    top: var(--style-hotspot-2-y-mobile, var(--style-hotspot-2-y, 50%));
  }

  /* Modal: mobile-only compact sizing (don’t affect desktop) */
  .style-inspiration__modal {
    width: min(150px, calc(100% - 24px));
  }

  .style-inspiration__modal-content {
    padding: 10px !important;
  }

  .style-inspiration__modal-image {
    width: 100%;
    height: 104px;
    margin-bottom: 6px !important;
  }

  .style-inspiration__modal-title {
    font-size: 11px;
    max-width: 96px;
  }

  .style-inspiration__modal-price {
    font-size: 10px;
    max-width: 96px;
  }

  .style-inspiration__controls {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .style-inspiration__panels {
    height: auto;
  }
}

/* =============================================
   SECTION QUIZ
   ============================================= */
.quiz-section {
  padding: 0 0 90px;
  background: linear-gradient(180deg, #fcf4e6 41.33%, #d1e2d5 100%);
}

.quiz-section__container {
  position: relative;
  width: 100%;
  min-height: 525px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.quiz-section__bg {
  position: absolute;
  left: -298px;
  top: -179px;
  width: 1917px;
  height: 1074px;
  pointer-events: none;
}

.quiz-section__bg-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.quiz-section__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 670px;
  padding: 103px 84px 84px;
  gap: 12px;
}

.quiz-section__title {
  max-width: 520px;
  font-family: 'Marcellus', serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.12;
  color: #010101;
}

.quiz-section__description {
  max-width: 443px;
  font-family: 'Albert Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #6c737f;
}

.quiz-section__cta {
  width: fit-content;
  min-width: auto;
}

.quiz-section__cta-gap {
  margin-top: 32px;
}

.quiz-section__cta:hover,
.quiz-section__cta:focus-visible {
  color: #ffffff;
}

@media (max-width: 1199px) {
  .quiz-section__bg {
    left: -380px;
  }

  .quiz-section__content {
    padding: 80px 52px 64px;
  }

  .quiz-section__title {
    font-size: 46px;
  }

  .quiz-section__description {
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .quiz-section {
    padding: 0 0px 64px;
  }

  .quiz-section__container {
    min-height: 298px;
    border-radius: 8px;
  }

  .quiz-section__bg {
    left: auto;
    right: -330px;
    top: auto;
    bottom: -90px;
    width: 844px;
    height: 473px;
    transform: none;
  }

  .quiz-section__content {
    max-width: 215px;
    padding: 32px 0 32px 24px;
    gap: 12px;
  }

  .quiz-section__title {
    font-size: 24px;
    line-height: 1.2;
    max-width: 213px;
  }

  .quiz-section__description {
    font-size: 12px;
    line-height: 1.3;
    max-width: 215px;
  }

  .quiz-section__cta-gap {
    margin-top: 17px;
  }

  .quiz-section__cta {
    min-height: 46px;
    padding: 0 24px;
    font-size: 12px;
  }
}
/* =============================================
   SECTION QUIZ MODAL
   ============================================= */
.quiz-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100dvh;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.quiz-modal[open] {
  display: block;
}

.quiz-modal::backdrop {
  background: transparent;
}

.quiz-modal__overlay {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(-0.75deg, #e3eaed 1.15%, #ffffff 155.24%);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  align-items: stretch !important;
}

.quiz-modal__close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0;
  z-index: 6;
  color: #141414;
  font-family: 'Albert Sans', sans-serif;
  font-size: 44px;
  line-height: 1;
}

.quiz-modal__close span {
  display: block;
  margin-top: 0;
  line-height: 1;
}

.quiz-modal__flower {
  position: absolute;
  z-index: 0;
  width: 314px;
  height: 476px;
  overflow: hidden;
  pointer-events: none;
}

.quiz-modal__flower--left {
  top: 0;
  left: 0;
}

.quiz-modal__flower--right {
  width: 404px;
  right: 0;
  bottom: 0;
}

.quiz-modal__flower-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-modal__stack {
  position: relative;
  z-index: 1;
  width: min(100%, 710px);
  height: calc(100dvh - 50px);
  margin-top: 50px;
  overflow: hidden;
}

.quiz-modal__card-shadow,
.quiz-modal__card-mid {
  position: absolute;
  left: 50%;
  border: 1px solid #e6e6e6;
  background: #fff;
}

.quiz-modal__card-shadow {
  width: min(100%, 663px);
  top: -10px;
  bottom: -32px;
  opacity: 0.3;
  transform: translateX(-50%) rotate(3.03deg);
  transform-origin: center;
}

.quiz-modal__card-mid {
  width: min(100%, 641px);
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
}

.quiz-modal__card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 597px);
  top: 22px;
  bottom: -22px;
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 36px 52px 64px;
  z-index: 2;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.quiz-modal__logo {
  width: 178px;
  height: auto;
  margin-top: 6px;
}

.quiz-modal__step {
  margin-top: 30px;
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(1, 1, 1, 0.4);
  text-transform: capitalize;
}

.quiz-modal__heading {
  margin-top: 10px;
  max-width: 316px;
  font-family: 'Albert Sans', sans-serif;
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
  color: rgba(1, 1, 1, 0.8);
  text-transform: capitalize;
}

.quiz-modal__options {
  display: grid !important;
  grid-template-columns: max-content max-content;
  justify-content: center;
  margin-top: 50px;
  gap: 13px 15px;
  width: 100%;
}

.quiz-modal__option:first-child {
  grid-column: 1 / span 2;
  justify-self: center;
}

.quiz-modal__options--wear-it .quiz-modal__option:first-child {
  grid-column: auto;
  justify-self: auto;
}

.quiz-modal__options--wear-it .quiz-modal__option {
  gap: 6px;
  padding-left: 14px;
  padding-right: 26px;
}

.quiz-modal__options--wear-it .quiz-modal__option-icon--wear-it {
  width: unset;
  height: unset;
  object-fit: contain;
  display: block;
}

.quiz-modal__options--gemstones .quiz-modal__option:first-child {
  grid-column: auto;
  justify-self: auto;
}

.quiz-modal__options--gemstones {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: stretch;
  width: min(100%, 560px);
  margin-left: auto;
  margin-right: auto;
}

.quiz-modal__options--gemstones .quiz-modal__option:last-child {
  grid-column: 1 / span 2;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
}

.quiz-modal__options--gemstones .quiz-modal__option {
  width: 100%;
  font-size: 28px;
  gap: 10px;
  padding-left: 20px;
  padding-right: 20px;
  justify-content: center;
}

.quiz-modal__options--gemstones .quiz-modal__option-icon--gemstone {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.quiz-modal__options--gemstones .quiz-modal__option span {
  display: block;
  line-height: 1;
}

.quiz-modal__option {
  height: 64px;
  border: 1px solid #dcdcdc;
  border-radius: 50px;
  background: #fff;
  padding: 10px 30px;
  gap: 10px;
  font-family: 'Marcellus', serif;
  font-size: 32px;
  line-height: 1;
  color: #010101;
  min-width: 0;
}

.quiz-modal__option--active {
  border-color: #6d1b1d;
  background: #fdfafa;
}

.quiz-modal__option-icon {
  width: 69px;
  height: 44px;
  object-fit: contain;
}

.quiz-modal__option-icon--fruits {
  width: 82px;
  height: 40px;
}

.quiz-modal__actions {
  margin-top: auto;
  /* Min 48px above button row; margin-top: auto handles flex fill (max(48px, auto) isn’t valid on margin). */
  padding-top: 48px;
  gap: 31px;
}

.quiz-modal__nav-button {
  min-width: 72px;
  border: 1px solid #dcdcdc;
  background: transparent;
  padding: 10px 30px;
  font-family: 'Albert Sans', sans-serif;
  font-size: 18px;
  line-height: 1;
  color: rgba(1, 1, 1, 0.8);
  text-transform: capitalize;
}

@media (max-width: 991px) {
  .quiz-modal__overlay {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
    align-items: flex-start !important;
  }

  .quiz-modal__close {
    top: 40px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .quiz-modal__flower {
    width: 200px;
    height: 236px;
    opacity: 0.65;
  }

  .quiz-modal__flower--left {
    position: absolute;
    top: 0;
    left: 0;
  }

  .quiz-modal__flower--right {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .quiz-modal__stack {
    width: min(100%, 356px);
    height: calc(100dvh - 92px - 24px - env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
    margin-top: 92px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    padding: 38px 0;
    overflow-x: hidden;
    overflow-y: hidden; /* keep scroll on the card to avoid double scroll on mobile */
  }

  .quiz-modal__card-shadow,
  .quiz-modal__card-mid {
    display: block;
  }

  .quiz-modal__card-shadow {
    width: min(100%, 323px);
    top: 8px;
    bottom: 8px;
    transform: translateX(-50%) rotate(2.9deg);
    opacity: 0.3;
  }

  .quiz-modal__card-mid {
    width: min(100%, 336px);
    top: 26px;
    bottom: 26px;
    transform: translateX(-50%);
  }

  .quiz-modal__card {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: min(100%, 312px);
    height: 100%;
    padding: 28px 20px 30px;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .quiz-modal__logo {
    width: 142px;
  }

  .quiz-modal__heading {
    color: rgba(1, 1, 1, 0.8);
    text-align: center;
    font-family: var(--font-secondary, 'Albert Sans'), sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    text-transform: capitalize;
    max-width: 100%;
  }

  .quiz-modal__options {
    margin-top: 36px;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .quiz-modal__option:first-child {
    grid-column: auto;
  }

  .quiz-modal__option {
    width: 100%;
    font-size: 20px;
    height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .quiz-modal__options--gemstones .quiz-modal__option {
    justify-content: flex-start;
    gap: 10px;
    padding-left: 26px;
    padding-right: 26px;
    font-size: 18px;
  }

  .quiz-modal__options--gemstones {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .quiz-modal__options--gemstones .quiz-modal__option:last-child {
    grid-column: auto;
    justify-self: auto;
    width: 100%;
    max-width: none;
  }

  .quiz-modal__actions {
    margin-top: 48px;
    padding-top: 0;
    width: 100%;
  }

  .quiz-modal__nav-button {
    min-width: 92px;
    font-size: 20px;
  }
}
/* =============================================
   SECTION CRIMSON
   ============================================= */
.crimson-section {
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #d1e2d5 0%, #d5e4d7 30%, #e8ead9 70%, #fbf3e5 100%);
}

.crimson-section__slider {
  width: 100%;
  max-width: 1280px;
  height: 680px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.crimson-section__card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background-color: #83b4b8;
}

.crimson-section__hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.crimson-section__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Header: title + arrows */
.crimson-section__header {
  position: absolute;
  top: 47px;
  right: 32px;
  left: calc(100% - 48.5%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
}

.crimson-section__title {
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  max-width: 431px;
}

.crimson-section__title-mobile {
  display: none;
}

.crimson-section__nav-mobile {
  display: none;
}

.crimson-section__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.crimson-section__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 38px;
  border: none;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.crimson-section__nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.crimson-section__nav-icon {
  width: 14px;
  height: 14px;
}

.crimson-section__nav-icon--flip {
  transform: scaleX(-1);
}

/* White product panel */
.crimson-section__products {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48.5%;
  height: calc(100% - 190px);
  background: #fff;
  border-top-left-radius: 8px;
  padding: 24px;
  z-index: 1;
}

.crimson-section__products-grid {
  display: flex;
  gap: 24px;
  height: 100%;
}

.crimson-section__products-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.crimson-section__products-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.crimson-section__product-card {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.crimson-section__product-card--large {
  flex: 1;
}

.crimson-section__product-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crimson-section__description {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-text-muted);
  max-width: 238px;
  margin: 0;
  font-feature-settings: 'liga' 0;
}

.crimson-section__cta {
  min-width: 184px;
  flex-shrink: 0;
}

/* ---- Mobile ---- */
@media (max-width: 991px) {
  .crimson-section {
    padding: 40px 0px 60px;
    /* Figma node 119:243 — from #d3e3d6 to #eeeee0 (seam matches envelope 119:276 top) */
    background: linear-gradient(180deg, #d3e3d6 0%, #dde5dc 40%, #eeeee0 100%);
  }

  .crimson-section__title-mobile {
    display: block;
    margin: 0 auto 20px;
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.09;
    letter-spacing: -0.32px;
    color: #000;
    text-align: center;
    max-width: 257px;
  }

  .crimson-section__slider {
    height: auto;
    border-radius: 0;
    overflow: visible;
  }

  .crimson-section__card {
    height: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    overflow: visible;
  }

  .crimson-section__hero {
    position: relative;
    height: auto;
    padding: 20px;
    border-radius: 0;
  }

  .crimson-section__hero-img {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 280 / 304;
    object-fit: cover;
    object-position: center 42%;
    border-radius: 0;
  }

  .crimson-section__header {
    display: none;
  }

  .crimson-section__nav-mobile {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
  }

  .crimson-section__products {
    position: relative;
    order: 2;
    width: 100%;
    height: auto;
    border-radius: 0;
    background: transparent;
    padding: 0 20px 20px;
  }

  .crimson-section__products-grid {
    display: flex;
    flex-direction: column;
    gap: 27px;
  }

  .crimson-section__products-left {
    gap: 12px;
  }

  .crimson-section__products-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .crimson-section__product-card {
    height: 171px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .crimson-section__product-card--large {
    display: none;
  }

  .crimson-section__products-right .crimson-section__product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .crimson-section__description {
    font-size: 12px;
    line-height: 1.3;
    max-width: 215px;
    color: #6c737f;
  }

  .crimson-section__cta {
    align-self: flex-start;
    min-width: 151px;
    min-height: 46px;
    border-radius: 89px;
  }

  .crimson-section__nav-btn {
    width: 50px;
    height: 38px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
    opacity: 1;
  }

  .crimson-section__nav-btn.swiper-button-disabled {
    opacity: 1;
  }

  .crimson-section__nav-icon {
    width: 14px;
    height: 14px;
  }
}
