/* ── Product Detail Page Specific Styles ── */

.product-page-main {
  padding: 60px 0 100px;
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--brown);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.breadcrumb .separator {
  margin: 0 10px;
  color: #ccc;
}

/* ── Hero Section ── */
.product-hero {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 50px;
  margin-bottom: 80px;
}

.product-gallery {
  background: #fdf8f0;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(209, 181, 63, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.product-gallery img {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(137, 84, 87, 0.15));
}

.product-info {
  display: flex;
  flex-direction: column;
}

.category-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}

.product-title {
  font-size: 36px;
  color: var(--brown);
  margin: 0 0 15px;
  font-family: 'Georgia', serif;
  line-height: 1.2;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 14px;
}

.stars i {
  color: var(--gold);
}

.review-count {
  color: var(--text-muted);
}

.product-price {
  font-size: 28px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 25px;
}

.product-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.gold-separator {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-soft) 0%, rgba(215, 199, 140, 0) 100%);
  margin-bottom: 30px;
  border: none;
}

/* ── Size Selector ── */
.size-selector {
  margin-bottom: 30px;
}

.size-selector h4 {
  font-size: 14px;
  color: var(--brown);
  margin: 0 0 15px;
  font-weight: 600;
}

.size-options {
  display: flex;
  gap: 15px;
}

.size-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--light-border);
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.size-btn:hover {
  border-color: var(--gold-soft);
}

.size-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ── Actions ── */
.product-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--light-border);
  border-radius: 30px;
  padding: 5px;
  height: 56px;
  background: #fff;
}

.qty-btn {
  width: 40px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--brown);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.qty-btn:hover {
  color: var(--gold);
}

.qty-input {
  width: 40px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  background: transparent;
  pointer-events: none;
}

.add-to-cart-btn {
  flex: 1;
  height: 56px;
  border-radius: 30px;
  background: var(--gold);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.add-to-cart-btn:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(135, 85, 25, 0.15);
}

.wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: inherit;
  padding: 0;
}

.wishlist-btn:hover {
  color: var(--maroon);
}

/* ── Tabs ── */
.product-tabs {
  margin-top: 60px;
  margin-bottom: 80px;
}

.tabs-nav {
  display: flex;
  gap: 40px;
  border-bottom: 1px solid var(--light-border);
  margin-bottom: 30px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0 0 15px;
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: var(--brown);
}

.tab-btn.active {
  color: var(--brown);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.tab-content {
  display: none;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* ── Related Products ── */
.related-products {
  margin-bottom: 60px;
}

.related-products h2 {
  font-size: 32px;
  color: var(--brown);
  margin-bottom: 40px;
  font-family: 'Georgia', serif;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-hero {
    gap: 30px;
  }
  .product-title {
    font-size: 30px;
  }
}

@media (max-width: 860px) {
  .product-hero {
    grid-template-columns: 1fr;
  }
  .product-gallery {
    min-height: 350px;
  }
  .product-actions {
    flex-direction: column;
  }
  .related-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 10px 20px 20px;
    margin-left: -20px;
    margin-right: -20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .related-grid::-webkit-scrollbar {
    display: none;
  }
  .related-grid .product-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  .tabs-nav {
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none;
  }
  .tabs-nav::-webkit-scrollbar {
    display: none;
  }
  /* Sticky Action Bar for Mobile */
  .product-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    margin: 0;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
    z-index: 900;
    display: flex;
    flex-direction: row;
    gap: 15px;
    border-top: 1px solid rgba(209, 181, 63, 0.2);
  }
  /* Push main content up to prevent hiding behind sticky bar */
  .product-page-main {
    padding-bottom: 120px;
  }
}
