/* Product Detail Page Styles */

/* Breadcrumb Section */
.breadcrumb-section {
  background: var(--brand-bg);
  padding: calc(var(--nav-height-desktop) + 20px) 0 20px;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.breadcrumb-item {
  font-size: 14px;
}

.breadcrumb-item a {
  color: var(--brand-text);
  text-decoration: none;
  transition: color 300ms ease;
}

.breadcrumb-item a:hover {
  color: var(--brand-yellow);
}

.breadcrumb-item.active {
  color: #666;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #999;
}

/* Product Detail Section */
.product-detail-section {
  background: var(--brand-bg);
  padding: 40px 0 80px;
}

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

.main-image {
  position: relative;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.main-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.image-badges {
  position: absolute;
  top: 16px;
  left: 16px;
}

.badge-hot {
  background: #ef4444;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.thumbnail-images {
  display: flex;
  gap: 12px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 300ms ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--brand-yellow);
  transform: scale(1.05);
}

/* Product Info */
.product-info {
  padding-left: 40px;
}

.product-title {
  font-family: "Turkey Sandwich", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 48px;
  color: var(--brand-text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.product-price {
  margin-bottom: 24px;
}

.current-price {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--brand-text);
}

.product-description {
  margin-bottom: 32px;
}

.product-description p {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

/* Product Meta */
.product-meta {
  margin-bottom: 32px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.meta-label {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-text);
  min-width: 120px;
}

.meta-value {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #666;
}

/* Product Options Grid */
.product-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.option-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-text);
  height: 20px;
  display: flex;
  align-items: center;
}

.option-btn {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  background: white;
  color: var(--brand-text);
  border-radius: 8px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 300ms ease;
  text-align: center;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
}

/* Legacy selectors for JavaScript compatibility */
.format-btn,
.language-btn,
.date-btn {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  background: white;
  color: var(--brand-text);
  border-radius: 8px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 300ms ease;
  text-align: center;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
}

.option-btn:hover,
.format-btn:hover,
.language-btn:hover,
.date-btn:hover {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
  color: var(--brand-text);
}

.option-btn.active,
.format-btn.active,
.language-btn.active,
.date-btn.active {
  border-color: var(--brand-text);
  background: var(--brand-text);
  color: white;
}

/* Quantity Section */
.quantity-section {
  margin-bottom: 24px;
}

.quantity-label {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-text);
  display: block;
  margin-bottom: 12px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f8f8f8;
  color: var(--brand-text);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 300ms ease;
}

.qty-btn:hover {
  background: var(--brand-yellow);
}

.qty-input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  background: white;
}

.qty-input:focus {
  outline: none;
}

/* Availability */
.availability {
  margin-bottom: 24px;
}

.availability-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Subtotal */
.subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 16px 0;
  border-top: 2px solid #e0e0e0;
}

.subtotal-label {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-text);
}

.subtotal-amount {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--brand-text);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.btn-add-cart {
  flex: 1;
  background: #dc3545;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 300ms ease;
}

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

.btn-wishlist {
  background: white;
  color: var(--brand-text);
  border: 2px solid #e0e0e0;
  padding: 14px 20px;
  border-radius: 8px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 300ms ease;
}

.btn-wishlist:hover {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
}

.btn-buy-now {
  width: 100%;
  background: var(--brand-green);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 300ms ease;
  margin-bottom: 24px;
}

.btn-buy-now:hover {
  background: #2d4009;
  transform: translateY(-2px);
}

/* Shipping Info */
.shipping-info {
  margin-bottom: 24px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 2px solid #f0f0f0;
}

.shipping-item,
.shipping-viewers {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #666;
}

.shipping-item:last-child,
.shipping-viewers:last-child {
  margin-bottom: 0;
}

.shipping-item i,
.shipping-viewers i {
  color: var(--brand-yellow);
  font-size: 16px;
}

/* Share Section */
.share-section {
  margin-bottom: 24px;
}

.btn-share {
  background: white;
  color: var(--brand-text);
  border: 2px solid #e0e0e0;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 300ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-share:hover {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
}

/* Query Section */
.query-section {
  padding-top: 24px;
  border-top: 2px solid #e0e0e0;
}

.query-link {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-text);
  text-decoration: underline;
  transition: color 300ms ease;
}

.query-link:hover {
  color: var(--brand-yellow);
}

/* Product Tabs Section */
.product-tabs-section {
  background: var(--brand-bg);
  padding: 60px 0;
}

.product-tabs .nav-tabs {
  border-bottom: none;
  margin-bottom: 40px;
}

.product-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: #666;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 24px;
  transition: all 300ms ease;
}

.product-tabs .nav-link:hover {
  color: var(--brand-text);
  border-bottom-color: transparent;
}

.product-tabs .nav-link.active {
  color: var(--brand-yellow);
  border-bottom-color: var(--brand-yellow);
  background: none;
}

.tab-content-inner {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #666;
}

.tab-content-inner h4 {
  color: var(--brand-text);
  margin-bottom: 16px;
  margin-top: 24px;
}

.tab-content-inner ul {
  margin-bottom: 24px;
}

.tab-content-inner li {
  margin-bottom: 8px;
}

/* Info Table */
.info-table {
  background: transparent;
  border-radius: 12px;
  padding: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: none;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--brand-text);
}

.info-value {
  color: #666;
}

/* Reviews */
.reviews-summary {
  margin-bottom: 40px;
  padding: 24px;
  background: transparent;
  border-radius: 12px;
}

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

.average-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rating-number {
  font-size: 48px;
  font-weight: 600;
  color: var(--brand-text);
}

.stars {
  color: #ffc107;
  font-size: 20px;
}

.review-count {
  color: #666;
  font-size: 14px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-item {
  padding: 24px;
  background: transparent;
  border-radius: 12px;
}

.reviewer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.reviewer-info strong {
  color: var(--brand-text);
}

.review-stars {
  color: #ffc107;
}

.review-text {
  margin-bottom: 12px;
  color: #666;
}

.review-date {
  font-size: 12px;
  color: #999;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .product-info {
    padding-left: 0;
    margin-top: 40px;
  }
  
  .product-images {
    position: static;
  }
  
  .product-title {
    font-size: 36px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-wishlist {
    text-align: center;
  }
}

@media (max-width: 991.98px) and (min-width: 768px) {
  .product-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .option-column:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .option-column:nth-child(3) .option-label {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .breadcrumb-section {
    margin-top: calc(var(--nav-height-tablet) + 20px);
  }
  
  .product-title {
    font-size: 28px;
  }
  
  .current-price {
    font-size: 24px;
  }
  
  .product-options-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .option-column {
    gap: 12px;
  }
  
  .option-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .product-tabs .nav-link {
    font-size: 14px;
    padding: 12px 16px;
  }
}

@media (max-width: 575.98px) {
  .main-image img {
    height: 300px;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .subtotal-amount {
    font-size: 20px;
  }
}
