/*
 * Jontro Bazar – Combo Deals CSS
 * File: /wp-content/themes/YOUR-CHILD-THEME/jontrobazar/combo-deals.css
 * Scoped .jbc-* · Mobile-first · Astra safe
 */

/* ═══════════════════════════════════════
   CONTAINER
═══════════════════════════════════════ */
.jbc-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
@media (min-width: 640px)  { .jbc-container { padding: 0 24px; } }
@media (min-width: 1024px) { .jbc-container { padding: 0 40px; } }

/* ═══════════════════════════════════════
   SECTION (homepage)
═══════════════════════════════════════ */
.jbc-section {
  padding: 56px 0;
  background: #F9F9FB;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.jbc-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.jbc-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF3EC;
  color: #F26522;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.jbc-section__title {
  font-family: 'Syne', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #111;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.02em;
}
.jbc-section__title span { color: #F26522; }

.jbc-view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #F26522;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #F26522;
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.jbc-view-all:hover { background: #F26522; color: #fff; }

/* ═══════════════════════════════════════
   HERO (combo page)
═══════════════════════════════════════ */
.jbc-hero {
  background: #0D0D12;
  padding: 48px 0 44px;
  position: relative;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.jbc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 15% 50%, rgba(242,101,34,.14) 0%, transparent 60%);
  pointer-events: none;
}
.jbc-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.jbc-hero__title {
  font-family: 'Syne', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 10px 0 14px;
}
.jbc-hero__title span { color: #F26522; }
.jbc-hero__desc {
  font-size: 15px;
  color: rgba(255,255,255,.62);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   GRID
═══════════════════════════════════════ */
.jbc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .jbc-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .jbc-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ═══════════════════════════════════════
   COMBO CARD
═══════════════════════════════════════ */
.jbc-card {
  background: #fff;
  border: 1px solid #E8E8EE;
  border-radius: 16px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  contain: layout paint;
}
.jbc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.09);
}

/* Badge */
.jbc-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid;
  width: fit-content;
}

/* Title */
.jbc-card__title {
  font-family: 'Syne', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin: 0;
}

/* Description */
.jbc-card__desc {
  font-size: 13.5px;
  color: #666;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   PRODUCTS ROW
═══════════════════════════════════════ */
.jbc-card__products {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px;
  background: #F9F9FB;
  border-radius: 10px;
}

.jbc-plus {
  font-size: 18px;
  font-weight: 800;
  color: #CCC;
  flex-shrink: 0;
}

.jbc-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex: 1;
  min-width: 64px;
  max-width: 90px;
  transition: transform .18s ease;
}
.jbc-product:hover { transform: scale(1.04); }

.jbc-product__img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #EBEBEF;
  display: block;
  padding: 4px;
}

.jbc-product__name {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-align: center;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   PRICING
═══════════════════════════════════════ */
.jbc-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.jbc-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.jbc-price-combo {
  font-family: 'Syne', Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.jbc-price-original {
  font-size: 14px;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 400;
}

.jbc-save-badge {
  background: #FFF0E8;
  color: #F26522;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
}

.jbc-perk {
  font-size: 12.5px;
  font-weight: 700;
  color: #16A34A;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ═══════════════════════════════════════
   CTA BUTTON
═══════════════════════════════════════ */
.jbc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .18s ease, transform .15s ease;
  line-height: 1;
}
.jbc-btn:hover:not(:disabled) {
  opacity: .9;
  transform: translateY(-1px);
}
.jbc-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Loading state */
.jbc-btn.loading {
  opacity: .7;
  cursor: not-allowed;
}

/* Added state — redirect text */
.jbc-btn.added {
  background: #16A34A !important;
}

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
#jbc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: #0D0D12;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  border-left: 3px solid #F26522;
  max-width: 320px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
  pointer-events: none;
}
#jbc-toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* ═══════════════════════════════════════
   MOBILE
═══════════════════════════════════════ */
@media (max-width: 480px) {
  .jbc-section { padding: 36px 0; }
  .jbc-card { padding: 18px 16px 16px; gap: 12px; }
  .jbc-card__title { font-size: 16px; }
  .jbc-price-combo { font-size: 20px; }
  .jbc-hero { padding: 32px 0 28px; }
}

/* ═══════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .jbc-card, .jbc-product, .jbc-btn { transition: none; }
}

/* ═══════════════════════════════════════
   FOCUS ACCESSIBLE
═══════════════════════════════════════ */
.jbc-btn:focus-visible,
.jbc-view-all:focus-visible,
.jbc-product:focus-visible {
  outline: 2px solid #F26522;
  outline-offset: 2px;
  border-radius: 4px;
}
