/* STH Black Dollar Banner — no clip, lighter cards, clean hero */
.sth-bdb-source { display: none !important; }

.sth-bdb {
  --sth-bdb-ink: #161d27;
  --sth-bdb-muted: #5f6b7a;
  --sth-bdb-line: #d5dae3;
  --sth-bdb-bg: #f4f6f9;
  --sth-bdb-card: #f2f4f7;
  --sth-bdb-accent: #1f3044;
  --sth-bdb-side: 7px; /* was 12 — 5px less each side */
  --sth-bdb-w: min(100%, 390px);
  --sth-bdb-h: 176px;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--sth-bdb-w);
  margin: 8px auto 12px;
  padding: 0 var(--sth-bdb-side);
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--sth-bdb-ink);
}

.sth-bdb *,
.sth-bdb *::before,
.sth-bdb *::after {
  box-sizing: border-box;
}

.sth-bdb__frame {
  position: relative;
  width: 100%;
  height: var(--sth-bdb-h);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.9), transparent 45%),
    radial-gradient(90% 70% at 0% 100%, rgba(31, 48, 68, 0.06), transparent 50%),
    linear-gradient(155deg, #fafbfc 0%, #f2f5f9 52%, #e9eef4 100%);
  border: 1px solid rgba(213, 218, 227, 0.95);
  box-shadow:
    0 8px 22px rgba(22, 29, 39, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sth-bdb__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sth-bdb__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 10px 30px 28px; /* bottom clears dots */
}

.sth-bdb__slide--hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 14px 34px 28px 40px;
}

.sth-bdb__slide--products {
  padding: 10px 26px 30px;
}

.sth-bdb__hero {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  position: relative;
  z-index: 1;
}

/* First-slide side art — soft, pretty */
.sth-bdb__hero-art {
  position: relative;
  flex: 0 0 74px;
  width: 74px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
  animation: sth-bdb-float 4.5s ease-in-out infinite;
}

.sth-bdb__orb {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.sth-bdb__orb--a {
  width: 66px;
  height: 66px;
  top: 6px;
  right: 0;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #e4eaf2 55%, #c8d2e0 100%);
  box-shadow:
    0 8px 18px rgba(22, 29, 39, 0.1),
    inset 0 -4px 10px rgba(31, 48, 68, 0.06);
}

.sth-bdb__orb--a::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(31, 48, 68, 0.08);
}

.sth-bdb__orb--b {
  width: 34px;
  height: 34px;
  bottom: 10px;
  left: 0;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.7), rgba(31, 48, 68, 0.08));
  border: 1px solid rgba(31, 48, 68, 0.1);
  box-shadow: 0 3px 8px rgba(22, 29, 39, 0.06);
}

.sth-bdb__mark {
  position: relative;
  z-index: 1;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sth-bdb-accent);
  letter-spacing: -0.04em;
  text-shadow: 0 6px 14px rgba(22, 29, 39, 0.12);
}

.sth-bdb__seal {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #243447 0%, #1a2838 100%);
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow:
    0 3px 10px rgba(31, 48, 68, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sth-bdb__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sth-bdb-accent);
  line-height: 1.2;
}

.sth-bdb__eyebrow::before {
  content: "";
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sth-bdb-accent), rgba(31, 48, 68, 0.2));
  flex-shrink: 0;
}

.sth-bdb__title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--sth-bdb-ink);
  max-width: 18ch;
  text-wrap: balance;
}

.sth-bdb__sub {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--sth-bdb-muted);
  max-width: 34ch;
}

.sth-bdb__sub:empty {
  display: none;
}

.sth-bdb__code {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, #2a3d55 0%, #1f3044 55%, #182636 100%);
  color: #fff;
  box-shadow:
    0 4px 12px rgba(31, 48, 68, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sth-bdb__code:hover,
.sth-bdb__code:focus-visible {
  color: #fff;
  opacity: 0.94;
}

.sth-bdb__code-label {
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.2;
}

.sth-bdb__code-value {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sth-bdb__discount {
  margin: 2px 0 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sth-bdb-accent);
  line-height: 1.25;
  padding-bottom: 1px; /* avoid descender clip */
}

.sth-bdb__products-head {
  display: none;
}

.sth-bdb__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  height: 100%;
}

.sth-bdb__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #f5f7fa;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(22, 29, 39, 0.05);
  box-shadow: 0 2px 8px rgba(22, 29, 39, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sth-bdb__card:hover,
.sth-bdb__card:focus-visible {
  border-color: rgba(31, 48, 68, 0.28);
  transform: translateY(-1px);
}

.sth-bdb__card-media {
  display: block;
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
  padding: 6px 5px 3px;
  background: #eef1f5; /* lighter product bg */
  overflow: hidden;
}

.sth-bdb__card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  mix-blend-mode: multiply;
}

.sth-bdb__card-meta {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding: 5px 5px 6px;
  background: #f3f5f8; /* lighter title strip */
  border-top: 1px solid rgba(22, 29, 39, 0.04);
}

.sth-bdb__card-title {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sth-bdb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  letter-spacing: -0.01em;
}

.sth-bdb__card-price {
  display: none;
}

/* iOS-safe nav: CSS chevron (text ‹› mis-centers on WebKit) */
.sth-bdb__nav {
  position: absolute;
  top: 50%;
  left: auto;
  right: auto;
  z-index: 5;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(22, 29, 39, 0.14) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(-50%);
}

.sth-bdb__nav::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 0;
  border-style: solid;
  border-color: var(--sth-bdb-ink);
  border-width: 0 2px 2px 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sth-bdb__nav--prev {
  left: 6px;
}
.sth-bdb__nav--prev::before {
  transform: rotate(135deg);
  margin-left: 2px; /* optical center */
}

.sth-bdb__nav--next {
  right: 6px;
}
.sth-bdb__nav--next::before {
  transform: rotate(-45deg);
  margin-right: 2px;
}

.sth-bdb__nav:hover,
.sth-bdb__nav:focus-visible {
  background: #fff !important;
}

/* Theme often styles all buttons — force pill dots */
.sth-bdb__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 5;
  height: 10px;
  pointer-events: auto;
}

.sth-bdb__dots .sth-bdb__dot,
button.sth-bdb__dot {
  display: block !important;
  flex: 0 0 auto !important;
  width: 6px !important;
  height: 6px !important;
  min-width: 6px !important;
  min-height: 6px !important;
  max-width: 6px !important;
  max-height: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  border-radius: 50% !important;
  background: rgba(22, 29, 39, 0.22) !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.sth-bdb__dots .sth-bdb__dot.is-active,
button.sth-bdb__dot.is-active {
  width: 14px !important;
  max-width: 14px !important;
  border-radius: 999px !important;
  background: var(--sth-bdb-accent) !important;
}

@media (min-width: 768px) {
  .sth-bdb {
    max-width: 420px;
    --sth-bdb-side: 10px; /* was 15 — 5px less */
    --sth-bdb-h: 186px;
  }
  .sth-bdb__title {
    font-size: 1.16rem;
  }
  .sth-bdb__slide--hero {
    padding: 16px 36px 28px 44px;
  }
  .sth-bdb__hero-art {
    flex-basis: 84px;
    width: 84px;
    height: 108px;
  }
  .sth-bdb__mark {
    font-size: 2.4rem;
  }
}

@media (max-width: 360px) {
  .sth-bdb {
    --sth-bdb-h: 168px;
  }
  .sth-bdb__title {
    font-size: 0.98rem;
  }
  .sth-bdb__slide--hero {
    padding: 12px 26px 24px 42px;
  }
}

@keyframes sth-bdb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .sth-bdb__track,
  .sth-bdb__card,
  .sth-bdb__hero-art {
    transition: none !important;
    animation: none !important;
  }
}
