/* Love & Life Toolbox — Custom Mega Menu (scoped) */
.lalt-mm {
  --lalt-mm-ink: #222222;
  --lalt-mm-body: #4B4B4F;
  --lalt-mm-teal: #4EC1BE;
  --lalt-mm-teal-dark: #3AA5A2;
  --lalt-mm-slate: #55606B;
  --lalt-mm-slate-dark: #414A53;
  --lalt-mm-orange: #E8A33D;
  --lalt-mm-hero-bg: #EAEBEF;
  --lalt-mm-white: #FFFFFF;
  --lalt-mm-border: #ECECEF;
  --lalt-mm-radius: 8px;
  font-family: 'Poppins', sans-serif;
  color: var(--lalt-mm-ink);
  line-height: 1.5;
  position: relative;
  z-index: 40;
  background: var(--lalt-mm-white);
  border-bottom: 1px solid var(--lalt-mm-border);
}

.lalt-mm *,
.lalt-mm *::before,
.lalt-mm *::after {
  box-sizing: border-box;
}

.lalt-mm a {
  text-decoration: none;
  color: inherit;
}

.lalt-mm ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lalt-mm button {
  font-family: inherit;
}

.lalt-mm__bar {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 14px 24px;
  gap: 6px;
  flex-wrap: nowrap;
}

.lalt-mm__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 28px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lalt-mm__logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

.lalt-mm__logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  border: 2px solid var(--lalt-mm-ink);
  border-radius: 4px;
  padding: 4px 10px 5px;
}

.lalt-mm__logo-text .top {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lalt-mm-ink);
}

.lalt-mm__logo-text .bottom {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--lalt-mm-ink);
}

.lalt-mm__list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: nowrap;
}

.lalt-mm__list > li {
  position: relative;
  flex-shrink: 0;
}

.lalt-mm__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--lalt-mm-ink);
  white-space: nowrap;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--lalt-mm-radius);
}

.lalt-mm__btn:hover,
.lalt-mm__btn[aria-expanded="true"] {
  color: var(--lalt-mm-teal-dark);
}

.lalt-mm__caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -3px;
  display: inline-block;
}

.lalt-mm__btn[aria-expanded="true"] .lalt-mm__caret {
  transform: rotate(225deg);
  margin-top: 3px;
}

.lalt-mm__plain {
  font-size: 15px;
  font-weight: 600;
  color: var(--lalt-mm-ink);
  padding: 12px 14px;
  border-radius: var(--lalt-mm-radius);
  white-space: nowrap;
  display: inline-block;
}

.lalt-mm__plain:hover {
  color: var(--lalt-mm-teal-dark);
}

.lalt-mm__right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 12px;
  flex-shrink: 0;
}

.lalt-mm__cta {
  background: var(--lalt-mm-teal);
  color: var(--lalt-mm-white) !important;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: var(--lalt-mm-radius);
  white-space: nowrap;
  transition: background 0.15s;
  display: inline-block;
}

.lalt-mm__cta:hover {
  background: var(--lalt-mm-teal-dark);
  color: var(--lalt-mm-white) !important;
}

.lalt-mm__icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--lalt-mm-ink);
  padding: 0;
  position: relative;
  text-decoration: none;
}

.lalt-mm__icon svg {
  display: block;
}

.lalt-mm__cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--lalt-mm-teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.lalt-mm__toggle {
  display: none;
  background: none;
  border: 1px solid var(--lalt-mm-border);
  border-radius: var(--lalt-mm-radius);
  padding: 8px 10px;
  cursor: pointer;
  margin-left: 8px;
}

.lalt-mm__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--lalt-mm-ink);
  margin: 4px 0;
}

/* Mega panels */
.lalt-mm__panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: min(900px, 92vw);
  background: var(--lalt-mm-white);
  border: 1px solid var(--lalt-mm-border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(30, 35, 45, 0.14);
  padding: 28px 30px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  z-index: 50;
}

.lalt-mm__panel.is-open {
  display: grid;
}

.lalt-mm__panel--cols-3 {
  grid-template-columns: repeat(3, 1fr);
  width: min(700px, 92vw);
}

.lalt-mm__panel--cols-2 {
  grid-template-columns: repeat(2, 1fr);
  width: min(520px, 92vw);
}

.lalt-mm__col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--lalt-mm-teal-dark);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lalt-mm-hero-bg);
}

.lalt-mm__col-stack .lalt-mm__col + .lalt-mm__col {
  margin-top: 18px;
}

.lalt-mm__col ul li {
  margin-bottom: 9px;
}

.lalt-mm__col ul li a {
  font-size: 14px;
  font-weight: 400;
  color: var(--lalt-mm-body);
  line-height: 1.35;
  display: block;
}

.lalt-mm__col ul li a:hover {
  color: var(--lalt-mm-teal-dark);
  text-decoration: underline;
}

.lalt-mm__view-all {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lalt-mm-slate);
}

.lalt-mm__view-all:hover {
  color: var(--lalt-mm-teal-dark);
}

.lalt-mm__feature {
  background: var(--lalt-mm-slate-dark);
  border-radius: var(--lalt-mm-radius);
  padding: 20px;
  color: #EAEDEF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.lalt-mm__feature-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lalt-mm-orange);
}

.lalt-mm__feature h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin: 8px 0 10px;
  line-height: 1.3;
}

.lalt-mm__feature p {
  font-size: 12.5px;
  color: #C8CED2;
  margin: 0 0 14px;
}

.lalt-mm__feature-link {
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  border-bottom: 2px solid var(--lalt-mm-teal);
  padding-bottom: 2px;
  align-self: flex-start;
}

/* Gridlove-compatible search dropdown inside mega menu */
.lalt-mm .gridlove-action-search {
  position: relative;
  list-style: none;
}

.lalt-mm .gridlove-action-search > span {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.lalt-mm .gridlove-action-search .sub-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--lalt-mm-border);
  border-radius: var(--lalt-mm-radius);
  box-shadow: 0 12px 28px rgba(30, 35, 45, 0.12);
  padding: 12px;
  z-index: 60;
  margin: 0;
  list-style: none;
}

.lalt-mm .gridlove-action-search.active .sub-menu {
  display: block;
}

.lalt-mm .gridlove-action-search .sub-menu input[type="text"],
.lalt-mm .gridlove-action-search .sub-menu input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lalt-mm-border);
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

/* Mobile drawer */
.lalt-mm__drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--lalt-mm-white);
  z-index: 60;
  overflow-y: auto;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
}

.lalt-mm__drawer.is-open {
  display: block;
}

.lalt-mm__drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.lalt-mm__drawer-brand {
  font-weight: 800;
  font-size: 16px;
}

.lalt-mm__drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--lalt-mm-ink);
  line-height: 1;
}

.lalt-mm__drawer-section {
  border-bottom: 1px solid var(--lalt-mm-border);
}

.lalt-mm__drawer-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--lalt-mm-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.lalt-mm__drawer-panel {
  display: none;
  padding: 0 4px 16px;
}

.lalt-mm__drawer-panel.is-open {
  display: block;
}

.lalt-mm__drawer-panel h4 {
  font-size: 12px;
  color: var(--lalt-mm-teal-dark);
  margin: 14px 0 8px;
  font-weight: 700;
}

.lalt-mm__drawer-panel ul li {
  margin-bottom: 8px;
  font-size: 14.5px;
}

.lalt-mm__drawer-panel ul li a {
  color: var(--lalt-mm-body);
}

.lalt-mm__drawer-plain {
  display: block;
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--lalt-mm-ink);
}

.lalt-mm__drawer-cta {
  margin-top: 20px;
}

.lalt-mm__drawer-cta .lalt-mm__cta {
  display: block;
  text-align: center;
}

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

  .lalt-mm__cta {
    padding: 9px 16px;
    font-size: 13.5px;
  }

  .lalt-mm__toggle {
    display: block;
  }

  .lalt-mm__bar {
    flex-wrap: wrap;
  }

  .lalt-mm__right .lalt-mm__cta {
    display: none;
  }
}

@media (min-width: 901px) {
  .lalt-mm__drawer {
    display: none !important;
  }
}

body.lalt-mm-drawer-open {
  overflow: hidden;
}

/* Keep Gridlove sticky/responsive chrome from conflicting when custom menu is active */
.gridlove-site-header.lalt-mm-header {
  margin-bottom: 0;
}

.gridlove-site-header.lalt-mm-header .lalt-mm {
  width: 100%;
}
