/* ---------------------------------------------------------------------------
   Custom additions for the React port of the Jupiter template:
   - a lightweight carousel (replaces the original jQuery "owl-carousel")
   - styling for the landing-page index (home) listing
   --------------------------------------------------------------------------- */

body {
  font-family: "Josefin Sans", sans-serif;
  /* The original template's style.css sets `body { opacity: 0 }` and relied on
     the jQuery main.js to reveal it on load. We don't port that script, so undo
     it here (site.css is the last stylesheet loaded). */
  opacity: 1 !important;
  /* style.css also locks `body { height: 100% }`, which breaks position:sticky
     (flash bar) after one viewport. Let the body grow with content instead. */
  height: auto !important;
  min-height: 100%;
}

/* ---- Smooth scroll for anchor nav (all templates) ---------------------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* Offset anchor targets so they aren't hidden under the sticky navbar + flash
   bar. This is the Jupiter default; Aurora/Studio/Device override per-template. */
section[id],
header[id],
main[id] {
  scroll-margin-top: calc(var(--flash-h, 0px) + 90px);
}

/* ---- Flash sale promo bar (sticky, above navbar, all templates) -------- */
.flash-bar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: linear-gradient(90deg, #f5365c 0%, #fb6340 100%);
  color: #fff;
  font-family: "Inter", "Josefin Sans", sans-serif;
}
/* Template navbars stack right below the sticky flash bar (height = --flash-h). */
.mainmenu-area.affix {
  top: var(--flash-h, 0px) !important;
}

/* ---- Floating WhatsApp button (all templates) -------------------------- */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1300;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font-family: "Inter", "Josefin Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-fab:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}
.wa-fab svg {
  flex: 0 0 auto;
}
@media (max-width: 560px) {
  .wa-fab-text {
    display: none;
  }
  .wa-fab {
    padding: 14px;
  }
}
.flash-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.flash-bar-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.flash-bar-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.flash-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.95;
}
.flash-unit b {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---- Mobile menu toggle (replaces template's jQuery burger) ------------ */
@media only screen and (max-width: 768px) {
  .mainmenu-area.is-open .mainmenu {
    display: block;
  }
}

/* ---- Carousel ---------------------------------------------------------- */
.jp-carousel {
  position: relative;
  width: 100%;
}
.jp-carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.jp-carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}
.jp-carousel-slide {
  padding: 0 15px;
}
.jp-dots {
  text-align: center;
  margin-top: 35px;
  line-height: 1;
}
.jp-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  margin: 0 4px;
  border: none;
  border-radius: 50%;
  background: #d9d9e3;
  cursor: pointer;
  transition: all 0.3s ease;
  vertical-align: middle;
}
.jp-dots button.active {
  width: 28px;
  border-radius: 6px;
  background: #6f7bff;
}
.jp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.jp-arrow.prev {
  left: -10px;
}
.jp-arrow.next {
  right: -10px;
}

/* ---- Landing index (home) --------------------------------------------- */
.lp-index {
  min-height: 100vh;
  padding: 80px 0;
  background: #f6f7fb;
}
.lp-index .lp-head {
  text-align: center;
  margin-bottom: 50px;
}
.lp-index .lp-head h1 {
  font-weight: 700;
  color: #2b2350;
}
.lp-index .lp-head p {
  color: #7a7a8c;
}
.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.lp-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(43, 35, 80, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #eef0f7;
}
.lp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(43, 35, 80, 0.15);
}
.lp-card .lp-brand {
  font-size: 22px;
  font-weight: 700;
  color: #2b2350;
  margin: 0 0 8px;
}
.lp-card .lp-title {
  color: #6f7bff;
  font-weight: 600;
  margin: 0 0 14px;
}
.lp-card .lp-url {
  font-size: 13px;
  color: #9a9ab0;
  word-break: break-all;
}
.lp-empty {
  text-align: center;
  color: #7a7a8c;
  padding: 60px 0;
}
.lp-empty a {
  color: #6f7bff;
  font-weight: 600;
}
