*

{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: white;
  text-align: center;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 60px; /* Sesuaikan ukuran logo */
}

h1 {
  font-size: 24px;
  white-space: nowrap;
}

.home {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 15px;
    width: 300px;
}

 .card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
}
.card h2 {
    font-size: 18px;
    margin: 10px 0;
    color: black;
}

.card a {
    display: block;
    text-decoration: none;
    background-color: #007bff;
    color: white; /* Warna teks putih */
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}



.card a:hover {
    background-color: #0056b3;
}

.description {
  color: rgb(0, 0, 0);
  width: 100%; /* Atur lebar sesuai kebutuhan */
  height: 200px; /* Tinggi yang diinginkan, sesuaikan dengan desain */
  overflow-y: auto; /* Scroll vertikal jika konten melebihi ukuran */
  border: 1px solid #ffffff; /* Menambahkan border agar elemen lebih terlihat */
  padding: 10px; /* Menambahkan ruang di dalam elemen */
  background-color: #f9f9f9; /* Warna latar belakang */}
   
  .home {
    background-image: url('kbg.jpeg'); /* Ganti dengan gambar latar belakang */
    background-size: cover;
    background-position: center;
    padding: 50px 0;
  }

  /* Footer */
.footer {
  background-color: #06152B;
  color: white;
  padding: 40px 20px;
  text-align: left;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1400px;
  margin: auto;
}

.footer-section {
  width: 20%;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-logo {
  font-size: 20px;
  font-weight: bold;
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
  width: 200px;
}

.footer-title {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* Ikon */
.footer-icons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.icon {
  color: white;
  font-size: 20px;
  transition: 0.3s;
}

.icon:hover {
  color: #ccc;
}

/* Garis pembatas */
.footer-divider {
  border: 0;
  height: 1px;
  background: #444;
  margin: 20px auto;
  width: 90%;
}

/* Copyright */
.footer-copyright {
  text-align: center;
  font-size: 14px;
  color: #ccc;
}





.cart {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-right: 20px;
}

.cart-count {
  background-color: red;
  color: white;
  font-size: 14px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cart-popup {
  display: none;
  position: fixed;
  right: 20px;
  top: 60px;
  background: white;
  padding: 15px;
  border: 1px solid #ccc;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  width: 250px;
  z-index: 1000;
}

.cart-popup.show {
  display: block;
}

.cart-popup h3 {
  margin-bottom: 10px;
}

.cart-items {
  text-align: left;
}

.cart-item {
  font-size: 14px;
  border-bottom: 1px solid #444;
  padding: 5px 0;
}

.checkout-btn {
  width: 100%;
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
}

.checkout-btn:hover {
  background-color: #218838;
}

.empty-cart {
  text-align: center;
  font-size: 14px;
  color: #ccc;
  padding: 10px 0;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  width: 350px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}


@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.modal-product-details {
  text-align: left;
  margin: 15px 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #555;
}

.modal-product-details li {
  margin: 6px 0;
}

.modal-brand {
  width: 100%;
  padding: 8px;
  margin: 12px 0;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
}

.modal-product-price {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
  margin: 10px 0;
}

.buy-button {
  background: #3498db;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.buy-button:hover {
  background: #2980b9;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
  transition: color 0.3s;
}

.close:hover {
  color: #e74c3c;
}

.cart-popup {
  display: none;
  position: fixed;
  top: 50px;
  right: 20px;
  background: rgb(0, 0, 0);
  border: 1px solid #ccc;
  padding: 20px;
  width: 250px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-popup.active {
  display: block;
}



/* RESPONSIVE DESIGN */
@media (max-width: 768px) {

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
   
    background-color: #000;
  }
  
  .header-content {
    display: flex;
    padding: 15px ;
    align-items: center;
    
  }
  
  .logo {
    width: 40px;
    height: auto;
  }
  
  .header-content h1 {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
  }

  .cart {
    display: flex;
    align-items: center;
    gap: 0px;
    cursor: pointer;
   
  }
}