/* ====================================================================
   PRODUCT DETAILS PAGE - Página de Detalhes do Produto
   Conversão do modal de edição em página completa dentro da MAIN
   ==================================================================== */

/* Página de Detalhes - Hidden por padrão */
.product-details-page {
  display: none;
}

.product-details-page.visible {
  display: block;
}

/* Header da Página */
.product-details-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px 32px;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
  position: relative;
}

.btn-back {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(-4px);
}

.btn-back i {
  font-size: 16px;
}

.product-details-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-details-header-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
}

.product-details-header-text {
  flex: 1;
}

.product-details-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.product-details-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 12px 0;
}

/* Breadcrumbs */
.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  font-size: 14px;
}

.breadcrumb-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* Tabs de Navegação */
.product-details-tabs {
  display: flex;
  gap: 4px;
  background: #f8f9fa;
  padding: 8px 32px 0 32px;
  border-bottom: 2px solid #e9ecef;
}

.product-details-tab {
  background: none;
  border: none;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.product-details-tab:hover {
  background: rgba(102, 126, 234, 0.08);
  color: #667eea;
}

.product-details-tab.active {
  background: white;
  color: #667eea;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.product-details-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #667eea;
}

.product-details-tab i {
  font-size: 16px;
}

/* Body com Conteúdo */
.product-details-body {
  background: white;
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Tab Content */
.product-details-body .tab-content {
  display: none;
}

.product-details-body .tab-content.active {
  display: block;
}

/* Tab Sections */
.product-details-body .tab-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.product-details-body .tab-section:last-child {
  margin-bottom: 0;
}

.product-details-body .tab-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
}

.product-details-body .tab-section-title i {
  color: #667eea;
  font-size: 20px;
}

/* Footer com Ações */
.product-details-footer {
  background: white;
  padding: 20px 32px;
  border-top: 2px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  bottom: 0;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.product-details-footer-left {
  display: flex;
  gap: 12px;
}

.product-details-footer-right {
  display: flex;
  gap: 12px;
}

/* Responsividade */
@media (max-width: 768px) {
  .product-details-header {
    padding: 20px;
  }

  .product-details-title {
    font-size: 22px;
  }

  .product-details-tabs {
    padding: 8px 20px 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-details-tab {
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .product-details-tab span {
    display: none;
  }

  .product-details-body {
    padding: 20px;
  }

  .product-details-footer {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .product-details-footer-left,
  .product-details-footer-right {
    width: 100%;
    flex-direction: column;
  }

  .product-details-footer button {
    width: 100%;
  }
}

/* Animação de entrada */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.product-details-page.visible {
  animation: slideInFromRight 0.3s ease-out;
}
