/* ==============================================
   BikesDirect Header UI — Banner, Buttons, Trust
   Updated: 2025-08-11 (cleaned)
   Notes:
   - Trust Bar single source of truth
   - iPhone 12 portrait: single-line + compact safe-area padding
   - Category pills untouched here
   ============================================== */

/* OLD (kept for reference — superseded by calc-based system)
.content-wrapper {
  margin-top: var(--bd-header-height, 12em); /* Adjust to fit 3–4 rows */
}
*/

/* === Header gap (single source) === */
:root {
  --bd-header-gap: 24px; /* ← pick your gap; change this value to adjust */
}
.content-wrapper {
  margin-top: calc(var(--bd-header-height, 0px) + var(--bd-header-gap));
}

/* ==============================================
   ROW 3: TRUST BAR — FINAL
   ============================================== */
#bd-fixed-header .bd-header-trust-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Visuals */
  background-color: rgba(173, 216, 230, 0.7);
  color: #001f3f;

  /* Type */
  font-family: 'Urbanist', sans-serif;
  font-weight: 400;
  line-height: 1.35;
  font-size: clamp(10px, 2.0vw, 13px);  /* conservative desktop sizing */
  letter-spacing: 0;
  text-align: center;

  /* Box */
  padding: 10px 16px;      /* balanced default padding */
  box-sizing: border-box;

  /* smoothing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  /* NOTE: remove extra bottom margin to avoid double spacing with --bd-header-gap */
  /* margin-bottom: 18px; */ /* ← commented out */
}

#bd-fixed-header .bd-header-trust-text {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 .75em;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  letter-spacing: -0.1px;
}

/* Tablet & down */
@media (max-width: 768px) {
  #bd-fixed-header .bd-header-trust-bar {
    font-size: clamp(12px, 2.8vw, 14px);
    padding: 8px 14px;
  }
  #bd-fixed-header .bd-header-trust-text {
    max-width: 95vw;
    padding: 0 .6em;
  }
}

/* iPhone 12 — portrait (390x844) */
@media (max-width: 420px) and (orientation: portrait) {
  #bd-fixed-header .bd-header-trust-bar {
    font-size: clamp(9px, 2.7vw, 13px);
    line-height: 1.32;
    letter-spacing: -0.1px;

    /* compact, symmetric safe-area padding */
    padding-block: 6px;
    padding-inline: max(env(safe-area-inset-left), 8px);

    -webkit-text-size-adjust: 100%;
    text-align: center;
    justify-content: center;
  }

  #bd-fixed-header .bd-header-trust-text {
    white-space: nowrap;         /* force single line */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.1px;
  }

  /* Optional: slightly reduce global gap on tiny screens */
  :root { --bd-header-gap: 1.1em; }
}

/* iPhone 12 — landscape */
@media (max-width: 896px) and (orientation: landscape) {
  #bd-fixed-header .bd-header-trust-bar {
    font-size: clamp(11px, 1.8vw, 13px);
    line-height: 1.3;
    padding-block: 6px;
    padding-inline: max(env(safe-area-inset-left), 8px);
    text-align: center;
    justify-content: center;
  }
}

/* ==============================================
   ROW 4: PROMO BANNER (unchanged)
   ============================================== */
.bd-header-promo-bar .bd-banner-message {
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.4;
  max-width: 800px;
  width: 100%;
}
@media (max-width: 768px) {
  .bd-header-promo-bar .bd-banner-message {
    font-size: 1.1em;
    line-height: 1.4;
    padding: 0.5em 1em;
  }
}

/* ==============================================
   CATEGORY BUTTON GRID + BUTTONS (unchanged here)
   ============================================== */
/* (left as-is; your polish/equal-width file controls pill look/width) */
