/* Product Detail Page - Matching Site Design */
.product-page {
  background: #FAFAF8;
}

/* Main layout: image + details side by side on desktop */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 420px 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}
@media (min-width: 1100px) {
  .product-layout {
    grid-template-columns: 480px 1fr;
  }
}

/* Image box */
.product-image-box {
  background: #fff;
  border: 1px solid #e8e5df;
  border-radius: 20px;
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.product-image-box img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  background: #f8f7f5;
  display: block;
}
@media (max-width: 899px) {
  .product-image-box {
    position: static;
  }
  .product-image-box img {
    max-height: 340px;
  }
}

/* Details box */
.product-details-box {
  background: #fff;
  border: 1px solid #e8e5df;
  border-radius: 20px;
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .product-details-box {
    padding: 2rem;
  }
}
.product-details-box h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}
@media (min-width: 768px) {
  .product-details-box h1 {
    font-size: 1.85rem;
  }
}
.product-price-box {
  background: #fffbeb;
  border: 1px solid #f5e6b8;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.product-price-box .price {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0F172A;
}
.product-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
@media (min-width: 640px) {
  .product-meta-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.product-meta-item {
  background: #f8f7f5;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
}
.product-meta-item .label {
  color: #64748b;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}
.product-meta-item .value {
  font-weight: 700;
  color: #0F172A;
}
.product-actions .btn-primary,
.product-actions .btn-navy {
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  background: #0F172A;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.product-actions .btn-primary:hover {
  background: #1e293b;
}

/* Related products - smaller cards */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e5df;
}
.related-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}
.related-grid .product-card {
  border-radius: 14px !important;
  border: 1px solid #e8e5df !important;
  overflow: hidden;
  background: #fff;
}
.related-grid .product-img {
  height: 140px !important;
  object-fit: cover !important;
}
@media (min-width: 768px) {
  .related-grid .product-img {
    height: 160px !important;
  }
}
.related-grid .card-body {
  padding: 0.75rem !important;
}
.related-grid .card-title {
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
}
.related-grid .price-fa {
  font-size: 0.88rem !important;
}
.related-grid .btn {
  font-size: 0.75rem !important;
  padding: 0.45rem 0.6rem !important;
  border-radius: 8px !important;
}

/* Pill Breadcrumb */
.breadcrumb-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #eeeae4;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(15,23,42,0.04);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.breadcrumb-pill::-webkit-scrollbar { display: none; }
.bc-item {
  color: #0F172A;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.bc-item:hover { color: #C9A227; }
.bc-item i { font-size: 0.8rem; opacity: 0.7; }
.bc-sep {
  color: #C9A227;
  font-size: 0.7rem;
  opacity: 0.7;
}
.bc-current {
  background: #fffbeb;
  border: 1px solid #f5e6b8;
  color: #0F172A;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.bc-current i { color: #C9A227; font-size: 0.75rem; }
@media (max-width: 640px) {
  .breadcrumb-pill { padding: 0.4rem 0.75rem; border-radius: 16px; }
  .bc-item, .bc-current { font-size: 0.8rem; }
}
