/* ============================================================
   PRODUCT DETAIL PREMIUM - Design Profissional
============================================================ */

/* Variables */
:root {
  --primary: #034AA6;
  --primary-light: #025a8e;
  --accent: #05F2DB;
  --accent-light: rgba(5, 242, 219, 0.1);
  --bg-deep: #060b14;
  --bg-card: #0f1c2e;
  --bg-card2: #132035;
  --border: #1e3a5f;
  --text: #e2ecf5;
  --text-muted: #7a9bbf;
  --text-dim: #4a6a8a;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* ============================================================
   BREADCRUMB
============================================================ */

.breadcrumb-container {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-link:hover {
  color: var(--white);
}

.breadcrumb-link svg {
  width: 16px;
  height: 16px;
}

.breadcrumb-divider {
  color: var(--text-dim);
}

.breadcrumb-current {
  color: var(--text-muted);
}

/* ============================================================
   HERO SECTION
============================================================ */

.product-hero-premium {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(5,242,219,0.02) 0%, transparent 100%);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Gallery Section */
.product-gallery-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-main-large {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card2) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-main-large:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(5, 242, 219, 0.15);
}

.gallery-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-main-large:hover .gallery-img-main {
  transform: scale(1.05);
}

.gallery-main-large:hover .gallery-overlay {
  opacity: 1;
}

.gallery-main__status {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--status-color, var(--accent));
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(5, 242, 219, 0.3);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: var(--transition);
  gap: 0.75rem;
  color: white;
  font-size: 0.9rem;
  z-index: 1;
}

.gallery-overlay svg {
  width: 40px;
  height: 40px;
}

.gallery-grid-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.gallery-grid-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: 12px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-grid-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.gallery-grid-item:hover img {
  transform: scale(1.1);
}

.gallery-grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 242, 219, 0.2);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-grid-item:hover .gallery-grid-overlay {
  opacity: 1;
}

.gallery-grid-overlay svg {
  color: var(--accent);
}

/* Product Info Section */
.product-info-premium {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.product-title-premium {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}

@media (max-width: 768px) {
  .product-title-premium {
    font-size: 1.75rem;
  }
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
  font-size: 1.3rem;
  color: var(--accent);
}

.rating-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Price Section */
.product-price-premium {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: rgba(5, 242, 219, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (max-width: 600px) {
  .product-price-premium {
    flex-direction: column;
    align-items: flex-start;
  }
}

.price-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.price-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
}

.availability-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #22c55e;
  font-weight: 600;
  font-size: 0.9rem;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Description */
.product-description-short {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Features */
.product-features-premium {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.features-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Actions */
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .product-actions {
    grid-template-columns: 1fr;
  }
}

.btn {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(3, 74, 166, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-light);
}

.btn-lg {
  padding: 1.2rem 2rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1.4rem 2.5rem;
  width: 100%;
  font-size: 1rem;
}

/* Trust */
.product-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  gap: 1rem;
}

.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.trust-title {
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
}

.trust-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   SPECIFICATIONS SECTION
============================================================ */

.specs-premium-section {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 2rem 0;
  text-align: center;
}

.specs-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.spec-card-premium {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.spec-card-premium:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.spec-card-premium {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.spec-card-premium:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.spec-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 242, 219, 0.1);
  border-radius: 12px;
  color: var(--accent);
}

.spec-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.spec-card-premium h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.spec-card-premium p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================================
   DETAILS TABS
============================================================ */

.details-premium-section {
  padding: 4rem 0;
}

.tabs-container {
  max-width: 100%;
}

.tabs-header {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-btn svg {
  width: 18px;
  height: 18px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.description-content {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.description-content h2 {
  color: var(--white);
  margin-top: 1.5rem;
  font-size: 1.4rem;
}

.specs-table-premium {
  width: 100%;
  border-collapse: collapse;
}

.specs-table-premium tr {
  border-bottom: 1px solid var(--border);
}

.spec-key {
  padding: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  width: 35%;
}

.spec-value {
  padding: 1rem;
  color: var(--text);
}

/* ============================================================
   FORM SECTION
============================================================ */

.form-premium-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(5,242,219,0.02) 100%);
}

.form-premium-content {
  max-width: 700px;
  margin: 0 auto;
}

.form-header-premium {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header-premium h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.75rem 0;
}

.form-header-premium p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.form-premium {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(5, 242, 219, 0.2);
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 8px;
}

.form-check-group input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-check-group label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-check-group a {
  color: var(--accent);
  text-decoration: underline;
}

.form-product-ref {
  padding: 1rem;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.form-product-ref strong {
  color: var(--accent);
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* ============================================================
   RELATED PRODUCTS SECTION
============================================================ */

.related-products-section {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0.5rem 0 0 0;
}

.products-grid-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.product-card-related {
  height: 100%;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  transition: var(--transition);
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-card2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card-related:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card-related:hover .product-card-overlay {
  opacity: 1;
}

.view-button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #000;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--badge-color, var(--accent));
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.product-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.product-card-related:hover .product-card-title {
  color: var(--accent);
}

.product-card-category {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--accent);
}

.product-card-price {
  font-weight: 700;
}

/* ============================================================
   LIGHTBOX
============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  width: 95%;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: slideIn 0.3s ease;
  padding: 0;
}

@keyframes slideIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#lightbox-image {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(5, 242, 219, 0.2);
  border: 2px solid rgba(5, 242, 219, 0.6);
  color: var(--accent);
  cursor: pointer;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(5, 242, 219, 0.2);
}

.lightbox-close:hover {
  background: rgba(5, 242, 219, 0.4);
  box-shadow: 0 8px 20px rgba(5, 242, 219, 0.5);
  transform: scale(1.1);
}

.lightbox-close:active {
  transform: scale(0.95);
}

.lightbox-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(5, 242, 219, 0.3);
  border: 2px solid rgba(5, 242, 219, 0.8);
  color: var(--accent);
  font-size: 3rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(5, 242, 219, 0.3);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(5, 242, 219, 0.6);
  box-shadow: 0 8px 24px rgba(5, 242, 219, 0.6);
  transform: scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .products-grid-carousel {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .product-hero-premium {
    padding: 2rem 0;
  }

  .product-title-premium {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .specs-grid-premium {
    grid-template-columns: 1fr;
  }

  .product-trust {
    grid-template-columns: 1fr;
  }

  .products-grid-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 0.8rem;
  }

  .product-hero-grid {
    gap: 1.5rem;
  }

  .product-title-premium {
    font-size: 1.25rem;
  }

  .price-value {
    font-size: 1.75rem;
  }

  .products-grid-carousel {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}