/* ==========================================================================
   SHARP & MINIMAL PRODUCT DETAIL STYLES (v3.1)
   CAD Precision, Monospace Spec Tables, Hairline Gallery, Exact Measures
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

.breadcrumbs .current {
  color: #ffffff;
  font-weight: 600;
}

/* Layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: start;
}

/* Gallery Area */
.product-gallery {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #020408;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.product-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: auto;
  cursor: zoom-in;
}

.gallery-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

/* Product Info */
.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-detail-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.product-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.22;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.product-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.product-detail-price-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-main-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.price-note {
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.product-detail-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* MOQ Callout */
.moq-callout-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.moq-callout-box h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.moq-callout-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Actions & Steppers */
.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.action-stepper-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  height: 42px;
  width: 140px;
}

.stepper-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 40px;
  height: 100%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.stepper-btn:hover {
  color: #ffffff;
  background: var(--bg-card);
}

.stepper-input {
  flex: 1;
  background: transparent;
  border: none;
  text-align: center;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
}

.detail-subtotal-calc {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.detail-subtotal-calc strong {
  color: var(--accent-primary);
}

.action-buttons-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

/* Technical Perks */
.product-perks-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.perk-item i, .perk-item svg {
  color: var(--accent-primary);
  font-size: 0.95rem;
}

/* Specifications Tabs & CAD Matrix */
.product-tabs-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 28px;
  margin-bottom: 60px;
}

/* Interactive Gallery Zoom Trigger */
.product-gallery-main {
  position: relative;
  cursor: zoom-in;
}

.gallery-zoom-trigger {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(10, 16, 26, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all var(--transition-fast);
  z-index: 5;
}

.gallery-zoom-trigger:hover,
.gallery-zoom-trigger:active {
  background: var(--accent-primary);
  color: #050b14;
  border-color: var(--accent-primary);
}

.gallery-zoom-trigger svg {
  width: 15px;
  height: 15px;
}

.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: #ffffff;
  background: var(--bg-card);
  border-color: var(--border-card);
}

.tab-btn.active {
  color: #050b14;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 229, 117, 0.25);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* CAD Technical Spec Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.specs-table td {
  padding: 12px 14px;
}

.specs-table td:first-child {
  color: var(--text-muted);
  width: 38%;
  font-weight: 500;
  border-right: 1px solid var(--border-subtle);
}

.specs-table td:last-child {
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 600;
}

@media (max-width: 860px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-gallery {
    position: static;
  }
  .action-buttons-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-tabs-section {
    padding: 16px;
    margin-bottom: 36px;
  }
  .tabs-nav {
    margin-bottom: 16px;
    padding-bottom: 8px;
    gap: 6px;
  }
  .tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .specs-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
  .specs-table td:first-child {
    width: 44%;
  }
}
