/* NattyLean first-party layout layer. Keep this separate from the mirrored
   theme so brand/menu fixes do not require editing every captured page. */
:root {
  --ntl-nav-bg: #25234f;
  --ntl-nav-panel: #f6f0ff;
  --ntl-nav-ink: #25234f;
  --ntl-nav-accent: #7a35e8;
  --ntl-nav-lime: #b7e53a;
}

/* Mobile/tablet drawer: NattyLean colors, not the source-store theme. */
.hmb_drawer,
.hmb_panel,
.hmb_header,
.hmb_footer {
  background: var(--ntl-nav-panel) !important;
}
.hmb_header {
  background: var(--ntl-nav-bg) !important;
  color: #fff !important;
}
.hmb_title,
.hmb_close,
.hmb_back,
.hmb_link,
.hmb_icon-btn {
  color: var(--ntl-nav-ink) !important;
}
.hmb_header .hmb_title,
.hmb_header .hmb_close,
.hmb_header .hmb_back {
  color: #fff !important;
}
.hmb_link:hover,
.hmb_link:focus-visible,
.hmb_icon-btn:hover,
.hmb_icon-btn:focus-visible {
  background: rgba(122, 53, 232, .12) !important;
  color: var(--ntl-nav-accent) !important;
}
.hmb_arrow svg path,
.hmb_back svg path {
  stroke: currentColor !important;
}
.hmb_footer {
  border-top-color: rgba(37, 35, 79, .14) !important;
}

/* Keep the wordmark visually stable across desktop, tablet, and phone widths. */
.header__heading,
.header__heading-link,
.header__heading-link.link {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}
.header__heading-link img,
.header__heading-logo,
.header__heading-link .img-fluid {
  width: clamp(160px, 32vw, 225px) !important;
  min-width: 0 !important;
  max-width: 225px !important;
  height: auto !important;
  max-height: 60px !important;
  object-fit: contain !important;
}
@media (max-width: 749px) {
  .header__heading-link img,
  .header__heading-logo,
  .header__heading-link .img-fluid {
    width: min(52vw, 210px) !important;
    min-width: 0 !important;
  }
}

/* ---- <picture> wrapper compatibility -------------------------------------
   The edge WebP upgrade wraps every <img> in <picture>, so theme rules that
   target a direct child (a>img, .x>img) stop matching. The rules below restate
   the affected ones. <picture> keeps its default box so opacity/transform
   rules the theme puts on it (card hover fades) still work. */
.single-pro-img a {
  display: block;
  width: 100%;
}
.single-pro-img a > picture > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.single-pro:hover .single-pro-img a > picture > img {
  opacity: 0;
}
.single-ppr-col > picture > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.insta-slide .item a > picture > img {
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
  position: absolute;
}

/* ---- Mobile drawer: match the desktop dropdown ----------------------------
   Desktop dropdown = navy panel, Archivo 700 uppercase upright text, white
   chevrons, roomy rows. Selectors carry html body so they win over the older
   per-page <style> overrides without adding more !important fights. */
html body .hmb_drawer {
  width: min(86vw, 400px);
  max-width: 400px;
  background: var(--ntl-nav-bg) !important;
  box-shadow: 8px 0 32px rgba(0, 0, 0, .35);
}
html body .hmb_panel,
html body .hmb_footer {
  background: var(--ntl-nav-bg) !important;
}
html body .hmb_header {
  min-height: 64px;
  padding: 0 56px;
  background: var(--ntl-nav-bg) !important;
  border-bottom: 1px solid rgba(246, 240, 255, .18) !important;
}
html body .hmb_title {
  font-family: Archivo, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff !important;
}
html body .hmb_close,
html body .hmb_back {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  line-height: 1;
}
html body .hmb_close {
  right: 8px;
  left: auto;
  font-size: 34px;
  font-family: Arial, sans-serif;
}
html body .hmb_back {
  left: 8px;
}
html body .hmb_back svg {
  width: 32px;
  height: 32px;
}
html body .hmb_list {
  padding: 8px 0 16px;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
html body .hmb_link,
html body .hmb_panel[data-level] ul li a,
html body #hmb_panel_2 ul li a {
  min-height: 54px;
  padding: 0 20px 0 24px;
  font-family: Archivo, sans-serif;
  font-size: 17px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff !important;
  border: 0 !important;
}
html body .hmb_link:hover,
html body .hmb_link:focus-visible,
html body .hmb_link:active {
  background: rgba(255, 255, 255, .08) !important;
  color: var(--ntl-nav-lime) !important;
  outline: none;
}
html body .hmb_arrow svg,
html body .hmb_arrow svg path {
  fill: #fff !important;
  stroke: none !important;
}
html body .hmb_arrow svg {
  width: 28px;
  height: 28px;
}
html body .hmb_link:hover .hmb_arrow svg path,
html body .hmb_link:focus-visible .hmb_arrow svg path {
  fill: var(--ntl-nav-lime) !important;
}
html body .hmb_back svg path {
  fill: #fff !important;
}
html body .hmb_footer {
  gap: 4px;
  padding: 12px 16px;
  border-top: 1px solid rgba(246, 240, 255, .18) !important;
}
html body .hmb_icon-btn {
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #fff !important;
}
html body .hmb_icon-btn:hover,
html body .hmb_icon-btn:focus-visible {
  background: rgba(255, 255, 255, .08) !important;
  color: var(--ntl-nav-lime) !important;
  outline: none;
}

/* ---- Collection cards ------------------------------------------------------
   Both card images fill the square .col-img box. The product shot is contained
   (never cropped); the hover shot is a portrait lifestyle image and covers. */
.single-collection .col-img picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: contain;
}
.single-collection .col-img picture img.hover-image {
  object-fit: cover;
}

/* SEO answer blocks: Quick Answer + Product Facts on the product line pages. */
.ntl-quick-answer,
.ntl-product-facts {
  max-width: 960px;
  margin: 32px auto 0;
  padding: 24px 20px;
  background: var(--ntl-nav-panel);
  border-radius: 12px;
  color: var(--ntl-nav-ink);
}
.ntl-product-facts {
  margin-bottom: 40px;
}
.ntl-quick-answer h2,
.ntl-product-facts h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ntl-nav-ink);
}
.ntl-quick-answer p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
.ntl-product-facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.ntl-product-facts li {
  font-size: 16px;
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .ntl-quick-answer,
  .ntl-product-facts {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Countdown chip: the base rule left it dark text on a dark translucent chip. */
.ntl-countdown__tag {
  background: #b7e53a;
  color: #25234f;
  text-shadow: none;
}

/* Header search: the theme's predictive-search panel is replaced by
   offer-js/nattylean-search.js, so hide the old (empty) one. */
details-modal.header__search .predictive-search,
details-modal.header__search .predictive-search-status {
  display: none !important;
}
details-modal.header__search form.search {
  position: relative;
}
.ntl-sr-box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(37, 35, 79, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(37, 35, 79, 0.14);
  padding: 6px 0;
  text-align: left;
}
.ntl-sr-box[hidden] {
  display: none;
}
.ntl-sr-group {
  padding: 10px 16px 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6394;
}
.ntl-sr-row,
.ntl-sr-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #25234f;
  text-decoration: none;
}
.ntl-sr-row:hover,
.ntl-sr-row:focus-visible {
  background: #f6f0ff;
  outline: none;
}
.ntl-sr-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #f6f0ff;
  flex-shrink: 0;
}
.ntl-sr-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ntl-sr-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.ntl-sr-sub {
  font-size: 14px;
  color: #6b6394;
}
.ntl-sr-all {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
  color: #7a35e8;
  text-decoration: underline;
  border-top: 1px solid rgba(37, 35, 79, 0.1);
}
.ntl-sr-empty {
  margin: 0;
  padding: 18px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #25234f;
}
.ntl-sr-empty a {
  color: #7a35e8;
  text-decoration: underline;
}
.ntl-sr-page-results {
  padding-top: 8px;
  padding-bottom: 48px;
}
.ntl-sr-head {
  margin: 16px 0;
  font-size: 22px;
  color: #25234f;
}
.ntl-sr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.ntl-sr-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(37, 35, 79, 0.1);
  border-radius: 12px;
}
.ntl-sr-card:hover {
  border-color: #7a35e8;
}
.ntl-sr-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f6f0ff;
  border-radius: 8px;
}
.ntl-sr-pages {
  display: grid;
  gap: 4px;
}

/* Chat widget: keep the round button off the sticky "Add to cart" bar.
   offer-js/nattylean-widget-fit.js sets --ntl-widget-bottom to the bar's height
   plus a gap while the bar is on screen, and 24px otherwise. !important because
   the widget's own stylesheet loads after this one and sets bottom on phones. */
.chi-pal-minimized,
.chi-pal-launcher {
  bottom: var(--ntl-widget-bottom, 24px) !important;
  transition: bottom 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
@media (prefers-reduced-motion: reduce) {
  .chi-pal-minimized,
  .chi-pal-launcher {
    transition: none;
  }
}

/* Footer newsletter: working form that replaces the dead legacy one (the markup
   is injected by functions/_middleware.js; offer-js/nattylean-newsletter.js
   submits it). One accent (Grape Violet) on the dark footer, per the brand kit. */
.ntl-news {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}
.ntl-news__title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  color: #f6f0ff;
}
.ntl-news__row {
  display: flex;
  gap: 8px;
}
.ntl-news__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  padding: 0 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #16172e;
  background: #ffffff;
  border: 3px solid transparent;
  border-radius: 999px;
}
.ntl-news__input::placeholder {
  color: #6b6394;
}
.ntl-news__input:focus {
  outline: none;
  border-color: #7a35e8;
  box-shadow: 0 0 0 4px rgba(122, 53, 232, 0.45);
}
.ntl-news__btn {
  flex: 0 0 auto;
  height: 50px;
  padding: 0 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: #7a35e8;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.ntl-news__btn:hover {
  background: #ffffff;
  color: #25234f;
}
.ntl-news__btn:focus-visible {
  outline: 3px solid #f6f0ff;
  outline-offset: 3px;
}
.ntl-news__btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.ntl-news__msg {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #f6f0ff;
}
.ntl-news__msg.is-error {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #7a35e8;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.ntl-news__fine {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(246, 240, 255, 0.78);
}
.ntl-news__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
@media (max-width: 480px) {
  .ntl-news__row {
    flex-direction: column;
  }
  .ntl-news__btn {
    width: 100%;
  }
}

/* Footer newsletter: win back from the theme's button/input rules, and stack the
   field over the button when the footer column is narrow (it is ~250px on
   desktop). */
.footer_wrap .ntl-news {
  container-type: inline-size;
}
.footer_wrap .ntl-news .ntl-news__input {
  color: #16172e !important;
  background: #ffffff !important;
  border: 3px solid transparent !important;
  border-radius: 999px !important;
  height: 50px !important;
}
.footer_wrap .ntl-news .ntl-news__input:focus {
  border-color: #7a35e8 !important;
}
.footer_wrap .ntl-news .ntl-news__btn {
  color: #ffffff !important;
  background: #7a35e8 !important;
  border: none !important;
  border-radius: 999px !important;
  height: 50px !important;
  text-transform: uppercase;
}
.footer_wrap .ntl-news .ntl-news__btn:hover {
  color: #25234f !important;
  background: #ffffff !important;
}
@container (max-width: 360px) {
  .ntl-news__row {
    flex-direction: column;
  }
  .ntl-news__btn {
    width: 100%;
  }
}

/* Footer link text in brand colors (brand kit: white on dark, Soft Lavender,
   one accent). Was bright lime, and the "(c) 2026" line was black on navy. */
.footer_wrap a,
.footer_wrap .text-decoration-hover,
.footer_wrap .f-link {
  color: #f6f0ff !important;
  text-decoration: none;
}
.footer_wrap a:hover,
.footer_wrap a:focus-visible,
.footer_wrap .text-decoration-hover:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-decoration-color: #7a35e8;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.footer_wrap .footer_bottom,
.footer_wrap .copyright,
.footer_wrap .copyright * {
  color: #f6f0ff !important;
}

/* Footer, second pass: the theme colours the ABOUT/MORE column links lime with a
   more specific !important rule, and makes input placeholders white. */
html body .footer_wrap .hs-footer-menu li a,
html body .footer_wrap .footer_item ul li a {
  color: #f6f0ff !important;
}
html body .footer_wrap .hs-footer-menu li a:hover,
html body .footer_wrap .footer_item ul li a:hover {
  color: #ffffff !important;
}
html body .footer_wrap .ntl-news .ntl-news__input::placeholder {
  color: #6b6394 !important;
  opacity: 1;
}
html body .footer_wrap .ntl-news .ntl-news__input {
  width: 100%;
}
