/* ==========================================================================
   ARRØ header + mega menu — matches the Shopify (tryarro.com) header.
   Loaded after custom.css on every page. Values measured from the live
   Shopify theme: 126px header, Aeonik "text_medium" 14px nav, Tusker
   "title_bold" mega-menu headings in brand blue.
   ========================================================================== */
:root {
  --arro-blue: #00a1e9;
  --arro-line: rgba(18, 18, 18, .08);
}

/* Black "Free Shipping" top bar (Flatsome → Header → Top bar) is kept; restyled to the brand fonts. */
#header #top-bar {
  background: #0a0a0a;
}

#header #top-bar,
#header #top-bar .html {
  font-family: var(--font-text-medium, "text_medium", sans-serif);
  letter-spacing: .6px;
}

#header #top-bar strong {
  font-size: 13px;
  font-weight: 400;
  color: #fff;
}

/* ------------------------------- header bar ------------------------------ */
#header .header-wrapper {
  background: #fff;
}

#header #masthead.header-main {
  background: #fff !important;
  border-bottom: 1px solid var(--arro-line);
  box-shadow: none;
}

#header #masthead .header-inner {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;
}

#header #masthead #logo {
  width: 195px;
  margin: 0;
}

#header #masthead #logo a {
  display: block;
}

#header #masthead #logo img,
#header #masthead #logo .header-logo,
#header #masthead #logo .header-logo-dark {
  width: 180px;
  max-width: 180px;
  max-height: 70px;
  height: auto;
  margin: 0 auto;
  padding: 0;
}

/* Sticky state (Flatsome puts .stuck on .header-wrapper): solid white bar, inner row
   the same height as the bar so nothing hangs below it, slightly smaller logo. */
#header .header-bg-color {
  background-color: #fff !important;
}

#header .header-wrapper.stuck #masthead.header-main {
  height: 84px !important;
}

#header .header-wrapper.stuck #masthead .header-inner {
  height: 84px !important;
}

#header .header-wrapper.stuck #masthead #logo img,
#header .header-wrapper.stuck #masthead #logo .header-logo {
  width: 130px;
  max-width: 130px;
  max-height: 50px;
}

#header .header-wrapper.stuck {
  border-bottom: 1px solid var(--arro-line);
}

/* --------------------------------- nav ----------------------------------- */
#header #masthead .header-nav>li {
  margin: 0;
}

#header #masthead .header-nav.nav-left {
  margin-left: -12px;
}

#header #masthead .header-nav>li>a.nav-top-link {
  font-family: var(--font-text-medium, "text_medium", sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: .6px;
  text-transform: none;
  color: #000;
  padding: 12px;
  transition: color .2s;
}

#header #masthead .header-nav.nav-right>li>a.nav-top-link {
  padding: 12px 10px;
}

#header #masthead .header-nav>li>a.nav-top-link:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#header #masthead .header-nav>li.active>a.nav-top-link:not(:hover) {
  text-decoration: none;
}

/* Shop (mega) trigger: blue + underlined while open, thin chevron like Shopify */
#header #masthead li.arro-mega-active>a.nav-top-link {
  padding-right: 27px;
  position: relative;
}

#header #masthead li.arro-mega-active>a.nav-top-link>i.icon-angle-down {
  display: none;
}

#header #masthead li.arro-mega-active>a.nav-top-link::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 6px;
  margin-top: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}

#header #masthead li.arro-mega-active.current-dropdown>a.nav-top-link {
  color: var(--arro-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* #header #masthead li.arro-mega-active:hover>a.nav-top-link {
  color: var(--arro-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
} */
#header #masthead li.arro-mega-active.current-dropdown>a.nav-top-link::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2300a1e9' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* #header #masthead li.arro-mega-active.current-dropdown>a.nav-top-link::after,
#header #masthead li.arro-mega-active:hover>a.nav-top-link::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2300a1e9' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
} */

/* Flatsome's little dropdown arrow under the trigger */
#header #masthead li.arro-mega-active.has-dropdown::after,
#header #masthead li.arro-mega-active.has-dropdown::before {
  display: none !important;
}

/* Icons (search / account / cart): 25px, brand blue */
#header #masthead .header-nav.nav-right>li.header-search>a,
#header #masthead .header-nav.nav-right>li.account-item>a,
#header #masthead .header-nav.nav-right>li.cart-item>a {
  padding: 0 5px;
  color: var(--arro-blue);
}

#header #masthead .header-nav.nav-right i[class^="icon-"] {
  font-size: 22px;
}

.nav-dropdown-has-arrow.nav-dropdown-has-border li.header-search.header-search-dropdown.has-dropdown:before {
  display: none;
}

/* --------------------------------- mega panel ---------------------------- */
#header li.arro-mega-active>.sub-menu.nav-dropdown-full {
  background: #fff;
  border: 0;
  border-top: 1px solid var(--arro-line);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .06);
  padding: 0;
}

#header li.arro-mega-active>.sub-menu.nav-dropdown-full>.mega-menu__content {
  padding: 30px 0;
  color: #000;
  line-height: 1.8;
}

#header .arro-mega-active .mega-menu__content .page-width {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 50px;
  gap: 30px;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
}

#header .arro-mega-active .menu_with_product {
  width: calc(45% - 15px);
  flex: 0 0 auto;
}

#header .arro-mega-active .osr-header-megamenu-block {
  width: calc(50% - 15px);
  flex: 0 0 auto;
}

#header .arro-mega-active .mega-menu__list.osr-mega-menu-width {
  gap: 20px;
  margin: 0;
}

#header .arro-mega-active .mega-menu__list>li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* headings: Tusker, uppercase, brand blue */
#header .arro-mega-active .mega-menu__link.mega-menu__link--level-2.link {
  display: block;
  font-family: var(--font-title-bold, "title_bold", sans-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--arro-blue) !important;
  padding: 6px 0;
  margin: 0;
}

/* links: Aeonik 12px uppercase black */
#header .arro-mega-active .mega-menu__list .list-unstyled {
  margin: 0;
  padding: 0;
}

#header .arro-mega-active .mega-menu__list .list-unstyled li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .arro-mega-active .mega-menu__list .list-unstyled .mega-menu__link {
  display: block;
  font-family: var(--font-text-medium, "text_medium", sans-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #000 !important;
  padding: 6px 0;
  margin: 0;
}

#header .arro-mega-active .mega-menu__list .list-unstyled .mega-menu__link:hover,
#header .arro-mega-active .mega-menu__link.mega-menu__link--level-2.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* product cards */
#header .arro-mega-active .osr-header-megamenu-product-block {
  padding: 20px;
  border-radius: 20px;
  background: rgba(0, 161, 233, .1);
  margin: 0;
}

#header .arro-mega-active .menu_with_product .osr-header-megamenu-product-block {
  background: rgba(207, 52, 106, .1);
}

#header .arro-mega-active .osr-header-megamenu-product-block-flex {
  display: flex;
  gap: 20px;
}

#header .arro-mega-active .osr-header-megamenu-product-block-image {
  border-radius: 10px;
  display: block;
}

#header .arro-mega-active .osr-product-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-text-bold, "text_bold", sans-serif);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--arro-blue);
  border: 1px solid var(--arro-blue);
  border-radius: 20px;
  padding: 7px 20px;
  margin: 0 0 10px;
}

#header .arro-mega-active .menu_with_product .osr-product-tag {
  color: #f34984;
  border-color: #f33778;
}

#header .arro-mega-active .osr-header-megamenu-product-block-title {
  font-family: var(--font-text-medium, "text_medium", sans-serif);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: .6px;
  color: #000 !important;
  padding: 0 0 5px;
  text-decoration: none;
}

#header .arro-mega-active .osr-header-megamenu-product-block-price {
  display: block;
  font-family: var(--font-text-medium, "text_medium", sans-serif);
  font-size: 14px;
  line-height: 24px;
  letter-spacing: .6px;
  color: #000 !important;
  padding: 0 0 10px;
}

#header .arro-mega-active .osr-header-megamenu-product-block-btn {
  display: inline-block;
  font-family: var(--font-text-medium, "text_medium", sans-serif);
  font-size: 14px;
  line-height: 18px;
  letter-spacing: .6px;
  color: #fff !important;
  background: var(--arro-blue);
  border-radius: 40px;
  padding: 15px 30px;
  text-decoration: none;
}

#header .arro-mega-active .menu_with_product .osr-header-megamenu-product-block-btn {
  background: #f34984;
  padding: 12px 10px;
}

/* collection blocks + starter-kit box */
#header .arro-mega-active .osr-header-megamenu-block-flex {
  display: flex;
  gap: 20px;
}

#header .arro-mega-active .osr-header-megamenu-block-flex-1 {
  background: var(--arro-blue);
  border-radius: 20px;
  padding: 20px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#header .arro-mega-active .osr-header-megamenu-block-flex-2 {
  background: #000;
  border-radius: 20px;
  padding: 20px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

#header .arro-mega-active .osr-header-megamenu-block-1 {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#header .arro-mega-active .osr-header-megamenu-block-1-title {
  font-family: var(--font-text-bold, "text_bold", sans-serif);
  font-size: 18px;
  line-height: 26px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff !important;
  padding-left: 12px;
}

#header .arro-mega-active .osr-header-megamenu-block-flex-2-title {
  font-family: var(--font-title-bold, "title_bold", sans-serif);
  font-size: 24px;
  line-height: 34px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--arro-blue);
  text-align: center;
  margin-bottom: 20px;
}

#header .arro-mega-active .osr-header-megamenu-block-flex-2-btn {
  font-family: var(--font-text-medium, "text_medium", sans-serif);
  font-size: 14px;
  line-height: 18px;
  letter-spacing: .6px;
  color: var(--arro-blue) !important;
  background: #fff;
  border-radius: 50px;
  padding: 12px 30px;
  text-decoration: none;
}

/* --------------------------------- mobile -------------------------------- */
@media (max-width: 849px) {

  #header #masthead.header-main,
  #header #masthead .header-inner {
    height: 88px;
  }

  #header #masthead .header-inner {
    padding: 0 16px;
  }

  #header #masthead #logo {
    width: auto;
  }

  #header #masthead #logo img,
  #header #masthead #logo .header-logo,
  #header #masthead #logo .header-logo-dark {
    width: 120px;
    max-width: 120px;
    max-height: 48px;
  }

  /* Blog / Contact / Wholesale live in the drawer on mobile, not the bar */
  #header #masthead .mobile-nav.nav-left>li:not(.nav-icon) {
    display: none;
  }

  #header #masthead .mobile-nav>li>a {
    color: var(--arro-blue);
    padding: 0 6px;
  }

  #header #masthead .mobile-nav .nav-icon a i {
    font-size: 28px;
    color: var(--arro-blue);
  }

  #header #masthead .mobile-nav.nav-right i[class^="icon-"] {
    font-size: 22px;
    color: var(--arro-blue);
  }

  #header #masthead .mobile-nav.nav-right>li {
    margin: 0 2px;
  }

  #header .header-wrapper.stuck #masthead.header-main,
  #header .header-wrapper.stuck #masthead .header-inner {
    height: 72px !important;
  }
}

/* mobile drawer (Flatsome off-canvas) */
#main-menu.mobile-sidebar,
.mobile-sidebar {
  background: #fff;
}

#main-menu .sidebar-menu {
  padding: 24px 20px;
}

#main-menu .nav-sidebar>li>a,
#main-menu .nav-sidebar>li>.toggle+a {
  font-family: var(--font-text-medium, "text_medium", sans-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .6px;
  text-transform: none;
  color: #000;
  padding: 14px 0;
  border: 0;
}

#main-menu .nav-sidebar>li {
  border: 0;
  margin: 0;
}

#main-menu .nav-sidebar>li>a:hover,
#main-menu .nav-sidebar>li.active>a {
  color: var(--arro-blue);
}

#main-menu .nav-sidebar .children a,
#main-menu .nav-sidebar .sub-menu a {
  font-family: var(--font-text-medium, "text_medium", sans-serif);
  font-size: 15px;
  letter-spacing: .6px;
  text-transform: none;
  color: #000;
}

#main-menu .nav-sidebar i.icon-angle-right,
#main-menu .nav-sidebar i.icon-angle-down {
  color: #000;
}

/* ------------------- header icons: search / account / cart (Shopify artwork, 25px) ------------------- */
#header #masthead .nav>li.header-search>a.nav-top-link,
#header #masthead .nav>li.account-item>a,
#header #masthead .nav>li.cart-item>a {
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
}

#header #masthead .nav>li.header-search>a i.icon-search,
#header #masthead .nav>li.account-item>a i.icon-user,
#header #masthead .nav>li.cart-item>a i.icon-shopping-cart {
  display: block;
  position: relative;
  width: 25px;
  height: 25px;
  font-size: 0;
  line-height: 0;
  margin: 0;
  background: no-repeat center / contain;
}

#header #masthead .nav>li.header-search>a i.icon-search::before,
#header #masthead .nav>li.account-item>a i.icon-user::before,
#header #masthead .nav>li.cart-item>a i.icon-shopping-cart::before {
  content: none !important;
}

#header #masthead .nav>li.header-search>a i.icon-search {
  background-image: url('../img/hdr-search.webp');
}

#header #masthead .nav>li.account-item>a i.icon-user {
  background-image: url('../img/hdr-account.webp');
}

#header #masthead .nav>li.cart-item>a i.icon-shopping-cart {
  background-image: url('../img/hdr-cart.webp');
}
/* account dropdown (My account menu): align to the icon's right edge so it is not cut off by the window edge */
#header #masthead .header-nav.nav-right > li.account-item > .nav-dropdown { left: auto; right: -15px; }
