/* EL-KAYAN category mega menu v2. Scoped to the existing category navigation only. */

@media (min-width: 768px) {
  #header .elk-mobile-toggle,
  #header .elk-mobile-content,
  #header .elk-mobile-category-image,
  #header .elk-mobile-menu-heading,
  #header .elk-mobile-shared-panel {
    display: none !important;
  }

  #header .elk-category-nav.elk-menu-v2-ready {
    position: relative !important;
    z-index: 80;
    width: 100% !important;
    margin-top: 14px !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    border: 1px solid #e5ebf1 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(7, 43, 73, .06) !important;
  }

  #header .elk-menu-v2-ready #_desktop_top_menu {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    list-style: none !important;
  }

  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu > li {
    position: static !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu > li.elk-secondary-category {
    display: none !important;
  }

  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu > li > a[data-depth="0"],
  #header .elk-menu-v2-ready .elk-all-categories-button {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin: 0 !important;
    padding: 8px 12px !important;
    overflow: hidden;
    color: #123a5c !important;
    background: transparent !important;
    border: 0 !important;
    border-inline-end: 1px solid #edf1f5 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center;
    text-transform: none !important;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
  }

  #header .elk-menu-v2-ready .elk-all-categories-button {
    gap: 8px;
    color: #fff !important;
    background: #123a5c !important;
    border-inline-end: 0 !important;
    border-radius: 0 9px 9px 0 !important;
  }

  [dir="rtl"] #header .elk-menu-v2-ready .elk-all-categories-button {
    border-radius: 9px 0 0 9px !important;
  }

  #header .elk-menu-v2-ready .elk-all-categories-button::before {
    content: "\2630";
    font-size: 18px;
    font-weight: 400;
  }

  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu > li > a[data-depth="0"]::after {
    position: absolute;
    inset-inline: 16px;
    bottom: 0;
    height: 3px;
    content: "";
    background: #d7193f;
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transform: scaleX(.4);
    transition: opacity .18s ease, transform .18s ease;
  }

  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu > li:hover > a[data-depth="0"],
  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu > li.elk-menu-active > a[data-depth="0"],
  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu > li > a[data-depth="0"]:focus {
    color: #d7193f !important;
    background: #f7f9fb !important;
    text-decoration: none !important;
  }

  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu > li:hover > a[data-depth="0"]::after,
  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu > li.elk-menu-active > a[data-depth="0"]::after,
  #header .elk-menu-v2-ready #_desktop_top_menu > .top-menu > li > a[data-depth="0"]:focus::after {
    opacity: 1;
    transform: scaleX(1);
  }

  #header .elk-menu-v2-ready .elk-product-mega,
  #header .elk-menu-v2-ready .sub-menu,
  #header .elk-menu-v2-ready .float-xs-right {
    display: none !important;
  }

  #header .elk-menu-v2-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 220px minmax(250px, .95fr) minmax(390px, 1.45fr);
    min-height: 300px;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    background: #fff;
    border: 1px solid #dfe7ee;
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(7, 43, 73, .18);
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  }

  #header .elk-menu-v2-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #header .elk-mega-categories {
    padding: 17px 12px;
    background: #f5f7f9;
    border-inline-end: 1px solid #e5ebf1;
  }

  #header .elk-mega-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    color: #294d69;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
  }

  #header .elk-mega-category-link::after {
    content: "\203A";
    color: #8394a2;
    font-size: 20px;
  }

  [dir="rtl"] #header .elk-mega-category-link::after {
    content: "\2039";
  }

  #header .elk-mega-category-link:hover,
  #header .elk-mega-category-link.is-active {
    color: #fff;
    background: #123a5c;
  }

  #header .elk-mega-category-link:hover::after,
  #header .elk-mega-category-link.is-active::after {
    color: #fff;
  }

  #header .elk-mega-details,
  #header .elk-mega-products {
    padding: 25px 24px;
  }

  #header .elk-mega-details {
    border-inline-end: 1px solid #edf1f5;
  }

  #header .elk-mega-eyebrow {
    margin: 0 0 5px;
    color: #d7193f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  #header .elk-mega-heading {
    margin: 0 0 18px;
    color: #123a5c;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.25;
  }

  #header .elk-mega-subcategories {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
  }

  #header .elk-mega-subcategory {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #405e75;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }

  #header .elk-mega-subcategory::before {
    width: 6px;
    height: 6px;
    content: "";
    background: #d7193f;
    border-radius: 50%;
  }

  #header .elk-mega-view-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    color: #123a5c;
    background: #eef3f7;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
  }

  #header .elk-mega-view-all:hover {
    color: #fff;
    background: #d7193f;
  }

  #header .elk-mega-products-title {
    margin: 0 0 14px;
    color: #123a5c;
    font-size: 15px;
    font-weight: 800;
  }

  #header .elk-mega-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  #header .elk-mega-product-card {
    min-width: 0;
    padding: 10px;
    color: #294d69;
    background: #fff;
    border: 1px solid #e5ebf1;
    border-radius: 9px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }

  #header .elk-mega-product-card:hover {
    color: #123a5c;
    border-color: #bdcad5;
    box-shadow: 0 8px 18px rgba(7, 43, 73, .10);
    transform: translateY(-2px);
  }

  #header .elk-mega-product-card img {
    display: block;
    width: 100%;
    height: 95px;
    margin-bottom: 9px;
    object-fit: contain;
    background: #fff;
  }

  #header .elk-mega-product-name {
    display: -webkit-box;
    min-height: 34px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #header .elk-mega-product-price {
    display: block;
    margin-top: 7px;
    color: #d7193f;
    font-size: 12px;
    font-weight: 800;
  }

  #header .elk-mega-loading,
  #header .elk-mega-empty {
    padding: 20px 0;
    color: #6e8292;
    font-size: 13px;
  }
}

/* Product page: keep stock counts private and replace them with a useful service note. */
body#product .product-prices .tax-shipping-delivery-label,
body#product #product-availability .alert-warning,
body#product #product-details .product-quantities {
  display: none !important;
}

body#product .elk-product-support-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  color: #294d69;
  background: #f5f8fa;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
}

body#product .elk-product-support-icon {
  color: #d7193f;
  font-family: "Material Icons";
  font-size: 25px;
  line-height: 1;
}

body#product .elk-product-support-note strong,
body#product .elk-product-support-note small {
  display: block;
}

body#product .elk-product-support-note strong {
  margin-bottom: 2px;
  color: #123a5c;
  font-size: 14px;
}

body#product .elk-product-support-note small {
  color: #60788b;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  #header #_mobile_logo h1,
  #header #_mobile_logo h1 > a {
    display: flex;
    align-items: center;
    margin: 0;
  }

  #header #_mobile_logo img.logo {
    width: 160px !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 48px !important;
    object-fit: contain !important;
  }

  #header #menu-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #fff !important;
    background: #123a5c;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    box-shadow: 0 7px 16px rgba(18, 58, 92, .18);
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
  }

  #header #menu-icon[aria-expanded="true"] {
    background: #d7193f;
    box-shadow: 0 7px 18px rgba(215, 25, 63, .24);
    transform: translateY(-1px);
  }

  #header #menu-icon .material-icons {
    font-size: 25px;
  }

  #header #mobile_top_menu_wrapper.elk-menu-v2-mobile {
    width: calc(100% + 30px) !important;
    max-height: none !important;
    margin: 10px -15px 0 !important;
    padding: 0 0 12px !important;
    overflow: visible !important;
    background: #f5f7f9 !important;
    border-top: 1px solid #e5ebf1;
    border-bottom: 1px solid #e5ebf1;
    box-shadow: 0 10px 24px rgba(7, 43, 73, .10);
  }

  #header .elk-menu-v2-mobile #_mobile_top_menu {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #header .elk-mobile-menu-heading {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 10px 14px;
    color: #123a5c;
    background: #fff;
    border-bottom: 1px solid #e5ebf1;
    font-size: 13px;
    font-weight: 800;
  }

  #header .elk-mobile-menu-heading::before {
    width: 4px;
    height: 18px;
    margin-inline-end: 8px;
    content: "";
    background: #d7193f;
    border-radius: 4px;
  }

  #header .elk-menu-v2-mobile #_mobile_top_menu > .top-menu {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow: visible !important;
    list-style: none !important;
  }

  #header .elk-menu-v2-mobile #_mobile_top_menu > .top-menu > li,
  #header .elk-menu-v2-mobile #_mobile_top_menu > .top-menu > li.elk-secondary-category {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #e1e8ee !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 9px rgba(7, 43, 73, .05);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }

  #header .elk-menu-v2-mobile #_mobile_top_menu > .top-menu > li.elk-mobile-open {
    border-color: #123a5c !important;
    box-shadow: 0 6px 14px rgba(18, 58, 92, .16);
    transform: translateY(-1px);
  }

  #header .elk-menu-v2-mobile #_mobile_top_menu > .top-menu > li.elk-all-categories-item {
    display: none !important;
  }

  #header .elk-menu-v2-mobile #_mobile_top_menu > .top-menu > li > a[data-depth="0"] {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 90px;
    margin: 0 !important;
    padding: 7px 5px 8px !important;
    overflow: hidden;
    color: #123a5c !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center;
    text-transform: none !important;
  }

  #header .elk-menu-v2-mobile #_mobile_top_menu > .top-menu > li.elk-mobile-open > a[data-depth="0"] {
    color: #fff !important;
    background: #123a5c !important;
  }

  #header .elk-mobile-category-image {
    display: block !important;
    width: 48px;
    height: 43px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(7, 43, 73, .10));
  }

  #header .elk-menu-v2-mobile li.elk-mobile-open .elk-mobile-category-image {
    padding: 3px;
    background: #fff;
    border-radius: 7px;
  }

  #header .elk-menu-v2-mobile .float-xs-right,
  #header .elk-menu-v2-mobile .elk-product-mega,
  #header .elk-menu-v2-mobile .sub-menu,
  #header .elk-menu-v2-mobile .js-top-menu-bottom,
  #header .elk-menu-v2-mobile .elk-all-categories-item,
  #header .elk-menu-v2-mobile .elk-mobile-toggle,
  #header .elk-menu-v2-mobile .elk-mobile-content {
    display: none !important;
  }

  #header .elk-mobile-shared-panel {
    display: none;
    margin: 0 12px;
    padding: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 11px;
    box-shadow: 0 10px 24px rgba(7, 43, 73, .12);
  }

  #header .elk-mobile-shared-panel.is-open {
    display: block;
  }

  #header .elk-mobile-preview-head,
  #header .elk-mobile-preview-identity {
    display: flex;
    align-items: center;
  }

  #header .elk-mobile-preview-head {
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf1f5;
  }

  #header .elk-mobile-preview-identity {
    min-width: 0;
    gap: 9px;
  }

  #header .elk-mobile-preview-image {
    flex: 0 0 44px;
    width: 44px;
    height: 40px;
    object-fit: contain;
  }

  #header .elk-mobile-preview-identity small {
    display: block;
    margin-bottom: 2px;
    color: #d7193f;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  #header .elk-mobile-preview-identity h3 {
    margin: 0;
    color: #123a5c;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

  #header .elk-mobile-preview-close {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #526d82;
    background: #eef3f7;
    border: 0;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
  }

  #header .elk-mobile-subcategories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  #header .elk-mobile-subcategory,
  #header .elk-mobile-view-all {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 9px;
    color: #294d69;
    background: #fff;
    border: 1px solid #e1e8ee;
    border-radius: 7px;
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none;
  }

  #header .elk-mobile-view-all {
    justify-content: center;
    margin-bottom: 11px;
    color: #fff;
    background: #123a5c;
    border-color: #123a5c;
  }

  #header .elk-mobile-products-title {
    margin: 0 0 8px;
    color: #123a5c;
    font-size: 12px;
    font-weight: 800;
  }

  #header .elk-mobile-product-list {
    display: grid;
    gap: 7px;
  }

  #header .elk-mobile-product-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px;
    color: #294d69;
    background: #fff;
    border: 1px solid #e1e8ee;
    border-radius: 8px;
    text-decoration: none;
  }

  #header .elk-mobile-product-card img {
    width: 52px;
    height: 46px;
    object-fit: contain;
  }

  #header .elk-mobile-product-name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #header .elk-mobile-product-price {
    color: #d7193f;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }

  #header .elk-mobile-loading,
  #header .elk-mobile-empty {
    color: #6e8292;
    font-size: 12px;
  }
}
