/* ============================================================================
   HIGHLAND VAULT — SITE CHROME & HOMEPAGE LAYOUT
   Header, announcement bar, hero, section headers, card rows, stats,
   newsletter, footer. Matches the approved homepage design. Tokens only.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   TOP ANNOUNCEMENT BAR (near-black) — static row of promos with View/Enter
   buttons (design-system structure). Four items split by hairline dividers,
   evenly spread on desktop; a horizontally-scrollable strip on small screens.
   Colours stay on the theme palette (no gold): brand blue for the icon + button
   accents, on-dark neutrals for text/dividers.
   --------------------------------------------------------------------------- */
.hv-announce {
  background: var(--hv-navy-900);
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--hv-line);
  overflow: hidden;
}
/* Marquee: two identical groups; translating -50% (one group) loops seamlessly.
   Pauses on hover / keyboard focus. */
.hv-announce__track {
  display: flex; width: max-content;
  animation: hv-announce-scroll 45s linear infinite;
  will-change: transform;
}
.hv-announce:hover .hv-announce__track,
.hv-announce:focus-within .hv-announce__track { animation-play-state: paused; }
.hv-announce__group { display: flex; align-items: center; }
.hv-announce__item {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.4em var(--hv-space-6);
  white-space: nowrap;
}
.hv-announce__ico { display: inline-flex; flex: 0 0 auto; color: var(--hv-primary-strong); }
.hv-announce__ico svg { display: block; width: 14px; height: 14px; }
.hv-announce__text {
  font-size: 10px; font-weight: var(--hv-fw-medium);
  letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,.9);
}
/* View / Enter → small bordered pill; brand-blue on hover (Elementor-kit-proof). */
.hv-announce__cta {
  display: inline-flex; align-items: center;
  padding: 0.3em 0.8em; border-radius: var(--hv-radius-sm);
  border: 1px solid var(--hv-line) !important;
  color: rgba(255,255,255,.85) !important;
  font-size: 9px; font-weight: var(--hv-fw-bold); letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1; text-decoration: none !important;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.hv-announce__cta:hover,
.hv-announce__cta:focus {
  border-color: var(--hv-primary) !important;
  color: var(--hv-primary-strong) !important;
  background: var(--hv-blue-050);
}
.hv-announce__cta:focus-visible { outline: none; box-shadow: var(--hv-ring); }
@keyframes hv-announce-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hv-announce__track { animation: none; flex-wrap: wrap; width: auto; }
  .hv-announce__group[aria-hidden="true"] { display: none; }
}

/* ---------------------------------------------------------------------------
   SITE HEADER (white; add .hv-site-header--navy for the dark variant)
   --------------------------------------------------------------------------- */
/* WHITE header (requested): frosted-white glass with dark ink + blue accents.
   The header is no longer in the dark-surface token scope (see base.css), so its
   text/hairline tokens resolve to the on-white set — dark ink, light hairlines.
   Solid white where backdrop-filter is unsupported. */
.hv-site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px) saturate(1.25); backdrop-filter: blur(10px) saturate(1.25);
  border-bottom: 1px solid var(--hv-line); box-shadow: 0 1px 0 rgba(17,24,39,.05), 0 6px 18px rgba(17,24,39,.05); }
@supports not (backdrop-filter: blur(10px)) { .hv-site-header { background: #fff; } }
.hv-site-header__inner { position: relative; display: flex; align-items: center; gap: var(--hv-space-5) !important;  }

.hv-logo { display: inline-flex; align-items: center; gap: 0.5em; font-weight: var(--hv-fw-black); font-size: var(--hv-fs-h4); color: var(--hv-ink); line-height: 1; }
.hv-logo .stag { color: var(--hv-gold-500); font-size: 1.8em; }
.hv-logo small { display: block; font-size: 0.5em; font-weight: var(--hv-fw-bold); letter-spacing: var(--hv-ls-wider); color: var(--hv-muted); }
/* Site Identity logo (the_custom_logo) — height-capped, keeps its ratio */
.hv-logo--img { flex: 0 0 auto; }
.hv-logo--img .custom-logo-link { display: block; line-height: 0; }
.hv-logo--img .custom-logo { display: block; width: auto; height: auto; max-height: 80px; max-width: 220px; object-fit: contain;margin:4px; }

.hv-nav { display: flex; align-items: center; margin-inline: auto; }
.hv-nav-close { display: none; } /* drawer-only (see 1080px media query) */
.hv-nav ul { display: flex; align-items: center; flex-wrap: nowrap; gap: 2rem; list-style: none; margin: 0; padding: 0; } /* 32px item gap (design spec) */
.hv-nav li { margin: 0; }
/* Geometry hardened (!important + nowrap): Elementor's kit typography loads on
   builder-made pages and was inflating link size, wrapping labels onto two
   lines — the header must render identically everywhere. Design spec: 15px,
   ~0.8px tracking, with an underline that grows from the centre on hover/active. */
.hv-nav a {
  position: relative;
  color: var(--hv-ink);            /* dark ink on the white header (drawer re-asserts white ≤1080) */
  font-family: var(--hv-font) !important;
  font-weight: var(--hv-fw-medium) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.4em;
  padding-block: 6px;
  text-decoration: none !important;
  transition: color .2s ease;
}
/* Underline: a 2px bar that scales from the centre out. Brand blue (the theme's
   accent) — NOT the mockup's gold, per "no colour changes". */
.hv-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--hv-primary);
  transform: scaleX(0); transform-origin: center;
  transition: transform .22s ease;
}
.hv-nav a:hover,
.hv-nav .current-menu-item > a,
.hv-nav .current_page_item > a { color: var(--hv-primary); }
.hv-nav a:hover::after,
.hv-nav .current-menu-item > a::after,
.hv-nav .current_page_item > a::after { transform: scaleX(1); }
/* Dropdown caret for items with a submenu (Competitions ▾). ::before is ordered
   after the label so it sits on the right; the masked chevron follows the text colour. */
.hv-nav .menu-item-has-children > a::before {
  content: ""; order: 1; width: 0.62em; height: 0.62em; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m6 9 6 6 6-6"/%3E%3C/svg%3E') center / contain no-repeat;
          mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m6 9 6 6 6-6"/%3E%3C/svg%3E') center / contain no-repeat;
}
@media (prefers-reduced-motion: reduce) { .hv-nav a::after { transition: none; } }
/* Narrower desktops (between the hamburger breakpoint and the container max):
   tighten the gap so the six items never overflow into the actions cluster. */
@media (max-width: 1240px) { .hv-nav ul { gap: 1.25rem; } }
.hv-nav .hv-badge { text-transform: uppercase; }

.hv-header-actions { display: flex; align-items: center; gap: var(--hv-space-3); }
/* Thin vertical divider between the wallet pill and the account icon (design). */
.hv-header-divider { width: 1px; height: 26px; flex: 0 0 auto; background: var(--hv-line); }
/* Every state pinned (!important): the Elementor kit's global button styles
   paint <button>s pink on hover/active — brand palette only. */
/* Plain icon buttons — no circle/border (design): just the glyph, blue on hover.
   Applies to the mobile menu toggle and the desktop account/cart icons. */
.hv-icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--hv-radius-pill);       /* kept for the focus-ring shape only */
  border: 0 !important;
  background: transparent !important;
  color: var(--hv-ink) !important;
  cursor: pointer; position: relative; padding: 0;
  transition: color .15s ease, transform .15s ease;
}
.hv-icon-btn:hover,
.hv-icon-btn:focus,
.hv-icon-btn:active {
  background: transparent !important;
  color: var(--hv-primary) !important;
  border-color: transparent !important;
}
.hv-icon-btn:focus-visible { outline: none; box-shadow: var(--hv-ring); }
.hv-icon-btn svg { display: block; }

/* ---- Desktop cart: icon + live badge + hover mini-cart dropdown ---------
   Lives in .hv-header-actions, which is display:none ≤1080px, so the cart icon
   and its preview are DESKTOP-ONLY (phones use the bottom bar's Cart item). */
.hv-cart-menu { position: relative; display: inline-flex; }
.hv-cart-menu__link .hv-cart-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: var(--hv-radius-pill);
  background: var(--hv-primary); color: #fff; font-size: 10px; font-weight: var(--hv-fw-bold); line-height: 1;
  border: 2px solid #fff;
}
.hv-cart-menu__link .hv-cart-badge.is-zero { display: none; }
.hv-cart-menu__dropdown {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 130;
  width: 340px; max-width: 92vw;
  background: #fff; border: 1px solid var(--hv-line); border-radius: var(--hv-radius-lg);
  box-shadow: 0 18px 40px rgba(16, 24, 40, .16);
  padding: var(--hv-space-4);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
/* invisible hover bridge so the gap between icon and panel doesn't close it */
.hv-cart-menu__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.hv-cart-menu:hover .hv-cart-menu__dropdown,
.hv-cart-menu:focus-within .hv-cart-menu__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Mini-cart body. WooCommerce nests the product <img> INSIDE the product link
   and puts a "N × £price" .quantity span after it, with the remove "×" first —
   so the item is laid out as: [link: img + name] / [qty] with remove pinned. */
.hv-cart-menu__dropdown .woocommerce-mini-cart { list-style: none !important; margin: 0 !important; padding: 0 !important; max-height: 320px; overflow-y: auto; }
.hv-cart-menu__dropdown li.woocommerce-mini-cart-item {
  position: relative; margin: 0 !important; padding: 10px 26px 10px 0 !important;
  border-bottom: 1px solid var(--hv-line); list-style: none !important;
}
.hv-cart-menu__dropdown li.woocommerce-mini-cart-item > a:not(.remove) {
  display: flex !important; align-items: center; gap: 10px;
  color: var(--hv-ink) !important; font-weight: var(--hv-fw-bold); font-size: var(--hv-fs-sm);
  line-height: var(--hv-lh-snug); text-decoration: none !important;
}
.hv-cart-menu__dropdown li.woocommerce-mini-cart-item > a:not(.remove):hover { color: var(--hv-primary) !important; }
/* !important + a bare `img` selector: WooCommerce's widget CSS (and the theme's
   fluid-image rule) both size mini-cart thumbnails and were stretching this to
   the full panel width. Pin it to a fixed square thumb. */
.hv-cart-menu__dropdown img,
.hv-cart-menu__dropdown li.woocommerce-mini-cart-item img {
  width: 46px !important; height: 46px !important; max-width: 46px !important;
  flex: 0 0 46px !important; object-fit: cover; border-radius: var(--hv-radius-sm);
  margin: 0 !important; float: none !important; display: block !important; box-shadow: none !important;
}
.hv-cart-menu__dropdown li.woocommerce-mini-cart-item .quantity { display: block; margin: 5px 0 0; padding-left: 56px; color: var(--hv-muted); font-size: var(--hv-fs-xs); }
.hv-cart-menu__dropdown li.woocommerce-mini-cart-item .quantity .amount { color: var(--hv-ink); font-weight: var(--hv-fw-bold); }
.hv-cart-menu__dropdown li.woocommerce-mini-cart-item dl.variation { margin: 4px 0 0; padding-left: 56px; font-size: var(--hv-fs-xs); color: var(--hv-muted); }
.hv-cart-menu__dropdown a.remove {
  position: absolute; right: 0; top: 12px; width: 20px; height: 20px; line-height: 18px; text-align: center;
  border-radius: 50%; background: #F1F4F9; color: var(--hv-muted) !important; font-size: 15px; font-weight: var(--hv-fw-bold); text-decoration: none;
}
.hv-cart-menu__dropdown a.remove:hover { color: var(--hv-red-500) !important; background: rgba(239, 68, 68, .12); }
.hv-cart-menu__dropdown p.woocommerce-mini-cart__total {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 0; margin: 0 0 12px; border-bottom: 1px solid var(--hv-line);
  font-weight: var(--hv-fw-bold); color: var(--hv-ink);
}
.hv-cart-menu__dropdown p.woocommerce-mini-cart__total .amount { color: var(--hv-primary); font-weight: var(--hv-fw-black); }
.hv-cart-menu__dropdown p.woocommerce-mini-cart__buttons { display: flex; gap: 8px; margin: 0; padding: 0; }
.hv-cart-menu__dropdown p.woocommerce-mini-cart__buttons a {
  flex: 1; text-align: center; padding: 0.65em 0.8em; border-radius: var(--hv-radius-sm);
  font-weight: var(--hv-fw-bold); font-size: var(--hv-fs-sm); text-decoration: none;
  border: 1px solid var(--hv-line); color: var(--hv-ink); background: #fff;
}
.hv-cart-menu__dropdown p.woocommerce-mini-cart__buttons a.checkout { background: var(--hv-primary); color: #fff; border-color: var(--hv-primary); }
.hv-cart-menu__dropdown p.woocommerce-mini-cart__buttons a:hover { border-color: var(--hv-primary); }
.hv-cart-menu__dropdown .woocommerce-mini-cart__empty-message { margin: 0; padding: var(--hv-space-5) 0; text-align: center; color: var(--hv-muted); font-size: var(--hv-fs-sm); }

/* Premium hamburger: three bars that morph into an X when the drawer opens */
.hv-nav-toggle__box { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 18px; }
.hv-nav-toggle__box i {
  display: block; height: 2px; width: 100%;
  border-radius: var(--hv-radius-pill);
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}
.hv-nav-toggle.is-open .hv-nav-toggle__box i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hv-nav-toggle.is-open .hv-nav-toggle__box i:nth-child(2) { opacity: 0; }
.hv-nav-toggle.is-open .hv-nav-toggle__box i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hv-icon-btn .dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: var(--hv-radius-pill); background: var(--hv-orange-500); color: #fff; font-size: 10px; font-weight: var(--hv-fw-bold); }
/* Wallet pill (logged-out fallback) — matches the wallet plugin's dark pill
   ([wallet_balance style="dark"], inline-styled by the plugin when logged in):
   black pill, dimmed wallet icon, white amount, white + circle that rotates. */
.hv-wallet-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 5px 5px 14px; border-radius: var(--hv-radius-pill);
  background: #000 !important; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.7);
  text-decoration: none !important; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hv-wallet-pill svg { display: block; flex: 0 0 auto; }
.hv-wallet-pill__amount { font-size: 14px; font-weight: var(--hv-fw-bold); color: #fff; letter-spacing: -0.01em; white-space: nowrap; }
.hv-wallet-pill__plus {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #0f172a; transition: transform .15s ease;
}
.hv-wallet-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); color: rgba(255,255,255,.7); }
.hv-wallet-pill:hover .hv-wallet-pill__plus { transform: rotate(90deg); }

/* Language dropdown: current language only; alternatives on hover/click/focus */
.hv-lang { position: relative; }
/* TEMPORARY: language switcher hidden site-wide — delete this one rule to bring it back. */
.hv-lang { display: none !important; }
/* !important: the Elementor kit's global button styles paint <button>s pink
   on hover — every state is pinned to the brand palette. */
.hv-lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px;
  border: 1px solid var(--hv-line) !important; border-radius: var(--hv-radius-pill);
  background: var(--hv-surface) !important; color: var(--hv-ink) !important;
  font-family: var(--hv-font); font-size: var(--hv-fs-sm); font-weight: var(--hv-fw-bold);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hv-lang__btn:hover,
.hv-lang__btn:focus,
.hv-lang.is-open .hv-lang__btn {
  background: var(--hv-blue-050) !important;
  color: var(--hv-primary) !important;
  border-color: var(--hv-primary) !important;
}
.hv-lang__btn:focus-visible { outline: none; box-shadow: var(--hv-ring); }
.hv-lang__btn img, .hv-lang__list img { width: 20px; height: 14px; border-radius: 2px; display: block; object-fit: cover; }
.hv-lang__caret { display: inline-flex; align-items: center; color: var(--hv-muted); transition: transform .15s ease; }
.hv-lang__caret svg { display: block; }
.hv-lang.is-open .hv-lang__caret { transform: rotate(180deg); }
.hv-lang__list {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 130;
  min-width: 160px; margin: 0; padding: 6px; list-style: none;
  background: var(--hv-surface); border: 1px solid var(--hv-line);
  border-radius: var(--hv-radius); box-shadow: var(--hv-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
/* Open on click (.is-open, toggled in hv.js) everywhere; hover-open only on
   devices that truly hover — on touch, tapping the button left :focus-within
   holding the list open so the second tap "didn't close" it. */
.hv-lang.is-open .hv-lang__list { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .hv-lang:hover .hv-lang__list { opacity: 1; visibility: visible; transform: none; }
}
.hv-lang__list a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--hv-radius-sm);
  color: var(--hv-body); font-size: var(--hv-fs-sm); font-weight: var(--hv-fw-medium);
  text-decoration: none;
}
.hv-lang__list a:hover { background: var(--hv-blue-050); color: var(--hv-primary); }

/* WPML also injects flag items into the primary menu — the dropdown replaces them */
.hv-nav li[class*="wpml-ls"] { display: none !important; }

/* Dark header variant (for inner pages if desired) */
.hv-site-header--navy { background: var(--hv-navy-900); border-bottom-color: transparent; }
.hv-site-header--navy .hv-logo, .hv-site-header--navy .hv-nav a { color: #fff; }
.hv-site-header--navy .hv-icon-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
/* (wallet pill is black in every header variant — no navy override needed) */

/* Mobile menu toggle (hidden on desktop) */
.hv-nav-toggle { display: none; }
@media (max-width: 1080px) {
  /* The drawer below is position:fixed but lives INSIDE the header. The header's
     backdrop-filter makes it the containing block for fixed descendants, which
     trapped the open drawer at the header's height (only the first item showed).
     Drop the blur here — a solid bar instead — so the fixed drawer can span the
     full viewport. Desktop keeps the glass effect (this is scoped to ≤1080px). */
  .hv-site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* The drawer is a dark panel (separate surface) even though the header is now
     white — re-assert the on-dark tokens on it so its menu text stays legible. */
  .hv-nav {
    --hv-ink:   var(--hv-ink-on-dark);
    --hv-body:  var(--hv-body-on-dark);
    --hv-muted: var(--hv-muted-on-dark);
    --hv-line:  var(--hv-line-on-dark);
    position: fixed; inset: 0 auto 0 0; z-index: 90; /* pinned to the LEFT edge, under the sticky header so the ☰/✕ toggle stays tappable */
    width: min(320px, 85vw);
    flex-direction: column; align-items: stretch; margin: 0;
    /* generous top offset clears the header row; extra bottom clears the
       bottom nav bar, which now stays visible while the drawer is open */
    padding: calc(var(--hv-space-7) + 40px) var(--hv-space-6) calc(var(--hv-space-6) + 72px);
    background: var(--hv-surface);
    border-right: 1px solid var(--hv-line);
    box-shadow: var(--hv-shadow-lg);
    transform: translateX(-100%); transition: transform .28s ease; /* slides in from the left */
    overflow-y: auto;
  }
  .hv-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .hv-nav li + li { border-top: 1px solid var(--hv-line); }
  .hv-nav a {
    display: flex; width: 100%;
    padding: 0.95em 0.25em !important;
    font-size: var(--hv-fs-body) !important;
    letter-spacing: var(--hv-ls-wide) !important;
    line-height: 1.4 !important;
    white-space: normal;
  }
  .hv-nav a::after { display: none; } /* no center-out underline in the drawer (rows use dividers) */
  .hv-nav a:hover { color: var(--hv-primary); }
  .hv-nav.is-open { transform: translateX(0); }
  .hv-nav-toggle { display: grid; }

  /* App-style header on mobile + tablet: the toggle (left) then the logo, both
     in normal flow (no absolute centring — that could float the logo to the
     middle of the screen). The wallet / account / language cluster is hidden
     here — those are reached through the drawer menu and the bottom bar. */
  .hv-header-actions { display: none !important; }
  .hv-logo { position: static; transform: none; margin: 0; }

  /* Cross button inside the drawer (top-right) — same pinned brand states */
  .hv-nav-close {
    display: grid; place-items: center;
    position: absolute; top: var(--hv-space-4); right: var(--hv-space-5);
    width: 40px; height: 40px; padding: 0;
    border-radius: var(--hv-radius-pill);
    border: 1px solid var(--hv-line) !important;
    background: var(--hv-surface-2) !important;
    color: var(--hv-ink) !important;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  }
  .hv-nav-close:hover,
  .hv-nav-close:focus,
  .hv-nav-close:active {
    background: var(--hv-blue-050) !important;
    color: var(--hv-primary) !important;
    border-color: var(--hv-primary) !important;
    transform: rotate(90deg);
  }
  .hv-nav-close:focus-visible { outline: none; box-shadow: var(--hv-ring); }
}

/* Small phones: compact the actions cluster (wallet + language + account + menu) */
@media (max-width: 640px) {
  .hv-site-header__inner { gap: var(--hv-space-4); }
  .hv-header-actions { gap: var(--hv-space-2); }
  .hv-wallet-pill { padding: 4px 4px 4px 10px; gap: 7px; }
  .hv-wallet-pill__amount { font-size: 13px; }
  .hv-wallet-pill__plus { width: 22px; height: 22px; }
  .hv-lang__btn { height: 36px; padding: 0 9px; }
  .hv-lang__btn > span:not(.hv-lang__caret) { display: none; } /* flag + caret only */
  .hv-logo { font-size: var(--hv-fs-body); }
  .hv-logo--img .custom-logo { max-height: 256px; max-width: 200px; }
}

/* ---------------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------------- */
.hv-hero { position: relative; background:
    radial-gradient(58% 78% at 76% 26%, rgba(6, 91, 224, .16), transparent 65%),
    linear-gradient(180deg, var(--hv-navy-700), #0A0A0A); }
.hv-hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--hv-space-6); align-items: center; padding-block: clamp(2rem, 1rem + 4vw, 4rem); }
.hv-hero__eyebrow { color: var(--hv-primary); font-weight: var(--hv-fw-bold); text-transform: uppercase; letter-spacing: var(--hv-ls-wider); font-size: var(--hv-fs-xs); }
.hv-hero__title { font-size: var(--hv-fs-hero); font-weight: var(--hv-fw-black); line-height: var(--hv-lh-tight); color: var(--hv-ink); margin: var(--hv-space-3) 0; }
.hv-hero__title .accent { color: var(--hv-primary-strong); font-style: italic; }
.hv-hero__points { display: flex; flex-wrap: wrap; gap: var(--hv-space-4); margin: var(--hv-space-5) 0; }
.hv-hero__point { display: flex; align-items: center; gap: var(--hv-space-2); font-size: var(--hv-fs-sm); }
.hv-hero__point .hv-ico { color: var(--hv-primary); }
.hv-hero__point b { display: block; color: var(--hv-ink); }
.hv-hero__point span { color: var(--hv-muted); font-size: var(--hv-fs-xs); }
.hv-hero__actions { display: flex; flex-wrap: wrap; gap: var(--hv-space-4); }
.hv-hero__figure { position: relative; display: grid; place-items: center; min-height: 340px; }
.hv-hero__figure img { max-height: 460px; width: auto; }

/* Floating "Today's Draw" card in the hero */
.hv-hero__card { position: absolute; right: 0; bottom: var(--hv-space-5); width: min(280px, 42%); background: var(--hv-surface); border: 1px solid var(--hv-line); border-radius: var(--hv-radius-lg); box-shadow: var(--hv-shadow-lg); padding: var(--hv-space-4); }
.hv-hero__card .off { position: absolute; top: -12px; right: var(--hv-space-4); }
.hv-hero__card .eyebrow { font-size: var(--hv-fs-xs); color: var(--hv-muted); text-transform: uppercase; letter-spacing: var(--hv-ls-wide); }
.hv-hero__card .name { font-weight: var(--hv-fw-bold); color: var(--hv-ink); }
.hv-hero__card .price { font-size: var(--hv-fs-h2); font-weight: var(--hv-fw-black); color: var(--hv-primary); }
.hv-hero__card .price small { font-size: var(--hv-fs-xs); font-weight: var(--hv-fw-medium); color: var(--hv-muted); }

@media (max-width: 860px) {
  .hv-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hv-hero__points, .hv-hero__actions { justify-content: center; }
  .hv-hero__card { position: static; width: 100%; margin-top: var(--hv-space-5); }
}

/* ---------------------------------------------------------------------------
   FLASH-SALE BAR
   --------------------------------------------------------------------------- */
.hv-flash-bar { display: flex; align-items: center; gap: var(--hv-space-4); flex-wrap: wrap; padding: var(--hv-space-4) var(--hv-space-5); background: var(--hv-surface); border: 1px solid var(--hv-line); border-radius: var(--hv-radius-lg); box-shadow: var(--hv-shadow-sm); }
.hv-flash-bar__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--hv-radius); background: var(--hv-grad-primary); color: #fff; flex: 0 0 auto; }
.hv-flash-bar b { color: var(--hv-ink); }
.hv-flash-bar .code { color: var(--hv-primary); font-weight: var(--hv-fw-bold); }
.hv-flash-bar .ends { margin-left: auto; display: flex; align-items: center; gap: var(--hv-space-3); }

/* ---------------------------------------------------------------------------
   SECTION HEADER (icon + title + View All)
   --------------------------------------------------------------------------- */
.hv-section-head { display: flex; align-items: center; gap: var(--hv-space-3); margin-bottom: var(--hv-space-5); flex-wrap: wrap; }
.hv-section-head__title { display: inline-flex; align-items: center; gap: var(--hv-space-3); font-size: var(--hv-fs-h2); font-weight: var(--hv-fw-black); color: var(--hv-ink); margin: 0; }
.hv-section-head__title .hv-ico { color: var(--hv-primary); }
.hv-section-head.is-raid .hv-section-head__title .hv-ico { color: var(--hv-raid); }
.hv-section-head.is-jackpot .hv-section-head__title .hv-ico { color: var(--hv-jackpot); }
.hv-section-head__sub { color: var(--hv-muted); font-size: var(--hv-fs-sm); }
.hv-section-head__all { margin-left: auto; color: var(--hv-primary); font-weight: var(--hv-fw-bold); font-size: var(--hv-fs-sm); }

/* Card row: 4 per row, wrapping to show ALL draws in the category. Responsive. */
.hv-card-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--hv-space-5); }
@media (max-width: 1100px) { .hv-card-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .hv-card-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .hv-card-row { grid-template-columns: repeat(2, 1fr); gap: var(--hv-space-3); } } /* mirrors ul.products: 2-up on mobile */

/* ---------------------------------------------------------------------------
   STATS STRIP
   --------------------------------------------------------------------------- */
.hv-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--hv-space-4); padding: var(--hv-space-5); background: var(--hv-surface); border: 1px solid var(--hv-line); border-radius: var(--hv-radius-lg); box-shadow: var(--hv-shadow-sm); }
.hv-stats__item { display: flex; align-items: center; gap: var(--hv-space-3); justify-content: center; }
.hv-stats__item .hv-ico { color: var(--hv-primary); flex: 0 0 auto; }
.hv-stats__item b { display: block; color: var(--hv-ink); font-size: var(--hv-fs-h4); font-weight: var(--hv-fw-black); }
.hv-stats__item span { font-size: var(--hv-fs-xs); color: var(--hv-muted); text-transform: uppercase; letter-spacing: var(--hv-ls-wide); }
@media (max-width: 960px) { .hv-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------------
   NEWSLETTER BAND
   --------------------------------------------------------------------------- */
.hv-newsletter { position: relative; overflow: hidden; border: 1px solid var(--hv-line);
  background: radial-gradient(70% 90% at 18% 0%, rgba(6, 91, 224, .14), transparent 60%), var(--hv-grad-navy);
  color: #fff; border-radius: var(--hv-radius-xl); padding: var(--hv-space-7); }
.hv-newsletter h2 { color: #fff; }
.hv-newsletter p { color: rgba(255,255,255,.75); }
.hv-newsletter__form { display: flex; gap: var(--hv-space-3); max-width: 520px; margin-top: var(--hv-space-4); }
.hv-newsletter__form input { flex: 1; padding: 0.9em 1.1em; border-radius: var(--hv-radius-sm); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-family: var(--hv-font); }
.hv-newsletter__form input::placeholder { color: rgba(255,255,255,.6); }
.hv-newsletter__perks { display: flex; flex-wrap: wrap; gap: var(--hv-space-5); margin-top: var(--hv-space-5); color: rgba(255,255,255,.85); font-size: var(--hv-fs-sm); }
.hv-newsletter__perks span { display: inline-flex; align-items: center; gap: 0.4em; }

/* ---------------------------------------------------------------------------
   FOOTER (navy)
   --------------------------------------------------------------------------- */
.hv-footer { background: var(--hv-navy-900); border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7); padding-block: var(--hv-space-7) var(--hv-space-5); margin-top: 0px; }
.hv-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: var(--hv-space-6); }
.hv-footer__brand .hv-logo { color: #fff; margin-bottom: var(--hv-space-3); }
.hv-footer__brand p { color: rgba(255,255,255,.6); font-size: var(--hv-fs-sm); }
.hv-footer__social { display: flex; gap: var(--hv-space-3); margin-top: var(--hv-space-4); }
.hv-footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--hv-radius-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.hv-footer__social a:hover { background: var(--hv-primary); border-color: var(--hv-primary); color: #fff; transform: translateY(-2px); }
.hv-footer__social a:focus-visible { outline: none; box-shadow: var(--hv-ring); }

/* Site Identity logo in the footer (same source as the header) */
.hv-footer .hv-logo--img .custom-logo { max-height: 52px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
.hv-footer .hv-logo--img { margin-bottom: var(--hv-space-3); }
.hv-footer h4 { color: #fff; font-size: var(--hv-fs-sm); text-transform: uppercase; letter-spacing: var(--hv-ls-wide); margin-bottom: var(--hv-space-4); }
/* Footer headings use the UI font (Manrope). The global h1–h6 → serif rule
   would otherwise set these small uppercase labels in the serif heading face. */
body.hv-theme .hv-footer :is(h1, h2, h3, h4, h5, h6) { font-family: var(--hv-font) !important; font-weight: var(--hv-fw-bold); }
.hv-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hv-space-2); }
.hv-footer ul a { color: rgba(255,255,255,.7); font-size: var(--hv-fs-sm); }
.hv-footer ul a:hover { color: #fff; }
.hv-footer__contact li { display: flex; align-items: flex-start; gap: var(--hv-space-3); font-size: var(--hv-fs-sm); color: rgba(255,255,255,.7); margin-bottom: var(--hv-space-3); line-height: 1.55; }
.hv-footer__contact a { color: rgba(255,255,255,.7); }
.hv-footer__contact a:hover { color: #fff; }
.hv-footer__contact-ico {
  width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center; margin-top: -3px;
  border-radius: var(--hv-radius-pill);
  background: rgba(255,255,255,.08);
  color: var(--hv-primary-strong);
}
.hv-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--hv-space-4); flex-wrap: wrap; margin-top: var(--hv-space-6); padding-top: var(--hv-space-5); border-top: 1px solid rgba(255,255,255,.12); font-size: var(--hv-fs-sm); }
/* Payment marks: official brand colours on uniform white chips (inline SVG /
   styled wordmarks — crisp at any resolution, zero external requests). */
.hv-pay-icons { display: flex; gap: var(--hv-space-2); align-items: center; flex-wrap: wrap; }
.hv-pay {
  height: 30px; min-width: 48px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  background: #fff; border-radius: 5px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hv-pay:hover { transform: translateY(-1px); box-shadow: var(--hv-shadow); }
.hv-pay svg { display: block; }
.hv-pay b { font-size: 11px; font-weight: var(--hv-fw-bold); line-height: 1; letter-spacing: 0; }
.hv-pay__visa { color: #1434CB; font-style: italic; letter-spacing: 0.5px !important; }
.hv-pay__word { color: #3C4043; }
@media (max-width: 960px) { .hv-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hv-footer__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   MOBILE + TABLET BOTTOM NAVIGATION BAR (#hv-bottom-bar) — ≤1080px
   Fixed dark-glass bar: Home · Draws · Winners · Cart (live badge) · Account.
   Shown wherever the header is in hamburger mode (≤1080px, matching .hv-nav), so
   phones AND tablets get it. Rendered on wp_footer by HV_Bottom_Bar; on-dark
   text/hairline tokens come from the dark-surface scope rule in base.css. Hidden
   on desktop; stays visible (above the drawer) while the mobile menu is open. The
   "adding to cart" blink lives in the AJAX feedback CSS (HV_Ajax_Cart).
   --------------------------------------------------------------------------- */
.hv-bottom-bar { display: none; }

@media (max-width: 1080px) {
  .hv-bottom-bar {
    display: block;                    /* override the base display:none so it shows */
    
    position: fixed; inset: auto 0 0 0; z-index: 1000;
    background: rgba(10, 10, 10, .92);
    -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
    border-top: 1px solid var(--hv-line);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .35);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform .28s ease;
  }
  
  .hv-site-header__inner { justify-content: space-between; }
.hv-site-header__inner::after { content: ""; width: 40px; flex: 0 0 auto; } /* balances the toggle */
  @supports not (backdrop-filter: blur(12px)) { .hv-bottom-bar { background: var(--hv-navy-900); } }

  /* Items fill the width on phones; on wider tablets they cap + centre so the
     row never stretches thin across the bar. The dark bar itself stays full-width. */
  .hv-bottom-bar__inner {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    max-width: 620px; margin-inline: auto;
  }

  .hv-bottom-bar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 66px; padding: 11px 4px;
    color: var(--hv-muted) !important; text-decoration: none !important;
    font-family: var(--hv-font); -webkit-tap-highlight-color: transparent;
    transition: color .15s ease;
  }
  .hv-bottom-bar__item .hv-icon-wrap { position: relative; display: inline-flex; }
  .hv-bottom-bar__item svg { width: 23px; height: 23px; display: block; }
  .hv-bottom-bar__label { font-size: 10px; font-weight: var(--hv-fw-medium); letter-spacing: .02em; line-height: 1; }
  .hv-bottom-bar__item:hover,
  .hv-bottom-bar__item.is-active { color: var(--hv-primary-strong) !important; }
  .hv-bottom-bar__item:focus-visible { outline: none; box-shadow: var(--hv-ring); border-radius: var(--hv-radius-sm); }

  /* Live cart-count badge (also a WooCommerce fragment — see HV_Bottom_Bar). */
  .hv-cart-badge {
    position: absolute; top: -6px; right: -10px;
    min-width: 16px; height: 16px; padding: 0 4px;
    display: grid; place-items: center;
    border-radius: var(--hv-radius-pill);
    background: var(--hv-primary); color: #fff;
    font-size: 10px; font-weight: var(--hv-fw-bold); line-height: 1;
    border: 1.5px solid var(--hv-navy-900);
  }
  .hv-cart-badge.is-zero { display: none; }

  /* The bottom bar stays visible while the menu drawer is open (z-index 1000
     keeps it above the drawer) — the drawer adds bottom padding to clear it. */

  /* Reserve space so the fixed bar never covers the footer / last content. */
  body.hv-theme { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 1080px) and (prefers-reduced-motion: reduce) {
  .hv-bottom-bar { transition: none; }
}
