/* ============================================================
   EXPLORE BAR
   The pill IS the expanding container. Starts as a button,
   morphs from its center into the product display.

   Fluid scaling: 375px -> 1440px -> 2560px
============================================================ */

.explore-bar {
  position: fixed;
  bottom: clamp(20px, 3.6vw, 52px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100vw - 32px);
  z-index: 20;
  border-radius: 16px;
  padding: 0 clamp(12px, 1.6vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glass border via ::before */
.explore-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.00) 40%,
    rgba(255, 255, 255, 0.00) 60%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.explore-bar.open {
  border-radius: 20px;
}

/* ============================================================
   EXPLORE BUTTON — fades out as the bar expands
============================================================ */

.explore-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 400px;
  overflow: hidden;
  transition:
    max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.25s ease;
}

.explore-bar.open .explore-btn {
  max-width: 0;
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
}

.explore-btn-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(14px, 1.8vw, 26px);
  line-height: 1;
  letter-spacing: clamp(0.14em, 0.28em, 0.28em);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.7vw, 10px);
  white-space: nowrap;
}

.explore-chevron {
  width: clamp(13px, 1.2vw, 18px);
  height: clamp(13px, 1.2vw, 18px);
  opacity: 0.60;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* ============================================================
   PRODUCT STRIP — fades in as the button collapses.
   Scrollable on viewports that can't fit all cards.
============================================================ */

.product-strip {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.4vw, 20px);
  padding: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition:
    max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    padding   0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-strip.open {
  max-width: 1400px;
  opacity: 1;
  padding: clamp(10px, 1.4vw, 20px) clamp(12px, 1.6vw, 24px);
  pointer-events: all;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Thin custom scrollbar for the product strip */
.product-strip.open::-webkit-scrollbar {
  height: 3px;
}
.product-strip.open::-webkit-scrollbar-track {
  background: transparent;
}
.product-strip.open::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* ============================================================
   PRODUCT CARDS
============================================================ */

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.5vw, 7px);
  flex-shrink: 0;
}

.product-card.live {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card.live:hover {
  transform: translateY(-7px);
}

.product-card.soon {
  cursor: default;
}

/* ============================================================
   MINI STICK PACK
   Fluid sizing: 200px wide at 375px vw -> 380px at 1440px+
============================================================ */

.mini-stick {
  width: clamp(200px, 26vw, 380px);
  height: clamp(60px, 7.6vw, 110px);
  border-radius: clamp(4px, 0.4vw, 6px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 0.7vw, 10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.18);
}

.mini-stick::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.10) 0%, transparent 45%);
  border-radius: 4px;
  pointer-events: none;
}

.mini-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(13px, 1.7vw, 24px);
  letter-spacing: clamp(0.14em, 0.28em, 0.28em);
}

.mini-rule {
  width: 1px;
  height: clamp(20px, 2.8vw, 40px);
  flex-shrink: 0;
  opacity: 0.4;
}

.mini-flavor {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(12px, 1.5vw, 22px);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ============================================================
   PRODUCT LABELS (below the stick)
============================================================ */

.product-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(12px, 1.5vw, 22px);
  letter-spacing: clamp(0.08em, 0.16em, 0.16em);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.soon-label {
  color: rgba(255, 255, 255, 0.25);
  font-size: clamp(10px, 1.25vw, 18px);
  letter-spacing: 0.12em;
}

/* ============================================================
   COMING SOON TREATMENT
============================================================ */

.product-card.soon .mini-stick {
  filter: saturate(0.3) brightness(0.7);
}

.soon-glass {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2;
}

/* ============================================================
   RESPONSIVE — PHONE (max-width: 600px)
============================================================ */
@media (max-width: 600px) {
  .explore-bar {
    bottom: 16px;
    max-width: calc(100vw - 24px);
  }

  .product-strip.open {
    max-width: calc(100vw - 48px);
    padding: 10px 8px;
  }

  .mini-stick {
    width: 170px;
    height: 52px;
  }

  .mini-wordmark { font-size: 11px; }
  .mini-flavor   { font-size: 10px; }
  .mini-rule     { height: 16px; }

  .product-label { font-size: 10px; }
  .soon-label    { font-size: 9px; }

  .explore-btn-label { font-size: 13px; letter-spacing: 0.14em; }
  .explore-chevron   { width: 12px; height: 12px; }
}

/* ============================================================
   RESPONSIVE — TABLET (601px - 768px)
============================================================ */
@media (min-width: 601px) and (max-width: 768px) {
  .product-strip.open {
    max-width: calc(100vw - 48px);
  }

  .mini-stick {
    width: 220px;
    height: 66px;
  }

  .mini-wordmark { font-size: 14px; }
  .mini-flavor   { font-size: 13px; }
  .mini-rule     { height: 24px; }

  .product-label { font-size: 13px; }
  .soon-label    { font-size: 11px; }
}

/* ============================================================
   RESPONSIVE — SMALL LAPTOP (769px - 1024px)
============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-strip.open {
    max-width: calc(100vw - 60px);
  }

  .mini-stick {
    width: 260px;
    height: 76px;
  }

  .mini-wordmark { font-size: 17px; }
  .mini-flavor   { font-size: 16px; }
  .mini-rule     { height: 28px; }

  .product-label { font-size: 15px; }
  .soon-label    { font-size: 13px; }
}

/* ============================================================
   RESPONSIVE — STANDARD LAPTOP (1025px - 1280px)
============================================================ */
@media (min-width: 1025px) and (max-width: 1280px) {
  .mini-stick {
    width: 310px;
    height: 90px;
  }

  .mini-wordmark { font-size: 20px; }
  .mini-flavor   { font-size: 18px; }
  .mini-rule     { height: 34px; }

  .product-label { font-size: 18px; }
  .soon-label    { font-size: 15px; }
}
