
:root {
  --bg1: #000;
  --accent: white;
  --text: #A67B5B;
  --nav-height: 64px;
        --radius: 12px;
      --shadow: 0 8px 14px #A67B5B;
      --gap: 18px;
      --font-link: "Fascinate Inline", system-ui;;
  --font-nav: "BBH Sans Hegarty", system-ui;
  --font-text: "Chicle", system-ui;
  --font-judul:"Bagel Fat One", system-ui;
  --font-harga: "Modak", system-ui;
  --font-warning: "Rubik Marker Hatch", system-ui;
}


/* ========== RESET & BASE ========== */
* {
  color: #5b3a29;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
   color: #5b3a29;
  letter-spacing: 1px;
  font-family: var(--font-text);
  background: #fff3e0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========== HEADER ========== */
.site-header {
  font-family: var(--font-nav);
  width: 100%;
  height: 64px;
   background: #6F4E37;
  display: flex;
  align-items: center;
  justify-content: space-between;
   padding: 1rem 1.2rem;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
}

.brand a img {
  width: 28px; /* biar kecil pas */
  height: auto;
  filter: brightness(0) invert(1); /* ubah jadi putih */
  transition: 0.3s ease;
}

.brand a img:hover {
  transform: scale(1.1);
}

/* Hilangin efek biru tap di Android */
a, button, input, label {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}


/* ========== CONTAINER ========== */
.container {
  font-family: var(--font-text);
  width: 95%;
  height: auto;
  background: #ffe0b2;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

/* PRODUK IMAGE */
.product-img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* DETAIL PRODUK */
.details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.details h2 {
  font-family: var(--font-judul);
  margin: 0.5rem 0 0.8rem 0;
  font-size: 2.1rem;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.details h2 span {
  font-size: 1.4rem;
  font-weight: 500;
  color: #a67729;
  background: linear-gradient(90deg, #fff6d9 0%, #f6d27a 25%, #e1a11f 50%, #b67908 75%, #f6d27a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.gold {
  font-family: var(--font-judul);
  font-size: 1.5rem;
  -webkit-text-stroke: 0.3px black;
  letter-spacing: 2px;
  font-weight: 500;
  background: linear-gradient(90deg, #fff6d9 0%, #f6d27a 25%, #e1a11f 50%, #b67908 75%, #f6d27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.price {
  font-size: 1.5rem;
  margin: 0;
}
.price span {
  color: #B6771D;
  font-family: var(--font-harga);
}

/* JUMLAH & OPSI */
/* ========================= */
/*   STYLE UNTUK SELECT PORSI */
/* ========================= */
.select-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-text);
}

.select-area label {
  font-weight: bold;
  font-family: var(--font-text);
  font-size: 1.1rem;
  color: #5b3a29;
}

.select-area select {
  appearance: none; /* hilangkan default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff8e1;
  border: 2px solid #B6771D;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #5b3a29;
  font-family: var(--font-text);
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23B6771D' height='24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.2rem;
}
.select-area option {
  font-family: var(--font-text);
  background-color: #fff8e1;  /* warna latar opsi */
  color: #5b3a29;             /* warna teks */
  font-weight: 600;
}
.select-area select:hover {
  border-color: #a96a18;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: scale(1.02);
}

.select-area select:focus {
  border-color: #8b5e1a;
  box-shadow: 0 0 0 3px rgba(182, 119, 29, 0.2);
}

/* RESPONSIF UNTUK SELECT */
@media (max-width: 700px) {
  .select-area label {
    font-size: 1rem;
  }
  .select-area select {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
  }
}

.footer {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* QUANTITY CONTROL */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  margin-bottom: -3%;
}

.qty-control button {
  background: #B6771D;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.qty-control span {
  width: 55px;
  height: 35px;
  background: #fff8e1;
  border: 2px solid #B6771D;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
}

/* RADIO OPTION */
.option {
  margin-top: -2%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.title-option {
  font-family: var(--font-text);
  font-size: 1.1rem;
  font-weight: bold;
}
.custom-radio {
    font-family: var(--font-text);
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
}
.custom-radio input {
  position: absolute;
  opacity: 0;
}
.radio-mark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: #ddd;
  border-radius: 50%;
}
.custom-radio input:checked ~ .radio-mark {
  background-color: #B6771D;
  box-shadow: 0 0 6px rgba(255,152,0,0.5);
}
.radio-mark::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  display: none;
}
.custom-radio input:checked ~ .radio-mark::after {
  display: block;
}
input[type="radio"]:focus {
  outline: none;
   -webkit-tap-highlight-color: transparent;
  box-shadow: none;
}
/* HARGA */
.total {
  margin-bottom: -3%;
    font-family: var(--font-text);
  font-size: 1.1rem;
}
.total span {
  color: #B6771D;
  font-family: var(--font-harga);
}

/* TOMBOL BELI */
.buy-btn {
  display: block;
  width: 100%;
  background: #B6771D;
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  font-size: 1.7rem;
  letter-spacing: 1px;
  font-weight: bold;
  cursor: pointer;
  
  transition: 0.3s ease;
    font-family: "Dancing Script", cursive;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.buy-btn:hover {
  background: #fb8c00;
  transform: translateY(-2px);
}

 /* Overlay popup */
  .popup-overlay {
  position: fixed; /* Kunci pop-up ke layar */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex; 
  justify-content: center; /* Pusatkan horizontal */
  align-items: center;
  background: rgba(0, 0, 0, 0.5); 
  z-index: 9999;
}

.popup-content {
    transform: none !important; /* Mencegah transform yang tidak diinginkan dari bentrokan */
}


  /* Isi popup */
  .popup-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
    animation: zoomIn 0.4s ease;
  }

  /* Tombol close (X) */
  .close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
  }

  
.popup-content p, span{
font-family: var(--font-text);
}
.popup-content span {
  background: rgb(84, 249, 84);
  padding: 3px;
  border-radius: 3px;
}
  .title-popup {
    font-family: var(--font-judul);
    text-align: center;

  }

  .peringatan {
  font-family: "Rubik Marker Hatch", cursive;
  color: white;
  background: rgb(237, 38, 38);
  padding: 3px;
  border-radius: 3px;
  display: inline-block;
  font-size: 1.2rem;
  width: 95%;
}

  .close-btn {
    width: 100%;
    background: #fb8c00;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: var(--font-judul);
    letter-spacing: 1px;
  }

/* RESPONSIF */
@media (min-width: 320px) and (max-width: 425px) {
    .buy-btn {
    margin-top: -10%;
  }
  .title-popup {
    font-size: 1rem;
  }
 .popup-content p{
  font-size: 0.8rem;
 }
}
@media (max-width: 700px) {
  .container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .details h2 {
    font-size: 1.5rem;
  }
    .buy-btn {
    margin-top: -7%;
  }

}

@media (min-width: 900px) and (max-width: 1024px){
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }

  @keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
  }
  .footer {
    margin-top: 8%;
  }
  .buy-btn {
    margin-top: -7%;
  }
}