/* ===== General ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
}

/* ===== Navbar ===== */
header {
  background: #0a74da;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-list li a {
  color: white;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: #ffeb3b;
}

.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.shop-hero {
  background: linear-gradient(135deg, #82E3FF, #c6f6ff);
  padding: 4rem 2rem;
  text-align: center;
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.shop-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #003344;
}

.shop-hero p {
  font-size: 1.1rem;
  color: #004455;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.shop-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: #0077a6;
  color: #fff;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.shop-btn:hover {
  background: #005c80;
  transform: scale(1.05);
}

/* Efek Ornamen Bulat */
.shop-hero::before,
.shop-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  z-index: 0;
}

.shop-hero::before {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -50px;
}

.shop-hero::after {
  width: 150px;
  height: 150px;
  bottom: -40px;
  right: -40px;
}

.shop-hero-content {
  position: relative;
  z-index: 1;
}

/* ===== Product Card ===== */
.product-item {
  background: linear-gradient(145deg, #99ADFF, #7e92f5);
  flex: 1 1 calc(33% - 1rem);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  animation: fadeInUp 0.8s forwards;
  opacity: 0;
}.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.product-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: cover;
  max-height: 180px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

.product-item h2 {
  color: #0a74da;
  margin-bottom: 0.5rem;
}

.product-item p {
  color: #444;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #0a74da;
}

/* Badge Produk */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff9800;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}
.badge.promo { background: #e91e63; }

/* Rating Bintang */
.rating {
  color: #ffcc00;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ===== Button ===== */
.btn-primary {
  align-self: center;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, #ff5722, #ff784e);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e64a19, #ff5722);
  transform: scale(1.05);
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  background: #0a74da;
  color: white;
}

/* Animasi Fade In */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    background: #0a74da;
    position: absolute;
    top: 60px;
    right: 1rem;
    border-radius: 8px;
    padding: 1rem;
    width: 180px;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .product-item {
    flex: 1 1 100%;
  }
}