/* Naisu Store - halaman beranda (flash sale, hero, kategori, game list, berita) */
.flashsale {
  padding: 30px 0;
}

.flash-header { margin-bottom: 15px; }
.flash-left { display: flex; flex-direction: column; }
.flash-top { display: flex; align-items: center; gap: 5px; }
.flash-title { font-size: 26px; font-weight: bold; }
.flash-title span:first-child { color: orange; }
.flash-title span:last-child { color: #2b2b5c; }
.flash-sub { font-size: 13px; color: #aaa; margin-top: 4px; }
.flash-timer span { font-size: 13px; color: #555; }
.timer { display: flex; gap: 10px; }
.timer div { text-align: center; background: #ff7a00; padding: 4px 6px; border-radius: 6px; color: #fff; }
.timer b { font-size: 18px; display: block; }
.flash-list .owl-stage { display: flex; }
.flash-list .owl-item { padding: 5px; opacity: 1 !important; filter: none !important; transform: none !important; }
.flash-card { position: relative; border-radius: 10px; overflow: hidden; height: 140px; color: #fff; }
.flash-card img.bg { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.flash-card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.card-flex { position: relative; z-index: 2; display: flex; height: 100%; align-items: center; }
.game-thumb { width: 80px; height: auto; margin-left: 10px; flex-shrink: 0; overflow: hidden; }
.game-thumb img { width: 100%; height: auto; display: block; border-radius: 12px; }
.card-info { flex: 1; padding: 10px; display: flex; flex-direction: column; justify-content: center; }
.card-info h4 { font-size: 14px; margin: 0; }
.card-info small { font-size: 12px; opacity: 0.8; }
.price { margin-top: 5px; }
.price .new { font-size: 16px; font-weight: bold; }
.price .old { font-size: 11px; text-decoration: line-through; color: #ff6b6b; }
.stock-bar { margin-top: 6px; height: 16px; background: rgba(255,255,255,0.2); border-radius: 10px; position: relative; overflow: hidden; }
.stock-bar span { display: block; height: 100%; background: linear-gradient(90deg, #ff0000, #ff7a00); }
.stock-bar p { position: absolute; width: 100%; top: 0; left: 0; text-align: center; font-size: 11px; font-weight: 600; color: #fff; line-height: 16px; margin: 0; }
.badge-flash { position: absolute; top: 8px; right: 8px; background: orange; padding: 4px 8px; border-radius: 8px; font-size: 10px; }

/* ================= HERO ================= */
.hero-wrapper { width: 100%; padding: 30px 20px; }
.hero-carousel { position: relative; }
.hero-slide { width: 100%; max-width: 1100px; margin: 0 auto; aspect-ratio: 16/6; border-radius: 20px; overflow: hidden; background: #000; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.owl-dots { text-align: center; margin-top: 15px; }
.owl-dot span { display: inline-block; width: 25px; height: 6px; margin: 0 4px; background: #ddd; border-radius: 10px; transition: all 0.35s ease; }
.owl-dot.active span { background: #f5b613; width: 35px; }

/* ================= FLOATING STICKY CATEGORY WRAPPER ================= */
.sticky-nav-container {
  position: sticky;
  top: var(--nav-top);
  z-index: 990;
  background: rgba(25, 26, 27, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  width: calc(100% - 40px);
  max-width: 1210px;
  margin: 15px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.category-wrapper { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 15px; 
  padding: 12px 15px; 
}

.category-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-right: 20px; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-scroll::after { content: ""; display: block; flex: 0 0 20px; }

.nav-btn {
  background-color: transparent;
  color: #fff;
  border: 1px solid #444;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.nav-btn.active,
.nav-btn:hover {
  background-color: #f5b613;
  color: #191a1b;
  border-color: #f5b613;
  font-weight: bold;
}


/* ================= SECTION HEADER ================= */
.section-header { margin: 20px auto 5px; padding: 0 20px; }
.section-header h2 { font-size: 22px; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.section-header small { font-size: 13px; color: #a1a6b1; display: block; line-height: 1.4; }

/* ================= GAME / SECTION ITEM ================= */
.section-item {
  padding: 20px 0;
  min-height: 250px;
  scroll-margin-top: calc(var(--nav-top) + var(--subnav-h) + 16px);
}

.game-section { margin: 15px auto; padding: 0 20px; }
.game-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.game-header h2 { color: #fff; font-size: 20px; margin: 0; }
.game-desc { display: block; margin: 0 0 14px; font-size: 13px; line-height: 1.4; color: var(--text-soft); }
.game-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); flex-wrap: wrap; }
.game-card { border-radius: 8px; cursor: pointer; transition: 0.2s; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 0 18px rgba(245, 182, 19, 1); border: solid 1px #f5b613; }

/* PERBAIKAN: Mengubah border-radius gambar game agar melengkung di SELURUH SISI (atas dan bawah) */
.game-img { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; }
.game-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: 0.3s; display: block; border-radius: 8px; }
.game-card:hover .game-img img { transform: scale(1.05); }

.game-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 70%); opacity: 0; transition: 0.3s; border-radius: 8px; }
.game-card:hover .game-overlay { opacity: 1; }
.game-info { position: absolute; bottom: 25px; left: 10px; right: 10px; opacity: 0; transform: translateY(10px); transition: 0.3s; }
.game-card:hover .game-info { opacity: 1; transform: translateY(0); }
.game-info h4 { color: #fff; font-size: 13px; font-weight: 700; margin: 0; line-height: 1.2; }
.game-info small { color: #ccc; font-size: 12px; margin-top: 2px; display: block; line-height: 1.2; }

/* ================= NEWS ================= */
.news-section { margin: 25px auto; padding: 0 20px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card { background: #fff; border-radius: 14px; overflow: hidden; transition: 0.3s; cursor: pointer; }
.news-card:hover { transform: translateY(-5px); }
.news-content { padding: 12px 14px 16px; }
.news-content h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #111; }
.news-content p { font-size: 13px; color: #777; }

/* ================= RESPONSIVE (HOME) ================= */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 756px) {
  .game-list { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .category-wrapper { flex-direction: column; align-items: stretch; gap: 10px; }
  .category-scroll { order: 1; padding-bottom: 10px; }
  .category-scroll { padding-bottom: 0; }
  .category-wrapper { padding: 10px; gap: 8px; }
  .game-list { gap: 10px; }
  .game-header h2 { font-size: 18px; }
}

@media (max-width: 380px) {
  .game-list { grid-template-columns: repeat(2, 1fr); }
}

.game-link { display: block; color: inherit; text-decoration: none; }
.hero-slide a { display: block; }
.news-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.news-link { display: block; color: inherit; text-decoration: none; }
.news-more { margin-top: 18px; text-align: center; }
.news-more a { display: inline-flex; align-items: center; height: 40px; padding: 0 22px; font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none; border: 1px solid var(--primary); border-radius: 8px; transition: all .2s ease; }
.news-more a:hover { color: #191a1b; background: var(--primary); }