/* ================= FONT ALIGNMENT WITH MAIN STYLE ================= */

/* Body text ikut default (Amiri) - tidak perlu diubah */

/* Semua heading di product ikut sistem utama */
.product-title,
.preorder-box h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
}

.product-details h4,
.size-guide h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 2rem; /* dibesarkan */
}

/* Optional: kalau mau konsisten 100% dengan system */
.product-price {
  font-family: "Poppins", sans-serif;
}
/* ================= PRODUCT DETAIL ================= */

.product-detail {
  padding: 10rem 10% 6rem;

  background: #fafafa;
}

.product-layout {
  display: grid;

  grid-template-columns: 1.2fr 0.8fr;

  gap: 5rem;

  align-items: start;
}

/* ================= LEFT SIDE (IMAGES) ================= */

.product-images {
  width: 100%;
}

.image-item {
  margin-bottom: 3rem;
}

.image-item img {
  width: 100%;
  display: block;
  border-radius: 1rem;
  object-fit: cover;
  transition: 0.3s ease;
}

.image-item img:hover {
  transform: scale(1.015);
}

/* ================= RIGHT SIDE (INFO) ================= */

.product-info {
  width: 100%;

  position: sticky;

  top: 120px;

  align-self: start;
}
/* Badge */
.product-badge {
  display: none;
}

/* Title */
.product-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.3;
}

/* Price */
.product-price {
  font-family: "Poppins", sans-serif;

  font-size: 1.5rem;

  font-weight: 600;

  letter-spacing: 0.5px;

  color: #111;

  margin-bottom: 1.8rem;
}
.product-price {
  color: var(--primary);
}
/* Lead */
.product-lead {
  font-family: "Amiri", serif;

  font-size: 1.2rem;

  line-height: 1.7;

  color: #444;
}

/* Body */
.product-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #666;
}

/* Details */
.product-details {
  margin-top: 2rem;
}

.product-details h4 {
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.product-details ul {
  list-style: none;
  padding: 0;
}

.product-details li {
  font-family: "Poppins", sans-serif;

  font-size: 0.9rem;

  color: #555;
}

/* Button */
.btn-preorder {
  margin-top: 2.5rem;
  width: 100%;
  border-radius: 50px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
  padding: 1.1rem;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-preorder:hover {
  background: #111;
  transform: translateY(-2px);
}

/* ================= PREORDER MODAL ================= */

.preorder-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 2rem;
}

.preorder-box {
  background: #fff;
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  border-radius: 1.5rem;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.4rem;
  cursor: pointer;
}

.preorder-box form input,
.preorder-box form select {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.preorder-box form button {
  width: 100%;
  padding: 1rem;
  border-radius: 50px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.preorder-box form button:hover {
  background: #111;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .product-layout {
    grid-template-columns: 1fr;

    gap: 3rem;
  }

  .product-info {
    position: static;
  }
}
/* ================= MOBILE SLIDER ================= */

@media (max-width: 992px) {
  .product-images {
    position: relative;
    overflow: hidden;
  }

  .image-track {
    display: flex;
    transition: transform 0.4s ease;
  }

  .image-item {
    min-width: 100%;
    margin: 0;
  }

  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }
}
/* Default: sembunyikan tombol */
.slider-btn {
  display: none;
}

/* Tampilkan hanya di mobile */
@media (max-width: 992px) {
  .slider-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }
}
/* ================= SIZE GUIDE ================= */

.size-guide {
  margin-top: 2.5rem;
}

.size-guide h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.size-table {
  font-family: "Poppins", sans-serif;

  font-size: 0.85rem;
}

.size-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.size-table th,
.size-table td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

.size-table th {
  font-weight: 600;
  color: #111;
}

.size-table td {
  color: #555;
}
/* ===============================
SIZE GUIDE DOWNLOAD
================================ */

.size-download {
  display: inline-block;

  margin-top: 1.2rem;

  font-family: "Poppins", sans-serif;

  font-size: 0.9rem;

  color: var(--primary);

  text-decoration: none;

  border-bottom: 1px solid transparent;

  transition: 0.3s ease;
}

.size-download:hover {
  border-bottom: 1px solid var(--primary);

  letter-spacing: 0.5px;
}
.size-download {
  display: inline-flex;

  align-items: center;

  gap: 6px;
}
.product-title {
  font-size: 2.6rem;

  line-height: 1.3;

  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.6rem;

  margin-bottom: 2rem;
}

.product-body {
  max-width: 500px;
}

.product-body p {
  font-size: 1.1rem;

  line-height: 1.9;
}
.product-details {
  margin-top: 2.5rem;

  padding-top: 2rem;

  border-top: 1px solid #eee;
}
.size-guide {
  margin-top: 3rem;

  padding-top: 2rem;

  border-top: 1px solid #eee;
}
@media (max-width: 768px) {
  .product-detail {
    padding: 7rem 6%;
  }

  .product-title {
    font-size: 2rem;
  }

  .product-body p {
    font-size: 1.05rem;
  }
}
