/*
Theme Name: Femax Tools Theme
Theme URI: https://femax.com.br
Author: C.C.Soft++
Author URI: https://femax.com.br
Description: Tema completo do WordPress baseado no HTML da Femax Tools.
Version: 1.0.2
License: GNU General Public License v2 or later
Text Domain: femax-tools
*/

/* ======================================================
   1. RESET E ESTILOS BASE DO SITE
   ====================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f4f4f4;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  background: transparent !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

main {
  display: block;
}

section {
  padding: 40px 0;
}

/* ======================================================
   2. CABEÇALHO (HEADER)
   ====================================================== */
.top-bar {
  background: #1e1e1e;
  color: #ccc;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.top-bar-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-info span i {
  color: #d90429;
  margin-right: 6px;
}

.mid-header {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.logo-femax {
  width: 250px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-femax img {
  max-width: 250px;
  max-height: 78px;
  width: auto;
  height: auto;
}

.search-box-wrapper {
  flex: 1;
  max-width: 450px;
}

.search-box {
  display: flex;
  width: 100%;
}

.search-box input[type="text"],
.search-box input[type="search"] {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.search-box button {
  padding: 10px 20px;
  background: #d90429;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
}

.search-box button:hover {
  background: #b80320;
}

.header-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-social a {
  width: 36px;
  height: 36px;
  background: #2b2d42;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.header-social a:hover {
  background: #d90429;
}

.nav-bar-container {
  background-color: #2b2d42;
  width: 100%;
}

.lista-menu-principal {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Responsividade do Header */
@media screen and (min-width: 769px) {
  .btn-menu-trigger {
    display: none;
  }

  .mid-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .lista-menu-principal {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .lista-menu-principal > li > a {
    color: #fff;
    padding: 16px 20px;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
  }

  .lista-menu-principal > li > a:hover {
    background: #d90429;
  }
}

@media screen and (max-width: 768px) {
  .top-bar-info {
    gap: 10px;
    font-size: 0.8rem;
  }

  .mid-header-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .logo-femax { order: 1; }
  .search-box-wrapper { order: 2; width: 100%; max-width: 100%; }
  .header-social { order: 3; justify-content: center; width: 100%; }

  .btn-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #d90429;
    color: #ffffff;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 4px;
    width: 100%;
    text-transform: uppercase;
  }

  .menu-navegacao-wrapper {
    display: none;
    width: 100%;
  }

  .menu-navegacao-wrapper.ativo {
    display: block;
  }

  .lista-menu-principal {
    display: flex;
    flex-direction: column;
    padding: 10px 0 0 0;
  }

  .lista-menu-principal > li > a {
    display: block;
    padding: 12px 0;
    color: #fff;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ======================================================
   3. BANNER SLIDER PRINCIPAL
   ====================================================== */
.hero-slider-container {
  position: relative;
  overflow: hidden;
  background: #222;
  height: 400px;
}

.hero-slide {
  display: none;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hero-slide.active {
  display: flex;
}

.hero-slide h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-slide p {
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* ======================================================
   4. TÍTULOS E SEÇÕES DE CONTEÚDO
   ====================================================== */
.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #2b2d42;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #d90429;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Linha de Produtos (Cards de Categorias) */
.lines-wrapper {
  margin-top: 20px;
}

.lines-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.line-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e2e2;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.line-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.line-card img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 15px auto;
}

.line-card h4 {
  font-size: 1.1rem;
  color: #2b2d42;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Sobre */
.about-section {
  background: #fff;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
}

.about-section p {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}

/* Grid de Produtos em Destaque e Blog */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* ======================================================
   ESTILO CORRIGIDO E DIRETO PARA O BOTÃO DO CARD (.btn-info)
   ====================================================== */
article.product-card .btn-info,
.product-card a.btn-info,
a.btn-info {
  display: inline-block !important;
  background-color: #d90429 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 10px 22px !important;
  border-radius: 4px !important;
  text-align: center !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease !important;
  margin-top: 12px !important;
}

article.product-card .btn-info:hover,
.product-card a.btn-info:hover,
a.btn-info:hover {
  background-color: #b80320 !important;
  color: #ffffff !important;
}

/* Layout de Páginas com Sidebar */
.page-layout {
  display: flex;
  gap: 30px;
  padding: 40px 0;
}

.page-layout.full-width {
  display: block;
}

.main-content {
  flex: 1;
}

.sidebar {
  width: 300px;
}

@media screen and (max-width: 768px) {
  .page-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}

/* ======================================================
   5. RODAPÉ (FOOTER)
   ====================================================== */
footer {
  background: #111111;
  color: #bbb;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* Associação de Marca (Centralizada) */
.brand-statement {
  background: #181818;
  padding: 15px 0;
  border-bottom: 1px solid #252525;
}

.brand-statement .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.brand-statement p {
  color: #00ffff !important;
  font-size: 0.9rem;
  margin: 0;
}

/* Logo Importway (Topo do Rodapé) com Fundo Branco */
.logo-importway {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-importway img {
  max-height: 35px;
  width: auto;
  display: block;
}

/* Newsletter Centralizada */
.newsletter-row {
  background: #2b2d42;
  padding: 30px 0;
  color: #fff;
}

.newsletter-row .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.newsletter-row h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 550px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

.newsletter-form button {
  background: #d90429;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #b80320;
}

@media screen and (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    width: 100%;
  }
}

/* Colunas do Footer */
.footer-content {
  padding: 40px 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-col h4 {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #d90429;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col p i {
  color: #d90429;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.logo-box {
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 200px;
}

.logo-box img {
  max-height: 45px;
> width: auto;
  display: block;
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social-links a {
  color: #bbb !important;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent !important;
  padding: 0 !important;
}

.footer-social-links a:hover {
  color: #fff !important;
}

.copyright-bar {
  background: #0a0a0a;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid #222;
  font-size: 0.85rem;
  color: #777;
}