/* Estilos específicos para páginas de detalle de producto */
/* Los estilos base (header, nav, footer) vienen de main.css */

main.container {
  flex: 1;
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  animation: fadeInUp 0.6s ease-out;
}

.product-image {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1), transparent 70%);
}

.product-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-info h2 {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.product-info > p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.specs {
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.specs h3 {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.specs ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.specs ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.specs ul li:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.specs ul li strong {
  color: var(--accent-primary);
  font-weight: 600;
  min-width: 120px;
}

.specs ul li span {
  color: var(--text-secondary);
}

.price-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.price-section .precio {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 700;
}

.price-section .precio span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.add-to-cart-btn {
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--accent-primary), #ff8c5a);
  border: none;
  border-radius: 14px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff8c5a, var(--accent-primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.add-to-cart-btn span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-to-cart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px var(--accent-glow);
}

.add-to-cart-btn:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  main.container {
    padding: 40px 16px;
  }
  
  .product-image {
    padding: 30px;
  }
  
  .product-info h2 {
    font-size: 28px;
  }
  
  .price-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .price-section .precio {
    font-size: 36px;
    text-align: center;
  }
  
  .add-to-cart-btn {
    width: 100%;
    justify-content: center;
  }
}
