/**
 * Lọ Mơ — Flower Shop
 * LoMoFloralShowcase Stylesheet
 * 
 * Adapted from ThreeUI BestsellersBookShowcase (Canonical: https://threeui.com/landing-pages/bestsellers-book-showcase.html)
 * Custom floral showcase "Những mùa hoa được yêu" for Lọ Mơ website.
 * All rights and original motion design concepts preserved from ThreeUI.
 */

:root {
  --lomo-showcase-green: var(--color-green, #285640);
  --lomo-showcase-green-deep: var(--color-green-dark, #1b382a);
  --lomo-showcase-green-soft: var(--color-green-light, #386b53);
  --lomo-showcase-terracotta: var(--color-orange, #D47B61);
  --lomo-showcase-terracotta-light: var(--color-orange-light, #f29a82);
  --lomo-showcase-cream: var(--color-cream, #FAF5EC);
  --lomo-showcase-cream-dark: var(--color-cream-dark, #F0E8DA);
  --lomo-showcase-ink: var(--color-ink, #263A30);
  --lomo-showcase-ink-muted: var(--color-ink-muted, #64786E);
  --lomo-showcase-line: var(--color-line-dark, #E2D7C5);
  --lomo-showcase-paper: var(--color-white, #FAF5EC);
  --lomo-showcase-ease: cubic-bezier(0.2, 0.78, 0.2, 1);
}

.lomo-floral-showcase {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 980px;
  overflow: hidden;
  overflow: clip;
  contain: paint;
  background:
    radial-gradient(circle at 50% 90%, rgba(212, 123, 97, 0.08), transparent 50%),
    radial-gradient(circle at 20% 15%, rgba(40, 86, 64, 0.06), transparent 40%),
    light-dark(
      linear-gradient(180deg, #FDFBF7 0%, #FAF5EC 50%, #F5EDE2 100%),
      linear-gradient(180deg, #16181E 0%, #121316 52%, #171A20 100%)
    );
  border-top: 1px solid var(--lomo-showcase-line);
  border-bottom: 1px solid var(--lomo-showcase-line);
  color: var(--lomo-showcase-ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  user-select: none;
}

/* Subtle organic grain overlay */
.lomo-floral-showcase::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Showcase Header Bar */
.lomo-floral-showcase .showcase-topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 32px 4vw 0;
  pointer-events: none;
}

.lomo-floral-showcase .showcase-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lomo-showcase-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: auto;
}

.lomo-floral-showcase .showcase-brand-tag svg {
  color: var(--lomo-showcase-terracotta);
}

.lomo-floral-showcase .showcase-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.lomo-floral-showcase .showcase-collection-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--lomo-showcase-line);
  border-radius: 999px;
  background: var(--color-white);
  backdrop-filter: blur(8px);
  color: var(--lomo-showcase-green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 240ms var(--lomo-showcase-ease), background-color 240ms ease, box-shadow 240ms ease;
}

.lomo-floral-showcase .showcase-collection-btn:hover {
  transform: translateY(-2px);
  background: var(--color-cream-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: var(--lomo-showcase-terracotta);
}

/* Large Atmospheric Watermark Word */
.lomo-floral-showcase .hero-watermark {
  display: none;
}

/* Editorial Sub-Heading */
.lomo-floral-showcase .showcase-intro {
  position: absolute;
  z-index: 12;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  width: min(92vw, 760px);
  max-width: 760px;
  padding: 0 20px;
  transition: opacity 500ms ease, transform 600ms var(--lomo-showcase-ease);
}

.lomo-floral-showcase .showcase-title {
  margin: 0 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  color: var(--lomo-showcase-green);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lomo-floral-showcase .showcase-description {
  margin: 0 auto;
  max-width: 580px;
  font-size: clamp(14px, 1.15vw, 15.5px);
  color: var(--lomo-showcase-ink-muted);
  line-height: 1.62;
}

/* 3D Gallery Stage */
.lomo-floral-showcase .gallery-stage {
  position: absolute;
  z-index: 5;
  inset: 0;
  perspective: 1400px;
  transform-style: preserve-3d;
  overflow: hidden;
  overflow: clip;
}

/* Floral Product Cards */
.lomo-floral-showcase .floral-card {
  --hover-y: 0px;
  --local-x: 0px;
  --local-y: 0px;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  aspect-ratio: 0.72 / 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform:
    translate3d(
      calc(-50% + var(--local-x)),
      calc(-50% + var(--hover-y) + var(--local-y)),
      0
    )
    rotate(var(--r))
    rotateY(var(--yaw));
  transform-style: preserve-3d;
  transition:
    left 1100ms var(--lomo-showcase-ease),
    top 1100ms var(--lomo-showcase-ease),
    width 1100ms var(--lomo-showcase-ease),
    opacity 500ms ease,
    filter 500ms ease,
    transform 520ms var(--lomo-showcase-ease);
  will-change: transform, left, top, width;
}

/* 3 Item Default Spatial Coordinates */
.lomo-floral-showcase .floral-card[data-index="0"] {
  --x: 23%;
  --y: 62%;
  --w: min(27vw, 350px);
  --r: -4deg;
  --yaw: -6deg;
  z-index: 2;
}

.lomo-floral-showcase .floral-card[data-index="1"] {
  --x: 50%;
  --y: 59%;
  --w: min(29vw, 380px);
  --r: 0.5deg;
  --yaw: -1deg;
  z-index: 4;
}

.lomo-floral-showcase .floral-card[data-index="2"] {
  --x: 77%;
  --y: 63%;
  --w: min(27vw, 350px);
  --r: 4deg;
  --yaw: 6deg;
  z-index: 3;
}

/* Hover Elevation */
.lomo-floral-showcase .floral-card:hover,
.lomo-floral-showcase .floral-card[data-hovered="true"] {
  --hover-y: -18px;
  z-index: 10;
}

/* Card Visual Body */
.lomo-floral-showcase .flower-figure {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 800ms var(--lomo-showcase-ease);
}

.lomo-floral-showcase .floral-card:hover .flower-figure {
  transform: scale(1.035) rotateX(-1deg);
}

/* Card Pedestal / Glass Plinth */
.lomo-floral-showcase .card-plinth {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: light-dark(rgba(255, 255, 255, 0.88), rgba(30, 33, 40, 0.92));
  border: 1px solid var(--lomo-showcase-line);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transform: translate3d(0, 0, 0);
  transition: box-shadow 350ms ease, background-color 350ms ease;
}

.lomo-floral-showcase .floral-card:hover .card-plinth {
  background: var(--color-white);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Soft 3D Shadow underneath */
.lomo-floral-showcase .card-shadow {
  position: absolute;
  z-index: -2;
  inset: 16% 8% -4% 8%;
  border-radius: 32px;
  background: rgba(38, 58, 48, 0.08);
  filter: blur(14px);
  opacity: 0.4;
  transform: translate3d(4px, 20px, -40px);
  transition: transform 400ms var(--lomo-showcase-ease), opacity 400ms ease;
}

.lomo-floral-showcase .floral-card:hover .card-shadow {
  transform: translate3d(6px, 28px, -45px);
  opacity: 0.55;
}

/* Floral Image Container */
.lomo-floral-showcase .flower-img-wrap {
  position: absolute;
  inset: 6% 6% 30% 6%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform: translate3d(0, 0, 24px);
  pointer-events: none;
}

.lomo-floral-showcase .flower-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(40, 86, 64, 0.08));
  transition: transform 400ms var(--lomo-showcase-ease), filter 400ms ease;
}

.lomo-floral-showcase .floral-card:hover .flower-img {
  transform: scale(1.03) translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(40, 86, 64, 0.12));
}

/* Neutral Fallback Placeholder if Image Missing */
.lomo-floral-showcase .flower-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: rgba(240, 232, 218, 0.5);
  border: 1px dashed var(--lomo-showcase-line);
  color: var(--lomo-showcase-ink-muted);
  gap: 10px;
}

.lomo-floral-showcase .flower-fallback svg {
  width: 44px;
  height: 44px;
  stroke: var(--lomo-showcase-terracotta);
}

.lomo-floral-showcase .flower-fallback span {
  font-size: 13px;
  font-style: italic;
}

/* Card Caption / Identity Block */
.lomo-floral-showcase .card-caption {
  position: absolute;
  inset: auto 7% 5.5% 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate3d(0, 0, 28px);
}

.lomo-floral-showcase .card-season-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lomo-showcase-terracotta);
  margin-bottom: 4px;
}

.lomo-floral-showcase .card-name {
  margin: 0 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  color: var(--lomo-showcase-green);
  line-height: 1.15;
}

.lomo-floral-showcase .card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--lomo-showcase-ink);
  letter-spacing: 0.02em;
}

/* Interactive Badge: "Xem sản phẩm" */
.lomo-floral-showcase .open-badge {
  position: absolute;
  z-index: 35;
  top: 52%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  border: 1.5px solid rgba(250, 245, 236, 0.85);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translate3d(-50%, -50%, 64px) scale(0.88);
  transition: opacity 260ms ease, transform 360ms var(--lomo-showcase-ease);
  pointer-events: none;
}

.lomo-floral-showcase .floral-card:hover .open-badge,
.lomo-floral-showcase .floral-card[data-hovered="true"] .open-badge,
.lomo-floral-showcase .floral-card:focus-visible .open-badge {
  opacity: 1;
  transform: translate3d(-50%, -50%, 64px) scale(1);
}

.lomo-floral-showcase .floral-card:focus-visible {
  outline: 2px solid var(--lomo-showcase-terracotta);
  outline-offset: 6px;
  border-radius: 28px;
}

/* ==========================================================================
   DETAIL VIEW MODE
   ========================================================================== */

/* Fade out hero watermark and intro in detail mode */
.lomo-floral-showcase[data-mode="detail"] .hero-watermark {
  opacity: 0;
  filter: blur(16px);
  transform: translate3d(-50%, -40px, 0) scale(0.9);
}

.lomo-floral-showcase[data-mode="detail"] .showcase-intro {
  opacity: 0;
  transform: translate(-50%, -20px);
  pointer-events: none;
}

/* Other cards slide away and blur */
.lomo-floral-showcase[data-mode="detail"] .floral-card:not(.selected) {
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(-50%, 60vh, -200px) rotate(var(--r)) scale(0.75);
  pointer-events: none;
}

/* Selected Card moves to prominent left stage */
.lomo-floral-showcase[data-mode="detail"] .floral-card.selected {
  --hover-y: 0px;
  --local-x: 0px;
  --local-y: 0px;
  --detail-yaw: -4deg;
  --detail-pitch: 0deg;
  left: 27%;
  top: 50%;
  width: min(32vw, 420px);
  z-index: 15;
  cursor: default;
  transform: translate3d(-50%, -50%, 0) rotate(-1deg);
  pointer-events: none;
}

.lomo-floral-showcase[data-mode="detail"] .floral-card.selected .flower-figure {
  transform: scale(1.02) rotateX(var(--detail-pitch)) rotateY(var(--detail-yaw));
  transition-duration: 180ms;
}

.lomo-floral-showcase[data-mode="detail"] .floral-card.selected .open-badge {
  opacity: 0;
}

/* Detail Flyout Panel on Right Stage */
.lomo-floral-showcase .detail-panel {
  position: absolute;
  z-index: 25;
  top: 50%;
  transform: translateY(-50%);
  right: 5%;
  width: min(48%, 620px);
  opacity: 0;
  transition: opacity 520ms ease 260ms;
  pointer-events: none;
}

.lomo-floral-showcase[data-mode="detail"] .detail-panel {
  opacity: 1;
  pointer-events: auto;
}

.lomo-floral-showcase .detail-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lomo-showcase-terracotta);
  margin-bottom: 8px;
}

.lomo-floral-showcase .detail-title {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  color: var(--lomo-showcase-green);
  line-height: 1.12;
  letter-spacing: normal;
}

.lomo-floral-showcase .detail-price-tag {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: var(--lomo-showcase-terracotta);
  margin-bottom: 18px;
}

.lomo-floral-showcase .detail-scroll {
  max-height: clamp(280px, calc(100vh - 460px), 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 18px 10px 0;
  scrollbar-color: var(--lomo-showcase-terracotta) rgba(226, 215, 197, 0.4);
  scrollbar-width: thin;
}

.lomo-floral-showcase .detail-scroll::-webkit-scrollbar {
  width: 5px;
}

.lomo-floral-showcase .detail-scroll::-webkit-scrollbar-track {
  background: rgba(226, 215, 197, 0.4);
  border-radius: 999px;
}

.lomo-floral-showcase .detail-scroll::-webkit-scrollbar-thumb {
  background: var(--lomo-showcase-terracotta);
  border-radius: 999px;
}

.lomo-floral-showcase .detail-description {
  margin: 0 0 20px;
  font-size: clamp(14px, 1.12vw, 16px);
  color: var(--lomo-showcase-ink-muted);
  line-height: 1.65;
}

/* Detail Feature Sections */
.lomo-floral-showcase .doc-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--lomo-showcase-line);
}

.lomo-floral-showcase .doc-label {
  margin: 0 0 10px;
  color: var(--lomo-showcase-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lomo-floral-showcase .composition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lomo-floral-showcase .composition-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--lomo-showcase-line);
  font-size: 13px;
  color: var(--lomo-showcase-ink);
}

.lomo-floral-showcase .care-note {
  margin: 0;
  font-size: 14px;
  color: var(--lomo-showcase-ink-muted);
  line-height: 1.6;
  font-style: italic;
}

/* Bottom Action Dock (In-flow to prevent overlap) */
.lomo-floral-showcase .bottom-dock {
  position: relative;
  z-index: 30;
  margin-top: 24px;
  width: 100%;
}

.lomo-floral-showcase .action-rail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--lomo-showcase-line);
  border-radius: 36px;
  background: var(--color-white);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.lomo-floral-showcase .action-pill {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  outline: 0;
  white-space: nowrap;
  transition: transform 220ms var(--lomo-showcase-ease), filter 220ms ease, background 220ms ease;
}

.lomo-floral-showcase .action-pill.primary {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}

.lomo-floral-showcase .action-pill.primary:hover {
  background: var(--color-btn-primary-hover);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.lomo-floral-showcase .action-pill.secondary {
  background: rgba(212, 123, 97, 0.14);
  color: var(--lomo-showcase-terracotta);
}

.lomo-floral-showcase .action-pill.secondary:hover {
  background: rgba(212, 123, 97, 0.22);
  transform: translateY(-2px);
}

.lomo-floral-showcase .action-pill:focus-visible {
  outline: 2px solid var(--lomo-showcase-terracotta);
  outline-offset: 3px;
}

/* Close Detail Button */
.lomo-floral-showcase .close-button {
  position: absolute;
  z-index: 55;
  top: 32px;
  left: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--lomo-showcase-line);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--lomo-showcase-green);
  cursor: pointer;
  font-size: 26px;
  font-weight: 300;
  opacity: 0;
  transform: translate3d(-50%, -18px, 0) rotate(-45deg);
  transition: opacity 400ms ease, transform 600ms var(--lomo-showcase-ease), background 200ms ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.lomo-floral-showcase .close-button:hover {
  background: var(--color-cream-dark);
  color: var(--lomo-showcase-terracotta);
  transform: translate3d(-50%, 0, 0) scale(1.08);
}

.lomo-floral-showcase[data-mode="detail"] .close-button {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) rotate(0);
  pointer-events: auto;
}

/* Floating Flower Petals (Hidden to eliminate visual distraction - F23) */
.lomo-floral-showcase .petal-field {
  display: none !important;
}

.lomo-floral-showcase .petal {
  position: absolute;
  top: -10vh;
  left: var(--petal-x);
  width: var(--petal-size, 20px);
  height: var(--petal-size, 20px);
  opacity: 0.85;
  transform-style: preserve-3d;
  animation: petalDrift var(--petal-duration, 10s) linear var(--petal-delay, 0s) infinite;
}

.lomo-floral-showcase .petal i {
  position: absolute;
  inset: 0;
  border-radius: 80% 15% 75% 20%;
  background: radial-gradient(circle at 35% 35%, #FDEEE9 0%, #F5C6B8 60%, var(--lomo-showcase-terracotta) 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0.75;
}

@keyframes petalDrift {
  0% {
    transform: translate3d(0, -10vh, 0) rotateX(15deg) rotateZ(var(--petal-r, 0deg));
  }
  35% {
    transform: translate3d(25px, 35vh, 0) rotateX(140deg) rotateZ(calc(var(--petal-r, 0deg) + 110deg));
  }
  70% {
    transform: translate3d(-20px, 75vh, 0) rotateX(260deg) rotateZ(calc(var(--petal-r, 0deg) + 240deg));
  }
  100% {
    transform: translate3d(15px, 115vh, 0) rotateX(380deg) rotateZ(calc(var(--petal-r, 0deg) + 360deg));
  }
}

/* Mobile Segmented Navigation Pills */
.lomo-floral-showcase .mobile-showcase-nav {
  display: none;
}

@media (max-width: 900px) {
  .lomo-floral-showcase .mobile-showcase-nav {
    position: absolute;
    z-index: 15;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--lomo-showcase-line);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(40, 86, 64, 0.08);
  }

  .lomo-floral-showcase .mobile-nav-dot {
    padding: 6px 14px;
    border-radius: 999px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--lomo-showcase-ink-muted);
    cursor: pointer;
    transition: all 220ms ease;
  }

  .lomo-floral-showcase .mobile-nav-dot.active {
    background: var(--lomo-showcase-green);
    color: var(--lomo-showcase-cream);
  }

  .lomo-floral-showcase[data-mode="detail"] .mobile-showcase-nav {
    display: none;
  }
}

@media (max-width: 991px) {
  .lomo-floral-showcase {
    min-height: 840px;
  }

  .lomo-floral-showcase .showcase-intro {
    top: 68px;
  }

  .lomo-floral-showcase .hero-watermark {
    top: 18%;
    font-size: clamp(80px, 16vw, 140px);
  }

  .lomo-floral-showcase .floral-card[data-index="0"] {
    --x: 18%;
    --y: 58%;
    --w: min(38vw, 300px);
  }

  .lomo-floral-showcase .floral-card[data-index="1"] {
    --x: 50%;
    --y: 54%;
    --w: min(42vw, 330px);
  }

  .lomo-floral-showcase .floral-card[data-index="2"] {
    --x: 82%;
    --y: 58%;
    --w: min(38vw, 300px);
  }

  .lomo-floral-showcase[data-mode="detail"] {
    min-height: 1040px;
  }

  .lomo-floral-showcase[data-mode="detail"] .floral-card.selected {
    left: 50%;
    top: 240px;
    width: min(52vw, 290px);
    transform: translate3d(-50%, -50%, 0) !important;
  }

  .lomo-floral-showcase[data-mode="detail"] .detail-panel {
    top: 440px;
    transform: none;
    right: 5%;
    left: 5%;
    width: auto;
  }
}

@media (max-width: 640px) {
  .lomo-floral-showcase {
    min-height: 760px;
  }

  .lomo-floral-showcase .showcase-topbar {
    padding: 18px 14px 0;
  }

  .lomo-floral-showcase .showcase-collection-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .lomo-floral-showcase .showcase-intro {
    top: 64px;
    padding: 0 14px;
  }

  .lomo-floral-showcase .showcase-title {
    font-size: 24px;
  }

  .lomo-floral-showcase .showcase-description {
    font-size: 13px;
  }

  .lomo-floral-showcase .hero-watermark {
    top: 24%;
    font-size: 30vw;
  }

  /* Mobile Active Card Carousel Positioning */
  .lomo-floral-showcase[data-active-card="0"] .floral-card[data-index="0"] {
    --x: 50%;
    --y: 60%;
    --w: 70vw;
    --r: 0deg;
    z-index: 6;
  }
  .lomo-floral-showcase[data-active-card="0"] .floral-card[data-index="1"] {
    --x: 108%;
    --y: 62%;
    --w: 62vw;
    --r: 4deg;
    z-index: 2;
  }
  .lomo-floral-showcase[data-active-card="0"] .floral-card[data-index="2"] {
    --x: 165%;
    --y: 62%;
    --w: 62vw;
    --r: 6deg;
    z-index: 1;
  }

  .lomo-floral-showcase[data-active-card="1"] .floral-card[data-index="0"] {
    --x: -8%;
    --y: 62%;
    --w: 62vw;
    --r: -4deg;
    z-index: 2;
  }
  .lomo-floral-showcase[data-active-card="1"] .floral-card[data-index="1"] {
    --x: 50%;
    --y: 60%;
    --w: 70vw;
    --r: 0deg;
    z-index: 6;
  }
  .lomo-floral-showcase[data-active-card="1"] .floral-card[data-index="2"] {
    --x: 108%;
    --y: 62%;
    --w: 62vw;
    --r: 4deg;
    z-index: 2;
  }

  .lomo-floral-showcase[data-active-card="2"] .floral-card[data-index="0"] {
    --x: -65%;
    --y: 62%;
    --w: 62vw;
    --r: -6deg;
    z-index: 1;
  }
  .lomo-floral-showcase[data-active-card="2"] .floral-card[data-index="1"] {
    --x: -8%;
    --y: 62%;
    --w: 62vw;
    --r: -4deg;
    z-index: 2;
  }
  .lomo-floral-showcase[data-active-card="2"] .floral-card[data-index="2"] {
    --x: 50%;
    --y: 60%;
    --w: 70vw;
    --r: 0deg;
    z-index: 6;
  }

  /* Detail Mode on Small Mobile */
  .lomo-floral-showcase[data-mode="detail"] {
    min-height: 1000px;
  }

  .lomo-floral-showcase[data-mode="detail"] .floral-card.selected {
    left: 50%;
    top: 220px;
    width: min(68vw, 260px);
    transform: translate3d(-50%, -50%, 0) !important;
  }

  .lomo-floral-showcase[data-mode="detail"] .detail-panel {
    top: 400px;
    transform: none;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .lomo-floral-showcase .detail-title {
    font-size: 28px;
  }

  .lomo-floral-showcase .action-pill {
    min-height: 46px;
    padding: 0 12px;
    font-size: 13px;
  }

  .lomo-floral-showcase .close-button {
    top: 14px;
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
}
