/**
 * Theme Name: Pedagogia de Ideias Child
 * File Name: theme-global.css
 * Description: Estilos globais do tema (menu, footer, colunas, responsividade)
 * Author: Thiago Tracanella Ribeiro
 * Version: 1.1
 */

/* ===========================================================
   🌍 GLOBAL BASE – AJUSTES ESTRUTURAIS
   =========================================================== */

.primary-text { color: var(--primary-color); }

img.woocommerce_thumbnail { content-visibility: auto; }
img[data-lazyloaded] { opacity: 0; }
img.litespeed-loaded {
    transition: opacity .5s linear 0.2s;
    opacity: 1;
}

.flex-col.flex-grow.medium-text-center { margin-top: 10px; }
.flex-col:empty { display: none; }
.flex-col { padding: 0; margin: 10px 0; }

.category-filter-row {
    padding: 5px;
    margin-top: 10px;
    margin-bottom: -20px;
}

.class-that-is-causing-space { margin: 0; padding: 0; }

.category-filtering { margin: 0 !important; }
.category-filtering .filter-button {
    display: inline-block;
    margin-bottom: 15px !important;
}
@media (max-width: 768px) {
  .category-filtering { display: none !important; }
}


/* ===========================================================
   🧭 MENU PRINCIPAL
   =========================================================== */
.nav > li > a {
  font-weight: 600;
  font-size: 14px;
  color: #222 !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: all 0.25s ease;
}
.nav > li > a:hover,
.nav > li.active > a,
.nav > li.current-menu-item > a {
  background-color: #9FB401 !important;
  color: #000 !important;
}
.html_topbar_left {
  color: #000 !important;
  font-weight: 600;
}

/* ===========================================================
   🧩 AJUSTES GERAIS WOO – BREADCRUMB, COLUNAS E TÍTULOS
   =========================================================== */

.woocommerce-breadcrumb {
  margin-top: 20px;
}

.flex-col:empty { display: none; }

.flex-col {
  padding: 0;
  margin: 10px 0;
}

.header .flex-col,
.header-wrapper .flex-col {
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-title-inner {
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .page-title-inner { padding: 0; }
}

.order-again { display: none !important; }

/* ===========================================================
   🧭 AJUSTES DO HEADER – MENU E LOGO
   =========================================================== */

/* Aumenta a faixa amarela */
.header-bottom {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Melhora aparência dos botões */
.header-bottom .nav > li > a {
  padding: 10px 18px !important;
  font-weight: 700;
}

/* Remove espaços laterais e centraliza logo */
.header-wrapper .flex-col {
  margin: 0 !important;
  padding: 0 !important;
}

.header-inner {
  align-items: center;
  justify-content: center;
}

/* Remove colunas vazias (ex: ícones laterais) */
.header-inner .flex-col:empty {
  display: none !important;
}

/* Mobile – centraliza logo e mantém menu hambúrguer visível */
@media (max-width: 768px) {
  .header-bottom {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .header-inner {
    align-items: center;
    justify-content: space-between;
  }
  .header-bottom .nav > li > a {
    font-size: 13px;
    padding: 8px 10px !important;
  }
}

/* ===========================================================
   🦶 RODAPÉ ELEGANTE
   =========================================================== */
.footer-elegante {
  background: #f9f9f9;
  border-top: 3px solid #bcc802;
  padding: 40px 0 10px;
  font-family: 'Poppins', sans-serif;
  color: #333;
}
.footer-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: auto;
  padding: 0 20px;
  gap: 40px;
}
.footer-col {
  flex: 1;
  min-width: 240px;
  text-align: center;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: #9FB401; }
.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}
.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
.social-icons a:hover {
  background: #9FB401;
  color: #fff;
  transform: translateY(-3px);
}
.social-icons svg {
  width: 22px;
  height: 22px;
  aspect-ratio: 1 / 1;
  fill: currentColor;
}
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 25px;
  border-top: 1px solid #e5e5e5;
  padding-top: 15px;
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  .social-icons a {
    width: 44px;
    height: 44px;
  }
}
.footer-bottom,
.footer-bottom a,
.footer-elegante,
.footer-elegante a {
  color: #111 !important;
}

/* ===========================================================
   🎨 AJUSTES DE CATEGORIA E RESPONSIVIDADE
   =========================================================== */
.product-category .category,
.product-small .category {
  color: #000 !important;
  text-shadow: 0 0 3px rgba(255,255,255,0.7);
}

/* ===========================================================
   📱 AJUSTES RESPONSIVOS
   =========================================================== */
@media (max-width: 1024px) {
  .page-title-inner { padding-top: 0px; }
  .featured-title .page-title-inner { padding-bottom: 0px; }
}
@media (max-width: 768px) {
  .page-title-inner { padding-top: 0px; }
  .featured-title .page-title-inner { padding-bottom: 0px; }
  .category-filter-row { padding-top: 0px; margin-top: 10px; margin-bottom: -20px; }
}

/* =======================================
   🧩 PRODUTOS RELACIONADOS PERSONALIZADOS
   ======================================= */
.pedagogia-relacionados-titulo {
  text-align: center;
  font-size: 18px;
  color: #2c3e50;
  margin: 40px 0 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  position: relative;
}
.pedagogia-relacionados-titulo strong {
  background: linear-gradient(90deg, #f0c816, #bcc802);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 768px) {
  .pedagogia-relacionados-titulo {
    font-size: 16px;
    margin: 30px 0 15px;
  }
}
