/* ---- Compact header (Jumia-style density, Tooluxe look) — v1.3 ---- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; margin: 0; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.tlh { position: relative; background: #0D0D0D; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 24px -16px rgba(0,0,0,.6); }
.tlh__bar, .tlh__cats-inner, .tlh__mega-inner { width: min(1240px, 100% - 2 * clamp(16px, 3vw, 40px)); margin-inline: auto; }
.tlh__bar { display: flex; align-items: center; gap: 28px; min-height: 72px; }

/* Logo: the SVG has ~8% built-in padding, so 52px shows a ~44px mark */
.tlh__logo { flex: none; line-height: 0; margin-left: -6px; }
.tlh__logo img { height: 52px; width: auto; display: block; }

.tlh__burger { display: none; }

/* Search */
.tlh .tlh__search { flex: 1 1 auto; max-width: 660px; margin: 0 auto !important; }
.tlh .tlh__search .wp-block-search__inside-wrapper { height: 44px; padding: 0 !important; border: 0 !important; border-radius: 999px; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.tlh .tlh__search .wp-block-search__input { height: 44px; padding: 0 18px !important; border: 0 !important; background: transparent;
  font-size: .9375rem; color: #0D0D0D; }
.tlh .tlh__search .wp-block-search__input::placeholder { color: #8A8A8A; }
.tlh .tlh__search .wp-block-search__button { height: 36px; margin: 4px !important; padding: 0 16px !important; border-radius: 999px !important;
  background: #D4A857 !important; color: #0D0D0D !important; }
.tlh .tlh__search .wp-block-search__button:hover { background: #E2BC72 !important; }
.tlh .tlh__search .wp-block-search__button svg { width: 20px; height: 20px; fill: currentColor; }

/* Actions */
.tlh__actions { flex: none; gap: 20px !important; align-items: center; }
.tlh__wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: .875rem; font-weight: 500; }
.tlh__wa svg { width: 22px; height: 22px; fill: none; stroke: #25D366; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tlh__wa:hover { color: #D4A857; }
.tlh .wc-block-customer-account a, .tlh .wc-block-mini-cart__button { color: #fff !important; padding: 0 !important; }
.tlh .wc-block-customer-account a:hover, .tlh .wc-block-mini-cart__button:hover { color: #D4A857 !important; }
.tlh .wc-block-customer-account svg, .tlh .wc-block-mini-cart__icon { width: 24px; height: 24px; }
.tlh .wc-block-mini-cart__badge { background: #D4A857 !important; color: #0D0D0D !important; font-weight: 700; }

/* ---- Category row ---- */
.tlh__cats { position: relative; border-top: 1px solid rgba(255,255,255,.08); background: #121212; }
.tlh__cats-inner { display: flex; align-items: center; gap: 8px; height: 44px; }
.tlh__cats button { font: inherit; cursor: pointer; }
.tlh__all { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; margin-right: 8px;
  border: 0; border-radius: 999px; background: #D4A857; color: #0D0D0D; font-size: .8125rem; font-weight: 600; }
.tlh__all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tlh__all:hover, .tlh__all[aria-expanded="true"] { background: #E2BC72; }

.tlh__row { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.tlh__item { position: relative; flex: none; }
.tlh__item[hidden], .tlh__item.is-overflow { display: none; }
.tlh__item > a, .tlh__item > button { display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 10px; border: 0; background: none;
  color: #C9C9C9; text-decoration: none; font-size: .8125rem; font-weight: 500; letter-spacing: .01em; position: relative; }
.tlh__item.has-drop > a::after, .tlh__item.has-drop > button::after { content: ""; width: 6px; height: 6px; margin-top: -3px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .6; }
.tlh__item > a:hover, .tlh__item > button:hover, .tlh__item:focus-within > a, .tlh__item > a[aria-current="page"] { color: #fff; }
.tlh__item > a[aria-current="page"] { box-shadow: inset 0 -2px 0 #D4A857; }

.tlh__help { flex: none; margin-left: auto; padding-left: 12px; color: #C9C9C9; font-size: .8125rem; text-decoration: none; }
.tlh__help:hover { color: #D4A857; }

/* Dropdowns (desktop, hover or keyboard focus) */
.tlh__drop { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px; padding: 8px; border-radius: 0 0 12px 12px;
  background: #fff; box-shadow: 0 18px 40px -12px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s; }
.tlh__drop--right { left: auto; right: 0; }
.tlh__drop ul { margin: 0; padding: 0; list-style: none; }
.tlh__drop a { display: block; padding: 8px 12px; border-radius: 8px; color: #1A1A1A; font-size: .875rem; text-decoration: none; white-space: nowrap; }
.tlh__drop a:hover, .tlh__drop a:focus { background: #F8F8F8; color: #0D0D0D; }
.tlh__drop-all a { color: #9A7426; font-weight: 600; }
@media (hover: hover) and (min-width: 1024px) {
  .tlh__item.has-drop:hover > .tlh__drop, .tlh__item.has-drop:focus-within > .tlh__drop { opacity: 1; visibility: visible; transform: none; }
}
.tlh__more-list .tlh__more-sub a { padding-left: 24px; font-size: .8125rem; color: #555; }

/* ---- All categories panel ---- */
.tlh__mega { position: absolute; top: 100%; left: 0; right: 0; z-index: 70; background: #fff; color: #1A1A1A;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.4); max-height: calc(100vh - 140px); overflow-y: auto; }
.tlh__mega[hidden] { display: none; }
.tlh__mega-inner { padding: 20px 0 24px; }
.tlh__mega-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tlh__mega-head a { color: #9A7426; font-weight: 600; font-size: .875rem; text-decoration: none; }
.tlh__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F2F2F2; color: #1A1A1A; font-size: 22px; line-height: 1; cursor: pointer; }
.tlh__mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 28px; }
.tlh__mega-title { display: block; margin-bottom: 6px; color: #0D0D0D; font-weight: 700; font-size: .9375rem; text-decoration: none; }
.tlh__mega-title small { color: #999; font-weight: 500; font-size: .75rem; }
.tlh__mega-title:hover { color: #9A7426; }
.tlh__mega-col ul { margin: 0; padding: 0; list-style: none; }
.tlh__mega-col li a { display: block; padding: 4px 0; color: #4A4A4A; font-size: .875rem; text-decoration: none; }
.tlh__mega-col li a:hover { color: #9A7426; }
.tlh__mega-help { display: none; }

/* ---- Tablet and phone ---- */
@media (max-width: 1023px) {
  .tlh__help { display: none; }
  .tlh__cats-inner { overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .tlh__cats-inner::-webkit-scrollbar { display: none; }
  .tlh__item.has-drop > a::after { display: none; }
  .tlh__drop { display: none; }
}
@media (max-width: 782px) {
  .tlh__bar { flex-wrap: wrap; gap: 10px 14px; min-height: 0; padding: 10px 0 12px; }
  .tlh__burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 36px; padding: 0 7px;
    border: 0; border-radius: 8px; background: rgba(255,255,255,.06); cursor: pointer; }
  .tlh__burger span { display: block; height: 2px; border-radius: 2px; background: #fff; }
  .tlh__logo { margin-left: -4px; }
  .tlh__logo img { height: 42px; }
  .tlh__actions { margin-left: auto; gap: 16px !important; }
  .tlh__wa span { display: none; }
  .tlh .tlh__search { order: 3; flex-basis: 100%; max-width: none; }
  .tlh .tlh__search .wp-block-search__inside-wrapper, .tlh .tlh__search .wp-block-search__input { height: 42px; }
  .tlh .tlh__search .wp-block-search__button { height: 34px; }
  .tlh__all { display: none; }
  .tlh__cats-inner { height: 40px; }
  .tlh__item > a { height: 40px; padding: 0 9px; }
  /* Panel becomes a full-width drawer */
  .tlh__mega { position: fixed; top: var(--tlh-bottom, 0); bottom: 0; max-height: none; }
  .tlh__mega-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .tlh__mega-help { display: block; margin-top: 22px; padding: 12px 0; border-top: 1px solid #eee; color: #9A7426; font-weight: 600; text-decoration: none; }
}
body.tlh-locked { overflow: hidden; }
