/* MuscelBond Enterprise Header, Announcement Bar & Footer */

/* ---- Announcement Strip ---- */
.mb-announcement-bar {
  background: #0e0e12;
  color: #ffffff;
  font-family: var(--mb-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #e5161b;
  overflow: hidden;
  position: relative;
  z-index: 40;
}

.mb-announcement-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 36px;
  padding: 6px 12px;
  text-align: center;
  flex-wrap: wrap;
}

.mb-announcement-bar__pill {
  background: var(--mb-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.mb-announcement-bar__code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 480px) {
  .mb-announcement-bar__inner {
    font-size: 11px;
    gap: 6px;
    padding: 5px 10px;
  }
}

/* ---- Modern Header Polish over Woodmart Header ---- */
.whb-header {
  border-bottom: 1.5px solid var(--mb-border) !important;
  background: #ffffff !important;
}

.whb-top-bar {
  display: none !important; /* Replaced cleanly by mb-announcement-bar */
}

.whb-general-header {
  min-height: 60px !important;
  background: transparent !important;
}

.whb-header-bottom {
  background: var(--mb-surface) !important;
  border-top: 1px solid var(--mb-border) !important;
}

.whb-header .wd-nav > li > a {
  font-family: var(--mb-font-body) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mb-ink) !important;
  white-space: nowrap;
}

.whb-header .wd-nav > li > a:hover,
.whb-header .wd-nav > li.current-menu-item > a {
  color: var(--mb-accent) !important;
}

.whb-header .wd-header-cart .wd-cart-number {
  background-color: var(--mb-accent) !important;
  color: #ffffff !important;
}

/* Fix Header Search Form (override body.mb-redesign-active white text bleed into white search pill) */
.whb-header .wd-search-form,
.whb-header form.searchform,
.whb-header form.searchform.wd-style-4 {
  --wd-form-bg: #ffffff !important;
  --wd-form-color: #071a38 !important;
  --wd-form-placeholder-color: #64748b !important;
  color: #071a38 !important;
}

.whb-header form.searchform input.s,
.whb-header form.searchform input[type="text"],
.whb-header form.searchform input[type="search"] {
  color: #071a38 !important;
  background-color: #ffffff !important;
  -webkit-text-fill-color: #071a38 !important;
}

.whb-header form.searchform input.s::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #64748b !important;
}

.whb-header form.searchform .searchsubmit {
  color: #071a38 !important;
  --btn-color: #071a38 !important;
}

.whb-header form.searchform .searchsubmit:hover {
  color: #e5161b !important;
  --btn-color: #e5161b !important;
}

/* Mobile Header Row (.whb-header-bottom is WoodMart's mobile header!) */
@media (max-width: 1024px) {
  .whb-header-bottom {
    display: block !important;
    min-height: 54px !important;
    background: #ffffff !important;
    border-top: none !important;
    overflow: hidden !important;
  }
  .whb-header-bottom > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 12px !important;
    box-sizing: border-box !important;
  }
  .whb-header-bottom-inner {
    min-height: 54px !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .whb-header-bottom .whb-col-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .whb-header-bottom .wd-header-search-form-mobile {
    display: none !important;
  }
  .whb-header-bottom .mb-mob-logo {
    margin-right: auto !important;
  }
}

/* ---- Enterprise Footer (Matches Crazy Fitness Sale Obsidian Black) ---- */
.mb-footer {
  background: #060608;
  color: #e6edf7;
  padding: 44px 0 28px;
  font-family: var(--mb-font-body);
  border-top: 3px solid #e5161b;
  position: relative;
}

.mb-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 640px) {
  .mb-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .mb-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
  }
}

.mb-footer__logo {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.mb-footer__tagline {
  font-size: 14px;
  line-height: 1.55;
  color: #b7c6db;
  margin: 0 0 16px;
  max-width: 340px;
}

.mb-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mb-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.mb-footer__heading {
  font-family: var(--mb-font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 12px;
}

.mb-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mb-footer__link {
  color: #c7d4e6 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mb-footer__link:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.mb-footer__contact-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
}

.mb-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff !important;
  text-decoration: none !important;
  margin-bottom: 6px;
}

.mb-footer__sub {
  font-size: 12px;
  color: #a9bbd4;
  margin: 0;
  line-height: 1.45;
}

.mb-footer__bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #9cb0cb;
}

.mb-footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mb-footer__pay-pill {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce6f4;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Hide legacy Vegetables Footer when custom enterprise footer is rendered */
body.mb-has-enterprise-footer .footer-container {
  display: none !important;
}

/* Prevent .scrollToTop floating button from overlapping footer pills, cards, or mobile dock */
.scrollToTop {
  display: none !important;
}

/* Keep WoodMart cookie banner compact, visible, and above mobile dock/sticky ATC */
html body .wd-cookies-popup {
  z-index: 99995 !important;
  pointer-events: auto !important;
  background: #ffffff !important;
  color: #071a38 !important;
  border: 1.5px solid #071a38 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(7, 26, 56, 0.22) !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  top: auto !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
}

html body .wd-cookies-popup * {
  pointer-events: auto !important;
}

html body .wd-cookies-popup .wd-cookies-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  text-align: left !important;
}

html body .wd-cookies-popup .cookies-info-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #243b5c !important;
}

html body .wd-cookies-popup .cookies-buttons {
  margin-top: 0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

html body .wd-cookies-popup .cookies-accept-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  background: #e53935 !important;
  color: #ffffff !important;
  border: 1.5px solid #071a38 !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

@media (max-width: 989px) {
  html body .wd-cookies-popup {
    left: 10px !important;
    right: 10px !important;
    bottom: 76px !important;
    padding: 9px 11px !important;
  }
  html body .wd-cookies-popup .cookies-info-text {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
}
