/* ═══════════════════════════════════════════════════
   product.css — Single Product Page Styles
═══════════════════════════════════════════════════ */

/* Breadcrumb Bar */
.product-breadcrumb { background: #f8fafc; border-bottom: 1px solid #f1f5f9; padding: 0.8rem 0; }

/* Main Section */
.product-main-section { padding: 3rem 0; background: #fff; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

/* Gallery */
.product-gallery { position: sticky; top: 20px; }
.gallery-main-wrap { position: relative; background: #f8fafc; border-radius: 24px; overflow: hidden; padding: 2rem; border: 1px solid #f1f5f9; cursor: zoom-in; }
.gallery-badge-wrap { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.5rem; z-index: 2; }
.gallery-badge { font-size: 0.7rem; font-weight: 800; padding: 0.3rem 0.8rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.05em; }
.gallery-badge.sale { background: #ef4444; color: #fff; }
.gallery-badge.featured { background: var(--blue); color: #fff; }
.gallery-main-img { width: 100%; height: 420px; object-fit: contain; transition: transform 0.4s ease; }
.gallery-main-wrap:hover .gallery-main-img { transform: scale(1.04); }
.gallery-zoom-hint { position: absolute; bottom: 1rem; right: 1rem; font-size: 0.72rem; color: #94a3b8; display: flex; align-items: center; gap: 0.3rem; }

/* Trust Badges */
.product-trust-badges { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.8rem; margin-top: 1.5rem; }
.trust-badge { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; background: #f8fafc; border-radius: 12px; padding: 0.8rem 0.5rem; text-align: center; border: 1px solid #f1f5f9; }
.trust-badge i { color: var(--blue); font-size: 1.2rem; }
.trust-badge span { font-size: 0.65rem; font-weight: 700; color: #475569; }

/* Info Panel */
.product-info-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.product-info-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.product-cat-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: #eff6ff; color: var(--blue); font-size: 0.8rem; font-weight: 700; padding: 0.35rem 1rem; border-radius: 50px; }
.product-sku-tag { font-size: 0.75rem; color: #94a3b8; background: #f1f5f9; padding: 0.35rem 0.8rem; border-radius: 50px; }
.product-title { font-size: 1.9rem; font-weight: 800; color: var(--dark); line-height: 1.2; margin: 0; }

/* Rating Row */
.product-rating-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.rating-link { font-size: 0.85rem; color: var(--blue); text-decoration: underline; }
.rating-divider { color: #e2e8f0; }
.text-green { color: #10b981; font-size: 0.85rem; font-weight: 600; }
.text-red { color: #ef4444; font-size: 0.85rem; font-weight: 600; }
.in-stock-inline { display: flex; align-items: center; gap: 0.3rem; }

/* Price Box */
.product-price-box { background: linear-gradient(135deg, #eff6ff 0%, #f8faff 100%); border-radius: 16px; padding: 1.5rem; border: 1px solid #dbeafe; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.price-main { font-size: 2.2rem; font-weight: 900; color: var(--blue); }
.price-on-request { font-size: 1.4rem; color: #64748b; }
.price-original { font-size: 1.1rem; text-decoration: line-through; color: #94a3b8; }
.price-save { font-size: 0.8rem; font-weight: 800; background: #dcfce7; color: #16a34a; padding: 0.3rem 0.8rem; border-radius: 50px; }

.product-short-desc-wrap { position: relative; margin-bottom: 2rem; }
.product-short-desc { color: #475569; line-height: 1.7; font-size: 0.95rem; border-left: 3px solid var(--blue); padding-left: 1.2rem; max-height: 120px; overflow: hidden; position: relative; transition: max-height 0.4s ease; }
.product-short-desc.expanded { max-height: 2000px; }
.product-short-desc::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50px; background: linear-gradient(to bottom, transparent, #fff); pointer-events: none; transition: opacity 0.3s; }
.product-short-desc.expanded::after { opacity: 0; }
.product-short-desc h2, .product-short-desc h3, .product-short-desc h4 { color: var(--dark); font-size: 1rem; font-weight: 800; margin: 1.2rem 0 0.5rem; }
.product-short-desc h2:first-child, .product-short-desc h3:first-child, .product-short-desc h4:first-child { margin-top: 0; }
.product-short-desc ul { margin: 0.8rem 0 1.2rem 1.2rem; list-style-type: disc; }
.product-short-desc li { margin-bottom: 0.4rem; padding-left: 0.2rem; }
.product-short-desc p { margin-bottom: 1rem; }
.read-more-btn { background: none; border: none; color: var(--blue); font-weight: 700; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; padding: 0; transition: 0.2s; }
.read-more-btn:hover { color: var(--blue-dark); gap: 0.6rem; }

/* Stock Urgency */
.stock-urgency { background: #fff7ed; color: #ea580c; font-size: 0.85rem; font-weight: 700; padding: 0.6rem 1rem; border-radius: 8px; border: 1px solid #fed7aa; display: flex; align-items: center; gap: 0.5rem; }

/* Actions */
.product-actions-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.qty-selector { display: flex; align-items: center; border: 2px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.qty-selector button { background: #f8fafc; border: none; width: 42px; height: 52px; cursor: pointer; font-size: 1rem; transition: 0.2s; }
.qty-selector button:hover { background: var(--blue); color: #fff; }
.qty-selector input { width: 60px; text-align: center; border: none; outline: none; font-size: 1rem; font-weight: 700; height: 52px; }
.btn-add-cart { background: var(--blue); color: #fff; border: none; padding: 0 2rem; height: 52px; border-radius: 12px; font-weight: 800; font-size: 1rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.btn-add-cart:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,87,184,0.3); }
.btn-quote { display: flex; align-items: center; gap: 0.6rem; padding: 0 1.5rem; height: 52px; border-radius: 12px; border: 2px solid var(--blue); color: var(--blue); font-weight: 700; transition: 0.3s; white-space: nowrap; text-decoration: none; }
.btn-quote:hover { background: var(--blue); color: #fff; }

/* Secondary Actions */
.product-secondary-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.sec-action-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.5rem 1rem; cursor: pointer; transition: 0.3s; text-decoration: none; }
.sec-action-btn:hover { color: var(--blue); border-color: var(--blue); background: #eff6ff; }

/* Meta Grid */
.product-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; background: #f8fafc; border-radius: 16px; padding: 1.2rem; }
.meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; font-weight: 700; }
.meta-value { font-size: 0.88rem; font-weight: 600; color: #1e293b; }
.meta-value a { color: var(--blue); }

/* Tabs Section */
.product-tabs-section { padding: 3rem 0; background: #f8fafc; border-top: 1px solid #f1f5f9; }
.tabs-header { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin-bottom: 2.5rem; overflow-x: auto; }
.tab-btn { padding: 1rem 2rem; border: none; background: none; font-weight: 700; font-size: 0.95rem; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: 0.3s; white-space: nowrap; }
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Tab: Description */
.tab-description-body { background: #fff; border-radius: 20px; padding: 2.5rem; line-height: 1.8; color: #334155; }
.tab-description-body h2,.tab-description-body h3,.tab-description-body h4 { color: var(--dark); margin: 1.5rem 0 0.8rem; }
.tab-description-body ul { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.tab-description-body li { margin-bottom: 0.5rem; }

/* Tab: Specs */
.specs-grid { background: #fff; border-radius: 20px; overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 1fr 2fr; padding: 1rem 1.5rem; border-bottom: 1px solid #f1f5f9; }
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: #f8fafc; }
.spec-row span:first-child { font-weight: 700; color: #475569; font-size: 0.88rem; }
.spec-row span:last-child { color: #1e293b; font-size: 0.88rem; }

/* Tab: Reviews */
.reviews-summary { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; background: #fff; border-radius: 20px; padding: 2.5rem; margin-bottom: 2rem; }
.reviews-score { text-align: center; }
.score-big { font-size: 4rem; font-weight: 900; color: var(--dark); line-height: 1; }
.score-stars { margin: 0.5rem 0; }
.score-label { font-size: 0.82rem; color: #94a3b8; }
.reviews-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.review-bar-row { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; }
.review-bar-row span:first-child { width: 40px; text-align: right; color: #64748b; font-weight: 600; }
.review-bar { flex: 1; height: 8px; background: #f1f5f9; border-radius: 50px; overflow: hidden; }
.review-bar-fill { height: 100%; background: #f59e0b; border-radius: 50px; }
.review-bar-row span:last-child { width: 35px; color: #94a3b8; font-size: 0.78rem; }
.reviews-list { display: flex; flex-direction: column; gap: 1.5rem; }
.review-card { display: flex; gap: 1.5rem; background: #fff; border-radius: 20px; padding: 1.8rem; border: 1px solid #f1f5f9; transition: 0.3s; }
.review-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.review-avatar { width: 52px; height: 52px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.review-body { flex: 1; }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.reviewer-name { display: block; font-weight: 800; color: var(--dark); }
.reviewer-role { font-size: 0.8rem; color: #94a3b8; }
.review-meta { text-align: right; }
.review-date { display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 4px; }
.review-text { color: #475569; line-height: 1.7; margin: 0; }
.review-verified { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: #10b981; font-weight: 700; margin-top: 0.8rem; }
.write-review-cta { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); border-radius: 20px; padding: 2.5rem; text-align: center; color: #fff; margin-top: 2rem; }
.write-review-cta h3 { color: #fff; margin: 0 0 0.5rem; font-size: 1.3rem; }
.write-review-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

/* Tab: Shipping */
.shipping-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.shipping-card { background: #fff; border-radius: 20px; padding: 2rem; border: 1px solid #f1f5f9; }
.shipping-card i { font-size: 2rem; color: var(--blue); margin-bottom: 1rem; display: block; }
.shipping-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--dark); }
.shipping-card p { font-size: 0.9rem; color: #64748b; line-height: 1.6; }

/* Related Products Slider */
.related-products-section { padding: 4rem 0; background: #fff; }
.section-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.section-header-row h2 { font-size: 1.8rem; font-weight: 800; margin: 0; }
.section-header-row p { color: #64748b; margin: 0.3rem 0 0; }
.slider-controls { display: flex; gap: 0.8rem; }
.slider-btn { width: 44px; height: 44px; border-radius: 12px; border: 2px solid #e2e8f0; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; color: var(--dark); }
.slider-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.related-slider-wrap { overflow: hidden; }
.related-slider { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 1rem; }
.related-slider::-webkit-scrollbar { display: none; }
.related-card { min-width: 280px; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid #f1f5f9; transition: 0.3s; scroll-snap-align: start; flex-shrink: 0; }
.related-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.related-card-img { position: relative; height: 200px; overflow: hidden; background: #f8fafc; }
.related-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: 0.4s; }
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.related-card:hover .related-card-overlay { opacity: 1; }
.overlay-btn { background: #fff; color: var(--dark); padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 700; font-size: 0.85rem; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.related-card-info { padding: 1.2rem; }
.related-cat { font-size: 0.72rem; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.related-card-info h4 { margin: 0.4rem 0 0.4rem; font-size: 0.95rem; }
.related-card-info h4 a { color: var(--dark); text-decoration: none; transition: 0.3s; }
.related-card-info h4 a:hover { color: var(--blue); }
.related-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.8rem; }
.related-price { font-weight: 800; color: var(--blue); font-size: 0.95rem; }

/* Responsive */
@media(max-width: 992px) {
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
  .product-gallery { position: static; }
  .gallery-main-img { height: 320px; }
  .product-trust-badges { grid-template-columns: repeat(2,1fr); }
  .reviews-summary { grid-template-columns: 1fr; gap: 1.5rem; }
  .shipping-grid { grid-template-columns: 1fr; }
}
@media(max-width: 768px) {
  .product-meta-grid { grid-template-columns: 1fr; }
  .product-actions-wrap { flex-direction: column; align-items: stretch; }
  .btn-add-cart, .btn-quote { justify-content: center; }
  .tabs-header { gap: 0; }
  .tab-btn { padding: 0.8rem 1rem; font-size: 0.82rem; }
}
