/* Header: the search button + quick-search panel, and the country chip.
   Neutral greys; blue only on focus. */

/* ── Search button */
.tz-find { margin-inline-start: auto; flex: none; display: inline-flex; align-items: center; gap: 10px; width: 232px; height: 42px; padding-inline: 14px 7px; border-radius: 12px; background: #f5f7fa; box-shadow: inset 0 0 0 1px #e4e7ec; color: #667085; font: 500 .875rem/1 var(--f-head); cursor: pointer; transition: background-color .15s, box-shadow .15s, color .15s; }
.tz-find:hover { background: #fff; box-shadow: inset 0 0 0 1px #c4cad4, 0 1px 2px rgba(16, 24, 40, .06); color: #344054; }
.tz-find:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px rgba(0, 74, 173, .12); }
.tz-find > i { flex: none; font-size: .875rem; color: #344054; }
.tz-find__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.tz-find__k, .tz-pal kbd { flex: none; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; display: inline-grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px #e4e7ec, 0 1px 0 #e4e7ec; font: 600 .75rem/1 var(--f-body); color: #667085; }

/* ── Country chip */
.tz-geo { position: relative; flex: none; }
.tz-geo__btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 6px 12px; border: 0; border-radius: 999px; background: #f5f7fa; box-shadow: inset 0 0 0 1px #e4e7ec; color: #101828; font: 600 .8438rem/1 var(--f-head); cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.tz-geo__btn:hover, .tz-geo__btn[aria-expanded="true"] { background: #fff; box-shadow: inset 0 0 0 1px #c4cad4; }
.tz-geo__btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px rgba(0, 74, 173, .12); }
.tz-flag { flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e4e7ec; }
.tz-flag img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 12% 50%; }
.tz-flag--lg { width: 42px; height: 42px; }
.tz-geo__cur { padding: 4px 6px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #e4e7ec; font: 600 .6875rem/1 var(--f-body); letter-spacing: .04em; color: #475467; }
.tz-geo__btn > .fa-chevron-down { font-size: .5625rem; color: #98a2b3; transition: transform .2s var(--ease); }
.tz-geo__btn[aria-expanded="true"] > .fa-chevron-down { transform: rotate(180deg); }
.tz-geo__pop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 80; width: 300px; display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #e4e7ec, 0 24px 48px -20px rgba(16, 24, 40, .3); transform-origin: top; animation: tzPop .16s var(--ease); }
.rm .tz-geo__pop { animation: none; }
@keyframes tzPop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.tz-geo__head { display: flex; align-items: center; gap: 12px; }
.tz-geo__head small { display: block; font-size: .75rem; color: #667085; }
.tz-geo__head b { font: 700 1.0625rem/1.35 var(--f-head); color: #101828; }
.tz-geo__pop dl { margin: 0; border-top: 1px solid #eef0f3; }
.tz-geo__pop dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef0f3; font-size: .8125rem; }
.tz-geo__pop dt { color: #667085; }
.tz-geo__pop dd { margin: 0; font-weight: 600; color: #101828; }
.tz-geo__pop p { margin: 0; font-size: .75rem; line-height: 1.7; color: #667085; }

/* Fit the header. The theme's nav is ~500px wide inside a 1176px content box, so on desktop the
   search is a round button and the country chip is compact; below 1280px the nav moves into the
   menu and the full search field takes its place. */
.hdr__login { white-space: nowrap; }
@media (min-width: 1280px) {
  .hdr__in { gap: 10px; }
  .hdr__all { padding-inline: 16px; }
  .hdr__nav > a, .hdr__nav .dd > button { padding-inline: 7px; }
  .hdr__tools { gap: 6px; }
  .tz-find { width: 42px; padding: 0; justify-content: center; border-radius: 999px; }
  .tz-find__t, .tz-find__k { display: none; }
  .tz-geo__cur, .tz-geo__btn > .fa-chevron-down { display: none; }
  html[lang="en"] .tz-geo__name { display: none; }
  html[lang="en"] .tz-geo__btn { padding-inline: 6px; }
}
@media (max-width: 1279.98px) {  /* .98: zoomed screens can have a 1279.5px-wide window, where neither the desktop nor this layout applied */
  .hdr__nav { display: none; }
  .hdr__burger { display: grid; }
  .tz-find { flex: 1 1 auto; width: auto; min-width: 120px; max-width: 340px; }
}
@media (max-width: 900px) {
  .tz-geo__name, .tz-geo__cur, .tz-geo__btn > .fa-chevron-down { display: none; }
  .tz-geo__btn { padding-inline: 6px; }
}
@media (max-width: 760px) {
  .hdr__all { width: 44px; padding: 0; justify-content: center; gap: 0; }
  .hdr__all-t, .hdr__all > .fa-chevron-down { display: none; }
  .hdr__all-ic { display: inline-block; font-size: 1rem; }
}
@media (max-width: 560px) {
  .tz-geo { display: none; }
  .tz-find { flex: none; width: 42px; min-width: 0; padding: 0; justify-content: center; border-radius: 999px; }
  .tz-find__t, .tz-find__k { display: none; }
}

/* ── Quick-search panel */
.tz-pal { position: fixed; inset: 0; z-index: 200; display: grid; justify-items: center; align-items: start; padding: min(12vh, 96px) 16px 16px; background: rgba(16, 24, 40, .38); opacity: 0; transition: opacity .15s; }
.tz-pal.is-open { opacity: 1; }
.tz-pal[hidden] { display: none; }
.tz-pal__box { width: min(680px, 100%); max-height: min(640px, calc(100dvh - 2 * min(12vh, 96px))); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 24, 40, .08), 0 32px 64px -24px rgba(16, 24, 40, .5); transform: translateY(-6px) scale(.985); transition: transform .18s var(--ease); }
.tz-pal.is-open .tz-pal__box { transform: none; }
.rm .tz-pal, .rm .tz-pal__box { transition: none; }
.tz-pal__in { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid #eef0f3; }
.tz-pal__in > i { font-size: 1rem; color: #475467; }
.tz-pal__in input { flex: 1; min-width: 0; height: 64px; border: 0; background: none; outline: none; color: #101828; font: 500 1.125rem/1.4 var(--f-head); }
.tz-pal__in input::placeholder { color: #98a2b3; font-weight: 400; }
.tz-pal__in input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.tz-pal__clear { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f2f4f7; color: #475467; font-size: .75rem; cursor: pointer; }
.tz-pal__clear:hover { background: #e4e7ec; }
.tz-pal__esc { border: 0; cursor: pointer; }
.tz-pal__x { display: none; flex: none; height: 36px; padding: 0 4px; border: 0; background: none; color: #101828; font: 600 .9375rem/1 var(--f-head); cursor: pointer; }
.tz-pal__list { flex: 1; overflow: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.tz-pal__h { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 6px; font: 600 .75rem/1 var(--f-head); color: #98a2b3; }
.tz-pal__h button { padding: 0; border: 0; background: none; color: #667085; font: inherit; cursor: pointer; }
.tz-pal__h button:hover { color: #101828; }
.tz-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.tz-opt { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 10px; border-radius: 10px; color: #101828; text-decoration: none; cursor: pointer; scroll-margin: 8px; }
.tz-opt.is-active { background: #f2f4f7; }
.tz-opt__ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px #eef0f3; color: #475467; font-size: .875rem; }
.tz-opt__ic img { width: 30px; height: 30px; object-fit: contain; }
.tz-opt__t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tz-opt__t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .9375rem/1.4 var(--f-head); }
.tz-opt__t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: #667085; }
.tz-opt mark { padding: 0 1px; border-radius: 3px; background: #fdf0c4; color: inherit; }
.tz-opt__go { flex: none; font-size: .75rem; color: #98a2b3; opacity: 0; transition: opacity .1s; }
.tz-opt.is-active .tz-opt__go { opacity: 1; }
[dir="rtl"] .tz-opt__go { transform: scaleX(-1); }
.tz-opt--all .tz-opt__ic { background: #101828; box-shadow: none; color: #fff; }
.tz-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 6px; }
.tz-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #e4e7ec; color: #344054; font: 500 .8438rem/1 var(--f-head); text-decoration: none; cursor: pointer; }
.tz-chip img { width: 18px; height: 18px; object-fit: contain; }
.tz-chip small { font-size: .75rem; color: #98a2b3; }
.tz-chip i { font-size: .75rem; color: #98a2b3; }
.tz-chip:hover, .tz-chip.is-active { box-shadow: inset 0 0 0 1px #101828; color: #101828; }
.tz-pal__none { padding: 18px 10px 6px; font-size: .875rem; color: #667085; }
.tz-pal__foot { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-top: 1px solid #eef0f3; background: #fcfcfd; font-size: .75rem; color: #667085; }
.tz-pal__foot span { display: inline-flex; align-items: center; gap: 6px; }
.tz-pal__foot kbd { min-width: 22px; height: 22px; font-size: .6875rem; }

@media (max-width: 640px) {
  .tz-pal { padding: 0; }
  .tz-pal__box { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .tz-pal .tz-pal__esc, .tz-pal__foot { display: none; }
  .tz-pal__x { display: block; }
  .tz-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) { .tz-pal__foot, .tz-pal .tz-pal__esc { display: none; } .tz-pal__x { display: block; } }

/* Header menus: a thin line between items. It hides next to the hovered item so the hover pill stays clean. (owner-approved 2026-11-12) */
.hdr__nav .dd__menu a + a, .mega__side a.v + a.v { position: relative; }
.hdr__nav .dd__menu a + a::before, .mega__side a.v + a.v::before { content: ""; position: absolute; height: 1px; transition: opacity .15s; }
.hdr__nav .dd__menu a + a::before { top: 0; inset-inline: 12px; background: var(--line); }
.mega__side a.v + a.v::before { top: -3px; inset-inline: 8px; background: #d3e2fa; }
.hdr__nav .dd__menu a:hover::before, .hdr__nav .dd__menu a:hover + a::before,
.mega__side a.v:hover::before, .mega__side a.v:hover + a.v::before { opacity: 0; }

/* Certifications menu (كل الشهادات): the same thin line under each field and each certification row (owner-approved 2026-11-14).
   Lines only — the certification logos and the markup are untouched. The line hides next to the hovered/selected item. */
.mega__cats button + button, .mega__panel a:not(.mega__all) { position: relative; }
.mega__cats button + button::before, .mega__panel a:not(.mega__all)::before { content: ""; position: absolute; height: 1px; background: var(--line); transition: opacity .15s; pointer-events: none; }
.mega__cats button + button::before { top: -1px; inset-inline: 14px; }
.mega__panel a:not(.mega__all)::before { top: -3px; inset-inline: 10px; }
.mega__panel a:nth-child(-n+2)::before { display: none; }   /* the first row of the two-column grid has nothing above it */
.mega__cats button:hover::before, .mega__cats button:hover + button::before,
.mega__cats button[aria-selected="true"]::before, .mega__cats button[aria-selected="true"] + button::before,
.mega__panel a:hover::before, .mega__panel a:hover + a + a::before { opacity: 0; }
@media (max-width: 560px) {   /* one column on phones */
  .mega__panel a:nth-child(2)::before { display: block; }
  .mega__panel a:hover + a::before { opacity: 0; }
}
