:root {
  --main-color: #000;
  --bg: #fff;
  --bg-alt: #f9f9f9; /* Nova cor para separação */
  --border: 1px solid rgba(0,0,0,0.08);
  font-size: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  padding-top: 210px; 
  background-color: var(--bg);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: var(--border);
  z-index: 1000;
}

.top-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 5% 1rem; 
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo img {
  height: 100px; 
  width: auto;
  display: block;
}

.location { font-size: 1.2rem; font-weight: 600; color: #000; }
.header-right { display: flex; justify-content: flex-end; }
.icons { display: flex; gap: 2rem; }
.icons i { width: 22px; height: 22px; stroke: #000; stroke-width: 1.2px; }

.navbar {
  display: flex;
  justify-content: center;
  gap: 6rem; 
  padding: 1rem 0 2.5rem; 
  align-items: center;
}

.navbar a {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

/* --- CAPA --- */
.home { width: 100%; padding: 0 4%; }
.home-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  height: 550px;
  overflow: hidden;
  background: #f9f9f9;
}
.background-img { width: 100%; height: 100%; object-fit: cover; }
.btn-banner {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 1.5rem 4rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- SECÇÕES GERAIS --- */
.bluebird-section {
  max-width: 100%; /* Alterado para permitir fundos totais */
  margin: 0 auto;
  padding: 8rem 4%;
  text-align: center;
}

.section-content {
  max-width: 1400px;
  margin: 0 auto;
}

.bluebird-header {
  margin-bottom: 5rem;
}

.bluebird-header h1 {
  font-size: 4.2rem;
  font-family: Georgia, serif;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #000;
}

.bluebird-header p {
  font-size: 1.5rem;
  color: #333;
  max-width: 850px;
  margin: 0 auto;
}

/* --- MOSAICO (ESTILO DE VIDA) --- */
.mosaic-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.mosaic-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.mosaic-img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  margin-bottom: 2rem;
}

.mosaic-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mosaic-item:hover .mosaic-img img { transform: scale(1.05); }

.mosaic-text h3 {
  font-size: 2.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  min-height: 5rem;
}

.mosaic-text p {
  font-size: 1.35rem;
  color: #666;
  margin-bottom: 2.5rem;
  min-height: 4.5rem;
  line-height: 1.5;
}

.btn-black {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

/* --- SECÇÃO DE PRODUTOS (COM SEPARAÇÃO) --- */
.products-section {
  background-color: var(--bg-alt); /* Cor de fundo para separar */
  border-top: 1px solid rgba(0,0,0,0.05);
}

.destaques-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 3rem; 
  max-width: 1400px;
  margin: 0 auto;
}

.produto-card { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  background: #fff; /* Cartões brancos sobre fundo cinza */
  padding: 2rem;
  transition: transform 0.3s ease;
}

.produto-card:hover {
  transform: translateY(-5px);
}

.produto-img { width: 100%; aspect-ratio: 1/1; overflow: hidden; margin-bottom: 2rem; }
.produto-img img { width: 100%; height: 100%; object-fit: cover; }

.produto-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  min-height: 4rem;
}

.produto-card p {
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 2rem;
}

.btn-ver-mais {
  background: #000;
  color: #fff;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .mosaic-container, .destaques-grid { grid-template-columns: repeat(2, 1fr); }
  body { padding-top: 180px; }
}

@media (max-width: 600px) {
  .mosaic-container, .destaques-grid { grid-template-columns: 1fr; }
}
/* --- ESTILOS PARA A NOVA SEÇÃO DE RELÓGIOS --- */
.top-relogios-grid { 
  display: grid; 
  grid-template-columns: repeat(6, 1fr); 
  gap: 1.5rem; 
  margin-top: 4rem; 
}
/* --- ESTILOS TOP RELÓGIOS --- */
.top-relogios-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 colunas como na imagem */
  gap: 1rem;
  max-width: 1400px;
  margin: 4rem auto 0;
}

.relogio-item {
  text-align: left; /* Alinhamento à esquerda conforme a imagem */
}

.relogio-img {
  width: 100%;
  aspect-ratio: 1/1;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.relogio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.relogio-info .marca {
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  margin-right: 10px;
}

.color-options {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #ddd;
}

.relogio-info .nome {
  font-size: 1.2rem;
  color: #333;
  margin: 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.relogio-info .preco {
  font-size: 1.3rem;
  font-weight: 600;
}
/* Layout para 3 banners com proporção normal (original) */
.brands-three-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px; /* Mantém a consistência com o resto do site */
}

.brands-three-grid .mosaic-img {
  /* Volta à proporção original do seu código: 1 de largura por 1.15 de altura */
  aspect-ratio: 1 / 1.15; 
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.brands-three-grid .mosaic-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
}

/* Ajuste para tablets e telemóveis */
@media (max-width: 1024px) {
  .brands-three-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .brands-three-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Responsividade para tablets e telemóveis */
@media (max-width: 1024px) {
  .top-relogios-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .top-relogios-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Estilo para o Pop-up */
/* --- LOGIN POPUP --- */
.modal {
  display: none; 
  position: fixed;
  z-index: 9999; /* Garante que fica à frente de tudo */
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #fff;
  margin: 15vh auto;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-modal {
  position: absolute;
  right: 20px; top: 10px;
  font-size: 30px;
  cursor: pointer;
  color: #333;
}

.modal-content h2 { font-family: Georgia, serif; font-size: 2.4rem; margin-bottom: 25px; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-size: 1.2rem; font-weight: 600; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; font-size: 1.4rem; }

/* --- ABAS DE AUTENTICAÇÃO (LOGIN/REGISTO) --- */
.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 1px solid #ddd;
}

.auth-tab {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.auth-tab:hover {
  color: #000;
}

.auth-tab.active {
  color: #000;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
}

/* Formulários de autenticação */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

/* Link de alternância entre formulários */
.auth-link {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #666;
}

.auth-link a {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.auth-link a:hover {
  color: #333;
}

/* Mensagens de erro e sucesso */
.alert {
  padding: 12px 15px;
  margin-bottom: 20px;
  font-size: 1.2rem;
  border-radius: 4px;
}

.alert-error {
  background-color: #fee;
  color: #c00;
  border: 1px solid #fcc;
}

.alert-success {
  background-color: #efe;
  color: #060;
  border: 1px solid #cfc;
}

/* Ajustes para o modal com abas */
.modal-content {
  max-width: 420px;
}

.modal-content h2 {
  display: none; /* Esconder o título antigo, agora temos as abas */
}

/* =========================================
   FOOTER PREMIUM (HARMONIOSO E BEM DISTRIBUÍDO)
   ========================================= */
.site-footer {
  background-color: #080808; /* Preto super elegante e profundo */
  color: #fff;
  padding: 7rem 0 0 0; 
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px; /* Mais estreito para alinhar perfeitamente no centro */
  margin: 0 auto;
  padding: 0 4%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* 1ª coluna maior, as outras duas normais */
  gap: 5rem; /* Espaço para as colunas não ficarem coladas à esquerda */
}

.footer-col h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2.5rem;
  color: #fff;
}

.footer-col p {
  color: #999; /* Cinza requintado */
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  max-width: 90%; 
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 1.2rem;
}

.footer-col ul li a {
  color: #999;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Redes Sociais Livres (sem o círculo) */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  display: inline-flex;
  color: #fff;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.social-links a i {
  width: 24px;
  height: 24px;
}

/* Rodapé Inferior (Copyright) */
.footer-bottom {
  max-width: 1200px; 
  margin: 5rem auto 0;
  padding: 2.5rem 4%;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Linha divisória muito subtil e luxuosa */
  text-align: left;
  color: #666;
  font-size: 0.95rem;
}

/* Responsividade do Footer para Telemóveis */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .footer-col p { margin: 0 auto 1.5rem; }
  .social-links { justify-content: center; }
  .footer-bottom { text-align: center; }
}

/* Responsividade (Telemóveis e Tablets) */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr); /* Passa a 2 colunas no tablet */
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr; /* Passa a 1 coluna no telemóvel */
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom {
    text-align: center;
  }
}

/* --- BOTÕES DE FILTRO DE GÉNERO --- */
.gender-filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 2.5rem; /* Espaço entre o texto e os botões */
  margin-bottom: 1rem;
}

.gender-btn {
  display: inline-block;
  padding: 8px 30px;
  background-color: #fff;
  border: 1px solid #ddd; /* Borda cinza suave por defeito */
  border-radius: 6px;     /* Cantos arredondados */
  color: #333;
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.gender-btn:hover {
  border-color: #000;
}

/* Estilo para o botão ativo (ex: Mulher na imagem) */
.gender-btn.active {
  border-color: #000;
  color: #000;
  font-weight: 500;
}
/* --- BOTÃO ADMIN --- */
/* --- BOTÃO ADMIN --- */
.navbar .btn-admin {
    display: inline-block;
    border: 2px solid #333;      /* Borda visível */
    padding: 5px 15px;           /* Espaçamento interno */
    border-radius: 4px;          /* Cantos arredondados */
    margin-left: 20px;           /* Afastar do botão Loja */
    
    font-size: 1.3rem;           /* Tamanho da letra igual aos outros */
    font-weight: 500;
    color: #333; 
    text-decoration: none;
    vertical-align: middle;      /* Alinhamento */
    position: relative;
    top: -2px;                   /* Ajuste fino de altura */
}

.navbar .btn-admin:hover {
    background-color: #333;
    color: #fff;
}
/* =========================================
   ESTILOS DO PAINEL DE ADMINISTRAÇÃO
   ========================================= */

/* Contentor Principal */
.admin-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.admin-title h1 {
    font-size: 2.4rem;
    font-weight: 300; /* Letra fina e elegante */
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.admin-subtitle { color: #888; font-size: 1.2rem; margin-top: 5px; }

/* Cartões do Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.dash-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-radius: 8px;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #000;
}

.dash-icon { font-size: 3rem; margin-bottom: 15px; display: block; }
.dash-title { font-size: 1.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.dash-desc { color: #888; font-size: 1.1rem; margin-top: 5px; }

/* Tabelas Elegantes */
.admin-table-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f9f9f9;
    padding: 15px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    border-bottom: 2px solid #eee;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    color: #444;
}

.admin-table tr:hover { background-color: #fafafa; }

/* Botões de Ação Pequenos */
.btn-action {
    padding: 5px 10px;
    font-size: 1.1rem;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 5px;
    font-weight: 500;
}
.btn-action.edit { background: #f0f0f0; color: #333; }
.btn-action.edit:hover { background: #e0e0e0; }
.btn-action.delete { background: #fff0f0; color: #d00; }
.btn-action.delete:hover { background: #ffe0e0; }
/* --- SECÇÃO SOBRE A LOJA (CORRIGIDO) --- */
.about-hero-section {
    width: 100%;
    background-color: #fff; /* Fundo branco limpo */
    padding: 80px 20px;     /* Espaçamento em cima e em baixo */
    box-sizing: border-box;
}

.about-wrapper {
    max-width: 1200px;      /* Largura máxima para não esticar demasiado */
    margin: 0 auto;         /* Centra tudo no meio do ecrã */
    display: flex;          /* Mete a imagem e o texto lado a lado */
    align-items: center;    /* Alinha verticalmente ao centro */
    justify-content: space-between;
    gap: 60px;              /* Espaço entre imagem e texto */
}

/* --- Imagem --- */
.about-image-container {
    flex: 1;                /* Ocupa metade do espaço */
    height: 450px;
    box-shadow: 20px 20px 0px #f2f2f2; /* Sombra decorativa elegante */
    border-radius: 2px;
    overflow: hidden;
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Garante que a imagem preenche o quadrado */
    display: block;
}

/* --- Texto --- */
.about-content-container {
    flex: 1;                /* Ocupa a outra metade */
    padding-right: 20px;
}

.about-title {
    font-family: 'Georgia', serif; /* Fonte clássica */
    font-size: 3.5rem;
    color: #000;
    margin-bottom: 10px;
    line-height: 1;
}

.about-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 30px;
    font-weight: 600;
}

.about-text-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;    /* Texto justificado fica mais elegante */
}

.about-decoration-line {
    width: 60px;
    height: 3px;
    background-color: #000; /* Linha preta decorativa */
    margin-top: 30px;
}

/* --- Animação Fade In --- */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   REVISÃO LUXO: MENU HORIZONTAL FLUIDO (LINHA 861 EM DIANTE)
   ============================================================ */

html, body {
    overflow-x: hidden; /* Garante que o site não "dança" */
    width: 100%;
}

@media (max-width: 768px) {
    /* 1. HEADER: Muito limpo e focado no Logo */
    .top-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 1rem 0 !important;
        border-bottom: 1px solid #f2f2f2;
    }

    .location { font-size: 0.9rem !important; color: #999 !important; }

    .logo img {
        height: 42px !important;
        margin: 5px 0 !important;
    }

    .header-right {
        justify-content: center !important;
        width: 100%;
        font-size: 1.1rem !important;
    }

    /* 2. NAVBAR: O "Pulo do Gato" - Horizontal e Elegante */
    .navbar {
        display: flex !important;
        flex-direction: row !important; /* Volta a ser linha */
        justify-content: flex-start !important; /* Alinha ao início para o scroll */
        overflow-x: auto !important; /* Permite deslizar para o lado se necessário */
        white-space: nowrap !important; /* Impede as palavras de saltarem para baixo */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iPhone */
        gap: 2.5rem !important;
        padding: 1.5rem 20px !important;
        scrollbar-width: none; /* Esconde a barra de scroll no Firefox */
    }

    .navbar::-webkit-scrollbar {
        display: none; /* Esconde a barra de scroll no Chrome/Safari */
    }

    .navbar a {
        font-size: 1.1rem !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase;
        flex-shrink: 0; /* Impede que os links encolham */
    }

    /* Botão Admin discreto no fim do scroll */
    .navbar .btn-admin {
        border: 1px solid #ddd !important;
        padding: 2px 12px !important;
        margin-left: 10px !important;
    }

    /* 3. ESPAÇAMENTO */
    body {
        padding-top: 200px !important; /* Volta a um tamanho normal */
    }

/* 4. PRODUTOS: Grelha limpa de 2 colunas */
    .top-relogios-grid, .destaques-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 10px !important;
    }

    /* 5. CORREÇÃO DOS PRODUTOS "ESMAGADOS" */
    .produto-card, .relogio-item {
        padding: 10px 5px !important; 
        text-align: center !important;
    }

    .produto-card img, .relogio-img img {
        width: 100% !important;
        height: auto !important;
        max-height: 140px !important; 
        object-fit: contain !important; 
        margin-bottom: 10px !important;
    }

    .produto-card h3, 
    .relogio-info .nome {
        font-size: 0.95rem !important; 
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
        white-space: normal !important; 
        min-height: auto !important; /* Remove alturas fixas que estragam o layout */
    }

    .produto-card p, 
    .relogio-info .preco {
        font-size: 1.1rem !important;
        font-weight: bold !important;
        margin-bottom: 10px !important;
    }

    .btn-ver-mais, .btn-black {
        width: 100% !important; 
        padding: 8px 5px !important;
        font-size: 0.85rem !important;
        letter-spacing: 0.5px !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .bluebird-header h1 { font-size: 2.5rem !important; }
    body { padding-top: 210px !important; }
}