/*<style>*/
/* ==== HEADER ==== */


header {
  background: rgba(36, 41, 46, 0.9); /* semi transparan */
  backdrop-filter: blur(8px); /* efek kaca */
  color: white;
  padding: 0.8em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  background: rgba(36, 41, 46, 0.95);
  padding: 0.6em 1.5em;
}

header h1 {
  margin: 0;
  font-size: 1.4em;
  font-weight: bold;
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  gap: 1.5em;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ff9800;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #ff9800;
}
nav a:hover::after {
  width: 100%;
}

/* Tombol menu mobile */
.menu-toggle {
  display: none;
  font-size: 1.6em;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}

/* Cart button */
.cart-wrapper {
  position: relative;
}

.cart-btn {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  border: none;
  padding: 0.6em 1.3em;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cart-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: rgba(255,255,255,0.25);
  transform: skewX(-25deg);
}

.cart-btn:hover::before {
  left: 125%;
  transition: left 0.6s ease;
}

.cart-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.cart-icon {
  font-size: 1.3em;
  transition: transform 0.3s ease;
}

.cart-btn:hover .cart-icon {
  transform: rotate(-10deg) scale(1.2);
}



/* Mobile */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(36, 41, 46, 0.95);
    padding: 1em 0;
    position: absolute;
    top: 100%; left: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease;
  }
  nav.active {
    display: flex;
  }

  nav a {
    padding: 0.75em 2em;
    border-top: 1px solid #444;
  }

  .menu-toggle {
    display: block;
  } 
  .cart-btn .cart-text {
    display: none;
  }
  .cart-wrapper {
    position: relative;
  }
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Animasi menu turun */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/*</style>*/



  /*<style>*/
    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f9f9f9;
      color: #333;
      padding-top: 70px;
    }

     

    .hero {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      padding: 4em 2em;
      background: linear-gradient(135deg, #005AA7, #FFFDE4);
      color: #fff;
    }

    .hero-text {
      flex: 1 1 300px;
      max-width: 600px;
    }

    .hero-text h2 {
      font-size: 2.5em;
      margin-bottom: 0.5em;
    }

    .hero-text p {
      font-size: 1.2em;
      line-height: 1.6;
    }

    .hero img {
      flex: 1 1 300px;
      max-width: 400px;
      width: 100%;
      border-radius: 10px;
      margin-top: 1em;
    }

    .catalog {
      padding: 3em 2em;
      background-color: #fff;
    }

    .catalog h2 {
      text-align: center;
      margin-bottom: 2em;
      font-size: 2em;
    }

    .products {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 2em;
    }

    .product-card {
      background-color: #f0f0f0;
      border-radius: 10px;
      padding: 1em;
      text-align: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .product-card img {
      max-width: 100%;
      height: 150px;
      object-fit: contain;
      margin-bottom: 1em;
    }

    .product-card h3 {
      margin: 0.5em 0;
      font-size: 1.1em;
    }

    .product-card p {
      font-size: 0.95em;
      color: #555;
    }
    
    .product-card button {
  background: #2196f3;
  color: white;
  border: none;
  padding: 0.6em 1em;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.product-card button:hover {
  background: #1976d2;
}


    footer {
      background-color: #24292e;
      color: white;
      text-align: center;
      padding: 1.5em 0;
      margin-top: 3em;
    } 

    .cart.active {
      right: 0;
    }

    .cart h3 {
      margin-top: 0;
      text-align: center;
    }

    .cart-item {
      border-bottom: 1px solid #ddd;
      padding: 0.5em 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .cart-item span {
      font-size: 0.9em;
    }

    .remove-btn {
      background: red;
      color: #fff;
      border: none;
      padding: 0.2em 0.5em;
      border-radius: 4px;
      cursor: pointer;
    }

    .checkout-btn {
      background: green;
      color: #fff;
      border: none;
      width: 100%;
      padding: 0.7em;
      margin-top: 1em;
      font-weight: bold;
      border-radius: 5px;
      cursor: pointer;
    }
    
  /* Overlay background */
  .cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }

  .cart-overlay.active {
    display: flex;
  }

  /* Popup keranjang */
  .cart {
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 10px;
    padding: 1.5em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: popupScale 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
  }

  /* Tombol close */
  .cart .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
  }

  @keyframes popupScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  .cart h3 {
    margin-top: 0;
    text-align: center;
  } 
    .cart-wrapper {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: red;
  color: white;
  font-size: 0.7em;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 50%;
  display: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  animation: pulseBadge 1.2s infinite;
} 

 #waitingOverlay, #successOverlay {
      display: none;
    }
    #waitingOverlay.active, #successOverlay.active {
      display: flex;
    }
    


.success-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.success-actions button {
  background: #2c7be5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  min-width: 140px;
  text-align: center;
}

.success-actions button:hover {
  background: #1a68d1;
  transform: translateY(-2px);
}

.success-actions button:active {
  transform: translateY(0);
}

.success-actions button:nth-child(2) {
  background: #00b894;
}
.success-actions button:nth-child(2):hover {
  background: #009975;
}

.success-actions button:nth-child(3) {
  background: #d63031;
}
.success-actions button:nth-child(3):hover {
  background: #b02424;
}

.cart-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.cart-overlay.active {
  display: flex;
}

.cart {
  background: #fff;
  border-radius: 16px;
  width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: popupShow 0.3s ease;
}
@keyframes popupShow {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.cart-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}
.close-cart {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.cart-items {
  margin-bottom: 15px;
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.cart-item-name {
  font-weight: 500;
}
.cart-item-qty {
  text-align: center;
}
.cart-item-subtotal {
  text-align: right;
  font-weight: bold;
}

.cart-section {
  padding: 12px;
  background: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 15px;
}
.cart-section h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #555;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  margin-bottom: 15px;
}

.checkout-btn {
  width: 100%;
  background: #2c7be5;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.checkout-btn:hover {
  background: #1a68d1;
}

/* Popup Notifikasi */
#notifPopup {
  display: none; 
  position: fixed;
  z-index: 1100; /* lebih tinggi dari overlay lain */
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

#notifPopup .popup-content {
  background: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}

#notifPopup h3 {
  margin: 0 0 10px;
  color: #d9534f;
}

#notifPopup p {
  font-size: 14px;
  color: #333;
}

#notifPopup .close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #888;
}




  </style>
  <style>
  /* Hilangkan tombol close di popup snap */
  .snap-close {
    display: none !important;
  }
/*</style> */
/*<style>*/
    /* Floating Action Button - Customer Service */
.cs-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #43cea2, #185a9d); /* Gradien biru-hijau profesional */
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 26px; /* Ukuran emoji */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 2s ease-in-out infinite;
  border: 3px solid white; /* Garis tepi putih agar lebih menonjol */
}

.cs-fab:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
/*</style>*/