/* Product Detail Page Styles */
.navbar {
  position: relative !important;
}
/* Product Detail Section */
.product-detail {
  padding: 40px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
  background-color: transparent;
  border: 1px solid #666;
}

.breadcrumb a {
  color: #f7a608;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #e6940a;
}

.breadcrumb span {
  color: #999;
}

.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Product Images */
.product-images {
  position: sticky;
  top: 100px;
}

.main-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.main-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.main-image:hover img {
  transform: scale(1.05);
}

.image-zoom {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border: 2px solid #d4af37;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.thumbnail {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: #f7a608;
  transform: scale(1.05);
}

/* Product Info */
.product-info {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.product-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c1810;
  margin-bottom: 10px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
}

.rating-text {
  color: #666;
  font-size: 0.9rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.current-price {
  font-size: 2rem;
  font-weight: 700;
  color: #f7a608;
}

.original-price {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
}

.product-description,
.product-features,
.product-ingredients {
  margin-bottom: 2rem;
}

.product-description h3,
.product-features h3,
.product-ingredients h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c1810;
  margin-bottom: 1rem;
}

.product-description p {
  color: #666;
  line-height: 1.8;
  font-size: 1rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: #f8f8f8;
  border-radius: 8px;
}

.feature-item i {
  color: #f7a608;
  font-size: 1.1rem;
}

.feature-item span {
  color: #2c1810;
  font-weight: 500;
}

.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ingredient {
  background: #f7a608;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Product Actions */
.product-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.quantity-btn {
  background: #f8f8f8;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c1810;
  transition: background 0.3s ease;
}

.quantity-btn:hover {
  background: #f7a608;
  color: white;
}

#quantity {
  border: none;
  width: 60px;
  height: 40px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #2c1810;
}

.add-to-cart-btn {
  background: #f7a608;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-to-cart-btn:hover {
  background: #e6940a;
  transform: translateY(-2px);
}

.favorite-btn {
  background: white;
  border: 2px solid #ddd;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn:hover,
.favorite-btn.active {
  border-color: #f7a608;
  color: #f7a608;
}

.favorite-btn.active i {
  color: #f7a608;
}

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

.meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-item strong {
  color: #2c1810;
  min-width: 80px;
}

.meta-item a {
  color: #f7a608;
  text-decoration: none;
}

.meta-item a:hover {
  text-decoration: underline;
}

.tag {
  background: #f0f0f0;
  color: #666;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}
.share-buttons a {
  color: white;
}
.share-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.share-btn:hover {
  transform: scale(1.1);
  text-decoration: none !important;
}

.share-btn.facebook {
  background: #3b5998;
}
.share-btn.twitter {
  background: #1da1f2;
}
.share-btn.whatsapp {
  background: #25d366;
}
.share-btn.instagram {
  background: #e4405f;
}

/* Side Dishes Section */
.side-dishes {
  padding: 20px 0;
}

.side-dishes h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.side-dishes p {
  text-align: center;
  color: #fafafa;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.side-dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.side-dish-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.side-dish-item:hover {
  transform: translateY(-5px);
}

.side-dish-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.side-dish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.side-dish-item:hover .side-dish-image img {
  transform: scale(1.1);
}

.side-dish-content {
  padding: 1rem;
  position: relative;
  background-color: #f7a608;
}

.side-dish-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: #2c1810;
}

.side-dish-content p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.side-dish-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f7a608;
  margin-bottom: 1rem;
}

.add-side-dish {
  position: absolute;
  top: -25px;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: #f7a608;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(247, 166, 8, 0.3);
}

.add-side-dish:hover {
  background: #e6940a;
  transform: scale(1.1);
}

/* Related Products */
.related-products {
  padding-bottom: 80px;
  background: #fafafa;
}

.related-products h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c1810;
  margin-bottom: 1rem;
}

.related-products p {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.related-product {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.related-product:hover {
  transform: translateY(-5px);
}

.related-product .product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.related-product .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(212, 175, 55, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-product:hover .product-overlay {
  opacity: 1;
}

.view-product {
  background: white;
  color: #d4af37;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-product:hover {
  background: #2c1810;
  color: white;
}

.related-product .product-content {
  padding: 1.5rem;
  display: flex;
}

.related-product .product-info-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.related-product .product-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c1810;
  margin: 0;
  flex: 1;
  line-height: 1.3;
  text-align: left;
  min-width: 0;
  word-wrap: break-word;
}

.related-product .product-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: #d4af37;
  margin: 0;
  white-space: nowrap;
  background: rgba(212, 175, 55, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.quick-add {
  background: #d4af37;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-add:hover {
  background: #b8941f;
  transform: translateY(-2px);
}

/* Reviews Section */
.reviews-section {
  padding: 80px 0;
  background: white;
}

.reviews-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c1810;
  margin-bottom: 3rem;
}

.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #f8f8f8;
  border-radius: 15px;
}

.overall-rating {
  text-align: center;
}

.rating-number {
  font-size: 3rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.rating-stars {
  color: #ffc107;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.rating-text {
  color: #666;
  font-size: 0.9rem;
}

.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rating-bar {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.fill {
  height: 100%;
  background: #d4af37;
  transition: width 0.3s ease;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.review-item {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 15px;
}

.review-header {
  margin-bottom: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

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

.reviewer-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c1810;
  margin-bottom: 0.3rem;
}

.review-rating {
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.review-date {
  color: #999;
  font-size: 0.8rem;
}

.review-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.load-more-reviews {
  display: block;
  margin: 0 auto;
  background: #d4af37;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-reviews:hover {
  background: #b8941f;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-images {
    position: static;
  }
  .product-header {
    flex-direction: row;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .product-header h1 {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .current-price {
    font-size: 1.5rem;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .quantity-selector {
    align-self: flex-start;
  }

  .side-dishes-grid,
  .related-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .related-product .product-info-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .related-product .product-content h4 {
    text-align: left;
    font-size: 0.9rem;
  }

  .related-product .product-price {
    align-self: flex-end;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    margin-top: 0;
  }

  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .rating-bar {
    grid-template-columns: 50px 1fr 30px;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .product-detail {
    padding: 20px 0 60px;
  }

  .product-info {
    padding: 1.5rem;
  }

  .product-header h1 {
    font-size: 1.8rem;
  }

  .thumbnail-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .meta-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .share-buttons {
    justify-content: flex-start;
  }
  .side-dish-image {
    height: inherit;
  }
  .side-dish-content {
    padding: 1rem;
    text-align: center;
  }
  .side-dish-content h4 {
    font-size: 12px;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 0.5rem;
  }
  .side-dishes-grid,
  .related-products-grid {
    grid-template-columns: 1fr 1fr;
  }
}
