/**
 * Product Page Styles - LPG Brasil
 * Estilos específicos da página de detalhes do produto
 */

/* ========== BREADCRUMB ========== */

.breadcrumb {
  padding-top: calc(var(--header-height) + var(--space-lg));
  padding-bottom: var(--space-lg);
  background: var(--bg-primary);
}

.breadcrumb__nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.breadcrumb__link {
  color: var(--text-secondary);
  font-size: var(--font-size-small);
  transition: color var(--transition-normal);
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__nav iconify-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.breadcrumb__current {
  color: var(--text-primary);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
}

/* ========== PRODUCT HERO ========== */

.product-hero {
  padding: var(--space-3xl) 0;
  background: var(--bg-primary);
}

.product-hero__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

/* Product Image */
.product-hero__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.product-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.product-hero__image:hover img {
  transform: scale(1.05);
}

.product-hero__badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: var(--shadow-glow);
}

/* Product Info */
.product-hero__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.product-hero__category {
  display: inline-block;
  font-size: var(--font-size-small);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  margin: 0;
}

.product-hero__description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Quick Specs */
.product-specs-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.spec-quick {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.spec-quick__label {
  font-size: var(--font-size-small);
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-quick__value {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

/* Actions */
.product-hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.product-hero__actions .btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ========== PRODUCT DETAILS ========== */

.product-details {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.product-section {
  margin-bottom: var(--space-4xl);
}

.product-section:last-child {
  margin-bottom: 0;
}

.product-section__title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
}

.product-section__title iconify-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ========== SPECIFICATIONS GRID ========== */

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.spec-card {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.spec-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.spec-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.spec-card__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 50%;
  color: var(--color-primary);
  flex-shrink: 0;
  opacity: 0.7;
}

.spec-card__title {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.spec-card__value {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: calc(28px + var(--space-sm));
  margin: 0;
}

/* ========== RELATED PRODUCTS ========== */

.related-products {
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
}

.related-products__title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-md);
}

.related-products__description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.related-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.related-product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.related-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.related-product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  overflow: hidden;
  position: relative;
}

.related-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-normal);
}

.related-product-card:hover .related-product-card__image img {
  transform: scale(1.05);
}

.related-product-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-primary);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.related-product-card__content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.related-product-card__category {
  font-size: var(--font-size-small);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-product-card__title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--bg-primary);
  margin: 0;
}

.related-product-card__description {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: var(--line-height-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-products__cta {
  text-align: center;
}

/* ========== CTA SECTION ========== */

.cta-section {
  position: relative;
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
  background-image: url('../../imgs/bg2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.85);
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-card {
  padding: var(--space-3xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-card__title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.cta-card__description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2xl);
}

.cta-card__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== ANIMATIONS ========== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-hero__wrapper {
  animation: fadeInUp 0.6s ease-out;
}

.product-section {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.product-section:nth-child(1) { animation-delay: 0.1s; }
.product-section:nth-child(2) { animation-delay: 0.2s; }
.product-section:nth-child(3) { animation-delay: 0.3s; }

/* ========== RESPONSIVE ========== */

@media (min-width: 1024px) {
  .product-specs-quick {
    grid-template-columns: repeat(3, 1fr);
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .product-hero__wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .product-hero__image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .breadcrumb {
    padding-top: calc(var(--header-height) + var(--space-md));
    padding-bottom: var(--space-md);
  }

  .product-hero {
    padding: var(--space-2xl) 0;
  }

  .product-hero__title {
    font-size: 2rem;
  }

  .product-hero__description {
    font-size: 1rem;
  }

  .product-specs-quick {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
  }

  .product-hero__actions {
    flex-direction: column;
  }

  .product-hero__actions .btn {
    width: 100%;
  }

  .product-details {
    padding: var(--space-2xl) 0;
  }

  .product-section {
    margin-bottom: var(--space-2xl);
  }

  .product-section__title {
    font-size: 1.75rem;
    margin-bottom: var(--space-xl);
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .related-products {
    padding: var(--space-2xl) 0;
  }

  .related-products__title {
    font-size: 1.75rem;
  }

  .related-products__description {
    font-size: 1rem;
    margin-bottom: var(--space-2xl);
  }

  .related-products__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
  }

  .cta-section {
    padding: var(--space-2xl) 0;
    background-attachment: scroll;
  }

  .cta-card {
    padding: var(--space-2xl) var(--space-lg);
  }

  .cta-card__title {
    font-size: 1.75rem;
  }

  .cta-card__description {
    font-size: 1rem;
  }

  .cta-card__actions {
    flex-direction: column;
  }

  .cta-card__actions .btn {
    width: 100%;
  }
}
