/* Estilos gerais para a loja */
@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans+Pinstripe:ital@0;1&family=Bungee+Hairline&family=Do+Hyeon&family=Jolly+Lodger&family=Martian+Mono:wght@100..800&family=Quicksand:wght@300..700&family=Roboto+Flex:opsz,wght@8..144,100..1000&family=Victor+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Jolly+Lodger&family=Quicksand:wght@300..700&family=Roboto+Flex:opsz,wght@8..144,100..1000&family=Staatliches&family=Victor+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Atma:wght@300;400;500;600;700&family=Bahiana&display=swap');

@font-face {
  font-family: 'Stretch Pro';
  src: url('../fonts/StretchPro.otf') format('opentype');

}

:root {
    --header-offset: 0px;
    --topbar-height: 85px; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #212529;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* O container geral que envolve as duas barras */
.shop-topbar {
    position: sticky;
    min-width: 100vw;
    top: 0;
    z-index: 1050;    
    display: flex;
    flex-direction: column; /* Empilha as duas barras verticalmente */
    align-items: center;
    transform: translateY(var(--header-offset));
    transition: grid-template-columns 0.4s ease-in-out;
    transition: transform 0.3s ease-in-out;
}

.shop-topbar.is-hidden {
    /* Move a barra 100% da sua própria altura para CIMA, escondendo-a */
    transform: translateY(-100%);
}

.topbar-top {
    display: flex;
    align-items: center; /* Alinha verticalmente os filhos (logo e .topbar-right) */
    justify-content: space-between; /* Empurra os filhos para as extremidades */
    background-color: #f1f1f1;
    box-sizing: border-box;
    width: 100%;
    height: 35px;
    padding: 0 4.5em 0 3.5em;
    font-family: 'roboto flex', sans-serif;
}

.logo-top {
    height: 24px; /* Usar 'height' em vez de 'max-height' para consistência */
    display: block;
}

/* Container dos elementos da direita na barra superior */
.topbar-top > .topbar-right {
    display: flex;
    /* --- A CORREÇÃO PRINCIPAL ESTÁ AQUI --- */
    /* Alinha os filhos (os botões e o dropdown) pelo centro vertical */
    align-items: center; 
    gap: 10px; /* Adiciona um espaço entre os dois blocos */
}

/* Bloco de links "Find a Store | Help" */
.topbar-top-buttons {
    display: flex;
    align-items: center; /* Garante alinhamento interno */
    gap: 10px;
}

.topbar-top-buttons a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75em;
}

/* Container do dropdown do perfil */
.dropdown-container-top {
    display: flex;
    align-items: center; /* Garante alinhamento interno */
    gap: 8px; /* Espaço entre o "Olá, ..." e o ícone */
    position: relative; /* Contexto para o painel do dropdown */
}

.dropdown-container-top span {
    font-weight: 600;
    font-size: 0.8em;
}

.dropdown-container-top a svg {
    width: 22px;
    height: 22px;
    stroke: #000000; /* Use 'stroke' para ícones de contorno */
    stroke-width: 2; /* Espessura da linha */
    fill: none;      /* Garante que o interior seja transparente */
    transition: stroke 0.2s ease;
    display: block; /* Remove espaços extra */
}

.dropdown-container-top a:hover svg {
    stroke: #808080;
}

.dropdown-container-top {
    display: flex;
    flex-direction: row;
    width: auto;
    position:relative;
}

/* Barra branca inferior com a navegação */
.topbar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    width: 100%;
    padding: 0 4em 0 3em;
    box-sizing: border-box;
    background-color: #ffffff;
    position: relative; /* Adicione esta linha */
}


.logo-desktop,
.logo-mobile {
    max-height: 30px; /* A sua regra de altura original */
    display: block;
}


.logo-mobile {
    display: none;
}

/* Navegação (no centro) */
.topbar-bottom nav {
    position: absolute; /* Tira o elemento do fluxo normal */
    left: 50%; /* Move o início do elemento para o centro da tela */
    transform: translateX(-50%); /* Puxa o elemento para a esquerda pela metade da sua própria largura */
    
}
.topbar-bottom .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Centraliza os links dentro do nav */
    gap: 21px;
}

.topbar-bottom .nav-links a {
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  color: #000000;
  font-weight: 700;
  font-family: 'roboto flex', monospace;
  letter-spacing: 1px;
  font-size: 0.85em;
  text-transform: capitalize;
}

.topbar-bottom .nav-links a:hover {
  transform: translateY(-5px);
}

.topbar-bottom .nav-links a::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 5px;
  background-color: #000000;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.topbar-bottom .nav-links a:hover::before {
  transform: scaleY(0.3);
}

/* Container dos itens da direita */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


.input-container {
  display: flex;
  width: 200px;
  max-height: 35px;
  position: relative;
}

.icon {
  position: absolute;
  right: 10px;
  top: calc(50% + 5px);
  transform: translateY(calc(-50% - 5px));
}

.input {
  width: 100%;
  padding: 10px;
  transition: .2s linear;
  border: 1px solid rgb(233, 233, 233);
  font-size: 14px;
  letter-spacing: 1px;
}

.input:focus {
  outline: none;
  border: 0.3px solid black;
  box-shadow: -4px -4px 0px black;
}

.input-container:hover > .icon {
  animation: anim 1s linear infinite;
}

@keyframes anim {
  0%,
  100% {
    transform: translateY(calc(-50% - 5px)) scale(1);
  }

  50% {
    transform: translateY(calc(-50% - 5px)) scale(1.1);
  }
}

/* Ícones de Ação */
.topbar-icons {
    display: flex;
    align-items:baseline;
    gap: 15px;
}

.topbar-icons a svg {
    width: 22px;
    height: 22px;
    fill: #000000;
    stroke-width: 3px;
    transition: fill 0.2s ease;
}

.topbar-icons a:hover svg {
    fill: #808080;
}

.topbar-icons > .dropdown-container,
.topbar-icons > .cart-icon-link {
    display: inline-flex;  /* Trata cada ícone como um bloco em linha */
    vertical-align: middle; /* Alinha os ícones pelo seu ponto central vertical */
    align-items: center; /* Garante que o SVG dentro também se centre */
}

.svg-profile {
    stroke-width: 2px;
}


/* =================================================================== */
/* ===               ESTILOS DO CONTEÚDO                           === */
/* =================================================================== */

.shop-content {
    flex-grow: 1;
}

.dropdown-container {
    position: relative; /* Cria o contexto para o posicionamento do painel */
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 15px); /* Posiciona abaixo do ícone com um respiro */
    right: 0;
    width: 320px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    z-index: 1100;
    
    /* Começa escondido */
    display: none; 
}

.dropdown-panel.show {
    display: block; /* Classe que o JS adiciona para mostrar */
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-header h4 {
    margin: 0;
    font-size: 1em;
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
}
.dropdown-list li a:hover {
    background-color: #f8f9fa;
}

.dropdown-list li img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
}

.dropdown-list .empty-message {
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 0.9em;
}

.profile-list a {
    text-decoration: none;
    color: #333;
    padding: 12px 15px;
    display: block;
    border-radius: 6px;
}
.profile-list a:hover {
    background-color: #f8f9fa;
}

.profile-login-prompt {
    padding: 15px;
}
.profile-login-prompt p {
    font-size: 0.9em;
    color: #6c757d;
    margin: 0 0 15px 0;
    text-align: center;
}

/* --- Estilos para as Notificações Toast --- */
#toast-container {
    position: fixed; /* Fica fixo na tela mesmo com scroll */
    top: 20px;
    right: 20px;
    z-index: 9999; /* Garante que fique por cima de tudo */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-notification {
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(100%); /* Começa fora da tela, à direita */
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Animação suave */
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0); /* Entra na tela */
}

/* Cores para diferentes tipos de notificação */
.toast-notification.success {
    background-color: #28a745; /* Verde */
}
.toast-notification.error {
    background-color: #dc3545; /* Vermelho */
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

a.cart-icon-link .cart-icon-wrapper svg {
    /* MUDANÇA: Aumente estes valores para o tamanho desejado */
    width: 20px !important;  /* Exemplo: 32px */
    height: 22px !important; /* Exemplo: 32px */
    stroke-width: 5px;
}

/* O contador de itens */
.cart-counter {
    position: absolute; /* Posicionamento absoluto em relação ao wrapper */
    top: 65%; /* Ajuste fino da posição vertical */
    left: 49%;
    transform: translate(-50%, -50%); /* O truque para a centralização perfeita */

    color: #333;
    font-size: 0.6em;
    font-weight: bold;
    padding: 0;
    line-height: 1; /* Garante que não haja altura extra */
}

/* --- ESTILOS PARA O MENU HAMBÚRGUER --- */

/* 1. Botão Hambúrguer (escondido por padrão em telas grandes) */
.hamburger-button {
    display: none; /* Escondido no desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* Garante que fique acima de outros elementos */
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 10px;
}

/* 2. Painel de Navegação Mobile */
.mobile-nav {
    /* Escondido fora da tela por padrão */
    position: fixed;
    top: 0;
    right: 0;
    width: 280px; /* Largura do menu */
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    
    /* A mágica da animação */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    
    z-index: 1050; /* Abaixo do botão, mas acima do resto */
    padding-top: 80px; /* Espaço para não ficar atrás da topbar */
}

/* Classe que será adicionada pelo JavaScript para mostrar o menu */
.mobile-nav.is-open {
    transform: translateX(0);
}

/* Estilo dos links dentro do menu mobile */
.mobile-nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
}

.mobile-nav .nav-links a {
    font-size: 1.2rem;
    padding: 1rem 0;
}

/* --- ESTILOS PARA A BUSCA EM OVERLAY --- */

/* 1. Botão da Lupa na Topbar */
.search-toggle-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-toggle-button svg {
    width: 22px; /* Ajuste o tamanho do ícone se necessário */
    height: 22px;
}

/* 2. O Painel de Busca (Overlay) */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Fundo branco semi-transparente */
    backdrop-filter: blur(5px); /* Efeito de desfoque no fundo (suportado em navegadores modernos) */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Começa invisível e com uma animação de fade */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1200; /* Garante que fique acima de tudo */
}

/* Classe que será adicionada pelo JavaScript para mostrar o painel */
.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* 3. O Formulário dentro do Overlay */
.search-form-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.search-input-overlay {
    width: 100%;
    max-width: 500px;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid #333;
    background: transparent;
    text-align: center;
    padding: 0.5rem;
}
.search-input-overlay:focus {
    outline: none;
}

.search-submit-overlay {
    /* Reutilize o estilo do seu botão .slide-cta se desejar */
    background-color: #000;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 35px;
    font-size: 1rem;
    cursor: pointer;
}

/* 4. O Botão de Fechar */
.search-close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}

/* Regras de alta especificidade para garantir que a barra correta seja exibida */
.shop-topbar .topbar-bottom .topbar-mobile {
    display: none;
}

.shop-topbar .topbar-bottom .topbar-desktop {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}


/* =================================================================== */
/* ===           ESTILOS CORRIGIDOS PARA O FOOTER (VERTICAL)       === */
/* =================================================================== */

/*  Scroll de texto infinito */

.scrolling_text {
    width: 100%;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    background-color: #000000;
    user-select: none;
}

.scrolling_text_div {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    color: #727377;
    animation: animate_text 60s linear infinite;
}

.scrolling_text_div span {
    margin: 0 20px;
    font-family: 'roboto flex';
    font-style: italic;
}

@keyframes animate_text {
    from {
      transform: translate3d(0, 0, 0);
    }
    to {
      transform: translate3d(-100%, 0, 0);
    }
}

/* O container principal do footer */
.shop-footer {
    background-color: #ffffff;
    color: #000000;
    padding: 0px 20px 30px 20px; /* Aumenta o padding superior */
    margin-top: auto;
    
    /* MUDANÇA PRINCIPAL: Usa flexbox para empilhar os elementos */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza tudo horizontalmente */
    gap: 40px; /* Espaço entre as seções (logo, links, info legal) */
}

/* O logo no topo */
.logo-footer {
    width: 50px;
    height: auto;
    margin: 60px auto 60px auto;
}

/* O container para as colunas de links */
.footer-links-grid {
    display: flex;
    font-family: 'roboto flex';
    flex-wrap: wrap; /* Permite que as colunas quebrem em telas menores */
    justify-content: center; /* Centraliza as colunas de links */
    gap: 50px; /* Espaço entre as colunas de links */
    width: 100%;
    max-width: 1000px;
    margin-left: 3.3em;
}

.footer-logo-column {
    display: flex;
}

.footer-links-column {
    text-align: left; /* Centraliza o texto dentro de cada coluna */
}

.footer-links-column .column-title {
    font-weight: 800;
    font-size: 1em;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 20px;
    display: block;
    max-width: 200px;   
}

.footer-links-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espaço entre os links */
}

.footer-links-column a {
    text-decoration: none;
    color: #000000;
    transition: color 0.2s ease;
    font-size: 0.8em;
}

.footer-links-column a:hover {
    color: #181818;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin: 20px 0;
    width: 100%;
    max-width: 1000px;
}

.social-icons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px; /* Espaço entre os ícones */
}

.social-icons-list a {
    display: block;
    color: #000000; /* Cor padrão dos ícones */
    transition: all 0.2s ease-in-out;
}

.social-icons-list a:hover {
    color: #2b2b2b; /* Cor ao passar o rato por cima */
    transform: translateY(-3px); /* Efeito de "levantar" o ícone */
}

.social-icons-list svg {
    width: 28px;
    height: 28px;
    fill: currentColor; /* O SVG irá herdar a cor do seu link pai 'a' */
}

.footer-policy-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permite que os links quebrem para a linha de baixo em telas menores */
    gap: 10px 15px; /* 10px de espaço vertical, 15px de espaço horizontal */
    padding: 20px 0;
    width: 100%;
    max-width: 1000px;
    font-family: 'roboto flex';
    font-weight: 800;
}

.footer-policy-links a {
    color: #000000; /* Mesmo cinza claro dos outros links */
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.footer-policy-links a:hover {
    color: #2b2b2b;
    text-decoration: underline;
}

/* A "magia" do separador automático */
.footer-policy-links a:not(:last-child)::after {
    content: '|';
    margin-left: 15px; /* Espaço entre o link e o separador */
    color: #000000; /* Cor do separador */
    pointer-events: none; /* Garante que o separador não seja clicável */
}


/* A barra inferior com informações legais e direitos autorais */
.footer-bottom {
    width: 100%;
    max-width: 1000px;
    padding-top: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.8em;
    color: #000000;
}

.legal-address {
    max-width: 70%; /* Evita que o texto ocupe a linha toda */
    margin: 0 auto 10px auto;
}

@media (max-width: 768px) {

    .topbar-top {
        display: none;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .input-container {
        display: none;
    }

    .shop-topbar .topbar-bottom .topbar-desktop {
        display: none;
    }

    .shop-topbar .topbar-bottom .topbar-mobile {
        display: flex; /* Mostra como um flex container */
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .footer-main-content {
        grid-template-columns: 1fr; /* Muda para uma única coluna */
        text-align: center; /* Centraliza todo o conteúdo */
    }
    
    .footer-logo-column {
        display: flex;
        order: -1; /* Move o logo para o topo */
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-links-grid {
        justify-content: center; /* Centraliza as colunas de links */
        gap: 40px;
    }

    .footer-links-column {
        align-items: center; /* Centraliza os links dentro de cada coluna */
    }

    .footer-bottom {
        flex-direction: column; /* Empilha as informações legais e o copyright */
        gap: 15px;
        text-align: center;
    }

    .legal-address {
        max-width: 100%;
    }
}