/* =============================================================
   Single Product Page Stylesheet
   ============================================================= */

.bwe-single-breadcrumb { background: var(--bwe-off-white); padding: 14px 0; border-bottom: 1px solid var(--bwe-border); }
.bwe-single-breadcrumb nav { font-size: 0.8rem; color: var(--bwe-gray); }
.bwe-single-breadcrumb a:hover { color: var(--bwe-yellow); }
.bwe-single-breadcrumb span { color: var(--bwe-dark); font-weight: 600; }

/* --- Layout --- */
.bwe-single-product { padding-bottom: 80px; }
.bwe-single-product__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding-top: 40px;
  align-items: start;
}

/* --- Gallery --- */
.bwe-product-gallery { margin-bottom: 40px; }
.bwe-product-gallery__main {
  position: relative;
  border-radius: var(--bwe-radius-lg);
  overflow: hidden;
  background: var(--bwe-light-gray);
  aspect-ratio: 4/3;
  margin-bottom: 12px;
}
.bwe-product-gallery__main-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.bwe-product-gallery__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

.bwe-product-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bwe-gallery-thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--bwe-radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--bwe-transition);
  flex-shrink: 0;
}
.bwe-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bwe-gallery-thumb.is-active { border-color: var(--bwe-yellow); }
.bwe-gallery-thumb:hover { border-color: var(--bwe-yellow-dk); }

/* --- Specs Table --- */
.bwe-single-specs { margin-bottom: 40px; }
.bwe-single-specs__title { font-size: 1.3rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--bwe-yellow); }
.bwe-specs-table-view { border: 1px solid var(--bwe-border); border-radius: var(--bwe-radius); overflow: hidden; }
.bwe-specs-table-view tr:nth-child(even) { background: var(--bwe-off-white); }
.bwe-specs-table-view th { padding: 10px 16px; font-weight: 600; font-size: 0.85rem; color: var(--bwe-text-light); text-align: left; width: 45%; font-family: var(--bwe-font-body); text-transform: none; background: var(--bwe-white); border-bottom: 1px solid var(--bwe-border); }
.bwe-specs-table-view td { padding: 10px 16px; font-size: 0.875rem; font-weight: 600; color: var(--bwe-dark); border-bottom: 1px solid var(--bwe-border); }
.bwe-specs-table-view tr:last-child th,
.bwe-specs-table-view tr:last-child td { border-bottom: none; }

/* --- Description --- */
.bwe-single-description { margin-bottom: 40px; }
.bwe-single-description__title { font-size: 1.3rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--bwe-yellow); }
.bwe-single-description__content { font-size: 0.95rem; line-height: 1.75; color: var(--bwe-text-light); }
.bwe-single-description__content h2,
.bwe-single-description__content h3 { margin-top: 24px; margin-bottom: 12px; color: var(--bwe-dark); font-size: 1.1rem; }
.bwe-single-description__content p { margin-bottom: 16px; }
.bwe-single-description__content ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.bwe-single-description__content li { margin-bottom: 6px; }

/* --- Info Panel (sidebar) --- */
.bwe-single-info { margin-bottom: 24px; }
.bwe-single-info__title { font-size: clamp(1.6rem, 2.5vw, 2rem); margin-bottom: 6px; }
.bwe-single-info__model { font-size: 0.9rem; color: var(--bwe-gray); margin-bottom: 20px; font-weight: 600; }
.bwe-single-info__details { margin-bottom: 20px; border: 1px solid var(--bwe-border); border-radius: var(--bwe-radius); overflow: hidden; }
.bwe-single-info__detail-row { display: grid; grid-template-columns: 100px 1fr; padding: 10px 16px; border-bottom: 1px solid var(--bwe-border); }
.bwe-single-info__detail-row:last-child { border-bottom: none; }
.bwe-single-info__detail-row dt { font-size: 0.8rem; font-weight: 700; color: var(--bwe-gray); text-transform: uppercase; letter-spacing: 0.04em; display: flex; align-items: center; font-family: var(--bwe-font-body); }
.bwe-single-info__detail-row dd { font-size: 0.875rem; font-weight: 600; color: var(--bwe-dark); display: flex; align-items: center; gap: 4px; }
.bwe-single-info__price { font-size: 1.8rem; font-weight: 800; color: var(--bwe-dark); margin-bottom: 16px; font-family: var(--bwe-font-heading); }
.bwe-single-info__price--call { font-size: 1.1rem; color: var(--bwe-gray); }
.bwe-single-info__excerpt { font-size: 0.9rem; color: var(--bwe-text-light); line-height: 1.7; border-top: 1px solid var(--bwe-border); padding-top: 16px; }

/* --- Quote Box (sticky) --- */
.bwe-quote-box {
  background: var(--bwe-dark);
  border-radius: var(--bwe-radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--bwe-topbar-h) + var(--bwe-header-h) + 20px);
  color: var(--bwe-white);
}
.bwe-quote-box__title { font-size: 1.1rem; color: var(--bwe-white); margin-bottom: 20px; }
.bwe-quote-box .bwe-btn { margin-bottom: 10px; }
.bwe-quote-box__call { justify-content: center; }
.bwe-quote-box__share { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.bwe-quote-box__share p { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.bwe-share-buttons { display: flex; gap: 8px; }
.bwe-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  transition: all var(--bwe-transition);
  font-size: 0.75rem;
}
.bwe-share-btn:hover { background: var(--bwe-yellow); color: var(--bwe-black); }
.bwe-share-btn--copy { border: 1px solid rgba(255,255,255,0.15); }

/* --- Related Products --- */
.bwe-related-products { padding: 60px 0; background: var(--bwe-off-white); border-top: 1px solid var(--bwe-border); }
.bwe-related-products__title { font-size: 1.6rem; margin-bottom: 32px; }

/* --- Single Product Responsive --- */
@media (max-width: 1024px) {
  .bwe-single-product__layout { grid-template-columns: 1fr 320px; gap: 32px; }
}

@media (max-width: 768px) {
  .bwe-single-product__layout { grid-template-columns: 1fr; }
  .bwe-quote-box { position: static; }
  .bwe-single-product__sidebar { order: -1; }
  .bwe-single-info__title { font-size: 1.5rem; }
  .bwe-related-products .bwe-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .bwe-product-gallery__thumbs { gap: 6px; }
  .bwe-gallery-thumb { width: 60px; height: 45px; }
  .bwe-related-products .bwe-product-grid { grid-template-columns: 1fr; }
}
