/* Marslia Chrome — Header & Footer redesign (dash.mrslia.com) */
:root {
  --ml-ink: #071a33;
  --ml-ink-2: #0b2a52;
  --ml-brand: #0f4c8a;
  --ml-brand-mid: #1769b8;
  --ml-accent: #2ec4ff;
  --ml-accent-soft: rgba(46, 196, 255, 0.16);
  --ml-sand: #f3f7fc;
  --ml-line: rgba(15, 76, 138, 0.12);
  --ml-text: #1c2b3a;
  --ml-muted: #5b6b7c;
  --ml-radius: 14px;
  --ml-shadow: 0 14px 40px rgba(7, 26, 51, 0.12);
  --ml-header-h: 88px;
}

/* ========== HEADER ========== */
.ml-chrome-header.tt-header:not(.tt-double-header) {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.ml-chrome-header.tt-header.affix {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
  padding: 0 !important;
}

.ml-topbar {
  background: linear-gradient(90deg, #061528 0%, #0b2f5c 55%, #0a3a6e 100%);
  color: #d7e7f8;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ml-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 6px 0;
}

.ml-topbar__meta,
.ml-topbar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.ml-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e8f2fc;
  text-decoration: none;
  transition: color .2s ease;
  white-space: nowrap;
}

.ml-topbar__item i {
  color: var(--ml-accent);
  font-size: 0.9rem;
}

.ml-topbar__item:hover {
  color: #fff;
  text-decoration: none;
}

.ml-topbar__item--muted {
  opacity: 0.85;
  cursor: default;
}

/* Main nav row: logo | menu | actions */
.ml-chrome-nav.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--ml-line);
  box-shadow: 0 8px 28px rgba(7, 26, 51, 0.06);
  padding: 0 !important;
  min-height: var(--ml-header-h);
  /* No backdrop-filter: it breaks position:fixed offcanvas inside the nav */
}

.ml-chrome-nav > .container {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--ml-header-h);
  padding-top: 12px;
  padding-bottom: 12px;
}

.ml-chrome-header.affix .ml-chrome-nav.navbar,
.ml-chrome-header.is-scrolled .ml-chrome-nav.navbar {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--ml-shadow);
}

/* Logo — square asset must stay compact */
.ml-chrome-header .navbar-brand {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 180px;
  margin: 0 !important;
  padding: 0 !important;
  text-align: start !important;
}

.ml-chrome-header .logo-img {
  display: block;
  height: 52px !important;
  width: auto !important;
  max-width: 168px !important;
  max-height: 52px !important;
  object-fit: contain;
  transition: transform .25s ease;
}

.ml-chrome-header .navbar-brand:hover .logo-img {
  transform: scale(1.03);
}

/* Primary menu */
.ml-chrome-header .main-navbar-wrapper.tt-main-header:not(.tt-toolbar-wrap) {
  flex: 1 1 auto;
  min-width: 0;
}

.ml-chrome-menu.navbar-nav {
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0 !important;
}

.ml-chrome-header .ml-chrome-menu > li > a {
  color: var(--ml-text) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.55rem 0.85rem !important;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}

.ml-chrome-header .ml-chrome-menu > li > a:hover,
.ml-chrome-header .ml-chrome-menu > li.show > a {
  background: var(--ml-accent-soft) !important;
  color: var(--ml-brand) !important;
}

.ml-chrome-header .dropdown-menu {
  border: 1px solid var(--ml-line);
  border-radius: 16px;
  box-shadow: var(--ml-shadow);
  padding: 0.55rem;
  margin-top: 0.55rem !important;
  overflow: hidden;
}

.ml-chrome-header .dropdown-menu .dropdown-item a,
.ml-chrome-header .dropdown-menu a.dropdown-item {
  border-radius: 10px;
  padding: 0.55rem 0.8rem !important;
  font-weight: 600;
}

.ml-chrome-toolbar {
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  display: flex !important;
  align-items: center;
}

.ml-chrome-burger-item,
.ml-drawer-only {
  display: none !important;
}

.ml-chrome-toolbar .tt-secondary-list,
.ml-chrome-toolbar .navbar-nav.toolbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  list-style: none;
}

.ml-chrome-toolbar .nav-item,
.ml-chrome-toolbar .tt-nav-item,
.ml-chrome-toolbar li {
  margin: 0 !important;
  float: none !important;
}

.ml-chrome-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px !important;
  padding: 0.55rem 1.15rem !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  line-height: 1.2;
  text-decoration: none !important;
  height: 48px;
  min-width: 48px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.ml-chrome-btn--ghost {
  color: #ffffff !important;
  background: #145fa8 !important;
  border: 1.5px solid #0f4c8a !important;
}

.ml-chrome-btn--ghost:hover {
  background: #0f4c8a !important;
  color: #ffffff !important;
}

.ml-chrome-btn--solid {
  color: #ffffff !important;
  background: #082f5c !important;
  background-image: linear-gradient(135deg, #071a33 0%, #0a3d73 55%, #145fa8 100%) !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(8, 47, 92, 0.32);
}

.ml-chrome-btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 47, 92, 0.4);
  color: #ffffff !important;
  filter: brightness(1.06);
}

.ml-chrome-btn--ghost,
.ml-chrome-btn--ghost span,
.ml-chrome-btn--ghost i,
.ml-chrome-btn--solid,
.ml-chrome-btn--solid span,
.ml-chrome-btn--solid i,
a.ml-chrome-btn--ghost,
a.ml-chrome-btn--solid,
.ml-chrome-header .ml-chrome-toolbar a.ml-chrome-btn,
.ml-chrome-header .ml-chrome-toolbar a.ml-chrome-btn span,
.ml-chrome-header .ml-chrome-toolbar a.ml-chrome-btn i,
.ml-chrome-header .tt-main-header.ml-chrome-toolbar ul li a.ml-chrome-btn,
.ml-chrome-header .tt-main-header.ml-chrome-toolbar ul li a.ml-chrome-btn span,
.ml-chrome-header .tt-main-header.ml-chrome-toolbar ul li a.ml-chrome-btn i {
  color: #ffffff !important;
}

.ml-chrome-icon-btn,
.ml-chrome-burger,
.ml-chrome-header .ml-chrome-toolbar .btn.nav-link {
  width: 48px !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 14px !important;
  border: 1.5px solid #9db5d1 !important;
  background: #f4f8fc !important;
  color: #062445 !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  font-size: 1.1rem !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ml-chrome-icon-btn:hover,
.ml-chrome-burger:hover {
  background: #dff1ff !important;
  border-color: #0f4c8a !important;
  color: #04182f !important;
}

.ml-chrome-cart,
.ml-chrome-header .ml-chrome-cart.cart-btn {
  position: relative !important;
  width: 48px !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 14px !important;
  background: #082f5c !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(8, 36, 69, 0.28) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  font-size: 1.1rem !important;
}

.ml-chrome-cart i {
  color: #ffffff !important;
}

.ml-chrome-cart:hover {
  color: #ffffff !important;
  background: #0a3d73 !important;
}

.ml-chrome-cart .tt-cart-badge,
.ml-chrome-header .tt-cart-badge {
  position: absolute !important;
  top: -5px !important;
  inset-inline-end: -5px !important;
  inset-inline-start: auto !important;
  left: auto !important;
  min-width: 18px;
  height: 18px;
  line-height: 14px;
  background: #7de3ff !important;
  color: #04233d !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 4px;
}

.ml-chrome-search-drop {
  min-width: 300px;
  border-radius: 16px !important;
  border: 1px solid var(--ml-line) !important;
  box-shadow: var(--ml-shadow) !important;
  background: #fff !important;
}

/* Kill kohost mobile rules that stack logo + toolbar */
@media (max-width: 1399.98px) {
  .ml-chrome-header .navbar-brand:not(.tt-double-header .navbar-brand):not(#registration .navbar-brand) {
    width: auto !important;
    max-width: 150px !important;
    display: inline-flex !important;
    text-align: start !important;
  }

  .ml-chrome-header .tt-toolbar-wrap:not(.tt-double-header .tt-toolbar-wrap),
  .ml-chrome-header .ml-chrome-toolbar {
    width: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-inline-start: auto !important;
  }

  .ml-chrome-header .tt-header .container,
  .ml-chrome-header .container,
  .ml-chrome-nav > .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    flex-wrap: nowrap !important;
  }

  .ml-chrome-header .logo-img {
    height: 44px !important;
    max-height: 44px !important;
    max-width: 140px !important;
  }

  .ml-chrome-nav.navbar,
  .ml-chrome-nav > .container {
    min-height: 72px;
  }

  .ml-chrome-burger-item {
    display: list-item !important;
    order: 99;
  }

  .ml-drawer-only {
    display: block !important;
  }

  /* Hide inline desktop search on mid screens to prevent overlap */
  .ml-chrome-header .ml-chrome-toolbar .nav-item.dropdown.d-xl-block {
    display: none !important;
  }

  /* ===== Attractive mobile drawer ===== */
  .ml-chrome-header .ml-chrome-offcanvas.offcanvas-collapse,
  .ml-chrome-header .offcanvas-collapse.ml-chrome-offcanvas {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(340px, 90vw) !important;
    max-width: 340px !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 10060 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(46, 196, 255, 0.18), transparent 42%),
      linear-gradient(180deg, #071a33 0%, #0b2f5c 28%, #f4f8fc 28%, #f4f8fc 100%) !important;
    box-shadow: -16px 0 48px rgba(7, 26, 51, 0.28) !important;
    transform: translateX(105%) !important;
    transition: transform .3s cubic-bezier(.2,.8,.2,1) !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .ml-chrome-header .ml-chrome-offcanvas.offcanvas-collapse.open,
  .ml-chrome-header .offcanvas-collapse.ml-chrome-offcanvas.open {
    transform: translateX(0) !important;
  }

  .ml-chrome-offcanvas__inner {
    padding: 0 0 24px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .ml-chrome-offcanvas__head {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 22px 18px 20px;
    border-bottom: 0;
    color: #fff;
  }

  .ml-chrome-offcanvas__brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .ml-chrome-offcanvas__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(125, 227, 255, 0.18);
    color: #7de3ff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .ml-chrome-offcanvas__head strong {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 900;
  }

  .ml-chrome-offcanvas__head small {
    color: rgba(215, 231, 248, 0.85);
    font-size: 0.82rem;
  }

  .ml-chrome-offcanvas__close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
  }

  .ml-chrome-mobile-search {
    display: block !important;
    margin: -8px 16px 14px;
  }

  .ml-chrome-mobile-search .input-group {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(7, 26, 51, 0.12);
    border: 1px solid #d5e3f2;
  }

  .ml-chrome-mobile-search .form-control {
    color: #062445 !important;
    background: #fff !important;
    border: 0 !important;
    height: 44px;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }

  .ml-chrome-mobile-search .form-control::placeholder {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    opacity: 0.75;
  }

  .ml-chrome-mobile-search .btn-default {
    background: #f4f8fc !important;
    border: 0 !important;
    color: #0a3d73 !important;
    height: 44px;
  }

  .ml-chrome-offcanvas .ml-chrome-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    padding: 0 14px !important;
    margin: 0 !important;
    width: 100%;
  }

  .ml-chrome-offcanvas .ml-chrome-menu > li {
    margin: 0 !important;
    width: 100%;
  }

  .ml-chrome-header .ml-chrome-offcanvas .ml-chrome-menu > li > a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    border-radius: 16px !important;
    padding: 0.9rem 1rem !important;
    color: #062445 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    background: #ffffff !important;
    border: 1px solid #d7e4f2 !important;
    box-shadow: 0 6px 18px rgba(7, 26, 51, 0.05);
  }

  .ml-chrome-header .ml-chrome-offcanvas .ml-chrome-menu > li > a:hover,
  .ml-chrome-header .ml-chrome-offcanvas .ml-chrome-menu > li.ml-acc-open > a {
    background: #eaf5ff !important;
    border-color: #8eb6de !important;
    color: #04182f !important;
  }

  .ml-nav-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0a3d73, #1769b8);
    color: #fff;
    flex-shrink: 0;
    font-size: 1rem;
  }

  .ml-nav-ico i {
    color: #fff !important;
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Duotone", "FontAwesome" !important;
  }

  .ml-chrome-offcanvas .dropdown-toggle::after {
    margin-right: auto;
    margin-left: 0;
    border-top: 0;
    border-bottom: 0.35em solid;
    border-right: 0.35em solid transparent;
    border-left: 0.35em solid transparent;
    opacity: 0.7;
    transition: transform .2s ease;
  }

  .ml-chrome-offcanvas .ml-acc-open > .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Accordion submenus (fix Store etc.) */
  .ml-chrome-offcanvas .dropdown-menu,
  .ml-chrome-offcanvas #Primary_Navbar-Store .dropdown-menu,
  .ml-chrome-offcanvas #Primary_Navbar-Store .dropdown-menu.show {
    display: none !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 8px 0 0 !important;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #e7f1fb !important;
    box-shadow: none !important;
    transform: none !important;
    inset: auto !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  .ml-chrome-offcanvas .dropdown.ml-acc-open > .dropdown-menu,
  .ml-chrome-offcanvas .dropdown.ml-acc-open > .dropdown-menu.show,
  .ml-chrome-offcanvas #Primary_Navbar-Store.ml-acc-open > .dropdown-menu,
  .ml-chrome-offcanvas #Primary_Navbar-Store.ml-acc-open .dropdown-menu,
  .ml-chrome-offcanvas #Primary_Navbar-Store.ml-acc-open .dropdown-menu.show {
    display: flex !important;
  }

  .ml-chrome-offcanvas .dropdown-menu .dropdown-item,
  .ml-chrome-offcanvas #Primary_Navbar-Store .dropdown-menu li {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .ml-chrome-offcanvas .dropdown-menu a.dropdown-item,
  .ml-chrome-offcanvas .dropdown-menu .dropdown-item > a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0.75rem 0.85rem !important;
    border-radius: 12px !important;
    color: #062445 !important;
    font-weight: 700 !important;
    background: #fff !important;
    margin-bottom: 6px;
  }

  .ml-chrome-offcanvas .dropdown-menu a.dropdown-item:hover {
    background: #dff0ff !important;
  }

  .ml-chrome-offcanvas .dropdown-divider {
    display: none;
  }

  .ml-chrome-offcanvas .collapsable-dropdown {
    display: none !important;
  }

  .ml-chrome-offcanvas__footer {
    display: block !important;
    margin-top: auto;
    padding: 16px 14px 8px;
  }

  .ml-chrome-offcanvas__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #082f5c, #145fa8);
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(8, 47, 92, 0.28);
  }

  .ml-chrome-offcanvas__cta i {
    color: #7de3ff !important;
  }

  .ml-chrome-offcanvas__help {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .ml-chrome-offcanvas__help a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #d7e4f2;
    color: #062445 !important;
    font-weight: 800;
    text-decoration: none !important;
  }

  /* Overlay must sit BEHIND the drawer (drawer lives inside .ml-chrome-nav stacking context) */
  .ml-chrome-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    z-index: 10040 !important;
    background: rgba(4, 24, 47, 0.55) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.ml-offcanvas-open .ml-chrome-overlay,
  .tt-body-wrapper.ml-offcanvas-open .ml-chrome-overlay,
  .ml-chrome-header.is-drawer-open .ml-chrome-overlay {
    display: block !important;
  }

  /* Elevate header + nav above the dimmer so menu stays clickable */
  body.ml-offcanvas-open .ml-chrome-header,
  .tt-body-wrapper.ml-offcanvas-open .ml-chrome-header,
  .ml-chrome-header.is-drawer-open {
    z-index: 10080 !important;
  }

  body.ml-offcanvas-open .ml-chrome-nav,
  .tt-body-wrapper.ml-offcanvas-open .ml-chrome-nav,
  .ml-chrome-header.is-drawer-open .ml-chrome-nav {
    position: relative !important;
    z-index: 10070 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }

  body.ml-offcanvas-open .ml-chrome-header .ml-chrome-offcanvas.offcanvas-collapse,
  .tt-body-wrapper.ml-offcanvas-open .ml-chrome-header .ml-chrome-offcanvas.offcanvas-collapse,
  .ml-chrome-header.is-drawer-open .ml-chrome-offcanvas.offcanvas-collapse {
    z-index: 10090 !important;
  }

  body.ml-offcanvas-open .ml-chrome-overlay,
  .tt-body-wrapper.ml-offcanvas-open .ml-chrome-overlay,
  .ml-chrome-header.is-drawer-open .ml-chrome-overlay {
    z-index: 10050 !important;
  }

  /* Keep floating chat / theme toggle from blocking drawer actions */
  body.ml-offcanvas-open #tawkchat-container,
  body.ml-offcanvas-open iframe[title*="chat" i],
  body.ml-offcanvas-open .widget-visible,
  body.ml-offcanvas-open div[class*="tawk"],
  .tt-body-wrapper.ml-offcanvas-open #tawkchat-container {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

@media (min-width: 1400px) {
  .ml-chrome-burger-item {
    display: none !important;
  }

  .ml-drawer-only {
    display: none !important;
  }

  .ml-chrome-header .ml-chrome-offcanvas.offcanvas-collapse {
    position: static !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
  }

  .ml-chrome-offcanvas__inner {
    padding: 0;
    display: block;
    min-height: 0;
  }

  .ml-chrome-offcanvas .ml-chrome-menu {
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 2px;
  }

  .ml-nav-ico {
    display: none !important;
  }

  .ml-chrome-overlay {
    display: none !important;
  }

  .ml-chrome-toolbar {
    flex-shrink: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .ml-chrome-btn span {
    display: none !important;
  }

  .ml-chrome-btn {
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    gap: 0;
  }

  .ml-chrome-icon-btn,
  .ml-chrome-burger,
  .ml-chrome-cart,
  .ml-chrome-header .ml-chrome-cart.cart-btn {
    width: 46px !important;
    height: 46px !important;
  }
}

/* Wide desktop: slightly tighter menu spacing to avoid overlap */
@media (min-width: 1400px) and (max-width: 1599.98px) {
  .ml-chrome-header .ml-chrome-menu > li > a {
    font-size: 0.92rem !important;
    padding: 0.45rem 0.55rem !important;
  }

  .ml-chrome-header .ml-chrome-toolbar .nav-item.dropdown.d-xl-block {
    display: none !important;
  }

  .ml-chrome-btn span {
    display: none !important;
  }

  .ml-chrome-btn {
    width: 46px !important;
    padding: 0 !important;
  }
}

/* Dark mode FAB — don't collide with header */
.tt-color-switch {
  right: auto !important;
  left: 14px !important;
  top: auto !important;
  bottom: 22px !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(7, 26, 51, 0.18) !important;
  border: 1px solid rgba(15, 76, 138, 0.12);
}

/* ========== FOOTER ========== */
.ml-chrome-footer {
  position: relative;
  background: linear-gradient(165deg, #061528 0%, #0a2748 42%, #0d3a6b 100%);
  color: #d5e4f5;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
  border: 0;
}

.ml-chrome-footer__glow {
  position: absolute;
  inset: auto auto -20% -10%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(46, 196, 255, 0.18) 0%, transparent 68%);
  pointer-events: none;
}

.ml-chrome-footer__cta {
  position: relative;
  z-index: 1;
  padding: 36px 0 8px;
}

.ml-chrome-footer__cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 90% 20%, rgba(46, 196, 255, 0.22), transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.ml-chrome-footer__eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--ml-accent);
  font-weight: 800;
  font-size: 0.86rem;
}

.ml-chrome-footer__cta-copy h2 {
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.35;
}

.ml-chrome-footer__cta-copy p {
  margin: 0;
  color: #c5d8ee;
  max-width: 46ch;
}

.ml-chrome-footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.ml-chrome-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ml-chrome-footer__btn--primary {
  background: #7de3ff;
  color: #04233d !important;
  box-shadow: 0 12px 28px rgba(46, 196, 255, 0.28);
}

.ml-chrome-footer__btn--primary:hover {
  transform: translateY(-2px);
  background: #a6edff;
  color: #021525 !important;
}

.ml-chrome-footer__btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.ml-chrome-footer__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
}

.ml-chrome-footer__main {
  position: relative;
  z-index: 1;
  padding: 48px 0 28px;
}

.ml-chrome-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.ml-chrome-footer__logo img {
  max-height: 42px;
  width: auto;
  margin: 0;
  filter: none;
}

.ml-chrome-footer__brand p {
  color: #b7cbe2;
  line-height: 1.8;
  margin-bottom: 16px;
}

.ml-chrome-footer__title {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 10px;
}

.ml-chrome-footer__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ml-accent), transparent);
}

.ml-chrome-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ml-chrome-footer__menu li {
  margin-bottom: 10px;
}

.ml-chrome-footer__menu a {
  color: #c5d8ee;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease, padding-inline-start .2s ease;
}

.ml-chrome-footer__menu a:hover {
  color: #fff;
  padding-inline-start: 4px;
}

.ml-chrome-footer__contact {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.ml-chrome-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #c5d8ee;
}

.ml-chrome-footer__contact i {
  color: var(--ml-accent);
  margin-top: 3px;
  width: 18px;
  text-align: center;
}

.ml-chrome-footer__contact a {
  color: #e8f2fc;
  text-decoration: none;
  font-weight: 700;
}

.ml-chrome-footer__contact a:hover {
  color: #fff;
}

.ml-chrome-footer__payments p {
  color: #9fb6d1;
  font-size: 0.86rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.ml-chrome-footer__payments img {
  max-width: 260px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 8px 10px;
}

.ml-chrome-footer__social .list-inline,
.ml-chrome-footer__social ul {
  margin: 0;
  padding: 0;
}

.ml-chrome-footer__social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  margin-inline-end: 6px;
  transition: background .2s ease, transform .2s ease;
}

.ml-chrome-footer__social a:hover {
  background: rgba(46, 196, 255, 0.28);
  transform: translateY(-2px);
}

.ml-chrome-footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.18);
}

.ml-chrome-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #9fb6d1;
  font-size: 0.9rem;
}

.ml-chrome-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ml-chrome-footer__bottom-links a,
.ml-chrome-footer__lang {
  color: #d7e7f8;
  text-decoration: none;
  background: transparent;
  border: 0;
  font-weight: 700;
}

.ml-chrome-footer__lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ml-chrome-footer__bottom-links a:hover,
.ml-chrome-footer__lang:hover {
  color: #fff;
}

@media (max-width: 991.98px) {
  .ml-chrome-footer__cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dark mode compatibility */
[data-bs-theme="dark"] .ml-chrome-nav.navbar {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

[data-bs-theme="dark"] .ml-chrome-header .ml-chrome-menu > li > a {
  color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .ml-chrome-header .ml-chrome-toolbar a.ml-chrome-btn,
[data-bs-theme="dark"] .ml-chrome-header .ml-chrome-toolbar a.ml-chrome-btn span,
[data-bs-theme="dark"] .ml-chrome-header .ml-chrome-toolbar a.ml-chrome-btn i {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .ml-chrome-icon-btn {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0 !important;
}


/* Overlay on body (moved by JS) — always under the open drawer */
body > .ml-chrome-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
  background: rgba(4, 24, 47, 0.55) !important;
}

html.ml-offcanvas-open .ml-chrome-header,
body.ml-offcanvas-open .ml-chrome-header,
.ml-chrome-header.is-drawer-open {
  z-index: 10080 !important;
}

html.ml-offcanvas-open .ml-chrome-header .ml-chrome-offcanvas.offcanvas-collapse.open,
body.ml-offcanvas-open .ml-chrome-header .ml-chrome-offcanvas.offcanvas-collapse.open,
.ml-chrome-header.is-drawer-open .ml-chrome-offcanvas.offcanvas-collapse.open {
  z-index: 10090 !important;
  pointer-events: auto !important;
}

/* Soft entrance motion — avoid persistent transform (breaks fixed offcanvas stacking) */
@keyframes mlChromeRise {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ml-chrome-header .ml-chrome-nav {
  animation: mlChromeRise .45s ease both;
  animation-fill-mode: backwards;
}

.ml-chrome-footer__cta-card {
  animation: mlChromeRise .55s ease both;
}
