/* Product Gallery Components */

/* Product Detail Grid */
.product-detail-hero {
  padding: var(--spacing-xl) 0;
  background: var(--light);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.gallery-main {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 4/3;
  position: relative;
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.gallery-thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.gallery-thumbnail:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.gallery-thumbnail.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Purchase Summary */
.purchase-summary {
  background: var(--dark-secondary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent);
  height: fit-content;
  position: sticky;
  top: var(--spacing-lg);
}

.product-summary-content h2 {
  color: var(--light);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.product-summary-description {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.product-uses-summary {
  margin-bottom: var(--spacing-lg);
}

.product-uses-summary h3 {
  color: var(--light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.product-uses-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-uses-summary li {
  color: var(--text-muted);
  padding: var(--spacing-xs) 0;
  position: relative;
  padding-left: var(--spacing-md);
}

.product-uses-summary li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.purchase-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.contact-quick {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--accent);
  text-align: center;
}

.contact-quick p {
  color: var(--text-muted);
  margin: var(--spacing-xs) 0;
}

.contact-quick a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
}

.contact-quick a:hover {
  color: var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .product-gallery {
    order: 1;
  }
  
  .purchase-summary {
    order: 2;
    position: static;
    margin-top: var(--spacing-lg);
  }
  
  .gallery-thumbnails {
    justify-content: center;
  }
  
  .gallery-thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .purchase-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .gallery-main {
    aspect-ratio: 3/2;
  }
  
  .gallery-thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .product-summary-content h2 {
    font-size: 1.5rem;
  }
  
  .purchase-summary {
    padding: var(--spacing-lg);
  }
}