/* --- Variáveis de Design --- */
:root {
  --primary-dark: #3d3d3d;
  --accent-color: #ededed;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-radius: 5px;
  --white: #ffffff;
}

/* --- Header e Navegação --- */

/* Esconder mensagem de boas-vindas e limpar busca */
#header-main .element-search .welcome-message {
  display: none;
}

/* Melhoria no botão de busca */
#header-main .element-search .btn.btn-search {
  background: var(--primary-dark);
  padding: 8px; /* Ajustado para melhor clique */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.search-inner input[type="text"] {
  padding: 8px 12px;
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
}

/* Centralização da Logo (Corrigindo o erro de left: 32rem) */
.logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo img {
  width: auto;
  max-width: 200px; /* Evita logos gigantes */
  height: auto;
}

body.pagina-home .logo img {
  max-width: 300px;
}

/* --- Elementos de Conta e Favoritos --- */

/* Em vez de usar left: 900%, usamos flexbox no container pai se possível. 
   Aqui, ajustamos para um posicionamento mais seguro. */
.favoritos {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  gap: 10px;
  position: relative;
}

.favoritos::before, 
.grid-3.grid-link-login::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.favoritos::before {
  background-image: url('https://74383.cdn.lojaquevende.com.br/static/74383/galeria/163536279750513.png');
}

.grid-3.grid-link-login::before {
  background-image: url('https://74383.cdn.lojaquevende.com.br/static/74383/galeria/163536286441741.png');
}
.element-link-login:hover .login {
    color: #000;
    filter: brightness(1.5);
}

/* --- Botões e Animações --- */

/* Componente de botão reutilizável */
.btn-buy-kit, .btn-buy {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  border: none;
}

/* Efeito de Overlay no Hover (Refatorado) */
.btn-buy-kit::before, .btn-buy::before {
  content: "";
  position: absolute;
  inset: 0; /* Substitui top, left, width, height */
  background: linear-gradient(83.2deg, rgba(255,255,255,0.2) 10.8%, rgba(0,0,0,0.3) 91.3%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: -1;
}

.btn-buy-kit:hover::before, .btn-buy:hover::before {
  transform: scaleX(1);
}

/* Forçar o Banner Principal a ser Full Width */
#nav-main .element-banner-main,
.element-banner-main .container-12,
.element-banner-main .grid-12 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.element-banner-main img {
    width: 100% !important;
    height: auto;
    display: block;
}
/* 1. EFEITO FULL WIDTH (QUEBRANDO O CONTAINER) */
.featured-link--section {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    display: flex !important;
    flex-wrap: wrap !important;
    margin-bottom: 0 !important; /* Remove espaços entre seções coladas */
    background: #fff;
    overflow: hidden;
}

/* 2. AJUSTE DAS METADES */
.featured-link--half {
    flex: 1 1 50% !important;
    width: 50% !important;
    min-height: 600px !important; /* Aumentado para impacto visual */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* 3. IMAGENS TIPO BACKGROUND */
.featured-link--half img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 4. ALTERNÂNCIA AUTOMÁTICA (Z-PATTERN) */
/* Inverte a ordem apenas nas seções pares (2ª, 4ª, etc) */
.featured-link--section:nth-of-type(even) {
    flex-direction: row-reverse !important;
}

/* --- Background Alternado (Z-Pattern) --- */

/* Seções Ímpares (1, 3, 5...) - Fundo Branco */
.featured-link--section:nth-of-type(odd) {
    background-color: #ffffff !important;
}

/* Seções Pares (2, 4, 6...) - Fundo Cinza Soft e Inversão */
.featured-link--section:nth-of-type(even) {
    background-color: #f7f7f7 !important; /* Cinza muito suave para contraste */
    flex-direction: row-reverse !important; /* Inverte imagem e texto */
}

/* Garante que o texto se destaque no fundo cinza */
.featured-link--section:nth-of-type(even) .info {
    background-color: transparent !important;
}

/* 5. ESTILIZAÇÃO DOS TÍTULOS E SUBTÍTULOS (CENTRALIZADOS) */
.featured-link--half .info {
    width: 100% !important;
    max-width: 550px !important;
    padding: 80px !important; /* Mais respiro lateral */
    text-align: center !important;
}

.featured-link--half .info h2 {
    font-family: "montserrat_bold", sans-serif;
    font-size: 3rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.featured-link--half .info p {
    font-size: 1.2rem !important;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

/* 6. RESPONSIVIDADE (MOBILE) */
@media (max-width: 1024px) {
    .featured-link--half {
        min-height: 400px !important;
    }
    .featured-link--half .info h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .featured-link--section {
        width: 100% !important;
        left: 0 !important;
        margin-left: 0 !important;
    }
    
    /* No mobile, voltamos à ordem padrão: imagem em cima, texto embaixo */
    .featured-link--section:nth-of-type(even) {
        flex-direction: column !important;
    }
    
    .featured-link--half {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-height: 300px !important;
    }
    
    .featured-link--half .info {
        padding: 40px 20px !important;
    }
}

/* Centralização Inteligente */
.logo {
    display: flex;
    justify-content: center;
    width: 100%;
    position: static !important; /* Remove qualquer relative/absolute antigo */
}

.logo img {
    margin: 0 auto;
    max-width: 250px; /* Ajuste o tamanho conforme necessário */
}

/* Ajuste do container geral para não "estourar" a lateral */
.container-12 {
    max-width: 1200px; /* Largura padrão confortável */
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Tabelas de Frete --- */
table#product-shipping {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--primary-dark);
}

table#product-shipping th {
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px;
  font-weight: bold;
}

table#product-shipping td {
  background: #1a1a1a;
  color: var(--white);
  padding: 10px;
  border-top: 1px solid #333;
}

/* --- Footer --- */
#footer-main, #footer-main .copyright {
  background-color: #1a1a1a;
  color: var(--white);
}

.copyright img {
    width: 70px;
}

#footer-main .element-newsletter .btn {
  background: #3a3a3a;
  transition: filter 0.3s;
}

#footer-main .element-newsletter .btn:hover {
  filter: brightness(1.3);
}

/* --- Responsividade (Media Queries) --- */

@media (max-width: 1024px) {
  .logo img {
    max-width: 150px;
  }
  
  .section-etapa {
    grid-template-columns: 1fr; /* Stack em mobile */
    left: 0;
    padding: 0 15px;
  }
  
  .ranking-table-div {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Limpeza de Filtros de Logos */
.letspoke, .sumbum, .logo-atmosfera, .logo-osierra {
  filter: grayscale(1);
  transition: filter 0.3s ease;
  opacity: 0.8;
}

.letspoke:hover, .sumbum:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* 1. CENTRALIZAÇÃO E AJUSTE DO BLOCO DE TEXTO */
/* Usamos seletores mais fortes para garantir que o tema não sobrescreva */
#content-main .featured-link--section .featured-link--half .info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 40px !important;
    box-sizing: border-box;
}

/* 2. TÍTULOS (Ex: "Filipe Toledo Surf School") */
/* Verifiquei que esses títulos geralmente estão em tags <h2> ou <h3> dentro da .info */
#content-main .featured-link--section .info h2,
#content-main .featured-link--section .info .title {
    font-size: 32px !important; /* Tamanho maior para destaque */
    font-weight: 900 !important; /* Bem negrito */
    text-transform: uppercase !important;
    color: #000 !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
    font-family: 'Montserrat', sans-serif; /* Fonte padrão da loja */
}

/* 3. SUBTÍTULOS / DESCRIÇÃO */
/* Geralmente em tags <p> ou <span> */
#content-main .featured-link--section .info p,
#content-main .featured-link--section .info .description {
    font-size: 18px !important; /* Maior que o padrão 14px */
    color: #444 !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 450px !important; /* Evita que o texto espalhe muito */
    margin-top: 0 !important;
}

/* 4. BOTÕES (Caso existam nessas seções) */
#content-main .featured-link--section .info a.button {
    margin-top: 20px !important;
    background: #000 !important;
    color: #fff !important;
    padding: 12px 30px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: 0.3s;
}

#content-main .featured-link--section .info a.button:hover {
    background: #333 !important;
}

/* --- Vídeo Full Width --- */

/* Localizando o container do vídeo (geralmente .element-video ou similar) */
.element-video, 
.video-wrapper,
.video-container {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    padding: 0 !important;
    line-height: 0; /* Remove espaço extra abaixo do vídeo */
}

.element-video iframe, 
.video-wrapper iframe,
.video-container iframe {
    width: 100vw !important;
    height: 56.25vw !important; /* Proporção 16:9 perfeita */
    max-height: 80vh; /* Evita que o vídeo fique alto demais em telas UltraWide */
    border: none !important;
}

/* Ajuste para mobile para não criar rolagem lateral infinita */
@media (max-width: 768px) {
    .element-video, .video-wrapper {
        width: 100% !important;
        left: 0 !important;
        margin-left: 0 !important;
    }
    .element-video iframe {
        height: 56.25vw !important;
    }
}

/* Remove respiros entre blocos full-width para efeito contínuo */
#content-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow-x: hidden; /* Segurança contra barras de rolagem horizontais */
}

.section-3, .featured-link--section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* --- Filipe Toledo (CÓDIGO ORIGINAL RESTAURADO) --- */
.perfil {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

img.perfil-img {
  margin-left: 1rem;
  width: 32.5%;
}

.gal-champions {
  display: flex;
  flex-direction: row;
  width: 23.5%;
  margin-bottom: 3rem;
}

.gal-champions img {
  margin-left: 1rem;
}

.gal-champions img:hover {
  transform: scale(1.5);
}

.perfil-social {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 15px;
  margin-left: 4rem;
}

.perfil-title p {
  position: relative;
  top: -10rem;
  right: -22rem;
  width: 69%;
  font-size: 14px;
}

.carreira {
  display: flex;
  flex-direction: row;
  padding-bottom: 42rem;
  top: 40rem;
  position: relative;
  justify-content: center;
  align-items: center;
}

.titles-toledo img {
  width: 90.5%;
}

.ranking-filipe-toledo {
  display: flex;
  flex-direction: column;
  position: relative;
}

.ranking-filipe-toledo img {
  width: 90.5%;
}

.pagina-personalizada .header-box-content .title-secundary, .pagina-produto .header-box-content .title-secundary {
  text-align: center;
}

ul.perfil-list {
  left: -41px;
  position: relative;
}

.perfil-list {
  font-weight: bold;
  text-transform: uppercase;
}

.perfil-list span {
  font-weight: 400;
  text-transform: none;
}

/* --- REGRAS DA GALERIA QUE ESTAVAM FALTANDO --- */
.gallery-toledo {
  position: absolute;
  width: 100%;
  height: 13.8%;
  max-height: 47vw;
  overflow: hidden;
}

.gallery__stream__toledo {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
}

.gallery__item__toledo {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: 1s all ease;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 5px;
}

.gallery__item__toledo:nth-child(1) { left: 0; z-index: 1; transform: translateX(-100%) scale(0.8); }
.gallery__item__toledo:nth-child(2) { left: 0; z-index: 2; transform: translateX(-50%) scale(0.8); }
.gallery__item__toledo:nth-child(3) { left: 50%; z-index: 4; transform: translateX(-50%) scale(1); }
.gallery__item__toledo:nth-child(4) { left: 100%; z-index: 2; transform: translateX(-50%) scale(0.8); }
.gallery__item__toledo:nth-child(n + 5) { left: 100%; z-index: 1; transform: scale(0.8); }

.gallery__prev__toledo, .gallery__next__toledo {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50%;
  height: 100%;
  transform: translateX(-50%) translateY(-50%) scale(0.8);
  cursor: pointer;
}

.gallery__prev__toledo { left: 0; top: 26rem !important; }
.gallery__next__toledo { left: 100%; top: 26rem !important; }

/* Backgrounds toledo */
.bg-toledo-1 { background-image: url(https://74383.cdn.lojaquevende.com.br/static/74383/galeria/165582397351938.jpg); }
.bg-toledo-2 { background-image: url(https://74383.cdn.lojaquevende.com.br/static/74383/galeria/165582397561794.jpg); }
.bg-toledo-3 { background-image: url(https://74383.cdn.lojaquevende.com.br/static/74383/galeria/165582392797222.jpg); }
.bg-toledo-4 { background-image: url(https://74383.cdn.lojaquevende.com.br/static/74383/galeria/165582393265790.jpg); }
.bg-toledo-5 { background-image: url(https://74383.cdn.lojaquevende.com.br/static/74383/galeria/165582394042565.jpg); }
.bg-toledo-6 { background-image: url(https://74383.cdn.lojaquevende.com.br/static/74383/galeria/165582394394391.jpg); }
.bg-toledo-7 { background-image: url(https://74383.cdn.lojaquevende.com.br/static/74383/galeria/165582395097285.jpg); }
.bg-toledo-8 { background-image: url(https://74383.cdn.lojaquevende.com.br/static/74383/galeria/165582395664124.jpg); }
.bg-toledo-9 { background-image: url(https://74383.cdn.lojaquevende.com.br/static/74383/galeria/165582396039460.jpg); }
.bg-toledo-10 { background-image: url(https://74383.cdn.lojaquevende.com.br/static/74383/galeria/165582396626414.jpg); }

h2.carreira-title {
  display: flex;
  justify-content: center;
  font-size: 2rem;
}

.ranking-table-div-toledo {
  display: flex;
  flex-direction: row;
  gap: -2rem;
  margin: 5rem 0 0 0;
}

.list-toledo {
  width: 1000px;
  font-size: 14px;
  top: -1.9rem;
  position: relative;
}

h2.list-title-toledo {
  display: flex;
  justify-content: center;
  font-size: 2rem;
}

h2.ranking-wsl {
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 2rem;
}

.patro-toledo {
  text-decoration: none;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 2rem 0rem 2rem 10rem;
  background: #bdbdbd;
}

.title-patro-toledo {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.pagina-personalizada.pagina-filipe-toledo.aparenciapaginas.aparenciapaginas-view .patro-filipe-toledo ul li img.bancodobrasil {
  width: 120px;
  margin-left: 2rem;
}

.title-web-series {
  padding-top: 38rem;
}

.web-series-toledo {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 1440px) {
  .carreira { display: flex; flex-direction: row; padding-bottom: 45rem; top: 42rem; position: relative; justify-content: center; align-items: center; }
}

@media (min-width: 2000px) {
  .carreira { display: flex; flex-direction: row; padding-bottom: 62rem; top: 59rem; position: relative; justify-content: center; align-items: center; }
}

@media (min-width: 2400px) {
  .carreira { display: flex; flex-direction: row; padding-bottom: 79rem; top: 75rem; position: relative; justify-content: center; align-items: center; }
  .title-web-series { padding-top: 45rem; }
  .gallery__prev__toledo i.ph-arrow-left { display: flex; position: relative; left: 4.5rem; top: 51rem; }
  .gallery__next__toledo i.ph-arrow-right { position: relative; top: 51rem; right: -9.6rem; }
}