/* ===== Start Header ===== */
.topbar {
  background: #77005d;
  border-bottom: 1px solid #fed7aa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Container */
.topbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-img {
  height: 2.25rem;
  width: auto;
  box-shadow: none;
}

/* Search */
.search-bar {
  flex: 1;
  max-width: 36rem;
  margin: 0 1rem;
  display: none;
}
@media (min-width: 768px) {
  .search-bar {
    display: flex;
  }
}
.search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 0.875rem;
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  outline: none;
}
.search-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #fb923c;
}

/* Menu */
.topbar-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: white; /* Ubah warna teks jadi putih */
  font-weight: 500;
}
.menu-link {
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  color: white; /* Ubah warna link jadi putih */
}
.menu-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.menu-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.icon-track {
  width: 1.25rem;
  height: 1.25rem;
  color: white; /* Icon menjadi putih */
  stroke: white; /* Pastikan stroke juga putih */
}
.badge {
  position: absolute;
  top: -0.25rem;
  right: -0.75rem;
  background-color: #fbff00;
  color: rgb(0, 0, 0);
  font-size: 0.625rem;
  padding: 2px 6px;
  border-radius: 9999px;
}
/* ===== End Header ===== */

/* ===== Start Breadcrumb ===== */
.breadcrumb-container {
  background: transparent;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb-link {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

.breadcrumb-icon {
  width: 1rem;
  height: 1rem;
  color: #9ca3af; /* gray-400 */
}

.breadcrumb-current {
  font-weight: 600;
  color: #e5ff00; /* gray-800 */
}
/* ===== End Breadcrumb ===== */

/* ===== Link Gacor ===== */
.gacor-links-wrapper {
  background: #fa20fa;
  padding: 1rem 1.5rem;
  border-radius: none;
  margin-top: 1rem;
  overflow-x: auto;
}

.gacor-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.gacor-links::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.gacor-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1); /* lebih halus */
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff; /* span/teks putih */
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

/* Pastikan ikon berwarna putih */
.gacor-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* untuk gambar PNG/SVG hitam agar jadi putih */
}

/* Jika kamu memakai SVG inline (bukan <img>), bisa tambah: */
.gacor-item svg {
  stroke: #ffffff;
  fill: #ffffff;
}
/* ===== End link gacor ===== */

/* ===== Start Gambar Produk ===== */
.product-image-container {
  position: relative;
  width: 100%;
  height: 16rem;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid #fff;
}

.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  z-index: 10;
}

.nav-btn.left {
  left: 0.5rem;
}

.nav-btn.right {
  right: 0.5rem;
}

.slide-counter {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.thumb-img {
  width: 100%;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 1px solid #fff;
  cursor: pointer;
  transition: 0.3s;
}

.thumb-img:hover {
  border-color: #e53935;
}
/* ===== End Gambar Produk ===== */

/* ===== Star Info Produk ===== */
section h1 {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* gray-800 */
}

/* Rating Bintang */
section p.text-yellow-500 {
  font-size: 1rem;
  font-weight: 500;
  color: #facc15; /* yellow-400 */
}

/* Teks jumlah ulasan */
section p.text-yellow-500 span {
  font-size: 0.875rem; /* text-sm */
  color: #ffffff; /* gray-500 */
  margin-left: 4px;
}

/* Harga Sekarang */
.price-pulse {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d8d50a; /* red-600 */
  animation: pulse 1.4s infinite;
  margin-left: 0; /* Atur jika perlu */
}

/* Harga Coret */
.line-through {
  text-decoration: line-through;
  font-size: 0.875rem;
  color: #ffffff; /* gray-400 */
  margin-left: 0.25rem; /* Jarak dari harga utama */
}

/* Diskon Persen */
.bg-pink-400 {
  background-color: transparent;
  color: white;
  font-size: 0.875rem;
  padding: 2px 8px;
  border-radius: 0.375rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

/* ===================== */
/* ANIMASI PULSE HARGA */
/* ===================== */

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    color: #ffd700; /* Gold */
    text-shadow: 0 0 5px #ffd700, 0 0 10px #ffc300, 0 0 15px #ffa500;
  }
  50% {
    transform: scale(1.05);
    color: #fff8dc; /* Soft gold-ish white */
    text-shadow: 0 0 10px #ffd700, 0 0 15px #ffc300, 0 0 20px #ffa500;
  }
}

/* ===== End Info Produk ===== */

/* ===== Start Artikel ===== */
.artikel-box {
  background: linear-gradient(
    to right,
    #e0f2fe,
    #ffffff
  ); /* biru muda ke putih */
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  padding: 1rem;
}

.artikel-konten {
  position: relative;
  max-height: 140px;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.25rem;
  background: linear-gradient(to right, #e0f2fe, #bae6fd, #7dd3fc);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: max-height 0.5s ease-in-out;
}

/* Fade Overlay */
.artikel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4rem;
  width: 100%;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none;
}

/* Konten Teks */
.artikel-teks {
  font-size: 0.95rem;
  color: #1f2937; /* gray-800 */
  line-height: 1.7;
}

/* Judul Artikel */
.judul-artikel {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0c4a6e; /* deep blue */
  margin-bottom: 0.75rem;
}

/* Subjudul */
.subjudul-artikel {
  font-size: 1rem;
  font-weight: 600;
  color: #2563eb;
  margin-top: 1rem;
}

/* Highlight Warna */
.highlight-pink {
  font-weight: 600;
  color: #ec4899;
}

.highlight-yellow {
  font-weight: 600;
  color: #eab308;
}

/* Tombol Lihat Selengkapnya */
.lihat-selengkapnya-wrapper {
  text-align: center;
  margin-top: 0.75rem;
}

.lihat-selengkapnya-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  transition: text-decoration 0.2s ease;
}

.lihat-selengkapnya-btn:hover {
  text-decoration: underline;
}

/* Saat konten terbuka penuh */
.artikel-konten.active {
  max-height: 1000px;
}

/* ===== End Artikel ===== */

/* ===== Start Panduan/Gambar List ===== */
/* none */
/* ===== End Panduan/Gambar List ===== */

/* ===== Start Info Toko ===== */
.info-toko-seller {
  background-color: #77005d;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  color: white;
  font-size: 0.875rem; /* text-sm */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.info-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-toko {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 2px solid white;
  object-fit: cover;
}

.nama-toko {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.badge-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.badge-slot {
  background-color: #ec4899; /* pink-500 */
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  color: white;
}

.badge-rating {
  background-color: #2563eb; /* blue-600 */
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: white;
}

.btn-ikuti {
  color: white;
  border: 1px solid white;
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: 0.3s;
  background-color: transparent;
  cursor: pointer;
}

.btn-ikuti:hover {
  background-color: white;
  color: #910e0e;
}

.info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: white;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.stat-label {
  margin-top: 0.125rem;
}
/* ===== End Info Toko ===== */

/* ===== Start Menu Footer ===== */
.footer-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.footer-mobile.hide-footer {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .footer-mobile {
    display: block;
  }
}

/* Grid Footer */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

/* Tombol */
.footer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  gap: 4px;
}

.footer-btn img {
  width: 24px; /* diperbesar dari 20px */
  height: 24px;
}

/* Chat Button */
.footer-btn.chat span {
  color: #0f766e;
}
.footer-btn.chat:hover {
  background-color: #f0fdfa;
}

/* Cart Button */
.footer-btn.cart span {
  color: #d97706;
}
.footer-btn.cart:hover {
  background-color: #fffbeb;
}

/* Buy Button */
.footer-btn.buy {
  background-color: #ef4444;
  color: #ffffff;
  font-weight: 600;
  border-top-right-radius: none;
  transition: background-color 0.3s ease;
}
.footer-btn.buy span {
  color: #ffffff;
}
.footer-btn.buy:hover {
  background-color: #dc2626;
}
/* ===== End Menu Footer ===== */
