/*
Theme Name: Hayati Vapes
Theme URI: https://hayativapes.uk
Author: Hayati Vapes UK
Description: Lightweight, SEO-first WooCommerce theme for Hayati Vapes UK. Built for Core Web Vitals, structured data and UK vape retail compliance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hayati
Tags: e-commerce, woocommerce, custom-menu, featured-images, responsive
WC requires at least: 8.0
WC tested up to: 10.9
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
/* Brand identity — see the Hayati Vapes UK brand mark spec.
   Teal appears as text only at --teal-deep (AA contrast); --teal is reserved
   for the mark, fills and accents sitting on ink. */
:root {
  --ink:          #0C1117;  /* Ink        — primary dark */
  --teal:         #00C9A7;  /* Vapour teal — mark, fills, accents on ink */
  --teal-deep:    #00806F;  /* Deep teal   — teal on light backgrounds (AA) */
  --mist:         #F4F7F6;  /* Mist        — tinted surface */
  --ink-soft:     #062018;  /* text on teal fills */

  --brand:        var(--ink);
  --brand-dark:   #05080B;
  --brand-light:  #1B242C;
  --accent:       var(--teal-deep);
  --gold:         #eabe12;
  --sale:         #c8102e;
  --body:         #4A565C;
  --muted:        #8A9698;
  --line:         #E7ECEB;
  --line-strong:  #E2E8E7;
  --bg-soft:      var(--mist);
  --footer-bg:    var(--ink);
  --white:        #ffffff;

  --radius:       6px;
  --radius-sm:    4px;
  --radius-lg:    12px;
  --container:    1440px;
  --gutter:       20px;

  /* Archivo carries both roles: 800/900 for display, 400–600 for text. */
  --font-head: Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-body: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layered, low-opacity shadows read as depth rather than as a grey halo. */
  --shadow-sm: 0 1px 2px rgba(16,16,32,.06), 0 1px 3px rgba(16,16,32,.04);
  --shadow-md: 0 2px 4px rgba(16,16,32,.04), 0 8px 24px rgba(16,16,32,.08);
  --shadow-lg: 0 4px 8px rgba(16,16,32,.04), 0 16px 48px rgba(16,16,32,.12);

  /* 4px spacing scale keeps vertical rhythm consistent across templates. */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --header-h: 64px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
}
/* Fluid type: display sizes scale with the viewport so headings stay
   proportionate instead of jumping at one breakpoint. */
h1 { font-size: clamp(26px, 1.2rem + 1.6vw, 38px); letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 1.1rem + 1.1vw, 30px); letter-spacing: -.005em; }
h3 { font-size: clamp(18px, 1rem + .5vw, 22px); }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 9999;
  width: auto; height: auto; clip: auto;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn,
.button,
button.button,
input[type="submit"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: .01em;
  line-height: 1.2;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  text-align: center;
  transition: background .15s var(--ease), transform .05s var(--ease);
}
.btn:hover,
.button:hover,
button.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--teal-deep);
  color: var(--white);
}
.btn:active, .button:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn--ghost:hover { background: var(--brand); color: var(--white); }

.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   4. Forms
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--body);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header { position: relative; z-index: 500; }

/* 5a. Promo top bar */
.topbar {
  background: var(--ink);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  text-align: center;
}
.topbar__inner { display: flex; align-items: center; justify-content: center; min-height: 40px; gap: 1em; }
.topbar a { color: var(--teal); text-decoration: underline; }

/* 5b. Main header row — lockup | search | actions */
.header-main { background: var(--white); border-bottom: 1px solid var(--line); }
.header-main__inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  min-height: var(--header-h);
  padding-block: var(--s4);
}

/* Brand lockup */
.site-branding { flex: 0 0 auto; }
.site-branding img { max-height: 46px; width: auto; }
.lockup { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); }
.lockup:hover { color: var(--ink); }
.lockup .hayati-mark { flex: 0 0 auto; display: block; }
.lockup__text { display: flex; flex-direction: column; gap: 3px; }
.lockup__word {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  color: currentColor;
}
.lockup__desc {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .3em;
  line-height: 1;
  color: var(--teal-deep);
}
.lockup--teal { color: var(--white); }
.lockup--teal .lockup__desc { color: var(--teal); }

/* icon buttons */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background .15s var(--ease);
}
.icon-btn:hover { background: var(--mist); color: var(--ink); }
.icon-btn svg,
.header-action svg,
.search-form button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; }

/* 5c. Pill search */
.header-search { flex: 1 1 auto; max-width: 420px; margin-inline: auto; }
.header-search form {
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: var(--mist);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 6px 5px 16px;
  transition: border-color .15s var(--ease);
}
.header-search form:focus-within { border-color: var(--teal-deep); }
.header-search input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink);
}
.header-search input[type="search"]:focus { outline: none; }
.header-search input[type="search"]::placeholder { color: var(--muted); }
.header-search button.button {
  flex: 0 0 auto;
  background: var(--teal);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 999px;
  padding: 7px 16px;
}
.header-search button.button:hover { background: #23E0BF; color: var(--ink-soft); }
.header-search button.button svg { display: none; }
.header-search button.button::after { content: "Search"; }

/* 5c2. Account + cart */
.header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header-actions__divider { width: 1px; height: 22px; background: var(--line-strong); }
.header-action {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.header-action:hover { color: var(--teal-deep); }
.cart-btn__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 800;
}

/* 5d. Primary nav — light row, teal active underline */
.nav-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.nav-bar__inner { display: flex; align-items: center; }

.primary-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--s5);
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-menu::-webkit-scrollbar { display: none; }
.primary-menu li { position: relative; flex-shrink: 0; }
.primary-menu > li > a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  padding: 14px 0;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.primary-menu > li > a:hover { color: var(--ink); }
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-parent > a,
.primary-menu > li.current-product-ancestor > a {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

/* dropdowns */
.primary-menu ul.sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 600;
  min-width: 240px; margin: 0; padding: 6px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.primary-menu li:hover > ul.sub-menu,
.primary-menu li:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu ul.sub-menu a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--body);
}
.primary-menu ul.sub-menu a:hover { background: var(--bg-soft); color: var(--brand); }
.primary-menu ul.sub-menu ul.sub-menu { top: 0; left: 100%; border-radius: var(--radius); }

/* 5e. Trust strip */
.trust-strip { background: var(--bg-soft); text-align: center; padding: 14px 0; }
.trust-strip__title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); margin: 0; }
.trust-strip__sub { font-size: 14px; color: var(--body); margin: 2px 0 0; }

/* 5f. Mobile drawer */
.burger { display: none; }
.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 1000;
  width: min(320px, 85vw);
  background: var(--white);
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 1rem;
  box-shadow: var(--shadow-md);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.drawer .lockup__word { font-size: 17px; }
.drawer .lockup__desc { font-size: 7.5px; }
.drawer__search { margin: .85rem 0; }
.drawer__search form {
  display: flex; align-items: center; gap: var(--s2);
  background: var(--mist); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 5px 6px 5px 16px;
}
.drawer__search input[type="search"] { flex: 1; border: 0; background: transparent; padding: 6px 0; font-size: 13.5px; }
.drawer__search input[type="search"]:focus { outline: none; }
.drawer__search button.button {
  flex: 0 0 auto; background: var(--teal); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 16px; font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0;
}
.drawer__search button.button svg { display: none; }
.drawer__search button.button::after { content: "Search"; }
.drawer__title { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin: 0; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--body); font-family: var(--font-head); font-size: 15px; font-weight: 500; }
.drawer ul.sub-menu a { padding-left: 20px; font-size: 14px; font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   6. Sections & headings
   ========================================================================== */
.section { padding: 40px 0; }
.section--soft { background: var(--bg-soft); }
.section__title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  margin: 0 0 24px;
}
.section__title--left { text-align: left; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.section__head .section__title { margin: 0; font-size: clamp(21px, 1.2rem + .8vw, 26px); font-weight: 800; letter-spacing: -.01em; }
.section__link { font-size: 13.5px; font-weight: 700; color: var(--teal-deep); white-space: nowrap; }
.section__link:hover { color: var(--ink); }
.section__lead { text-align: center; max-width: 800px; margin: -12px auto 28px; color: var(--body); }

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero { position: relative; background: var(--ink); color: var(--white); }
.hero img { width: 100%; object-fit: cover; }
.hero__slide { position: relative; }

.hero__caption {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 72px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
/* Banner artwork keeps its own dark background, so the image sits flush and the
   copy overlays the empty left-hand side rather than the products. */
.hero__media { display: block; width: 100%; }
.hero__media img { width: 100%; height: auto; display: block; }

@media (min-width: 901px) {
  .hero--has-image .hero__slide { position: relative; }
  .hero--has-image .hero__caption {
    position: absolute;
    inset: 0;
    justify-content: center;
    max-width: var(--container);
    margin-inline: auto;
    left: 0; right: 0;
    /* Scrim only on the copy side; the product side stays clean. */
    background: linear-gradient(90deg, rgba(12,17,23,.94) 0%, rgba(12,17,23,.72) 42%, rgba(12,17,23,0) 68%);
  }
  .hero--has-image .hero__caption h1 { max-width: 13ch; }
  .hero--has-image .hero__sub { max-width: 44ch; }
}

/* On phones the artwork is centred, so text over it would sit on the devices.
   Stack instead: image first, copy beneath on the ink panel. */
@media (max-width: 900px) {
  .hero--has-image .hero__slide { display: block; }
  .hero--has-image .hero__caption { position: static; padding-top: var(--s5); }
}
.hero__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
}
.hero__caption h1,
.hero__caption h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(30px, 2rem + 2.2vw, 46px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.02em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__sub {
  margin: 0;
  font-size: clamp(15px, .9rem + .4vw, 16.5px);
  line-height: 1.6;
  color: #A8B4B7;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn--accent { background: var(--teal); color: var(--ink-soft); border-radius: 10px; padding: 14px 24px; }
.btn--accent:hover { background: #23E0BF; color: var(--ink-soft); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid #33424A;
  border-radius: 10px;
  padding: 13px 24px;
}
.btn--outline:hover { background: transparent; border-color: var(--teal); color: var(--white); }

/* ==========================================================================
   8. Category tiles
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.cat-tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0,128,111,.3);
}
.cat-tile img { width: 100%; aspect-ratio: 16/7; object-fit: cover; transition: transform .4s var(--ease); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile__label {
  position: absolute; inset: auto 0 0 0;
  padding: var(--s5) var(--s4) var(--s4);
  background: linear-gradient(to top, rgba(12,8,32,.82), rgba(12,8,32,.35) 60%, transparent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Image-less tiles are a designed surface in their own right, not a fallback:
   the catalogue ships before product photography does. */
.cat-tile--plain {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  min-height: 150px;
  padding: 20px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.cat-tile--plain:hover {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
  transform: none;
}
.cat-tile__count { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.cat-tile__body { display: flex; flex-direction: column; gap: 8px; }
.cat-tile__name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.cat-tile__cta { font-size: 12.5px; font-weight: 700; color: var(--teal-deep); }
.cat-tile--plain:hover .cat-tile__name { color: var(--white); }
.cat-tile--plain:hover .cat-tile__cta { color: var(--teal); }
.cat-tile--plain:hover .cat-tile__count { color: #8A9698; }

/* ==========================================================================
   9. Product grid & cards

   Selectors deliberately do NOT require a .woocommerce ancestor: the homepage
   renders loops through hayati_render_products(), outside WooCommerce's
   wrapper, so any .woocommerce-prefixed rule silently misses there and the
   title falls back to the base h2 size.
   ========================================================================== */
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--s5) var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* WooCommerce puts clearfix pseudo-elements on .woocommerce ul.products. In a
   grid container those become grid items and eat the first and last cells, so
   the reset has to match its specificity — the unprefixed selector alone loses. */
ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; display: none; }

ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
/* Body block — the design pads the content, not the card. */
ul.products li.product > a { padding: 0; }
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .product__rating,
ul.products li.product .product__meta,
ul.products li.product .price,
ul.products li.product .product__foot,
ul.products li.product .deal-strip { padding-inline: 15px; }
ul.products li.product .woocommerce-loop-product__title { padding-top: 14px; }
ul.products li.product .product__foot { padding-bottom: 16px; }
ul.products li.product:hover,
ul.products li.product:focus-within {
  border-color: #C9D6D3;
  box-shadow: 0 6px 20px rgba(12,17,23,.07);
  transform: translateY(-2px);
}
ul.products li.product > a { display: block; color: inherit; }

.product__media {
  position: relative;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #F7F9F8 0%, #EDF2F1 100%);
}
ul.products li.product img,
.product__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0;
  background: transparent;
  transition: transform .4s var(--ease);
}
ul.products li.product:hover .product__media img { transform: scale(1.04); }

/* Placeholders read as deliberate, not broken. */
ul.products li.product img.is-placeholder,
.product__media img.is-placeholder,
.woocommerce div.product img.is-placeholder {
  object-fit: cover;
  background: var(--mist);
  border: 1px dashed rgba(0, 128, 111, .2);
}

/* Badges. Pinned to the image, never overlapping: each column can shrink and
   the labels stay short (a strength badge reads "0MG", not "Nicotine free"). */
.product__badges {
  position: absolute;
  inset: var(--s2) var(--s2) auto var(--s2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s1);
  pointer-events: none;
  z-index: 3;
}
.product__badges .col { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; min-width: 0; }
.product__badges .col--right { align-items: flex-end; }
.badge {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge--new  { background: var(--teal); color: var(--ink-soft); }
.badge--sale { background: var(--sale); color: var(--white); }
.badge--deal { background: var(--teal); color: var(--ink-soft); }
/* Strength reads as a quiet spec chip, not a promotion. */
.badge--strength {
  letter-spacing: .06em;
  padding: 4px 9px;
  color: var(--body);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line-strong);
}
.badge--zero { color: #0B5E38; border-color: #B7E0CB; background: rgba(232,249,241,.95); }

.deal-strip {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sale);
  letter-spacing: .03em;
  margin: 0 0 var(--s1);
}

/* Title clamped to three lines so every card in a row lines up, however long
   the product name is. Full name is on the product page. */
ul.products li.product .woocommerce-loop-product__title,
.product__title {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
  /* padding-block only: a `padding` shorthand here would wipe the shared
     padding-inline that insets every element in the card body. */
  padding-block: 0;
  margin: 0 0 var(--s2);
  text-wrap: pretty;
}
ul.products li.product a:hover .woocommerce-loop-product__title,
.product__title a:hover { color: var(--teal-deep); }

ul.products li.product .price,
.product__price {
  display: block;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  margin: var(--s2) 0 var(--s3);
}
ul.products li.product .price del { color: var(--muted); font-weight: 500; font-size: 13.5px; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; color: var(--sale); }

.product__foot { margin-top: auto; }
ul.products li.product .button {
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  padding: 11px 12px;
  margin: 0;
}
ul.products li.product .button:hover { background: var(--teal-deep); }

/* Product page: the buy button is the loudest thing on the page. */
.woocommerce div.product form.cart button.button,
.woocommerce div.product form.cart button.single_add_to_cart_button {
  background: var(--teal);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
  border-radius: 10px;
  padding: 16px 28px;
  flex: 1;
  min-width: 200px;
}
.woocommerce div.product form.cart button.button:hover,
.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
  background: #23E0BF;
  color: var(--ink-soft);
}
.woocommerce div.product form.cart { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .qty {
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

/* Rating row — always rendered so cards stay level. */
.product__rating { display: flex; align-items: center; gap: 7px; min-height: 18px; margin-top: 9px; }
.product__stars { display: flex; gap: 2px; }
.product__stars .star { width: 13px; height: 13px; fill: var(--line-strong); }
.product__stars .star.is-on { fill: #F2A93B; }
.product__rating-label { font-size: 11.5px; font-weight: 600; color: var(--body); }
.product__rating-label.is-empty { color: #B4BFC1; font-weight: 500; }

/* Spec line: "12ml · 6000 puffs · 20mg" */
.product__meta { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin: 9px 0 0; text-wrap: pretty; }

ul.products li.product .star-rating { display: none; }

/* WooCommerce's own stylesheet targets `.woocommerce ul.products li.product …`
   — three classes, which outranks the two-class rules above on shop and
   category pages, where the body carries the `woocommerce` class. The homepage
   has no such class, so cards rendered there looked different (price dropped to
   0.857em = 12px). These twins restore parity; keep them in step with the rules
   above if those change. */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  padding: 14px 15px 0;
  margin: 0 0 var(--s2);
}
.woocommerce ul.products li.product .price {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  padding-inline: 15px;
}
.woocommerce ul.products li.product .button { font-size: 13px; }

/* ==========================================================================
   10. Tabs (home product tabs)
   ========================================================================== */
.tabs-bar { background: var(--brand); border-radius: var(--radius); margin-bottom: 22px; }
.tabs-bar ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 8px; }
.tabs-bar button {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  background: transparent;
  border: 0;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tabs-bar button:hover { color: #fff; }
.tabs-bar button[aria-selected="true"] { background: var(--white); color: var(--brand); }
.tab-panel[hidden] { display: none; }

/* ==========================================================================
   11. Single product
   ========================================================================== */
.woocommerce div.product { margin-top: 0; }
/* WooCommerce always prints this wrapper, even with nothing in it. */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce div.product .product_title { font-size: 28px; margin-bottom: 10px; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { font-size: clamp(24px, 1.3rem + 1.2vw, 30px); font-weight: 900; color: var(--ink); font-family: var(--font-body); }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 12px; }
.woocommerce div.product form.cart { margin: 20px 0; }
.woocommerce div.product form.cart .button { font-size: 16px; padding: 14px 28px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0; margin: 0 0 18px; border-bottom: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: 14px;
  color: var(--muted); padding: 11px 16px; display: block;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }

.stock.in-stock { color: #147a45; font-weight: 600; }
.stock.out-of-stock { color: var(--sale); font-weight: 600; }

/* compliance notice on PDP */
.nicotine-notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--sale);
  background: var(--bg-soft);
  padding: 12px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* ==========================================================================
   12. Shop layout / breadcrumbs / pagination
   ========================================================================== */
.shop-head { padding: var(--s2) 0 var(--s3); }

/* Deep product paths ("Home / Pro Max Plus / Pro Max Plus Pods / Banana Ice…")
   wrap to two or three lines on a phone. Keep it on one line and let it scroll
   sideways instead, with the tail faded to signal there is more. */
.woocommerce-breadcrumb {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
}
.woocommerce-breadcrumb::-webkit-scrollbar { display: none; }
.woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-breadcrumb a:hover { color: var(--ink); }

/* Nothing overflows at desktop widths, so drop the fade there. */
@media (min-width: 901px) {
  .woocommerce-breadcrumb { -webkit-mask-image: none; mask-image: none; }
}

.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 13px; }
.woocommerce .woocommerce-ordering select { width: auto; }

.woocommerce nav.woocommerce-pagination ul { border: 0; gap: 6px; display: flex; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 14px; font-weight: 600; color: var(--body);
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Block-only: these elements also carry .container, whose padding-inline
   supplies the page gutter. A `padding` shorthand here would wipe it and
   drop content flush against the screen edge. */
.content-area { padding-block: var(--s3) var(--s7); }
.layout-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.widget { margin-bottom: 26px; }
.widget-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.widget li a { color: var(--body); }
.widget li a:hover { color: var(--brand); }

/* messages */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top: 0; border-left: 4px solid var(--brand);
  background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 18px;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-error { border-left-color: var(--sale); }

/* ==========================================================================
   13. Entry / blog
   ========================================================================== */
.entry { margin-bottom: 40px; }
.entry__title { font-size: 26px; margin-bottom: 6px; }
.entry__meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.entry__content h2 { font-size: 22px; margin-top: 1.4em; }
.entry__content h3 { font-size: 18px; margin-top: 1.3em; }
.entry__content img { border-radius: var(--radius); }

.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card__body { padding: 14px; }
.post-card__title { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.post-card__date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* ==========================================================================
   14. FAQ accordion
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 15px 34px 15px 0;
  position: relative;
  font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__body { padding: 0 0 16px; color: var(--body); }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.8); margin-top: 40px; }
.footer-top { padding: 40px 0 26px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.footer-col h3 {
  font-family: var(--font-head); font-size: 16px; font-weight: 700; text-transform: uppercase;
  color: var(--white); margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a { color: rgba(255,255,255,.8); }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 14px; }

.footer-warning {
  background: #000;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 14px 0;
  text-align: center;
}
.footer-warning strong {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.85);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 7px 14px;
}
.footer-bottom {
  padding-block: 16px;
  font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
}
.payment-icons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.payment-icons span {
  background: rgba(255,255,255,.1); border-radius: 3px; padding: 4px 8px;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.8);
}

/* ==========================================================================
   16. Age gate
   ========================================================================== */
.age-gate {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(6,12,16,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.age-gate[hidden] { display: none; }
.age-gate__box {
  background: var(--white);
  border-radius: 8px;
  max-width: 480px; width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.age-gate__logo { display: flex; justify-content: center; margin-bottom: var(--s4); }
.age-gate__box h2 { font-size: 26px; margin-bottom: 10px; }
.age-gate__box p { color: var(--body); margin-bottom: 20px; }
.age-gate__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.age-gate__deny { background: var(--bg-soft); color: var(--body); }
.age-gate__deny:hover { background: #ececec; color: var(--body); }
.age-gate__small { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
body.age-locked { overflow: hidden; }

/* ==========================================================================
   16a. Checkout age declaration
   ========================================================================== */
.age-declaration {
  margin: var(--s4) 0 var(--s2);
  padding: var(--s3) var(--s4);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
}
.age-declaration label { display: flex; align-items: flex-start; gap: var(--s2); font-weight: 600; cursor: pointer; }
.age-declaration input[type="checkbox"] { width: auto; margin-top: 3px; flex: 0 0 auto; }
.age-declaration__note { font-size: 12.5px; color: var(--muted); margin: 0 0 var(--s4); }

/* ==========================================================================
   16b. USP bar — the four things a first-time vape buyer checks before trusting a shop
   ========================================================================== */
.usp-bar { border-bottom: 1px solid var(--line); background: var(--white); }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  padding: var(--s4) 0;
}
.usp {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-width: 0;
}
.usp__icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0,201,167,.14);
  color: var(--teal-deep);
}
.usp__icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.usp__title {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
.usp__sub { font-size: 12.5px; color: var(--muted); margin: 1px 0 0; line-height: 1.35; }

/* Dots are injected by JS for the mobile rotator only. */
.usp-dots { display: none; justify-content: center; gap: 6px; padding: 0 0 var(--s3); }
.usp-dots button {
  width: 6px; height: 6px; padding: 0;
  border: 0; border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width .25s var(--ease), background .25s var(--ease);
}
.usp-dots button[aria-current="true"] { width: 18px; background: var(--teal-deep); }

/* ==========================================================================
   16c. Page header + shop toolbar
   ========================================================================== */
.page-head { padding: var(--s6) 0 var(--s5); }
.page-head__title { margin: 0 0 var(--s2); }
.page-head__intro { max-width: 780px; color: var(--body); font-size: 15px; margin: 0; }

.shop-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s5);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.shop-toolbar .woocommerce-result-count { margin: 0; font-size: 13px; }
.shop-toolbar .woocommerce-ordering { margin: 0; }
.shop-toolbar select { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; }

/* SEO copy belongs below the grid: shoppers want products first,
   and Google reads the whole document either way. */
.category-copy {
  margin-top: var(--s7);
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
}
.category-copy h2 { font-size: 21px; }
.category-copy p { max-width: 78ch; color: var(--body); }

/* ==========================================================================
   16d. Single product
   ========================================================================== */
.woocommerce div.product { display: block; }
/* Gallery: cap the height so a portrait pack shot cannot dominate a desktop
   screen, and inset the image so it breathes inside its frame. */
.woocommerce div.product div.images {
  margin-bottom: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #F7F9F8 0%, #EDF2F1 100%);
  padding: var(--s5);
  overflow: hidden;
}
.woocommerce div.product div.images img {
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  margin: 0 auto;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { margin: 0; }
/* The zoom clone is absolutely positioned at natural size — keep it contained. */
.woocommerce div.product div.images img.zoomImg { display: none !important; }
.woocommerce div.product .flex-control-thumbs { margin-top: var(--s4); gap: var(--s2); display: flex; padding: 0; }
.woocommerce div.product .flex-control-thumbs li { width: auto; flex: 0 0 72px; margin: 0; }
.woocommerce div.product .flex-control-thumbs img { border-radius: 10px; border: 1px solid var(--line); background: var(--white); }
.woocommerce div.product div.summary { margin-bottom: var(--s5); }
.woocommerce div.product .product_title {
  margin-bottom: var(--s2);
  font-size: clamp(24px, 1.4rem + 1.6vw, 32px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
/* Range eyebrow above the product title. */
.pdp-eyebrow {
  margin: 0 0 var(--s2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.pdp-stock { font-size: 13px; font-weight: 600; color: var(--teal-deep); margin: 0 0 var(--s4); }

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  display: block;
  padding-bottom: var(--s3);
  margin-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 15px;
  color: var(--body);
  margin-bottom: var(--s4);
}
.woocommerce div.product form.cart div.quantity { margin-right: var(--s2); }
.woocommerce div.product form.cart .qty { height: 48px; width: 72px; text-align: center; border-radius: var(--radius); }
.woocommerce div.product form.cart .button { height: 48px; }
.woocommerce div.product .variations select { height: 46px; }
.woocommerce div.product .variations th { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: 13px; }

/* Reassurance directly under the buy button, where hesitation happens. */
.pdp-assurance { list-style: none; margin: var(--s4) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--line); }
.pdp-assurance li {
  display: flex; align-items: flex-start; gap: var(--s2);
  font-size: 13.5px; color: var(--body);
  padding: var(--s1) 0;
}
.pdp-assurance li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px; margin-top: 3px;
  border-radius: 50%;
  background: rgba(20,122,69,.12);
  box-shadow: inset 0 0 0 1.5px rgba(20,122,69,.5);
}

/* ==========================================================================
   16e. Shop sidebar filters
   ========================================================================== */
.shop-sidebar .widget {
  padding: var(--s4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--s4);
}
.shop-sidebar .widget-title { margin-top: 0; font-size: 14px; }
.shop-sidebar li { border-bottom: 0; padding: 3px 0; }
.shop-sidebar .widget li a:hover { color: var(--brand); }
.shop-sidebar .count { color: var(--muted); font-size: 12px; }

/* ==========================================================================
   16f. Cart & checkout (WooCommerce block templates)

   These pages are block-rendered, so the markup is WooCommerce's and only the
   presentation is ours. Class names below are the stable wc-block-* API.
   ========================================================================== */
.wc-block-cart,
.wc-block-checkout { font-family: var(--font-body); color: var(--body); }

/* Page headings — the spec sets these bigger and heavier than a normal h1. */
.woocommerce-cart .page-head__title,
.woocommerce-checkout .page-head__title,
.woocommerce-cart .entry__title,
.woocommerce-checkout .entry__title {
  font-size: clamp(26px, 1.5rem + 1.6vw, 34px);
  font-weight: 900;
  letter-spacing: -.02em;
}

/* Two-column: line items beside a sticky summary panel. */
@media (min-width: 901px) {
  .wc-block-cart__sidebar,
  .wc-block-checkout__sidebar { position: sticky; top: var(--s5); align-self: start; }
}

/* --- summary / totals panel --- */
.wc-block-cart__sidebar .wc-block-components-sidebar,
.wc-block-checkout__sidebar .wc-block-components-sidebar {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--s5);
}
.wc-block-cart__totals-title,
.wc-block-components-totals-wrapper .wc-block-components-title {
  font-family: var(--font-head);
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.wc-block-components-totals-item__label { font-size: 14px; }
.wc-block-components-totals-item__value { font-weight: 700; color: var(--ink); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 16px; font-weight: 800; color: var(--ink);
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 24px; font-weight: 900; color: var(--ink);
}

/* --- line items --- */
.wc-block-cart-items__header {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.wc-block-cart-items__row { border-bottom: 1px solid var(--line); }
.wc-block-cart-item__image img {
  border-radius: 10px;
  background: linear-gradient(160deg, #F7F9F8 0%, #EDF2F1 100%);
}
.wc-block-components-product-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.wc-block-components-product-name:hover { color: var(--teal-deep); }
.wc-block-cart-item__remove-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
}
.wc-block-cart-item__remove-link:hover { color: var(--sale); }
.wc-block-components-product-price__value { font-weight: 800; color: var(--ink); }

.wc-block-components-quantity-selector {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
}
.wc-block-components-quantity-selector__input { font-weight: 700; color: var(--ink); }
.wc-block-components-quantity-selector__button { color: var(--muted); }
.wc-block-components-quantity-selector__button:hover { color: var(--ink); }

/* --- primary actions: teal, matching the product page --- */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: var(--teal) !important;
  color: var(--ink-soft) !important;
  font-family: var(--font-head);
  font-size: 15px !important;
  font-weight: 800 !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 16px 28px !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover { background: #23E0BF !important; }

/* --- checkout steps: number them per the spec --- */
.wc-block-checkout__form { counter-reset: hayati-step; }
.wc-block-checkout__form > .wc-block-components-checkout-step { counter-increment: hayati-step; }
.wc-block-components-checkout-step__title {
  font-family: var(--font-head) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: var(--ink) !important;
}
/* Only the form steps are numbered — the order summary is not a step. */
.wc-block-components-checkout-step__title::before { content: none; }
.wc-block-checkout__form > .wc-block-components-checkout-step .wc-block-components-checkout-step__title::before {
  content: counter(hayati-step) " — ";
  color: var(--teal-deep);
}
/* WooCommerce prints its own numbered marker; ours replaces it. */
.wc-block-components-checkout-step__heading-content,
.wc-block-components-checkout-step__index { display: none !important; }
.wc-block-components-checkout-step__description { font-size: 13px; color: var(--muted); }

.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-select__container {
  border-radius: 10px !important;
  border-color: var(--line-strong) !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus { border-color: var(--teal-deep) !important; }

.wc-block-components-order-summary__button-text { font-weight: 700; color: var(--ink); }
.wc-block-components-panel__button { font-weight: 700; color: var(--ink); }

/* Continue-shopping link */
.wc-block-cart__submit-container + a,
.wc-block-components-checkout-return-to-cart-button {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-deep);
}

/* ==========================================================================
   16g. Predictive search
   ========================================================================== */
.header-search { position: relative; }

.live-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 700;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: var(--s2);
}
.live-results[hidden] { display: none; }

.live-result {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2);
  border-radius: 10px;
  color: var(--ink);
}
.live-result:hover,
.live-result:focus,
.live-result.is-active { background: var(--mist); color: var(--ink); }
.live-result img {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: linear-gradient(160deg, #F7F9F8 0%, #EDF2F1 100%);
}
.live-result__body { min-width: 0; }
.live-result__name {
  display: block;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.live-result__price { font-size: 12.5px; font-weight: 800; color: var(--teal-deep); }
.live-results__state,
.live-results__all {
  display: block;
  padding: var(--s3);
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}
.live-results__all { font-weight: 700; color: var(--teal-deep); border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  /* Search becomes its own full-width row beneath the logo. */
  .header-main__inner { flex-wrap: wrap; row-gap: var(--s3); }
  .header-search {
    display: block;
    order: 5;
    flex: 1 0 100%;
    max-width: none;
    margin: 0;
  }
  .header-search form { padding: 5px 6px 5px 14px; }
}

/* ==========================================================================
   17. Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.hide { display: none !important; }

/* ==========================================================================
   18. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .layout-sidebar { grid-template-columns: 1fr; }
  .hero__caption { max-width: 60%; }
}

@media (min-width: 901px) {
  /* Two-column product page with a summary that tracks the gallery on scroll. */
  .woocommerce div.product {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    gap: var(--s7);
    align-items: start;
  }
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0; }
  /* NOT sticky: this column is taller than most laptop viewports, and a sticky
     element taller than the viewport never scrolls away — the tabs below slide
     underneath it and the text overlaps. */
  .woocommerce div.product div.summary { position: static; }
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related,
  .woocommerce div.product .upsells { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* One trust point at a time: a 2x2 block cost 120px of height before the
     customer saw any product. Scroll-snap track, auto-advanced by theme.js. */
  .usp-grid {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    padding: var(--s3) 0 var(--s2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .usp-grid::-webkit-scrollbar { display: none; }
  .usp {
    flex: 0 0 100%;
    scroll-snap-align: center;
    justify-content: center;
  }
  .usp-dots { display: flex; }

  /* Header collapses to: burger | lockup | cart. Everything else stands down. */
  .header-main__inner { gap: var(--s3); padding-block: var(--s3); }
  .burger { display: inline-flex; flex: 0 0 auto; margin-left: -8px; }
  .site-branding { flex: 1 1 auto; min-width: 0; }
  .header-actions { gap: var(--s3); }
  .header-action__label,
  .header-actions__divider { display: none; }
  .header-action--cart { gap: var(--s1); }
  .lockup { gap: 10px; }
  .lockup .hayati-mark { width: 34px; height: 34px; }
  .lockup__word { font-size: 17px; }
  .lockup__desc { font-size: 7px; letter-spacing: .26em; }
  .nav-bar__inner { padding-inline: var(--gutter); }
  .primary-menu { gap: var(--s4); }
  .nav-bar { display: none; }
  /* The search stays on mobile — it moves to its own full-width row (16g). */
  .header-main__inner { grid-template-columns: auto 1fr auto; }
  .site-branding { text-align: center; }
  h1 { font-size: 25px; }
  .section__title { font-size: 23px; }
  ul.products { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: var(--s4) var(--s3); }
  ul.products li.product { padding: var(--s2); }
  ul.products li.product .woocommerce-loop-product__title,
  .product__title { font-size: 13.5px; }
  ul.products li.product .price,
  .product__price { font-size: 15px; margin-bottom: var(--s2); }
  ul.products li.product .button { font-size: 12.5px; padding: 10px 10px; }
  .badge { font-size: 9.5px; padding: 4px 7px; letter-spacing: .03em; }
  .hero__caption { position: static; max-width: 100%; padding: 16px; background: var(--brand); }
}

@media (max-width: 480px) {
  .topbar { font-size: 12px; }
  .site-title { font-size: 19px; }
  .section { padding: 28px 0; }
  ul.products { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s2); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* print */
@media print {
  .site-header, .site-footer, .age-gate, .drawer, .overlay { display: none !important; }
}
