/* ==============================================
   bmegamenu — La Cucina / Barik Trade theme
   Author: Bariklabs.com
   Link: https://bariklabs.com

   Full reskin of bmegamenu_tools.css using the
   La Cucina design tokens (maroon accent, 6px/4px
   radius, system-ui, editorial dark footer family).
   Same selectors as the original module CSS, so no
   template/markup changes are required — load this
   file instead of (or after, fully overriding)
   bmegamenu_tools.css.

   Consolidated: the original file declared several
   selectors twice with conflicting values (legacy
   "demo" theme + a later "patch" section). This
   file keeps one definitive rule per selector.
   ============================================== */

/* --- Tokens (mirror header.css / category.css / footer.css :root) --- */
.bt-nav-main,
.bt-header {
  --bg-section:     #ffffff;
  --radius-lg:       6px;
  --radius-sm:        4px;
  --shadow-soft:     0 14px 36px rgba(0, 0, 0, 0.09);
  --accent:          #8b1a1a;
  --accent-soft:     #a82020;
  --accent-dim:      rgba(139, 26, 26, 0.08);
  --green:           #2e7d4f;
  --text:            #111111;
  --text-muted:      #777777;
  --border:          #e5e5e5;
  --font:            system-ui, -apple-system, 'Segoe UI', sans-serif;
  --transition:      all 0.15s ease;
}

/* ==============================================
   HEADER SHELL (.bt-header / .bt-logo / .bt-icon-btn)
   Included for completeness if this module's own
   header wrapper is used anywhere; La Cucina's own
   header.twig does not render these.
   ============================================== */

.bt-nav-close {
    width: 30px;
    height: 30px;
    border-radius: var(--bcart-radius);
    border: 1px solid var(--bcart-border);
    background: none;
    color: var(--bcart-text-muted);
    display: flex;
    align-items: center;
    justify-content: center

    cursor: pointer;
    transition: var(--bcart-transition);
    padding: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
}


.bt-nav-close svg {
    width: 14px;
    height: 14px;
    display: block;
    margin: 0 auto;
}


.bt-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  font-family: var(--font);
}

.bt-header-inner {
  max-width: var(--container, 1270px);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
}

.bt-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 0;
  text-decoration: none;
}

.bt-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  background: var(--accent);
  color: #ffffff;
}

.bt-logo-text {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--text);
}

.bt-logo-text span {
  color: var(--accent);
}

.bt-header-spacer {
  flex: 1;
}

.bt-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bt-icon-btn {
  border: none;
  background: transparent;
  padding: 7px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.bt-icon-btn:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.bt-icon-btn svg {
  width: 20px;
  height: 20px;
}

.bt-badge {
  position: relative;
}

.bt-badge-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ffffff;
}

/* ==============================================
   HAMBURGER TOGGLE
   ============================================== */
.bt-nav-toggle {
  border: none;
  background: transparent;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.bt-nav-toggle:hover {
  background: var(--accent-dim);
}

.bt-nav-toggle-box {
  width: 22px;
  height: 16px;
  position: relative;
}

.bt-nav-toggle-line {
  position: absolute;
  height: 2px;
  width: 100%;
  left: 0;
  border-radius: 999px;
  background: var(--text);
  transition: var(--transition);
}

.bt-nav-toggle-line:nth-child(1) {
  top: 0;
}

.bt-nav-toggle-line:nth-child(2) {
  top: 7px;
}

.bt-nav-toggle-line:nth-child(3) {
  bottom: 0;
}

.bt-nav-toggle[aria-expanded="true"] .bt-nav-toggle-line:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.bt-nav-toggle[aria-expanded="true"] .bt-nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.bt-nav-toggle[aria-expanded="true"] .bt-nav-toggle-line:nth-child(3) {
  bottom: 7px;
  transform: rotate(-45deg);
}

/* ==============================================
   MAIN NAV — list / links
   ============================================== */
.bt-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
}

.bt-nav-item {
  position: relative;
}

/* Separator between main nav items (skips around the highlighted pill) */
.bt-nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: var(--border);
}

.bt-nav-item:has(.bt-nav-link--primary)::after,
.bt-nav-item:has(+ .bt-nav-item .bt-nav-link--primary)::after {
  display: none;
}

.bt-nav-link {
  position: relative;
  border: none;
  background: transparent;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}

.bt-nav-link:hover,
.bt-nav-link:focus {
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}

/* Highlighted nav item (e.g. Specials/Aanbiedingen) */
.bt-nav-link--primary {
/*  height: auto;*/
    padding: 9px 16px;
    color: var(--accent) !important;
    border: 1px solid transparent;
    font-weight: 600;
    background: var(--accent-dim);
}

.bt-nav-link--primary:hover {
  color: #ffffff !important;
  background: var(--accent);
}

.bt-nav-caret {
  border: 5px solid transparent;
  border-top-color: currentColor;
  margin-top: 3px;
  opacity: 0.6;
}

.bt-nav-label-hot {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==============================================
   MEGA PANEL — shell, anchoring, hover
   ============================================== */
.bt-mega {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
  z-index: 950;
  text-align: left;
}

/* Fullwidth panel variant — only applies when the module explicitly
   marks a panel as fullwidth via .bt-mega-panel-inner. Anchored with
   position:absolute (not fixed) so top:100% resolves correctly against
   the trigger item, regardless of where/how the module is set up. */
.bt-mega:has(.bt-mega-panel-inner) {
    border-radius: 0 0;
    inset: 0;
    pointer-events: none;
    inset-inline: 0;
    margin-inline: auto;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: max-content !important;
    max-width: calc(100vw - 32px) !important;
    margin-top: 1px !important;
    transform: none !important;
    z-index: 950 !important;
}

.bt-nav-item.bt-has-items:hover > .bt-mega,
.bt-nav-item.bt-has-mega:hover > .bt-mega,
.bt-nav-item.bt-has-mega:focus-within > .bt-mega,
.bt-nav-item.bt-has-mega.is-open > .bt-mega,
.bt-nav-item.bt-has-items.is-open > .bt-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.bt-mega:has(.bt-mega-panel-inner).is-open,
.bt-nav-item.is-open > .bt-mega:has(.bt-mega-panel-inner) {
  transform: translateX(-50%) translateY(0);
}

.bt-has-mega .bt-mega .bt-mega-panel {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 0;
}

.bt-mega-inner {
  display: grid;
  grid-template-columns: auto;
  gap: 12px 48px;
  padding: 0;
}

.bt-mega-panel-inner {
  display: grid;
  max-width: 100%;
  gap: 24px;
  padding: 36px;
}

/* 1–7 column responsive grid (fullwidth panel mode) */
.bt-mega-panel-inner[data-cols="1"] { grid-template-columns: 1fr; }
.bt-mega-panel-inner[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.bt-mega-panel-inner[data-cols="3"] { grid-template-columns: 2fr 2fr 2.4fr; }
.bt-mega-panel-inner[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.bt-mega-panel-inner[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }
.bt-mega-panel-inner[data-cols="6"] { grid-template-columns: repeat(6, 1fr); }
.bt-mega-panel-inner[data-cols="7"] { grid-template-columns: repeat(7, 1fr); }

.bt-mega-col {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==============================================
   COLUMN TITLES / INTRO
   ============================================== */
.bt-mega-col-heading,
.bt-mega-col-title {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bt-mega-col-title:not(:first-child) {
  margin-top: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.bt-mega-intro {
  padding-right: 8px;
  border-right: 1px solid var(--border);
}

.bt-mega-intro-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.bt-mega-intro-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
}

.bt-mega-intro-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.bt-mega-intro-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.bt-pill {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: #fafafa;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.bt-pill:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.bt-mega-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.bt-mega-cta-link svg {
  width: 14px;
  height: 14px;
}

/* ==============================================
   LINK LISTS
   ============================================== */
.bt-mega-links {
  font-size: 13.5px;
}

.bt-mega-links ul,
.bt-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bt-mega-links li + li,
.bt-mega-list li + li {
  margin-top: 2px;
}

.bt-mega-links a,
.bt-mega-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 300;
  font-size: 13.5px;
  transition: var(--transition);
}

.bt-mega-links a span {
  flex: 1;
  font-size: inherit;
}

.bt-mega-links a:hover,
.bt-mega-list a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.bt-mega-links-badge,
.bt-mega-badge-chip {
  margin-left: auto;
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.bt-mega-links a:hover .bt-mega-links-badge,
.bt-mega-list a:hover .bt-mega-badge-chip {
  border-color: var(--accent);
  color: var(--accent);
}

/* Icon thumbnail used inside link rows */
.bt-mega-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #f5f5f5;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  object-fit: contain;
  transition: var(--transition);
}

.bt-mega-list a:hover .bt-mega-icon,
.bt-mega-links a:hover .bt-mega-icon {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ==============================================
   HIGHLIGHT CARD (intro column callout)
   ============================================== */
.bt-mega-highlight {
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bt-mega-highlight-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.bt-mega-highlight-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.bt-mega-highlight-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bt-mega-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}

.bt-mega-highlight-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

header .bt-btn {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  background: var(--accent);
  color: #ffffff;
}

header .bt-btn:hover {
  background: var(--accent-soft);
}

header .bt-btn--ghost {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

header .bt-btn--ghost:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ==============================================
   MEDIA COLUMN — promo banner + featured product
   ============================================== */
.bt-mega-col-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bt-mega-banner {
  position: relative;
  display: block;
  min-height: 168px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  border: 0;
  isolation: isolate;
}

.bt-mega-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 260ms ease;
}

.bt-mega-banner:hover img {
  transform: scale(1.08);
}

.bt-mega-banner-overlay {
  position: relative;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  padding: 18px;
  background: linear-gradient(0deg, rgba(17, 17, 17, 0.82) 0%, rgba(17, 17, 17, 0.1) 75%);
  color: #ffffff;
}

.bt-mega-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bt-mega-banner-overlay h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.bt-mega-banner-overlay p {
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 230px;
  opacity: 0.85;
}

.bt-mega-cta {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 2px;
  text-decoration: none;
}

.bt-mega-banner:hover .bt-mega-cta {
  text-decoration: underline;
}

/* Featured product card */
.bt-mega-product {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--bg-section);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
}

.bt-mega-product:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.bt-mega-product-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: #f5f5f5;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.bt-mega-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.bt-mega-product-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 1;
}

.bt-mega-product-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
}

.bt-mega-product-name:hover {
  color: var(--accent);
  text-decoration: underline;
}

.bt-mega-product-price {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.bt-mega-price-current {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.bt-mega-price-old {
  font-size: 11px;
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Editor-only helper classes — keep behavior, no visual weight added */
.bt-preview-edit {
  display: none !important;
}

.bt-preview-item {
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
}

/* ==============================================
   FLYOUT (nested submenu, e.g. "Shop All")
   ============================================== */
.bt-flyout-item {
    position: relative;
    padding: 0 10px;
    min-width: 200px;
}

.bt-flyout-caret {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.6;
}

.bt-flyout-menu {
  position: absolute;
  left: 100%;
  top: 0;
  transform: translateX(10px);
  min-width: 240px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 951;
}

.bt-flyout-item:hover > .bt-flyout-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.bt-flyout-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bt-flyout-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.3;
  text-decoration: none;
  transition: var(--transition);
}

.bt-flyout-menu li a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.bt-flyout-menu .bt-mega-links-badge {
  background: var(--accent);
  color: #fff;
  border: 0;
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 10px;
  white-space: nowrap;
}

/* ==============================================
   MOBILE NAV DRAWER + BACKDROP
   ============================================== */
.bt-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bt-nav-backdrop.show,
.bt-nav-backdrop.is-active {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.bt-nav-mobile-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.bt-nav-mobile-search {
  margin-bottom: 10px;
}

.bt-nav-mobile-search-input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}

.bt-nav-mobile-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.bt-nav-mobile-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 10px;
}

.bt-nav-mobile-quick a {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: #fafafa;
  text-decoration: none;
}

/* ==============================================
   DESKTOP BEHAVIOR (≥992px)
   ============================================== */
@media (min-width: 992px) {
  .bt-nav-main {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .bt-nav-main-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
  }

  .bt-nav-main-mobile-top {
    display: none;
  }

  .bt-nav-toggle {
    display: none;
  }

  .bt-nav-backdrop {
    display: none;
  }

  .bt-header-actions {
    margin-left: auto;
  }

  .bt-nav-list {
    justify-content: flex-start;
  }
}

/* ==============================================
   MOBILE / TABLET (≤991px)
   ============================================== */
@media (max-width: 991px) {
  .bt-header-inner {
    padding: 0 14px;
  }

  .bt-header-spacer {
    display: none;
  }

  .bt-nav-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    background: var(--bg-section);
    z-index: 9999;
    overflow-y: auto;
    padding: 22px 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .bt-nav-main.bt-nav-open {
    transform: translateX(0);
  }

  .bt-nav-main-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 16px 16px;
    overflow-y: auto;
    height: 100%;
  }

  .bt-nav-main-mobile-top {
    padding: 10px 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .bt-nav-list {
    flex-direction: column;
    align-items: stretch;
    margin-top: 12px;
  }

  .bt-nav-item {
    border-bottom: 1px solid var(--border);
  }

  .bt-nav-item::after {
    display: none;
  }

  .bt-nav-link {
    width: 100%;
    height: auto;
    justify-content: space-between;
    padding: 11px 6px;
    border-radius: var(--radius-sm);
  }

  .bt-nav-link--primary {
    justify-content: center;
    margin-top: 12px;
  }

  .bt-nav-label-hot {
    margin-left: auto;
  }

  .bt-nav-item.bt-has-mega .bt-nav-caret {
    margin-left: auto;
  }

  .bt-mega-inner,
  .bt-mega-panel-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px 4px 18px;
  }

  .bt-mega-panel-inner[data-cols] {
    grid-template-columns: 1fr;
    width: calc(100% - 10px);
  }

  .bt-mega-col-title:not(:first-child) {
    margin-top: 4px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .bt-mega-intro {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 4px;
  }

  .bt-mega-highlight {
    margin-top: 4px;
  }

  .bt-has-mega .bt-mega .bt-mega-panel {
    background: none;
    border-radius: 0;
    padding: 0;
  }

  /* Mega panel collapses to an inline accordion under the link */
  .bt-mega,
  .bt-mega:has(.bt-mega-panel-inner) {
    position: static;
    width: 100%;
    max-width: none;
    transform: none;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    height: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }

  .bt-nav-item.is-open > .bt-mega,
  .bt-nav-item.bt-has-items.is-open > .bt-mega,
  .bt-nav-item.bt-has-mega.is-open > .bt-mega {
    height: auto;
    max-height: 2000px;
    padding: 12px 16px 16px;
  }

  .bt-nav-item.is-open > .bt-nav-link {
    color: var(--accent);
  }

  .bt-nav-item.is-open .bt-nav-caret {
    transform: rotate(180deg);
  }

  .bt-nav-toggle {
    display: flex;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
}


@media (max-width: 767px) {
  .bt-nav-close {
    opacity: 1;
  }
}
