/* Fashionbymilox — "Shop the Look" video carousel, ported from the original
   fashionbymilox-storefront ShopTheLook component. Hand-authored vanilla
   version, injected post-hydration like the other fbm-* additions so
   Framer's reconciliation doesn't wipe it out. */

.fbm-stl {
  padding: 56px 24px 72px;
  max-width: 1720px;
  margin: 0 auto;
  font-family: Inter, "Inter Placeholder", sans-serif;
}
.fbm-stl-eyebrow {
  display: none;
}
.fbm-stl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.fbm-stl-title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -1.8px;
  color: #000;
  margin: 0;
}
.fbm-stl-sub {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.64px;
  color: rgba(0, 0, 0, 0.55);
  margin: 6px 0 0;
}
.fbm-stl-ig {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
  color: #000;
}
.fbm-stl-ig:hover { background: #f5f5f5; }

.fbm-stl-row-wrap { position: relative; }
.fbm-stl-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fbm-stl-row::-webkit-scrollbar { display: none; }

.fbm-stl-card {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
}
.fbm-stl-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #eee;
}
.fbm-stl-media img,
.fbm-stl-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fbm-stl-media video { opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.fbm-stl-media.fbm-stl-playing video { opacity: 1; }
.fbm-stl-media.fbm-stl-playing img { opacity: 0; }
.fbm-stl-play-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.15s ease;
}
.fbm-stl-media.fbm-stl-playing .fbm-stl-play-badge { opacity: 0; }

.fbm-stl-caption { padding: 12px 2px 0; }
.fbm-stl-caption-name { font-size: 14px; font-weight: 500; }
.fbm-stl-caption-price { font-size: 13px; color: rgba(0, 0, 0, 0.55); margin-top: 2px; }

.fbm-stl-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  z-index: 2;
}
.fbm-stl-arrow:hover { background: #f5f5f5; }
.fbm-stl-arrow-left { left: -10px; }
.fbm-stl-arrow-right { right: -10px; }
@media (max-width: 700px) {
  .fbm-stl-arrow { display: none; }
  .fbm-stl-card { width: 200px; }
}

/* ---------- fullscreen vertical player ---------- */
.fbm-stl-player {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: none;
}
.fbm-stl-player.fbm-open { display: block; }
.fbm-stl-player-close {
  cursor: pointer;
}
.fbm-stl-player-track {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.fbm-stl-player-track::-webkit-scrollbar { display: none; }
.fbm-stl-player-slide {
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.fbm-stl-player-frame {
  position: relative;
  height: 92vh;
  aspect-ratio: 9 / 16;
  max-width: 94vw;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}
.fbm-stl-player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* legibility gradients, top icons, progress — matches the original reel UI */
.fbm-stl-grad-top {
  position: absolute; top: 0; left: 0; right: 0; height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}
.fbm-stl-grad-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  pointer-events: none;
}
.fbm-stl-progress-single {
  position: absolute; top: 18px; left: 16px; right: 16px; z-index: 2;
  height: 6px; background: rgba(255,255,255,0.35); border-radius: 999px;
  cursor: pointer;
  padding: 9px 0; margin-top: -9px;
  background-clip: content-box;
  box-sizing: content-box;
}
.fbm-stl-progress-fill { height: 100%; width: 0%; background: #fff; border-radius: 999px; pointer-events: none; }

.fbm-stl-top-icons {
  position: absolute; top: 40px; right: 20px; z-index: 3;
  display: flex; align-items: center; gap: 16px;
}
.fbm-stl-icon-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  display: flex; align-items: center; justify-content: center;
}

.fbm-stl-pause-badge {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.fbm-stl-pause-badge.fbm-stl-pause-visible { opacity: 1; }
.fbm-stl-pause-badge span {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

.fbm-stl-rail {
  position: absolute; right: 16px; z-index: 3;
  display: flex; flex-direction: column; gap: 12px;
}
.fbm-stl-rail-nav { top: 50%; transform: translateY(-50%); }
.fbm-stl-rail-actions { bottom: 144px; gap: 20px; }
.fbm-stl-rail .fbm-stl-icon-btn:disabled { opacity: 0.2; cursor: default; }
.fbm-stl-like.fbm-liked { color: #ff3b5c; }

.fbm-stl-bottom-row {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.fbm-stl-find-similar {
  display: flex; flex-direction: row; align-items: center; gap: 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1); border-radius: 999px;
  padding: 10px 18px;
  color: #000; font-size: 13px; font-weight: 500; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.fbm-stl-product-carousel {
  width: 100%; padding: 0 12px;
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fbm-stl-product-carousel::-webkit-scrollbar { display: none; }
.fbm-stl-product-pill {
  flex: 0 0 auto; width: calc(100% - 72px); scroll-snap-align: start;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.06); border-radius: 18px;
  padding: 10px; cursor: pointer; text-align: left; color: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  transition: transform 0.15s ease;
  font-family: Inter, "Inter Placeholder", sans-serif;
}
.fbm-stl-product-pill:active { transform: scale(0.98); }
.fbm-stl-product-pill img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.fbm-stl-pill-text { flex: 1; min-width: 0; }
.fbm-stl-product-pill .fbm-stl-pill-name {
  font-size: 14px; font-weight: 600; letter-spacing: -0.02em; color: #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fbm-stl-pill-price {
  font-size: 12px; font-weight: 400; color: rgba(0,0,0,0.5); margin-top: 1px;
}
.fbm-stl-pill-add {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: #000; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.fbm-stl-pill-add:hover { background: #2b2b2b; }

/* ---------- product sidebar drawer ---------- */
.fbm-stl-sidebar-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: none; justify-content: flex-end;
  background: rgba(0,0,0,0.3);
}
.fbm-stl-sidebar-overlay.fbm-open { display: flex; }
.fbm-stl-sidebar-panel {
  position: relative; width: 100%; max-width: 380px; height: 100%;
  background: #fff; display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  animation: fbm-stl-slide-in-right 0.28s cubic-bezier(0.32, 0.72, 0, 1) both;
  font-family: Inter, "Inter Placeholder", sans-serif;
}
@keyframes fbm-stl-slide-in-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
.fbm-stl-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.fbm-stl-sidebar-header span { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(0,0,0,0.5); }
.fbm-stl-sidebar-close { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 50%; }
.fbm-stl-sidebar-close:hover { background: #f5f5f5; }
.fbm-stl-sidebar-body { flex: 1; overflow-y: auto; padding: 20px; }
.fbm-stl-sidebar-body img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
.fbm-stl-sidebar-body h3 { font-size: 16px; font-weight: 600; margin: 16px 0 4px; }
.fbm-stl-sidebar-body .fbm-stl-sidebar-price { font-size: 20px; font-weight: 700; }
.fbm-stl-sidebar-body p { font-size: 13px; color: rgba(0,0,0,0.55); line-height: 1.6; margin-top: 10px; }
.fbm-stl-sidebar-footer { padding: 12px 20px 32px; border-top: 1px solid rgba(0,0,0,0.08); display: flex; flex-direction: column; gap: 8px; }
.fbm-stl-sidebar-view {
  display: block; text-align: center; background: #000; color: #fff;
  font-size: 13px; font-weight: 600; padding: 14px; border-radius: 999px; text-decoration: none;
}
.fbm-stl-sidebar-continue {
  display: block; text-align: center; background: #fff; color: #000;
  border: 1px solid rgba(0,0,0,0.15); font-size: 13px; font-weight: 600;
  padding: 14px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
