/* ReeBic theme header — light, logo teal */
:root {
  --rb-teal: #00b7c5;
  --rb-teal-deep: #0094a0;
  --rb-ink: #1a2330;
  --rb-muted: #5c6673;
  --rb-paper: #f5f7f8;
  --rb-line: #e6eaed;
  --rb-white: #ffffff;
  --rb-max: 1240px;
  --rb-offers: #e11d48;
}

.rb-wrap {
  width: min(100% - 2rem, var(--rb-max));
  margin-inline: auto;
}

.rb-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--rb-white);
  border-bottom: 1px solid var(--rb-line);
  font-family: "Outfit", system-ui, sans-serif;
}

/* Top USP — light grey */
.rb-usp {
  background: #eef2f4;
  color: var(--rb-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rb-usp__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}

.rb-usp__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.rb-usp__icon {
  display: inline-flex;
  color: var(--rb-teal);
  flex: 0 0 auto;
  line-height: 0;
}

.rb-usp__icon svg,
.rb-usp__chev svg {
  display: block;
}

.rb-usp__chev {
  display: inline-flex;
  color: var(--rb-muted);
  margin-left: 0.1rem;
}

.rb-usp a.rb-usp__item:hover {
  color: var(--rb-teal-deep);
}

.rb-usp__accent {
  color: var(--rb-teal);
  font-weight: 800;
}

/* Beat Elementor global button/primary (#D90000) on our header controls */
.rb-site-header button,
.rb-site-header .elementor-button,
.rb-site-header [type="submit"],
.rb-site-header [type="button"] {
  --e-global-color-primary: #00b7c5;
}

.rb-header-main__inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  grid-template-areas: "logo search actions";
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.4rem 0;
}

.rb-logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.rb-header-burger {
  display: none !important;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--rb-ink) !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.rb-header-burger:hover,
.rb-header-burger:focus,
.rb-header-burger:focus-visible,
.rb-header-burger:active {
  border: 0 !important;
  background: transparent !important;
  color: var(--rb-teal-deep) !important;
  box-shadow: none !important;
  outline: none !important;
}

.rb-header-burger span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 5px auto;
  background: currentColor !important;
}

.rb-logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.rb-search {
  grid-area: search;
  display: block;
  position: relative;
  width: 100%;
  max-width: 620px;
  justify-self: center;
  z-index: 40;
}

.rb-search__bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--rb-line);
  border-radius: 6px;
  background: var(--rb-white);
  overflow: hidden;
}

.rb-search.is-search-open .rb-search__bar {
  border-color: var(--rb-teal);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 0 1px rgba(0, 183, 197, 0.15);
}

.rb-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  justify-self: end;
}

.rb-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.75rem 1rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.92rem;
  color: var(--rb-ink);
  background: transparent;
}

.rb-search input[type="search"]::placeholder {
  color: #8a94a0;
}

.rb-search__submit {
  flex: 0 0 3rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--rb-teal) !important;
  background-image: none !important;
  color: #fff !important;
  fill: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.rb-search__submit:hover,
.rb-search__submit:focus,
.rb-search__submit:focus-visible,
.rb-search__submit:active {
  background: var(--rb-teal-deep) !important;
  background-image: none !important;
  border: 0 !important;
  color: #fff !important;
  fill: #fff !important;
  box-shadow: none !important;
  outline: none !important;
}

.rb-search__submit svg {
  display: block;
  margin: 0 auto;
  fill: currentColor !important;
  color: #fff !important;
}

.rb-search__submit svg path {
  fill: currentColor !important;
}

.rb-header-account,
.rb-header-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rb-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.rb-header-account:hover,
.rb-header-cart:hover {
  color: var(--rb-teal-deep);
}

.rb-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.rb-header-cart__icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
}

.rb-header-cart__count {
  position: absolute;
  top: -0.45rem;
  right: -0.55rem;
  left: auto;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--rb-teal);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  pointer-events: none;
}

.rb-header-cart__label {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.82rem;
  padding-left: 0;
}

.rb-header-cart__label .amount,
.rb-header-cart__label .woocommerce-Price-amount {
  font-weight: 800;
  font-size: 0.9rem;
}

/* Category nav — AD-style: NEW teal / SALE magenta pills, chevrons, no dividers */
.rb-cat-nav {
  border-top: 1px solid var(--rb-line);
  border-bottom: 1px solid var(--rb-line);
  background: var(--rb-white);
}

.rb-cat-nav__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rb-cat-nav__list::-webkit-scrollbar {
  display: none;
}

.rb-cat-nav__list li {
  display: flex;
  flex: 0 0 auto;
}

.rb-cat-nav__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.7rem 0.95rem;
  color: var(--rb-ink);
  text-decoration: none;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  border: 0;
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.rb-cat-nav__list a.has-chevron::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.15rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.rb-cat-nav__list a:hover {
  color: var(--rb-teal-deep);
  background: transparent;
}

.rb-cat-nav__list a.is-new {
  color: #fff;
  background: var(--rb-teal);
  font-weight: 800;
  padding-inline: 1.15rem;
}

.rb-cat-nav__list a.is-new:hover {
  color: #fff;
  background: var(--rb-teal-deep);
}

.rb-cat-nav__list a.is-offers {
  color: #fff;
  background: #e11d48;
  font-weight: 800;
  padding-inline: 1.15rem;
}

.rb-cat-nav__list a.is-offers:hover {
  color: #fff;
  background: #be123c;
}

.rb-mobile-usp {
  display: none;
}

.rb-bottom-nav {
  display: none;
}

/* Hide leftover HFE + Hello Elementor default headers (tagline “Traditional Angling…”) */
header.ehf-header,
.ehf-template-hello-elementor header.header,
body .elementor-168.elementor-location-header,
body #site-header.site-header,
body header.site-header.dynamic-header {
  display: none !important;
}

@media (max-width: 900px) {
  .rb-usp,
  .rb-mobile-usp,
  .rb-trust,
  .rb-trust--icons {
    display: none !important;
  }

  .rb-header-main__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "burger logo actions"
      "search search search";
    gap: 0.75rem;
  }

  .rb-header-burger {
    display: inline-block !important;
    grid-area: burger;
  }

  .rb-logo {
    grid-area: logo;
    justify-self: center;
  }

  .rb-logo img {
    height: 42px;
  }

  .rb-search {
    grid-area: search;
    max-width: none;
    justify-self: stretch;
  }

  .rb-header-actions {
    grid-area: actions;
  }

  .rb-header-account span,
  .rb-header-cart__label {
    display: none;
  }

  .rb-cat-nav {
    display: none;
    background: var(--rb-white);
  }

  .rb-cat-nav.is-open {
    display: block;
    border-bottom: 1px solid var(--rb-line);
  }

  .rb-cat-nav.is-open .rb-cat-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.5rem 0 0.75rem;
  }

  .rb-cat-nav.is-open .rb-cat-nav__list a {
    width: 100%;
    padding: 0.75rem 0.5rem;
  }

  .rb-cat-nav.is-open .rb-cat-nav__list a.is-new,
  .rb-cat-nav.is-open .rb-cat-nav__list a.is-offers {
    justify-content: center;
  }

  .rb-mobile-usp {
    display: none !important;
  }

  .rb-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background: var(--rb-white);
    border-top: 1px solid var(--rb-line);
    padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
    font-family: "Outfit", system-ui, sans-serif;
  }

  .rb-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem;
    color: var(--rb-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .rb-bottom-nav a.is-active,
  .rb-bottom-nav a:hover {
    color: var(--rb-teal);
  }

  body {
    padding-bottom: 4.25rem;
  }
}

@media (min-width: 901px) {
  .rb-usp__item--hide-sm {
    display: inline;
  }

  .rb-header-burger {
    display: none !important;
  }
}

/* —— Live search panel (AD-style layout, ReeBic brand) —— */
.rb-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(26, 35, 48, 0.28);
}

.rb-search-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 980px);
  max-height: min(72vh, 560px);
  overflow: hidden;
  background: var(--rb-white);
  border: 1px solid var(--rb-line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(26, 35, 48, 0.14);
  z-index: 50;
}

.rb-search-panel__inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  min-height: 280px;
  max-height: min(72vh, 560px);
  overflow: hidden;
}

.rb-search-panel__side {
  box-sizing: border-box;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: 1.1rem 1rem 1.25rem;
  border-right: 1px solid var(--rb-line);
  background: #fafbfc;
  overflow-x: hidden;
  overflow-y: auto;
}

.rb-search-panel__side h4,
.rb-search-help h4 {
  margin: 0 0 0.65rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rb-muted);
}

.rb-search-chips,
.rb-search-cats {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.rb-search-chips li,
.rb-search-cats li {
  margin: 0 0 0.25rem;
}

/* Must beat .rb-search button / Elementor button styles */
.rb-search .rb-search-chip,
button.rb-search-chip {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.4rem 0.55rem !important;
  border: 1px solid var(--rb-line) !important;
  border-radius: 6px !important;
  background: var(--rb-white) !important;
  background-image: none !important;
  color: var(--rb-ink) !important;
  text-align: left !important;
  font-family: "Poppins", system-ui, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  box-shadow: none !important;
  flex: none !important;
  min-height: 0 !important;
  height: auto !important;
}

.rb-search .rb-search-chip:hover,
button.rb-search-chip:hover {
  border-color: var(--rb-teal) !important;
  color: var(--rb-teal-deep) !important;
  background: #f7fcfd !important;
}

.rb-search-cats a {
  display: block;
  color: var(--rb-ink);
  text-decoration: none;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-search-cats a:hover {
  color: var(--rb-teal-deep);
}

.rb-search-help__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rb-search-help__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rb-ink);
  border-radius: 6px;
  color: var(--rb-ink);
  text-decoration: none;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  background: transparent;
}

.rb-search-help__links a:hover {
  border-color: var(--rb-teal);
  color: var(--rb-teal-deep);
}

.rb-search-panel__main {
  box-sizing: border-box;
  min-width: 0;
  padding: 1rem 1.15rem 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.rb-search-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.rb-search-panel__head h3 {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rb-ink);
}

.rb-search-panel__head .rb-text-link {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rb-teal);
  text-decoration: none;
  white-space: nowrap;
}

.rb-search-panel__head .rb-text-link:hover {
  color: var(--rb-teal-deep);
}

.rb-search-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem 0.5rem;
}

.rb-search-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rb-search-card:hover,
.rb-search-card:focus-visible {
  border-color: var(--rb-teal);
  background: #f7fcfd;
  outline: none;
}

.rb-search-card__media {
  display: block;
  aspect-ratio: 1;
  background: var(--rb-paper);
  border-radius: 6px;
  overflow: hidden;
}

.rb-search-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
}

.rb-search-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--rb-ink);
}

.rb-search-card__price {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--rb-ink);
}

.rb-search-empty {
  margin: 1.5rem 0 0;
  color: var(--rb-muted);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.92rem;
}

html.rb-search-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .rb-search-panel {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-height: min(70vh, 520px);
  }

  .rb-search-panel__inner {
    grid-template-columns: 1fr;
    max-height: min(70vh, 520px);
    overflow: auto;
  }

  .rb-search-panel__side {
    width: auto;
    min-width: 0;
    max-width: none;
    border-right: 0;
    border-bottom: 1px solid var(--rb-line);
    padding-bottom: 0.75rem;
  }

  .rb-search-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rb-search-help {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .rb-search-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rb-search-panel__inner {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .rb-search-panel__side {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }
}
