
.pv-container {
  --bg-color: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #8b8b95;
  --accent: #e8732a;
  --line: #e0e0e0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-speed: 0.3s;
}




  .pv-scroll-track {
    height: 340vh; /* 120vh de área de scroll útil para intro + 220vh de hold (aprox 2 segundos) */
    position: relative;
  }

  /* Container Principal */
  .pv-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    background-color: var(--bg-color);
  }

  /* Palco Visual (Fundo Full Bleed) */
  .pv-visual-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }

  .pv-media-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover para o Hero Image também acompanhar o Canvas */
  }

  #pv-heroImage {
    z-index: 1;
    transition: opacity 0.2s ease, filter 0.2s ease;
  }

  #pv-animCanvas {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: none; /* Controlado via JS */
  }

  /* Painel Editorial (Esquerda) */
  .pv-editorial-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 8%; /* Espaço de respiro esquerdo */
    pointer-events: none;
  }

  .pv-ui-content {
    pointer-events: auto;
    max-width: 420px;
    transition: opacity 0.4s ease;
  }

  /* Redução sutil de opacidade da UI durante transições */
  .pv-is-animating .pv-ui-content {
    opacity: 0.7;
  }

  .pv-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
  }

  .pv-headline {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 4rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
  }

  /* Navegação */
  .pv-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .pv-nav-item {
    display: flex;
    align-items: center;
  }

  .pv-nav-button {
    background: none;
    border: none;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.2rem 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    text-align: left;
  }

  .pv-nav-num {
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .pv-nav-label {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    white-space: nowrap; /* Evita quebra na maioria dos monitores */
  }

  /* Exceção para telas muito estreitas se precisarem de duas linhas */
  @media (max-width: 1440px) {
    .pv-nav-label {
      white-space: normal;
      line-height: 1.2;
    }
  }

  /* Hover state */
  .pv-nav-button:hover {
    transform: translateX(4px);
  }
  .pv-nav-button:hover .pv-nav-num {
    color: var(--text-primary);
  }
  .pv-nav-button:hover .pv-nav-label {
    opacity: 0.8;
  }

  /* Active state */
  .pv-nav-button[aria-current="true"] .pv-nav-num {
    color: var(--text-primary);
    font-weight: 700;
  }

  .pv-nav-button[aria-current="true"] .pv-nav-label {
    color: var(--text-primary);
    font-weight: 500;
    opacity: 1;
  }

  /* O traço indicador antigo agora é aplicado no ::before do número, 
     ou simplesmente mantemos o estilo text-based que já basta, 
     mas a regra pedia pra usar o indicador já existente. */
  .pv-nav-button::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    margin-right: 0;
    transition: width var(--transition-speed) ease, margin-right var(--transition-speed) ease;
    position: absolute;
    left: -24px;
    top: 50%;
  }

  .pv-nav-button[aria-current="true"]::before {
    width: 16px;
    margin-right: 8px;
    left: -24px;
  }

  .pv-nav-button:focus-visible, .pv-control-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
  }

  /* Controles (Setas e extras) */
  .pv-controls {
    margin-top: 4rem;
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .pv-control-btn {
    background: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
  }

  .pv-control-btn:hover:not(:disabled) {
    border-color: var(--text-primary);
  }

  .pv-control-btn:disabled {
    opacity: 0.3;
    cursor: default;
  }

  /* Spinner de Loading discreto (aparece apenas em stalls longos) */
  .pv-loading-indicator {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 20;
  }
  .pv-is-loading .pv-loading-indicator {
    opacity: 1;
  }
  @keyframes spin { 100% { transform: rotate(360deg); } }

  /* Debug Panel (Oculto por padrão) */
  #pv-debugPanel {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #4cc38a;
    font-family: monospace;
    font-size: 11px;
    padding: 15px;
    border-radius: 6px;
    z-index: 100;
    display: none;
    white-space: pre;
    line-height: 1.4;
    pointer-events: none;
  }

  /* Fallback (Reduced Motion) */
  .pv-is-fallback-transitioning #pv-heroImage {
    opacity: 0.4;
    filter: blur(4px);
  }

  


/* Mobile Presentation - Product Viewer */
.pv-m-head { display: none; }

@media (max-width: 767px) {
    .pv-container {
      flex-direction: column;
      height: 100vh;
      height: 100svh;
    }
    .pv-visual-stage { inset: 0; }

    .pv-editorial-container {
      align-items: flex-end;
      padding-left: 0;
    }

    .pv-ui-content {
      position: absolute;
      left: 0; bottom: 0;
      width: 100%;
      max-width: none;
      height: calc(100% - var(--pv-stage-h, 62.5%));
      padding: 18px 20px calc(env(safe-area-inset-bottom, 0px) + 16px);
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 0;
      border-top: 1px solid var(--line);
    }
    .pv-eyebrow, .pv-headline { display: none; }

    .pv-m-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 0; }
    .pv-m-num  { font-size: 1.75rem; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
    .pv-m-label{ font-size: 0.78rem; color: var(--text-secondary); line-height: 1.25; }

    .pv-nav-list {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: space-between;
      gap: 0;
      margin: 16px 0 0;
    }
    .pv-nav-item { flex: 1 1 0; display: flex; justify-content: center; }
    .pv-nav-button {
      gap: 0; padding: 6px 0; width: 100%; justify-content: center;
      min-height: 32px;
    }
    .pv-nav-button::before { display: none; }
    .pv-nav-label { display: none; }
    .pv-nav-num { font-size: 0.82rem; opacity: .45; transition: opacity 0.2s, font-weight 0.2s; }
    .pv-nav-button[aria-current="true"] .pv-nav-num { opacity: 1; font-weight: 700; }
    .pv-nav-button[aria-current="true"] { border-bottom: 1px solid var(--text-primary); }
    .pv-nav-button:hover { transform: none; }

    .pv-controls {
      display: flex;
      margin-top: 16px;
      justify-content: center;
      gap: 20px;
    }
    .pv-control-btn {
      width: 42px;
      height: 42px;
    }

    .is-mdebug #mDebugOverlay { display: block; }
    #debugPanel { font-size: 9.5px; padding: 8px; max-width: 62vw; top: 6px; left: 6px; }

    /* Ajuste visual para remover o vazio deixado pela altura geométrica (100svh) do Sticky Container */
    #historico-camisas-container {
      margin-top: calc(111.11vw + 185px - 100vh);
      margin-top: calc(111.11vw + 185px - 100svh);
    }
  }

  @media (max-width: 767px) and (max-height: 740px) {
    .pv-m-num { font-size: 1.5rem; }
    .pv-m-label { font-size: 0.7rem; }
    .pv-control-btn { width: 38px; height: 38px; }
    .pv-nav-list { margin: 10px 0 0; }
    .pv-controls { margin-top: 10px; }
    .pv-ui-content { padding-top: 14px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }

    #historico-camisas-container {
      margin-top: calc(111.11vw + 161px - 100vh);
      margin-top: calc(111.11vw + 161px - 100svh);
    }
  }
