/* Product Detail Page Styles */

/* Fix for navbar overlap */
.product-detail {
  margin-top: 70px;
}

.product-detail-hero {
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0));
  padding: 3rem 0 1.5rem;
}

.product-detail .subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.product-detail-body {
  padding: 2rem 0 4rem;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary-color);
}

/* Product Grid Layout */
.pd-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product Images */
.pd-media {
  animation: fadeInUp 0.6s ease;
}

.pd-main-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #f5f5f5;
}

.pd-main-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.pd-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pd-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: var(--transition);
}

.pd-thumb:hover,
.pd-thumb.active {
  opacity: 1;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* Product Info */
.pd-info {
  animation: fadeInUp 0.6s ease 0.1s both;
}

.pd-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.pd-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Features Section */
.pd-features {
  margin-bottom: 2rem;
}

.pd-features h4,
.pd-specs h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.pd-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.pd-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Specifications Table */
.pd-specs {
  margin-bottom: 2rem;
}

.pd-specs table {
  width: 100%;
  border-collapse: collapse;
}

.pd-specs td {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.pd-specs td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 40%;
}

.pd-specs td:last-child {
  color: var(--text-secondary);
}

/* Action Buttons */
.pd-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.pd-actions .btn {
  min-width: 180px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
}

/* Not Found State */
.pd-not-found {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.pd-not-found p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pd-main-image img {
    height: 350px;
  }
  
  .pd-info h2 {
    font-size: 1.5rem;
  }
  
  .pd-actions {
    flex-direction: column;
  }
  
  .pd-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-detail-hero {
    padding: 2rem 1rem 1rem;
  }
  
  .pd-main-image img {
    height: 250px;
  }
  
  .pd-thumb {
    width: 60px;
    height: 60px;
  }
  
  .pd-desc {
    font-size: 1rem;
  }
}

