/* ==========================================================================
   Bundling Module - Light Modern Educational Theme (Orange-Gold)
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --brand-orange: #f97316;
  --brand-gold: #eab308;
  --brand-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #eab308 100%);
  --border-color: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
  --wa-green: #25D366;
  --mayar-blue: #0077ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: var(--bg-page); color: var(--text-main); line-height: 1.6; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

/* ==========================================================================
   HEADER NAVBAR STYLING (PRESISI IDENTIK KATALOG)
   ========================================================================== */
.navbar { 
  background: rgba(255, 255, 255, 0.98); 
  backdrop-filter: blur(12px); 
  border-bottom: 1px solid var(--border-color); 
  position: sticky; 
  top: 0; 
  z-index: 1000; 
  padding: 0.85rem 0; 
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 1.5rem; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1.5rem; 
}

/* BRAND LOGO */
.logo { 
  font-size: 1.35rem; 
  font-weight: 800; 
  color: #0f172a; 
  white-space: nowrap; 
  text-decoration: none;
}
.logo span { 
  background: var(--brand-gradient); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
}

/* NAV LINKS */
.nav-links { 
  display: flex; 
  align-items: center;
  gap: 0.3rem; 
  white-space: nowrap; 
}
.nav-links a { 
  color: var(--text-muted); 
  font-weight: 600; 
  padding: 0.5rem 0.8rem; 
  border-radius: var(--radius-sm); 
  font-size: 0.9rem; 
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { 
  color: var(--brand-orange); 
  background: #fff7ed; 
}

/* SEARCH BAR IN-HEADER */
.header-search-bar {
  flex: 1;
  max-width: 450px;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-bar .search-icon {
  position: absolute;
  left: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

.header-search-bar input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  font-size: 0.88rem;
  border-radius: 25px;
  border: 1.5px solid var(--border-color);
  background: #f8fafc;
  outline: none;
  transition: var(--transition);
}

.header-search-bar input:focus {
  background: #ffffff;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

/* RIGHT ACTION BUTTONS */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

.btn-cart-light {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: var(--brand-orange);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-cart-light:hover {
  background: var(--brand-orange);
  color: #ffffff;
}

.badge-count {
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  transition: var(--transition);
}

.btn-cart-light:hover .badge-count {
  background: #ffffff;
  color: var(--brand-orange);
}

.btn-publisher {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.btn-publisher:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: #fff7ed;
}

/* ==========================================================================
   BUNDLING LAYOUT & SIDEBAR FILTER
   ========================================================================== */
.bundling-container { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.sidebar-filter { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; height: fit-content; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 2px solid #fff7ed; }
.filter-header h3 { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.btn-reset-filter { background: none; border: none; color: var(--brand-orange); font-size: 0.8rem; font-weight: 700; cursor: pointer; }

.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { font-size: 0.9rem; font-weight: 700; color: var(--brand-orange); margin-bottom: 0.8rem; text-transform: uppercase; }
.filter-scroll-list { max-height: 240px; overflow-y: auto; padding-right: 0.5rem; }
.filter-group label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-main); margin-bottom: 0.65rem; cursor: pointer; }

.price-range-inputs { display: flex; align-items: center; gap: 0.5rem; }
.price-range-inputs input { width: 100%; padding: 0.5rem; font-size: 0.82rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); outline: none; background: #f8fafc; }

/* ==========================================================================
   BUNDLING CONTENT GRID
   ========================================================================== */
.bundling-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; }
.bundling-header h2 { font-size: 1.6rem; font-weight: 800; color: #0f172a; }
.bundling-header .sub-text { font-size: 0.9rem; color: var(--text-muted); }
.bundling-count-badge { background: #fff7ed; border: 1px solid #ffedd5; color: var(--brand-orange); font-size: 0.82rem; font-weight: 700; padding: 0.35rem 0.8rem; border-radius: 20px; }

.bundling-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.bundling-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; justify-content: space-between; }
.bundling-card:hover { border-color: #fdba74; transform: translateY(-4px); box-shadow: 0 10px 25px rgba(249, 115, 22, 0.1); }

.bundling-poster-wrap { width: 100%; height: 260px; background: #0f172a; overflow: hidden; position: relative; }
.bundling-poster-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.bundling-card:hover .bundling-poster-wrap img { transform: scale(1.05); }

.bundling-type-tag { position: absolute; top: 10px; right: 10px; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); color: var(--brand-gold); font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.6rem; border-radius: 20px; border: 1px solid rgba(234, 179, 8, 0.3); }

.bundling-info-body { padding: 1.2rem; }
.bundling-info-body h4 { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; line-height: 1.35; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.tag-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.8rem; }
.tag-pill { background: #f1f5f9; color: var(--text-muted); font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 12px; }

.bundling-price { color: var(--brand-orange); font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; }
.btn-check-bundling { width: 100%; background: #ffffff; border: 1.5px solid var(--brand-orange); color: var(--brand-orange); padding: 0.6rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: var(--transition); text-align: center; }
.btn-check-bundling:hover { background: var(--brand-orange); color: #ffffff; }

/* ==========================================================================
   MODAL IG POP-UP UI
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(6px); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-ig-container { background: var(--bg-card); border-radius: var(--radius-lg); width: 90%; max-width: 900px; height: 85vh; max-height: 620px; display: flex; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.close-modal { position: absolute; top: 12px; right: 18px; background: rgba(255,255,255,0.85); border: none; font-size: 1.5rem; cursor: pointer; z-index: 30; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0f172a; }

/* CAROUSEL SLIDER KIRI */
.ig-left-carousel { flex: 1.25; background: #090d16; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slides-wrapper { width: 100%; height: 100%; position: relative; }
.slide-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.slide-item.active { opacity: 1; visibility: visible; }
.slide-item img { max-width: 100%; max-height: 100%; object-fit: contain; }

.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(4px); color: #ffffff; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; z-index: 10; transition: var(--transition); }
.carousel-nav:hover { background: rgba(255, 255, 255, 0.9); color: #000; }
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }

.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--brand-orange); width: 18px; border-radius: 10px; }

/* IG CONTENT KANAN */
.ig-right-content { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--border-color); background: #ffffff; }
.ig-user-header { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border-color); }
.ig-avatar { width: 36px; height: 36px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.ig-user-header strong { font-size: 0.92rem; color: #0f172a; display: block; }
.ig-user-header small { color: var(--text-muted); font-size: 0.78rem; display: block; }

.ig-scrollable-body { flex: 1; overflow-y: auto; padding-right: 0.4rem; margin: 0.8rem 0; display: flex; flex-direction: column; gap: 0.8rem; }
.ig-scrollable-body::-webkit-scrollbar { width: 4px; }
.ig-scrollable-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.price-box { display: flex; justify-content: space-between; align-items: center; background: #fff7ed; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); border: 1px solid #ffedd5; }
.price-label { font-size: 0.82rem; font-weight: 700; color: #0f172a; }
.price-value { font-size: 1.1rem; font-weight: 800; color: var(--brand-orange); }

.wms-rekap-card { background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.75rem; }
.wms-rekap-card h4 { font-size: 0.78rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; text-transform: uppercase; }
.wms-items-list { display: flex; flex-direction: column; gap: 0.4rem; }
.wms-item-row { display: flex; align-items: center; gap: 0.6rem; background: #ffffff; padding: 0.35rem 0.5rem; border-radius: 6px; border: 1px solid var(--border-color); }
.wms-item-row img { width: 30px; height: 38px; object-fit: contain; background: #f1f5f9; border-radius: 4px; }
.wms-item-info strong { display: block; font-size: 0.78rem; color: #0f172a; }
.wms-item-info small { font-size: 0.7rem; color: var(--text-muted); }

.ig-copywriting { color: #334155; white-space: pre-line; font-size: 0.88rem; line-height: 1.5; }
.ig-divider { border: 0; border-top: 1px solid var(--border-color); margin: 0.2rem 0; }

.comments-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; font-size: 0.82rem; color: var(--text-muted); }
.ig-comments-list { display: flex; flex-direction: column; gap: 0.75rem; }
.comment-item { display: flex; justify-content: space-between; align-items: flex-start; font-size: 0.83rem; line-height: 1.4; }
.comment-main { display: flex; gap: 0.5rem; }
.comment-avatar { width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; border: 1px solid #cbd5e1; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.comment-content strong { color: #0f172a; margin-right: 0.3rem; }
.comment-content p { color: #334155; display: inline; }
.comment-meta { display: block; font-size: 0.7rem; color: #94a3b8; margin-top: 0.15rem; }

.ig-actions-dummy { display: flex; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--border-color); color: var(--brand-orange); font-weight: 700; font-size: 0.82rem; }
.ig-actions-dummy button { background: none; border: none; color: var(--brand-orange); font-weight: 700; font-size: 0.82rem; cursor: pointer; }

.ig-comment-form { display: flex; align-items: center; border-top: 1px solid var(--border-color); padding-top: 0.5rem; margin-bottom: 0.5rem; }
.ig-comment-form input { flex: 1; border: none; outline: none; font-size: 0.85rem; padding: 0.3rem 0; background: transparent; color: #0f172a; }
.btn-post-comment { background: none; border: none; color: var(--brand-orange); font-weight: 700; font-size: 0.85rem; cursor: pointer; padding: 0.3rem 0.5rem; }

.btn-direct-detail { display: block; width: 100%; background: var(--brand-gradient); color: #ffffff; text-align: center; font-weight: 800; padding: 0.85rem; border-radius: 30px; font-size: 0.88rem; text-decoration: none; transition: var(--transition); }
.btn-direct-detail:hover { box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3); transform: translateY(-1px); }

/* ==========================================================================
   FOOTER GLOBAL STYLING (IDENTIK SEPERTI DI KATALOG)
   ========================================================================== */
footer, .footer-global, #globalFooter {
  background-color: #ffffff;
  border-top: 3px solid var(--brand-orange);
  margin-top: 4rem;
  padding: 3.5rem 0 2rem 0;
  color: var(--text-main);
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr 1.2fr;
  gap: 2.5rem;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #0f172a;
}

.footer-brand span {
  color: var(--brand-orange);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col h4:first-child {
  margin-top: 0;
}

.footer-desc, .address-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.footer-list li {
  margin-bottom: 0.4rem;
}

.footer-list a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-list a:hover {
  color: var(--brand-orange);
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-bank, .badge-courier {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  color: #334155;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0 auto;
  padding: 1.5rem 1.5rem 0 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 850px) {
  .bundling-container { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .modal-ig-container { flex-direction: column; height: 90vh; max-height: none; }
  .ig-left-carousel { height: 42%; }
}
