/*
 * Jontro Bazar – Sale Campaign CSS
 * File: /wp-content/themes/YOUR-CHILD-THEME/jontrobazar/sale-campaign.css
 * Scoped .jbsc-* · Loads only while the campaign is running
 */

.jbsc-bar,
.jbsc-hero {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  box-sizing: border-box;
}
.jbsc-bar *, .jbsc-hero * { box-sizing: inherit; }
[data-jbsc][hidden] { display: none !important; }

/* ═══════════════════════════════════════
   TOP BAR (fixed height = no layout shift)
═══════════════════════════════════════ */
.jbsc-bar {
  position: relative;
  height: 42px;
  background: linear-gradient(90deg, #D9561A, #F26522 55%, #FF8A3D);
  color: #fff;
}
.jbsc-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 0 46px 0 14px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.jbsc-bar__link:hover { color: #fff; }
.jbsc-bar__tag {
  flex-shrink: 0;
  background: #0D0D12;
  color: #FFC21A;
  font-family: 'Syne', Georgia, serif;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
}
.jbsc-bar__short { display: none; }
.jbsc-bar__timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.jbsc-bar__timer .jbsc-st { opacity: .85; font-weight: 600; margin-right: 2px; }
.jbsc-bar__timer b { font-weight: 800; }
.jbsc-bar__go {
  flex-shrink: 0;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  transition: background .18s ease;
}
.jbsc-bar__link:hover .jbsc-bar__go { background: rgba(255,255,255,.34); }
.jbsc-bar__close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.jbsc-bar__close:hover { background: rgba(0,0,0,.3); }

@media (max-width: 640px) {
  .jbsc-bar { height: 40px; }
  .jbsc-bar__link { font-size: 12px; gap: 8px; padding: 0 40px 0 10px; }
  .jbsc-bar__full, .jbsc-bar__timer { display: none; }
  .jbsc-bar__short { display: inline; }
}

/* ═══════════════════════════════════════
   HOMEPAGE BANNER
═══════════════════════════════════════ */
.jbsc-hero {
  position: relative;
  width: 100%;
  background: #0D0D12;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
}
.jbsc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 90% at 12% 35%, rgba(242,101,34,.28), transparent 60%),
    radial-gradient(ellipse 40% 70% at 96% 8%, rgba(255,194,26,.14), transparent 60%);
  pointer-events: none;
}
.jbsc-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px 20px 20px;
}
@media (min-width: 860px) {
  .jbsc-hero__inner {
    grid-template-columns: 1.2fr .8fr;
    gap: 36px;
    padding: 38px 40px 24px;
    align-items: center;
  }
}

.jbsc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(242,101,34,.18);
  border: 1px solid rgba(242,101,34,.4);
  color: #FFB27A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.jbsc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F26522;
  animation: jbscPulse 1.5s ease-in-out infinite;
}
@keyframes jbscPulse { 50% { opacity: .35; } }

.jbsc-hero__title {
  font-family: 'Syne', Georgia, serif;
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 12px;
}
.jbsc-hero__num {
  background: linear-gradient(135deg, #FFC21A, #F26522);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.jbsc-hero__sub {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  margin: 0 0 18px;
  max-width: 480px;
}

/* Optional countdown */
.jbsc-timer { margin: 0 0 18px; }
.jbsc-timer__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
}
.jbsc-boxes { display: flex; gap: 8px; }
.jbsc-box {
  min-width: 62px;
  text-align: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 6px;
}
.jbsc-box b {
  display: block;
  font-family: 'Syne', Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.jbsc-box small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* Buttons */
.jbsc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.jbsc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F26522;
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(242,101,34,.4);
  transition: background .2s ease, transform .15s ease;
}
.jbsc-btn:hover { background: #E05510; transform: translateY(-2px); color: #fff; }
.jbsc-alt {
  color: #FFB27A;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,178,122,.55);
  transition: color .18s ease;
}
.jbsc-alt:hover { color: #fff; }
.jbsc-note {
  font-size: 11.5px;
  color: rgba(255,255,255,.45);
  margin: 12px 0 0;
}

/* How it works */
.jbsc-how {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 18px;
}
.jbsc-how__title {
  font-family: 'Syne', Georgia, serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
}
.jbsc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.jbsc-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255,255,255,.88);
  margin: 0;
}
.jbsc-step__n {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F26522;
  color: #fff;
  font-family: 'Syne', Georgia, serif;
  font-weight: 800;
  font-size: 14px;
}
.jbsc-step--last .jbsc-step__n {
  background: linear-gradient(135deg, #FFC21A, #F26522);
  color: #0D0D12;
}
.jbsc-step strong { color: #FFC21A; }

/* Category quick-links */
.jbsc-cats {
  position: relative;
  padding: 4px 20px 22px;
}
@media (min-width: 860px) { .jbsc-cats { padding: 4px 40px 28px; } }
.jbsc-cats__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 10px;
}
.jbsc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jbsc-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.jbsc-chip:hover { background: #F26522; border-color: #F26522; color: #fff; }

/* Mobile */
@media (max-width: 480px) {
  .jbsc-hero { border-radius: 14px; }
  .jbsc-boxes { gap: 6px; }
  .jbsc-box { flex: 1; min-width: 0; padding: 9px 4px; }
  .jbsc-box b { font-size: 22px; }
  .jbsc-btn { width: 100%; justify-content: center; }
}

/* Focus + reduced motion */
.jbsc-bar__link:focus-visible,
.jbsc-bar__close:focus-visible,
.jbsc-btn:focus-visible,
.jbsc-alt:focus-visible,
.jbsc-chip:focus-visible { outline: 2px solid #FFC21A; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .jbsc-dot { animation: none; }
  .jbsc-btn, .jbsc-chip, .jbsc-bar__go { transition: none; }
}
