/* STX Bundle System v1.0 — mobile-first storefront */

:root {
  --stx-bundle-bg: #0d1117;
  --stx-bundle-panel: #161b22;
  --stx-bundle-border: #30363d;
  --stx-bundle-text: #f8fafc;
  --stx-bundle-muted: #94a3b8;
  --stx-bundle-accent: #d97706;
  --stx-bundle-gold: #c9a66b;
  --stx-bundle-ok: #3d9a5f;
  --stx-bundle-danger: #c45c4a;
  --stx-bundle-pad: clamp(0.75rem, 3vw, 1.5rem);
  --stx-bundle-radius: 0.35rem;
}

.stx-bundle,
.stx-bundle-card,
.stx-bundle-cards {
  color: var(--stx-bundle-text);
  box-sizing: border-box;
  max-width: 100%;
}

.stx-bundle *,
.stx-bundle-card *,
.stx-bundle-cards * {
  box-sizing: border-box;
}

.stx-bundle__hero {
  display: grid;
  gap: 1.25rem;
  padding: var(--stx-bundle-pad);
}

.stx-bundle__gallery-wrap {
  background: #0b0f14;
  border: 1px solid var(--stx-bundle-border);
  border-radius: var(--stx-bundle-radius);
  overflow: hidden;
  min-height: 220px;
}

.stx-bundle-gallery__main {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0f14;
  touch-action: pan-y;
}

.stx-bundle-gallery__main img,
.stx-bundle-gallery__thumb img,
.stx-bundle-item__media img,
.stx-bundle-collage img,
.stx-bundle-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.stx-bundle-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.stx-bundle-gallery__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2px solid transparent;
  background: #121820;
  border-radius: 0.25rem;
  cursor: pointer;
}

.stx-bundle-gallery__thumb.is-active,
.stx-bundle-gallery__thumb:focus-visible {
  border-color: var(--stx-bundle-accent);
  outline: none;
}

.stx-bundle__badge {
  margin: 0;
  color: var(--stx-bundle-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stx-bundle__title {
  margin: 0.35rem 0 0.5rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.stx-bundle__lede {
  margin: 0 0 1rem;
  color: var(--stx-bundle-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.stx-bundle__summary {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stx-bundle__summary li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: var(--stx-bundle-panel);
  border: 1px solid var(--stx-bundle-border);
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

.stx-bundle__summary-n {
  color: var(--stx-bundle-gold);
  font-weight: 800;
}

.stx-bundle-pricing {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.stx-bundle-pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: var(--stx-bundle-panel);
  border: 1px solid var(--stx-bundle-border);
  border-radius: 0.25rem;
}

.stx-bundle-pricing__row.is-best {
  border-color: var(--stx-bundle-accent);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.35);
}

.stx-bundle-pricing__row em {
  font-style: normal;
  color: var(--stx-bundle-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 0.35rem;
}

.stx-bundle-pricing__strike {
  text-decoration: line-through;
  color: var(--stx-bundle-muted);
}

.stx-bundle-pricing__save {
  margin: 0.25rem 0 0;
  color: var(--stx-bundle-accent);
  font-weight: 700;
}

.stx-bundle-pricing__member-cta a,
.stx-bundle-pricing__member-ok {
  color: var(--stx-bundle-gold);
  font-size: 0.9rem;
}

.stx-bundle__compliance {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border-left: 3px solid var(--stx-bundle-accent);
  background: rgba(217, 119, 6, 0.08);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stx-bundle__atc-bar {
  display: grid;
  gap: 0.65rem;
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, transparent, var(--stx-bundle-bg) 28%);
}

/* Mobile conversion: keep Add Bundle reachable while scrolling included items */
@media (max-width: 959px) {
  .stx-bundle {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  .stx-bundle__atc-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    margin: 0;
    padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--stx-bundle-border, #30363d);
    background: rgba(13, 17, 23, 0.96);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }

  .stx-bundle__atc-bar .stx-bundle__atc,
  .stx-bundle__atc-bar .stx-bundle__view-cart {
    width: 100%;
  }
}

.stx-bundle__ends,
.stx-bundle-card__ends {
  margin: 0;
  color: var(--stx-bundle-accent, #d97706);
  font-size: 0.82rem;
  font-weight: 700;
}

.stx-bundle__expired {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 0.35rem;
  background: rgba(217, 119, 6, 0.1);
  color: #fde68a;
  font-size: 0.92rem;
}

.stx-bundle__atc,
.stx-bundle__view-cart,
.stx-bundle-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.3rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.stx-bundle__atc {
  width: 100%;
  background: var(--stx-bundle-accent);
  color: #111;
}

.stx-bundle__atc:disabled {
  opacity: 0.65;
  cursor: wait;
}

.stx-bundle__atc.is-success {
  background: var(--stx-bundle-ok);
  color: #fff;
}

.stx-bundle__view-cart {
  background: transparent;
  color: var(--stx-bundle-gold);
  border: 1px solid var(--stx-bundle-border);
}

.stx-bundle__view-cart[hidden] {
  display: none !important;
}

.stx-bundle__atc-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--stx-bundle-muted);
}

.stx-bundle-included {
  padding: var(--stx-bundle-pad);
}

.stx-bundle-included h2 {
  margin: 0 0 0.35rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.04em;
}

.stx-bundle-included__lede {
  margin: 0 0 1rem;
  color: var(--stx-bundle-muted);
}

.stx-bundle-included__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stx-bundle-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  background: var(--stx-bundle-panel);
  border: 1px solid var(--stx-bundle-border);
  border-radius: var(--stx-bundle-radius);
}

.stx-bundle-item__media {
  aspect-ratio: 1;
  background: #0b0f14;
  border-radius: 0.25rem;
  overflow: hidden;
}

.stx-bundle-item__type {
  margin: 0;
  color: var(--stx-bundle-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stx-bundle-item__name {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.stx-bundle-item__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--stx-bundle-muted);
}

.stx-bundle-item__meta span {
  color: var(--stx-bundle-text);
  font-weight: 600;
  margin-right: 0.25rem;
}

.stx-bundle__description,
.stx-bundle__terms {
  padding: 0 var(--stx-bundle-pad) var(--stx-bundle-pad);
}

/* Collage */
.stx-bundle-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.35rem;
  min-height: 200px;
  padding: 0.5rem;
  background: #0b0f14;
}

.stx-bundle-collage__main,
.stx-bundle-collage__sat {
  position: relative;
  background: #121820;
  border-radius: 0.25rem;
  overflow: hidden;
  aspect-ratio: 1;
}

.stx-bundle-collage__main {
  aspect-ratio: auto;
  min-height: 180px;
}

.stx-bundle-collage__satellites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  align-content: start;
}

.stx-bundle-collage__badge {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: 0.15rem 0.4rem;
  background: var(--stx-bundle-accent);
  color: #111;
  font-weight: 900;
  font-size: 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Cards */
.stx-bundle-cards,
.stx-exclusive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.stx-bundle-card {
  display: grid;
  border: 1px solid var(--stx-bundle-border);
  border-radius: var(--stx-bundle-radius);
  background: var(--stx-bundle-panel);
  overflow: hidden;
}

.stx-bundle-card__media {
  display: block;
  background: #0b0f14;
  aspect-ratio: 16 / 10;
  text-decoration: none;
}

.stx-bundle-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #121820, #1c2129);
}

.stx-bundle-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.stx-bundle-card__badge {
  margin: 0;
  color: var(--stx-bundle-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stx-bundle-card__title {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.stx-bundle-card__title a {
  color: var(--stx-bundle-text);
  text-decoration: none;
}

.stx-bundle-card__summary,
.stx-bundle-card__save {
  margin: 0;
  color: var(--stx-bundle-muted);
  font-size: 0.9rem;
}

.stx-bundle-card__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
}

.stx-bundle-card__price-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.stx-bundle-card__regular {
  color: #94a3b8;
  text-decoration: line-through;
}

.stx-bundle-card__promo {
  color: var(--stx-bundle-gold);
  font-size: 1.15rem;
  font-weight: 800;
}

.stx-bundle-card__promo.is-best {
  color: var(--stx-bundle-accent);
}

.stx-bundle-card__member-cta {
  margin: 0;
  font-size: 0.82rem;
}

.stx-bundle-card__member-cta a {
  color: var(--stx-bundle-gold);
  font-weight: 700;
}

.stx-bundle-card__save {
  color: var(--stx-bundle-accent) !important;
  font-weight: 700;
}

.stx-bundle-card__cta {
  justify-self: start;
  background: transparent;
  color: var(--stx-bundle-gold);
  border: 1px solid var(--stx-bundle-border);
}

/* Breakpoints 320–1440 */
@media (min-width: 640px) {
  .stx-bundle__hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .stx-bundle-included__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stx-bundle-cards,
  .stx-exclusive-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .stx-bundle-included__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stx-bundle-cards,
  .stx-exclusive-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stx-bundle {
    padding-bottom: 0;
  }

  .stx-bundle__atc-bar {
    position: static;
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

@media (min-width: 1200px) {
  .stx-bundle__hero {
    max-width: 1440px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stx-bundle__atc,
  .stx-bundle-gallery__thumb {
    transition: none;
  }
}

.stx-bundle__atc:focus-visible,
.stx-bundle-gallery__thumb:focus-visible,
.stx-bundle-card__cta:focus-visible,
.stx-bundle__view-cart:focus-visible {
  outline: 2px solid var(--stx-bundle-gold);
  outline-offset: 2px;
}
.stx-promo-chips{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;margin:.75rem 0;padding:0}.stx-promo-chips li{background:#f3f4f6;border:1px solid #d7dbe0;border-radius:999px;color:#252a31;font-size:.8rem;font-weight:700;padding:.35rem .65rem}.stx-bundle__availability,.stx-bundle-card__availability{color:#8a2f16;font-weight:700}.stx-bundle-perfect-for{margin:2rem 0}.stx-bundle-perfect-for ul{display:grid;gap:.65rem;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));list-style:none;padding:0}.stx-bundle-perfect-for li{background:#f7f8f9;border-radius:.5rem;padding:.8rem 1rem}.stx-bundle-perfect-for li span{color:#08783e;font-weight:800}

/* Customer story and visual bundle contents */
.stx-bundle-overview{display:grid;gap:1rem;margin:0 auto;max-width:1440px;padding:clamp(1.25rem,3vw,2.25rem) var(--stx-bundle-pad);border-top:1px solid var(--stx-bundle-border);border-bottom:1px solid var(--stx-bundle-border);background:linear-gradient(135deg,rgba(201,166,107,.08),transparent 55%)}.stx-bundle-section-heading p{color:var(--stx-bundle-accent);font-size:.7rem;font-weight:800;letter-spacing:.12em;margin:0;text-transform:uppercase}.stx-bundle-section-heading h2{font-family:"Bebas Neue",Impact,sans-serif;font-size:clamp(1.65rem,4vw,2.35rem);letter-spacing:.04em;margin:.2rem 0 0}.stx-bundle-overview__lead{color:var(--stx-bundle-text);font-size:1.1rem;font-weight:650;line-height:1.5;margin:0 0 .65rem}.stx-bundle-overview__prose{color:var(--stx-bundle-muted);font-size:.96rem;line-height:1.65}.stx-bundle-overview__prose>:first-child{margin-top:0}.stx-bundle-overview__prose>:last-child{margin-bottom:0}.stx-bundle-overview__highlights{display:grid;gap:.45rem;list-style:none;margin:0;padding:0}.stx-bundle-overview__highlights li{align-items:center;background:var(--stx-bundle-panel);border:1px solid var(--stx-bundle-border);border-radius:.3rem;display:flex;font-size:.88rem;gap:.5rem;padding:.55rem .7rem}.stx-bundle-overview__highlights span{color:var(--stx-bundle-gold);font-weight:900}.stx-bundle-item{grid-template-columns:120px 1fr;min-height:150px}.stx-bundle-item__media{background:#fff;padding:.35rem}.stx-bundle-item__media:empty:after{align-items:center;color:#64748b;content:'Image unavailable';display:flex;font-size:.7rem;height:100%;justify-content:center;text-align:center}.stx-bundle-card__contents{border-bottom:1px solid var(--stx-bundle-border);border-top:1px solid var(--stx-bundle-border);margin:.2rem 0;padding:.55rem 0}.stx-bundle-card__contents-label{color:var(--stx-bundle-muted);font-size:.7rem;font-weight:750;letter-spacing:.05em;margin:0 0 .4rem;text-transform:uppercase}.stx-bundle-card__product-strip{display:flex;gap:.4rem}.stx-bundle-card__product{background:#fff;border:1px solid var(--stx-bundle-border);border-radius:.3rem;height:52px;position:relative;width:52px}.stx-bundle-card__product img{height:100%;object-fit:contain;padding:.2rem;width:100%}.stx-bundle-card__product span{display:block;height:100%;background:linear-gradient(135deg,#e5e7eb,#f8fafc)}.stx-bundle-card__product b{align-items:center;background:var(--stx-bundle-accent);border-radius:999px;bottom:-5px;color:#111;display:flex;font-size:.65rem;height:19px;justify-content:center;position:absolute;right:-5px;width:22px}.stx-bundle-card__product-more{align-items:center;background:#252b34;border:1px solid var(--stx-bundle-border);border-radius:.3rem;color:var(--stx-bundle-gold);display:flex;font-size:.78rem;font-weight:800;height:52px;justify-content:center;width:40px}
@media(min-width:760px){.stx-bundle-overview{grid-template-columns:minmax(180px,.65fr) minmax(0,1.5fr) minmax(180px,.75fr)}.stx-bundle-overview__highlights{align-self:start}.stx-bundle-item{grid-template-columns:140px 1fr}.stx-bundle-item__media{min-height:128px}}

/* Dark storefront treatment for audience and legal sections */
.stx-bundle-perfect-for{margin:0 auto;max-width:1440px;padding:clamp(1.25rem,3vw,2.25rem) var(--stx-bundle-pad)}.stx-bundle-perfect-for h2{font-family:"Bebas Neue",Impact,sans-serif;font-size:clamp(1.5rem,4vw,2rem);letter-spacing:.04em;margin:0 0 .75rem}.stx-bundle-perfect-for ul{display:grid;gap:.65rem;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));list-style:none;margin:0;padding:0}.stx-bundle-perfect-for li{align-items:center;background:linear-gradient(145deg,#1a2029,#141920);border:1px solid var(--stx-bundle-border);border-radius:.4rem;color:var(--stx-bundle-text);display:flex;font-size:.92rem;font-weight:700;gap:.65rem;min-height:54px;padding:.7rem .8rem}.stx-bundle-perfect-for li span{align-items:center;background:rgba(217,119,6,.14);border:1px solid rgba(217,119,6,.45);border-radius:999px;color:var(--stx-bundle-gold);display:inline-flex;flex:0 0 28px;font-size:.85rem;height:28px;justify-content:center}.stx-bundle__terms{margin:0 auto;max-width:1440px;padding:0 var(--stx-bundle-pad) clamp(1.5rem,3vw,2.5rem)}.stx-bundle__terms h2{color:var(--stx-bundle-text);font-family:"Bebas Neue",Impact,sans-serif;font-size:1.45rem;letter-spacing:.04em;margin:0 0 .55rem}.stx-bundle__terms p{background:rgba(22,27,34,.82);border:1px solid var(--stx-bundle-border);border-left:3px solid var(--stx-bundle-gold);border-radius:.35rem;color:var(--stx-bundle-muted);font-size:.84rem;line-height:1.65;margin:0;max-width:100%;padding:.9rem 1rem}
