body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f0f4f8;
  color: #333;
}

.navbar {
  background-color: #2a9d8f;
  padding: 1rem 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  color: white;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background 0.3s;
  border-radius: 6px;
}

.nav-links li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.detail-page {
  padding: 4rem 2rem;
  text-align: center;
}

.detail-page h1 {
  font-size: 2.5rem;
  color: #1d3557;
}

.detail-page p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 3rem;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.service-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #2a9d8f;
  margin: 0.5rem 0;
}

.service-card p {
  font-weight: bold;
  color: #555;
}

.back-btn {
  background-color: #2a9d8f;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.back-btn:hover {
  background-color: #21867a;
}

/* ======== POPUP ======== */
.popup-cart {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.popup-cart.show {
  display: flex;
}

.popup-content {
  background: #fff;
  border-radius: 15px;
  padding: 30px 20px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: slideUp 0.4s ease;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.quantity-controller {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.quantity-controller button {
  padding: 10px 20px;
  font-size: 20px;
  background-color: #eee;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quantity-controller button:hover {
  background-color: #ccc;
}

.quantity-controller span {
  padding: 0 20px;
  font-size: 18px;
  font-weight: bold;
}

.price, .total {
  font-size: 16px;
  margin: 10px 0;
}

.confirm-btn {
  padding: 10px 20px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.confirm-btn:hover {
  background: #218838;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideUp {
  from {transform: translateY(50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1rem;
}