/* ================================================================
   main2.css — Retrorepair
   Estilos adicionais: botão voltar ao topo, serviços, galeria
================================================================ */

/* ---- Botão voltar ao topo ---- */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e0815a;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---- Secção de serviços ---- */
.srv-wrap { max-width: 1000px; margin: 0 auto; padding: 0 15px; }
.srv-intro { text-align: center; margin-bottom: 40px; }
.srv-intro h1 { color: #fff; margin-bottom: 10px; }
.srv-intro h4 { color: #222; }
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.srv-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 22px 14px 18px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
  position: relative;
}
.srv-card:hover {
  border-color: #aaa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.srv-card.active {
  border-color: #c0392b;
  background: #fff5f5;
}
.srv-card .srv-icon {
  font-size: 32px;
  color: #888;
  margin-bottom: 10px;
  display: block;
  transition: color 0.2s;
}
.srv-card.active .srv-icon { color: #c0392b; }
.srv-card .srv-title {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 4px;
}
.srv-card .srv-subtitle {
  font-size: 12px;
  color: #888;
  margin: 0;
}
.srv-card .srv-chevron {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 13px;
  color: #bbb;
  transition: transform 0.3s;
}
.srv-card.active .srv-chevron {
  transform: rotate(180deg);
  color: #c0392b;
}
.srv-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  margin-bottom: 0;
}
.srv-detail.open {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 8px;
}
.srv-detail-inner {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 6px;
}
.srv-detail-inner h3 {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.srv-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.srv-item {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}
.srv-item i { font-size: 13px; color: #c0392b; }
@media (max-width: 576px) {
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Galeria com lightbox ---- */
.gallery-area { background: #f8f8f8; }
.gallery-area .section-title { text-align: center; margin-bottom: 40px; }
.gallery-area .section-title h2 { font-size: 28px; font-weight: 700; color: #222; margin-bottom: 10px; }
.gallery-area .section-title p { font-size: 15px; color: #888; max-width: 500px; margin: 0 auto; }
.gallery-area .title-divider { width: 48px; height: 3px; background: #c0392b; border-radius: 2px; margin: 12px auto 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: block;
  background: #e0e0e0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #bdbdbd;
  color: #444;
}
.gallery-placeholder i { font-size: 32px; }
.gallery-placeholder span {
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(192,57,43,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay i { font-size: 28px; color: #fff; }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.faq-section { background: #fff; }
.faq-header { text-align: center; margin-bottom: 40px; }
.faq-header h2 { font-size: 28px; font-weight: 700; color: #222; margin-bottom: 10px; }
.faq-header p { font-size: 15px; color: #888; margin: 0; }
.faq-divider { width: 48px; height: 3px; background: #c0392b; border-radius: 2px; margin: 12px auto 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #f0f0f0; }
.faq-item:first-child { border-top: 1px solid #f0f0f0; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}
.faq-question span {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  font-family: 'Poppins', sans-serif;
}
.faq-question:hover span { color: #c0392b; }
.faq-chevron {
  font-size: 13px;
  color: #bbb;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.2s;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #c0392b;
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
}
.faq-answer p {
  font-size: 14.5px;
  color: #666;
  line-height: 1.7;
  padding-bottom: 20px;
  margin: 0;
}

.loja-recentes-area { background: #f8f8f8; }
.loja-recentes-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 32px;
}
.loja-recentes-header h2 { font-size: 24px; font-weight: 700; color: #222; margin: 0 0 6px; }
.loja-recentes-header p { font-size: 14px; color: #888; margin: 0; }
.loja-recentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.loja-produto-card {
  background: #fff; border: 1px solid #e0e0e0;
  border-radius: 10px; overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  text-decoration: none; display: block; color: inherit;
}
.loja-produto-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.loja-produto-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}
.loja-produto-placeholder {
  width: 100%; aspect-ratio: 4/3; background: #d0d0d0;
  display: flex; align-items: center; justify-content: center;
  color: #888; font-size: 32px;
}
.loja-produto-body { padding: 14px; }
.loja-produto-cat { font-size: 11px; font-weight: 600; color: #c0392b; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 4px; }
.loja-produto-nome { font-size: 14px; font-weight: 600; color: #222; margin: 0 0 2px; }
.loja-produto-marca { font-size: 12px; color: #aaa; margin: 0 0 10px; }
.loja-produto-footer { display: flex; align-items: center; justify-content: space-between; }
.loja-produto-preco { font-size: 18px; font-weight: 700; color: #c0392b; }
.loja-produto-estado { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: #f0f0f0; color: #555; }
.loja-skeleton {
  background: #e8e8e8; border-radius: 10px;
  aspect-ratio: 3/4;
  animation: loja-pulse 1.4s ease-in-out infinite;
}
@keyframes loja-pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.loja-recentes-empty { text-align: center; padding: 40px 20px; }
.loja-recentes-empty p { color: #888; font-size: 15px; margin-bottom: 16px; }
@media (max-width: 576px) {
  .loja-recentes-header { flex-direction: column; align-items: flex-start; }
  .loja-recentes-grid { grid-template-columns: repeat(2, 1fr); }
}

