/* ============================================================
   FOTOS DE PLACAS (hero + produtos)
   ============================================================ */

/* Hero – foto substitui mockup CSS dentro do .plate-card */
.plate-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.plate-photo img {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  object-fit: contain;
  transition: var(--transition);
}

.plate-card:hover .plate-photo img {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
}

/* Produtos – foto ocupa toda a área visual do card */
.product-plate-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.product-plate-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  transition: var(--transition);
}

.product-card:hover .product-plate-photo img {
  transform: scale(1.06) rotate(-1deg);
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
}

/* ============================================================
   ESTILOS COMPLEMENTARES – ENTRY CONTENT E COMPONENTES
   ============================================================ */

/* Conteúdo do editor WordPress */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content p  { margin-bottom: 1.25rem; }
.entry-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: .5rem; }

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--color-accent-dark); }

.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(0,48,135,.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-light);
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.entry-content code {
  background: var(--color-light);
  padding: .15em .4em;
  border-radius: 4px;
  font-size: .9em;
  font-family: monospace;
}

.entry-content pre {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

.entry-content th,
.entry-content td {
  padding: .75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry-content th {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
}

.entry-content tr:nth-child(even) td { background: var(--color-light); }

/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.nav-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}

.nav-links a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.nav-links .current { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* ============================================================
   FORMULÁRIO – MENSAGEM DE RETORNO
   ============================================================ */
.form-msg {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
}

.form-msg--success {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  color: #065f46;
}

.form-msg--error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #991b1b;
}

/* ============================================================
   BOTÃO FLUTUANTE WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  transition: var(--transition);
  color: #fff;
}

.whatsapp-float:hover {
  background: #1da851;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
}

.whatsapp-float svg { width: 30px; height: 30px; }

/* ============================================================
   WIDGETS
   ============================================================ */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .hero-bg { display: none !important; }
}

/* ============================================================
   FOCUS ACESSIBILIDADE
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   SELEÇÃO DE TEXTO
   ============================================================ */
::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   SCROLLBAR CUSTOMIZADA (Webkit)
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-light); }
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-dark); }
