* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

main {
  flex: 1;
  padding: 10px;
  background-color: #fff;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #111;
  padding: 20px 40px;
}

.left-header {
  display: flex;
  align-items: center;
}

.logo {
  height: 90px;
  width: auto;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.25);
  cursor: pointer;
}

nav {
  display: flex;
  gap: 40px;
  margin-left: 80px; 
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 32px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

.right-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  padding: 5px;
  border-radius: 5px;
}

.search-bar input {
  border: none;
  outline: none;
  padding: 5px 10px;
}

.search-bar button {
  background: transparent; 
  color: black; 
  border: none;
  font-size: 18px;
  padding: 6px 10px;
  cursor: pointer; 
}

.cart-icon {
  font-size: 36px;
  color: white;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 130px;
  margin-top: 70px;
  margin-bottom: 70px;
}

.product-card {
  text-align: center;
  cursor: pointer;
}

.product-card img {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  margin-bottom: 30px;
}

.product-card h3 {
  font-size: 18px;
  margin: 10px 0 5px;
  line-height: 1.2; 
  min-height: 48px;
  text-align: center;
}

.product-card p {
  font-size: 20px; 
  font-weight: bold; 
}

footer {
  background-color: black;
  color: white;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 19px;
  line-height: 1.6;
  
}
.footer-logo {
  width: 150px; 
  height: auto;
  margin-bottom: 20px;
}

footer .section {
  margin: 10px;
  font-weight: 400;
}

footer .section h4 {
  margin-bottom: 10px;
  font-weight: 600;
}

footer .section a {
  display: block;
  color: white;
  text-decoration: none;
  margin-bottom: 5px;
  font-size: 19px;
}

footer .section a:hover {
  text-decoration: underline;
}

/* --- media screen rule --- */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  nav {
    flex-direction: column;
    gap: 15px;
    margin-left: 0;
    font-size: 24px;
  }

  .right-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
  }

  .search-bar input {
    width: 150px;
  }

  .product-list {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .product-card {
    width: 90%;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .view-all-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .section {
    margin: 20px 0;
  }

  .logo {
    height: 70px;
  }
}

/* --- HOVER EFFECT UNTUK KARTU PRODUK --- */
.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-card:hover img {
  transform: scale(1.05);
}

/* UKURAN FOTO */
img[alt="Louis Vuitton Neverfull Tote"] {
  width: 100%;
  height: 70%;
}
img[alt="Gucci"] {
  width: 100%;
  height: 70%;
}
img[alt="Rolex"] {
  width: 100%;
  height: 70%;
}

img[alt="Chanel"] {
  width: 100%;
  height: 70%;
}
img[alt="Hermes"] {
  width: 100%;
  height: 70%;
}
img[alt="Prada"] {
  width: 100%;
  height: 70%;
}
img[alt="Dior"] {
  width: 100%;
  height: 70%;
}
img[alt="Balenciaga"] {
  width: 100%;
  height: 70%;
}
img[alt="Cartier"] {
  width: 100%;
  height: 70%;
}
img[alt="Gucci Supreme"] {
  width: 100%;
  height: 70%;
}

