/**
 * ThinX OS — catalog-style lookbook (left panels + right screenshot stage).
 * Scoped under .chippc-thinx-lookbook; dark theme aligned with ThinX landing.
 */

.chippc-thinx-lookbook {
  --tlb-ink: #f5f5f7;
  --tlb-muted: rgba(184, 212, 238, 0.92);
  --tlb-line: rgba(112, 212, 255, 0.16);
  --tlb-active: #70d4ff;
  --tlb-panel: rgba(255, 255, 255, 0.035);
  --tlb-stage: linear-gradient(160deg, #001a33 0%, #001228 55%, #002244 100%);
  margin-top: 8px;
}

.chippc-thinx-lookbook .tlb-panel {
  background: var(--tlb-panel);
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.35fr;
  gap: 0;
  min-height: min(64vh, 560px);
  overflow: hidden;
  border: 1px solid var(--tlb-line);
}

.chippc-thinx-lookbook .tlb-list {
  padding: 28px 10px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: min(72vh, 640px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(112, 212, 255, 0.35) transparent;
}

.chippc-thinx-lookbook .tlb-item {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--tlb-line);
  padding: 0;
}

.chippc-thinx-lookbook .tlb-item:last-child {
  border-bottom: none;
}

.chippc-thinx-lookbook .tlb-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 10px 14px 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: start;
}

.chippc-thinx-lookbook .tlb-title {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(184, 212, 238, 0.92);
  line-height: 1.25;
  transition: color 0.2s ease;
}

.chippc-thinx-lookbook .tlb-item.is-open .tlb-title,
.chippc-thinx-lookbook .tlb-item-top:hover .tlb-title {
  color: var(--tlb-ink);
}

.chippc-thinx-lookbook .tlb-chev {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(184, 212, 238, 0.92);
  transition: transform 0.25s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.chippc-thinx-lookbook .tlb-item.is-open .tlb-chev {
  transform: rotate(180deg);
  color: var(--tlb-active);
}

.chippc-thinx-lookbook .tlb-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  padding: 0 10px 0 0;
}

.chippc-thinx-lookbook .tlb-item.is-open .tlb-body {
  max-height: 120px;
  opacity: 1;
  padding: 0 10px 16px 0;
}

.chippc-thinx-lookbook .tlb-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(184, 212, 238, 0.92);
  max-width: 36ch;
}

.chippc-thinx-lookbook .tlb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 24px;
  min-height: min(64vh, 560px);
  position: relative;
  background: var(--tlb-stage);
  border-left: 1px solid var(--tlb-line);
}

.chippc-thinx-lookbook .tlb-stage-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chippc-thinx-lookbook .tlb-stage img {
  max-width: min(720px, 96%);
  max-height: min(52vh, 480px);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 12px;
  border: 1px solid rgba(112, 212, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 20, 50, 0.45);
}

.chippc-thinx-lookbook .tlb-stage img.is-on {
  opacity: 1;
}

.chippc-thinx-lookbook .tlb-hint {
  text-align: center;
  margin: 14px 0 0;
  font-size: 0.76rem;
  color: rgba(184, 212, 238, 0.85);
}

/* Hide original Elementor mosaic once transformed */
.sc-grid.chippc-tlb-replaced,
.sc-grid.chippc-tlb-replaced + p {
  display: none !important;
}

@media (max-width: 860px) {
  .chippc-thinx-lookbook .tlb-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .chippc-thinx-lookbook .tlb-list {
    padding: 12px 16px 20px;
    order: 2;
    max-height: none;
  }

  .chippc-thinx-lookbook .tlb-stage {
    min-height: 240px;
    padding: 20px 16px;
    order: 1;
    border-left: none;
    border-bottom: 1px solid var(--tlb-line);
  }

  .chippc-thinx-lookbook .tlb-stage img {
    max-height: 220px;
  }

  .chippc-thinx-lookbook .tlb-title {
    font-size: 1.05rem;
  }
}
