* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-image: url("./img/bg.jpg"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.container {
  color: aliceblue;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: cornflowerblue;
  padding: 20px;
  font-size: 20px;
}

ul {
  list-style: none;
  display: flex;
  gap: 20px;
}


ul li a {
  text-decoration: none;
  color: aliceblue;

  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 200ms ease, color 200ms ease;
}

ul li a:hover {
  background-color: white;
  color: black;
}

ul li a.active {
  background-color: white;
  color: black;
}


.search-bar {
  display: flex;
  gap: 10px;
  padding: 12px 20px;

  background-color: transparent; 
  border-bottom: 1px solid #ffffff20;

  justify-content: center;
  align-items: center;
}

.search-bar input {
  width: min(520px, 80vw);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ffffff60;
  outline: none;

  background: rgba(255, 255, 255, 0.15); 
  color: #fff;

  backdrop-filter: blur(6px); 
}

.search-bar input::placeholder {
  color: #ffffffb3;
}

.search-bar button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ffffff40;
  background: cornflowerblue;
  color: white;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease;
}

.search-bar button:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.search-bar button#clearBtn {
  background: transparent;
}


.content {
  color: aliceblue;
  padding: 20px;
}

.title {
  margin-bottom: 10px;
}

.parfum-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(10, auto);
  gap: 8px 20px;      
  padding-left: 20px; 
  margin-left: 0;
  font-size: 18px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.parfum-list li {
  white-space: nowrap; /
}


h3 {
  text-align: center;
  margin-bottom: 15px;
}


.table {
  margin: auto;
  width: 60%;
  font-size: 20px;
  text-align: center;
  background-color: #ffffff20;
  color: aliceblue;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px;
}

.card-container {
  margin: 50px auto;
  text-align: center;
  background-color: transparent; 
  padding-bottom: 20px;
}

.card-container h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #ffffff;
  padding-top: 20px;
}

.best {
  display: inline-block;
  width: 300px;
  margin: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  vertical-align: top;
  overflow: hidden;
}

.best img {
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 10px;

  transition: transform 200ms ease;
  transform-origin: center;
  display: block;
}

.best img:hover {
  transform: scale(1.2);
}

.best p:first-child {
  font-weight: bold;
  color: #b59f5b;
}

.best p:last-child {
  font-size: 1.1rem;
  margin-top: 5px;
}

.Waterkiss {
  color: #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15%;
  margin: 5px 20% 5px 20%;
  padding-bottom: 50px;
}

.Waterkiss img {
  width: 220px;
}

.Deskripsi-parfum {
  margin-top: 20px;
  margin-bottom: 0;
}

.footer {
  background-color: black;
  color: white;
  text-align: center;
  padding: 18px 12px;
  margin-top: 40px;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

body.preload .content,
body.preload .card-container,
body.preload .Waterkiss {
  opacity: 0;
  transform: translateY(10px);
}

body.loaded .content,
body.loaded .card-container,
body.loaded .Waterkiss {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms ease, transform 400ms ease;
}


.reveal-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
  will-change: opacity, transform;
}

.reveal-item.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  body.loaded .content,
  body.loaded .card-container,
  body.loaded .Waterkiss {
    transition: none;
    transform: none;
  }
}

/* JUDUL */
.price-title{
  text-align: center;
  margin: 18px 0 12px;
}

/* 2 tabel berdampingan */
.price-grid{
  width: min(1200px, 95vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* kiri kanan */
  gap: 16px;
  align-items: start;
}

/* Table biar muat kolom */
.price-grid .table{
  width: 100%;
  font-size: 16px;
  border-collapse: collapse;
  background-color: #ffffff20;
  color: aliceblue;
}

/* padding & border rapi */
.price-grid .table th,
.price-grid .table td{
  padding: 8px 10px;
  border: 1px solid #ffffff30;
}

/* Header table */
.price-grid .table thead th{
  background: rgba(255,255,255,0.12);
  font-weight: 800;
}

/* Responsive: HP jadi 1 kolom (tabel turun ke bawah) */
@media (max-width: 900px){
  .price-grid{
    grid-template-columns: 1fr;
  }
  .price-grid .table{
    font-size: 15px;
  }
}


.video-section{
  width: min(1000px, 92vw);
  margin: 30px auto;
  text-align: center;
  color: aliceblue;
}

.video-section h2{
  margin-bottom: 12px;
}

.video-wrapper{
  width: min(300px, 92vw);   /* ukuran video */
  aspect-ratio: 9 / 16;      /* cocok buat video portrait/shorts */
  margin: 0 auto;

  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ffffff30;
  background: #000;
}

.video-player{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover; /* biar memenuhi frame */
}
