/* ═══════════════════════════════════════════
   COMPONENTS — Navbar, Marquee, Filter Bar,
                LGJ Card, Lightbox, WA FAB
   ═══════════════════════════════════════════ */

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.navbar.scrolled { background: var(--bg); box-shadow: var(--shadow-sm); padding: 12px 0; }

.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem; font-weight: 600;
  color: var(--text); white-space: nowrap;
}
.nav-brand em { font-style: italic; color: var(--accent); }
.brand-svg { color: var(--accent); flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
  font-size: .88rem; font-weight: 500; color: var(--text-2);
  padding: 6px 14px; border-radius: 50px;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--bg-alt); }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: 16px; }

.theme-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); background: var(--bg-alt); transition: all .2s;
}
.theme-btn:hover { color: var(--accent); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-wa {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 50px;
  background: #25D366; color: #fff;
  font-size: .84rem; font-weight: 600; transition: all .2s;
}
.nav-wa:hover { background: #1da854; transform: translateY(-1px); }

.menu-btn {
  display: none; flex-direction: column;
  gap: 5px; padding: 4px; width: 32px;
}
.menu-btn span {
  display: block; height: 2px; width: 100%;
  background: var(--text-2); border-radius: 2px; transition: all .25s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Marquee ── */
.marquee-strip { background: var(--accent); color: #fff; overflow: hidden; padding: 13px 0; }
.marquee-track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.mx { opacity: .6; font-size: .65rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Filter Bar ── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 52px; }
.f-btn {
  padding: 8px 18px; border-radius: 50px;
  font-size: .83rem; font-weight: 500;
  border: 1.5px solid var(--border); color: var(--text-2);
  background: transparent; transition: all .2s;
}
.f-btn:hover { border-color: var(--accent); color: var(--accent); }
.f-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── LGJ Product Card ── */
.lgj-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-alt); box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.lgj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.lgj-card.hidden { display: none; }

.lgj-card-img { height: 260px; position: relative; overflow: hidden; }
.lgj-card-img img { transition: transform .5s ease; }
.lgj-card:hover .lgj-card-img img { transform: scale(1.05); }

.lgj-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,26,12,.7) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity .3s;
}
.lgj-card:hover .lgj-card-overlay { opacity: 1; }
.lgj-card-overlay span { color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .06em; }

.lgj-card-info { padding: 14px 16px; }
.lgj-card-info h3 { font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.lgj-card-info p { font-size: .8rem; color: var(--text-3); }

/* ── Floating WhatsApp FAB ── */
.wa-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .25s, box-shadow .25s;
  opacity: 0; pointer-events: none; transform: scale(.8);
}
.wa-fab.visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }

.wa-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }

.lb-overlay {
  position: absolute; inset: 0;
  background: rgba(15,8,2,.88); backdrop-filter: blur(4px); cursor: pointer;
}
.lb-wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: min(94dvh, 94vh); max-width: min(700px, 94vw); width: 100%;
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transform: scale(.95); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.lightbox.open .lb-wrap { transform: scale(1); }

.lb-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-alt); color: var(--text-2);
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.lb-close:hover { background: var(--accent); color: #fff; }

.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: all .2s;
}
.lb-arrow:hover { background: var(--accent); color: #fff; }
.lb-arrow.hidden { opacity: 0; pointer-events: none; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-img-wrap {
  flex: 1 1 0; overflow: hidden; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
}
.lb-img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.lb-footer {
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.lb-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--text); margin: 0; }
.lb-dots { display: flex; gap: 6px; margin-top: 6px; }
.lb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.lb-dot.active { background: var(--accent); transform: scale(1.3); }
.lb-cta { flex-shrink: 0; }
