* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #e2e2e2;
  color: #000;
  
  line-height: 1.7;
}

/* Main Content */
.main-content {
  background-size: cover;
  background-color: #e0b805;
  background-image: linear-gradient(to bottom, #f0c404, #e0b805);
  flex: 1;
    justify-content: center;
  
}

header {
  background: #fffaf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid #ccc;
}

header nav {
  display: flex;
  gap: 24px;
}

header nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 32px; 
}
.section-title {
  position: relative;
  padding: 0px 0;
  text-align: center;
  margin-top: 35px;
  
}

.showproduk{  
  text-align: left;
}

.section-title h2 {
  font-family: 'Jacques Francois', serif;
  letter-spacing: 0.29em;
  font-size: 18px;
    margin-bottom: 5px;
    font-weight: 500;
}
.detailproduk {
  justify-content: space-between ;
  align-items: center;
  gap: 8px;
  display: flex;
}

.back-button {
  margin-left: 10px;
  margin-top: 40px;
  transform: translateY(-50%);
  font-family: 'David Libre', serif;
  background-color: #f6d12d;
  transition: background-color 0.3s ease;
  padding: 12px;
  border-radius: 60px;
  border: none;
  display: flex;
  font-size: 18px;
  text-decoration: none;
  color: black;
  line-height: 1;
  transition: opacity 0.2s ease;
  box-shadow: none;
}
.back-button:visited {
  color: black;
}
.back-button:hover {
  background-color: #ffdf56;
}
.back-button:focus,
.back-button:active {
  outline: none;
  box-shadow: none;
}

.product-detail {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.product-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow: visilbe; 
  flex: 1;
  width: 100%;
  max-width: 30%;
  border-radius: 10px;
  min-width: 280px;
  position: relative; 
}

.product-name {
  
  color: #5b3124;
}


.product-header:hover .product-image {
  cursor: zoom-in;
}

.product-image {
  width: 100%;
  max-width: 30%;
  min-width: 280px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.magnifier-lens {
  position: absolute;
  border: 2px solid #5b3124;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none; 
  background-repeat: no-repeat;
  background-size: 250% auto;
  visibility: hidden;
  z-index: 10;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}


.product-info {
  text-align: center;
}

.product-info h1 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 20px;
}



.product-size{
  font-size: 16px;
}

.product-desc {
  font-size: 14px;
}

.buy-section {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}


.buy-btn, .recipe-btn {
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease; 
}

.buy-btn {
  background: #5b3124;
  color: #fffaf0;
}

.buy-btn:hover {
  background: #794637; 
  transform: scale(1.05);
}

.recipe-btn {
  background: #f6d12d;
  color: #5b3124;
  border-width: 1px;
  border-style: solid;
  border-color: #5b3124;
}

.recipe-btn:hover {
  background: #ffe45c; /* Warna kuning yang lebih cerah */
  transform: scale(1.05); /* Efek membesar */
}

.share-btn {
  background-color: #f6d12d;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  padding: 10px 12px 8px 10px;
  border-radius: 60px;
}

.share-btn:hover {
  background-color: #ffdf56;
}



.grid-wrapper {
  display: flex;
  justify-content: center;
}

.grid-4 {
  display: grid;
   grid-template-columns: repeat(auto-fit, minmax(130px, 190px));
  gap: 30px;
  margin-top: 12px;
  
}
.teruji {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 30px;
  transform: translateY(-35px);
}


.grid-4 div, .teruji div {
  background: linear-gradient(135deg, #f7d53d, #ffc82f);
  border-radius: 16px;
  height: 100px;
  padding: 12px 16px 20px 16px;
  text-align: center;
  height: auto;
  display: flex;
  max-width: 200px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.teruji div{
  max-width: 408px;
  margin-top: 12px;
}

.grid-4 img, .teruji img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}

.grid-4 div p, .teruji div p {
  font-size: 16px; 
  color: #3c2009;
  text-align: center; 
  
}
.grid-4 > div:hover, .teruji > div:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: scale(1.02);
}


.grid-2-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 12px;
}



.grid-box ul {
  display: grid;
  
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: linear-gradient(135deg, #f7d53d, #ffc82f);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  color: #3c2009;
}

.grid-box li {
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}

.grid-box li::before {
  content: '✔'; /* atau ganti dengan ikon lainnya */
  position: absolute;
  left: 0;
  top: 0;
  color: #3c2009;
  font-weight: bold;
}


.testimonial {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  background: #fffaf0;
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

.testimonial button {
  background: #ddd;
  border: none;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}


.review-box {
 background: linear-gradient(135deg, #fff1b1, #ffdd7e);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  margin-bottom: 100px;
}

.review-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.review-name-stars {
  display: flex;
  flex-direction: column;
  gap: 4px; /* jarak kecil antara nama dan bintang */
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 8px; /* logo lebih dekat ke button */
}

.lihat-review {
  background: #fff1b1; 
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #4f3006;
  border: 1px solid #4f3006; 
  font-size: 14px;
  margin-right: 20px;
  transition: all 0.3s ease; 
}

.lihat-review:hover{
  background: #fff5c9; 
  transform: scale(1.05); 
  transition: all 0.3s ease; 
}

.logo-marketplace {
  width: 40px;
  height: auto;
}


.review-text {
  font-size: 14px;
  color: #4f3006;
}


.video-box {
  position: relative;  
  padding: 20px;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  width: 100% !important;    
  max-width: 900px; 
}

.video-box iframe {
  position: absolute;
  inset: 0;          
  width: 100%;
  height: 100%;
  border: none;
    border-radius: 12px;
}


/* Responsive */
@media (min-width: 768px) {
  .product-detail {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .product-header, .product-info {
    align-items: flex-start;
    text-align: left;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .buy-section{
    justify-content: left;
  }
}

@media(max-width: 1024px) {
   .product-detail {
    flex-direction: column;
    align-items: center; /* untuk gambar dan info di tengah */
  }

  .product-header {
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .product-image {
    max-width: 80% !important;
    margin: 0 auto;
  }

  .product-info {
    text-align: center;
    align-items: center;
  }
}
@media (max-width: 767px)
{
  .section-title h2 {
    text-align: center;
  }

  .sertifikasi{  
    margin-top: 95px;
  }


  .manfaat, .carapenggunaan, .review {
    margin-top: 60px;
  }


  .grid-4 {
    justify-content: center;
    place-items: center;
  }

  .back-button {
    margin-left: 0px;
  }
  .lihat-review {
  margin-right: 10px;
  font-size: 12px;
}

  
}

/*modal*/

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #f6d12d;
  padding: 24px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  position: relative;
}
.modal-header .close {
  position: absolute;
  left: 16px;
  top: 12px;
  cursor: pointer;
  font-size: 14px;
}

.modal-button {
  display: block;
  margin-top: 12px;
  padding: 10px;
  background-color: #ff7a21;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.ukuran-dropdown {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fffaf0;
  color: #333;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}
