/*
 * Jontro Bazar – Promo + Brands (merged banner) CSS
 * File: /wp-content/themes/YOUR-CHILD-THEME/jontrobazar/promo-brands.css
 * Scoped .jbpb-* · homepage only · brand scrolling is pure CSS
 */

/* ═══════════════════════════════════════
   CARD
═══════════════════════════════════════ */
.jbpb {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 55%, #12325E 100%);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  box-sizing: border-box;
}
.jbpb *, .jbpb *::before, .jbpb *::after { box-sizing: inherit; }

/* soft orange glow, top right */
.jbpb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(242,101,34,.26), transparent 38%);
  pointer-events: none;
}

/* ═══════════════════════════════════════
   TOP — promo text + button
═══════════════════════════════════════ */
.jbpb__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 36px;
}
.jbpb__text { min-width: 0; }

.jbpb__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #FF8A3D;
  margin-bottom: 8px;
}

.jbpb__title {
  font-family: 'Syne', Georgia, serif;
  font-size: clamp(22px, 2.9vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0;
}
.jbpb__title span { color: #F26522; }
.jbpb__br { display: none; }
@media (min-width: 640px) { .jbpb__br { display: inline; } }

.jbpb__side {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.jbpb__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F26522;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(242,101,34,.38);
  transition: background .2s ease, transform .15s ease;
}
.jbpb__btn:hover { background: #E05510; color: #fff; transform: translateY(-2px); }
.jbpb__btn:focus-visible { outline: 2px solid #FFC93C; outline-offset: 3px; }

.jbpb__bags { width: 74px; height: auto; display: block; }

/* ═══════════════════════════════════════
   BOTTOM — brand strip inside the same card
═══════════════════════════════════════ */
.jbpb__brands {
  position: relative;
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.24);
}

.jbpb__label {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 18px;
  background: #F26522;
  color: #fff;
  position: relative;
  z-index: 2;
}
.jbpb__label b {
  font-family: 'Syne', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.jbpb__label span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.jbpb__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.jbpb__track {
  display: flex;
  width: max-content;
  animation: jbpbScroll 260s linear infinite;
  will-change: transform;
}
.jbpb__viewport:hover .jbpb__track,
.jbpb__viewport:focus-within .jbpb__track { animation-play-state: paused; }

@keyframes jbpbScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.jbpb__item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 22px;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .18s ease;
}
.jbpb__item:hover,
.jbpb__item:focus-visible { background: rgba(255,255,255,.07); outline: none; }

.jbpb__name {
  font-family: 'Syne', Georgia, serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  transition: color .18s ease;
}
.jbpb__item:hover .jbpb__name { color: #FF8A3D; }

.jbpb__info {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255,255,255,.62);
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   MOBILE — stacked, bags hidden to save space
═══════════════════════════════════════ */
@media (max-width: 640px) {
  .jbpb { border-radius: 14px; }
  .jbpb__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
  }
  .jbpb__bags { display: none; }
  .jbpb__btn { padding: 12px 24px; font-size: 14px; }

  .jbpb__label { padding: 8px 12px; }
  .jbpb__label b { font-size: 15px; }
  .jbpb__label span { font-size: 9px; }
  .jbpb__item { padding: 8px 16px; }
  .jbpb__name { font-size: 13.5px; }
  .jbpb__info { font-size: 10.5px; }
  .jbpb__track { animation-duration: 200s; }
}

/* ═══════════════════════════════════════
   REDUCED MOTION — no animation, swipe/scroll manually
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .jbpb__viewport { overflow-x: auto; }
  .jbpb__track { animation: none; }
  .jbpb__btn { transition: none; }
}
