/* ============================================================
   CATÁLOGO PRO - CSS MODERNO
   Paleta: Azul (#2563eb), Cinza, Preto
   + Animações suaves + Hover effects modernos
   ============================================================ */

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', 'Inter', -apple-system, Arial, sans-serif;
  background: #f1f5f9;
  color: #333;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ===== LIGHTBOX MODERNO ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  z-index: 999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.4s ease;
}

#lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-close:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.2);
  transform: rotate(90deg) scale(1.1);
}

/* ===== HEADER MODERNO ===== */
header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
  color: #fff;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.5s ease;
}

.back-btn {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.back-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.back-btn:hover::before {
  width: 200px;
  height: 200px;
}

.back-btn:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
  letter-spacing: -0.02em;
}

.header-badge {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 16px;
  border-radius: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  animation: pulse 3s ease-in-out infinite;
}

/* ===== NAV MODERNO ===== */
nav {
  background: linear-gradient(135deg, #1e293b 0%, #1f2937 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
  transition: left 0.5s;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover,
nav a.active {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* ===== MAIN ===== */
main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 24px;
}

.product-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== GALLERY MODERNA ===== */
.gallery-section {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease;
}

.gallery-section:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}

.gallery-section h2 {
  font-size: 1.05rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  font-weight: 600;
}

.main-img-wrap {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  cursor: zoom-in;
  position: relative;
  transition: all 0.4s ease;
}

.main-img-wrap:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

#mainImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.main-img-wrap:hover #mainImg {
  transform: scale(1.12) rotate(2deg);
}

.thumbs {
  display: none;
}

.zoom-btn {
  margin-top: 16px;
  background: transparent;
  border: 2px solid #2563eb;
  color: #2563eb;
  padding: 10px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.zoom-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #2563eb;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.zoom-btn:hover::before {
  width: 300px;
  height: 300px;
}

.zoom-btn:hover {
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.zoom-btn span {
  position: relative;
  z-index: 1;
}

/* ===== DESCRIPTION MODERNA ===== */
.desc-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  animation: fadeIn 0.7s ease;
}

.desc-section:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.desc-section h2 {
  font-size: 1.2rem;
  color: #2563eb;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.desc-text {
  line-height: 1.9;
  color: #475569;
  font-size: 1rem;
}

.edit-btn {
  margin-top: 18px;
  background: transparent;
  border: 2px dashed #2563eb;
  color: #2563eb;
  padding: 9px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.edit-btn:hover {
  background: #2563eb;
  color: #fff;
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.edit-area {
  display: none;
  margin-top: 16px;
  animation: fadeIn 0.4s ease;
}

.edit-area textarea {
  width: 100%;
  min-height: 150px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.97rem;
  resize: vertical;
  font-family: inherit;
  line-height: 1.8;
  transition: border-color 0.3s ease;
}

.edit-area textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.save-btn {
  margin-top: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 10px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.save-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.cancel-btn {
  background: transparent;
  border: 2px solid #cbd5e1;
  color: #64748b;
  padding: 9px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

/* ===== SPECS MODERNA ===== */
.specs-section {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease;
}

.specs-section:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}

.specs-section h2 {
  font-size: 1.2rem;
  color: #111827;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  border-radius: 12px;
  overflow: hidden;
}

table tr:nth-child(even) {
  background: #f8fafc;
}

table tr {
  transition: all 0.2s ease;
}

table tr:hover {
  background: #eff6ff;
  transform: scale(1.01);
}

table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

table td:first-child {
  font-weight: 600;
  color: #1e293b;
  width: 40%;
  border-right: 2px solid #e5e7eb;
  background: linear-gradient(90deg, #f9fafb 0%, transparent 100%);
}

table td:last-child {
  color: #475569;
}

table tr:last-child td {
  border-bottom: none;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  color: #6b7280;
  text-align: center;
  padding: 32px 24px;
  font-size: 0.88rem;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .main-img-wrap {
    height: 280px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 18px;
  }

  .header-title {
    font-size: 1.2rem;
  }

  .gallery-section,
  .desc-section,
  .specs-section {
    padding: 24px;
  }

  nav {
    padding: 12px;
  }

  nav a {
    font-size: 0.8rem;
    padding: 7px 14px;
  }

  .back-btn {
    font-size: 0.85rem;
    padding: 7px 16px;
  }

  table td {
    padding: 12px 14px;
  }

  table td:first-child {
    width: 50%;
  }
}

/* ===== SCROLL REVEAL (opcional) ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
