/* Product Details Page Specific Styles */

.breadcrumb-nav {
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: hsl(var(--foreground));
}

.breadcrumb span {
  color: hsl(var(--foreground));
}

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

.product-details-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

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

.main-image {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  position: relative;
}

.image-zoom-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img,
.main-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem;
  transform-origin: center center;
}

.thumbnail-images {
  display: flex;
  gap: 1rem;
}

.thumbnail {
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid hsl(var(--border));
  background: none;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s;
}

.thumbnail.active {
  border-color: hsl(var(--accent));
}

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

/* Product Info Section */
.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-category {
  font-size: 0.75rem;
  color: hsl(var(--accent));
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Product Tags - Tag Style (Pill-shaped) */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background-color: hsl(var(--secondary) / 0.6);
  border: 1px solid hsl(var(--border));
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--foreground));
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.product-tag:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--accent) / 0.4);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px -4px hsl(var(--foreground) / 0.15);
}

.product-tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: hsl(var(--accent));
  stroke-width: 2.5;
}

.product-tag span {
  display: inline-block;
}

.product-tag-brand {
  background-color: hsl(var(--secondary) / 0.6);
  border-color: hsl(var(--border));
}

.product-tag-brand:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--accent) / 0.4);
}

.product-tag-subbrand {
  background-color: hsl(var(--secondary) / 0.6);
  border-color: hsl(var(--border));
}

.product-tag-subbrand:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--accent) / 0.4);
}

.product-tag-category {
  background-color: hsl(var(--secondary) / 0.6);
  border-color: hsl(var(--border));
}

.product-tag-category:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--accent) / 0.4);
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

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

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

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

.star {
  font-size: 1.25rem;
  color: hsl(var(--border));
}

.star.filled {
  color: hsl(var(--accent));
}

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

.product-price-section {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.price-current {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.price-original {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

.price-save {
  padding: 0.25rem 0.75rem;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

.product-description {
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  font-size: 1rem;
}

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

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
}

.qty-btn {
  width: 3rem;
  height: 3rem;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background-color 0.3s;
}

.qty-btn:hover {
  background-color: hsl(var(--secondary));
}

.qty-value {
  width: 3rem;
  height: 3rem;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-value::-webkit-outer-spin-button,
.qty-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-value:focus {
  outline: none;
  background-color: hsl(var(--secondary) / 0.5);
}

.qty-value:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon-only {
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product Features */
.product-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.feature-item svg {
  color: hsl(var(--accent));
  width: 1.5rem;
  height: 1.5rem;
}

.feature-item span {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Key Features */
.key-features {
  margin-top: 1rem;
}

.key-features h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.features-list li {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.features-list li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: hsl(var(--accent));
  flex-shrink: 0;
}

/* Specifications */
.specifications {
  margin-top: 1rem;
}

.specifications h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.spec-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.spec-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.spec-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Related Products */
.related-products {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid hsl(var(--border));
}

.related-products h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product Card Styles (reused from products.css) */
.product-card {
  background-color: hsl(var(--card));
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease-out;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: hsl(var(--secondary));
}

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

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

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

.badge-new {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-sale {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.product-info {
  padding: 1rem;
}

.product-category {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-top: 0.25rem;
  text-decoration: none;
  transition: color 0.3s;
}

.product-name:hover {
  color: hsl(var(--accent));
}

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

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.price-current {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.price-original {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

/* Product Tabs Section */
.product-tabs-section {
  background: hsl(var(--background));
  /* border-top: 1px solid hsl(var(--border)); */
  padding: 4rem 0;
  padding-top: 0px;
}

.product-tabs-wrapper {
  max-width: 100%;
}

.product-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid hsl(var(--border));
  scrollbar-width: thin;
  padding-bottom: 0;
}

.product-tabs::-webkit-scrollbar {
  height: 4px;
}

.product-tabs::-webkit-scrollbar-track {
  background: hsl(var(--secondary));
  border-radius: 2px;
}

.product-tabs::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 2px;
}

.product-tabs::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

.product-tabs .nav-item {
  list-style: none;
  margin: 0;
}

.product-tabs .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  margin-bottom: -2px;
}

.product-tabs .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: hsl(var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-tabs .nav-link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.5);
}

.product-tabs .nav-link.active {
  color: hsl(var(--accent));
  border-bottom-color: hsl(var(--accent));
}

.product-tabs .nav-link.active::after {
  transform: scaleX(1);
}

.product-tabs .nav-link svg {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.3s ease;
}

.product-tabs .nav-link:hover svg,
.product-tabs .nav-link.active svg {
  transform: scale(1.1);
}

.tab-content {
  min-height: 300px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.show.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content-wrapper {
  padding: 2rem 0;
}

.tab-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid hsl(var(--border));
}

.product-description-content {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: hsl(var(--muted-foreground));
}

.product-description-content p {
  margin-bottom: 1.5rem;
}

.product-description-content p:last-child {
  margin-bottom: 0;
}

/* Specifications Grid */
.specifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  gap: 1rem;
}

.spec-item:hover {
  border-color: hsl(var(--accent) / 0.5);
  box-shadow: 0 4px 12px -4px hsl(var(--accent) / 0.2);
  transform: translateY(-2px);
}

.spec-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  flex: 1;
}

.spec-label svg {
  color: hsl(var(--accent));
  flex-shrink: 0;
}

.spec-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: right;
}

/* Reviews Section */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-item {
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.review-item:hover {
  box-shadow: 0 8px 24px -8px hsl(var(--foreground) / 0.1);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

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

.reviewer-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(var(--secondary));
  border: 2px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.reviewer-avatar svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.reviewer-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reviewer-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

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

.review-rating {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.review-rating .star {
  font-size: 1.25rem;
  color: hsl(var(--border));
}

.review-rating .star.filled {
  color: #fbbf24;
}

.review-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.review-content p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  font-size: 0.9375rem;
}

.no-reviews {
  text-align: center;
  padding: 4rem 2rem;
  color: hsl(var(--muted-foreground));
}

.no-reviews svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-reviews p {
  font-size: 1.0625rem;
  margin: 0;
}

/* Warranty Section */
.warranty-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.warranty-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.warranty-item:hover {
  box-shadow: 0 8px 24px -8px hsl(var(--foreground) / 0.1);
  transform: translateX(4px);
  border-color: hsl(var(--accent) / 0.3);
}

.warranty-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--accent) / 0.1);
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.warranty-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--accent));
}

.warranty-content {
  flex: 1;
}

.warranty-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem 0;
}

.warranty-content p {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

/* Rating Section Enhancements */
.rating-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.view-reviews-link {
  color: hsl(var(--accent));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  /* margin-left: auto; */
}

.view-reviews-link:hover .rating-text {
  color: hsl(var(--accent));
}

/* Responsive Design for Tabs */
@media (max-width: 768px) {
  .product-tabs-section {
    padding: 2rem 0;
  }
  
  .product-tabs {
    gap: 0.25rem;
    margin-bottom: 2rem;
  }
  
  .product-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }
  
  .tab-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .specifications-grid {
    grid-template-columns: 1fr;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .warranty-item {
    flex-direction: column;
    text-align: center;
  }
  
  .warranty-icon {
    margin: 0 auto;
  }
}

.product-code-info {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgb(248, 249, 250) 0%, rgb(255, 255, 255) 100%);
  border-radius: 12px;
  gap: 12px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(233, 236, 239);
  border-image: initial;
}
.code-label {
  font-weight: 600;
  color: rgb(108, 117, 125);
  font-size: 15px;
}
.code-value {
  font-weight: 700;
  color: rgb(33, 37, 41);
  font-size: 15px;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
}