/* ================================================
   MAIN.CSS — Global styles + Header
   ================================================ */

/* ─────────────────────────────
   GLOBAL RESET
───────────────────────────────*/
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Poppins', sans-serif;
  color: #111;
  font-size: 15px;
  line-height: 1;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─────────────────────────────
   CONTAINER
───────────────────────────────*/
.container-wrap {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ─────────────────────────────
   BRAND TOKENS
───────────────────────────────*/
:root {
  --cbh-navy: #061832;
  --cbh-navy-2: #0b2342;
  --cbh-orange: #ed6e23;
  --cbh-orange-2: #ff8a3d;
  --cbh-ink: #344054;
  --cbh-muted: #667085;
  --cbh-line: #e7e9ee;
  --cbh-cream: #fff7f1;

  /* legacy aliases so older pages keep their colours */
  --brand-navy: #061832;
  --brand-orange: #ed6e23;
  --brand-charcoal: #231f20;
  --brand-cream: #fff7f1;
  --brand-line: #e7e9ee;
  --brand-muted: #667085;
}

/* ─────────────────────────────
   FLOATING CAPSULE HEADER
───────────────────────────────*/
.cbh-hdr {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, .78) 100%);
  backdrop-filter: saturate(170%) blur(10px);
  -webkit-backdrop-filter: saturate(170%) blur(10px);
}
.cbh-hdr-inner {
  padding: 14px 0 16px;
  transition: padding .3s cubic-bezier(.4, 0, .2, 1);
}
.cbh-hdr.is-compact .cbh-hdr-inner { padding: 8px 0 10px; }

.cbh-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 94%;
  max-width: 1420px;
  height: 76px;
  margin: 0 auto;
  padding: 0 14px 0 24px;
  border: 1px solid rgba(6, 24, 50, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px -22px rgba(6, 24, 50, .55);
  transition:
    height .3s cubic-bezier(.4, 0, .2, 1),
    max-width .3s cubic-bezier(.4, 0, .2, 1),
    border-radius .3s cubic-bezier(.4, 0, .2, 1),
    box-shadow .3s ease;
}
.cbh-hdr.is-compact .cbh-bar {
  height: 62px;
  max-width: 1200px;
  border-radius: 999px;
  box-shadow: 0 18px 40px -20px rgba(6, 24, 50, .55);
}

/* the logo box keeps its width before the image arrives, so the nav
   never jumps. --cbh-logo-w is the reserved width, tweak if needed. */
.cbh-logo {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: var(--cbh-logo-w, 190px);
  height: var(--cbh-logo-h, 50px);
  border-radius: 8px;
  transition: width .3s cubic-bezier(.4, 0, .2, 1), height .3s cubic-bezier(.4, 0, .2, 1);
}
.cbh-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #f2f5f9 25%, #e7edf5 37%, #f2f5f9 63%);
  background-size: 300% 100%;
  animation: cbhShimmer 1.3s ease-in-out infinite;
  transition: opacity .3s ease;
}
.cbh-logo.is-ready::after {
  opacity: 0;
  visibility: hidden;
  animation: none;
}
.cbh-logo img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0;
  transition: opacity .25s ease;
}
.cbh-logo.is-ready img { opacity: 1; }
@keyframes cbhShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.cbh-hdr.is-compact .cbh-logo {
  --cbh-logo-w: 146px;
  --cbh-logo-h: 38px;
}

.cbh-split {
  flex: 0 0 auto;
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--cbh-line), transparent);
}

/* ─────────────────────────────
   NAV
───────────────────────────────*/
.cbh-nav {
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
}
.cbh-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 100%;
  gap: 2px;
}
/* full height items keep the panel anchored to the bar and stop it
   closing while the pointer travels down */
.cbh-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.cbh-nav-link {
  position: relative;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--cbh-navy);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s ease;
}
.cbh-nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--cbh-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}
.cbh-nav-link:hover { color: var(--cbh-orange); }
.cbh-nav-link:hover::after,
.cbh-nav-link.is-active::after { transform: scaleX(1); }
.cbh-nav-link.is-active { color: var(--cbh-orange); }

/* Browse trigger */
.cbh-has-browse { position: static; }
.cbh-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  margin-right: 8px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: var(--cbh-navy);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: height .3s cubic-bezier(.4, 0, .2, 1), background .2s ease, box-shadow .2s ease;
}
.cbh-hdr.is-compact .cbh-browse-btn { height: 38px; }
.cbh-browse-btn:hover,
.cbh-has-browse:hover .cbh-browse-btn,
.cbh-has-browse:focus-within .cbh-browse-btn {
  background: var(--cbh-orange);
  box-shadow: 0 10px 22px -12px rgba(237, 110, 35, .95);
}
.cbh-grid-ico { width: 15px; height: 15px; flex: 0 0 auto; }
.cbh-chev {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transition: transform .22s ease;
}
.cbh-has-browse:hover .cbh-chev,
.cbh-has-browse:focus-within .cbh-chev { transform: rotate(180deg); }

/* ─────────────────────────────
   BROWSE PANEL
───────────────────────────────*/
.cbh-dd {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9000;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.cbh-has-browse:hover > .cbh-dd,
.cbh-has-browse:focus-within > .cbh-dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cbh-browse {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(6, 24, 50, .09);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(6, 24, 50, .55);
}

/* left rail */
.cbh-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  background: linear-gradient(160deg, #061832 0%, #0d2b53 100%);
  color: #fff;
}
.cbh-rail-kicker {
  position: relative;
  z-index: 2;
  padding-left: 10px;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.cbh-rail-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}
.cbh-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, .74);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.cbh-tab:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.cbh-tab.is-active {
  background: #fff;
  color: var(--cbh-navy);
  font-weight: 600;
}
.cbh-tab-count {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 10.5px;
  font-weight: 700;
}
.cbh-tab.is-active .cbh-tab-count {
  background: var(--cbh-cream);
  color: var(--cbh-orange);
}
.cbh-rail-help {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 20px;
}
.cbh-rail-help strong {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.cbh-rail-help p {
  margin-top: 7px;
  color: rgba(255, 255, 255, .58);
  font-size: 11.5px;
  line-height: 1.7;
}
.cbh-rail-help a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--cbh-orange);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  transition: gap .18s ease, background .18s ease;
}
.cbh-rail-help a:hover { gap: 12px; background: var(--cbh-orange-2); }
.cbh-rail-glow {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 110, 35, .34), transparent 68%);
  pointer-events: none;
}

/* right panes */
.cbh-panes {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(237, 110, 35, .06), transparent 34%),
    #fff;
}
.cbh-pane { display: none; }
.cbh-pane.is-active {
  display: block;
  animation: cbhPaneIn .22s ease both;
}
@keyframes cbhPaneIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cbh-pane-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eef1f5;
}
.cbh-pane-head strong {
  display: block;
  color: var(--cbh-navy);
  font-size: 18px;
  font-weight: 700;
}
.cbh-pane-head small {
  display: block;
  margin-top: 5px;
  color: var(--cbh-muted);
  font-size: 12px;
}
.cbh-pane-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cbh-orange);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: gap .18s ease;
}
.cbh-pane-all:hover { gap: 12px; }

.cbh-pane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
}
.cbh-tile {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--cbh-ink);
  font-size: 13px;
  font-weight: 500;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.cbh-tile:hover {
  border-color: rgba(237, 110, 35, .28);
  background: var(--cbh-cream);
  color: var(--cbh-navy);
  transform: translateY(-1px);
}
.cbh-tile-ico {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 11px;
  background: #f2f5f9;
  color: var(--cbh-navy);
  transition: background .16s ease, color .16s ease, transform .2s ease;
}
.cbh-tile-ico svg { width: 20px; height: 20px; }
/* real category image sits on top of the fallback icon when one exists */
.cbh-tile-ico img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.cbh-tile:hover .cbh-tile-ico img { transform: scale(1.08); }
.cbh-tile:hover .cbh-tile-ico {
  background: var(--cbh-orange);
  color: #fff;
  transform: scale(1.05);
}
.cbh-tile-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cbh-tile-arrow {
  color: var(--cbh-orange);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .16s ease, transform .16s ease;
}
.cbh-tile:hover .cbh-tile-arrow { opacity: 1; transform: translateX(0); }

.cbh-pane-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px -24px 0;
  padding: 14px 24px;
  border-top: 1px solid #eef1f5;
  background: #fbfcfe;
  color: var(--cbh-muted);
  font-size: 12.5px;
}
.cbh-pane-foot a {
  color: var(--cbh-navy);
  font-weight: 600;
  transition: color .18s ease;
}
.cbh-pane-foot a:hover { color: var(--cbh-orange); }

/* ─────────────────────────────
   ACTIONS
───────────────────────────────*/
.cbh-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cbh-searchbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #e1e6ee;
  border-radius: 50%;
  background: #f6f8fb;
  color: var(--cbh-navy);
  cursor: pointer;
  transition: width .3s cubic-bezier(.4, 0, .2, 1), height .3s cubic-bezier(.4, 0, .2, 1), border-color .18s ease, background .18s ease, color .18s ease;
}
.cbh-searchbtn svg { width: 19px; height: 19px; }
.cbh-searchbtn:hover {
  border-color: rgba(237, 110, 35, .5);
  background: var(--cbh-cream);
  color: var(--cbh-orange);
}
.cbh-hdr.is-compact .cbh-searchbtn { width: 40px; height: 40px; }

.cbh-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cbh-orange) 0%, var(--cbh-orange-2) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 24px -12px rgba(237, 110, 35, .95);
  transition: height .3s cubic-bezier(.4, 0, .2, 1), background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cbh-cta svg { flex: 0 0 auto; transition: transform .2s ease; }
.cbh-cta:hover {
  background: linear-gradient(135deg, var(--cbh-navy) 0%, var(--cbh-navy-2) 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(6, 24, 50, .8);
}
.cbh-cta:hover svg { transform: translateX(3px); }
.cbh-hdr.is-compact .cbh-cta { height: 40px; }

/* keyboard focus */
.cbh-hdr a:focus-visible,
.cbh-hdr button:focus-visible {
  outline: 2px solid var(--cbh-orange);
  outline-offset: 2px;
}

/* ─────────────────────────────
   HEADER FITTING — laptop widths
───────────────────────────────*/
@media (max-width: 1300px) {
  .cbh-bar { gap: 10px; padding-left: 20px; }
  .cbh-logo { --cbh-logo-w: 176px; --cbh-logo-h: 46px; }
  .cbh-nav-link { padding-left: 9px; padding-right: 9px; font-size: 12.5px; }
  .cbh-nav-link::after { left: 9px; right: 9px; }
  .cbh-browse-btn { margin-right: 6px; padding: 0 13px; }
  .cbh-pane-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1140px) {
  .cbh-logo { --cbh-logo-w: 160px; --cbh-logo-h: 42px; }
  .cbh-nav-link { padding-left: 7px; padding-right: 7px; font-size: 12px; }
  .cbh-nav-link::after { left: 7px; right: 7px; }
  .cbh-browse-btn { font-size: 12px; padding: 0 11px; }
  .cbh-cta { padding: 0 18px; font-size: 12.5px; }
}

@media (max-width: 1020px) {
  .cbh-bar { width: 96%; padding-left: 16px; }
  .cbh-logo { --cbh-logo-w: 146px; --cbh-logo-h: 38px; }
  .cbh-split { display: none; }
  .cbh-browse-btn span { display: none; }
  .cbh-browse-btn { gap: 6px; padding: 0 12px; }
  .cbh-cta span { display: none; }
  .cbh-cta { width: 46px; padding: 0; justify-content: center; }
  .cbh-browse { grid-template-columns: 210px minmax(0, 1fr); }
  .cbh-rail { padding: 18px 14px; }
  .cbh-panes { padding: 18px 18px 0; }
  .cbh-pane-foot { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cbh-hdr, .cbh-hdr * { transition: none !important; animation: none !important; }
}

/* ─────────────────────────────
   MOBILE HEADER (unchanged)
───────────────────────────────*/
.mob-hdr { display: none; }
.mob-logo { font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.mob-logo img { width: 142px; height: 44px; object-fit: contain; }
.mob-ico { background: none; border: none; padding: 0; cursor: pointer; line-height: 1; }

/* ─────────────────────────────
   MOBILE DRAWER (unchanged)
───────────────────────────────*/
.drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cbh-navy);
  z-index: 99999;
  overflow-y: auto;
  padding: 24px 20px 40px;
}
.drawer.open { display: block; }
.drw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.drw-head .dl { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.drw-brand {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
}
.drw-brand img { width: 150px; }
.drw-close { background: none; border: none; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.drw-item { border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 14px 0; }
.drw-item a { color: #fff; font-size: 16px; font-weight: 600; display: block; }
.drw-sub { font-size: 12px; font-weight: 400; color: #666; margin-top: 3px; }
.drw-info { margin-top: 28px; font-size: 13px; color: #666; line-height: 2; }

/* ─────────────────────────────
   HEADER RESPONSIVE SWITCH
───────────────────────────────*/
@media (max-width: 768px) {
  .cbh-hdr { display: none !important; }

  .mob-hdr {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--cbh-line);
    position: sticky;
    top: 0;
    z-index: 9999;
  }
}

@media (min-width: 769px) {
  .mob-hdr { display: none !important; }
  .drawer { display: none !important; }
}

/* base search field, used by the search overlay */
.search-wrap { position: relative; }
.search-wrap .p247-search-input {
  width: 100%;
  height: 46px;
  border: 1px solid #dbe0e8;
  border-radius: 14px;
  padding: 0 44px 0 46px;
  background: #fff;
  color: var(--cbh-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-wrap .p247-search-input::placeholder { color: #98a2b3; }
.search-wrap .p247-search-input:focus {
  border-color: var(--cbh-orange);
  box-shadow: 0 0 0 4px rgba(237, 110, 35, .12);
}
.search-wrap .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  fill: var(--cbh-navy);
  opacity: .5;
  pointer-events: none;
  z-index: 2;
}



/* ================================================
   FOOTER STYLES
   Footer CSS is intentionally isolated inside footer.php
   to prevent stale or page-specific footer rules from colliding.
   ================================================ */

/* Form submission message */
.form-status-inline {
  width: 100%;
  margin: 14px 0 0;
  padding: 13px 16px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.form-status-inline.success {
  background: #ecfff3;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.form-status-inline.error {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

/* Print247 Search Suggestions */
.p247-search { z-index: 1002; }
.p247-search .search-icon { z-index: 2; }
.p247-search-close {
  display: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  cursor: pointer;
  z-index: 3;
}
.p247-search.has-text .p247-search-close,
.mobile-p247-search .p247-search-close { display: block; }
.p247-search-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  padding: 18px 30px 22px;
  z-index: 1001;
}
.p247-search.open .p247-search-panel { display: block; }
.p247-search-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #111;
}
.p247-search-results.popular-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
}
.p247-popular-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  border: 1px solid #999;
  border-radius: 14px;
  padding: 0 16px 0 0;
  color: #111;
  text-decoration: none;
  overflow: hidden;
}
.p247-popular-item img {
  width: 82px;
  height: 78px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}
.p247-popular-item span {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}
.p247-search-results.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}
.p247-result-item {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #111;
  text-decoration: none;
  padding: 2px 0;
}
.p247-result-item img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
  background: #eee;
  flex-shrink: 0;
}
.p247-result-item span {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.p247-search-empty {
  padding: 12px 0;
  font-size: 16px;
  color: #555;
}
.mobile-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  padding: 52px 14px 0;
}
.mobile-search-overlay.open { display: block; }
.mobile-search-box {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.mobile-p247-search {
  max-width: none;
  width: 100%;
}
.mobile-p247-search .p247-search-panel {
  display: block;
  top: 62px;
  max-height: calc(100vh - 130px);
  overflow: auto;
}
.mobile-p247-search input { padding-right: 50px; }

@media (max-width: 768px) {
  .p247-search-panel { padding: 16px 20px 20px; }
  .p247-search-title { font-size: 17px; }
  .p247-search-results.popular-grid { grid-template-columns: 1fr; }
  .p247-popular-item { min-height: 64px; gap: 12px; }
  .p247-popular-item img { width: 64px; height: 64px; }
  .p247-popular-item span,
  .p247-result-item span { font-size: 16px; }
  .p247-result-item img { width: 38px; height: 38px; }
}

/* Dynamic mobile drawer category links */
.drw-sub a {
  color: #8f8f8f;
  font-size: 13px;
  font-weight: 400;
  padding: 5px 0 0 12px;
}
.drw-sub a:hover { color: #fff; }

/* ─────────────────────────────
   SEARCH PANEL SKIN
───────────────────────────────*/
.p247-search-panel {
  border: 1px solid rgba(6, 24, 50, .08);
  border-top: 3px solid var(--cbh-orange);
  border-radius: 16px;
  box-shadow: 0 22px 52px -18px rgba(6, 24, 50, .5);
}
.p247-search-title {
  color: var(--cbh-navy);
  font-size: 16px;
  font-weight: 600;
}
.p247-popular-item {
  border-color: #e2e6ec;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.p247-popular-item:hover {
  transform: translateY(-2px);
  border-color: rgba(237, 110, 35, .55);
  box-shadow: 0 8px 20px rgba(6, 24, 50, .08);
}
.p247-result-item {
  padding: 8px;
  border-radius: 12px;
  transition: background .18s ease;
}
.p247-result-item:hover { background: var(--cbh-cream); }
.p247-result-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.p247-result-copy strong {
  font-size: 15px;
  line-height: 1.3;
  color: var(--cbh-navy);
  font-weight: 600;
}
.p247-result-copy small {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(237, 110, 35, .11);
  color: #a44611;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.p247-search-close { background: var(--cbh-navy); }
.drw-sub a:hover { color: var(--cbh-orange-2); }

/* ─────────────────────────────
   SEARCH OVERLAY — desktop
───────────────────────────────*/
.p247-search-hint { display: none; }

@media (min-width: 769px) {
  .mobile-search-overlay {
    padding-top: 12vh;
    background: rgba(6, 24, 50, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .mobile-search-box {
    max-width: 640px;
    filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .38));
  }

  /* input and panel join into one card */
  .mobile-p247-search .p247-search-input {
    height: 62px;
    padding: 0 74px 0 54px;
    border: 1px solid #e6eaf1;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    font-size: 15px;
    box-shadow: none;
  }
  .mobile-p247-search .p247-search-input:focus {
    border-color: #e6eaf1;
    box-shadow: none;
  }
  .mobile-p247-search .search-icon {
    left: 22px;
    width: 19px;
    height: 19px;
    opacity: .45;
  }
  .mobile-p247-search .p247-search-close {
    top: 31px;
    right: 18px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #f2f5f9;
    color: var(--cbh-muted);
    font-size: 17px;
    line-height: 28px;
    transition: background .18s ease, color .18s ease;
  }
  .mobile-p247-search .p247-search-close:hover {
    background: var(--cbh-cream);
    color: var(--cbh-orange);
  }

  .mobile-p247-search .p247-search-panel {
    top: 62px;
    padding: 12px 12px 0;
    border: 1px solid #e6eaf1;
    border-top: 1px solid #eef1f5;
    border-radius: 0 0 18px 18px;
    box-shadow: none;
    max-height: calc(100vh - 12vh - 130px);
  }

  .mobile-p247-search .p247-search-title {
    margin: 6px 0 10px 8px;
    color: #98a2b3;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
  }

  /* popular searches: two compact cards per row */
  .mobile-p247-search .p247-search-results.popular-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .mobile-p247-search .p247-popular-item {
    min-height: 60px;
    gap: 12px;
    padding: 0 12px 0 0;
    border: 1px solid #eaeef4;
    border-radius: 12px;
    background: #fcfdff;
  }
  .mobile-p247-search .p247-popular-item img {
    width: 60px;
    height: 60px;
    border-radius: 11px 0 0 11px;
  }
  .mobile-p247-search .p247-popular-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--cbh-navy);
  }

  /* typed results: tight rows */
  .mobile-p247-search .p247-search-results.result-list {
    gap: 2px;
    max-height: 46vh;
  }
  .mobile-p247-search .p247-result-item {
    gap: 13px;
    padding: 9px 10px;
  }
  .mobile-p247-search .p247-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }
  .mobile-p247-search .p247-result-copy strong { font-size: 13.5px; }
  .mobile-p247-search .p247-search-empty {
    padding: 26px 0 30px;
    font-size: 13.5px;
    text-align: center;
    color: var(--cbh-muted);
  }

  .p247-search-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 10px -12px 0;
    padding: 11px 18px;
    border-top: 1px solid #eef1f5;
    background: #fbfcfe;
    border-radius: 0 0 17px 17px;
    color: #98a2b3;
    font-size: 11.5px;
  }
  .p247-search-hint kbd {
    display: inline-block;
    margin-right: 5px;
    padding: 3px 6px;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    background: #fff;
    color: var(--cbh-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
  }
}

/* ================================================
   CUSTOM BOXES HUB FOOTER
   Isolated 2026 footer styles
   ================================================ */

.cbhft {
  --cbhft_navy: #061832;
  --cbhft_navy_2: #0b2342;
  --cbhft_card: #102947;
  --cbhft_orange: #ed6e23;
  --cbhft_orange_soft: #ff8a45;
  --cbhft_text: #f7f9fc;
  --cbhft_muted: #a9b7ca;
  --cbhft_line: rgba(255,255,255,.10);
  position: relative;
  width: 100%;
  margin: 0 !important;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cbhft_navy) 0%, #081f3c 54%, #0c294b 100%);
  color: var(--cbhft_text);
  font-family: 'Poppins', sans-serif;
  isolation: isolate;
}

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

.cbhft::before,
.cbhft::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.cbhft::before {
  width: 420px;
  height: 420px;
  right: -210px;
  top: 210px;
  background: radial-gradient(circle, rgba(237,110,35,.15) 0%, rgba(237,110,35,0) 70%);
}

.cbhft::after {
  width: 360px;
  height: 360px;
  left: -210px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 72%);
}

.cbhft_shell {
  width: min(1380px, 92%);
  margin: 0 auto;
}

.cbhft_news_wrap {
  padding: 38px 0 0;
}

.cbhft_news {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  align-items: center;
  gap: 36px;
  padding: 30px 34px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: linear-gradient(120deg, var(--cbhft_orange) 0%, #f47b2c 100%);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  overflow: hidden;
}

.cbhft_news::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: 13%;
  top: -190px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.05), 0 0 0 84px rgba(255,255,255,.035);
  pointer-events: none;
}

.cbhft_news_copy,
.cbhft_subscribe {
  position: relative;
  z-index: 1;
}

.cbhft_kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.cbhft_news_title {
  margin: 0;
  max-width: 660px;
  color: #fff;
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 800;
  letter-spacing: -.7px;
  line-height: 1.12;
}

.cbhft_news_text {
  margin: 9px 0 0;
  max-width: 650px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.65;
}

.cbhft_subscribe {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(6,24,50,.16);
}

.cbhft_subscribe input {
  min-width: 0;
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cbhft_navy);
  padding: 0 18px;
  font: 500 13px/1.2 'Poppins', sans-serif;
}

.cbhft_subscribe input::placeholder {
  color: #8490a1;
}

.cbhft_subscribe button {
  flex: 0 0 auto;
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--cbhft_navy);
  color: #fff;
  font: 700 13px/1 'Poppins', sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.cbhft_subscribe button:hover {
  transform: translateY(-1px);
  background: #0d3159;
}

.cbhft_main {
  padding: 46px 0 34px;
}

.cbhft_grid {
  display: grid;
  grid-template-columns: 1.08fr 1.7fr .95fr;
  gap: 28px;
  align-items: stretch;
}

.cbhft_panel {
  min-width: 0;
  border: 1px solid var(--cbhft_line);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.cbhft_brand_panel {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.cbhft_brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  max-width: 100%;
  color: #fff;
}

.cbhft_brand_mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

.cbhft_brand_mark::before,
.cbhft_brand_mark::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 12px;
  border-radius: 3px;
  transform: rotate(28deg);
}

.cbhft_brand_mark::before {
  left: 8px;
  top: 10px;
  background: var(--cbhft_orange);
}

.cbhft_brand_mark::after {
  right: 7px;
  bottom: 9px;
  background: var(--cbhft_navy);
}

.cbhft_brand_words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.cbhft_brand_words small {
  margin-bottom: 3px;
  color: var(--cbhft_orange_soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.cbhft_brand_words strong {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.35px;
  line-height: 1.05;
}

.cbhft_brand_desc {
  margin: 20px 0 0;
  color: var(--cbhft_muted);
  font-size: 13px;
  line-height: 1.8;
}

.cbhft_socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}

.cbhft_social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #dce6f3;
  font-size: 11px;
  font-weight: 600;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.cbhft_social:hover {
  color: #fff;
  border-color: rgba(237,110,35,.55);
  background: rgba(237,110,35,.10);
  transform: translateY(-1px);
}

.cbhft_social svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.cbhft_links_panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 27px 28px;
}

.cbhft_col_title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.cbhft_col_title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cbhft_orange);
  box-shadow: 0 0 0 5px rgba(237,110,35,.10);
}

.cbhft_links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cbhft_links a {
  position: relative;
  width: fit-content;
  max-width: 100%;
  color: var(--cbhft_muted);
  font-size: 12px;
  line-height: 1.45;
  transition: color .18s ease, transform .18s ease;
}

.cbhft_links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.cbhft_help_panel {
  position: relative;
  padding: 26px;
  overflow: hidden;
}

.cbhft_help_panel::before {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  top: -70px;
  right: -42px;
  border: 22px solid rgba(237,110,35,.10);
  border-radius: 50%;
}

.cbhft_help_title {
  position: relative;
  margin: 0;
  max-width: 245px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.35px;
  line-height: 1.18;
}

.cbhft_help_text {
  position: relative;
  margin: 9px 0 18px;
  color: var(--cbhft_muted);
  font-size: 12px;
  line-height: 1.65;
}

.cbhft_contact_list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cbhft_contact_item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
}

.cbhft_contact_icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(237,110,35,.12);
  color: var(--cbhft_orange_soft);
}

.cbhft_contact_icon svg {
  width: 17px;
  height: 17px;
}

.cbhft_contact_copy {
  min-width: 0;
}

.cbhft_contact_copy small {
  display: block;
  margin-bottom: 3px;
  color: #8394ab;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.cbhft_contact_copy span,
.cbhft_contact_copy a {
  display: block;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.cbhft_contact_copy a:hover {
  color: var(--cbhft_orange_soft);
}

.cbhft_quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 12px;
  background: var(--cbhft_orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  transition: background .2s ease, transform .2s ease;
}

.cbhft_quote:hover {
  background: #ff7e32;
  transform: translateY(-1px);
}

.cbhft_cert_row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 17px 20px;
  border-top: 1px solid var(--cbhft_line);
  border-bottom: 1px solid var(--cbhft_line);
}

.cbhft_cert_label {
  color: #8494a9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.cbhft_certs {
  display: grid;
  grid-template-columns: repeat(6, minmax(58px, 1fr));
  gap: 16px;
  align-items: center;
}

.cbhft_certs img {
  width: 100%;
  height: 34px;
  object-fit: contain;
  opacity: .78;
  filter: saturate(.7) brightness(1.15);
  transition: opacity .2s ease, filter .2s ease;
}

.cbhft_certs img:hover {
  opacity: 1;
  filter: none;
}

.cbhft_bottom {
  border-top: 1px solid var(--cbhft_line);
  background: rgba(0,0,0,.12);
}

.cbhft_bottom_inner {
  width: min(1380px, 92%);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cbhft_copy,
.cbhft_payment {
  color: #8292a7;
  font-size: 11px;
  line-height: 1.4;
}

.cbhft_payment {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.cbhft_pay_badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  color: #dce6f3;
  font-size: 10px;
  font-weight: 700;
}

.cbhft_pay_badge:hover {
  border-color: rgba(237,110,35,.45);
  color: #fff;
}

.cbhft_brand img {
  width: 220px;
}

@media (max-width: 1100px) {
  .cbhft_grid {
    grid-template-columns: 1fr 1.55fr;
  }

  .cbhft_help_panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 22px;
  }

  .cbhft_help_text {
    margin-bottom: 0;
  }

  .cbhft_contact_list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cbhft_quote {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .cbhft_news_wrap {
    padding-top: 28px;
  }

  .cbhft_news {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px;
  }

  .cbhft_grid {
    grid-template-columns: 1fr;
  }

  .cbhft_links_panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cbhft_help_panel {
    grid-column: auto;
    display: block;
  }

  .cbhft_help_text {
    margin-bottom: 18px;
  }

  .cbhft_contact_list {
    display: flex;
  }

  .cbhft_cert_row {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .cbhft_certs {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
  }
}

@media (max-width: 620px) {
  .cbhft_shell,
  .cbhft_bottom_inner {
    width: 92%;
  }

  .cbhft_news_wrap {
    padding-top: 20px;
  }

  .cbhft_news {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .cbhft_news_title {
    font-size: 24px;
  }

  .cbhft_subscribe {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 7px;
    border-radius: 15px;
  }

  .cbhft_subscribe input,
  .cbhft_subscribe button {
    width: 100%;
    border-radius: 10px;
  }

  .cbhft_main {
    padding-top: 28px;
  }

  .cbhft_brand_panel,
  .cbhft_links_panel,
  .cbhft_help_panel {
    padding: 21px;
    border-radius: 18px;
  }

  .cbhft_links_panel {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }

  .cbhft_links_panel .cbhft_col:last-child {
    grid-column: 1 / -1;
  }

  .cbhft_certs {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
  }

  .cbhft_bottom_inner {
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .cbhft_payment {
    justify-content: flex-start;
  }
}