/* Product page specific styles */
.page-product .product-main {
  padding: 2rem 0 4rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

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

.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.gallery-main .product-img-placeholder.large {
  width: 100%;
  height: 100%;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  max-height: 188px;
  overflow: auto;
}

.thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.thumb:hover,
.thumb.active {
  border-color: var(--blue);
}

.product-detail .product-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #000;
  border-radius: 4px;
}

.product-detail h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-detail .product-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.product-price-block {
  margin-bottom: 1.5rem;
}

.product-price-block .price {
  font-size: 2rem;
  font-weight: 600;
}

.stock-inline {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  color: #2f7a2f;
}

.stock-inline.sold {
  color: #b00020;
  font-weight: 600;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-tags span {
  padding: 6px 12px;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

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

.product-description p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.product-specs {
  margin-bottom: 2rem;
}

.product-specs h4 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.product-specs dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem 2rem;
  margin: 0;
}

.product-specs dt {
  color: var(--text-muted);
  font-size: 14px;
}

.product-specs dd {
  margin: 0;
  font-size: 14px;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
}

.product-trust {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.product-trust p {
  margin: 0.25rem 0;
  font-size: 14px;
  color: var(--text-muted);
}

.related-section {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-section h2 {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    max-width: 400px;
    margin: 0 auto;
  }
}
