@font-face {
    font-family: "boe";
    src: url("../fonts/boe.woff2") format("woff2"), url("../fonts/boe.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

[data-icon]:before {
    font-family: "boe", Arial, sans-serif !important;
    content: attr(data-icon);
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
    font-family: "boe", Arial, sans-serif !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-home:before {
    content: "\65";
}

.icon-binoculars:before {
    content: "\66";
}

.icon-user:before {
    content: "\6a";
}

.icon-life-ring:before {
    content: "\6b";
}

.icon-cart:before {
    content: "\54";
}

.navigationDropDown .icon {
    font-size: 1.6em;
    display: inline-block;
    vertical-align: bottom;
    width: 32px;
    line-height: 1em;
}

.navigationDropDown>li a {
    text-decoration: none;
    color: #11192e;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: color .25s ease-out;
}

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.custom-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    padding: 4px 6px;
    font-size: 0.65rem;
    font-weight: bold;
    color: #fff;
    background-color: #fe5922;
    border-radius: 50%;
    min-width: 0.2em;
    height: 2.0em;
    line-height: 1.2em;
    text-align: center;
    box-shadow: 0 0 0 1px #fff;
}

/* desktop default */
header.blog-header .toolbox.right {
  display: none;
}

/* 1) Global responsive defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* 2) Improve tap targets for icon nav (desktop and tablet) */
.navigationDropDown > li a {
  padding: .35rem .2rem;
}

/* 3) Mobile: search and category menu should fit width and be easy to use */
@media (max-width: 700px) {
  /* Search row: make input grow and button stay visible */
  .blog-c-search.search-wrap .blog-c-search-form {
    display: flex;
    width: 100%;
  }

  #MainSearchText {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    font-size: 16px; /* avoid iOS zoom */
  }

  #MainSearchButton {
    flex: 0 0 auto;
    margin-left: 0rem;
    padding: .5rem .75rem;
  }

  /* Category dropdown: override fixed inline width, make list usable */
  .blog-c-search .CategoryDropDownMenu.MenuContainer,
  .blog-c-search .CategoryDropDownSelected {
    width: 100% !important;
  }

  .CategoryDropDownList.PopularMenu {
    position: static;
    width: 100%;
    max-height: 60vh;
    overflow: auto;
  }
}

/* 4) Tablet down: ensure header blocks wrap cleanly (complements existing 1070px rules) */
@media (max-width: 992px) {
  header.blog-header .blog-c-search.search-wrap {
    width: 100%;
  }
}

/* 5) Footer: stack and align nicely on mobile */
@media (max-width: 700px) {
  .blog-footer .text-right {
    text-align: left !important;
  }
  .footer-col-contact {
    margin-top: .75rem;
  }
}

@media (max-width: 1111px) {
  header.blog-header .d-flex {
    flex-wrap: wrap;
    justify-content: center;
  }
  header.blog-header .blog-logo {
    order: 1;
    margin: 0 auto;
    text-align: center;
  }
  header.blog-header .navigationDropDown.ml-auto.my-auto {
    order: 2;
    margin-left: 0 !important; /* undo ml-auto to allow wrapping */
    flex: 0 0 100%;            /* full width row */
    display: flex;
    justify-content: center;
    margin-top: .75rem !important;   /* override Bootstrap .my-auto */
    margin-bottom: 0 !important;     /* optional: prevent auto bottom margin */
  }
  header.blog-header .blog-c-search.search-wrap {
    order: 3;
    flex: 0 0 100%;            /* full width below nav */
    margin-top: .5rem;
    display: flex;
    justify-content: center;
    flex-direction: column;   /* stack children: form first, then dropdown */
    align-items: center;      /* keep centered as before */
  }

  /* make the search form span the row so the dropdown wraps below */
  header.blog-header .blog-c-search.search-wrap .blog-c-search-form {
    width: 100%;
    margin-bottom: .5rem;
  }

  /* slight spacing for the dropdown trigger */
  header.blog-header .blog-c-search.search-wrap .CategoryDropDownMenu.MenuContainer {
    margin-top: .25rem;
  }
}

@media (max-width: 465px) {
  header.blog-header .navigationDropDown.ml-auto.my-auto {
    display: flex;          /* ensure flex layout */
    flex-wrap: wrap;        /* allow wrapping to next line */
    justify-content: center;
  }
  header.blog-header .navigationDropDown.ml-auto.my-auto > li {
    float: none;            /* neutralize possible float from base styles */
    flex: 0 0 auto;         /* keep natural width */
    margin: 0 .25rem .5rem; /* small spacing between wrapped items */
  }
}