/*====================
Blok 1 — Product Detail: mengatur fondasi, lebar, dan warna halaman detail produk.
======================*/
.detail-header {
  display: none;
}
.product-detail {
  width: min(1160px, calc(100% - 64px));
  margin: 40px auto 80px;
  color: #202c27;
  font-family: Poppins, sans-serif;
}

/*====================
Blok 2 — Breadcrumb: mengatur navigasi lokasi halaman.
======================*/

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: #87918b;
  font-size: 12px;
  line-height: 1.7;
}

.product-breadcrumb a {
  color: #16785b;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
  color: #075e46;
}

/*====================
Blok 3 — Product Layout: mengatur kolom galeri dan informasi produk.
======================*/

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 40px;
}

.product-gallery,
.product-detail-content {
  min-width: 0;
}

/*====================
Blok 4 — Product Gallery: mengatur foto utama dan thumbnail produk.
======================*/

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #edf0ed;
  border-radius: 14px;
  background: #fff;
}

.product-image {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 440px;
  object-fit: contain;
  padding: 10px;
  border-radius: 14px;
  background: #f8faf8;
}

.product-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #e8ede9;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.product-thumbnail:hover {
  border-color: #8abda0;
}

.product-thumbnail.active {
  border-color: #08784f;
  box-shadow: 0 0 0 1px #11d38c;
}

.product-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbnail:focus-visible {
  outline: 2px solid #08784f;
  outline-offset: 3px;
}

/*====================
Blok 5 — Product Information: mengatur kategori, nama, harga, dan deskripsi.
======================*/

.product-detail-content {
  min-width: 0;
  padding-top: 4px;
}

.product-category {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 11px;
  border: 1px solid #dcebe1;
  border-radius: 7px;
  background: #f0f7f2;
  color: #16734f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  line-height: 1.5;
  text-transform: uppercase;
}

.product-title {
  margin: 15px 0 0;
  color: #202c27;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}

.product-price-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-top: 17px;
}

.product-price {
  margin: 0;
  color: #08784f;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.product-old-price {
  margin: 0;
  color: #98a19b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
}

.product-description {
  margin: 15px 0 0;
  color: #68756d;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

/*====================
Blok 6 — Product Purchase: mengatur kontrol jumlah dan tombol keranjang.
======================*/

.product-purchase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #e8ede9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgb(25 55 39 / 4%);
}

.product-quantity {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid #dfe7e1;
  border-radius: 9px;
  background: #fff;
}

.product-quantity-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: #f7faf7;
  color: #344b3e;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.product-quantity-btn:hover {
  background: #eaf4ed;
  color: #08784f;
}

.product-quantity-btn .lucide {
  width: 16px;
  height: 16px;
}

.product-quantity-input {
  width: 54px;
  height: 42px;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid #e6ece7;
  border-left: 1px solid #e6ece7;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: #26372d;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.product-quantity-input::-webkit-inner-spin-button,
.product-quantity-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.product-quantity-input:focus {
  box-shadow: inset 0 0 0 1px #16845b;
}

.product-add-to-cart,
.product-open-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.product-add-to-cart {
  background: #08784f;
  color: #fff;
}

.product-add-to-cart:hover {
  transform: translateY(-1px);
  background: #066542;
}

.product-open-cart {
  border-color: #dce8df;
  background: #fff;
  color: #276347;
}

.product-open-cart:hover {
  border-color: #b9d7c3;
  background: #f2f8f3;
}

.product-add-to-cart .lucide,
.product-open-cart .lucide {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

#prd-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 7px;
  background: #e5f3e9;
  color: #176541;
  font-size: 11px;
  font-weight: 700;
}

/*====================
Blok 7 — Product Additional Information: mengatur informasi pendukung produk.
======================*/

.product-info {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid #e8ede9;
  color: #68756d;
  font-size: 13px;
  line-height: 1.85;
}

.product-info h2 {
  margin: 0 0 6px;
  color: #26372d;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.product-info p {
  margin: 0 0 10px;
}

.product-info h3 {
  margin: 24px 0 10px;
  color: #26372d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.product-info ul {
  margin: 0;
  padding-left: 20px;
}

.product-info li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.product-info li::marker {
  color: #16845b;
}

.product-info strong {
  color: #35483b;
  font-weight: 600;
}

/*====================================================
  Blok 8 — Product Highlights: Modern & Elegant Style
======================================================*/
.product-highlights {
  margin-top: 48px;
  padding: 40px 24px;
  background: linear-gradient(180deg, #f7f9f8 0%, #edf2f0 100%);
  border-radius: 14px;
  border: 1px solid rgba(22, 132, 91, 0.08);
}

.product-highlights h2 {
  margin: 0 0 32px;
  color: #26372d;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
  text-align: center;
}

.product-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-highlight-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;

  /* Dekorasi Card Modern */
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(22, 132, 91, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(38, 55, 45, 0.04);

  /* Transisi halus untuk efek hover */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  color: #526258;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

/* Kotak ikon agar terlihat seperti badge/pills modern */
.product-highlight-item .lucide {
  width: 24px;
  height: 24px;
  color: #16845b;
  stroke-width: 2;
  flex-shrink: 0;

  /* Memberi background tipis di belakang ikon */
  padding: 10px;
  background: rgba(22, 132, 91, 0.08);
  border-radius: 12px;
  box-sizing: content-box;
}

/*=======================
Blok 9 — Product Info Accordion
===========================*/

.product-info {
  margin-top: 28px;
  padding: 0;
  border: 1px solid #e4ece6;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f8f5;
}

.product-info-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  padding: 17px 20px;
  border: 0;
  background: linear-gradient(135deg, #90edd4, #edf4ef);
  color: #26372d;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease;
}

.product-info-toggle:hover {
  background: #9af1d3;
}

.product-info-toggle .lucide {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #16845b;
  transition: transform 0.35s ease;
  animation: info-arrow-bounce 1.8s ease-in-out infinite;
}

.product-info-toggle[aria-expanded="true"] .lucide {
  animation: none;
  transform: rotate(180deg);
}

.product-info-content {
  padding: 4px 20px 20px;
  border-top: 1px solid #e4ece6;
  animation: info-content-open 0.3s ease;
}

.product-info-content[hidden] {
  display: none;
}

@keyframes info-arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes info-content-open {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-info-toggle .lucide,
  .product-info-content {
    animation: none;
    transition: none;
  }
}

/* Preview Informasi Produk*/
.product-info-preview {
  padding: 12px 20px 16px;
  color: #59675e;
  font-size: 13px;
  line-height: 1.6;
  border-top: 1px solid #e4ece6;
}

.product-info-preview span {
  display: block;
  margin-top: 5px;
  color: #16845b;
  font-size: 12px;
  font-weight: 700;
}
/*====================
Blok 10 — Product Customer Reviews 
======================*/

.product-reviews {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid #e8ede9;
  min-width: 0;
}

.product-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.product-reviews-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #16845b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.product-reviews-header h2 {
  margin: 0;
  color: #26372d;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.product-reviews-controls {
  display: flex;
  gap: 8px;
}

.review-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e1e9e3;
  border-radius: 50%;
  background: #fff;
  color: #344b3e;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.review-nav-btn:hover {
  border-color: #16845b;
  background: #16845b;
  color: #fff;
}

.review-nav-btn .lucide {
  width: 17px;
  height: 17px;
}

.product-reviews-track {
  display: grid;
  grid-auto-columns: calc((100% - 32px) / 3);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.product-reviews-track::-webkit-scrollbar {
  display: none;
}

.product-review-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid #e9efea;
  border-radius: 15px;
  background: #fff;
  scroll-snap-align: start;
}

.product-review-rating {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
  color: #e5a33b;
}

.product-review-rating .lucide {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.product-review-message {
  flex: 1;
  margin: 0;
  color: #58675e;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.product-review-image {
  display: block;
  width: 100%;
  max-height: 150px;
  margin-top: 14px;
  border-radius: 9px;
  object-fit: contain;
}

.product-review-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #eef1ee;
}

.product-review-author strong {
  color: #344b3e;
  font-size: 12px;
  font-weight: 700;
}

.product-review-author span {
  color: #98a19b;
  font-size: 10px;
}

.review-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/*===========================
 Blok 11 — Review Image Lightbox 
=============================*/

.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(12, 18, 15, 0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.review-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.review-lightbox-image {
  display: block;
  max-width: min(900px, 90vw);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.review-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.review-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.review-lightbox-close .lucide {
  width: 22px;
  height: 22px;
}

/* Blok 12 — Product FAQ */

.product-faq {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid #e8ede9;
}

.product-faq-header {
  margin-bottom: 20px;
}

.product-faq-header > span {
  display: block;
  margin-bottom: 6px;
  color: #16845b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.product-faq-header h2 {
  margin: 0;
  color: #26372d;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.product-faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e9efea;
}

.product-faq-item {
  border-bottom: 1px solid #e9efea;
}

.product-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 19px 4px;
  border: 0;
  background: transparent;
  color: #344b3e;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.product-faq-question .lucide {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #16845b;
  transition: transform 0.2s ease;
}

.product-faq-question[aria-expanded="true"] .lucide {
  transform: rotate(45deg);
}

.product-faq-answer {
  padding: 0 36px 18px 4px;
}

.product-faq-answer p {
  margin: 0;
  color: #68766d;
  font-size: 13px;
  line-height: 1.8;
}

/*===================== 
Blok 13 — Product Recommendations
=======================*/

.product-recommendations {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid #e8ede9;
}

.product-recommendations-header {
  margin-bottom: 22px;
}

.product-recommendations-header span {
  display: block;
  margin-bottom: 6px;
  color: #16845b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.product-recommendations-header h2 {
  margin: 0;
  color: #26372d;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.product-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.recommendation-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9efea;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.recommendation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(30, 65, 45, 0.08);
}

.recommendation-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 16px;
  background: #f8faf8;
}

.recommendation-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recommendation-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px;
}

.recommendation-info h3 {
  margin: 0 0 7px;
  color: #344b3e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.recommendation-info p {
  margin: 0 0 14px;
  color: #7b887f;
  font-size: 11px;
  line-height: 1.6;
}

.recommendation-info strong {
  margin-top: auto;
  color: #16845b;
  font-size: 14px;
  font-weight: 700;
}
