/* Shalbon Packages - everything is scoped under .sbp / .sbp-modal so it can't clash with the theme */
.sbp, .sbp-modal {
  --sbp-bg: #1b2b20;
  --sbp-card: #2b4130;
  --sbp-gold: #d4a62a;
  --sbp-cream: #f6f1d8;
  --sbp-text: #dfe0cc;
  --sbp-muted: #a9ae98;
  --sbp-tick: #b9b868;
  font-family: "Inter", system-ui, sans-serif;
}
.sbp *, .sbp *::before, .sbp *::after,
.sbp-modal *, .sbp-modal *::before, .sbp-modal *::after { box-sizing: border-box; }

/* ---------- Section (background covers the full page width) ---------- */
.sbp {
  display: block;
  width: 100%;
  max-width: none;
  float: none;
  clear: both;
  padding: 64px 24px 72px;
  background: var(--sbp-bg);
  box-shadow: 0 0 0 100vmax var(--sbp-bg);
  clip-path: inset(0 -100vmax);
}
.sbp .sbp-inner { width: 100%; max-width: 1000px; margin: 0 auto; }

.sbp .sbp-head { text-align: center; margin: 0 auto 36px; max-width: 540px; }
.sbp .sbp-title { margin: 0 0 12px; padding: 0; font-size: clamp(30px, 4vw, 38px); line-height: 1.2; font-weight: 700; color: var(--sbp-cream); }
.sbp .sbp-sub-head { margin: 0; padding: 0; font-size: 15px; line-height: 1.6; color: #d6d9b0; }

/* ---------- Cards ---------- */
.sbp .sbp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
/* if the last card is alone on its row, center it */
.sbp .sbp-grid .sbp-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }

.sbp .sbp-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--sbp-card); border: 1px solid rgba(212,166,42,.25); border-radius: 14px; transition: transform .3s ease, box-shadow .3s ease; }
.sbp .sbp-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(0,0,0,.4); }

.sbp .sbp-media { position: relative; height: 170px; background: #22362a; }
.sbp .sbp-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.sbp .sbp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,34,25,.25) 0%, rgba(43,65,48,0) 35%, rgba(43,65,48,.95) 100%); pointer-events: none; }
.sbp .sbp-badge { position: absolute; z-index: 1; top: 12px; right: 12px; padding: 5px 12px; font-size: 11px; font-weight: 600; color: #1a1a12; background: var(--sbp-gold); border-radius: 999px; }

.sbp .sbp-body { display: flex; flex-direction: column; flex: 1; padding: 6px 22px 22px; }
.sbp .sbp-name { margin: 0 0 6px; padding: 0; font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--sbp-cream); }
.sbp .sbp-sub { margin: 0 0 12px; padding: 0; font-size: 12px; color: var(--sbp-muted); }

.sbp .sbp-price, .sbp-modal .sbp-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; }
.sbp .sbp-price b, .sbp-modal .sbp-price b { font-size: 32px; line-height: 1.1; font-weight: 700; color: var(--sbp-gold); }
.sbp .sbp-price span, .sbp-modal .sbp-price span { font-size: 12px; color: var(--sbp-muted); }

.sbp .sbp-who, .sbp-modal .sbp-who { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 0; font-size: 12px; color: var(--sbp-text); }
.sbp .sbp-who svg, .sbp-modal .sbp-who svg { width: 14px; height: 14px; flex: none; stroke: var(--sbp-gold); }

.sbp .sbp-h, .sbp-modal .sbp-h { margin: 0 0 10px; padding: 0; font-size: 13px; font-weight: 600; color: var(--sbp-cream); }

.sbp .sbp-list, .sbp-modal .sbp-list { list-style: none; margin: 0 0 8px; padding: 0; }
.sbp .sbp-list.sbp-list-end { margin-bottom: 20px; }
.sbp .sbp-list li, .sbp-modal .sbp-list li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; padding: 0; font-size: 12px; line-height: 1.45; color: var(--sbp-text); }
.sbp .sbp-list li::before, .sbp-modal .sbp-list li::before { content: none; }
.sbp .sbp-list li svg, .sbp-modal .sbp-list li svg { width: 13px; height: 13px; flex: none; margin-top: 1px; stroke: var(--sbp-tick); }
.sbp .sbp-extra { display: none !important; }
.sbp-modal .sbp-extra { display: flex; }

.sbp .sbp-more { align-self: flex-start; margin: 0 0 20px; padding: 0; font-family: inherit; font-size: 12px; color: var(--sbp-gold); background: none; border: 0; box-shadow: none; cursor: pointer; }
.sbp .sbp-more:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.sbp .sbp-btn, .sbp-modal .sbp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1; text-decoration: none; padding: 13px 22px; border-radius: 6px; border: 1px solid var(--sbp-gold); cursor: pointer; transition: filter .2s, transform .2s, background .2s; }
.sbp .sbp-btn svg, .sbp-modal .sbp-btn svg { width: 14px; height: 14px; flex: none; }
.sbp .sbp-gold, .sbp-modal .sbp-gold { color: #1a1a12; background: var(--sbp-gold); }
.sbp .sbp-gold:hover, .sbp-modal .sbp-gold:hover { filter: brightness(1.08); color: #1a1a12; }
.sbp .sbp-line, .sbp-modal .sbp-line { color: var(--sbp-gold); background: transparent; }
.sbp .sbp-line:hover, .sbp-modal .sbp-line:hover { background: rgba(212,166,42,.14); color: var(--sbp-gold); }
.sbp .sbp-view { width: 100%; margin-top: auto; }

.sbp .sbp-custom { text-align: center; margin-top: 40px; }
.sbp .sbp-custom p { margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--sbp-muted); }
.sbp .sbp-custom .sbp-btn { padding: 14px 26px; font-size: 14px; }

/* ---------- Popup ---------- */
.sbp-modal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6,12,8,.72); }
.sbp-modal.sbp-open { display: flex; }
.sbp-modal .sbp-dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px 26px 24px; background: var(--sbp-card); border: 1px solid rgba(212,166,42,.4); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.sbp-modal .sbp-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; color: var(--sbp-cream); background: transparent !important; border: 0; box-shadow: none; cursor: pointer; }
.sbp-modal .sbp-x svg { width: 20px; height: 20px; }
.sbp-modal .sbp-x:focus-visible { outline: 2px solid var(--sbp-gold); }
.sbp-modal .sbp-m-title { margin: 0 0 4px; padding: 0 36px 0 0; font-size: 24px; font-weight: 700; color: var(--sbp-cream); }
.sbp-modal .sbp-m-sub { margin: 0 0 14px; font-size: 12px; color: var(--sbp-muted); }
.sbp-modal .sbp-m-actions { display: flex; gap: 12px; margin-top: 18px; }
.sbp-modal .sbp-m-actions .sbp-btn { flex: 1; }

@media (max-width: 760px) {
  .sbp { padding: 48px 16px 56px; }
  .sbp .sbp-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sbp .sbp-grid .sbp-card:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
  .sbp .sbp-media { height: 190px; }
}
@media (max-width: 420px) { .sbp-modal .sbp-m-actions { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .sbp .sbp-card { transition: none; } .sbp .sbp-card:hover { transform: none; } }
