/* Approved Discovery shell. WoodMart still renders and operates every header tool. */
body.zf-discovery-shell {
  --zfd-shell-ivory: #f9f7f1;
  --zfd-shell-ink: #0f3b35;
}

.zf-discovery-shell .whb-header {
  --wd-header-el-font: Tajawal, sans-serif;
  --wd-form-bg: #f4f2ec;
  --wd-form-brd-color: #d5d2ca;
  --wd-form-color: #0f3b35;
  --wd-form-brd-radius: 4px;
  margin-bottom: 0;
  color: var(--zfd-shell-ink);
}
html[lang="en"] .zf-discovery-shell .whb-header {
  --wd-header-el-font: Manrope, sans-serif;
}
.zf-discovery-shell .whb-header :is(.whb-general-header, .whb-header-bottom) {
  background-color: var(--zfd-shell-ivory);
  color: var(--zfd-shell-ink);
}
.zf-discovery-shell .whb-header .container {
  width: 100%;
  max-width: var(--zfd-content-width, 1440px);
  padding-inline: clamp(20px, 3.3vw, 48px);
}
.zf-discovery-shell .whb-header .whb-flex-row { direction: ltr; }
.zf-discovery-shell .whb-header .site-logo { padding: 0; }
.zf-discovery-shell .whb-header .site-logo img {
  width: 230px;
  max-width: 100%;
  max-height: 72px;
  padding: 0;
  filter: none;
  object-fit: contain;
}
.zf-discovery-shell .whb-header :is(.wd-tools-element > a, .zf-language) {
  color: var(--zfd-shell-ink);
}
.zf-discovery-shell .whb-header .wd-tools-element > a {
  min-width: 44px;
  min-height: 44px;
  padding-inline: 10px;
}
.zf-discovery-shell .whb-header .wd-tools-icon { font-size: 24px; }
.zf-discovery-shell .whb-header .zf-native-language {
  padding-inline: 12px 0;
  border-left: 1px solid rgba(15, 59, 53, .35);
  margin-left: 8px;
}
.zf-discovery-shell .whb-header .zf-language {
  display: inline-flex;
  min-width: 32px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  letter-spacing: .03em;
  font-weight: 500;
}
.zf-discovery-shell .whb-header .wd-search-form { width: 100%; }
.zf-discovery-shell .whb-header .searchform {
  margin: 0;
  --wd-form-height: 44px;
  --wd-form-bg: #f4f2ec;
  --wd-form-brd-color: #d5d2ca;
  --wd-form-brd-radius: 4px;
  --wd-form-color: #0f3b35;
}
.zf-discovery-shell .whb-header .searchform input[type="text"] {
  height: 44px;
  font: inherit;
  font-size: 15px;
  color: #0f3b35;
  background: #f4f2ec;
  border: 1px solid #d5d2ca;
  border-radius: 4px;
}
.zf-discovery-shell .whb-header .searchform input::placeholder { color: #60645e; opacity: 1; }
.zf-discovery-shell .whb-header .searchform .searchsubmit {
  width: 44px;
  min-width: 44px;
  color: #0f3b35;
  background: transparent;
  border: 0;
}
html[lang="ar"] .zf-discovery-shell .whb-header .searchform { direction: rtl; }
html[lang="en"] .zf-discovery-shell .whb-header .searchform { direction: ltr; }
.zf-discovery-shell .whb-header .wd-nav-main > li > a {
  min-height: 40px;
  padding-block: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #0f3b35;
  text-transform: none;
}
.zf-discovery-shell .whb-header .wd-nav-main { gap: 32px; }
.zf-discovery-shell .whb-header .wd-nav-main > li > a:hover { color: #935637; }
.zf-discovery-shell .whb-header :is(a, button, input):focus-visible {
  outline: 2px solid #935637;
  outline-offset: 3px;
}
.zf-discovery-shell .whb-header .wd-dropdown-search { text-align: start; }
.zf-discovery-shell .mobile-nav .wd-nav-mobile > li > a { font-weight: 700; }
.zf-discovery-shell .whb-header .wd-nav-main > .menu-item-has-children > a::after {
  font-size: 15px;
  font-weight: 700;
  color: #0f3b35;
  opacity: 1;
  margin-inline-start: 9px;
}
.zf-discovery-shell .mobile-nav .wd-nav-opener::after { font-size: 16px; font-weight: 700; }
.zf-discovery-shell :is(.whb-header, .mobile-nav) .nav-link-text:has(> .zfd-menu-house-logo) {
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
}
.zf-discovery-shell :is(.whb-header, .mobile-nav) .zfd-menu-house-logo {
  display: inline-block;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  max-width: 44px;
  object-fit: contain;
  margin-inline-end: 12px;
  vertical-align: middle;
  mix-blend-mode: multiply;
  filter: none;
}
.zf-discovery-shell :is(.whb-header, .mobile-nav) .zfd-menu-house-name { font-weight: 700; vertical-align: middle; }

/* WordPress serves the native Arabic CSS; English drilldown follows WoodMart's LTR offsets. */
html[lang="en"] .zf-discovery-shell .mobile-nav .wd-drilldown-slide.wd-drilldown-hide > li > :is(a, span),
html[lang="en"] .zf-discovery-shell .mobile-nav .wd-drilldown-slide .wd-drilldown-hide > li > :is(a, span) {
  transform: translate3d(-50px, 0, 0);
}
html[lang="en"] .zf-discovery-shell .mobile-nav .wd-drilldown-slide .menu-item > [class*="sub-menu"] {
  box-shadow: -1px 0 0 0 var(--brdcolor-gray-300);
}
html[lang="en"] .zf-discovery-shell .mobile-nav .wd-drilldown-slide .menu-item > [class*="sub-menu"]:is(.wd-drilldown-show, .wd-drilldown-hide) {
  transform: translate3d(calc(-100% - 1px), 0, 0);
}
html[lang="en"] .zf-discovery-shell .mobile-nav .wd-nav-opener::after { content: "\f113"; }
html[lang="en"] .zf-discovery-shell .mobile-nav .wd-drilldown-back .wd-nav-opener::after { content: "\f114"; }

@media (min-width: 1025px) {
  /* Keep the purchased dropdown behaviour; carry Zaffir's identity into its panel. */
  .zf-discovery-shell .whb-header .wd-nav-main > .menu-item-has-children > a {
    font-weight: 700;
  }
  .zf-discovery-shell .whb-header .wd-nav-main .wd-dropdown-menu.wd-design-default {
    --wd-dropdown-width: 248px;
    --wd-dropdown-padding: 10px;
    padding: 10px;
    border: 1px solid #d5d9cc;
    border-top: 3px solid #0f3b35;
    border-radius: 0 0 5px 5px;
    background: #f9f7f1;
    color: #0f3b35;
    box-shadow: 0 14px 30px rgba(15, 59, 53, .13);
    text-align: start;
  }
  .zf-discovery-shell .whb-header .wd-dropdown-menu > .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .zf-discovery-shell .whb-header .wd-nav-main .wd-dropdown-menu .wd-sub-menu {
    --sub-menu-color: #0f3b35;
    --sub-menu-color-hover: #0f3b35;
  }
  .zf-discovery-shell .whb-header .wd-nav-main .wd-dropdown-menu .wd-sub-menu > li > a {
    min-height: 46px;
    padding: 10px 15px;
    border-radius: 3px;
    color: #0f3b35;
    font-family: var(--wd-header-el-font, Tajawal, sans-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: none;
  }
  .zf-discovery-shell .whb-header .wd-nav-main .wd-dropdown-menu .wd-sub-menu > li + li {
    border-top: 1px solid #e6e1d7;
  }
  .zf-discovery-shell .whb-header .wd-nav-main .wd-dropdown-menu .wd-sub-menu > li > a:is(:hover, :focus-visible),
  .zf-discovery-shell .whb-header .wd-nav-main .wd-dropdown-menu .wd-sub-menu > .current-menu-item > a {
    background: #e9eee5;
    color: #0f3b35;
  }
  .zf-discovery-shell .whb-header .wd-nav-main .wd-dropdown-menu a:focus-visible {
    outline: 2px solid #935637;
    outline-offset: -2px;
  }
  .zf-discovery-shell .whb-general-header .whb-flex-row { column-gap: clamp(24px, 3vw, 44px); }
  .zf-discovery-shell .whb-general-header .whb-col-left {
    flex: 0 0 230px;
    margin: 0;
    justify-content: flex-start;
  }
  .zf-discovery-shell .whb-general-header .whb-col-center {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
  }
  .zf-discovery-shell .whb-general-header .whb-col-right {
    flex: 0 0 auto;
    gap: 4px;
    margin: 0;
    justify-content: flex-end;
  }
  .zf-discovery-shell .whb-header-bottom .whb-col-center { justify-content: center; }
  .zf-discovery-shell .whb-header-bottom .wd-header-nav { padding-inline: 0; }
}

@media (max-width: 1024px) {
  .zf-discovery-shell .whb-header .container { padding-inline: 20px; }
  .zf-discovery-shell .whb-general-header .whb-mobile-left {
    flex: 0 0 auto;
    margin: 0;
    justify-content: flex-start;
  }
  .zf-discovery-shell .whb-general-header .whb-mobile-center { display: none; }
  .zf-discovery-shell .whb-general-header .whb-mobile-right {
    flex: 1 1 auto;
    margin: 0;
    justify-content: flex-end;
    gap: 0;
  }
  .zf-discovery-shell .whb-header .site-logo img {
    width: 140px;
    max-height: 54px;
  }
  .zf-discovery-shell .whb-header .zf-native-language {
    margin-left: 4px;
    padding-inline: 4px 0;
  }
  .zf-discovery-shell .whb-header .zf-language { min-width: 28px; font-size: 12px; }
  .zf-discovery-shell .whb-header-bottom .whb-col-mobile { margin: 0; }
  .zf-discovery-shell .whb-header-bottom .wd-search-form { padding: 0; }
  .zf-discovery-shell .whb-header .searchform input[type="text"] { font-size: 16px; }
}
@media (max-width: 374px) {
  .zf-discovery-shell .whb-header .container { padding-inline: 12px; }
  .zf-discovery-shell .whb-header .site-logo img { width: 118px; }
}

/* The same native footer blocks serve inner pages, so only their new shell is global. */
.zaffir-native.zf-discovery-shell .wd-footer {
  --wd-text-color: #4e5d58;
  --wd-title-color: #0f3b35;
  --wd-link-color: #0f3b35;
  --wd-link-color-hover: #935637;
  background: #f9f7f1;
  color: #0f3b35;
  border-top: 1px solid #e6e1d7;
}
.zf-discovery-shell .wd-footer .main-footer {
  max-width: var(--zfd-content-width, 1440px);
  padding: 0 clamp(20px, 3.3vw, 48px);
}
.zfd-footer { color: #0f3b35; padding-block: 24px 18px; }
.zfd-footer-main { display: flex; align-items: center; gap: 28px; direction: ltr; }
.zfd-footer-logo { display: block; width: 190px; flex: 0 0 190px; }
.zfd-footer-logo img { width: 100%; height: auto; filter: none; }
.zfd-footer-nav { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
html[lang="ar"] .zfd-footer-nav { direction: rtl; }
.zfd-footer-nav a { color: #0f3b35; font-size: 14px; line-height: 1.5; padding-block: 9px; }
.zfd-footer-nav a:hover { color: #935637; }
.zfd-footer-social { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; }
.zfd-footer-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: #0f3b35; }
.zfd-footer-social a:is(:hover, :focus-visible) { background: #0f3b35; color: #f9f7f1; }
.zfd-footer-social svg { display: block; flex: 0 0 auto; }
/* Expose the same native dropdown while keyboard focus is inside its parent. */
@media(min-width:1025px){
  .zf-discovery-shell .whb-header .wd-nav-main .menu-item-has-children:focus-within > .wd-dropdown-menu{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)}
}
.zfd-footer-language { flex: 0 0 auto; }
.zfd-footer-language .zf-language { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; color: #0f3b35; }
.zfd-footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid #e6e1d7;
  color: #59665e;
  font-size: 12px;
  line-height: 1.6;
}
.zfd-footer-bottom p { margin: 0; }
.zfd-footer-bottom small { margin-inline-start: auto; font: inherit; white-space: nowrap; }
.zfd-footer-bottom .zf-motion-control { color: #59665e; font-size: 12px; padding-block: 2px; }
.zfd-footer :is(a, button):focus-visible { outline: 2px solid #935637; outline-offset: 3px; }
@media (max-width: 767px) {
  .zfd-footer-main { flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .zfd-footer-logo { flex-basis: 156px; width: 156px; }
  .zfd-footer-language { margin-left: auto; }
  .zfd-footer-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 4px 20px; }
  .zfd-footer-bottom { gap: 6px 16px; }
  .zfd-footer-bottom p { flex-basis: 100%; }
  .zfd-footer-bottom small { margin-inline-start: 0; }
}
