.tryon-page {
  background: linear-gradient(135deg, #f7fffe 0%, rgba(45, 212, 191, 0.08) 100%);
  min-height: 100vh;
}

.tryon-main {
  padding-top: 110px;
  max-width: 96vw;
  margin: 0 auto;
}

.tryon-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(245, 255, 254, 0.95), rgba(226, 251, 255, 0.75));
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(45, 212, 191, 0.16);
  margin: 0 20px 26px;
}

.hero-copy .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(2.75rem, 4.4vw, 4.8rem);
  line-height: 0.98;
  color: var(--ink);
}

.hero-copy p {
  margin: 20px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn-hero,
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-hero {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #fff;
  box-shadow: 0 18px 40px rgba(20, 184, 166, 0.22);
}

.btn-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(20, 184, 166, 0.28);
}

.btn-hero-outline {
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.hero-badge {
  display: grid;
  gap: 14px;
}

.hero-badge div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--ink-2);
}

.hero-badge strong {
  font-size: 1.75rem;
  line-height: 1;
}

.tryon-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding: 20px;
}

.viewer {
  background: transparent;
}

.viewer-frame {
  /* background: linear-gradient(180deg, #f7fffe 0%, #e0fdf4 100%); */
  background: white;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  box-shadow: 0 30px 80px rgba(45, 212, 191, 0.12);
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f8fbff;
  border-radius: 18px;
  border: 1px solid transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.video-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none
}

.canvas-label {
  position: absolute;
  right: 16px;
  top: 16px;
  background: #0f2420;
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(45, 212, 191, 0.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 520px;
  min-height: 80vh;
  gap: 12px;
}

.sidebar-scroll {
  /* background: linear-gradient(135deg, rgba(245, 250, 250, 0.9), rgba(240, 249, 250, 0.9)); */
  background: white;
  border-radius: 20px;
  padding: 18px;
  border: 1.5px solid rgba(45, 212, 191, 0.15);
  box-shadow: 0 20px 60px rgba(45, 212, 191, 0.15);
  flex: 1 1 auto;
  overflow: auto;
}

.sidebar h3 {
  margin: 6px 0 12px;
  color: var(--ink);
}

.model-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid rgba(45, 212, 191, 0.15);
  background: #ffffff;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.model-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  background: #f8fafc;
  padding: 8px;
}

.model-item span {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

.model-item:hover,
.model-item.selected {
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.14), rgba(34, 211, 238, 0.08));
  border-color: rgba(20, 184, 166, 0.3);
  transform: translateX(2px);
}

.info-model {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1.5px solid rgba(45, 212, 191, 0.12);
  background: #ffffff;
}

.info-model h4 {
  margin: 0 0 10px;
  color: black;
}

.info-model .muted {
  color: rgba(0, 0, 0, 0.68);
  font-size: 13px;
}

.info-model p {
  margin: 12px 0 0;
  color: rgba(0, 0, 0, 0.88);
  font-size: 0.95rem;
}

.info-model p strong {
  color: rgba(0, 0, 0, 0.88);
}

.info-model p span {
  color: var(--teal);
}

.controls {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  padding: 18px 20px;
  margin: 18px auto;
  max-width: 1200px
}

.control-btn {
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 18px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  min-width: 120px
}

.control-btn i {
  font-size: 20px;
  color: var(--accent)
}

.control-btn div {
  font-size: 13px;
  color: var(--muted)
}

footer {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px
}

@media (max-width: 900px) {
  .tryon-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    min-height: auto;
  }

  .viewer-frame {
    height: 420px
  }
}

@media (max-width:480px) {
  .viewer-frame {
    height: 320px;
    padding: 12px
  }

  .control-btn {
    min-width: 80px;
    padding: 10px
  }
}