/* -- Level 4: hidden by default, no bullets, aligned under level 3 -- */
.mega-menu--level4 {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-menu--level4 li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-menu--level4 a {
  font-size: 1.04em;
  color: var(--bp-soft);
  padding: 2.5px 0;
  display: block;
  background: none;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.mega-menu--level4 a:hover {
  color: var(--bp-accent);
  background: var(--bp-light);
}

/* -- Highlight for search result matches -- */
.mega-search-highlight {
  background: var(--bp-highlight);
  color: var(--bp-accent);
  border-radius: 2px;
  padding: 0 1px;
  font-weight: bold;
}

/* -- Wrapper for entire mega menu -- */
.mega-menu-wrapper {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  position: relative;
  border-bottom: 0px solid var(--bp-border);
}

/* -- Main menu row -- */
.mega-menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* === Parent categories: tabs in menu bar === */
.mega-menu--parent {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  position: static;
}
.mega-menu--parent > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 56px;
  width: 100%;
  color: var(--bp-dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px 4px 0 0;
  background: none;
  transition: background 0.15s, color 0.15s;
  word-break: break-word;
  line-height: 1.2;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow: hidden;
}
.mega-menu--parent > a:hover,
.mega-menu--parent.active > a {
  background: var(--bp-bg);
  color: var(--bp-accent);
}

/* === Dropdown for subcategories === */
.mega-menu--drop {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1240px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(60,70,90,0.06);
  padding: 24px 32px;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--bp-border);
  z-index: 500;
  overflow-x: visible;
  max-height: 80vh;
  text-align: center;
}
.mega-menu--parent:hover > .mega-menu--drop,
.mega-menu--parent:focus-within > .mega-menu--drop {
  display: block;
}

/* === Menu columns layout (for categories in grid) === */
.mega-menu--columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 0;
  list-style: none;
  margin: 0 auto;
  padding: 12px 0;
  justify-content: center;
}
.mega-menu--column {
  width: 20%;
  margin-bottom: 12px;
  box-sizing: border-box;
  text-align: center;
}

/* === Direct (level 2) category links === */
.mega-menu--column a {
  font-weight: 600;
  font-size: 1.15em;
  color: var(--bp-dark);
  padding: 5px 0;
  display: block;
  text-decoration: none;
  border-radius: 3px;
  background: none;
  transition: background 0.15s, color 0.15s;
}
.mega-menu--column a:hover {
  background: var(--bp-light);
  color: var(--bp-accent);
}

/* === Level 3 subcategories === */
.mega-menu--level3 {
  list-style: none;
  margin: 2px 0 0 0;
  padding: 0;
}
.mega-menu--level3 li a {
  font-weight: normal;
  font-size: 1.08em;
  color: var(--bp-soft);
  padding: 4px 0;
  text-decoration: none;
  border-radius: 2px;
  background: none;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.mega-menu--level3 li a:hover {
  color: var(--bp-accent);
  background: var(--bp-light);
}

/* === Brands/Column special layout === */
.mega-menu--brandscol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  padding: 0;
  margin: 0;
  max-height: 55vh;
  overflow-y: auto;
}
.mega-menu--brandscol .mega-menu--column {
  width: 20%;
  min-width: 140px;
  box-sizing: border-box;
  margin-bottom: 6px;
  display: block;
  white-space: normal;
  text-align: left;
  flex: none;
}
.godkendt {
  color: var(--bp-accent) !important;
  font-weight: 700;
  position: relative;
  padding-right: 1.4em;
}
.godkendt::after {
  color: var(--bp-accent);
  font-size: 0.99em;
  margin-left: 0.4em;
  vertical-align: middle;
  position: absolute;
  right: 0.3em;
  top: 50%;
  transform: translateY(-50%);
}

/* ================================================================= */
/* === END: DESKTOP MEGA MENU STYLES =============================== */
/* ================================================================= */

/* ================================================================= */
/* === START: MOBILE BOTTOM NAV + DRAWER STYLES ==================== */
/* ================================================================= */

/* --- Reset Box Model --------------------------------------------- */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* --- Bottom Navigation Tab Bar ----------------------------------- */
.mobile-bottom-nav {
  display: none;
}

/* --- Drawer Overlay ---------------------------------------------- */
.mobile-drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* --- Category Drawer (Bottom Sheet) ------------------------------ */
.mobile-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 85vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  z-index: 1002;
  box-shadow: 0 -4px 24px rgba(60,70,90,0.12);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1), visibility 0.35s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-drawer-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--bp-border);
  margin: 10px auto 0;
  flex-shrink: 0;
  cursor: grab;
  touch-action: none;
  padding: 8px 0;
  background-clip: content-box;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--bp-light);
  flex-shrink: 0;
}

.mobile-drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bp-dark);
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--bp-soft);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.mobile-drawer-close:focus-visible {
  outline: 2px solid var(--bp-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 80px;
  -webkit-overflow-scrolling: touch;
}

/* --- Drawer Category List ---------------------------------------- */
.mobile-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-category-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  border-bottom: 1px solid var(--bp-light);
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bp-dark);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.drawer-category-btn:hover,
.drawer-category-btn:focus {
  background: var(--bp-light);
}
.drawer-category-btn[aria-expanded="true"] {
  color: var(--bp-accent);
  background: var(--bp-bg);
}

.drawer-chevron {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  color: var(--bp-soft);
}
.drawer-category-btn[aria-expanded="true"] .drawer-chevron {
  transform: rotate(180deg);
  color: var(--bp-accent);
}

.drawer-category-link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bp-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--bp-light);
  transition: background 0.15s, color 0.15s;
}
.drawer-category-link:hover {
  background: var(--bp-light);
  color: var(--bp-accent);
}

/* --- Subcategory List -------------------------------------------- */
.drawer-subcategory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bp-bg);
}
.drawer-subcategory-list[hidden] {
  display: none;
}

.drawer-subcategory-list li a {
  display: block;
  padding: 12px 16px;
  font-size: 1.02rem;
  color: var(--bp-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--bp-light);
  transition: background 0.15s, color 0.15s;
}
.drawer-subcategory-list li a:hover {
  background: var(--bp-light);
  color: var(--bp-accent);
}

/* --- Responsive: Mobile ≤1024px ---------------------------------- */
@media (max-width: 1024px) {
  .mega-menu-wrapper {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #fff;
    border-top: 1px solid var(--bp-border);
    box-shadow: 0 -2px 10px rgba(60,70,90,0.08);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  body {
    padding-bottom: 72px;
  }

  body.drawer-open {
    overflow: hidden;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    color: var(--bp-soft);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    gap: 2px;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item i {
    font-size: 1.5rem;
  }

  .bottom-nav-item:hover,
  .bottom-nav-item:focus,
  .bottom-nav-item.active {
    color: var(--bp-accent);
  }

  .bottom-nav-item span {
    font-size: 0.75rem;
    letter-spacing: 0.01em;
  }
}

/* --- Responsive: Desktop ≥1025px --------------------------------- */
@media (min-width: 1025px) {
  .mega-menu-wrapper {
    display: block !important;
  }
  .mobile-bottom-nav,
  .mobile-drawer,
  .mobile-drawer-overlay {
    display: none !important;
  }
}

/* Adds 'air' (vertical space) below the logo before the menu/search */
.logo.w-logo {
  margin-bottom: 1.8em;
}

@media (max-width: 700px) {
  .logo.w-logo {
    margin-bottom: 1.2em;
  }
}

/* --- Clerk Slider/Nav: keep arrows below mobile bottom nav ------- */
@media (max-width: 1024px) {
  .clerk-slider-nav.clerk-slider-nav-prev,
  .clerk-slider-nav.clerk-slider-nav-next {
    z-index: 1 !important;
  }

  /* Push TAKU launcher widget below the fixed bottom nav */
  #taku-launcher {
    z-index: 999 !important;
  }
}

/* ================================================================= */
/* === END: MOBILE BOTTOM NAV + DRAWER STYLES ====================== */
/* ================================================================= */

.m-product-information .m-product-stock .panel-body {
    color: inherit !important;
}