/* ==========================================================================
   Bachaa Party style product detail page overrides (product.php only)
   Keeps existing HTML ids/classes (JS depends on them) — visual restyle only.
   ========================================================================== */

.shop-header { background: #fafafa; padding: 22px 0; border-bottom: 1px solid #eee; }
.shop-header h1 { font-size: 20px; font-weight: 700; color: var(--bp-ink, #12141c); }
.breadcrumb { font-size: 13px; color: #888; margin-top: 6px; }
.breadcrumb a:hover { color: var(--bp-blue-dark, #2f9bff); }

.product-detail { padding: 40px 0 70px; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Gallery — product images are uploaded as 1000x1000 (square), so use aspect-ratio
   instead of a fixed height so the image always fits perfectly with no crop/whitespace. */
.product-detail-img {
  height: auto !important;
}
.zoom-container {
  border-radius: 18px;
  background: #f4f4f4;
  overflow: hidden;
  height: auto !important;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.zoom-container > #mainProductImg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
/* Gallery thumbnails should stay small — don't let the broad img rule blow them up */
.product-gallery-thumbs .gallery-thumb {
  width: 70px !important;
  height: 70px !important;
  object-fit: cover !important;
}
.gallery-arrow {
  background: rgba(255,255,255,0.9) !important;
  color: #12141c !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.gallery-counter {
  background: rgba(18,20,28,0.75) !important;
  border-radius: 999px !important;
  font-weight: 600;
}
.product-gallery-thumbs .gallery-thumb.active,
.product-gallery-thumbs .gallery-thumb {
  border-radius: 10px !important;
}
.product-gallery-thumbs .gallery-thumb.active { border-color: #12141c !important; }

/* Info panel */
.product-detail-info {
  position: sticky;
  top: 110px;
}
.detail-cat {
  display: inline-block;
  background: #fff3bf;
  color: #12141c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product-detail-info h1 {
  font-size: 24px;
  font-weight: 800;
  color: #12141c;
  margin-bottom: 10px;
  line-height: 1.3;
}

.detail-price {
  font-size: 26px;
  font-weight: 800;
  color: #12141c;
  margin: 14px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-price .price-original { font-size: 15px; color: #aaa; text-decoration: line-through; font-weight: 500; }
.detail-price .discount-badge {
  background: #ff3b3b !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  padding: 4px 8px !important;
}

.urgency-notice {
  background: #fff1f1;
  color: #d92b2b;
  border: 1px solid #ffd6d6;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.product-badge {
  display: inline-block;
  background: #12141c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  border: 2px solid #eee !important;
  border-radius: 999px !important;
  background: #fff !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all .15s ease;
}
.color-swatch.active { border-color: #12141c !important; background: #12141c !important; color: #fff !important; }

.size-selector label { font-weight: 700; font-size: 13px; color: #12141c; display: block; margin-bottom: 8px; }
.size-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  border: 2px solid #eee !important;
  border-radius: 10px !important;
  background: #fff !important;
  min-width: 52px;
  padding: 10px 14px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer;
  transition: all .15s ease;
}
.size-btn.active { border-color: #12141c !important; background: #12141c !important; color: #fff !important; }

.detail-meta p { font-size: 13.5px; color: #555; margin: 8px 0; }

.qty-selector { margin: 20px 0 16px; }
.qty-selector label { font-weight: 700; font-size: 13px; color: #12141c; display: block; margin-bottom: 8px; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid #eee;
  border-radius: 999px;
  overflow: hidden;
}
.qty-control button {
  width: 40px;
  height: 40px;
  border: none;
  background: #fafafa;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.qty-control input {
  width: 46px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 14px;
}

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.detail-actions .btn-gold {
  background: #ffc93c !important;
  color: #12141c !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 10px 22px rgba(255,201,60,0.3) !important;
  flex: 1;
  justify-content: center;
}
.detail-actions .btn-dark {
  background: #12141c !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}
.detail-wishlist-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #eee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.detail-wishlist-btn:hover { border-color: #ff5c93; color: #ff5c93; }

.product-tabs { margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px; }
.tab-headers { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab-header {
  border: none !important;
  background: #f4f4f4 !important;
  color: #12141c !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer;
}
.tab-header.active { background: #12141c !important; color: #fff !important; }
.tab-content { font-size: 14px; color: #555; line-height: 1.7; }

/* Related section reuses .bp-product-grid — spacing fix */
.product-detail .bp-section-head { margin-top: 60px; }

@media (max-width: 992px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-detail-info { position: static; }
}

@media (max-width: 600px) {
  .detail-price { font-size: 22px; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; }
}
