/* Product Detail Page Styles */
.product-detail-page {
  padding: 3rem 0;
  background: var(--color-stone, #FAF8F5);
}

.product-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Breadcrumbs */
.product-breadcrumbs {
  margin-bottom: 2rem;
}

.product-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.product-breadcrumbs li:not(:last-child):after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--color-muted, #85827D);
}

.product-breadcrumbs a {
  color: var(--color-muted, #85827D);
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-breadcrumbs a:hover {
  color: var(--color-gold, #C5A880);
}

.product-breadcrumbs li[aria-current="page"] {
  color: var(--color-charcoal, #121111);
}

/* Product Main Grid */
.product-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .product-main-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: 2rem;
}

@media (max-width: 600px) {

  .product-gallery {
    position: relative;
    top: 0em;
  }

}

.gallery-main {
  background: #ffffff;
  border: 1px solid rgba(197, 168, 128, 0.22);
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #999;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.gallery-thumb-item {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(197, 168, 128, 0.22);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-thumb-item.active {
  border-color: var(--color-gold, #C5A880);
}

.gallery-thumb-item:hover {
  border-color: var(--color-gold, #C5A880);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-category a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold, #C5A880);
  text-decoration: none;
}

.product-title {
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-charcoal, #121111);
  margin: 0;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .product-title {
    font-size: 2.5rem;
  }
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stars {
  display: flex;
  gap: 0.2rem;
}

.star {
  width: 1rem;
  height: 1rem;
}

.star-full {
  color: #FFB800;
}

.star-half {
  color: #FFB800;
}

.star-empty {
  color: #ddd;
}

.rating-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-charcoal, #121111);
}

.reviews-count {
  font-size: 0.75rem;
  color: var(--color-muted, #85827D);
}

/* Pricing */
.product-pricing-detail {
  padding: 1rem 0;
  border-top: 1px solid rgba(197, 168, 128, 0.22);
  border-bottom: 1px solid rgba(197, 168, 128, 0.22);
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.price-original {
  font-size: 1rem;
  color: var(--color-muted, #85827D);
  text-decoration: line-through;
}

.price-current {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-gold-dark, #A3845B);
}

.price-discount {
  background: var(--color-gold, #C5A880);
  color: var(--color-charcoal, #121111);
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 0;
}

.price-note {
  font-size: 0.7rem;
  color: var(--color-muted, #85827D);
  margin-top: 0.5rem;
}

/* Features */
.product-features {
  padding: 0.5rem 0;
}

.features-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-charcoal, #121111);
  margin-bottom: 0.75rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.85rem;
  color: var(--color-muted, #85827D);
}

.features-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold, #C5A880);
  font-weight: bold;
}

/* Variants */
.product-variants {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.variant-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.variant-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-charcoal, #121111);
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(197, 168, 128, 0.22);
  background: #ffffff;
  color: var(--color-charcoal, #121111);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.variant-btn:hover {
  border-color: var(--color-gold, #C5A880);
}

.variant-btn.active {
  background: var(--color-charcoal, #121111);
  border-color: var(--color-charcoal, #121111);
  color: #ffffff;
}

/* Action Buttons */
.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-add-cart {
  background: transparent;
  border: 1px solid var(--color-charcoal, #121111);
  color: var(--color-charcoal, #121111);
}

.btn-add-cart:hover {
  background: var(--color-charcoal, #121111);
  color: #ffffff;
}

.btn-buy-now {
  background: var(--color-gold, #C5A880);
  color: var(--color-charcoal, #121111);
}

.btn-buy-now:hover {
  background: var(--color-gold-dark, #A3845B);
  transform: translateY(-2px);
}

/* Share Buttons */
.product-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 168, 128, 0.22);
}

.share-label {
  font-size: 0.7rem;
  color: var(--color-muted, #85827D);
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: 1px solid rgba(197, 168, 128, 0.22);
  color: var(--color-charcoal, #121111);
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--color-gold, #C5A880);
  border-color: var(--color-gold, #C5A880);
  color: #ffffff;
}

/* Description Tabs */
.product-description-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(197, 168, 128, 0.22);
  max-width: 1300px;
  margin: 0 auto;
}

.description-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(197, 168, 128, 0.22);
  margin-bottom: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted, #85827D);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn.active {
  color: var(--color-gold, #C5A880);
}

.tab-btn.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold, #C5A880);
}

.tab-content {
  display: none;
  padding: 1rem 0;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-muted, #85827D);
}

.product-description p {
  margin-bottom: 1rem;
}

.product-details-table table {
  width: 100%;
  border-collapse: collapse;
}

.product-details-table tr {
  border-bottom: 1px solid rgba(197, 168, 128, 0.22);
}

.product-details-table th,
.product-details-table td {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.85rem;
}

.product-details-table th {
  font-weight: 600;
  color: var(--color-charcoal, #121111);
  width: 30%;
}

.product-details-table td {
  color: var(--color-muted, #85827D);
}

.shipping-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal, #121111);
}

.shipping-info p {
  font-size: 0.85rem;
  color: var(--color-muted, #85827D);
  margin-bottom: 1rem;
}

/* Related Products */
.related-products-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(197, 168, 128, 0.22);
}

.related-title {
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-size: 1.75rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-charcoal, #121111);
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.related-product-card {
  background: #ffffff;
  border: 1px solid rgba(197, 168, 128, 0.22);
  transition: all 0.3s ease;
}

.related-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 168, 128, 0.45);
}

.related-product-link {
  text-decoration: none;
  display: block;
}

.related-product-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}

.related-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.related-product-card:hover .related-product-image img {
  transform: scale(1.04);
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.75rem;
}

.related-product-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-charcoal, #121111);
  padding: 0.75rem;
  margin: 0;
  text-align: center;
}

.related-product-price {
  padding: 0 0.75rem 0.75rem;
  text-align: center;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.related-product-price .price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-dark, #A3845B);
}

.related-product-price .price-original {
  font-size: 0.75rem;
  color: var(--color-muted, #85827D);
  text-decoration: line-through;
}

/* Responsive */
@media (max-width: 768px) {
  .product-detail-page {
    padding: 1.5rem 0;
  }

  .product-container {
    padding: 0 1rem;
  }

  .product-title {
    font-size: 1.75rem;
  }

  .price-current {
    font-size: 1.5rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .description-tabs {
    gap: 0.5rem;
    overflow-x: auto;
  }

  .tab-btn {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .related-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

/* Print Styles */
@media print {

  .product-actions,
  .product-share,
  .related-products-section,
  .description-tabs {
    display: none;
  }

  .tab-content {
    display: block !important;
  }
}