/* RESET & BODY FLEX */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
.bx-warn {width: 50%;
  float: none;
  margin: auto;
 margin-top: auto;
  margin-top: 40px;
  border: 1px solid #ccc;
  padding: 20px;
  background-color:#fff8dc;font-size:15px;}
 
 
  .price-list{color: red;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: bold;}
  
.blink {
    animation: blink 2s infinite;
    font-weight: bold;
    color: red;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* HEADER */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: linear-gradient(135deg,#56abf9,#a8e063);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

header h2 {
    margin: 0;
    font-size: 28px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
}

header form {
    flex: 1;
    text-align: right;
 
}
.logo-web{width:280px;}
.logo {width:0%;}
header input[type="text"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    width: 220px;
    max-width: 100%;
}

/* MAIN CONTENT FLEXIBLE */
.main-content {
    flex: 1; /* mengambil ruang kosong agar footer di bawah */
    max-width: 1200px;
    margin: 80px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 15px;
}
.title{     font-size: 14px;
  display: inline-block;
  padding-right: 6px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(28,200,138,0.2), 0 6px 25px rgba(78,115,223,0.15);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    padding:15px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 0px;
     padding-top: 20px;
}

.card-body h4 {
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #1f3c88;

    display: -webkit-box;        /* untuk line-clamp */
    -webkit-line-clamp: 1;       /* maksimal 2 baris */
    -webkit-box-orient: vertical; 
    overflow: hidden;            /* sembunyikan teks yang lebih */
    text-overflow: ellipsis;     /* tambahkan "..." di akhir */
}

.card-body .meta {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

 .meta {
    display: flex;
    justify-content: space-between; /* supaya item menyebar */
    align-items: center;            /* vertikal rata tengah */
    font-size: 14px;
    color: #555;
    margin-top: 30px;
}

.meta-item {
    margin-right: 15px;
}

.meta .harga {
    font-size: 20px;
    color: #27ae60;
    font-weight: 600;
}

/* FOOTER */
footer {
    background: #1f3c88;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #f1c40f;
    text-decoration: none;
}

/* TABLET */
@media (max-width: 900px){
    .main-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    header form {
        text-align: left;
        margin-top: 10px;
        width: 100%;
            display:inherit;
    }
}

/* MOBILE */
@media (max-width: 600px){
    .logo {width:100%;}
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
    }
.logo-web{width: 200px;
    float: none;
    margin: auto;
    display: block;
    padding:20px 0px;
  }

    header input[type="text"] {
        width: 100%;
    }

    .main-content {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .card img {
        height: 180px;
    }

    .meta .harga {
        font-size: 18px;
    }
    .bx-warn {width: 80%;}
}
.wa-float {
  position: fixed;
  width: 80px;
  height: 70px;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.wa-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
 
}
 