/* =========================================================================
   BRITTLE MEGA MENU

   Same ONE TYPE SCALE as the cart / checkout pages (nothing here uses any other size):
     heading 18px/600 · item name 15px/600 · body 14px · small 13px · label & buttons 12px/600
   Colours: the values below are the Brittle defaults. They can be changed in
   WooCommerce → Brittle Mega Menu → Colours, which prints new values after this file.
   Radii: 12-14px small, 16-20px cards, 24px panel, 999px pills.
   ========================================================================= */

:root {
  /* header bar (sits on YOUR header background) */
  --bcm-bar-text: #3B203D;        /* top menu items, arrows, phone menu icon */
  --bcm-yellow-tint: #FBEAC0;     /* pill behind a top item on hover / open, letter tiles */
  --bcm-highlight-text: #3B203D;  /* text on that pill and on letter tiles */

  /* panel + phone drawer */
  --bcm-paper: #FFFDF9;           /* panel and drawer background */
  --bcm-text: #3B203D;            /* text inside the panel and drawer */
  --bcm-text-rgb: 59, 32, 61;     /* same as --bcm-text, for see-through lines */
  --bcm-muted: #756B73;
  --bcm-cream: #F7F2E8;
  --bcm-coral-tint: #FBEAE6;

  /* buttons + accents */
  --bcm-plum: #3B203D;            /* button colour */
  --bcm-btn-text: #ffffff;
  --bcm-coral: #E99A8A;
  --bcm-btn-hover-text: #3B203D;

  /* shadows and dark backdrops: the darkest of the colours above, worked out by the plugin */
  --bcm-shadow-rgb: 59, 32, 61;
  --bcm-plum-rgb: 59, 32, 61;

  --bcm-yellow: #F4C95D;
  --bcm-line: rgba(var(--bcm-text-rgb), 0.12);
  --bcm-font: "Outfit", sans-serif;

  --bcm-fs-heading: 18px;
  --bcm-fs-item: 15px;
  --bcm-fs-body: 14px;
  --bcm-fs-small: 13px;
  --bcm-fs-label: 12px;
}

.bcm,
.bcm-layer,
.bcm-drawer {
  font-family: var(--bcm-font);
  color: var(--bcm-text);
}

.bcm *,
.bcm-layer *,
.bcm-drawer * {
  box-sizing: border-box;
}

.bcm-sr {
  font-size: var(--bcm-fs-label);
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bcm a:focus-visible,
.bcm button:focus-visible,
.bcm-layer a:focus-visible,
.bcm-layer button:focus-visible,
.bcm-drawer a:focus-visible,
.bcm-drawer button:focus-visible {
  outline: 2px solid var(--bcm-coral);
  outline-offset: 2px;
}


/* =========================================================================
   1. THE BAR (desktop)
   ========================================================================= */

.bcm-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bcm-item {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.bcm-item:hover,
.bcm-item.is-open {
  background: var(--bcm-yellow-tint);
}

.bcm-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--bcm-bar-text);
  font-size: var(--bcm-fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.bcm-item--panel .bcm-link {
  padding-right: 4px;
}

.bcm-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 36px;
  margin: 0 4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bcm-bar-text);
  cursor: pointer;
}

.bcm-chev {
  transition: transform 0.2s ease;
}

.bcm-item.is-open .bcm-chev,
.bcm-m-caret[aria-expanded="true"] .bcm-chev {
  transform: rotate(180deg);
}


/* =========================================================================
   2. THE PANELS (desktop) — a full-width sheet under the header
   ========================================================================= */

.bcm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99970;
  background: rgba(var(--bcm-shadow-rgb), 0.18);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.bcm-backdrop.is-open {
  opacity: 1;
}

.bcm-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99980;
  pointer-events: none;
}

.bcm-panel {
  pointer-events: auto;
  background: var(--bcm-paper);
  border-top: 1px solid var(--bcm-line);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 30px 50px -20px rgba(var(--bcm-shadow-rgb), 0.22);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  /* on a short screen the panel scrolls inside itself instead of running off the bottom */
  max-height: calc(100vh - var(--bcm-top, 72px) - 12px);
  max-height: calc(100dvh - var(--bcm-top, 72px) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bcm-panel[hidden] {
  display: none;
}

.bcm-panel.is-open {
  opacity: 1;
  transform: none;
}

.bcm-panel__inner {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 32px;
}

.bcm-col {
  min-width: 0;
}

.bcm-col--tiles { flex: 2 1 0; }
.bcm-col--list  { flex: 1 1 0; }
.bcm-col--side  { flex: 1.5 1 0; }

.bcm-col__title {
  margin: 0 0 14px;
  color: var(--bcm-muted);
  font-size: var(--bcm-fs-label);
  font-weight: 600;
  line-height: 1.3;
}

/* sub-category tiles */
.bcm-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bcm-tiles li {
  margin: 0;
}

.bcm-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  color: var(--bcm-text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.bcm-tile:hover {
  background: var(--bcm-cream);
}

.bcm-tile__img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bcm-cream);
  object-fit: cover;
}

.bcm-tile__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bcm-yellow-tint);
  color: var(--bcm-highlight-text);
  font-size: var(--bcm-fs-heading);
  font-weight: 600;
}

.bcm-tile__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bcm-tile__name {
  font-size: var(--bcm-fs-item);
  font-weight: 600;
  line-height: 1.3;
}

.bcm-tile__count {
  margin-top: 2px;
  color: var(--bcm-muted);
  font-size: var(--bcm-fs-small);
}

.bcm-viewall {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
  color: var(--bcm-text);
  font-size: var(--bcm-fs-label);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bcm-viewall:hover {
  color: var(--bcm-coral);
}

/* "Shop by Occasion" and similar lists */
.bcm-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bcm-list li {
  margin: 0;
}

.bcm-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -10px;
  padding: 7px 10px;
  border-radius: 12px;
  color: var(--bcm-text);
  font-size: var(--bcm-fs-body);
  text-decoration: none;
  transition: background 0.2s ease;
}

.bcm-list a:hover {
  background: var(--bcm-cream);
}

.bcm-list__count {
  color: var(--bcm-muted);
  font-size: var(--bcm-fs-small);
}

/* popular products */
.bcm-prods {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.bcm-prods li {
  margin: 0;
}

.bcm-prod {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  color: var(--bcm-text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.bcm-prod:hover {
  background: var(--bcm-cream);
}

.bcm-prod__img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bcm-cream);
  object-fit: cover;
}

.bcm-prod__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bcm-prod__name {
  font-size: var(--bcm-fs-item);
  font-weight: 600;
  line-height: 1.3;
}

.bcm-prod__price {
  margin-top: 2px;
  color: var(--bcm-muted);
  font-size: var(--bcm-fs-body);
}

.bcm-prod__price del {
  opacity: 0.7;
}

.bcm-prod__price ins {
  background: transparent;
  text-decoration: none;
}

/* the Mallow card */
.bcm-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--bcm-coral-tint);
}

.bcm-promo__img {
  flex: none;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.bcm-promo__body {
  min-width: 0;
}

.bcm-promo__title {
  margin: 0;
  font-size: var(--bcm-fs-item);
  font-weight: 600;
  line-height: 1.3;
}

.bcm-promo__text {
  margin: 3px 0 10px;
  color: var(--bcm-muted);
  font-size: var(--bcm-fs-body);
  line-height: 1.45;
}

.bcm-promo__title:last-child {
  margin-bottom: 10px;
}

.bcm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--bcm-plum);
  border-radius: 999px;
  background: var(--bcm-plum);
  color: var(--bcm-btn-text);
  white-space: nowrap;
  font-size: var(--bcm-fs-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* coral on hover with PLUM text: white on coral is too faint to read */
.bcm-btn:hover {
  background: var(--bcm-coral);
  border-color: var(--bcm-coral);
  color: var(--bcm-btn-hover-text);
}


/* =========================================================================
   3. THE PHONE DRAWER
   ========================================================================= */

.bcm-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bcm-bar-text);
  cursor: pointer;
}

.bcm-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999994; /* above the floating Filters button */
  background: rgba(var(--bcm-shadow-rgb), 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.bcm-drawer-backdrop.is-open {
  opacity: 1;
}

/* the drawer: header on top, the list scrolls, Account + Cart stay at the bottom */
.bcm-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 999995; /* above the floating Filters button */
  display: flex;
  flex-direction: column;
  width: min(90vw, 400px);
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bcm-paper);
  box-shadow: 24px 0 48px -16px rgba(var(--bcm-shadow-rgb), 0.35);
  transform: translateX(-102%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.bcm-drawer[hidden],
.bcm-drawer-backdrop[hidden] {
  display: none;
}

.bcm-drawer.is-open {
  transform: none;
}

html.bcm-lock {
  overflow: hidden;
}

/* ---- head: Mallow says hello ---- */

.bcm-drawer__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 14px 14px 16px;
  background: var(--bcm-coral-tint);
}

.bcm-drawer__face {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bcm-paper);
}

.bcm-drawer__mallow {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.bcm-drawer__hello {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bcm-drawer__title {
  font-size: var(--bcm-fs-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bcm-text);
}

.bcm-drawer__sub {
  font-size: var(--bcm-fs-small);
  line-height: 1.3;
  color: var(--bcm-muted);
}

.bcm-drawer__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bcm-paper);
  color: var(--bcm-text);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bcm-drawer__close:active {
  transform: scale(0.92);
}

.bcm-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 20px;
}

/* ---- search ---- */

.bcm-m-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 18px;
}

.bcm-m-search svg {
  position: absolute;
  left: 16px;
  color: var(--bcm-muted);
  pointer-events: none;
}

.bcm-drawer .bcm-m-search input[type="search"] {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px 0 44px;
  border: 1px solid var(--bcm-line);
  border-radius: 999px;
  background: var(--bcm-cream);
  box-shadow: none;
  color: var(--bcm-text);
  font-family: var(--bcm-font);
  font-size: 16px; /* 16px stops phones zooming in when the box is tapped */
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bcm-drawer .bcm-m-search input[type="search"]::placeholder {
  color: var(--bcm-muted);
  opacity: 1;
}

.bcm-drawer .bcm-m-search input[type="search"]:focus {
  border-color: var(--bcm-coral);
  background: var(--bcm-paper);
}

.bcm-m-heading {
  margin: 0 4px 8px;
  color: var(--bcm-muted);
  font-size: var(--bcm-fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- category rows ---- */

.bcm-m-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bcm-m-item {
  margin: 0;
  border-radius: 18px;
  transition: background 0.25s ease;
}

.bcm-m-item.is-open {
  background: var(--bcm-cream);
}

/* rows slide in one after another when the drawer opens */
.bcm-drawer.is-open .bcm-m-item {
  animation: bcm-row-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.08s + var(--bcm-i, 0) * 0.05s);
}

@keyframes bcm-row-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}

.bcm-m-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 8px;
}

.bcm-m-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  color: var(--bcm-text);
  text-decoration: none;
}

/* the round picture in front of each row */
.bcm-m-pic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bcm-cream);
}

.bcm-m-item.is-open .bcm-m-pic:not(.is-letter):not(.is-icon) {
  background: var(--bcm-paper);
}

.bcm-m-pic.is-letter,
.bcm-m-pic.is-icon {
  background: var(--bcm-yellow-tint);
  color: var(--bcm-highlight-text);
  font-size: var(--bcm-fs-heading);
  font-weight: 600;
}

.bcm-m-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--bcm-fs-item);
  font-weight: 600;
  line-height: 1.25;
}

.bcm-m-meta {
  color: var(--bcm-muted);
  font-size: var(--bcm-fs-label);
  font-weight: 500;
}

.bcm-m-caret,
.bcm-m-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bcm-text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.bcm-m-go {
  color: var(--bcm-muted);
  cursor: default;
}

.bcm-m-item.is-open .bcm-m-caret {
  background: var(--bcm-paper);
}

.bcm-m-caret .bcm-chev {
  transition: transform 0.28s ease;
}

/* ---- the open section: slides open smoothly ---- */

.bcm-m-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.bcm-m-panel.is-open {
  grid-template-rows: 1fr;
}

.bcm-m-panel[hidden] {
  display: none;
}

.bcm-m-panel__inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 12px;
}

.bcm-m-panel.is-open .bcm-m-panel__inner {
  padding-bottom: 14px;
}

/* sub-categories: two-across picture tiles */
.bcm-m-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.bcm-m-tiles li {
  margin: 0;
}

.bcm-m-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 8px;
  border: 1px solid var(--bcm-line);
  border-radius: 14px;
  background: var(--bcm-paper);
  color: var(--bcm-text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.bcm-m-tile:active {
  transform: scale(0.98);
}

.bcm-m-tile:hover {
  border-color: var(--bcm-coral);
}

.bcm-m-tile__pic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bcm-cream);
}

.bcm-m-tile__pic.is-letter {
  background: var(--bcm-yellow-tint);
  color: var(--bcm-highlight-text);
  font-size: var(--bcm-fs-body);
  font-weight: 600;
}

.bcm-m-tile__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bcm-m-tile__name {
  font-size: var(--bcm-fs-small);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.bcm-m-tile__count {
  color: var(--bcm-muted);
  font-size: 11px;
}

/* "Shop by Occasion" chips */
.bcm-m-sub {
  margin: 16px 2px 8px;
  color: var(--bcm-muted);
  font-size: var(--bcm-fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bcm-m-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bcm-m-chips li {
  margin: 0;
}

.bcm-m-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--bcm-line);
  border-radius: 999px;
  background: var(--bcm-paper);
  color: var(--bcm-text);
  font-size: var(--bcm-fs-small);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.bcm-m-chips a:hover {
  border-color: var(--bcm-coral);
}

/* "View all …" */
.bcm-m-viewall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 16px 0 0;
  border-radius: 999px;
  background: var(--bcm-plum);
  color: var(--bcm-btn-text);
  font-size: var(--bcm-fs-body);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.bcm-m-viewall:hover {
  background: var(--bcm-coral);
  color: var(--bcm-btn-hover-text);
}

/* ---- foot: Account + Cart, always in reach ---- */

.bcm-m-foot {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--bcm-line);
  background: var(--bcm-paper);
}

.bcm-m-quick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--bcm-line);
  border-radius: 999px;
  background: var(--bcm-cream);
  color: var(--bcm-text);
  font-size: var(--bcm-fs-body);
  font-weight: 600;
  text-decoration: none;
}

.bcm-m-quick .bch-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bcm-coral);
  color: var(--bcm-btn-hover-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.bcm-m-quick .bch-count.is-empty {
  display: none;
}


/* =========================================================================
   4. SCREEN SIZES
   ========================================================================= */

/* =========================================================================
   SHOP ALL and ATTRIBUTE panels
   (they reuse the tiles, lists, "View all" link and colours above)
   ========================================================================= */

.bcm-col--cats,
.bcm-col--terms {
  flex: 3 1 0;
}

/* Shop All: one block per product category, as many across as fit */
.bcm-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px 28px;
}

.bcm-cat {
  min-width: 0;
}

.bcm-cat__head {
  margin: 0 -8px 4px;
}

.bcm-cat__list {
  margin: 0 0 0 2px;
}

.bcm-cat__more {
  display: inline-block;
  margin: 2px 0 0 2px;
  color: var(--bcm-muted);
  font-size: var(--bcm-fs-small);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bcm-cat__more:hover {
  color: var(--bcm-text);
}

/* an attribute panel: three options across */
.bcm-tiles--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* phone drawer: a category (or attribute) name used as a small heading */
.bcm-m-sub .bcm-m-sublink {
  color: var(--bcm-text);
  text-decoration: none;
}

.bcm-m-sub .bcm-m-sublink:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .bcm-panel__inner {
    flex-wrap: wrap;
    gap: 24px 28px;
  }

  .bcm-col--tiles,
  .bcm-col--cats,
  .bcm-col--terms {
    flex: 1 1 100%;
  }

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

  .bcm-col--list,
  .bcm-col--side {
    flex: 1 1 calc(33% - 28px);
  }
}

@media (max-width: 900px) {
  .bcm-bar {
    display: none;
  }

  .bcm-toggle {
    display: inline-flex;
  }

  .bcm-layer,
  .bcm-backdrop {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .bcm-drawer,
  .bcm-drawer-backdrop {
    display: none !important;
  }
}

/* =========================================================================
   5. KEEP THEME + ELEMENTOR STYLES OUT
   Elementor's global link colour (Site Settings → Typography → Links) and theme
   button styles use stronger selectors than the rules above. These win over them,
   so the menu always uses the colours from its own settings page.
   ========================================================================= */

/* top bar */
.bcm a.bcm-link,
.bcm a.bcm-link:visited,
.bcm a.bcm-link:hover,
.bcm a.bcm-link:focus {
  color: var(--bcm-bar-text) !important;
}

.bcm .bcm-item:hover > a.bcm-link,
.bcm .bcm-item.is-open > a.bcm-link,
.bcm .bcm-item:hover > button.bcm-caret,
.bcm .bcm-item.is-open > button.bcm-caret {
  color: var(--bcm-highlight-text) !important;
}

.bcm button.bcm-caret,
.bcm button.bcm-caret:hover,
.bcm button.bcm-caret:focus,
.bcm button.bcm-toggle,
.bcm button.bcm-toggle:hover,
.bcm button.bcm-toggle:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.bcm button.bcm-caret,
.bcm button.bcm-toggle,
.bcm button.bcm-toggle:hover,
.bcm button.bcm-toggle:focus {
  color: var(--bcm-bar-text) !important;
}

/* panel + drawer links */
.bcm-layer a,
.bcm-layer a:visited,
.bcm-layer a:hover,
.bcm-layer a:focus,
.bcm-drawer a,
.bcm-drawer a:visited,
.bcm-drawer a:hover,
.bcm-drawer a:focus {
  color: var(--bcm-text) !important;
}

.bcm-layer a.bcm-viewall:hover {
  color: var(--bcm-coral) !important;
}

.bcm-layer a.bcm-btn,
.bcm-layer a.bcm-btn:visited,
.bcm-layer a.bcm-btn:focus {
  color: var(--bcm-btn-text) !important;
}

.bcm-layer a.bcm-btn:hover {
  color: var(--bcm-btn-hover-text) !important;
}

/* pictures: Elementor sets images to "height: auto", which would stretch these */
.bcm-layer img.bcm-tile__img,
.bcm-layer img.bcm-prod__img {
  width: 56px !important;
  height: 56px !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.bcm-layer img.bcm-promo__img {
  width: 64px !important;
  height: 64px !important;
  max-width: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.bcm-drawer img.bcm-drawer__mallow {
  width: 44px !important;
  height: 44px !important;
  max-width: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.bcm-drawer img.bcm-m-pic-img,
.bcm-drawer img.bcm-m-tile__pic-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
}

.bcm-drawer a.bcm-m-viewall,
.bcm-drawer a.bcm-m-viewall:visited,
.bcm-drawer a.bcm-m-viewall:focus {
  color: var(--bcm-btn-text) !important;
}

.bcm-drawer a.bcm-m-viewall:hover {
  color: var(--bcm-btn-hover-text) !important;
}

.bcm-drawer a.bcm-m-quick .bch-count {
  color: var(--bcm-btn-hover-text) !important;
}

/* the search box: undo theme / Elementor field styles */
.bcm-drawer .bcm-m-search input[type="search"] {
  min-height: 0 !important;
  line-height: normal !important;
}

.bcm-drawer button.bcm-m-caret[aria-expanded="true"],
.bcm-drawer button.bcm-m-caret[aria-expanded="true"]:hover {
  background: var(--bcm-paper) !important;
}

/* drawer buttons */
.bcm-drawer button.bcm-m-caret,
.bcm-drawer button.bcm-m-caret:hover,
.bcm-drawer button.bcm-m-caret:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--bcm-text) !important;
}

.bcm-drawer button.bcm-drawer__close,
.bcm-drawer button.bcm-drawer__close:hover,
.bcm-drawer button.bcm-drawer__close:focus {
  background: var(--bcm-paper) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--bcm-text) !important;
}

@media (prefers-reduced-motion: reduce) {
  .bcm-panel,
  .bcm-backdrop,
  .bcm-drawer,
  .bcm-drawer-backdrop,
  .bcm-chev,
  .bcm-m-panel {
    transition: none;
  }

  .bcm-drawer.is-open .bcm-m-item {
    animation: none;
  }
}
