/* =========================
   PRODUCT DETAIL – FINAL STABLE
   ========================= */

.product-detail {
  margin-top: 16px;
}

.product-detail.container {
  max-width: 1000px;
}

/* BACK */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 14px;

  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.btn-back:hover {
  color: var(--accent-main);
  transform: translateX(-2px);
}

/* =========================
   GRID
   ========================= */

.detail-top {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}

/* =========================
   LEFT : IMAGE
   ========================= */

.detail-left #mainImg {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* THUMB */
.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

.thumbs img.active,
.thumbs img:hover {
  opacity: 1;
  outline: 2px solid var(--accent-main);
}

/* =========================
   RIGHT : INFO
   ========================= */

.detail-right h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.detail-right .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-secondary);
}

.qty {
  margin: 12px 0;
}

.qty input {
  width: 80px;
  padding: 8px;
  font-size: 14px;
}

.total {
  font-size: 14px;
  margin-bottom: 14px;
}

/* =========================
   CTA BUTTONS
   ========================= */

/* Tambah ke Keranjang */
.btn-primary-cart {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35);
  transition: 0.2s ease;
}

.btn-primary-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.45);
}

/* Lihat Keranjang */
.btn-secondary-cart {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  text-align: center;
  background: #f8f8f8;
  color: #333;
  border-radius: 14px;
  border: 1.5px solid #ddd;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-secondary-cart:hover {
  background: #eee;
  border-color: #ccc;
}

/* NOTE */
.product-detail .note {
  margin-top: 8px;
  font-size: 12px;
  color: #777;
  text-align: center;
}

/* =========================
   DESCRIPTION
   ========================= */

.detail-bottom {
  margin-top: 32px;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.thumbs img {
  cursor: pointer;
  opacity: 0.6;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.thumbs img:hover {
  opacity: 1;
}

.thumbs img.active {
  opacity: 1;
  outline: 2px solid #22c55e;
}
