/* ============================================
   CLASSES CUSTOMIZADAS - CDW THEME
   ============================================ */

/* Fundo global de todas as páginas */
body {
  background-color: #F3F3F3;
}

/* Cores de Texto */
.text-primary {
  color: @primary-color !important;
}

.text-secondary {
  color: @text-secondary !important;
}

.text-light {
  color: @text-light !important;
}

.text-white {
  color: @text-white !important;
}
.bg-y {
  background-color: #7c7c7c !important;
}
.text-success {
  color: @text-success !important;
}

/* Cores de Fundo */
.bg-primary {
  background-color: @primary-color !important;
}

.bg-secondary {
  background-color: @secondary-color !important;
}

.bg-accent {
  background-color: @accent-color !important;
}

.bg-success {
  background-color: @bg-success !important;
}

.bg-white {
  background-color: @white !important;
}

.bg-dark {
  background-color: @black !important;
}

/* Cores de Links */
.link-primary {
  color: @link-color !important;
  
  &:hover {
    color: @link-hover !important;
  }
}

/* Cores de Botões */
.btn-primary {
  background-color: @btn-primary !important;
  color: @white !important;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
  
  &:hover {
    background-color: @secondary-color !important;
    color: @white !important;
  }
}

.btn-secondary {
  background-color: @btn-secondary !important;
  color: @white !important;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
  
  &:hover {
    background-color: @primary-color !important;
    color: @white !important;
  }
}

.btn-success {
  background-color: @btn-success !important;
  color: @white !important;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
  
  &:hover {
    background-color: @primary-color !important;
    color: @white !important;
  }
}

/* Cores de Bordas */
.border-primary {
  border-color: @border-primary !important;
}

.border-light {
  border-color: @border-light !important;
}

.border-dark {
  border-color: @border-dark !important;
}

/* Opacidade */
.opacity-80 {
  opacity: 0.8 !important;
}

.opacity-60 {
  opacity: 0.6 !important;
}

/* Transições */
.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease !important;
}

.transition-all {
  transition: all 0.3s ease !important;
}

/* Container customizado */
@media (min-width: 80rem) {
  .container,
  body .container { /* mais específico para sobrepor utilitários */
    max-width: 86rem !important;
  }
}

/* Evita overflow em formulários dentro de .container */
.container .flex {
  input[type="search"] {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    background-color: #ffffff;
  }
  
  button[type="submit"] {
    flex: 0 0 auto;
  }
}

/* ============================================
   ESTILOS PRINCIPAIS DO TEMA
   ============================================ */

/* Background Hero Personalizado */
.hero-background {
  background-image: url('../img/background-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Nova classe para background */
.bg-custom-hero {
  background-image: url('../img/background-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Banner Custom - Background para banner */
.bg-custom-banner {
  background-image: url('../img/bannerhomer.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-custom-depoimento {
  background-image: url('../img/bannerdepoimento.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Footer Custom Hero - Cópia do bg-custom-hero para seção footer */
.footer-custom-hero {
  background-image: url('../img/background-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Estilos para Menu WordPress */
#menu-menu {
  display: flex;
  align-items: center;
  .menu-item {
    position: relative;
    
    a {
      color: @primary-color;
      text-decoration: none;
      display: flex;
      align-items: center;
      transition: color 0.3s ease;
      text-transform: uppercase;
      &:hover {
        color: #2563eb;
      }
    }
    
    /* Dropdown do menu */
    &:hover > ul {
      display: block;
    }
    
    ul {
      position: absolute;
      top: 100%;
      left: 0;
      background: white;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      border-radius: 0.5rem;
      padding: 0.5rem 0;
      min-width: 15rem;
      z-index: 50;
      display: none;
      
      li {
        margin: 0;
        
        a {
          padding: 0.5rem 1rem;
          display: block;
          color: #667085;
          transition: background-color 0.3s ease;
          font-size: 1rem;
          font-weight: 400;
          &:hover {
            background-color: #f9fafb;
            color: #2563eb;
          }
        }
      }
    }
    
    /* Ícone de dropdown */
    &.menu-item-has-children > a i {
      margin-left: 0.25rem;
      font-size: 0.75rem;
    }
  }
  
  /* Menu responsivo */
  @media (max-width: 768px) {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    
    .menu-item ul {
      position: static;
      box-shadow: none;
      background: transparent;
      padding: 0;
      margin-left: 1rem;
      
      li a {
        padding: 0.25rem 0;
      }
    }
  }
}

/* Estilos para Menu Mobile */
.mobile-menu {
  display: none;
  
  &.active {
    display: block;
  }
  
  .menu-item {
    margin-bottom: 0;
    
    a {
      color: @primary-color;
      text-decoration: none;
      padding: 0.5rem 0;
      display: block;
      transition: color 0.3s ease;
      font-size: 0.875rem;
      
      &:hover {
        color: #2563eb;
      }
    }
    
    // Aplicar padding apenas nos sub-itens
    ul {
      .menu-item {
        padding-left: 1rem;
      }
    }
  }
}

/* Botão do menu mobile */
.mobile-menu-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: @primary-color;
  cursor: pointer;
  
  @media (max-width: 768px) {
    display: block;
  }
}

.desktop-menu {
  @media (max-width: 768px) {
    display: none;
  }
}

/* ============================================
   FORMULÁRIO CONTACT FORM 7 - TRABALHE CONOSCO
   ============================================ */

/* Container do formulário - Seletor mais específico */
body .wpcf7-form,
.trabalhe-conosco-formulario .wpcf7-form {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  
  label {
    display: block;
    font-weight: 500;
    color: @primary-color;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  
  p {
    margin-bottom: 16px;
    
    &:last-of-type {
      margin-bottom: 0;
    }
  }
}

/* Campos de input */
body .wpcf7-form-control,
.trabalhe-conosco-formulario .wpcf7-form-control {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: @primary-color !important;
  background-color: #ffffff;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  box-shadow: none !important;
  
  &:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
  }
  
  &::placeholder {
    color: #9ca3af;
    opacity: 1;
  }
  
  &.wpcf7-validates-as-required {
    border-left: 3px solid #3b82f6;
  }
  
  &.wpcf7-not-valid {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
    
    &:focus {
      border-color: #dc2626 !important;
      box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    }
  }
  
  &.wpcf7-validates-as-email {
    &:valid {
      border-color: #10b981;
    }
    
    &:invalid {
      border-color: #dc2626;
    }
  }
}

/* Textarea */
body .wpcf7-textarea,
.trabalhe-conosco-formulario .wpcf7-textarea {
  height: 150px !important;
  resize: vertical !important;
}

/* Botão de envio */
body .wpcf7-submit,
.trabalhe-conosco-formulario .wpcf7-submit {
  align-items: center;
  padding: 10px 24px;
  width: 100%;
  height: 46px;
  background: @primary-color;
  border-radius: 8px;
  color: #ffffff !important;
  border: none !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: block !important;
  margin: 0 auto !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2) !important;
  
  &:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.5) !important;
  }
  
  &:active {
    transform: translateY(0) !important;
  }
  
  &:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
  }
  
  &.has-spinner .wpcf7-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
}

/* Spinner de carregamento */
.wpcf7-spinner {
  display: none;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mensagens de resposta */
.wpcf7-response-output {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  &.wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
  }
  
  &.wpcf7-validation-errors,
  &.wpcf7-mail-sent-ng {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
  }
}

/* Mensagens de erro específicas */
.wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 14px;
  margin-top: 6px;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsividade */
@media (max-width: 768px) {
  .wpcf7-form {
    padding: 24px;
  }
  
  .wpcf7-form-control {
    font-size: 16px; /* Evita zoom no iOS */
    padding: 14px 16px;
  }
  
  .wpcf7-submit {
    padding: 14px 32px !important;
    font-size: 16px !important;
    width: 100% !important;
  }
}

/* Container de campos ocultos */
.hidden-fields-container {
  display: none;
}

/* Animações suaves */
.wpcf7-form-control,
.wpcf7-submit {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Melhorias de acessibilidade */
.wpcf7-form-control:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Checkbox styling */
.wpcf7-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  
  &:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
  }
}

/* Texto do checkbox */
.wpcf7-form label[for*="privacy"] {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.4;
}

/* ============================================
   FORMULÁRIO DE COMENTÁRIOS - MESMO ESTILO DO CONTACT FORM 7
   ============================================ */

/* Container do formulário de comentários */
.comment-form {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  
  label {
    display: block;
    font-weight: 500;
    color: @primary-color;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  
  p {
    margin-bottom: 16px;
    
    &:last-of-type {
      margin-bottom: 0;
    }
  }
}

/* Campos de input do formulário de comentários */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: @primary-color !important;
  background-color: #ffffff;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  box-shadow: none !important;
  
  &:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
  }
  
  &::placeholder {
    color: #9ca3af;
    opacity: 1;
  }
}

/* Textarea do formulário de comentários */
.comment-form textarea {
  height: 150px !important;
  resize: vertical !important;
}

/* Botão de envio do formulário de comentários */
.comment-form input[type="submit"] {
  align-items: center;
  padding: 10px 24px;
  width: 100%;
  height: 46px;
  background: @primary-color;
  border-radius: 8px;
  color: #ffffff !important;
  border: none !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: block !important;
  margin: 0 auto !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2) !important;
  
  &:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.5) !important;
  }
  
  &:active {
    transform: translateY(0) !important;
  }
  
  &:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
  }
}

/* Checkbox do formulário de comentários */
.comment-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  
  &:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
  }
}

/* Responsividade do formulário de comentários */
@media (max-width: 768px) {
  .comment-form {
    padding: 24px;
  }
  
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    font-size: 16px; /* Evita zoom no iOS */
    padding: 14px 16px;
  }
  
  .comment-form input[type="submit"] {
    padding: 14px 32px !important;
    font-size: 16px !important;
    width: 100% !important;
  }
}

/* Animações suaves do formulário de comentários */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.comment-form input[type="submit"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Melhorias de acessibilidade do formulário de comentários */
.comment-form input:focus-visible,
.comment-form textarea:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ============================================
   TEMPLATE DE COMENTÁRIOS - ESTILOS MELHORADOS
   ============================================ */

/* Container principal dos comentários */
.comments-area {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Título da seção de comentários */
.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: @primary-color;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid @primary-color;
}

/* Lista de comentários */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  
  .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid @primary-color;
    
    &.bypostauthor {
      background: #f0f9ff;
      border-left-color: #3b82f6;
    }
    
    &.depth-1 {
      margin-left: 0;
    }
    
    &.depth-2 {
      margin-left: 2rem;
      background: #ffffff;
      border: 1px solid #e5e7eb;
    }
    
    &.depth-3 {
      margin-left: 4rem;
      background: #f9fafb;
    }
  }
}

/* Cabeçalho do comentário */
.comment-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  
  .comment-author {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    
    .avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      margin-right: 0.75rem;
      border: 2px solid #e5e7eb;
    }
    
    .fn {
      font-weight: 600;
      color: @primary-color;
      text-decoration: none;
      
      &:hover {
        color: @primary-color;
      }
    }
  }
  
  .comment-metadata {
    color: #6b7280;
    font-size: 0.875rem;
    
    a {
      color: #6b7280;
      text-decoration: none;
      
      &:hover {
        color: @primary-color;
      }
    }
  }
}

/* Conteúdo do comentário */
.comment-content {
  color: @primary-color;
  line-height: 1.6;
  margin-bottom: 1rem;
  
  p {
    margin-bottom: 0.75rem;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
  
  a {
    color: @primary-color;
    text-decoration: none;
    
    &:hover {
      text-decoration: underline;
    }
  }
}

/* Links de ação do comentário */
.comment-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  
  .comment-reply-link {
    background: @primary-color;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    
    &:hover {
      background: #4a9c2a;
      transform: translateY(-1px);
    }
  }
  
  .comment-edit-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    
    &:hover {
      color: @primary-color;
    }
  }
}

/* Status de comentário aguardando moderação */
.comment-awaiting-moderation {
  background: #fef3c7;
  color: #92400e;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border-left: 4px solid #f59e0b;
}

/* Formulário de resposta */
.comment-respond {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #EAEAEA;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  
  .comment-reply-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: @primary-color;
    margin-bottom: 1rem;
    
    small {
      font-size: 0.875rem;
      font-weight: 400;
      color: #6b7280;
      margin-left: 0.5rem;
      
      a {
        color: @primary-color;
        text-decoration: none;
        
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
}

/* Mensagem de "Comentários fechados" */
.comments-closed {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  margin-top: 2rem;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 8px;
}

/* ============================================
   ESTRUTURA ESPECÍFICA DOS COMENTÁRIOS WORDPRESS
   ============================================ */

/* Article do comentário */
.comment-body {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid @primary-color;
  position: relative;
  
  &.bypostauthor {
    background: #f0f9ff;
    border-left-color: #3b82f6;
  }
  
  &.depth-1 {
    margin-left: 0;
  }
  
  &.depth-2 {
    margin-left: 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
  }
  
  &.depth-3 {
    margin-left: 4rem;
    background: #f9fafb;
  }
}

/* Footer do comentário */
.comment-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Autor do comentário */
.comment-author {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  
  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease;
    
    &:hover {
      border-color: @primary-color;
    }
  }
  
  .fn {
    font-weight: 600;
    color: @primary-color;
    text-decoration: none;
    font-size: 1rem;
    
    &:hover {
      color: @primary-color;
    }
  }
  
  .says {
    color: #6b7280;
    font-weight: 400;
    margin-left: 0.25rem;
    font-style: italic;
  }
}

/* Metadados do comentário */
.comment-metadata {
  color: #6b7280;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  
  a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
    
    &:hover {
      color: @primary-color;
    }
  }
  
  .edit-link {
    margin-left: 0.5rem;
    
    .comment-edit-link {
      color: #6b7280;
      text-decoration: none;
      font-size: 0.875rem;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      transition: all 0.3s ease;
      
      &:hover {
        color: @primary-color;
        background: #f0f9ff;
      }
    }
  }
}

/* Conteúdo do comentário */
.comment-content {
  color: @primary-color;
  line-height: 1.6;
  margin-bottom: 1rem;
  
  p {
    margin-bottom: 0.75rem;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
  
  a {
    color: @primary-color;
    text-decoration: none;
    font-weight: 500;
    
    &:hover {
      text-decoration: underline;
    }
  }
  
  br {
    line-height: 1.8;
  }
}

/* Link de resposta */
.reply {
  margin-top: 1rem;
  
  .comment-reply-link {
    background: @primary-color;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    
    &:hover {
      background: #4a9c2a;
      transform: translateY(-1px);
      box-shadow: 0 2px 4px rgba(92, 171, 54, 0.3);
    }
    
    &:focus {
      outline: 2px solid #3b82f6;
      outline-offset: 2px;
    }
  }
}

/* Status de moderação */
.comment-awaiting-moderation {
  background: #fef3c7;
  color: #92400e;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border-left: 4px solid #f59e0b;
  display: block;
}

/* Responsividade dos comentários */
@media (max-width: 768px) {
  .comment-body {
    &.depth-2 {
      margin-left: 1rem;
    }
    
    &.depth-3 {
      margin-left: 2rem;
    }
  }
  
  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    
    .comment-author {
      margin-bottom: 0.5rem;
      margin-right: 0;
    }
    
    .comment-metadata {
      width: 100%;
      justify-content: space-between;
    }
  }
  
  .reply {
    margin-top: 1.5rem;
    
    .comment-reply-link {
      width: 100%;
      text-align: center;
    }
  }
}

/* Melhorias para telas muito pequenas */
@media (max-width: 480px) {
  .comment-body {
    padding: 1rem;
    
    &.depth-2,
    &.depth-3 {
      margin-left: 0.5rem;
    }
  }
  
  .comment-author {
    .avatar {
      width: 32px;
      height: 32px;
    }
  }
}

/* ============================================
   WP-PAGENAVI - ESTILOS PERSONALIZADOS
   ============================================ */

/* Container principal do wp-pagenavi */
.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  text-align: center;
  
  a,
  span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: @primary-color;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    
    &:hover {
      background-color: @primary-color;
      color: white;
      border-color: @primary-color;
    }
  }
  
  .current {
    background-color: @primary-color;
    color: white;
    border-color: @primary-color;
  }
  
  .pages {
    margin: 0 0.5rem;
    color: #6b7280;
    font-weight: 500;
  }
  
  .first,
  .last {
    font-weight: 600;
    
    &:hover {
      background-color: @primary-color;
      color: white;
      border-color: @primary-color;
    }
  }
  
  .prev,
  .next {
    font-weight: 600;
    
    &:hover {
      background-color: @primary-color;
      color: white;
      border-color: @primary-color;
    }
  }
}

/* Responsividade do wp-pagenavi */
@media (max-width: 768px) {
  .wp-pagenavi {
    flex-wrap: wrap;
    gap: 0.25rem;
    
    a,
    span {
      padding: 0.375rem 0.5rem;
      font-size: 0.875rem;
      min-width: 36px;
    }
    
    .pages {
      width: 100%;
      margin: 0.5rem 0;
    }
  }
}

/* Estilos para telas muito pequenas */
@media (max-width: 480px) {
  .wp-pagenavi {
    .first,
    .last {
      display: none;
    }
  }
}

/* ============================================
   ESTILOS PARA CONTEÚDO DO SINGLE CATÁLOGO
   ============================================ */

/* Container principal do conteúdo */
.single-catalogo .prose,
.prose.prose-lg {
  color: @text-primary;
  font-size: 1rem;
}

/* Parágrafos */
.single-catalogo .prose p,
.prose.prose-lg p {
  margin-bottom: 1rem;
  color: @text-primary;
  font-size: 1rem;
}

/* Títulos dentro do conteúdo */
.single-catalogo .prose h1,
.prose.prose-lg h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: @primary-color;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.single-catalogo .prose h2,
.prose.prose-lg h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: @primary-color;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  line-height: 1.4;
  border-bottom: 2px solid @border-light;
  padding-bottom: 0.5rem;
}

.single-catalogo .prose h3,
.prose.prose-lg h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: @primary-color;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.single-catalogo .prose h4,
.prose.prose-lg h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: @primary-color;
  margin-top: 1.25rem;
  margin-bottom: 0.625rem;
  line-height: 1.5;
}

.single-catalogo .prose h5,
.prose.prose-lg h5,
.single-catalogo .prose h6,
.prose.prose-lg h6 {
  font-size: 1.125rem;
  font-weight: 600;
  color: @primary-color;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Links */
.single-catalogo .prose a,
.prose.prose-lg a {
  color: @link-color;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
  
  &:hover {
    color: @link-hover;
    text-decoration-thickness: 2px;
  }
}

/* Listas */
.single-catalogo .prose ul,
.prose.prose-lg ul,
.single-catalogo .prose ol,
.prose.prose-lg ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
  color: @text-primary;
  
  li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.8;
    padding-left: 0.5rem;
    
    &::marker {
      color: @secondary-color;
      font-weight: 600;
    }
  }
}

.single-catalogo .prose ul li::marker,
.prose.prose-lg ul li::marker {
  font-weight: 400;
}

/* Listas aninhadas */
.single-catalogo .prose ul ul,
.prose.prose-lg ul ul,
.single-catalogo .prose ol ol,
.prose.prose-lg ol ol,
.single-catalogo .prose ul ol,
.prose.prose-lg ul ol,
.single-catalogo .prose ol ul,
.prose.prose-lg ol ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Imagens */
.single-catalogo .prose img,
.prose.prose-lg img {
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Citações / Blockquotes */
.single-catalogo .prose blockquote,
.prose.prose-lg blockquote {
  border-left: 4px solid @secondary-color;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: @text-secondary;
  background-color: @bg-secondary;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

/* Código */
.single-catalogo .prose code,
.prose.prose-lg code {
  background-color: @bg-secondary;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: @secondary-color;
  font-weight: 500;
}

.single-catalogo .prose pre,
.prose.prose-lg pre {
  background-color: @bg-dark;
  color: @text-white;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  
  code {
    background-color: transparent;
    padding: 0;
    color: inherit;
  }
}

/* Tabelas */
.single-catalogo .prose table,
.prose.prose-lg table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border: 1px solid @border-light;
  border-radius: 8px;
  overflow: hidden;
  
  th {
    background-color: @primary-color;
    color: @text-white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
  }
  
  td {
    padding: 0.75rem 1rem;
    border-top: 1px solid @border-light;
  }
  
  tr:nth-child(even) {
    background-color: @bg-secondary;
  }
}

/* Divisores / HR */
.single-catalogo .prose hr,
.prose.prose-lg hr {
  border: none;
  border-top: 2px solid @border-light;
  margin: 2rem 0;
}

/* Texto em negrito e itálico */
.single-catalogo .prose strong,
.prose.prose-lg strong {
  font-weight: 700;
  color: @primary-color;
}

.single-catalogo .prose em,
.prose.prose-lg em {
  font-style: italic;
  color: @text-secondary;
}


/* Responsividade */
@media (max-width: 768px) {
  .single-catalogo .prose,
  .prose.prose-lg {
    font-size: 1rem;
  }
  
  .single-catalogo .prose p,
  .prose.prose-lg p {
    font-size: 1rem;
  }
  
  .single-catalogo .prose h1,
  .prose.prose-lg h1 {
    font-size: 1.875rem;
  }
  
  .single-catalogo .prose h2,
  .prose.prose-lg h2 {
    font-size: 1.5rem;
  }
  
  .single-catalogo .prose h3,
  .prose.prose-lg h3 {
    font-size: 1.25rem;
  }
}

/* ============================================
   BLOG SLIDER 3 ITENS - ESTILOS
   ============================================ */

.slick-slider {
  position: relative;
  padding: 0;
  
  .slick-prev,
  .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    
    &:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
      transform: translateY(-50%) scale(1.1);
    }
    
    i {
      color: @primary-color;
      font-size: 1.25rem;
    }
  }
  
  .slick-prev {
    left: -30px;
  }
  
  .slick-next {
    right: -30px;
  }
  
  .slick-dots {
    left: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    bottom: -5px;
    li {
      list-style: none;
      width: 12px;
      height: 12px;
      
      button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 1px solid @primary-color;
        background: transparent;
        text-indent: -9999px;
        overflow: hidden;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
        
        &:hover {
          background: @primary-color;
          opacity: 0.7;
        }
      }
      
      &.slick-active button {
        background: @primary-color;
      }
    }
  }
}

/* Responsividade do blog slider */
@media (max-width: 768px) {
  .slick-slider  {
    padding: 0;
    
    .slick-prev {
      left: -15px;
    }
    .marcas-produtos-slider .slick-prev {
      left: -20px;
    }
    .marcas-produtos-slider .slick-next {
      right: -20px;
    }
    .slick-next {
      right: -15px;
    }
  }
}

/* ============================================
   SLICK CAROUSEL CUSTOM
   ============================================ */
.slick-list {
  padding-bottom: 15px !important;
}

/* Slider do header top – sem padding */
.card-container-top.slick-slider,
.card-container-top .slick-list,
.card-container-top .slick-track,
.card-container-top .slick-slide {
  padding: 0 !important;
}
.card-container-top .slick-list {
  padding-bottom: 0 !important;
}

/* Slider card-container-1 (banner home) – sem padding */
.card-container-1.slick-slider,
.card-container-1 .slick-list,
.card-container-1 .slick-track,.marcas-produtos-slider .slick-track,
.card-container-1 .slick-slide {
  padding: 0 !important;
}
.card-container-1 .slick-list,.marcas-produtos-slider .slick-list {
  padding-bottom: 0 !important;
}

.slick-next:before,
.slick-prev:before {
  display: none !important;
}

/* Estilo global para todos os dots do Slick Slider */
.slick-dots {
  left: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  
  li {
    list-style: none;
    width: 12px;
    height: 12px;
    
    button {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      border: 2px solid @primary-color;
      background: transparent;
      text-indent: -9999px;
      overflow: hidden;
      padding: 0;
      cursor: pointer;
      transition: all 0.3s ease;
      
      &:hover {
        background: @primary-color;
        opacity: 0.7;
      }
    }
    
    &.slick-active button {
      background: @primary-color;
    }
  }
}
.slick-white-dots {
  .slick-prev,
  .slick-next {
    color: @white;
    i {
      color: @white;
    }
  }
  .slick-dots {
    li {
      button {
        border: 2px solid @white;
        &:hover {
          background: @white;
          opacity: 0.7;
        }
      }
      &.slick-active button {
        background: @white;
      }
    }
  }
}