/* Reset dasar */
body {
  margin: 0;
  font-family: poppins, sans-serif;
  background: #f9f9f9;
  color: #ffffff;
}

.hero {
  background-color: #0066CC;
  padding: 40px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1rem;
  max-width: 700px;
  margin: auto;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
    }

    .feature, .service-box {
        width: 90%;
    }
}

body {
    margin: 0;
    font-family: poppins ,sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0066CC;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    text-decoration: none;
    color: inherit; 
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: 0.3s ease;
}


.nav-links a:hover {
    color: #ffcc00;
}

.login-btn {
    background-color: #ffcc00;
    padding: 8px 15px;
    border-radius: 5px;
    color: black !important;
    font-weight: bold;
}

.login-btn:hover {
    background-color: #ff9900;
}

.kategori {
  padding: 20px;
  text-align: center;
}

.kategori-buttons button {
  background-color: white;
  border: 2px solid #0066CC;
  color: #0066CC;
  padding: 10px 18px;
  margin: 5px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.kategori-buttons button:hover,
.kategori-buttons .active {
  background-color: #0066CC;
  color: white;
}

.produk-container {
  padding: 20px;
  max-width: 1200px;
  padding-bottom: 62px;
  margin: auto;
}

.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 10px;
}

.product-desc {
  font-size: 0.9rem;
  margin: 0 10px;
  color: #666;
}

.product-price {
  font-size: 1.1rem;
  margin: 10px;
  font-weight: bold;
  color: #0066CC;
}

.badge-kondisi {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0066CC;
  color: #fff;
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 5px;
  text-transform: uppercase;
}

.badge-kondisi.baru {
  background-color: #28a745;
}

.badge-kondisi.bekas {
  background-color: #dc3545;
}

/* Animasi saat filter */
.product-card {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.product-card.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

/* Tombol Beli */
.btn-beli {
  display: block;
  margin: 10px;
  padding: 10px 15px;
  background-color: #0066CC;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.btn-beli:hover {
  background-color: #1c2d6c;
}

/* Modal Pop-up */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

#modal-title {
  color: #666;
}

#modal-desc {
  color: #666;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

.popup-price {
  font-size: 1.2rem;
  color: #0066CC;
  font-weight: bold;
  margin-top: 10px;
}

/* Tombol WhatsApp */
.wa-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #25D366;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.wa-button:hover {
  background-color: #1ebe5d;
}

/* Animasi Modal */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

.popup-overlay {
  position: fixed;
  display: none;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.popup-box {
  background: white;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  margin: 100px auto;
  border-radius: 10px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.popup-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #aaa;
}

.btn-wa {
  display: block;
  background: #25D366;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 25px;
  margin-top: 15px;
  text-decoration: none;
}

.btn-wa:hover {
  background: #1ebe5d;
}

/* Footer */
footer {
    background: #0066CC;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    bottom: 0;
    z-index: 10;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
