/* Product Details Page Styles */

.product-details {
  display: flex;
  gap: 40px;
  padding: 40px 0;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.product-gallery {
  flex: 1;
  max-width: 500px;
}

.product-image {
  width: 50%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
}

.product-image img {
  width: 80%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--primary, #4361ee);
}

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

.product-info {
  flex: 1;
  max-width: 500px;
  padding: 20px;
}

.product-category {
  color: var(--gray, #6c757d);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 500;
}

.product-info h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--dark, #212529);
  line-height: 1.2;
  font-weight: 700;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-rating .stars {
  display: flex;
  gap: 2px;
}

.product-rating ion-icon {
  color: #ffc107;
  font-size: 1.3rem;
}

.rating-count {
  color: var(--gray, #6c757d);
  font-size: 0.9rem;
}

.product-stock {
  color: var(--success, #28a745);
  font-weight: 500;
  font-size: 0.9rem;
}

.product-stock.out-of-stock {
  color: var(--danger, #dc3545);
}

.product-price-section {
  margin-bottom: 25px;
  padding: 20px;
  background: var(--light, #f8f9fa);
  border-radius: 8px;
}

.current-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary, #4361ee);
  margin-bottom: 5px;
}

.original-price {
  font-size: 1.3rem;
  color: var(--gray, #6c757d);
  text-decoration: line-through;
  margin-right: 10px;
}

.discount-badge {
  background: var(--danger, #dc3545);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--sonic-silver, #6c757d);
  margin-bottom: 30px;
}

.product-features {
  margin-bottom: 30px;
}

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

.product-features li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
  color: var(--sonic-silver, #6c757d);
}

.product-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success, #28a745);
  font-weight: bold;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.quantity-label {
  font-weight: 600;
  color: var(--dark, #212529);
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.quantity-btn {
  background: var(--light, #f8f9fa);
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.quantity-btn:hover {
  background: #e9ecef;
}

.quantity-input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  background: white;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.add-to-cart-btn {
  background: var(--primary, #4361ee);
  color: white;
  border: none;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.add-to-cart-btn:hover {
  background: var(--secondary, #3a0ca3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.wishlist-btn {
  background: white;
  color: var(--dark, #212529);
  border: 2px solid #e0e0e0;
  padding: 15px 20px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wishlist-btn:hover {
  border-color: var(--primary, #4361ee);
  color: var(--primary, #4361ee);
}

.product-meta-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--sonic-silver, #6c757d);
}

.meta-item ion-icon {
  color: var(--primary, #4361ee);
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-details {
    gap: 30px;
    padding: 30px 20px;
  }
  
  .product-info h1 {
    font-size: 2rem;
  }
  
  .current-price {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .product-details {
    flex-direction: column;
    gap: 25px;
    padding: 20px 15px;
  }
  
  .product-gallery,
  .product-info {
    max-width: 100%;
  }
  
  .product-info h1 {
    font-size: 1.8rem;
  }
  
  .current-price {
    font-size: 1.8rem;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .add-to-cart-btn,
  .wishlist-btn {
    flex: none;
  }
  
  .product-meta {
    gap: 15px;
  }
  
  .thumbnail-gallery {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .product-details {
    padding: 15px 10px;
  }
  
  .product-info h1 {
    font-size: 1.6rem;
  }
  
  .current-price {
    font-size: 1.6rem;
  }
  
  .product-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .quantity-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}