/* AU VapeBase storefront 1.4.2.
 * The verified 1.3.11 cart component remains the baseline; this layer only
 * tightens the editorial system and adds live-search presentation.
 */
:root{
  --mist-shell:min(1400px,calc(100vw - 40px));
  --mist-ease:cubic-bezier(.22,1,.36,1);
}
body.mist-age-open{overflow:hidden}

/* A tighter, less card-heavy hero with an operational rail on wide screens. */
.mist-hero{
  grid-template-columns:minmax(330px,.72fr) minmax(0,1.08fr) 154px;
  grid-template-rows:minmax(0,1fr);
  height:clamp(530px,57vh,590px);
  min-height:0;
  margin-top:18px;
  border:1px solid rgba(22,30,25,.18);
  border-radius:14px;
  box-shadow:0 18px 48px rgba(25,32,28,.1);
}
.mist-hero-copy{min-height:0;padding:clamp(38px,4.5vw,62px)}
.mist-hero-copy h1{max-width:580px;font-size:clamp(44px,4.7vw,67px);line-height:.99}
.mist-hero-intro{margin:20px 0;font-size:16px;line-height:1.6}
.mist-hero-benefits{gap:18px;margin-bottom:24px}
.mist-hero-benefits>span{
  min-width:170px;
  padding:11px 0 0;
  border:0;
  border-top:1px solid rgba(255,255,255,.22);
  border-radius:0;
  background:transparent;
}
.mist-hero-visual{height:100%;min-height:0;border-left:1px solid rgba(22,30,25,.18)}
.mist-hero-visual>img{position:absolute;inset:0}
.mist-hero-product-meta{top:auto;right:18px;bottom:18px;width:min(250px,calc(100% - 36px));border-radius:8px}
.mist-hero-product-meta.has-thumbnail{grid-template-columns:52px minmax(0,1fr);width:min(310px,calc(100% - 36px));column-gap:11px}
.mist-hero-product-meta.has-thumbnail>*:not(.mist-hero-featured-thumb){grid-column:2}
.mist-hero-featured-thumb{grid-row:1/span 5;width:52px!important;height:52px!important;border:1px solid var(--mist-faint);border-radius:5px;background:#fff;object-fit:contain!important}
.mist-hero-product-price{margin-top:3px;color:var(--mist-ink);font-size:13px!important;font-weight:850;letter-spacing:0!important}
.mist-hero-product-price del{color:var(--mist-muted);font-weight:600}
.mist-hero-rail{
  display:grid;
  grid-template-rows:repeat(3,auto 1fr);
  min-width:0;
  border-left:1px solid var(--mist-line);
  background:#f0eee6;
  color:var(--mist-ink);
}
.mist-hero-rail span{padding:18px 15px 5px;color:var(--mist-muted);font-size:9px;font-weight:800;letter-spacing:.12em}
.mist-hero-rail p{display:flex;align-items:flex-end;margin:0;padding:0 15px 18px;border-bottom:1px solid var(--mist-line);font-family:var(--mist-sans);font-size:15px;font-weight:760;line-height:1.25}
.mist-hero-rail p:last-child{border-bottom:0}

.mist-primary-nav a{border-radius:0;background:transparent!important}
.mist-primary-nav a:after{display:block;right:13px;bottom:5px;left:13px;border-bottom:2px solid var(--mist-ink);transition:transform .18s ease}
.mist-primary-nav a:hover:after,.mist-primary-nav .current-menu-item a:after{transform:scaleX(1)}

/* Keep the catalogue editorial and product-led, without a repeated template-card treatment. */
.mist-category-index>a{border-radius:8px;box-shadow:none}
.mist-category-index>a:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(24,31,27,.06)}
.mist-values-section{padding:28px 0 52px}
.mist-values-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.55fr);align-items:end;gap:44px;margin-bottom:24px}
.mist-values-intro h2{max-width:720px;margin:0;font-size:clamp(32px,3.6vw,50px);font-weight:780;letter-spacing:-.04em;line-height:1.04}
.mist-values-intro>p{max-width:520px;margin:0;color:var(--mist-muted)}
.mist-value-strip{margin-bottom:0;border-radius:8px}
.mist-products-section{grid-template-columns:250px minmax(0,1fr);gap:34px;padding:52px 0 82px}
.mist-catalogue-intro{padding:4px 20px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.mist-catalogue-intro h2{font-size:34px}
.mist-product-list .products,.woocommerce ul.products{gap:12px!important}
.woocommerce ul.products li.product,.woocommerce ul.products li.product:nth-child(odd),.woocommerce ul.products li.product:nth-child(even){
  border-radius:8px;
  box-shadow:none;
  transition:transform .2s var(--mist-ease),border-color .2s ease,box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover{box-shadow:0 12px 28px rgba(27,34,30,.07)}
.woocommerce ul.products li.product a img{border-radius:5px;transition:transform .2s var(--mist-ease),filter .2s ease}
.woocommerce ul.products li.product:hover a img{transform:scale(1.02)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  display:-webkit-box;
  min-height:2.5em;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.woocommerce ul.products li.product .button{min-height:46px;white-space:normal;text-align:center;line-height:1.25}
.woocommerce ul.products li.product .button.product_type_variable{background:var(--mist-ink)!important;border-color:var(--mist-ink)!important;color:#fff!important}
.woocommerce ul.products li.product .button.product_type_variable:hover{background:#2a352e!important;color:var(--mist-signal)!important}
.woocommerce .out-of-stock-badge{font-size:0!important}
.woocommerce .out-of-stock-badge:after{content:"Sold out";font-size:9px}
.mist-operations-section{border-radius:12px}
.mist-support-section,.mist-faq-section{padding:72px 0;border:0;border-top:1px solid var(--mist-line);border-radius:0;background:transparent}
.mist-support-methods a,.mist-faq-list details{border-radius:7px}
.mist-newsletter{border-radius:12px 12px 0 0}
.mist-cart-error{flex:0 0 auto;margin:12px 0 0;padding:10px 12px;border:1px solid #d9a99f;border-radius:7px;background:#fff1ee;color:#7c2e23;font-size:12px;line-height:1.45}
.mist-cart-error[hidden]{display:none!important}
.mist-mini-cart-variation{grid-column:2;min-width:0;color:var(--mist-muted);font-size:11px;line-height:1.35}
.mist-mini-cart-variation dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 5px;margin:4px 0 0}
.mist-mini-cart-variation dt,.mist-mini-cart-variation dd{margin:0;overflow-wrap:anywhere}
.mist-mini-cart-variation dt{font-weight:700}

/* Live product search: dropdown on desktop, integrated results in the mobile sheet. */
.mist-catalog-search{overflow:visible}
.mist-catalog-search__form{position:relative;overflow:visible}
.mist-search-results[hidden]{display:none!important}
.mist-search-results{
  position:absolute;
  z-index:25;
  top:calc(100% + 10px);
  right:0;
  left:0;
  overflow:hidden;
  border:1px solid #cbd1c8;
  border-radius:10px;
  background:#fff;
  box-shadow:0 22px 55px rgba(18,28,22,.16);
}
.mist-search-results__status{min-height:0;margin:0;padding:13px 16px;color:var(--mist-muted);font-size:12px;line-height:1.45}
.mist-search-results[data-state="results"] .mist-search-results__status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.mist-search-results[data-state="loading"] .mist-search-results__status:before{
  content:"";
  display:inline-block;
  width:11px;
  height:11px;
  margin-right:8px;
  border:2px solid #c7cdc5;
  border-top-color:var(--mist-ink);
  border-radius:50%;
  vertical-align:-2px;
  animation:mist-search-spin .7s linear infinite;
}
@keyframes mist-search-spin{to{transform:rotate(1turn)}}
.mist-search-results__list{max-height:min(390px,48vh);padding:0;margin:0;overflow-y:auto;overscroll-behavior:contain;list-style:none;scrollbar-width:thin}
.mist-search-result{margin:0;border-top:1px solid var(--mist-faint)}
.mist-search-result:first-child{border-top:0}
.mist-search-result>a{
  display:grid;
  grid-template-columns:56px minmax(0,1fr) auto;
  grid-template-areas:"image name price" "image stock price";
  align-items:center;
  gap:3px 13px;
  min-height:72px;
  padding:8px 13px;
  color:var(--mist-ink)!important;
  text-decoration:none;
  transition:background-color .16s ease,color .16s ease;
}
.mist-search-result[aria-selected="true"]>a,.mist-search-result>a:hover,.mist-search-result>a:focus-visible{outline:0;background:#f0f3eb}
.mist-search-result img{grid-area:image;width:56px;height:56px;border:1px solid var(--mist-faint);border-radius:5px;background:#f6f6f2;object-fit:contain}
.mist-search-result__name{grid-area:name;min-width:0;overflow:hidden;font-size:14px;font-weight:780;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.mist-search-result__stock{grid-area:stock;color:#557046;font-size:11px}
.mist-search-result__stock.is-out{color:#9a4235}
.mist-search-result__price{grid-area:price;max-width:130px;font-size:13px;font-weight:820;text-align:right}
.mist-search-results__all{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 15px;border-top:1px solid var(--mist-line);background:#f5f5f0;color:var(--mist-ink)!important;font-size:12px;font-weight:800;text-decoration:none}
.mist-search-results__all[hidden]{display:none!important}
.mist-search-results__all svg{width:16px}
.mist-search-results__all:hover{background:var(--mist-signal)}
.mist-catalog-search .mist-catalog-search__close:hover{transform:none}
.mist-catalog-search__inner{grid-template-columns:170px minmax(0,1fr) 44px}
.mist-catalog-search .mist-catalog-search__close{width:44px!important;height:44px!important;min-width:44px!important;flex:0 0 44px}

@media(max-width:1120px){
  .mist-hero{grid-template-columns:minmax(320px,.78fr) minmax(0,1.22fr)}
  .mist-hero-rail{display:none}
}

@media(max-width:860px){
  .mist-hero{grid-template-columns:1fr;height:auto}
  .mist-hero-copy{padding:44px 34px}
  .mist-hero-visual{min-height:390px;border-top:1px solid rgba(22,30,25,.18);border-left:0}
  .mist-products-section{grid-template-columns:1fr;padding-top:44px}
  .mist-catalogue-intro{padding-right:0}
  .mist-support-section,.mist-faq-section{padding:58px 0}
  .mist-values-intro{grid-template-columns:1fr;gap:16px}
  .mist-primary-nav a:after{display:none}
}

@media(max-width:560px){
  :root{--mist-shell:calc(100vw - 24px)}
  .mist-hero{width:100%;margin-top:0;border-right:0;border-left:0;border-radius:0}
  .mist-hero-copy{padding:34px 20px 30px}
  .mist-hero-copy h1{font-size:clamp(38px,11.7vw,50px)}
  .mist-hero-benefits{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .mist-hero-benefits>span{display:grid;grid-template-columns:18px 1fr;min-width:0}
  .mist-hero-visual{min-height:305px}
  .mist-hero-product-meta{right:12px;bottom:calc(78px + env(safe-area-inset-bottom));width:min(220px,calc(100% - 24px));padding:12px}
  .mist-hero-product-meta.has-thumbnail{width:min(260px,calc(100% - 24px))}
  .mist-category-index>a{border-radius:6px}
  .mist-products-section{padding:42px 0 58px}
  .mist-values-section{padding:22px 0 38px}
  .woocommerce ul.products li.product,.woocommerce ul.products li.product:nth-child(odd),.woocommerce ul.products li.product:nth-child(even){border-radius:6px}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:2.6em;-webkit-line-clamp:2}
  .mist-operations-section,.mist-newsletter{border-radius:0}
  .mist-operations-grid{gap:30px;padding:42px 20px 48px}
  .mist-operations-grid ol{gap:8px;background:transparent}
  .mist-operations-grid li{padding:18px 15px;border:1px solid rgba(255,255,255,.13);border-radius:8px}
  .mist-support-section,.mist-faq-section{padding:46px 0}
  .mist-search-results{position:static;margin-top:10px;border-radius:8px;box-shadow:none}
  .mist-search-results__list{max-height:min(290px,38dvh)}
  .mist-search-result>a{grid-template-columns:52px minmax(0,1fr);grid-template-areas:"image name" "image price" "image stock";min-height:70px;padding:8px 10px}
  .mist-search-result img{width:52px;height:52px}
  .mist-search-result__name{font-size:13px}
  .mist-search-result__price{max-width:none;text-align:left}
}

@media(max-width:360px){
  .mist-hero-benefits{grid-template-columns:1fr}
  .mist-search-result>a{grid-template-columns:48px minmax(0,1fr)}
  .mist-search-result img{width:48px;height:48px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*:before,*:after{animation:none!important;transition:none!important}
  .mist-category-index>a:hover,.woocommerce ul.products li.product:hover,.woocommerce ul.products li.product:hover a img,.mist-catalog-search .mist-catalog-search__close:hover{transform:none!important}
  .mist-cart-drawer .mist-cart-close .mist-close-glyph,.mist-mini-cart-content .woocommerce-mini-cart-item>.remove .mist-close-glyph,.mist-mobile-dock>a,.mist-mobile-dock>button{transform:none!important}
}
