/* ============================================================
   PRODUCT DETAIL — STYLES
   ============================================================ */

.breadcrumb-bar {
  padding: calc(var(--header-h) + 24px) 0 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color .25s; }
.breadcrumb a:hover { color: var(--fg); }
.bc-current { color: var(--fg); }

/* Layout */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Gallery — sticky only on desktop */
.product-gallery { position: relative; }
@media (min-width: 901px) {
  .product-gallery { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  aspect-ratio: 1;
  position: relative;
  cursor: crosshair;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .1s linear;
}
.gallery-zoom-hint {
  position: absolute;
  bottom: 16px; right: 16px;
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--fg);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 60px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity .3s;
}
.gallery-main:hover .gallery-zoom-hint { opacity: 0; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  cursor: none;
  transition: border-color .3s, transform .2s;
  flex-shrink: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--red); }
.thumb:hover { transform: scale(1.05); border-color: rgba(201,37,92,.5); }

/* Info panel */
.product-info { padding-top: 16px; }
.product-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
}
.product-name {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.product-price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--fg);
  flex-shrink: 0;
  white-space: nowrap;
}
.product-price span {
  font-size: .85rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.short-desc { margin-bottom: 32px; }

/* Specs */
.product-specs {
  margin: 24px 0 32px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.spec-row {
  display: flex;
  padding: 12px 20px;
  font-size: .8125rem;
  border-bottom: 1px solid var(--glass-border);
  gap: 12px;
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
  width: 120px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.spec-val { color: var(--fg); font-weight: 500; }

/* Buy actions */
.product-buy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 0;
}
.add-cart-area {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 60px;
  overflow: hidden;
  background: var(--glass);
  flex: 0 0 auto;
  height: 52px;
}
.qty-btn {
  width: 42px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  color: var(--fg);
  cursor: pointer;
  transition: background .2s;
}
.qty-btn:hover { background: rgba(0,0,0,.06); }
.qty-val {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}
.add-to-cart-btn {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
  min-height: 52px;
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: none;
}
.add-to-cart-btn:hover {
  box-shadow: 0 6px 24px var(--red-glow);
}
.view-cart-btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

@media (max-width: 900px) {
  .spec-label { width: 100px; }
  .product-info { padding-top: 0; }
  .add-to-cart-btn {
    font-size: .72rem;
    padding-left: 18px;
    padding-right: 18px;
    gap: 8px;
  }
}

/* Long desc */
.long-desc {
  margin-top: 40px;
  padding: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.long-desc h4 {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.long-desc p { font-size: .9375rem; color: var(--text-muted); line-height: 1.8; }

@media (max-width: 640px) {
  .long-desc { padding: 20px; }
  .thumb { width: 56px; height: 56px; }
}
