/* =========================================
   PRODUCT PAGE - CSS Exclusivo
   Zait.ag - Páginas de Produto Individual
   Design Premium, Moderno e Funcional
   ========================================= */

/* =========================================
   ANIMAÇÕES
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* =========================================
   LAYOUT BASE
   ========================================= */
.product-page {
  background: var(--zait-bg-darker);
  color: var(--zait-text-light);
  min-height: 100vh;
}

.product-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   BREADCRUMB
   ========================================= */
.product-breadcrumb {
  padding: 20px 0;
  background: var(--zait-bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--zait-text-muted);
}

.product-breadcrumb-list li a {
  color: var(--zait-text-muted);
  transition: var(--zait-transition-fast);
}

.product-breadcrumb-list li a:hover {
  color: var(--zait-green-light);
}

.product-breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.3);
}

.product-breadcrumb-list li:last-child {
  color: var(--zait-green-light);
  font-weight: 500;
}

/* =========================================
   HERO DO PRODUTO
   ========================================= */
.product-hero {
  padding: clamp(20px, 8vw, 40px) 0;
  background: linear-gradient(180deg, var(--zait-bg-dark) 0%, var(--zait-bg-darker) 100%);
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(185, 207, 56, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (max-width: 968px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =========================================
   GALERIA DE IMAGENS
   ========================================= */
.product-gallery {
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

.product-gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--zait-radius-lg);
  overflow: hidden;
  background: var(--zait-text-light);
  margin-bottom: 16px;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-gallery-main:hover img {
  transform: scale(1.02);
}

/* Zoom button */
.product-gallery-zoom {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--zait-transition-fast);
  z-index: 2;
}

.product-gallery-zoom:hover {
  background: var(--zait-green-light);
  transform: scale(1.1);
}

.product-gallery-zoom svg {
  width: 20px;
  height: 20px;
  stroke: var(--zait-text-light);
  transition: var(--zait-transition-fast);
}

.product-gallery-zoom:hover svg {
  stroke: var(--zait-text-dark);
}

/* Thumbnails */
.product-gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--zait-green-light) transparent;
}

.product-gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--zait-green-light);
  border-radius: 2px;
}

.product-gallery-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: var(--zait-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--zait-transition-fast);
  background: var(--zait-dark-light);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-gallery-thumb:hover {
  border-color: rgba(185, 207, 56, 0.5);
}

.product-gallery-thumb:hover img {
  transform: scale(1.1);
}

.product-gallery-thumb.active {
  border-color: var(--zait-green-light);
}

/* =========================================
   INFO DO PRODUTO
   ========================================= */
.product-info {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.product-category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(185, 207, 56, 0.1);
  border: 1px solid rgba(185, 207, 56, 0.3);
  color: var(--zait-green-light);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.product-category-label svg {
  width: 16px;
  height: 16px;
}

.product-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--zait-text-light);
}

.product-title span {
  color: var(--zait-green-light);
}

.product-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--zait-text-muted);
  margin-bottom: 20px;
  text-align: justify;
}

/* Lista de Features */
.product-features-list {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.product-feature-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--zait-radius-md);
  transition: var(--zait-transition-fast);
}

.product-feature-item:hover {
  background: rgba(185, 207, 56, 0.05);
  border-color: rgba(185, 207, 56, 0.2);
  transform: translateX(8px);
}

.product-feature-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--zait-green-light);
}

.product-feature-icon svg {
  width: 100%;
  height: 100%;
}

.product-feature-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--zait-light-primary);
  flex: 1;
  word-break: break-word;
}

/* Actions */
.product-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 60px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--zait-transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.product-btn svg {
  width: 20px;
  height: 20px;
}

.product-btn-primary {
  background: var(--zait-green-light);
  color: var(--zait-text-dark);
}

.product-btn-primary:hover {
  border-color: var(--zait-green-dark);
}

.product-btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--zait-text-light);
}

.product-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--zait-text-light);
}

/* =========================================
   TABS DE CONTEÚDO
   ========================================= */
.product-tabs {
  background: var(--zait-bg-white);
  padding: clamp(20px, 6vw, 40px) 0;
  display: flex;
  flex-direction: column;
}

.product-tabs-header {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  max-width: 1280px;
  padding: 0 20px;
}

.product-tab-btn,
.product-papelaria-btn {
  padding: 12px 20px;
  background: rgba(185, 207, 56, 0.12);
  border: none;
  border-radius: 24px;
  font-family: "Galano Grotesque", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #676767;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.product-tab-btn:hover,
.product-papelaria-btn:hover {
  background: rgba(114, 121, 39, 0.15);
  color: var(--zait-text-dark);
}

.product-tab-btn.active {
  background: var(--zait-green-light);
  color: var(--zait-text-dark);
  box-shadow: 0 2px 8px rgba(185, 207, 56, 0.25);
}

.product-tab-btn.active:hover {
  background: #A6BA32;
}

.product-papelaria-btn svg {
  width: 16px;
  height: 16px;
}

.product-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.product-tab-content.active {
  display: block;
}

/* Características - Clean & Minimal */
.product-characteristics {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.product-characteristics-list {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.product-characteristics-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #2C2C2C;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.product-characteristics-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: #B9CF38;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.product-characteristics-list li:hover {
  background: rgba(185, 207, 56, 0.08);
  border-left-color: #B9CF38;
  padding-left: 24px;
}

.product-characteristics-list li:hover::before {
  transform: scale(1.3);
}

/* Papelaria/Downloads */
.product-downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: flex-start;
}

.product-download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: transparent;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.product-download-card:hover {
  background: rgba(185, 207, 56, 0.08);
  border-left-color: #B9CF38;
}

.product-download-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  background: rgba(185, 207, 56, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-download-icon svg {
  width: 24px;
  height: 24px;
  stroke: #727A27;
}

.product-download-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--zait-text-dark);
  margin-bottom: 4px;
}

.product-download-info span {
  font-size: 13px;
  color: #676767;
}

/* Tecnologia Grid */
.product-technology-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.product-technology {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  align-items: start;
}

.product-technology:hover {
  background: rgba(185, 207, 56, 0.08);
  border-left-color: #B9CF38;
  transform: translateX(8px);
}

.product-technology-image {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-technology-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.product-technology h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2C2C2C;
  margin-bottom: 12px;
}

.product-technology p {
  font-size: 15px;
  line-height: 1.6;
  color: #4A4A4A;
  margin-bottom: 8px;
}

.product-technology p.justify {
  text-align: justify;
}

@media (max-width: 768px) {
  .product-technology {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .product-technology-image {
    height: 200px;
  }
}

/* =========================================
   ESPECIFICAÇÕES TÉCNICAS
   ========================================= */
.product-specs {
  background: var(--zait-bg-dark);
  padding: clamp(30px, 8vw, 60px) 0;
  scroll-margin-top: clamp(60px, 8vw, 60px);
}

.product-specs-header {
  text-align: center;
}

.product-specs-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--zait-green-light);
}

.product-specs-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--zait-text-light);
  text-transform: lowercase;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* Tabela de Especificações */
.product-specs-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--zait-radius-lg);
  overflow: hidden;
  text-align: center;
}

.product-specs-table-title {
  padding: 18px 32px;
  background: rgba(185, 207, 56, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 18px;
  font-weight: 600;
  color: var(--zait-green-light);
}

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.product-specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--zait-transition-fast);
}

.product-specs-table tr:last-child {
  border-bottom: none;
}

.product-specs-table tr:hover {
  background: rgba(185, 207, 56, 0.03);
}

.product-specs-table td {
  padding: 20px 32px;
  font-size: 15px;
  vertical-align: middle;
  text-align: center;
}

.product-specs-table td:first-child {
  width: 50%;
  color: var(--zait-text-muted);
  font-weight: 500;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.product-specs-table td:last-child {
  width: 50%;
  color: var(--zait-text-light);
}

@media (max-width: 600px) {
  .product-specs-table-wrapper {
    overflow-x: auto;
    margin: 0 16px;
  }

  .product-specs-table-title {
    padding: 16px 20px;
    font-size: 16px;
    text-align: center;
  }

  .product-specs-table {
    display: block;
  }

  .product-specs-table tbody {
    display: block;
  }

  .product-specs-table tr {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .product-specs-table td {
    display: block;
    padding: 6px 20px;
    width: auto;
    max-width: 100%;
    border: none;
    text-align: center;
  }

  .product-specs-table td:first-child {
    padding-bottom: 8px;
    color: var(--zait-green-light);
    font-size: 13px;
    border-right: none;
    width: auto;
  }

  .product-specs-table td:last-child {
    padding-top: 0;
    font-size: 14px;
    width: auto;
  }
}

/* =========================================
   PRODUTOS RELACIONADOS
   ========================================= */
.product-related {
  background: var(--zait-text-light);
  padding: clamp(30px, 8vw, 60px) 0;
}

.product-related-header {
  text-align: center;
  margin-bottom: 48px;
}

.product-related-header .product-specs-label {
  color: var(--footer-green-medium);
}

.product-related-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--zait-text-dark);
  letter-spacing: 0;
  line-height: 1.2;
}

.product-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

/* =========================================
   CTA FINAL
   ========================================= */
.product-cta {
  background: var(--header-green-light);
  padding: clamp(30px, 8vw, 60px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-cta::before,
.product-cta::after {
  content: none !important;
  display: none !important;
}

.product-cta *::before,
.product-cta *::after {
  content: none !important;
  display: none !important;
}

.product-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.product-cta-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--zait-text-dark);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.product-cta-desc {
  font-size: 18px;
  color: rgba(30, 33, 38, 0.8);
  margin-bottom: 32px;
}

.product-cta .product-btn-primary {
  background: var(--zait-bg-dark);
  color: var(--zait-text-light);
}

.product-cta .product-btn-primary:hover {
  background: var(--zait-bg-darker);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================
   MODAL DE ZOOM
   ========================================= */
.product-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-zoom-modal.active {
  display: flex;
  opacity: 1;
}

.product-zoom-modal img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--zait-radius-md);
}

.product-zoom-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--zait-transition-fast);
}

.product-zoom-close:hover {
  background: var(--zait-green-light);
}

.product-zoom-close svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.product-zoom-close:hover svg {
  stroke: var(--zait-text-dark);
}

/* =========================================
   RESPONSIVO
   ========================================= */
@media (max-width: 768px) {
  .product-features-list {
    display: flex;
    width: 100%;
    align-items: stretch;
  }

  .product-feature-item {
    display: flex;
    width: 100%;
    max-width: 100%;
  }

  .product-feature-text {
    font-size: 14px;
  }

  .product-characteristics {
    padding: 0 16px;
  }

  .product-characteristics-list {
    display: flex;
    width: 100%;
  }

  .product-characteristics-list li {
    font-size: 14px;
    padding: 12px 16px;
  }

  .product-characteristics-list li::before {
    align-self: flex-start;
    margin-top: 6px;
  }

  .product-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .product-btn {
    width: 100%;
  }

  .product-tabs-header {
    gap: 4px;
  }

  .product-tab-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .product-gallery-thumb {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .product-page .container {
    padding: 0 16px;
  }
  
  .product-specs-table td {
    padding: 12px 16px;
  }
  
  .product-specs-table-title {
    padding: 20px 16px;
  }
}
