.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  color: #333;
}

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

/* ---- Gallery ---- */
.detail-gallery {
  flex: 1 1 360px;
  min-width: 300px;
}

.gallery-main {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.gallery-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.gallery-arrow-disabled {
  opacity: 0.25;
  pointer-events: none;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: 0.45;
  filter: blur(1px);
  transition: opacity 0.2s, filter 0.2s, border-color 0.2s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: #25d366;
  opacity: 1;
  filter: none;
}

/* ---- Info ---- */
.detail-info {
  flex: 1 1 360px;
  min-width: 300px;
}

.detail-brand {
  text-transform: capitalize;
  opacity: 0.6;
  margin-bottom: 4px;
}

.detail-title {
  font-weight: bold;
  font-size: 1.8rem;
  margin: 0 0 16px;
}

.detail-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-status,
.detail-discount {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 5px;
  color: #fff;
  font-size: 0.85rem;
  text-transform: capitalize;
  background: #ff6700;
}

.detail-status.release-in-stock-tag { background: #05a742; }
.detail-status.release-presale-tag { background: #0078ff; }
.detail-status.release-order-tag { background: #ff6700; }
.detail-discount { background: #E91C24; }

.detail-price {
  margin-bottom: 24px;
}

.detail-price .price {
  font-weight: 900;
  font-size: 28px;
}

.detail-price .actual-price {
  margin-left: 16px;
  opacity: 0.5;
  text-decoration: line-through;
  font-size: 20px;
}

.detail-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-meta li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-transform: capitalize;
}

.detail-meta li span {
  opacity: 0.6;
}

.detail-reserve-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  text-transform: capitalize;
  border: #25d366 1px solid;
  background: #25d366;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.detail-reserve-btn:hover {
  background: #1da851;
  border-color: #1da851;
}

.detail-btn-blocked,
.detail-btn-blocked:hover {
  background: #3c3c3c;
  border-color: #3c3c3c;
  cursor: default;
}

.detail-back {
  margin-top: 40px;
}

.detail-back a {
  color: #333;
  opacity: 0.7;
  text-decoration: none;
}

.detail-back a:hover {
  opacity: 1;
}
