/* Keep the existing Mharty header usable on its mobile breakpoint. */
@media only screen and (max-width: 980px) {
  body.mh_no_header_padding #main-header {
    min-height: 64px;
  }
  #main-header > .container {
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
  }
  #main-header #logo {
    height: 44px;
    max-height: 44px;
    width: auto;
  }
  #main-header .mh-top-navigation-icons {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  #main-header #mh_top_search,
  #main-header .mh-top-navigation-icons > .mh_cart_wrapper,
  #main-header .mh-top-navigation-icons > .mobile-menu-trigger-icon {
    width: 44px;
    height: 44px;
    margin: 0;
    line-height: 44px;
  }
  #main-header #mh_top_search,
  #main-header .mh-cart-info,
  #main-header .mh-top-navigation-icons > .mobile-menu-trigger-icon > .sandwich {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  #top-header.mh-has-promo {
    min-height: 0;
  }
  #top-header .mh-promo {
    position: relative;
  }
  #top-header .mh-promo > .container {
    box-sizing: border-box;
    padding-right: 48px;
    padding-left: 48px;
  }
  #top-header .mh-promo-button {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    margin: 4px 0 8px;
  }
}

/* Let Elementor's grid control card widths after cached WooCommerce CSS is merged. */
body .elementor-products-grid ul.products.elementor-grid > li.product {
  width: 100% !important;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
}

/* Official Noto Kufi Arabic Arabic subset; source in noto-kufi-arabic-official.css. */
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/mu-plugins/falcon-design-assets/noto-kufi-arabic-normal-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/mu-plugins/falcon-design-assets/noto-kufi-arabic-normal-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* Keep the full desktop navigation aligned after the Arabic font is restored. */
@media only screen and (min-width: 981px) {
  #main-header > .container {
    display: flex;
    align-items: center;
    gap: 20px;
    width: calc(100% - 40px);
    max-width: 1280px;
    min-height: 80px;
    padding: 12px 0;
    box-sizing: border-box;
  }
  #main-header > .container::before,
  #main-header > .container::after {
    display: none;
  }
  #main-header > .container > .mh_logo {
    flex: 0 0 auto;
    float: none;
    margin: 0;
    line-height: 1;
  }
  #main-header .mh-top-navigation-wrapper {
    flex: 1 1 auto;
    min-width: 0;
  }
  #main-header #mh-top-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
    float: none;
    width: 100%;
  }
  #main-header #top-menu-nav {
    flex: 1 1 auto;
    min-width: 0;
    float: none;
  }
  #main-header #top-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    float: none;
    width: auto;
  }
  #main-header #top-menu > li {
    float: none;
    margin: 0;
    padding: 0;
  }
  #main-header #top-menu > li > a {
    display: block;
    padding: 6px 0;
    line-height: 24px;
    white-space: nowrap;
  }
  #main-header #top-menu > li > a .mhc-menu-item-link-head {
    line-height: 24px;
  }
  #main-header .mh-top-navigation-icons {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    float: none;
  }
  #main-header #mh_top_search,
  #main-header .mh-top-navigation-icons > .mh_cart_wrapper {
    width: 36px;
    height: 44px;
    margin: 0;
    line-height: 44px;
  }
  #main-header #mh_top_search,
  #main-header .mh-cart-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 44px;
  }
}
