/* Product Page Specific Styles */

.product-page {
  padding: 1.5rem 0 5rem;
}

@media (min-width: 768px) {
  .product-page {
    padding: 2.5rem 0 5rem;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

/* Product Media */
.product-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-hero {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.play-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.play-button:hover .play-content {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product UGC */
.product-ugc {
  margin-top: 2.5rem;
  max-width: 500px;
  margin: 2.5rem auto 0;
}

.ugc-dense {
  border-radius: 1rem;
}

/* Product Sidebar */
.product-sidebar {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

@media (min-width: 1024px) {
  .product-sidebar {
    top: 1.5rem;
  }
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .product-title {
    font-size: 2.25rem;
  }
}

.product-subtitle {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

.star.filled {
  color: var(--amber-600);
  fill: var(--amber-600);
}

.rating-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Product Options */
.product-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.options-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.color-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.color-option {
  cursor: pointer;
}

.color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-label {
  display: block;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: var(--background);
}

.color-option input:checked + .color-label {
  border-color: var(--foreground);
  background: var(--accent);
}

.color-option:hover .color-label {
  border-color: var(--muted-foreground);
}

.size-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.size-option {
  cursor: pointer;
}

.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-label {
  display: block;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: var(--background);
}

.size-option input:checked + .size-label {
  border-color: var(--foreground);
  background: var(--accent);
}

.size-option:hover .size-label {
  border-color: var(--muted-foreground);
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 0.75rem;
}

.product-actions .btn {
  border-radius: 0.75rem;
}

.product-actions .btn-primary {
  flex: 1;
}

/* Shipping Info */
.shipping-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.shipping-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.shipping-item svg {
  flex-shrink: 0;
}

.product-separator {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

/* Product Description */
.product-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.product-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.highlight-item svg {
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* Reviews Section */
.reviews-section {
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .reviews-section {
    margin-top: 6rem;
  }
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.reviews-title {
  font-size: 1.5rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .reviews-title {
    font-size: 1.875rem;
  }
}

.reviews-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-btn:hover {
  background: var(--accent);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-header {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.review-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.review-date {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.review-rating {
  margin-left: auto;
  display: flex;
  gap: 0.125rem;
}

.review-rating .star {
  width: 1rem;
  height: 1rem;
}

.review-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .product-sidebar {
    position: static;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .btn-primary {
    flex: none;
  }
}

@media (max-width: 767px) {
  .reviews-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .reviews-filters {
    justify-content: space-between;
  }
  
  .product-highlights {
    grid-template-columns: 1fr;
  }
  
  .color-options {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .size-options {
    grid-template-columns: repeat(2, 1fr);
  }
}