.detail-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 20px 48px
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.detail-main-img {
  position: relative;
  height: 480px;
  background: #F9FAFB;
  border-radius: 18px;
  overflow: hidden
}

.detail-track {
  display: flex;
  height: 100%;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none
}

.detail-track img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  object-fit: contain;
  background: #F9FAFB;
  flex-shrink: 0;
  pointer-events: none;
  -webkit-user-drag: none
}

.detail-badge {
  top: 16px;
  left: 16px;
  font-size: 12px;
  padding: 5px 14px;
  z-index: 3
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto
}

.detail-thumb {
  width: 72px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  flex-shrink: 0;
  opacity: .55;
  transition: all .2s
}

.detail-thumb:hover {
  opacity: .8
}

.detail-thumb.active {
  border-color: var(--red);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(217,43,43,.2)
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.detail-info {
  display: flex;
  flex-direction: column
}

.detail-tag {
  background: var(--red-soft);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  width: fit-content;
  margin-bottom: 14px
}

.detail-info h1 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -.4px
}

.detail-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px
}

.detail-specs {
  margin-bottom: 24px
}

.detail-specs h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: .3px
}

.detail-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.detail-spec {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text)
}

.detail-price {
  background: var(--red-soft);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px
}

.dp-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--red);
  display: block
}

.dp-note {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-top: 4px
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  transition: transform .15s, box-shadow .2s;
  flex: 1;
  justify-content: center
}

.detail-btn:hover {
  transform: translateY(-2px)
}

.detail-btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.3)
}

.detail-btn-wa:hover {
  box-shadow: 0 6px 24px rgba(37,211,102,.4)
}

.detail-btn-phone {
  background: var(--text);
  color: #fff
}

.detail-warn {
  font-size: 12px;
  color: var(--muted);
  text-align: center
}

.detail-related {
  border-top: 1px solid var(--border);
  padding-top: 32px
}

.detail-related h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 20px
}

.detail-related .pc {
  text-decoration: none;
  color: inherit
}

@media(max-width:860px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .detail-main-img {
    height: 320px;
    border-radius: 14px
  }

  .detail-info h1 {
    font-size: 22px
  }

  .detail-actions {
    flex-direction: column
  }
}

@media(max-width:600px) {
  .detail-main-img {
    height: 260px
  }

  .detail-thumb {
    width: 56px;
    height: 42px
  }

  .detail-info h1 {
    font-size: 20px
  }

  .dp-value {
    font-size: 20px
  }

  .detail-spec {
    font-size: 12px;
    padding: 6px 12px
  }
}
