/* ====== GLOBAL STYLE ====== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: white;
  color: black;
  transition: background-color 0.5s, color 0.5s;
}

body.dark-mode {
  background-color: #121212;
  color: white;
}

/* ====== DROPDOWN ====== */
.dropdown-menu .dropdown-item {
  position: relative;
  color: black;
  background: white;
  padding: 8px 16px;
  transition: color 0.3s ease;
}

.dropdown-menu .dropdown-item::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
  color: #000;
}

.dropdown-menu .dropdown-item:hover::after {
  width: 100%;
}

/* ====== NAVBAR ====== */
.navbar {
  background: rgba(0, 0, 0, 0.85);
}

.navbar-brand {
  font-weight: 600;
}

.nav-link {
  color: #ddd !important;
  font-weight: 500;
}

.nav-link:hover {
  color: #28a745 !important;
}

/* ====== HERO SECTION ====== */
.hero {
  height: 60vh;
  background: url('image/petshop.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  color: #ddd;
}

.btn-custom {
  background-color: brown;
  border-radius: 30px;
  padding: 10px 26px;
  margin: 5px;
  font-weight: 500;
  color: white;
  border: none;
  transition: 0.3s;
}

.btn-custom:hover {
  background-color: rgb(161, 69, 69);
  transform: scale(1.05);
}

/* ====== PRODUCT CARD ====== */
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
}

/* --- Shopee-style product images (uniform square) --- */
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Petak seragam semua gambar */
  object-fit: cover; /* Pastikan isi penuh tanpa distorsi */
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
  background-color: #f5f5f5; /* Warna latar belakang kalau gambar kecil */
}

.product-card h4 {
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card .price {
  color: #b22222;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

body.dark-mode .product-card {
  background: #1f1f1f;
  color: white;
}

/* ====== FOOTER ====== */
footer {
  background: #000;
  padding: 40px 0;
  text-align: center;
  color: #aaa;
  margin-top: 60px;
}

footer h5 {
  color: #fff;
  margin-bottom: 15px;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
  .hero {
    height: 50vh;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 40vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .product-card img {
    aspect-ratio: 1 / 1.1; /* Sedikit tinggi di skrin kecil */
  }
}

@media (max-width: 576px) {
  .hero {
    height: 35vh;
    padding: 10px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn-custom {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .product-card img {
    aspect-ratio: 1 / 1.1;
  }
}
