@media (min-width:320px) and (max-width:684px) {
@font-face {
    font-family: "Roman";
    src: url("../font/AvenirLTStd-Roman.otf") format("opentype");
  }
  @font-face {
    font-family: "Book";
    src: url("../font/AvenirLTStd-Book.otf") format("opentype");
  }
  @font-face {
    font-family: "Black";
    src: url("../font/AvenirLTStd-Black.otf") format("opentype");
  }
  
  * {
    box-sizing: border-box;
  }
  body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Mencegah horizontal scroll */
  }
  .container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
    background-color: #f3a806;
  }
  .container, .wrapper, .main-content { 
    width: 100% !important;
    max-width: 100% !important;
  }
  .profile {
    background-color:;
    text-align: center;
    position: ;
  }
  
  .profile img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: absolute;
    top: 8.5em; /* Mengatur posisi vertikal ke tengah */
    left: 50%; /* Mengatur posisi horizontal ke tengah */
    transform: translate(-50%, -140%); /* Menggeser gambar ke tengah */
    border: 3px solid white;
  }
  .bio {
    margin: 60px auto 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 260px;
    height: 100px;
    padding: ;
    background-color: rgb(255, 255, 255);
    border-radius: 10px 10px 0px 0px;
  }
  .bio h1 {
    margin: 1.3em auto 0.2em;
    color: ;
    font-size: 1rem;
  }
  .bio p {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
  }
  
  .boxprofil {
    background-color: rgb(255, 255, 255);
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 5px;
  }
  .stats {
    display: flex;
    justify-content: space-between;
    background-color: #f0f0f0;
    padding: 10px;
    margin: 0;
  }
  .stat-box {
    flex: 1;
    width: 100px;
    margin: 0 10px;
    padding: 5px;
    border-radius: 8px;
    text-align: center;
  }
  .stat-box h2 {
    font-size: 0.9rem;
  }
  .stat-box.orange {
    background-color: orange;
    color: white;
  }
  
  .products h2 {
    font-size: 0.9rem;
    color: #3f3f3f;
  }
  .stats p {
    font-size: 0.6rem;
  }
  .stat-box.black {
    background-color: rgb(57, 121, 158);
    color: white;
  }
  section {
    display: contents;
  }

  .stmj {
    background-color: ;
  }

  .products {
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
    background-color: ;
    padding: 20px;
    box-sizing: border-box; /* Agar padding tidak menambah ukuran elemen */
  }
  .product {
    height: 133px;
    min-width: 320px;
    max-width: 100%!important;
    width: 100%!important;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #e0f7fa;
    border-radius: 8px;
    border: 1px solid black;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0px;
    user-select: none; /* Mencegah pemilihan teks */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Menambahkan bayangan */
  }
  .product:hover {
    background-color: #f3a806;
  }
  .product-special:hover {
    background-color: #f3a806;
  }
  
  .product img {
    max-width: 120px;
    height: 125px;
    border-radius: 8px;
    margin: 0px 0px 0px 5px;
    object-fit: cover;
    overflow: hidden;
    background-color: ;
  }
  .product-special img {
  height:280px;
  }

  .content {
      background-color: ;
      display: flex;
      flex-direction: column;
      justify-content: space-between; /* Pusatkan konten secara vertikal */
      align-items: flex-start; /* Pusatkan konten secara horizontal */
      padding: 0px; /* Tambahkan padding untuk ruang di dalam konten */
      margin-right: 1em;
      height: 100px; /* Atur tinggi kontainer */
      width: 100%; /* Atur lebar kontainer */
  }
  
  .product h2 {
      margin: 0;
      font-size: 1rem;
      background-color: ;
      overflow: hidden; /* Sembunyikan teks yang lebih dari batas */
      display: -webkit-box; /* Gunakan box model untuk mendukung clamp */
      -webkit-line-clamp: 3; /* Batasi teks maksimal 3 baris */
      -webkit-box-orient: vertical; /* Orientasi kotak menjadi vertikal */
      word-wrap: break-word; /* Memastikan kata panjang terpotong sesuai batas */
      line-height: 1.2; /* Sesuaikan tinggi baris jika diperlukan */
      max-width: 500px!important;
  }
  
  
  
  .ebookharga {
      background-color: ;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      width: 100%;
  }
  
  .ebookharga span {
      font-size: 0.7rem;
      color: #777;
  }
  .ebookharga .price {
    font-size: 1rem;
    color: #ec0000;
    border-radius: 0;
    padding: 0px 0px 0px 0px!important;
    font-family: 'Black', sans-serif;
    background-color: ;
    bottom:0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ebookharga .price-free {
    position: ;
    font-size: 1rem;
    border-radius: 5px;
    padding: ;
    bottom: 7px;
    right:10px;
    font-family: 'Black', sans-serif;
  }
  .message-toggle {
    right:10px;
  }
  
}

@media (min-width: 500px) and (max-width: 684px) {
  .main-content,
  .product, .product-special img,
  .product-special,
  .products,
  .stmj,
  section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
  }
  
  .product {
      margin-bottom: 20px;
  }

  .products {
    background-color: ;
  }

  .stmj {
    background-color: transparent; /* Atur warna jika diperlukan */
    display: block;
  }
  .product h2 {
    margin: 0;
    font-size: 1rem;
    background-color: ;
    overflow: hidden; /* Sembunyikan teks yang lebih dari batas */
    display: -webkit-box; /* Gunakan box model untuk mendukung clamp */
    -webkit-line-clamp: 3; /* Batasi teks maksimal 3 baris */
    -webkit-box-orient: vertical; /* Orientasi kotak menjadi vertikal */
    word-wrap: break-word; /* Memastikan kata panjang terpotong sesuai batas */
    line-height: 1.2; /* Sesuaikan tinggi baris jika diperlukan */
    max-width: 800px!important;
}
.message-toggle {
  right:50px;
}
}
