/* Header and top bar, matching the store at /store (Savoy theme markup and measurements).
   Icons come from the same nm-font icon font the store uses (assets/fonts). */
@font-face { font-family: nm-font; src: url('/assets/fonts/nm-font.ttf') format('truetype'), url('/assets/fonts/nm-font.woff') format('woff'); font-weight: 400; font-style: normal; font-display: block; }
.nm-font { font-family: nm-font !important; speak: never; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.nm-font-search:before { content: "\e903"; }
.nm-font-head:before { content: "\e074"; }
.nm-font-heart-outline:before { content: "\e902"; }
.nm-font-cart:before { content: "\e904"; }

.cl-hdr { width: 100%; font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 2; color: #141414; }
.cl-hdr, .cl-hdr *, .cl-hdr *:before, .cl-hdr *:after { box-sizing: border-box; }
.cl-hdr ul { list-style: none; margin: 0; padding: 0; }
.cl-hdr a { text-decoration: none; transition: color .2s ease; }

.nm-row { max-width: 1280px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }
.nm-row:before, .nm-row:after { display: table; content: " "; }
.nm-row:after { clear: both; }
.col-xs-4, .col-xs-6 { position: relative; float: left; min-height: 1px; padding-left: 15px; padding-right: 15px; }
.col-xs-4 { width: 33.33333333%; }
.col-xs-6 { width: 50%; }
@media (max-width: 768px) { .nm-row { padding-left: 0; padding-right: 0; } }

/* ---- top bar ---- */
.nm-top-bar { position: relative; z-index: 1005; font-size: 14px; line-height: 35px; padding-bottom: 1px; border-bottom: 1px solid transparent; background: #282828; color: #eee; }
.nm-top-bar > .nm-row { position: relative; }
.nm-top-bar-left { width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; gap: 30px; }
.nm-top-bar-text { flex: 1; color: #eee; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-top-bar-text b { font-weight: 700; }
.nm-top-bar-cycles { position: relative; height: 35px; }
.nm-top-bar-cycles .cycle { pointer-events: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .5s ease, transform .5s ease; transform: translateX(20px); }
.nm-top-bar-cycles .cycle.active.hide, .nm-top-bar-cycles .cycle.hide { opacity: 0; }
.nm-top-bar-cycles .cycle.active { pointer-events: all; opacity: 1; transform: translateX(0); }
@media (max-width: 991px) { .nm-top-bar-left { width: 100%; } }
@media (max-width: 550px) { .nm-top-bar { font-size: 13px; } }
@media (max-width: 385px) { .nm-top-bar { font-size: .9em; } }

/* ---- header ---- */
.nm-header-placeholder { position: relative; height: 84px; }
.nm-header { position: absolute; top: 0; left: 0; z-index: 1002; width: 100%; line-height: 50px; padding-top: 17px; padding-bottom: 17px; overflow: visible; transition: all 150ms linear; background: #fff; -webkit-transform: translateZ(0); }
.header-on-scroll .nm-header { position: fixed; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.nm-header-inner { position: relative; height: auto; }
.nm-header-logo { position: absolute; top: 50%; left: 50%; z-index: 10; transform: translate(-50%, -50%); }
.nm-header-logo a { display: block; }
.nm-header-logo img { display: inline; width: auto; max-width: none; height: calc(42px * var(--logo-scale, 1)); vertical-align: middle; border-radius: 0; }

.nm-menu li { position: relative; float: left; }
.nm-menu li a { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 400; line-height: 1; color: #141414; vertical-align: bottom; text-decoration: none; padding: 16px 12px; }
.nm-menu li a:hover { color: #282828; }
.nm-main-menu-wrap, .nm-right-menu-wrap { position: static; }
.nm-main-menu { display: block; float: left; margin-left: -12px; }
.nm-right-menu { float: right; margin-right: -12px; }
.nm-main-menu > ul, .nm-right-menu > ul { display: inline-block; line-height: 1; vertical-align: middle; }
.nm-menu-cart .count { position: relative; top: -7px; display: inline-block; font-size: 14px; color: #dc9814; min-width: 9px; margin-right: -2px; }

/* burger: three lines, the middle one shorter */
.nm-menu li.nm-menu-offscreen { position: relative; display: none; }
.nm-menu li.nm-menu-offscreen a { display: inline-block; font-size: 0; line-height: 16px; }
.nm-menu-icon { display: block; position: relative; width: 16px; height: 14.5px; }
.nm-menu-icon span { display: block; position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 4px; background: #141414; transform: rotate(0); transition: transform .26s cubic-bezier(.22,.61,.36,1), opacity .2s ease; }
.nm-menu-icon span.line-1 { top: 0; }
.nm-menu-icon span.line-2 { top: 6px; width: 75%; }
.nm-menu-icon span.line-3 { bottom: 1px; }
/* while the menu is open the outer lines slide into the centre one and fade */
.nm-mobile-menu-button.is-open .nm-menu-icon span.line-1 { transform: translateY(6px); opacity: 0; }
.nm-mobile-menu-button.is-open .nm-menu-icon span.line-3 { transform: translateY(-6px); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .nm-menu-icon span { transition: none; } }

/* dropdown opened by the burger on small screens */
.cl-hdr .ed-mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #eee; padding: 12px 20px 16px; display: flex; flex-direction: column; box-shadow: 0 8px 16px rgba(0,0,0,.08); opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none; transition: opacity .22s ease, transform .26s cubic-bezier(.22,.61,.36,1), visibility 0s linear .26s; }
.cl-hdr .ed-mobile-menu.is-open { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; transition: opacity .22s ease, transform .26s cubic-bezier(.22,.61,.36,1), visibility 0s; }
.ed-mobile-menu-nav { display: flex; flex-direction: column; text-align: left; }
.cl-hdr .ed-mobile-menu-nav a { display: block; font-family: 'Montserrat', sans-serif; font-size: 16px; line-height: 1.2; color: #141414; padding: 14px 0; border-bottom: 1px solid #eee; }
.cl-hdr .ed-mobile-menu-nav a:last-child { border-bottom: 0; }
@media (min-width: 992px) { .cl-hdr .ed-mobile-menu { display: none; } }

@media (max-width: 991px) {
  .nm-header-placeholder { height: 70px; }
  .nm-header { padding-top: 10px; padding-bottom: 10px; }
  .nm-header-logo img { height: calc(36px * var(--logo-scale, 1) * var(--logo-m, 1)); }
  .nm-main-menu ul li, .nm-right-menu ul li { display: none; }
  .nm-right-menu ul li.nm-menu-search, .nm-right-menu ul li.nm-menu-cart { display: block; }
  .nm-menu li.nm-menu-offscreen { display: block; }
}
@media (max-width: 550px) {
  .nm-menu li a { padding-left: 8px; padding-right: 8px; }
  .nm-main-menu { margin-left: -8px; }
  .nm-right-menu { margin-right: -8px; }
}
@media (max-width: 400px) { .nm-header-logo img { height: calc(32px * var(--logo-scale, 1) * var(--logo-m, 1)); } }

/* ---- second-tier sites (header_menu = shop): Shop dropdown with a picture, Read, and a search box ---- */
.nm-has-sub > a .nm-caret { display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.nm-has-sub:hover > a .nm-caret, .nm-has-sub.is-open > a .nm-caret { transform: translateY(-1px) rotate(-135deg); }
.nm-menu li.nm-has-sub { position: static; }
/* keeps the pointer inside the menu while it crosses the gap between the link and the panel */
.nm-has-sub > a { position: relative; }
.nm-has-sub > a:after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; display: none; }
.nm-has-sub:hover > a:after, .nm-has-sub.is-open > a:after { display: block; }
.cl-mega { position: absolute; top: 100%; left: 0; right: 0; z-index: 1001; background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; box-shadow: 0 10px 20px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .2s ease, visibility 0s linear .2s; }
.nm-has-sub:hover .cl-mega, .nm-has-sub.is-open .cl-mega, .nm-has-sub:focus-within .cl-mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .2s ease, visibility 0s; }
.cl-mega-inner { display: flex; align-items: stretch; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 28px 15px 32px; }
.nm-menu .cl-mega-list { float: none; display: block; width: 240px; flex: none; }
.nm-menu .cl-mega-list li { float: none; display: block; }
.nm-menu .cl-mega-list li a { display: block; padding: 11px 0; font-size: 16px; line-height: 1.3; border-bottom: 1px solid #eee; }
.nm-menu .cl-mega-list li:last-child a { border-bottom: 0; }
.cl-mega-img { display: block; width: 440px; max-width: 100%; height: 250px; object-fit: cover; flex: none; }
.cl-hdr .nm-main-menu-wrap { overflow: visible; }

.nm-right-menu-wrap .cl-search { float: right; margin-top: 6px; }
.cl-search { position: relative; display: inline-block; width: 230px; vertical-align: middle; line-height: 1; }
.cl-search input { width: 100%; height: 38px; margin: 0; padding: 0 40px 0 16px; border: 1px solid #d9d9d9; border-radius: 19px; background: #fff; font-family: 'Montserrat', sans-serif; font-size: 14px; color: #141414; outline: none; -webkit-appearance: none; appearance: none; }
.cl-search input::placeholder { color: #8a8a8a; }
.cl-search input:focus { border-color: #141414; }
.cl-search button { position: absolute; top: 0; right: 0; width: 40px; height: 38px; padding: 0; border: 0; background: none; color: #141414; font-size: 16px; cursor: pointer; }
.cl-search--mobile { display: none; width: 100%; margin: 4px 0 8px; }
.cl-hdr .ed-mobile-menu-nav a.ed-mobile-sub { padding-left: 16px; font-size: 15px; color: #444; }
@media (max-width: 991px) {
  .nm-right-menu-wrap .cl-search { display: none; }
  .cl-search--mobile { display: block; }
  .cl-mega { display: none; }
}

/* description beside the Shop picture (desktop), and under it in the burger menu (mobile, cut off with an ellipsis) */
.cl-mega-desc { flex: 1; max-width: 360px; margin: 0; align-self: center; font-family: 'Montserrat', sans-serif; font-size: 15px; line-height: 1.7; color: #444; }
.ed-mobile-promo { padding: 4px 0 14px; border-bottom: 1px solid #eee; }
.ed-mobile-promo img { display: block; width: 100%; height: 160px; object-fit: cover; }
.cl-hdr .ed-mobile-promo p { margin: 10px 0 0; font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.6; color: #444; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 992px) { .ed-mobile-promo { display: none; } }

