/* ==========================================================================
   1. RESET DEFAULT, FONTS & GLOBAL UTILITIES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #ffffff;
  color: #111111;
  overflow-x: hidden;
}

/* Base button & link reset untuk halaman produk */
a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   2. NAVBAR & HEADER
   ========================================================================== */
/* 1. KONTROL POSISI STICKY NYA PINDAH KE SINI */
#navbar-container {
  position: -webkit-sticky; /* Untuk Safari lama */
  position: sticky;
  top: 0;
  z-index: 1000; /* Memastikan melayang di paling depan */
}

/* 2. KONTROL TAMPILAN DAN GAYA TETAP DI SINI */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background-color: #ffffff;

  /* Catatan: position, top, dan z-index yang lama di sini sudah DIHAPUS */

  /* Bayangan halus tetap di header agar terlihat elegan saat melintasi foto */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  text-decoration: none; /* Menghilangkan garis bawah link */
  color: #111111; /* Mengunci warna tetap hitam pekat premium */
  display: inline-block;
}

nav a {
  color: #555555;
  margin: 0 20px;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #111111;
}

.bag {
  font-size: 14px;
  letter-spacing: 1px;
  padding-bottom: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
/* Mengatur gaya ikon keranjang di navbar */
.nav-cart {
  font-size: 20px; /* Ukuran pas untuk layar HP dan Laptop */
  color: #111111; /* Hitam solid biar kontras */
  text-decoration: none;
  position: relative;
  display: inline-block;
}

/* Biar pas disentuh/di-klik ada efek transisi halus */
.nav-cart:hover {
  opacity: 0.7;
}
/* ==========================================================================
   3. HERO SECTION (INDEX.HTML)
   ========================================================================== */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 8% 80px 8%;
  min-height: calc(100vh - 90px);
}

.hero-left {
  flex: 1;
  padding-right: 5%;
}

.sub-title {
  font-size: 11px;
  letter-spacing: 4px;
  color: #888888;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-left h1 {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.description {
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 450px;
}

.btn-explore {
  display: inline-block;
  background-color: #111111;
  color: #ffffff;
  padding: 16px 42px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid #111111;
  transition: all 0.3s ease;
}

.btn-explore:hover {
  background-color: transparent;
  color: #111111;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-right img {
  width: 100%;
  max-width: 480px;
  height: 550px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  transition: opacity 0.4s ease-in-out;
}

.separator {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 0 8%;
}

/* ==========================================================================
   4. CATALOG GRID SECTION (INDEX.HTML)
   ========================================================================== */
.gallery-container {
  padding: 80px 8%;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.gallery-header p {
  color: #666666;
  font-size: 15px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  gap: 15px;
}

.filter-btn {
  background: none;
  border: 1px solid #e0e0e0;
  padding: 10px 24px;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  color: #666666;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #111111;
  border-color: #111111;
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-item {
  background-color: #fafafa;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Efek transisi warna teks judul saat card di-hover */
.product-item h3 {
  transition: color 0.3s ease;
}

.product-item:hover h3 {
  color: #555555; /* Mengubah warna judul produk saat di-hover */
}

/* Menambahkan efek transisi ke judul hero agar tidak kaku saat berganti teks */
#hero-title {
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}

.product-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.item-info {
  padding: 20px;
  background-color: #ffffff;
  border-top: 1px solid #f5f5f5;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.item-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}

.item-info p {
  font-size: 13px;
  color: #888888;
}

/* ==========================================================================
   5. DETAIL PRODUK GLOBAL SECTION (DETAIL-CREAM.HTML)
   ========================================================================== */
.detail-container {
  display: flex;
  gap: 8%;
  padding: 60px 8%;
  align-items: flex-start;
}

.product-gallery,
.product-info-sheet {
  flex: 1;
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  object-position: top center;
}

.product-tag {
  font-size: 11px;
  letter-spacing: 3px;
  color: #888888;
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
}

.product-info-sheet h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
}

.price {
  font-size: 20px;
  font-weight: 500;
  color: #111111;
  margin-bottom: 30px;
}

.product-narration p {
  font-size: 15px;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 15px;
}

.product-features h3,
.product-sizing h3 {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 35px 0 15px 0;
  color: #111111;
  font-weight: 600;
}

.product-features ul {
  list-style: none;
}

.product-features li {
  font-size: 14px;
  color: #555555;
  margin-bottom: 12px;
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.product-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #111111;
  font-weight: bold;
}

/* Sizing Table Utility */
.table-responsive {
  width: 100%;
  overflow-x: auto; /* Mencegah tabel merusak layout di HP layar kecil */
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
  min-width: 450px; /* Menjaga teks tabel tidak terlalu berhimpitan di HP */
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #eeeeee;
}

th {
  font-weight: 600;
  color: #777777;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

td {
  color: #444444;
}

tr:hover td {
  background-color: #f9f9f9;
}

.btn-buy-now {
  display: block;
  text-align: center;
  background-color: #111111;
  color: #ffffff;
  padding: 18px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  margin-top: 40px;
  font-weight: 600;
  border: 1px solid #111111;
  transition: all 0.3s ease;
}

.btn-buy-now:hover {
  background-color: transparent;
  color: #111111;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
footer {
  text-align: center;
  padding: 40px;
  font-size: 13px;
  color: #999999;
  border-top: 1px solid #f0f0f0;
  background-color: #fafafa;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (TABLET & STANDAR MOBILE - MAX 768PX)
   ========================================================================== */
@media (max-width: 768px) {
  header {
    position: fixed; /* Kunci posisi agar melayang */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Pastikan navbar selalu berada di lapisan paling atas */
    background-color: #ffffff; /* Kasih background solid biar tulisan di bawahnya gak tembus */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Garis bayangan halus biar estetik */
    padding: 15px 20px; /* Sesuaikan jarak biar gak terlalu tebal di HP */
  }

  /* KUNCI SAKTI: Biar konten utama gak ketutup navbar yang melayang */
  body {
    padding-top: 60px; /* Sesuaikan dengan tinggi navbar kamu */
  }

  nav {
    display: none; /* Menyembunyikan menu demi estetika minimalis mobile */
  }

  .hero-container {
    flex-direction: column-reverse;
    padding: 20px 5% 60px 5%;
    min-height: auto;
  }

  .hero-left {
    padding-right: 0;
    text-align: center;
    margin-top: 30px;
  }

  .hero-left h1 {
    font-size: 40px;
  }

  .description {
    margin: 0 auto 30px auto;
  }

  .hero-right img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .filter-buttons {
    flex-wrap: wrap;
    gap: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Detail Page Mobile Layout */
  .detail-container {
    flex-direction: column;
    padding: 40px 5%;
    gap: 40px;
  }
}

/* Kolom Keranjang Belanjaan saat di HP */
.cart-wrapper {
  flex-direction: column !important;
  gap: 30px !important;
}
.cart-summary {
  width: 100% !important;
}
/* ==========================================================================
   8. EXTRA RESPONSIVE (HP LAYAR KECIL - MAX 480PX)
   ========================================================================== */
@media (max-width: 480px) {
  header {
    padding: 15px 5%;
  }

  .logo {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .hero-left h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .description {
    font-size: 14px;
    line-height: 1.6;
  }

  .btn-explore {
    width: 100%; /* Tombol dibuat full-width agar mudah di-tap jempol di HP */
    text-align: center;
    padding: 15px 20px;
  }

  .gallery-container {
    padding: 60px 5%;
  }

  .gallery-header h2 {
    font-size: 26px;
  }

  .filter-buttons {
    justify-content: flex-start; /* Filter tombol berbaris rapi dari kiri */
    overflow-x: auto; /* User bisa swipe tombol filter ke kanan-kiri jika penuh */
    white-space: nowrap;
    padding-bottom: 10px;
    margin-bottom: 30px;
  }

  /* Menghilangkan scrollbar bawaan browser pada tombol filter mobile agar tetap estetik */
  .filter-buttons::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 12px;
  }

  .product-grid {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Tetap 2 kolom rapat yang presisi */
    gap: 12px;
  }

  .item-info {
    padding: 12px; /* Menghemat ruang kotak teks */
  }

  .item-info h3 {
    font-size: 13px;
  }

  .item-info p {
    font-size: 11px;
  }

  /* Detail Page Khusus HP Kecil */
  .product-info-sheet h1 {
    font-size: 28px;
  }

  .price {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .btn-buy-now {
    padding: 16px;
    font-size: 12px;
  }
}

/* --- FORMAT PENGAMAN LAYAR HP (MOBILE RESPONSIVE) --- */
@media screen and (max-width: 480px) {
  /* Memastikan bodi dan container tidak meluber ke kanan */
  body,
  html {
    overflow-x: hidden;
    width: 100%;
  }

  /* Menyesuaikan pembungkus informasi detail produk */
  .product-info-sheet {
    padding: 20px 5% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Memaksa judul H1 agar mengecil otomatis di HP dan tidak patah berantakan */
  .product-info-sheet h1 {
    font-size: 1.8rem !important; /* Ukuran teks judul lebih bersahabat di HP */
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Mengamankan daftar rekomendasi / list agar rapi */
  .product-styling-guide ul {
    padding-left: 15px !important;
  }

  .product-styling-guide li {
    font-size: 0.95rem !important;
    line-height: 1.6;
  }
}

/* ==========================================================================
   9. DUAL ACTION BUTTONS (DETAIL PRODUK)
   ========================================================================== */
.purchase-action-container {
  width: 100%;
}

.btn-main-buy {
  display: block;
  width: 100%;
  background-color: #111111;
  color: #ffffff;
  border: 1px solid #111111;
  padding: 18px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-main-buy:hover {
  background-color: transparent;
  color: #111111;
}

.btn-secondary-shopee {
  display: block;
  text-align: center;
  width: 100%;
  background-color: #ffffff;
  color: #ee4d2d; /* Warna oranye khas shopee tapi dibikin clean */
  border: 1px solid #ee4d2d;
  padding: 15px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary-shopee:hover {
  background-color: #ffebe9; /* Efek hover halus kemerahan */
}

/* ==========================================================================
   10. SIZE SELECTOR INTERACTIVE
   ========================================================================== */
.size-btn {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #e0e0e0;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.size-btn:hover {
  border-color: #111111;
}

.size-btn.selected {
  background-color: #111111;
  border-color: #111111;
  color: #ffffff;
  font-weight: 600;
}

/* Gaya dasar Toast (awal mulanya sembunyi) */
.toast {
  position: fixed;
  bottom: -100px; /* Sembunyi di bawah layar */
  left: 50%;
  transform: translateX(-50%);
  background-color: #111111; /* Hitam elegan khas brand kamu */
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition:
    bottom 0.4s ease,
    opacity 0.4s ease;
  opacity: 0;
  white-space: nowrap; /* Biar tulisan gak kepotong jadi 2 baris */
}

/* Kelas sakti untuk memunculkan Toast */
.toast.show {
  bottom: 30px; /* Membal di atas tombol home dikit */
  opacity: 1;
}

/* Container Grid Pilihan */
.options-grid {
  display: flex;
  gap: 15px;
}

/* Card Pilihan Standar */
.option-card {
  flex: 1;
  border: 1px solid #e0e0e0;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  transition: all 0.3s ease;
  background-color: #fff;
}

/* Efek pas kursor mendekat */
.option-card:hover {
  border-color: #111111;
  color: #111111;
}

/* KUNCI VISUAL: Card yang sedang dipilih user (Active) */
.option-card.active {
  border: 2px solid #111111; /* Garis tebal hitam khas ELURA */
  color: #111111;
  background-color: #fafdff; /* Efek highlight bersih */
  font-weight: 600;
}

/* Gaya Input Form Minimalis Premium */
.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  font-family: inherit;
  color: #111111;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

/* Efek kotak pas diklik/diketik (fokus) */
.form-input:focus {
  border-color: #111111; /* Garis berubah jadi hitam tegas */
  outline: none;
}

/* Mengatur jarak antar container form */
.shipping-form-container {
  border: 1px solid #eee;
  padding: 25px;
  background-color: #fff;
}
