/* === WARNA DAN FONT === */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fce4ec;
  color: #444;
  margin: 0;
  padding: 0;
  animation: fadeIn 0.8s ease-in-out;
}

/* === HEADER === */
header {
  background-color: #f9c5d1;
  color: #ec407a;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  font-size: 1.3rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* === KARTU PRODUK === */
.card {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  padding: 1rem;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(236, 64, 122, 0.3);
}

.card img {
  width: 100%;
  height: 250px;
  border-radius: 1rem;
  object-fit: cover;
}

/* === TOMBOL === */
.btn {
  background-color: #ec407a;
  color: white;
  padding: 0.6rem;
  border: none;
  border-radius: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #d81b60;
  transform: translateY(-2px);
}

/* === NAVIGASI BAWAH === */
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f9c5d1;
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

nav a {
  font-size: 1.5rem;
  color: #ec407a;
  transition: transform 0.2s;
}

nav a:hover {
  transform: scale(1.2);
}

/* === CHECKOUT, LOGIN, PROFILE BOX === */
.checkout-box, .login-box, .profile-box {
  background-color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* === ANIMASI === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animasi tombol sukses */
.success-anim {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}
/* === FORM LOGIN & REGISTER === */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  max-width: 320px;         /* ukuran maksimum kolom */
  padding: 14px 18px;       /* memperbesar tinggi kolom */
  font-size: 16px;          /* teks lebih besar */
  border: 2px solid #f48fb1;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #ec407a;
  box-shadow: 0 0 8px rgba(236, 64, 122, 0.3);
}

.login-box, .register-box {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 400px;
  margin: 3rem auto;
}

.login-box h2, .register-box h2 {
  color: #ec407a;
  font-weight: 700;
  margin-bottom: 1rem;
}

.btn {
  width: 100%;
  max-width: 320px;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
}
/* ---------- WELCOME PAGE ---------- */

.welcome-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #f04e9e, #f78bb9, #ffd1dc);
  background-attachment: fixed;
  overflow: hidden;
  color: #fff;
}

.welcome-card {
  position: relative;
  text-align: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 60px 40px;
  backdrop-filter: blur(12px);

  /* ✨ Efek bayangan pink pekat di border */
  border: 2px solid rgba(255, 105, 180, 0.5);
  box-shadow:
    0 0 25px rgba(255, 51, 153, 0.6),
    0 0 60px rgba(255, 20, 147, 0.4),
    inset 0 0 25px rgba(255, 182, 193, 0.3);

  z-index: 2;
  transition: all 0.4s ease;
}

/* Saat di-hover biar makin glowing */
.welcome-card:hover {
  box-shadow:
    0 0 35px rgba(255, 20, 147, 0.8),
    0 0 80px rgba(255, 51, 153, 0.6),
    inset 0 0 35px rgba(255, 192, 203, 0.4);
  transform: scale(1.01);
}

.logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 25px;
  animation: zoomIn 1.2s ease-in-out;
}

/* Teks selamat datang */
h1 {
  font-size: 32px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 700;
}

h1 span {
  color: #fff8f9;
  font-weight: 800;
}

h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

h2 .brand {
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
}

p {
  font-size: 15px;
  color: #fce4ec;
  max-width: 320px;
  margin: 0 auto 25px;
  line-height: 1.5;
}

/* Tombol */
.btn-welcome {
  display: inline-block;
  padding: 12px 40px;
  background: linear-gradient(90deg, #e91e63, #f06292);
  border-radius: 25px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  transition: all 0.3s ease;
}

.btn-welcome:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(233, 30, 99, 0.4);
}

/* Efek hati melayang */
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* biar gak ganggu klik tombol */
  z-index: 999; /* ✨ biar love-nya di atas semuanya */
}

.heart {
  position: absolute;
  font-size: 40px; /* 💗 lebih besar */
  animation: floatHearts 6s infinite ease-in-out;
  opacity: 0.9;
}

/* Gerakan animasi love naik perlahan */
@keyframes floatHearts {
  0% {
    transform: translateY(100vh) scale(1);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    transform: translateY(50vh) scale(1.3);
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(100px) scale(0.8);
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-500px) scale(1.2);
    opacity: 0;
  }
}

/* Animasi masuk lembut */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Animasi Love */
.floating-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.heart {
  position: absolute;
  bottom: -50px;
  font-size: 45px;
  opacity: 0.8;
  animation: floatUp 10s linear infinite;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 25%; animation-delay: 2s; }
.heart:nth-child(3) { left: 40%; animation-delay: 4s; }
.heart:nth-child(4) { left: 55%; animation-delay: 1s; }
.heart:nth-child(5) { left: 70%; animation-delay: 3s; }
.heart:nth-child(6) { left: 85%; animation-delay: 5s; }
.heart:nth-child(7) { left: 50%; animation-delay: 6s; }
.heart:nth-child(8) { left: 15%; animation-delay: 8s; }
.heart:nth-child(9) { left: 75%; animation-delay: 9s; }

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-50vh) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1.5);
    opacity: 0;
  }
}


