/* TMN Menu — generated by tools/build_menu_plugin.py from assets/css/main.css.
   Do not edit by hand: change main.css and rebuild. */

.tmn-mm {
  /* Brand */
  --violet: #57068C;
  --violet-ultra: #8900E1;
  --violet-deep: #330662;
  --violet-dark: #220337;
  --teal: #009B8A;
  --teal-ultra: #50C0B9;
  /* Secondary palette — used sparingly (product tints, small signals) */
  --olive: #A9B240;
  --blue: #59B2D1;
  --orange: #DD7127;

  /* Interface neutrals */
  --paper: #FFFCF2;
  --stone: #F4F0E6;
  --sand: #E9E3D5;
  --ink: #1A1222;
  --ink-soft: #2E2536;
  --night: #120A19;     /* violet-tinted black: dark chapters stay on-brand */
  --muted: #6E6973;
  --muted-on-dark: rgba(255, 252, 242, .62);
  --line: rgba(20, 18, 22, .1);
  --line-on-dark: rgba(255, 252, 242, .14);

  /* Type */
  /* Brand type: Almarai (Arabic) + IBM Plex Sans (Latin). Plex is listed first
     so Latin words and numerals use it; Arabic glyphs fall through to Almarai. */
  --font-display: "IBM Plex Sans", "Almarai", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Almarai", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1360px;
  --radius-lg: clamp(20px, 2.2vw, 32px);
  --radius-md: 18px;
  --nav-h: 64px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* Wrapper: tokens, local reset (only inside the menu — the theme is untouched) */
.tmn-mm {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
.tmn-mm *, .tmn-mm *::before, .tmn-mm *::after { box-sizing: border-box; }
.tmn-mm ul, .tmn-mm ol, .tmn-mm li, .tmn-mm p, .tmn-mm form, .tmn-mm fieldset { margin: 0; padding: 0; list-style: none; border: 0; }
/* :where() keeps the states at the weight of a plain link, so a link the visitor has
   visited or hovers never loses the colour its own class gives it */
body .tmn-mm a, body .tmn-mm a:where(:hover, :focus, :visited) { color: inherit; text-decoration: none; background-image: none; box-shadow: none; }
.tmn-mm button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
  border-radius: 0; box-shadow: none; cursor: pointer; text-transform: none; letter-spacing: normal;
  line-height: inherit; min-height: 0; min-width: 0; width: auto; height: auto; text-shadow: none;
}
body .tmn-mm button:where(:hover, :focus) { background: none; color: inherit; }
.tmn-mm img, .tmn-mm svg { display: block; max-width: 100%; }
.tmn-mm img { height: auto; }
.tmn-mm input { font: inherit; color: inherit; margin: 0; box-shadow: none; border-radius: 0; min-height: 0; }
.tmn-mm :focus-visible { outline: 2px solid var(--violet-ultra); outline-offset: 3px; border-radius: 6px; }
.tmn-mm .tmn-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tmn-mm .tmn-latin { font-family: "IBM Plex Sans", sans-serif; letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; }
.tmn-mm .tmn-wrap { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
/* custom logos: both versions stacked, crossfading with the background */
.tmn-mm .tmn-logo--custom { display: grid; }
.tmn-mm .tmn-logo__img { grid-area: 1 / 1; height: 34px; width: auto; max-width: 180px; object-fit: contain; transition: opacity .4s var(--ease); }
.tmn-mm .tmn-logo__img--light { opacity: 0; }
.tmn-mm[data-tone="light"] .tmn-header:not(.is-solid):not(.is-mega-open):not(.is-sheet-open) .tmn-logo__img--light { opacity: 1; }
.tmn-mm[data-tone="light"] .tmn-header:not(.is-solid):not(.is-mega-open):not(.is-sheet-open) .tmn-logo__img--dark { opacity: 0; }
@media (max-width: 767px) { .tmn-mm .tmn-logo__img { height: 30px; } }
/* uploaded item icons */
.tmn-mm .tmn-mm-ico--img img { width: 20px; height: 20px; object-fit: contain; }
.tmn-mm .tmn-mm-ico--mask i {
  display: block; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}
.tmn-mm .tmn-mm-thumb--icon { color: var(--violet); }
.tmn-mm .tmn-mm-thumb--icon svg { width: 26px; height: 26px; }
.tmn-mm .tmn-mega .tmn-mm-quick { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.tmn-mm .tmn-mm-quick:last-child { margin-bottom: 0; }
/* external links (the store) and links waiting for an address (careers) */
.tmn-mm .tmn-nav__ext { width: 11px; height: 11px; opacity: .55; }
.tmn-mm a[aria-disabled="true"] { cursor: default; }
/* the theme styles bare elements (StratusX/Kirki: body, p, li, a); keep them inheriting
   from the menu. body + .tmn-mm + element beats those, and still loses to the menu's own class rules */
body .tmn-mm p, body .tmn-mm li, body .tmn-mm a, body .tmn-mm button, body .tmn-mm input,
body .tmn-mm label, body .tmn-mm ul, body .tmn-mm ol {
  font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit;
  color: inherit; letter-spacing: inherit; text-transform: none;
}
/* above theme stickies and page builders */
body .tmn-mm .tmn-header { z-index: 9990; }
body .tmn-mm .tmn-drawer { z-index: 9989; }
body .tmn-mm .tmn-scrim { z-index: 9980; }
.tmn-mm .tmn-mm-search input { border: 0 !important; background: none !important; padding: 0 !important; outline: none; }
html.tmn-lock { overflow: hidden; }

/* pushes page content below the fixed header on pages without a hero */
.tmn-mm .tmn-spacer { height: calc(var(--nav-h) + 54px); }
@media (max-width: 1199px) {
  .tmn-mm { --nav-h: 60px; }
  .tmn-mm .tmn-spacer { height: calc(var(--nav-h) + 24px); }
}
/* logged-in admin bar */
.admin-bar .tmn-mm .tmn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tmn-mm .tmn-header { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
  .tmn-mm *, .tmn-mm *::before, .tmn-mm *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ---------- 4. Buttons ---------- */
.tmn-mm .tmn-btn {
  --btn-bg: var(--violet-deep);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .5s var(--ease-out), background-color .4s var(--ease), color .4s var(--ease), box-shadow .5s var(--ease);
}
.tmn-mm .tmn-btn::after {
  /* violet light sweep */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(120% 140% at 100% 50%, rgba(137, 0, 225, .55), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.tmn-mm .tmn-btn:hover::after { opacity: 1; }
.tmn-mm .tmn-btn:active { transform: scale(.98); }

.tmn-mm .tmn-btn .tmn-arrow {
  width: 18px; height: 18px;
  transition: transform .5s var(--ease-out);
}
.tmn-mm .tmn-btn:hover .tmn-arrow { transform: translateX(-4px); }

.tmn-mm .tmn-btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.tmn-mm .tmn-btn--light::after { background: radial-gradient(120% 140% at 100% 50%, rgba(137, 0, 225, .16), transparent 60%); }

.tmn-mm .tmn-btn--ghost {
  --btn-bg: rgba(255, 252, 242, .08);
  --btn-fg: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 252, 242, .35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tmn-mm .tmn-btn--ghost:hover { --btn-bg: rgba(255, 252, 242, .16); }

.tmn-mm .tmn-btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tmn-mm .tmn-btn--outline:hover { box-shadow: inset 0 0 0 1px var(--ink); }

.tmn-mm .tmn-btn--violet { --btn-bg: var(--violet); }
.tmn-mm .tmn-btn--violet::after { background: radial-gradient(120% 140% at 100% 50%, rgba(80, 192, 185, .45), transparent 60%); }

.tmn-mm .tmn-btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }

.tmn-mm .link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
  position: relative;
  padding-block: 4px;
}
.tmn-mm .link-arrow::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(.0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.tmn-mm .link-arrow:hover::after { transform: scaleX(1); }
.tmn-mm .link-arrow .tmn-arrow { width: 16px; height: 16px; transition: transform .5s var(--ease-out); }
.tmn-mm .link-arrow:hover .tmn-arrow { transform: translateX(-4px); }

/* ---------- 5. Logo ---------- */
.tmn-mm .tmn-logo {
  display: inline-flex; align-items: center; gap: 9px;
  color: currentColor;
  line-height: 1;
}
.tmn-mm .tmn-logo__mark { width: 32px; height: 32px; flex: none; }
.tmn-mm .tmn-logo__word {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .02em;
}
/* On light surfaces the mark takes the brand gradient and the wordmark Deep Violet */
.tmn-mm .tmn-header.is-solid .tmn-logo,
.tmn-mm .tmn-header.is-mega-open .tmn-logo,
.tmn-mm .tmn-header.is-sheet-open .tmn-logo { --mark: url(#tmn-menu-grad); }
.tmn-mm .tmn-header.is-solid .tmn-logo__word,
.tmn-mm .tmn-header.is-mega-open .tmn-logo__word,
.tmn-mm .tmn-header.is-sheet-open .tmn-logo__word { color: var(--violet-deep); }


/* ==========================================================================
   6. Header & navigation
   utility bar · floating bar (main | logo | actions) · mega panels · drawer
   ========================================================================== */
.tmn-mm .tmn-header {
  position: fixed;
  inset-inline: 0; top: 0;
  z-index: 100;
  pointer-events: none;
  transition: transform .6s var(--ease-out);
}
.tmn-mm .tmn-header.is-hidden { transform: translateY(-130%); }
.tmn-mm .tmn-header a,
.tmn-mm .tmn-header button { pointer-events: auto; }

/* ---------- Utility bar ---------- */
.tmn-mm .tmn-utility {
  height: 34px;
  overflow: hidden;
  color: rgba(255, 252, 242, .72);
  font-size: 13px;
  transition: height .5s var(--ease-out), opacity .4s var(--ease), color .4s var(--ease);
}
.tmn-mm .tmn-utility__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: 6px; }
.tmn-mm .tmn-utility__tag { opacity: .9; }
.tmn-mm .tmn-utility__links { display: flex; gap: 22px; }
.tmn-mm .tmn-utility__links a { transition: color .3s var(--ease); }
.tmn-mm .tmn-utility__links a:hover { color: var(--paper); }
.tmn-mm .tmn-header.is-compact .tmn-utility { height: 0; opacity: 0; }
.tmn-mm .tmn-header.is-solid .tmn-utility { color: var(--muted); }
.tmn-mm .tmn-header.is-solid .tmn-utility__links a:hover { color: var(--ink); }

/* ---------- Floating bar ---------- */
.tmn-mm .tmn-navwrap { position: relative; transition: width .7s var(--ease-out); }
.tmn-mm .tmn-header.is-compact .tmn-navwrap { width: min(1240px, 100% - var(--gutter) * 2); }
.tmn-mm .tmn-nav {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
  padding-inline: 10px;
  margin-top: 6px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(20, 18, 22, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 252, 242, .14);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), height .6s var(--ease-out), margin .6s var(--ease-out), border-radius .4s var(--ease);
}
.tmn-mm .tmn-header.is-compact .tmn-nav { height: 58px; margin-top: 12px; }
.tmn-mm .tmn-header.is-top:not(.is-mega-open) .tmn-nav {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 252, 242, 0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.tmn-mm .tmn-header.is-solid .tmn-nav,
.tmn-mm .tmn-header.is-mega-open .tmn-nav {
  color: var(--ink);
  background: rgba(255, 252, 242, .86);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 40px -18px rgba(20, 18, 22, .25);
}
.tmn-mm .tmn-header.is-mega-open .tmn-nav { border-radius: 28px; background: var(--paper); }

.tmn-mm .tmn-nav__main { position: relative; display: flex; align-items: center; gap: 2px; justify-self: start; }
.tmn-mm .tmn-nav__item {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.tmn-mm .tmn-nav__item .tmn-chev { width: 12px; height: 12px; opacity: .7; transition: transform .45s var(--ease-out); }
.tmn-mm .tmn-nav__trigger[aria-expanded="true"] .tmn-chev { transform: rotate(180deg); }
.tmn-mm .tmn-nav__main:hover .tmn-nav__item { opacity: .62; }
.tmn-mm .tmn-nav__main .tmn-nav__item:hover,
.tmn-mm .tmn-nav__main .tmn-nav__trigger[aria-expanded="true"] { opacity: 1; }
.tmn-mm .tmn-header.is-mega-open .tmn-nav__trigger[aria-expanded="true"] { color: var(--violet); }

/* sliding highlight behind the open trigger */
.tmn-mm .tmn-nav__hilite {
  position: absolute; z-index: 0;
  top: 50%; left: 0;
  height: 42px; width: var(--w, 0);
  border-radius: 999px;
  background: rgba(87, 6, 140, .08);
  transform: translate(var(--x, 0), -50%);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s var(--ease);
}
.tmn-mm .tmn-nav__hilite.is-on { opacity: 1; }

.tmn-mm .tmn-nav__logo { justify-self: center; }
.tmn-mm .tmn-nav__end { display: flex; align-items: center; gap: 6px; justify-self: end; }
.tmn-mm .tmn-nav__icon,
.tmn-mm .tmn-nav__store {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; min-width: 42px;
  border-radius: 999px;
  font-size: 15px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.tmn-mm .tmn-nav__store { padding-inline: 12px; }
.tmn-mm .tmn-nav__icon svg,
.tmn-mm .tmn-nav__store svg { width: 20px; height: 20px; }
.tmn-mm .tmn-nav__icon:hover,
.tmn-mm .tmn-nav__store:hover { background: rgba(255, 252, 242, .12); }
.tmn-mm .tmn-header.is-solid .tmn-nav__icon:hover,
.tmn-mm .tmn-header.is-solid .tmn-nav__store:hover,
.tmn-mm .tmn-header.is-mega-open .tmn-nav__icon:hover,
.tmn-mm .tmn-header.is-mega-open .tmn-nav__store:hover { background: rgba(26, 18, 34, .06); }
.tmn-mm .tmn-nav__icon[aria-expanded="true"] { background: rgba(87, 6, 140, .08); color: var(--violet); }
.tmn-mm .tmn-nav .tmn-btn--cta { --btn-bg: var(--paper); --btn-fg: var(--ink); margin-inline-start: 4px; }
.tmn-mm .tmn-header.is-solid .tmn-nav .tmn-btn--cta,
.tmn-mm .tmn-header.is-mega-open .tmn-nav .tmn-btn--cta { --btn-bg: var(--violet-deep); --btn-fg: var(--paper); }

.tmn-mm .tmn-nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  align-items: center; justify-content: center;
}
.tmn-mm .tmn-nav__toggle span { position: relative; display: block; width: 18px; height: 1.5px; background: currentColor; transition: background-color .2s; }
.tmn-mm .tmn-nav__toggle span::before,
.tmn-mm .tmn-nav__toggle span::after {
  content: ""; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-out);
}
.tmn-mm .tmn-nav__toggle span::before { transform: translateY(-6px); }
.tmn-mm .tmn-nav__toggle span::after { transform: translateY(6px); }

/* ---------- Mega panels ---------- */
.tmn-mm .tmn-mega {
  pointer-events: auto;
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  height: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -40px rgba(18, 10, 25, .45);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .5s var(--ease-out), height .5s var(--ease-out), visibility 0s linear .3s;
}
.tmn-mm .tmn-header.is-mega-open .tmn-mega {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s var(--ease), transform .5s var(--ease-out), height .5s var(--ease-out), visibility 0s;
}
.tmn-mm .tmn-mega__panels { position: relative; }
.tmn-mm .tmn-mm-panel {
  position: absolute; inset-inline: 0; top: 0;
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--from, 0));
  transition: opacity .25s var(--ease), transform .5s var(--ease-out), visibility 0s linear .25s;
}
.tmn-mm .tmn-mm-panel.is-active {
  position: relative;
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .4s var(--ease) .08s, transform .6s var(--ease-out), visibility 0s;
}

.tmn-mm .tmn-mm-grid { display: grid; grid-template-columns: 1fr 1fr 1.05fr 1.15fr; gap: 10px 28px; align-items: start; }
.tmn-mm .tmn-mm-panel--products .tmn-mm-grid { grid-template-columns: 1fr 1.6fr 1.15fr; }
.tmn-mm .tmn-mm-col { display: grid; gap: 22px; align-content: start; }
.tmn-mm .tmn-mm-col + .tmn-mm-col:not(.tmn-mm-col--promo) { border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.tmn-mm .tmn-mm-col--promo { align-self: stretch; }

.tmn-mm .tmn-mm-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted);
  margin-bottom: 8px;
}
.tmn-mm .tmn-mm-list { display: grid; gap: 2px; }
.tmn-mm .tmn-mm-link {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px;
  margin-inline: -10px;
  border-radius: 14px;
  transition: background-color .25s var(--ease);
}
.tmn-mm .tmn-mm-ico {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--stone);
  color: var(--ink-soft);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease-out);
}
.tmn-mm .tmn-mm-ico > svg { width: 19px; height: 19px; }
.tmn-mm .tmn-mm-txt { display: grid; gap: 1px; min-width: 0; }
.tmn-mm .tmn-mm-t { font-size: 15px; line-height: 1.45; }
.tmn-mm .tmn-mm-d { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tmn-mm .tmn-mm-badge {
  font-style: normal; font-size: 11px;
  padding: 2px 8px; margin-inline-start: 4px; border-radius: 999px;
  color: var(--teal); background: rgba(0, 155, 138, .1);
  vertical-align: 2px;
}
.tmn-mm .tmn-mm-link:hover { background: var(--stone); }
.tmn-mm .tmn-mm-link:hover .tmn-mm-ico { background: var(--violet); color: var(--paper); transform: scale(1.04); }
.tmn-mm .tmn-mm-logo { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; }
.tmn-mm .tmn-mm-logo img,
.tmn-mm .tmn-mm-logo svg { width: 20px; height: 20px; }
.tmn-mm .tmn-mm-logo--matter,
.tmn-mm .tmn-mm-logo--tmn { background: var(--violet-deep); }
.tmn-mm .tmn-mm-logo--zigbee { background: #fff; }

/* technology tiles */
.tmn-mm .tmn-mm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tmn-mm .tmn-mm-tile {
  display: grid; justify-items: center; gap: 8px;
  padding: 14px 8px 12px;
  border-radius: 16px;
  background: var(--stone);
  font-size: 13px;
  transition: background-color .3s var(--ease), transform .4s var(--ease-out), box-shadow .3s var(--ease);
}
.tmn-mm .tmn-mm-tile .tmn-mm-ico { background: var(--paper); }
.tmn-mm .tmn-mm-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(18, 10, 25, .35); }
/* compact room list */
.tmn-mm .tmn-mm-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.tmn-mm .tmn-mm-compact a { padding: 6px 0; font-size: 15px; color: var(--ink-soft); transition: color .25s var(--ease); }
.tmn-mm .tmn-mm-compact a:hover { color: var(--violet); }

/* featured column */
.tmn-mm .tmn-mm-featured { gap: 4px; }
.tmn-mm .tmn-mm-feat {
  display: flex; align-items: center; gap: 14px;
  padding: 8px; margin-inline: -8px;
  border-radius: 16px;
  transition: background-color .25s var(--ease);
}
.tmn-mm .tmn-mm-feat:hover { background: var(--stone); }
.tmn-mm .tmn-mm-thumb { width: 60px; height: 60px; flex: none; border-radius: 14px; overflow: hidden; background: var(--stone); display: grid; place-items: center; }
.tmn-mm .tmn-mm-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.tmn-mm .tmn-mm-feat:hover .tmn-mm-thumb img { transform: scale(1.08); }
.tmn-mm .tmn-mm-thumb--logo img,
.tmn-mm .tmn-mm-thumb--logo svg { width: 28px; height: 28px; object-fit: contain; }
.tmn-mm .tmn-mm-thumb--matter,
.tmn-mm .tmn-mm-thumb--tmn { background: linear-gradient(160deg, var(--violet), var(--violet-dark)); }
.tmn-mm .tmn-mm-thumb--zigbee { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tmn-mm .tmn-mm-feat:hover .tmn-mm-thumb--logo img { transform: none; }

/* promo card */
.tmn-mm .tmn-mm-promo {
  position: relative;
  display: flex; align-items: flex-end;
  height: 100%; min-height: 300px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  background: var(--night);
}
.tmn-mm .tmn-mm-promo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.tmn-mm .tmn-mm-promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18, 10, 25, .86), rgba(18, 10, 25, .1) 60%); }
.tmn-mm .tmn-mm-promo:hover .tmn-mm-promo__img { transform: scale(1.05); }
.tmn-mm .tmn-mm-promo__body { display: grid; gap: 6px; padding: 22px; }
.tmn-mm .tmn-mm-promo__title { font-family: var(--font-display); font-size: 22px; font-weight: 300; line-height: 1.35; }
.tmn-mm .tmn-mm-promo__text { font-size: 14px; color: rgba(255, 252, 242, .78); line-height: 1.7; }
.tmn-mm .tmn-mm-promo__cta {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; height: 40px; padding-inline: 16px;
  border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-size: 14px; font-weight: 700;
}
.tmn-mm .tmn-mm-arrow { width: 15px; height: 15px; transition: transform .45s var(--ease-out); }
.tmn-mm .tmn-mm-promo:hover .tmn-mm-arrow,
.tmn-mm .tmn-mm-quick__card:hover .tmn-mm-arrow { transform: translateX(-3px); }
.tmn-mm .tmn-mm-promo--product { background: #F6F2E9; color: var(--ink); align-items: stretch; flex-direction: column; justify-content: flex-end; }
.tmn-mm .tmn-mm-promo--product::after { display: none; }
.tmn-mm .tmn-mm-promo--product .tmn-mm-promo__product { flex: 1; display: grid; place-items: center; min-height: 160px; overflow: hidden; }
.tmn-mm .tmn-mm-promo--product .tmn-mm-promo__product img {
  width: 82%; aspect-ratio: 1; object-fit: cover;
  transform: scale(1.45); transform-origin: 50% 56%;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  transition: transform 1s var(--ease-out);
}
.tmn-mm .tmn-mm-promo--product:hover .tmn-mm-promo__product img { transform: scale(1.52); }
.tmn-mm .tmn-mm-promo--product .tmn-mm-promo__text { color: var(--muted); }
.tmn-mm .tmn-mm-promo--product .tmn-mm-promo__cta { background: var(--violet-deep); color: var(--paper); }

/* quick cards (products) */
.tmn-mm .tmn-mm-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.tmn-mm .tmn-mm-quick__card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--stone);
  transition: background-color .3s var(--ease), transform .4s var(--ease-out);
}
.tmn-mm .tmn-mm-quick__card .tmn-mm-ico { background: var(--paper); }
.tmn-mm .tmn-mm-quick__card:hover { transform: translateY(-2px); }
.tmn-mm .tmn-mm-quick__card:hover .tmn-mm-ico { background: var(--violet); color: var(--paper); }
.tmn-mm .tmn-mm-quick__go { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }

/* search panel */
.tmn-mm .tmn-mm-panel--search { padding: 28px 32px 30px; }
.tmn-mm .tmn-mm-search {
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding-inline: 20px 8px;
  border-radius: 999px;
  background: var(--stone);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s var(--ease);
}
.tmn-mm .tmn-mm-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 5px rgba(87, 6, 140, .08); }
.tmn-mm .tmn-mm-search > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.tmn-mm .tmn-mm-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 17px; color: inherit; outline: none; }
.tmn-mm .tmn-mm-search button { height: 44px; padding-inline: 20px; border-radius: 999px; background: var(--violet-deep); color: var(--paper); font-weight: 700; font-size: 15px; }
.tmn-mm .tmn-mm-popular { margin-top: 22px; }
.tmn-mm .tmn-mm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tmn-mm .tmn-mm-chips a { padding: 8px 16px; border-radius: 999px; background: var(--stone); font-size: 14px; transition: background-color .3s, color .3s; }
.tmn-mm .tmn-mm-chips a:hover { background: var(--violet); color: var(--paper); }

.tmn-mm .tmn-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(18, 10, 25, .3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.tmn-mm .tmn-scrim.is-visible { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }

/* ---------- Mobile drawer (drill-down) ---------- */
.tmn-mm .tmn-drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  color: var(--ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .6s var(--ease-in-out), visibility 0s linear .6s;
}
.tmn-mm .tmn-drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-in-out), visibility 0s; }
.tmn-mm .tmn-drawer__levels { position: absolute; inset: 0; overflow: hidden; }
/* keeps scrolled content from sliding under the logo bar */
.tmn-mm .tmn-drawer::before { content: ""; position: absolute; z-index: 2; inset-inline: 0; top: 0; height: calc(var(--nav-h) + 30px); background: linear-gradient(to bottom, var(--paper) 72%, rgba(255, 252, 242, 0)); pointer-events: none; }
.tmn-mm .tmn-drawer__level {
  position: absolute; inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--nav-h) + 40px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  display: grid; align-content: start; gap: 22px;
  transform: translateX(-100%);           /* RTL: sub-levels wait off to the left */
  transition: transform .55s var(--ease-out), opacity .4s var(--ease);
}
.tmn-mm .tmn-drawer__level[data-level="root"] { transform: none; }
.tmn-mm .tmn-drawer__level.is-current { transform: none; }
.tmn-mm .tmn-drawer__level.is-behind { transform: translateX(30%); opacity: 0; }
.tmn-mm .tmn-drawer__list > li { border-bottom: 1px solid var(--line); }
.tmn-mm .tmn-drawer__link {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 300;
  text-align: start;
}
.tmn-mm .tmn-drawer__chev { width: 20px; height: 20px; opacity: .5; }
.tmn-mm .tmn-drawer__ext { width: 15px; height: 15px; opacity: .45; }
.tmn-mm .tmn-drawer.is-open .tmn-drawer__list > li { animation: tmn-drawer-in .6s var(--ease-out) both; }
.tmn-mm .tmn-drawer.is-open .tmn-drawer__list > li:nth-child(2) { animation-delay: .05s; }
.tmn-mm .tmn-drawer.is-open .tmn-drawer__list > li:nth-child(3) { animation-delay: .1s; }
.tmn-mm .tmn-drawer.is-open .tmn-drawer__list > li:nth-child(4) { animation-delay: .15s; }
.tmn-mm .tmn-drawer.is-open .tmn-drawer__list > li:nth-child(5) { animation-delay: .2s; }
.tmn-mm .tmn-drawer.is-open .tmn-drawer__list > li:nth-child(6) { animation-delay: .25s; }
@keyframes tmn-drawer-in { from { opacity: 0; transform: translateY(14px); } }
.tmn-mm .tmn-drawer__foot { display: grid; gap: 14px; margin-top: 6px; }
.tmn-mm .tmn-drawer__foot .tmn-btn { width: 100%; }
.tmn-mm .tmn-drawer__foot .tmn-mm-search { height: 54px; }
.tmn-mm .tmn-drawer__foot .tmn-mm-search button { height: 40px; }
.tmn-mm .tmn-drawer__utility { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.tmn-mm .tmn-drawer__back { display: inline-flex; align-items: center; gap: 8px; justify-self: start; height: 40px; padding-inline: 4px 14px; font-size: 15px; color: var(--muted); }
.tmn-mm .tmn-drawer__back svg { width: 18px; height: 18px; }
.tmn-mm .tmn-drawer__heading { font-family: var(--font-display); font-size: 32px; font-weight: 300; line-height: 1.2; margin-top: -6px; }
.tmn-mm .tmn-drawer__level .tmn-mm-quick { grid-template-columns: 1fr; margin: 0; }
.tmn-mm .tmn-drawer__level .tmn-mm-tiles { grid-template-columns: repeat(2, 1fr); }
.tmn-mm .tmn-drawer__level .tmn-mm-promo { min-height: 240px; }
.tmn-mm .tmn-drawer__level .tmn-mm-link { padding-block: 9px; }

html.tmn-lock { overflow: hidden; }

/* ---------- Header breakpoints ---------- */
@media (max-width: 1360px) {
  .tmn-mm .tmn-nav__item { padding-inline: 11px; }
  .tmn-mm .tmn-utility__tag { display: none; }
  .tmn-mm .tmn-utility__inner { justify-content: flex-end; }
}
@media (max-width: 1199px) {
  .tmn-mm .tmn-utility { display: none; }
  .tmn-mm .tmn-nav { grid-template-columns: auto 1fr; padding-inline: 16px 6px; margin-top: 12px; }
  .tmn-mm .tmn-nav__main,
.tmn-mm .tmn-nav__icon,
.tmn-mm .tmn-nav__end .tmn-btn--cta,
.tmn-mm .tmn-nav__store span { display: none; }
  .tmn-mm .tmn-nav__logo { justify-self: start; }
  .tmn-mm .tmn-nav__toggle { display: inline-flex; }
  .tmn-mm .tmn-mega,
.tmn-mm .tmn-scrim { display: none; }
  .tmn-mm .tmn-header.is-sheet-open .tmn-nav { color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tmn-mm .tmn-header.is-sheet-open .tmn-nav__toggle span { background: transparent; }
  .tmn-mm .tmn-header.is-sheet-open .tmn-nav__toggle span::before { transform: rotate(45deg); }
  .tmn-mm .tmn-header.is-sheet-open .tmn-nav__toggle span::after { transform: rotate(-45deg); }
}



/* Tone: dark items over a light page top */
.tmn-mm[data-tone="dark"] .tmn-header:not(.is-solid):not(.is-mega-open):not(.is-sheet-open) .tmn-nav { color: var(--ink); }
.tmn-mm[data-tone="dark"] .tmn-header:not(.is-solid):not(.is-top):not(.is-mega-open):not(.is-sheet-open) .tmn-nav {
  background: rgba(255, 252, 242, .72);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tmn-mm[data-tone="dark"] .tmn-header.is-top:not(.is-mega-open) .tmn-nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.tmn-mm[data-tone="dark"] .tmn-header .tmn-logo { --mark: url(#tmn-menu-grad); }
.tmn-mm[data-tone="dark"] .tmn-header .tmn-logo__word { color: var(--violet-deep); }
.tmn-mm[data-tone="dark"] .tmn-header .tmn-nav .tmn-btn--cta { --btn-bg: var(--violet-deep); --btn-fg: var(--paper); }
.tmn-mm[data-tone="dark"] .tmn-header:not(.is-solid) .tmn-utility { color: var(--muted); }
.tmn-mm[data-tone="dark"] .tmn-header:not(.is-solid) .tmn-utility__links a:hover { color: var(--ink); }
.tmn-mm[data-tone="dark"] .tmn-header:not(.is-solid) .tmn-nav__icon:hover,
.tmn-mm[data-tone="dark"] .tmn-header:not(.is-solid) .tmn-nav__store:hover { background: rgba(26, 18, 34, .06); }

/* Logo: both uploaded versions share one cell, centred, so swapping them never moves it */
.tmn-mm .tmn-logo.tmn-logo--custom { display: grid; place-items: center; gap: 0; }
@media (min-width: 1200px) {
  /* the logo column stays in the exact middle; long side lists never push it */
  .tmn-mm .tmn-nav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .tmn-mm .tmn-nav__item { padding-inline: 10px; }
}
/* Bar height on desktop (Settings → قائمة تمن → ارتفاع الشريط) */
@media (min-width: 1200px) {
  .tmn-mm { --nav-h: var(--tmn-bar-h, 76px); }
  .tmn-mm .tmn-header.is-compact .tmn-nav { height: var(--tmn-bar-h-compact, 68px); }
}

/* Browsers can keep the previous state's value when a transitioned colour comes from a
   variable that changes with the header state (seen in Chrome and Safari: white text on a
   white button after closing a menu). The button's colours therefore switch instantly. */
.tmn-mm .tmn-btn { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease); }

/* Corners: a real radius (half the bar's height) instead of 999px, so opening a menu
   eases smoothly to 28px rather than sitting still and snapping at the end */
.tmn-mm .tmn-nav { border-radius: calc(var(--nav-h) / 2); }
.tmn-mm .tmn-header.is-compact .tmn-nav { border-radius: 29px; }
@media (min-width: 1200px) {
  .tmn-mm .tmn-header.is-compact .tmn-nav { border-radius: calc(var(--tmn-bar-h-compact, 68px) / 2); }
}
.tmn-mm .tmn-header.is-mega-open .tmn-nav { border-radius: 28px; }

/* Logo height (Settings → قائمة تمن → الشعار): desktop, and phones/tablets below 1200px */
.tmn-mm .tmn-logo__img { height: var(--tmn-logo-h, 34px); max-width: none; }
.tmn-mm .tmn-logo__mark { width: var(--tmn-logo-h, 34px); height: var(--tmn-logo-h, 34px); }
.tmn-mm .tmn-logo__word { font-size: calc(var(--tmn-logo-h, 34px) * .65); }
@media (max-width: 1199px) {
  .tmn-mm .tmn-logo__img { height: var(--tmn-logo-h-m, 30px); }
  .tmn-mm .tmn-logo__mark { width: var(--tmn-logo-h-m, 30px); height: var(--tmn-logo-h-m, 30px); }
  .tmn-mm .tmn-logo__word { font-size: calc(var(--tmn-logo-h-m, 30px) * .65); }
}

/* Brand text colours: violet on light surfaces, TMN white on dark ones */
.tmn-mm { --ink: #57068C; --ink-soft: #57068C; }

/* The call-to-action looks like the page's own buttons: cream with violet text at the top */
.tmn-mm .tmn-nav .tmn-btn--cta::after { display: none; }

/* Font weight and sizes (Settings → قائمة تمن → الخط) */
.tmn-mm { --tmn-fw: 700; --tmn-fs-nav: var(--tmn-fs-nav-lg, 15px); --tmn-fs-link: 15px; --tmn-fs-drawer: 24px; }
@media (min-width: 1440px) { .tmn-mm { --tmn-fs-nav: var(--tmn-fs-nav-xl, 16px); } }
.tmn-mm .tmn-nav__item { font-size: var(--tmn-fs-nav); font-weight: var(--tmn-fw); }
.tmn-mm .tmn-mm-link .tmn-mm-t,
.tmn-mm .tmn-mm-quick__card .tmn-mm-t,
.tmn-mm .tmn-mm-feat .tmn-mm-t { font-size: var(--tmn-fs-link); font-weight: var(--tmn-fw); }
.tmn-mm .tmn-drawer__link { font-size: var(--tmn-fs-drawer); font-weight: var(--tmn-fw); }

/* Boxed links next to the call-to-action (e.g. the store) */
.tmn-mm .tmn-nav__box {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding-inline: 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 252, 242, .38);
  font-size: var(--tmn-fs-nav); font-weight: var(--tmn-fw);
  white-space: nowrap;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tmn-mm .tmn-nav__box > svg, .tmn-mm .tmn-nav__box > .tmn-mm-ico--box { width: 18px; height: 18px; flex: none; }
.tmn-mm .tmn-nav__box img { width: 18px; height: 18px; object-fit: contain; }
.tmn-mm .tmn-nav__box:hover { background: rgba(255, 252, 242, .12); }
.tmn-mm .tmn-header.is-solid .tmn-nav__box,
.tmn-mm .tmn-header.is-mega-open .tmn-nav__box,
.tmn-mm[data-tone="dark"] .tmn-header .tmn-nav__box { box-shadow: inset 0 0 0 1px rgba(26, 18, 34, .18); }
.tmn-mm .tmn-header.is-solid .tmn-nav__box:hover,
.tmn-mm .tmn-header.is-mega-open .tmn-nav__box:hover,
.tmn-mm[data-tone="dark"] .tmn-header .tmn-nav__box:hover { background: rgba(26, 18, 34, .06); }
@media (max-width: 1199px) { .tmn-mm .tmn-nav__box { display: none; } }
