/* MIST blog chrome (2026-10-15): the store's v3 header, menu and footer (theme #189531488585, mist-chrome.css)
   rebuilt for WordPress, plus store tokens on post buttons, links, product boxes and cards.
   Lives in template part shop-header (3643) so it loads on every blog template. */
:root {
  --mist-ink: #272833;
  --mist-slate: #6b7278;
  --mist-muted: #5f616d;
  --mist-line: #e8eaf4;
  --mist-line-hover: #c9ccd8;
  --mist-grey: #f4f4f5;
  --mist-band: #f5f6f8;
  --mist-orange: #f29100;
  --mist-orange-hover: #d98200;
  --mist-r: 4px;
  --mist-gutter: 16px;
  --mist-gap: 40px;
  --mist-font: 'geomanist', system-ui, sans-serif;
  --wp--preset--color--primary: #f29100;
}
@media (min-width: 990px) { :root { --mist-gutter: 32px; --mist-gap: 64px; } }

.mx { font-family: var(--mist-font); color: var(--mist-ink); font-size: 16px; line-height: 1.5; }
.mx *, .mx *::before, .mx *::after { box-sizing: border-box; }
.mx a { color: inherit; text-decoration: none; }
.mx ul { list-style: none; margin: 0; padding: 0; }
.mx p { margin: 0; }
.mx img { display: block; max-width: 100%; height: auto; }
.mx svg { display: block; }
.mx :focus-visible { outline: 2px solid var(--mist-ink); outline-offset: 2px; border-radius: var(--mist-r); }
.mx-wrap, .mx ul.mx-wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--mist-gutter); }
.mx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: white bar, logo, grey search, Sign in and cart */
.mx-head { position: relative; z-index: 50; background: #fff; }
.mx-bar__in { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; column-gap: 8px; min-height: 78px; }
.mx-burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -12px; padding: 0; border: 0; background: none; color: var(--mist-ink); cursor: pointer; }
.mx-burger svg { width: 20px; height: 18px; }
.mx-logo { justify-self: center; }
.mx-logo img { width: 108px; }
.mx-icons { display: flex; align-items: center; gap: 4px; margin-right: -8px; }
.mx-icon { position: relative; display: flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; justify-content: center; color: var(--mist-ink); }
.mx-icon svg { width: 22px; height: 22px; }
.mx-cart svg { width: 44px; height: 44px; margin: 0 -8px; }
.mx-icon__label { display: none; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; }
.mx-cart__count { position: absolute; top: 4px; left: 24px; display: flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--mist-orange); color: #fff; font-size: 11px; font-weight: 500; line-height: 1; }
.mx-cart__count[hidden] { display: none; }

.mx-search { position: relative; }
.mx-search input { width: 100%; height: 44px; margin: 0; padding: 0 44px 0 42px; border: 0; border-radius: var(--mist-r); background: var(--mist-grey); color: var(--mist-ink); font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none; box-shadow: none; }
.mx-search input::placeholder { color: #8a9095; opacity: 1; }
.mx-search input::-webkit-search-cancel-button { display: none; }
.mx-search input:focus-visible { outline: 2px solid var(--mist-ink); outline-offset: 0; }
.mx-search button { position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--mist-ink); cursor: pointer; }
.mx-search button svg { width: 18px; height: 18px; }
.mx-search--desk { display: none; }
.mx-search--mob { padding: 0 var(--mist-gutter) 12px; background: #fff; border-bottom: 1px solid var(--mist-line); }
.mx-search--mob button { left: var(--mist-gutter); }

/* Shop menu: the store's 8 top-level links; Vape Deals is the one orange pill */
.mx-menu { display: none; background: #fff; border-bottom: 1px solid var(--mist-line); }
.mx-menu__list { display: flex; justify-content: space-between; align-items: center; }
.mx-menu__list a { display: block; padding: 12px 0; font-size: 16px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.mx-menu__list a:hover { color: var(--mist-orange); }
.mx-menu__list a.mx-deals { margin: 6px 0; padding: 6px 14px; border-radius: var(--mist-r); background: var(--mist-orange); color: #fff; line-height: 1.2; }
.mx-menu__list a.mx-deals:hover { background: var(--mist-orange-hover); color: #fff; }

@media (min-width: 990px) {
  .mx-bar__in { grid-template-columns: auto 1fr auto; column-gap: 28px; min-height: 94px; }
  .mx-burger, .mx-search--mob { display: none; }
  .mx-logo { justify-self: start; }
  .mx-logo img { width: 132px; }
  .mx-search--desk { display: block; }
  .mx-search--desk input { height: 46px; padding: 0 48px 0 16px; }
  .mx-search--desk button { left: auto; right: 2px; top: 1px; color: var(--mist-slate); }
  .mx-icons { gap: 18px; margin-right: 0; }
  .mx-icon { min-width: 0; }
  .mx-icon svg { width: 20px; height: 20px; }
  .mx-cart svg { width: 36px; height: 36px; margin: 0 -4px 0 -8px; }
  .mx-cart__count { top: 4px; left: 16px; }
  .mx-icon__label { display: inline; }
  .mx-menu { display: block; border-top: 1px solid var(--mist-line); }
}

/* Blog sub-nav (template part 3759, unchanged): the blog's own section bar, so it must not read as a second shop menu.
   Grey band (store band colour), "Blog Home" as a bold label with a divider, sections lighter, orange underline on the current one. */
#blog-header { background: var(--mist-band) !important; border-bottom: 1px solid var(--mist-line) !important; }
#blog-header > .wp-block-column:first-child, #blog-header > .wp-block-column:last-child { display: none; }
#blog-header > .wp-block-column:nth-child(2) { flex: 1 1 auto !important; max-width: 1440px; margin: 0 auto !important; padding: 0 var(--mist-gutter); }
#menu-blog-navigation { display: flex !important; justify-content: flex-start !important; align-items: center; gap: 28px; margin: 0; padding: 0; }
#menu-blog-navigation > li::after { content: none !important; }
#menu-blog-navigation, #menu-blog-navigation > li, #menu-blog-navigation a, #blog-header .wp-block-mist-menu { height: auto !important; min-height: 0 !important; }
#menu-blog-navigation a { display: block; padding: 12px 0 10px !important; border-bottom: 2px solid transparent; color: var(--mist-muted) !important; font-family: var(--mist-font); font-size: 15px !important; font-weight: 400 !important; line-height: 1.3; text-decoration: none !important; }
#menu-blog-navigation a:hover { color: var(--mist-ink) !important; }
#menu-blog-navigation > li:first-of-type { position: relative; padding-right: 28px; }
#menu-blog-navigation > li:first-of-type::before { content: ''; position: absolute; top: 50%; right: 0; width: 1px; height: 18px; background: var(--mist-line-hover); transform: translateY(-50%); }
#menu-blog-navigation > li:first-of-type > a { color: var(--mist-ink) !important; font-weight: 700 !important; }
#menu-blog-navigation .current-menu-item > a, #menu-blog-navigation .current-category-ancestor > a, #menu-blog-navigation .current-post-ancestor > a { border-bottom-color: var(--mist-orange); color: var(--mist-ink) !important; font-weight: 500 !important; }

/* Content on the store grid (1440px, same 32px edge as the header). Posts and category archives were boxed at 1140px by
   their template layouts; since 15 Oct the templates set 1440px themselves and carry the class mx-grid (gutter below),
   home and search at 1240px (.mh-wrap). Article text keeps its 800px reading column, left-aligned beside the contents box. */
@media (min-width: 782px) {
  html body .mist-home .mh-wrap { max-width: 1440px; padding-left: var(--mist-gutter); padding-right: var(--mist-gutter); }
  .single-post main.is-layout-constrained > article { margin-left: 32px !important; }
  .mx-grid > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { box-sizing: border-box; padding-left: var(--mist-gutter) !important; padding-right: var(--mist-gutter) !important; }
}

/* Phone drawer: white like the store's, ink links, orange "Go to the shop" with white text */
.mx-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(39, 40, 51, 0.5); opacity: 0; transition: opacity 0.25s; }
.mx-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 100001; width: min(86vw, 360px); overflow-y: auto; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); transform: translateX(-100%); transition: transform 0.25s ease; }
.mx-open .mx-backdrop { opacity: 1; }
.mx-open .mx-drawer { transform: none; }
.mx-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 12px var(--mist-gutter); border-bottom: 1px solid var(--mist-line); }
.mx-drawer__head img { width: 96px; }
.mx-drawer__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--mist-ink); cursor: pointer; }
.mx-drawer__close svg { width: 18px; height: 18px; }
.mx-drawer__sec { padding: 16px var(--mist-gutter) 4px; }
.mx-drawer__label { margin: 0 0 4px !important; color: var(--mist-slate); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.mx-drawer__sec a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--mist-line); font-size: 17px; font-weight: 500; }
.mx-drawer__sec li:last-child a { border-bottom: 0; }
.mx-drawer__sec a::after { content: '\203A'; color: var(--mist-slate); font-size: 20px; }
.mx-drawer__sec a.mx-deals { color: var(--mist-orange); }
.mx-drawer__shop { display: flex !important; align-items: center; justify-content: center; min-height: 48px; margin: 12px var(--mist-gutter) 24px; border-radius: var(--mist-r); background: var(--mist-orange); color: #fff !important; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mx-backdrop, .mx-drawer { transition: none; } }

/* Footer: dark band, white logo, grey links, headings with an orange rule; centred on phones */
.wp-site-blocks > footer.wp-block-template-part { margin-top: var(--mist-gap) !important; padding: 0 !important; }
.mx-foot { padding: 56px 0 24px; background: #1b1d24; color: #c8ccd4; }
.mx-foot__grid { display: grid; gap: 32px; }
.mx-foot__brand { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.mx-foot__logo { width: 150px; margin-bottom: 8px; }
.mx-foot__brand p { max-width: 46ch; font-size: 15px; line-height: 1.6; color: #aab0bb; }
.mx-foot__brand a { color: #fff; }
.mx-foot__col { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.mx-foot__col:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.mx-foot__col summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.mx-foot__col summary::-webkit-details-marker { display: none; }
.mx-foot__col summary::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform 0.2s; }
.mx-foot__col[open] summary::after { transform: rotate(-135deg); }
.mx-foot__col ul { padding-bottom: 12px; }
.mx-foot__col a { display: block; padding: 10px 0; font-size: 15px; line-height: 1.4; color: #aab0bb; }
.mx-foot__col a:hover, .mx-foot__col a:focus-visible { color: #fff; }
.mx-foot__reviews { display: flex; justify-content: center; margin-top: 32px; }
.mx-foot__reviews a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; }
.mx-foot__reviews svg { width: 16px; height: 16px; color: var(--mist-orange); }
.mx-foot__bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.mx-foot__legal p { font-size: 13px; line-height: 1.6; color: #aab0bb; }
.mx-foot__legal .mx-foot__age { color: #fff; }
.mx-foot__pay { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.mx-foot__pay img { box-sizing: content-box; width: auto; height: 24px; padding: 6px 8px; border-radius: var(--mist-r); background: #fff; }
.mx-foot__pay .mx-foot__badge { height: 30px; padding: 3px 8px; }
@media (min-width: 750px) {
  .mx-foot__grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .mx-foot__brand { align-items: flex-start; text-align: left; }
  .mx-foot__menus { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-content: start; }
  .mx-foot__col, .mx-foot__col:last-child { border: 0; }
  .mx-foot__col summary { display: inline-block; min-height: 0; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--mist-orange); pointer-events: none; }
  .mx-foot__col summary::after { content: none; }
  .mx-foot__col a { padding: 5px 0; }
  .mx-foot__reviews { justify-content: flex-start; }
  .mx-foot__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .mx-foot__pay { justify-content: flex-end; }
}
@media (min-width: 990px) {
  .mx-foot { padding-top: 72px; }
  .mx-foot__logo { width: 170px; }
}

/* Post and archive content: store tokens on text, links, buttons, boxes and cards */
.wp-block-post-content, .wp-block-post-content p, .wp-block-post-content li { color: var(--mist-ink); }
.wp-block-post-content :is(h2, h3, h4), .wp-block-post-title, .wp-block-post-title a { color: var(--mist-ink); letter-spacing: -0.01em; }
.wp-block-post-content :is(p, li) a:not([class]) { color: var(--mist-ink); text-decoration: underline; text-decoration-color: var(--mist-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wp-block-post-content :is(p, li) a:not([class]):hover { color: var(--mist-orange); }
a.wp-block-button__link, a.stk-button { display: inline-flex !important; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px !important; border: 0 !important; border-radius: var(--mist-r) !important; font-family: var(--mist-font); font-size: 16px !important; font-weight: 700 !important; line-height: 1.2; }
a.wp-block-button__link.has-primary-background-color, a.stk-button { background: var(--mist-orange) !important; color: #fff !important; }
a.stk-button .stk-button__inner-text { color: #fff !important; }
a.wp-block-button__link.has-primary-background-color:hover, a.stk-button:hover { background: var(--mist-orange-hover) !important; }
a.stk-button::before { content: none !important; }
.multiply-products .item, .single-product .item { border: 1px solid var(--mist-line) !important; border-radius: var(--mist-r) !important; background: #fff; transition: border-color 0.15s; }
.multiply-products .item:hover, .single-product .item:hover { border-color: var(--mist-line-hover) !important; }
.multiply-products .item-title a, .single-product .item-title a { color: var(--mist-ink) !important; font-size: 16px; font-weight: 700 !important; line-height: 1.35; }
.multiply-products .item-price, .single-product .item-price { color: var(--mist-ink) !important; font-size: 18px !important; font-weight: 700 !important; letter-spacing: -0.01em; }
.multiply-products .item-price del, .single-product .item-price del { color: var(--mist-slate); font-size: 14px; font-weight: 400; }
aside .wp-block-group.has-border-color { border: 1px solid var(--mist-line) !important; border-radius: var(--mist-r) !important; }
.wp-block-post-featured-image img, .wp-block-post-featured-image a { border-radius: var(--mist-r) !important; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { color: var(--mist-ink); }
.wp-block-query-pagination .page-numbers.current { border-radius: var(--mist-r); background: var(--mist-ink); color: #fff; }
/* Option B (only if Fred picks it): the blog homepage body (template 3443, built 4 Oct) moves from its own
   lilac/rounded look to the store's flat tokens. Variables first, then the hard-coded pill radii. */
html body .mist-home { --mh-ink: #272833; --mh-slate: #5f616d; --mh-line: #e8eaf4; --mh-l50: #f5f6f8; --mh-l100: #e8eaf4; --mh-lilac: #f5f6f8; --mh-r: 4px; --mh-shadow: none; }
html body .mist-home .mh-pill, html body .mist-home .mh-chips a, html body .mist-home .mh-cta, html body .mist-home .mh-shop, html body .mist-home .mh-sheet, html body .mist-home .mh-row,
html body .mist-home .wp-block-search__input, html body .mist-home .wp-block-search__button, html body .mist-home .wp-block-search__inside-wrapper { border-radius: var(--mist-r) !important; }
html body .mist-home .mh-row img { border-radius: var(--mist-r); }
html body .mist-home .mh-cta { font-weight: 700; }
html body .mist-home .mh-feature, html body .mist-home .mh-fam, html body .mist-home .mh-lead { box-shadow: none; }
html body .mist-home .mh-fam { border-color: var(--mist-line); }
