/* Product Detail Page Styles */
.product-detail-section {
  padding: 60px 0;
}

.product-detail-container {
  display: flex;
  margin-bottom: 60px;
}

.product-gallery {
  width: 45%;
  padding-right: 40px;
}

.product-gallery-main {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.product-gallery-main img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-gallery-main:hover img {
  transform: scale(1.02);
}

.product-thumbnails {
  display: flex;
  gap: 10px;
}

.product-thumbnail {
  width: 75px;
  height: 75px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.product-thumbnail.active {
  border-color: #3a86ff;
  opacity: 1;
}

.product-thumbnail:hover {
  opacity: 1;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  width: 55%;
}

.product-details h1 {
  font-size: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.product-rating i {
  color: #ffc107;
  margin-right: 3px;
}

.product-rating span {
  color: #666;
  margin-left: 8px;
  font-size: 14px;
}

.product-price-detail {
  margin-bottom: 20px;
}

.price {
  font-size: 28px;
  font-weight: 600;
  color: #3a86ff;
}

.old-price {
  font-size: 20px;
  color: #888;
  text-decoration: line-through;
  margin-right: 10px;
}

.product-availability {
  margin-bottom: 20px;
}

.in-stock {
  color: #4caf50;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-description {
  margin-bottom: 25px;
  color: #555;
  line-height: 1.6;
}

.product-specs {
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.product-spec {
  display: flex;
  gap: 10px;
}

.spec-label {
  font-weight: 500;
  color: #333;
}

.spec-value {
  color: #666;
}

.product-quantity {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  gap: 15px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.quantity-btn {

  border: none;
  width: 40px;
  height: 40px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.quantity-btn:hover {
  background: #e5e5e5;
}

.quantity-input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 16px;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.product-actions .btn {
  padding: 12px 25px;
  font-size: 16px;
}

.add-to-cart-large {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wishlist-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-meta {
  margin-bottom: 25px;
  padding-top: 25px;
  border-top: 1px solid #eee;
}

.meta-item {
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}

.meta-label {
  font-weight: 500;
  color: #333;
  width: 80px;
}

.meta-value {
  color: #666;
}

.product-share {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-share span {
  font-weight: 500;
}

.product-share a {
  color: #666;
  font-size: 18px;
  transition: color 0.2s;
}

.product-share a:hover {
  color: #3a86ff;
}

/* Tabs */
.product-tabs {
  margin-bottom: 60px;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 15px 25px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-btn:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3a86ff;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.tab-btn.active {
  color: #3a86ff;
}

.tab-btn.active:after {
  transform: scaleX(1);
}

.tab-content {
  min-height: 300px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-pane p {
  line-height: 1.7;
  color: #555;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 12px 0;
}

.specs-table .spec-name {
  width: 30%;
  color: #333;
  font-weight: 500;
}

.specs-table .spec-value {
  color: #666;
}

/* Reviews */
.reviews-summary {
  display: flex;
  margin-bottom: 40px;
  gap: 40px;
}

.average-rating {
  text-align: center;
  padding-right: 40px;
  border-right: 1px solid #eee;
}

.rating-number {
  font-size: 48px;
  font-weight: 600;
  color: #333;
  line-height: 1;
  margin-bottom: 10px;
}

.rating-stars {
  color: #ffc107;
  font-size: 20px;
  margin-bottom: 10px;
}

.rating-count {
  color: #666;
  font-size: 14px;
}

.rating-bars {
  flex: 1;
}

.rating-bar {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.bar-label {
  width: 60px;
  color: #666;
  font-size: 14px;
}

.bar-container {
  flex: 1;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: #ffc107;
}

.bar-count {
  width: 30px;
  color: #666;
  font-size: 14px;
  text-align: right;
}

.review-list {
  margin-bottom: 30px;
}

.review-item {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reviewer-name {
  font-weight: 500;
  margin-bottom: 5px;
}

.review-date {
  color: #888;
  font-size: 14px;
}

.review-rating {
  color: #ffc107;
}

.review-content p {
  color: #555;
  line-height: 1.6;
}

.review-btn {
  width: 100%;
  max-width: 200px;
}

/* Related Products */
.related-products h2 {
  margin-bottom: 30px;
  font-size: 26px;
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .product-detail-container {
    flex-direction: column;
  }
  
  .product-gallery,
  .product-details {
    width: 100%;
    padding-right: 0;
  }
  
  .product-gallery {
    margin-bottom: 40px;
  }
  
  .reviews-summary {
    flex-direction: column;
    gap: 30px;
  }
  
  .average-rating {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-detail-section {
    padding: 40px 0;
  }
  
  .product-specs {
    grid-template-columns: 1fr;
  }
  
  .tab-header {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }
  
  .tab-btn {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-thumbnails {
    flex-wrap: wrap;
  }
  
  .product-thumbnail {
    width: calc(25% - 8px);
  }
  
  .product-details h1 {
    font-size: 24px;
  }
  
  .price {
    font-size: 24px;
  }
  
  .old-price {
    font-size: 18px;
  }
  
  .product-meta {
    flex-direction: column;
  }
  
  .meta-item {
    flex-direction: column;
    gap: 5px;
  }
  
  .meta-label {
    width: auto;
  }
  
  .tab-btn {
    padding: 10px;
    font-size: 13px;
  }
} 