/**
 * Custom V2 chrome ↔ legacy Smarthaus / Elementor / WooCommerce body.
 * Loaded only on non-canvas pages (header.php + footer.php chrome).
 */

/* --------------------------------------------------------------------------
   1. Kill the old fixed-header clearance gap
   Theme used ~4.2em top margin for the previous sticky Elementor header.
   V2 chrome is in normal flow, so that gap becomes empty white space.
-------------------------------------------------------------------------- */
body.ojismart-v2-chrome #page .site-content {
  margin-top: 0 !important;
}

body.ojismart-v2-chrome.single-product #page .site-content {
  margin-top: 20px !important;
}

body.ojismart-v2-chrome #page .site-content {
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   2. Elementor full-bleed inside theme .col-full wrapper
-------------------------------------------------------------------------- */
body.ojismart-v2-chrome.elementor-page #content.site-content > .col-full,
body.ojismart-v2-chrome.elementor-template-full-width #content.site-content > .col-full,
body.ojismart-v2-chrome.page-template-default.elementor-default #content.site-content > .col-full {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Stretched Elementor sections must ignore the old header offset */
body.ojismart-v2-chrome .elementor-section.elementor-section-stretched {
  left: 0 !important;
  width: 100% !important;
}

/* --------------------------------------------------------------------------
   3. Header chrome isolation (don't inherit theme link/list/img rules badly)
-------------------------------------------------------------------------- */
body.ojismart-v2-chrome .ojismart-v2-chrome-header {
  position: relative;
  z-index: 99999 !important;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.06);
  overflow: visible !important;
}

body.ojismart-v2-chrome #content.site-content,
body.ojismart-v2-chrome #page > #content {
  position: relative;
  z-index: 1 !important;
}

body.ojismart-v2-chrome .ojismart-v2-chrome-header *,
body.ojismart-v2-chrome .ojismart-v2-chrome-header *::before,
body.ojismart-v2-chrome .ojismart-v2-chrome-header *::after {
  box-sizing: border-box;
}

body.ojismart-v2-chrome .ojismart-v2-chrome-header img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  box-shadow: none;
}

body.ojismart-v2-chrome .ojismart-v2-chrome-header a {
  text-decoration: none !important;
  box-shadow: none !important;
}

body.ojismart-v2-chrome .ojismart-v2-chrome-header ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ojismart-v2-chrome .ojismart-v2-chrome-header li {
  margin: 0 !important;
  padding: 0 !important;
}

body.ojismart-v2-chrome .ojismart-v2-chrome-header h1,
body.ojismart-v2-chrome .ojismart-v2-chrome-header h2,
body.ojismart-v2-chrome .ojismart-v2-chrome-header h3,
body.ojismart-v2-chrome .ojismart-v2-chrome-header h4,
body.ojismart-v2-chrome .ojismart-v2-chrome-header p {
  margin: 0;
  padding: 0;
  font-family: var(--font, "Montserrat", sans-serif);
}

/* Light shell — works with light Elementor / Woo body (not the dark hero band) */
body.ojismart-v2-chrome .ojismart-v2-nav-shell {
  background: #f5f6f8;
  padding: 12px var(--gutter, 40px);
  border-bottom: 0;
}

body.ojismart-v2-chrome .ojismart-v2-nav-shell.is-sticky {
  position: sticky;
  top: 0;
  z-index: 10060;
  background: rgba(245, 246, 248, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.admin-bar.ojismart-v2-chrome .ojismart-v2-nav-shell.is-sticky {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar.ojismart-v2-chrome .ojismart-v2-nav-shell.is-sticky {
    top: 46px;
  }
}

/* Glass nav sits cleanly on the light shell */
body.ojismart-v2-chrome .ojismart-v2-nav-shell .glass-nav {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Mega menu above Elementor sticky widgets / sticky add-to-cart */
body.ojismart-v2-chrome .ojismart-v2-chrome-header,
body.ojismart-v2-chrome .ojismart-v2-nav-shell,
body.ojismart-v2-chrome .glass-nav,
body.ojismart-v2-chrome .glass-nav__menu,
body.ojismart-v2-chrome .glass-nav__list,
body.ojismart-v2-chrome .glass-nav__item--mega {
  overflow: visible !important;
}

body.ojismart-v2-chrome .glass-nav .mega-menu,
body.ojismart-v2-chrome .glass-nav__menu.is-open,
body.ojismart-v2-chrome .mega-menu[data-mega-panel] {
  z-index: 100000 !important;
}

/* When JS pins the panel as fixed, force interactivity */
body.ojismart-v2-chrome .glass-nav__item--mega.is-open > .mega-menu,
body.ojismart-v2-chrome .mega-menu[style*="position: fixed"],
body.ojismart-v2-chrome .mega-menu[style*="position:fixed"] {
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

body.ojismart-v2-chrome .mega-menu a {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 2;
}

/* Body-portaled mega escapes glass-nav backdrop-filter click trap */
#ojismart-v2-mega-portal {
  pointer-events: none !important;
}
#ojismart-v2-mega-portal *,
#ojismart-v2-mega-portal *::before,
#ojismart-v2-mega-portal *::after {
  box-sizing: border-box !important;
}
#ojismart-v2-mega-portal ul,
#ojismart-v2-mega-portal ol,
#ojismart-v2-mega-portal .mega-menu__links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
#ojismart-v2-mega-portal li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}
#ojismart-v2-mega-portal .mega-menu,
body .mega-menu.is-ported[data-open="1"] {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #ffffff !important;
  z-index: 2 !important;
  font-family: "Montserrat", sans-serif !important;
  color: #000000 !important;
}
#ojismart-v2-mega-portal .mega-menu:not(.mega-menu--simple),
body .mega-menu.is-ported[data-open="1"]:not(.mega-menu--simple) {
  display: grid !important;
  width: 1300px !important;
  max-width: calc(100vw - 24px) !important;
  height: 344px !important;
}
#ojismart-v2-mega-portal .mega-menu.mega-menu--simple,
body .mega-menu.is-ported[data-open="1"].mega-menu--simple {
  display: block !important;
  width: 300px !important;
  min-width: 300px !important;
  max-width: min(300px, calc(100vw - 24px)) !important;
  height: auto !important;
  padding: 6px 0 !important;
  border-radius: 10px !important;
}
#ojismart-v2-mega-portal .mega-menu a,
body .mega-menu.is-ported a {
  pointer-events: auto !important;
  cursor: pointer !important;
  color: #000000 !important;
  text-decoration: none !important;
}
#ojismart-v2-mega-portal .mega-menu__links li > a,
body .mega-menu.is-ported .mega-menu__links li > a {
  color: #000000 !important;
  line-height: 1.1 !important;
}
#ojismart-v2-mega-portal .mega-menu__links,
body .mega-menu.is-ported .mega-menu__links {
  gap: 6px !important;
}
#ojismart-v2-mega-portal .mega-menu--simple .mega-menu__links,
body .mega-menu.is-ported.mega-menu--simple .mega-menu__links {
  gap: 0 !important;
}
#ojismart-v2-mega-portal .mega-menu a:hover,
body .mega-menu.is-ported a:hover {
  color: #000000 !important;
  opacity: 0.7;
}
#ojismart-v2-mega-portal .mega-menu--simple a:hover,
body .mega-menu.is-ported.mega-menu--simple a:hover {
  opacity: 1 !important;
}

/* --------------------------------------------------------------------------
   Top bar — lock design on inner pages (theme/Woo/Elementor often override)
-------------------------------------------------------------------------- */
body.ojismart-v2-chrome .ojismart-v2-chrome-header > .top-bar,
body.ojismart-v2-chrome .top-bar {
  position: relative !important;
  z-index: 10055 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #2b5cd3 !important;
  color: #ffffff !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.ojismart-v2-chrome .top-bar__inner {
  max-width: var(--container, 1648px) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 var(--gutter, 40px) !important;
  min-height: 42px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  box-sizing: border-box !important;
}

body.ojismart-v2-chrome .top-bar__left,
body.ojismart-v2-chrome .top-bar__right {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 0 !important;
}

body.ojismart-v2-chrome .top-bar__left {
  gap: 14px !important;
  justify-content: flex-start !important;
}

body.ojismart-v2-chrome .top-bar__right {
  gap: 14px !important;
  justify-content: flex-end !important;
}

body.ojismart-v2-chrome .top-bar__welcome {
  white-space: nowrap !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ojismart-v2-chrome .top-bar__socials {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ojismart-v2-chrome .top-bar__socials a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.ojismart-v2-chrome .top-bar__socials svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  color: #ffffff !important;
  fill: none !important;
  stroke: currentColor !important;
}

body.ojismart-v2-chrome .top-bar__contact svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  color: #ffffff !important;
  fill: none !important;
  stroke: currentColor !important;
}

body.ojismart-v2-chrome .top-bar__socials svg [fill="currentColor"],
body.ojismart-v2-chrome .top-bar__contact svg [fill="currentColor"] {
  fill: currentColor !important;
  stroke: none !important;
}

body.ojismart-v2-chrome .top-bar__divider {
  display: inline-block !important;
  width: 1px !important;
  height: 18px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  flex-shrink: 0 !important;
  align-self: center !important;
}

body.ojismart-v2-chrome .top-bar__center {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  flex: 0 1 auto !important;
}

body.ojismart-v2-chrome .top-bar__promo-viewport {
  position: relative !important;
  overflow: hidden !important;
  min-width: min(360px, 34vw) !important;
  height: 1.35em !important;
}

body.ojismart-v2-chrome .top-bar__promo,
body.ojismart-v2-chrome .top-bar p.top-bar__promo {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
}

body.ojismart-v2-chrome .top-bar__promo.is-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

body.ojismart-v2-chrome .top-bar a,
body.ojismart-v2-chrome .top-bar__welcome,
body.ojismart-v2-chrome .top-bar__promo,
body.ojismart-v2-chrome .top-bar__arrow,
body.ojismart-v2-chrome .top-bar__contact {
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.ojismart-v2-chrome .top-bar__arrow {
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  opacity: 0.95 !important;
  padding: 0 2px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  height: auto !important;
  cursor: pointer !important;
}

body.ojismart-v2-chrome .top-bar__divider {
  display: inline-block !important;
  width: 1px !important;
  height: 14px !important;
  background: rgba(255, 255, 255, 0.55) !important;
  flex-shrink: 0 !important;
}

body.ojismart-v2-chrome .top-bar__contact {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

@media (max-width: 1100px) {
  body.ojismart-v2-chrome .top-bar__inner {
    flex-direction: column !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    gap: 6px !important;
  }

  body.ojismart-v2-chrome .top-bar__left {
    display: none !important;
  }

  body.ojismart-v2-chrome .top-bar__right {
    display: flex !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
  }

  body.ojismart-v2-chrome .top-bar__center {
    border: 0 !important;
    padding: 4px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  body.ojismart-v2-chrome .top-bar__promo-viewport {
    min-width: 0 !important;
    width: 100% !important;
    max-width: min(520px, calc(100vw - 88px)) !important;
    height: 1.6em !important;
  }

  body.ojismart-v2-chrome .top-bar__promo {
    font-size: 13px !important;
  }
}

/* --------------------------------------------------------------------------
   4. Footer isolation — beat theme .site-footer / clearfix / handheld gap
-------------------------------------------------------------------------- */
body.ojismart-v2-chrome footer.site-footer.ojismart-v2-footer,
body.ojismart-v2-chrome footer.ojismart-v2-footer {
  --footer-yellow: #e3a71a;
  --footer-yellow-2: #eac024;
  --footer-grad: linear-gradient(180deg, #e3a71a 0%, #eac024 100%);
  --footer-top: #e3a71a;
  --footer-ink: #111111;
  background: var(--footer-grad) !important;
  color: var(--footer-ink) !important;
  border: 0 !important;
  border-top: 0 !important;
  margin: 0 !important;
  padding: 56px 0 28px !important;
  width: 100%;
  clear: both;
  font-family: var(--font, "Montserrat", sans-serif);
}

/* Theme clearfix helpers on .site-footer */
body.ojismart-v2-chrome footer.ojismart-v2-footer::before,
body.ojismart-v2-chrome footer.ojismart-v2-footer::after {
  content: none !important;
  display: none !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer a,
body.ojismart-v2-chrome footer.ojismart-v2-footer a:not(.button) {
  color: var(--footer-ink) !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer a:hover,
body.ojismart-v2-chrome footer.ojismart-v2-footer a:not(.button):hover {
  color: var(--footer-ink) !important;
  opacity: 0.75;
}

/* Keep store badges white-on-black (theme link color would crush them) */
body.ojismart-v2-chrome footer.ojismart-v2-footer a.footer-store,
body.ojismart-v2-chrome footer.ojismart-v2-footer a.footer-store:hover {
  color: #fff !important;
  opacity: 1;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__top {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    linear-gradient(90deg, #e3a71a 0%, #eac024 100%) !important;
  background-color: transparent !important;
  border-radius: 16px !important;
  min-height: 96px !important;
  height: auto !important;
  padding: 24px 48px !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__brand img {
  width: 96px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__top-nav a,
body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__top-nav a:not(.button) {
  color: var(--footer-ink) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  opacity: 1;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__top-nav a:hover {
  opacity: 0.7;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__cols {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 108px !important;
  margin-top: 72px !important;
  padding-bottom: 52px !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__heading,
body.ojismart-v2-chrome footer.ojismart-v2-footer h3.site-footer__heading {
  margin: 0 !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--footer-ink) !important;
  background: transparent !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__heading::before,
body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__heading::after {
  content: none !important;
  display: none !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__text {
  margin: 28px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: var(--footer-ink) !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer ul {
  list-style: none !important;
  padding: 0 !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer ul.site-footer__links,
body.ojismart-v2-chrome footer.ojismart-v2-footer ul.site-footer__contact {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  margin: 28px 0 0 !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__links li,
body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__contact li {
  margin: 0 !important;
  padding: 0 !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__socials {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 16px !important;
  width: auto !important;
}
body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__socials a,
body.ojismart-v2-chrome footer.ojismart-v2-footer a.site-footer__social {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  flex: 0 0 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  color: #111 !important;
  background: transparent !important;
  border: 1.5px solid #111 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  opacity: 1 !important;
  float: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
}
body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__socials a:hover,
body.ojismart-v2-chrome footer.ojismart-v2-footer a.site-footer__social:hover {
  background: #111 !important;
  color: #eac024 !important;
}
body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__socials svg,
body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__social svg,
body.ojismart-v2-chrome footer.ojismart-v2-footer a.site-footer__social svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  fill: currentColor !important;
  flex-shrink: 0 !important;
  transform: none !important;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
  box-shadow: none;
}

body.ojismart-v2-chrome footer.ojismart-v2-footer h3,
body.ojismart-v2-chrome footer.ojismart-v2-footer p {
  color: var(--footer-ink);
  font-family: var(--font, "Montserrat", sans-serif);
}

@media (max-width: 960px) {
  body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__cols {
    grid-template-columns: 1fr 1fr !important;
    column-gap: 32px !important;
  }
}

@media (max-width: 700px) {
  body.ojismart-v2-chrome footer.ojismart-v2-footer .site-footer__cols {
    grid-template-columns: 1fr !important;
  }
}

/* Room for theme handheld footer bar on small screens */
@media (max-width: 1024px) {
  body.ojismart-v2-chrome footer.ojismart-v2-footer {
    margin-bottom: 60px !important;
    padding-bottom: 24px !important;
  }
}

/* --------------------------------------------------------------------------
   5. Hide leftover legacy chrome fragments
-------------------------------------------------------------------------- */
body.ojismart-v2-chrome .smarthaus-mobile-nav,
body.ojismart-v2-chrome .smarthaus-mobile-nav-button,
body.ojismart-v2-chrome #smarthaus-mobile-nav,
body.ojismart-v2-chrome .header-sticky:not(.ojismart-v2-nav-shell),
body.ojismart-v2-chrome .site-header:not(.glass-nav),
body.ojismart-v2-chrome .elementor-location-header,
body.ojismart-v2-chrome .elementor-location-footer {
  display: none !important;
}

/*
 * HFE breadcrumb banner removed sitewide under V2 chrome.
 * Inner pages use .ojismart-dubai-summer-banner (<picture>) only — no duplicates.
 */
body.ojismart-v2-chrome .elementor-15377,
body.ojismart-v2-chrome .ojismart-v2-legacy-hfe,
body.ojismart-v2-chrome .smarthaus-breadcrumb-build,
body.ojismart-v2-chrome .elementor-widget-smarthaus-breadcrumb,
body.ojismart-v2-chrome .smarthaus-woocommerce-title {
  display: none !important;
}

/* Keep the single API / <picture> banner visible and above page pull-up */
body.ojismart-v2-chrome .ojismart-dubai-summer-banner {
  display: block !important;
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

/* Offer Products: center the page title under the banner */
body.ojismart-v2-chrome.page-id-58689 .entry-header,
body.ojismart-v2-chrome.page-offer-products .entry-header {
  text-align: center;
  width: 100%;
}

body.ojismart-v2-chrome.page-id-58689 .entry-header .entry-title,
body.ojismart-v2-chrome.page-offer-products .entry-header .entry-title {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Neutralize Elementor first-section negative margins (old HFE banner tuck) */
body.ojismart-v2-chrome.elementor-page #content .elementor > .elementor-top-section:first-child,
body.ojismart-v2-chrome.elementor-page #content .elementor > section.elementor-section:first-child {
  margin-top: 0 !important;
}

body.ojismart-v2-chrome .ojismart-v2-legacy-hfe .bhf-hidden,
body.ojismart-v2-chrome .ojismart-v2-legacy-hfe p.main-title {
  display: none !important;
}

/* --------------------------------------------------------------------------
   6. WooCommerce / shop body keeps theme layout, but no double header offset
-------------------------------------------------------------------------- */
body.ojismart-v2-chrome.woocommerce-page #content.site-content > .col-full,
body.ojismart-v2-chrome.tax-product_cat #content.site-content > .col-full,
body.ojismart-v2-chrome.tax-product_brand #content.site-content > .col-full {
  /* keep theme max-width for shop grids */
  margin-top: 0;
}

body.ojismart-v2-chrome .smarthaus-breadcrumb,
body.ojismart-v2-chrome .woocommerce-breadcrumb {
  margin-top: 12px;
}

/* Sticky ATC / drawers under mega menu */
body.ojismart-v2-chrome .smarthaus-sticky-single-add-to-cart,
body.ojismart-v2-chrome .woosw-popup,
body.ojismart-v2-chrome .woosq-popup {
  z-index: 10040;
}

/* --------------------------------------------------------------------------
   7. Prevent theme global img/button rules from breaking chrome controls
-------------------------------------------------------------------------- */
body.ojismart-v2-chrome .ojismart-v2-chrome-header button,
body.ojismart-v2-chrome .ojismart-v2-chrome-header .menu-toggle,
body.ojismart-v2-chrome .ojismart-v2-chrome-header .top-bar__arrow {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: 0 !important;
  line-height: 1 !important;
  padding: 0;
  color: inherit;
}

body.ojismart-v2-chrome .glass-nav__badge {
  line-height: 18px !important;
  font-size: 10px !important;
}

/* Simple dropdown mega (e.g. Brands) */
body.ojismart-v2-chrome .mega-menu--simple {
  display: block;
  width: 300px !important;
  min-width: 300px !important;
  max-width: min(300px, calc(100vw - 24px)) !important;
  height: auto !important;
  left: auto;
  right: auto;
  top: 60px;
  padding: 6px 0 !important;
  border-radius: 10px;
  overflow: hidden;
}
body.ojismart-v2-chrome .mega-menu--simple .mega-menu__cols,
body.ojismart-v2-chrome .mega-menu--simple .mega-menu__col,
body.ojismart-v2-chrome .mega-menu--simple .mega-menu__links,
body.ojismart-v2-chrome .mega-menu--simple .mega-menu__links li {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  grid-template-columns: none !important;
}
#ojismart-v2-mega-portal .mega-menu--simple .mega-menu__brand,
body .mega-menu.is-ported.mega-menu--simple .mega-menu__brand {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  justify-content: stretch !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 8px 16px !important;
  border-radius: 0 !important;
  gap: 16px !important;
  box-sizing: border-box !important;
}
#ojismart-v2-mega-portal .mega-menu--simple .mega-menu__brand-name,
body .mega-menu.is-ported.mega-menu--simple .mega-menu__brand-name {
  grid-column: 1 !important;
  justify-self: start !important;
  text-align: left !important;
  flex: none !important;
  min-width: 0 !important;
}
#ojismart-v2-mega-portal .mega-menu--simple .mega-menu__brand-mark,
body .mega-menu.is-ported.mega-menu--simple .mega-menu__brand-mark {
  display: none !important;
}
#ojismart-v2-mega-portal .mega-menu--simple .mega-menu__brand:hover,
body .mega-menu.is-ported.mega-menu--simple .mega-menu__brand:hover {
  background: #f5f7f9 !important;
  opacity: 1 !important;
}
#ojismart-v2-mega-portal .mega-menu--simple .mega-menu__brand-logo,
body .mega-menu.is-ported.mega-menu--simple .mega-menu__brand-logo,
body.ojismart-v2-chrome .mega-menu--simple img.mega-menu__brand-logo {
  grid-column: 2 !important;
  justify-self: end !important;
  display: block !important;
  width: auto !important;
  height: 26px !important;
  max-width: 110px !important;
  max-height: 26px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: right center !important;
  box-shadow: none !important;
  filter: contrast(1.08) saturate(1.06) !important;
}

#ojismart-v2-mega-portal .mega-menu:not(.mega-menu--simple) img.mega-menu__brand-logo,
body .mega-menu.is-ported:not(.mega-menu--simple) img.mega-menu__brand-logo {
  display: none !important;
}

/* Philips Authorized Partnership badge (archive + PDP) */
.philips-auth-badge-wrap {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.woocommerce img.philips-auth-badge,
.woocommerce-page img.philips-auth-badge,
.single-product img.philips-auth-badge,
.philips-auth-badge-wrap .philips-auth-badge,
img.philips-auth-badge {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.philips-auth-badge-wrap--archive,
.woocommerce .philips-auth-badge-wrap--archive {
  width: 168px !important;
  max-width: min(168px, 46vw) !important;
  margin: 0 0 18px;
}

.single-product .summary .philips-auth-badge-wrap--single,
.woocommerce.single-product div.product .summary .philips-auth-badge-wrap--single {
  width: 168px !important;
  max-width: min(168px, 46vw) !important;
  margin: 0 0 14px;
  clear: both;
}

@media (max-width: 560px) {
  .philips-auth-badge-wrap--archive,
  .woocommerce .philips-auth-badge-wrap--archive,
  .single-product .summary .philips-auth-badge-wrap--single {
    width: 140px !important;
    max-width: min(140px, 58vw) !important;
  }
}
