/*
Theme Name: Vape101
Theme URI: https://vape101.example.com/
Author: WorkBuddy
Author URI: https://www.workbuddy.cn/
Description: A clean, conversion-focused vape shop theme. WooCommerce ready, responsive, with built-in age verification.
Version: 1.2.79
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vape101
Tags: e-commerce, woocommerce, one-column, two-columns, responsive-layout, custom-menu
*/

/* ==========================================================================
   Design tokens — semantic, WCAG AA aware.
   Legacy variable names are preserved as aliases so product.css and any
   third-party overrides keep working while the whole system is upgraded.
   ========================================================================== */
:root {
  /* Brand (blue) scale */
  --hp-blue:        #1b6f9a;   /* primary — 5.5:1 on white (AA) */
  --hp-blue-dark:   #155877;
  --hp-blue-050:    #eef6fa;
  --hp-blue-100:    #d8ecf5;
  --hp-blue-200:    #b0d6e7;
  --hp-blue-600:    #155877;
  --hp-blue-700:    #114962;

  /* Neutral / ink scale */
  --hp-ink:         #16202a;   /* headings — near-black, strong hierarchy */
  --hp-dark:        #212529;
  --hp-gray:        #454e57;   /* body copy */
  --hp-muted:       #6b747d;   /* secondary text — 4.7:1 on white (AA) */
  --hp-faint:       #9aa2a9;   /* decorative / placeholders only */
  --hp-line:        #e7ebef;
  --hp-line-strong: #d5dce2;
  --hp-soft:        #f7f9fa;
  --hp-soft-2:      #f1f4f6;
  --hp-surface:     #ffffff;
  --hp-cream:       #fff4d6;

  /* Semantic status */
  --hp-success:     #18794e;
  --hp-warning:     #9a6400;
  --hp-danger:      #c0392b;
  --hp-info:        #1b6f9a;

  /* Type scale (modular ~1.25) */
  --hp-font:        'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --hp-fs-xs:       11px;
  --hp-fs-sm:       12px;
  --hp-fs-base:     15px;
  --hp-fs-md:       16px;
  --hp-fs-lg:       19px;
  --hp-fs-xl:       24px;
  --hp-fs-2xl:      30px;
  --hp-fs-3xl:      38px;
  --hp-lh:          1.6;

  /* Spacing (8pt rhythm) */
  --hp-sp-1:        4px;
  --hp-sp-2:        8px;
  --hp-sp-3:        12px;
  --hp-sp-4:        16px;
  --hp-sp-5:        24px;
  --hp-sp-6:        32px;
  --hp-sp-7:        48px;
  --hp-sp-8:        64px;

  /* Radius */
  --hp-radius-sm:   6px;
  --hp-radius:      12px;      /* legacy name, upgraded value */
  --hp-radius-lg:   16px;
  --hp-radius-pill: 999px;

  /* Elevation */
  --hp-shadow-xs:   0 1px 2px rgba(16,24,40,.05);
  --hp-shadow-sm:   0 2px 8px rgba(16,24,40,.06);
  --hp-shadow-md:   0 8px 24px rgba(16,24,40,.08);
  --hp-shadow-lg:   0 18px 44px rgba(16,24,40,.12);

  /* Motion */
  --hp-ease:        cubic-bezier(.2,.7,.3,1);
  --hp-t-fast:      .16s ease;
  --hp-t-base:      .28s var(--hp-ease);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hp-surface);
  color: var(--hp-gray);
  font-family: var(--hp-font);
  font-size: var(--hp-fs-base);
  font-weight: 400;
  line-height: var(--hp-lh);
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* WordPress/WooCommerce visually-hidden helper: keep for screen readers only. */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; white-space: nowrap; word-wrap: normal !important;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: color var(--hp-t-fast); }
a:hover { color: var(--hp-blue); }
button, input, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
summary { touch-action: manipulation; }
h1, h2, h3, h4, h5, h6 { color: var(--hp-ink); margin: 0; text-wrap: balance; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 var(--hp-sp-3); }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Visible focus for keyboard users ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--hp-blue);
  outline-offset: 3px;
  border-radius: var(--hp-radius-sm);
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.hp-container { width: 100%; max-width: 1290px; margin: 0 auto; }
.hp-wide { width: 100%; margin: 0 auto; }
.hp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp-skip { position: absolute; top: -60px; left: 10px; z-index: 10000; background: var(--hp-blue); color: #fff; padding: 8px 14px; border-radius: 4px; }
.hp-skip:focus { top: 8px; }

/* ---------- Top utility bar ---------- */
.hp-topnav { background: var(--hp-surface); border-bottom: 1px solid var(--hp-line); }
.hp-topnav-inner { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: var(--hp-sp-5); min-height: 40px; }
.hp-topnav-links { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 30px; flex: 1 1 auto; min-width: 0; overflow: visible; }
.hp-topnav-links::-webkit-scrollbar { display: none; }
.hp-topnav-links > ul { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 30px; flex: 0 0 auto; list-style: none; margin: 0; padding: 0; }
.hp-topnav a { font-size: var(--hp-fs-sm); font-weight: 600; color: var(--hp-gray); text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.hp-topnav a:hover, .hp-topnav a.is-active { color: var(--hp-blue); }
.hp-topnav-tools { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--hp-sp-3); flex: 0 0 auto; margin-left: auto; }
.hp-topnav .hp-search { width: 180px; padding: 6px 14px; }
.hp-topnav .hp-icon-link svg { width: 18px; height: 18px; }
.hp-topnav li { position: relative; }
.hp-topnav li.menu-item-has-children > a::after,
.hp-topnav li.has-children > a::after { content: '\25be'; font-size: 10px; margin-left: 6px; }
.hp-topnav .sub-menu, .hp-topnav .hp-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  min-width: 200px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow-md);
  padding: var(--hp-sp-2) 0;
}
/* Transparent bridge over the gap between a menu item and its dropdown, so the
   pointer can travel into the submenu without losing :hover. Without it the
   submenu collapses in the 6px gap and its links cannot be clicked. */
.hp-topnav .sub-menu::before,
.hp-topnav .hp-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: transparent;
}
.hp-topnav li:hover > .sub-menu, .hp-topnav li:focus-within > .sub-menu,
.hp-topnav li:hover > .hp-submenu, .hp-topnav li:focus-within > .hp-submenu { display: block; }
.hp-topnav .sub-menu a, .hp-topnav .hp-submenu a {
  display: block;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  white-space: nowrap;
}
.hp-topnav .sub-menu a:hover, .hp-topnav .hp-submenu a:hover { background: var(--hp-soft); }
/* Multi-column mega dropdowns for the "Shop By ..." menus (Brands / Puffs / Flavors). */
.hp-topnav li.hp-mega-parent > .sub-menu {
  columns: 2;
  column-gap: 6px;
  width: 460px;
  max-width: 92vw;
  padding: 10px;
}
.hp-topnav li.hp-mega-parent > .sub-menu > li { break-inside: avoid; }
@media (max-width: 600px) {
  .hp-topnav li.hp-mega-parent > .sub-menu { columns: 1; width: auto; padding: 4px 0; }
}

/* ---------- Announcement bar ---------- */
.hp-announcement {
  position: relative;
  z-index: 6;
  padding: 9px 40px;
  font-size: var(--hp-fs-xs);
  line-height: 1.5;
}
html.hp-announce-off .hp-announcement { display: none; }
.hp-announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-announcement__text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  text-align: center;
  font-weight: 500;
  letter-spacing: .01em;
}
.hp-announcement__link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.hp-announcement__link:hover { opacity: .8; }
.hp-announcement__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: .55;
  cursor: pointer;
  transition: opacity .15s ease;
}
.hp-announcement__close:hover { opacity: 1; }
@media (max-width: 600px) {
  .hp-announcement { padding: 8px 34px; font-size: 11px; }
  .hp-announcement__close { right: 8px; width: 20px; height: 20px; }
}

/* ---------- Top warning bar ---------- */
.hp-topbar {
  background: var(--hp-ink);
  color: #f4f6f8;
  text-align: center;
  font-size: var(--hp-fs-xs);
  font-weight: 400;
  letter-spacing: .02em;
  padding: 6px 12px;
  line-height: 1.4;
}
.hp-topbar u { text-underline-offset: 2px; }

/* ---------- Header ---------- */
.hp-header { background: var(--hp-surface); }
.hp-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: var(--hp-sp-5);
}
.hp-header-left, .hp-header-right { flex: 1 1 0; min-width: 0; }
.hp-header-right { display: flex; align-items: center; justify-content: flex-end; gap: var(--hp-sp-4); }
.hp-brand { display: block; margin: 0 auto; }
.hp-brand img { width: 250px; height: auto; object-fit: contain; margin: 0 auto; }
.hp-brand-text { font-family: Georgia, serif; font-size: 22px; font-weight: 600; letter-spacing: 3px; color: var(--hp-ink); white-space: nowrap; }
.hp-search {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--hp-radius-pill);
  padding: 9px 16px;
  width: 210px;
  background: var(--hp-soft-2);
  transition: background var(--hp-t-fast), border-color var(--hp-t-fast), box-shadow var(--hp-t-fast);
}
.hp-search:focus-within { background: #fff; border-color: var(--hp-blue-200); box-shadow: 0 0 0 3px rgba(27,111,154,.12); }
.hp-search input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  font-size: var(--hp-fs-sm);
  color: var(--hp-ink);
  padding: 2px 0;
}
.hp-search input::placeholder { color: var(--hp-faint); }
.hp-search button { border: 0; background: transparent; padding: 2px; display: grid; place-items: center; color: var(--hp-muted); }
.hp-search button:hover { color: var(--hp-blue); }
.hp-icon-link { display: inline-flex; align-items: center; gap: 7px; color: var(--hp-ink); position: relative; transition: color var(--hp-t-fast); }
.hp-icon-link:hover { color: var(--hp-blue); }
.hp-icon-link svg { width: 21px; height: 21px; }
.hp-cart-amount { font-size: var(--hp-fs-sm); font-weight: 600; white-space: nowrap; }
.hp-cart-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--hp-radius-pill); background: var(--hp-blue); color: #fff; font-size: 10px; font-weight: 700; }
.hp-menu-toggle { display: none; border: 0; background: transparent; padding: 6px; color: var(--hp-ink); }

/* ---------- Navigation ---------- */
.hp-nav { border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); background: var(--hp-surface); position: relative; z-index: 30; }
.hp-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--hp-sp-5); min-height: 54px; }
.hp-nav-inner > ul { display: flex; align-items: center; justify-content: flex-start; gap: 32px; flex: 1 1 auto; }
.hp-nav-tools { display: flex; align-items: center; gap: var(--hp-sp-4); flex: 0 0 auto; }
.hp-nav-tools [data-hp-search-toggle] { display: none; }
@media (max-width: 600px) {
  .hp-nav-tools [data-hp-search-toggle] { display: inline-flex; }
}
.hp-nav-inner > .hp-search { flex: 0 0 auto; }
.hp-nav > .hp-container > ul > li { position: relative; }
.hp-nav a { font-size: var(--hp-fs-sm); font-weight: 700; color: var(--hp-ink); text-transform: uppercase; letter-spacing: .045em; display: inline-block; padding: 19px 0; position: relative; }
.hp-nav a:hover, .hp-nav .current-menu-item > a { color: var(--hp-blue); }
.hp-nav > .hp-container > ul > li > a::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px;
  background: var(--hp-blue); transform: scaleX(0); transform-origin: center;
  transition: transform var(--hp-t-base);
}
.hp-nav > .hp-container > ul > li > a:hover::before,
.hp-nav .current-menu-item > a::before { transform: scaleX(1); }
.hp-nav li.has-children > a::after, .hp-nav li.menu-item-has-children > a::after { content: ''; display: inline-block; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.hp-submenu, .hp-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  box-shadow: var(--hp-shadow-md);
  border-radius: var(--hp-radius);
  padding: var(--hp-sp-4);
  min-width: 220px;
  z-index: 40;
}
.hp-submenu a, .hp-nav .sub-menu a { display: block; padding: 8px 0; font-size: var(--hp-fs-sm); font-weight: 500; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.hp-nav li:hover > .hp-submenu, .hp-nav li:focus-within > .hp-submenu,
.hp-nav li:hover > .sub-menu, .hp-nav li:focus-within > .sub-menu { display: block; }
.hp-submenu.hp-mega { display: none; width: 720px; columns: 3; column-gap: 24px; }
.hp-nav li:hover > .hp-mega, .hp-nav li:focus-within > .hp-mega { display: block; }

/* ---------- Home hero: carousel + two fixed side tiles ---------- */
.hp-hero-shell {
  width: 100%;
  background: linear-gradient(180deg, var(--hp-soft) 0%, var(--hp-soft-2) 100%);
  padding: var(--hp-sp-4);
  border-bottom: 1px solid var(--hp-line);
}
.hp-hero-layout {
  display: grid;
  /* Carousel vs. fixed side tiles: keep the ratio fluid so the two promo
     tiles occupy a larger, balanced share instead of a thin 200px rail. */
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
  gap: var(--hp-sp-4);
  max-width: 1600px;
  margin: 0 auto;
}
.hp-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--hp-radius);
  background: var(--hp-soft-2);
  aspect-ratio: 2.62 / 1;
  min-width: 0;
  box-shadow: var(--hp-shadow-sm);
}
.hp-slider-track {
  display: flex;
  height: 100%;
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.hp-slide { flex: 0 0 100%; height: 100%; min-width: 0; }
.hp-slide a, .hp-slide img, .hp-slider-empty img { display: block; width: 100%; height: 100%; }
.hp-slide img, .hp-slider-empty img { object-fit: cover; object-position: center; }
.hp-slider-empty { display: block; width: 100%; height: 100%; }

.hp-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  color: var(--hp-ink);
  cursor: pointer;
  z-index: 3;
  box-shadow: var(--hp-shadow-md);
  transition: background var(--hp-t-fast), transform var(--hp-t-fast);
}
.hp-slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hp-slider-arrow:active { transform: translateY(-50%) scale(.94); }
.hp-slider-prev { left: 14px; }
.hp-slider-next { right: 14px; }
.hp-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.hp-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: var(--hp-radius-pill);
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: background var(--hp-t-fast), width var(--hp-t-fast), transform var(--hp-t-fast);
}
.hp-slider-dot:hover { background: #fff; }
.hp-slider-dot.is-active { width: 26px; border-radius: var(--hp-radius-pill); background: var(--hp-blue); transform: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }

.hp-hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--hp-sp-4);
  min-width: 0;
  /* Let the carousel's aspect-ratio drive the shared row height. Without
     min-height:0 the tiles' intrinsic image height can stretch the row and
     push the side column past the carousel's bottom edge. */
  min-height: 0;
}
.hp-hero-side-tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--hp-radius);
  background: var(--hp-ink);
  min-height: 0;
  box-shadow: var(--hp-shadow-sm);
}
.hp-hero-side-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s var(--hp-ease); }
.hp-hero-side-tile:hover img { transform: scale(1.06); }

/* ---------- Sections & product grid ---------- */
.hp-section { padding: 52px 0 12px; }
.hp-section-heading { font-size: var(--hp-fs-xl); line-height: 1.2; font-weight: 700; color: var(--hp-ink); text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 var(--hp-sp-5); }
.hp-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--hp-sp-5); }
.hp-card {
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--hp-t-base), transform var(--hp-t-base), border-color var(--hp-t-base);
}
.hp-card:hover { box-shadow: var(--hp-shadow-lg); transform: translateY(-4px); border-color: var(--hp-line-strong); }
.hp-card-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: var(--hp-sp-4); background: var(--hp-surface); overflow: hidden; }
.hp-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--hp-ease); }
.hp-card:hover .hp-card-media img { transform: scale(1.05); }
.hp-card-image { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: var(--hp-sp-3); background: var(--hp-surface); }
.hp-card-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hp-card-body { padding: var(--hp-sp-2) var(--hp-sp-3) var(--hp-sp-4); text-align: center; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hp-card-title { font-size: var(--hp-fs-base); font-weight: 600; color: var(--hp-ink); line-height: 1.4; margin: 0 0 var(--hp-sp-2); min-height: 40px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; letter-spacing: 0; }
.hp-card-title a:hover { color: var(--hp-blue); }
.hp-card-price { font-size: var(--hp-fs-md); font-weight: 700; color: var(--hp-ink); margin-top: auto; }
.hp-card-onsale { color: var(--hp-danger); }
.hp-card-badge { position: absolute; top: var(--hp-sp-2); left: var(--hp-sp-2); z-index: 2; background: var(--hp-blue); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: var(--hp-radius-sm); }

/* ---------- Brand grid (shop by brand) ---------- */
.hp-brands-section { margin-top: var(--hp-sp-7); }
.hp-brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--hp-sp-4);
}
.hp-brand-grid--directory {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.hp-brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 148px;
  padding: 24px 16px 20px;
  background: linear-gradient(165deg, #1e3247 0%, #16273a 100%);
  border: 1px solid #263d54;
  border-radius: var(--hp-radius-lg);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--hp-t-base), box-shadow var(--hp-t-base), border-color var(--hp-t-base);
}
/* Soft accent glow that blooms on hover. */
.hp-brand-card::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 50%;
  width: 220px;
  height: 160px;
  margin-left: -110px;
  background: radial-gradient(closest-side, rgba(95, 208, 230, .22), rgba(95, 208, 230, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hp-t-base);
}
.hp-brand-card:hover,
.hp-brand-card:focus-visible {
  transform: translateY(-4px);
  border-color: #3f89a8;
  box-shadow: 0 18px 40px rgba(10, 30, 45, .28);
}
.hp-brand-card:hover::before,
.hp-brand-card:focus-visible::before { opacity: 1; }
.hp-brand-card:focus-visible { outline: 2px solid #5fd0e6; outline-offset: 2px; }
.hp-brand-card__media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 52px;
}
.hp-brand-card__media img {
  max-height: 44px;
  max-width: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Real-world brand logos are dark; render them white on the dark card. */
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .92;
  transition: opacity var(--hp-t-fast), transform var(--hp-t-base);
}
.hp-brand-card:hover .hp-brand-card__media img { opacity: 1; transform: scale(1.04); }
.hp-brand-card__fallback {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(95, 208, 230, .24), rgba(27, 111, 154, .3));
  border: 1px solid rgba(95, 208, 230, .32);
  color: #8ee2f2;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  transition: border-color var(--hp-t-base), color var(--hp-t-base);
}
.hp-brand-card:hover .hp-brand-card__fallback { border-color: rgba(95, 208, 230, .6); color: #b6f0fb; }
.hp-brand-card__name {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: var(--hp-fs-md);
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.hp-brand-card__meta {
  position: relative;
  z-index: 1;
  color: #93aec3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
}
.hp-brand-card:hover .hp-brand-card__meta { color: #bfe2ee; }
.hp-brand-card__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #5fd0e6;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--hp-t-base), transform var(--hp-t-base);
}
.hp-brand-card:hover .hp-brand-card__arrow,
.hp-brand-card:focus-visible .hp-brand-card__arrow { opacity: 1; transform: none; }

/* Larger directory variant */
.hp-brand-card--lg { min-height: 196px; padding: 28px 18px 24px; gap: 12px; }
.hp-brand-card--lg .hp-brand-card__media { height: 64px; }
.hp-brand-card--lg .hp-brand-card__media img { max-height: 54px; max-width: 82%; }
.hp-brand-card--lg .hp-brand-card__fallback { width: 66px; height: 66px; border-radius: 18px; font-size: 28px; }
.hp-brand-card--lg .hp-brand-card__name { font-size: 17px; }

/* Brand archive hero (logo + name + description) */
.hp-brand-banner .hp-brand-hero { display: flex; align-items: center; gap: 24px; margin-top: 18px; }
.hp-brand-hero__media {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  background: #1c2b3a;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
}
.hp-brand-hero__media img { max-width: 76px; max-height: 76px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); }
.hp-brand-hero__media span { color: #5fd0e6; font-size: 44px; font-weight: 800; }
.hp-brand-hero__body h1 { margin: 0 0 6px; }
.hp-brand-hero__body p { margin: 0; color: var(--hp-muted); font-size: 14px; max-width: 640px; }
.hp-brand-hero--inline { margin: 8px 0 28px; }
.hp-no-products { color: var(--hp-muted); }
/* Clickable section heading links (e.g. SHOP BY BRAND -> brand directory) */
.hp-section-heading a { color: inherit; text-decoration: none; }
.hp-section-heading a:hover { color: var(--hp-blue); }
.hp-section-heading a:focus-visible { outline: 2px solid var(--hp-blue); outline-offset: 3px; }

/* Legacy brand strip (kept for any cached markup) */
.hp-brand-strip { display: none; }

/* ---------- Brand directory page (/brands/) ---------- */
.hp-brand-band {
  position: relative;
  overflow: hidden;
  padding: 48px 0 68px;
  color: #fff;
  background:
    radial-gradient(900px 380px at 8% -30%, rgba(47, 128, 168, .55) 0%, rgba(47, 128, 168, 0) 62%),
    linear-gradient(158deg, #16293b 0%, #0f1c28 100%);
}
.hp-brand-band::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -70%;
  width: 520px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(95, 208, 230, .16), rgba(95, 208, 230, 0));
  pointer-events: none;
}
.hp-brand-band .hp-container { position: relative; z-index: 1; }
.hp-brand-band .hp-breadcrumb { display: flex; gap: 6px; color: #8ba7bd; margin-bottom: 22px; }
.hp-brand-band .hp-breadcrumb a { color: #8ba7bd; }
.hp-brand-band .hp-breadcrumb a:hover { color: #fff; }
.hp-brand-band__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #5fd0e6;
}
.hp-brand-band h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  color: #fff;
}
.hp-brand-band__sub {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
  color: #b3c7d6;
}
.hp-brand-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hp-brand-stats li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--hp-radius-pill);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hp-brand-stats strong { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.hp-brand-stats span { font-size: 12px; font-weight: 500; color: #9db4c6; }

/* Filter bar — pulled up so it straddles the hero edge. */
.hp-brand-tools {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -30px 0 30px;
  padding: 14px 16px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow-md);
}
.hp-brand-search { position: relative; flex: 1 1 220px; max-width: 320px; }
.hp-brand-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hp-faint);
  pointer-events: none;
}
.hp-brand-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--hp-line-strong);
  border-radius: var(--hp-radius-pill);
  background: var(--hp-soft);
  color: var(--hp-ink);
  font-size: 14px;
  transition: border-color var(--hp-t-fast), background var(--hp-t-fast), box-shadow var(--hp-t-fast);
}
.hp-brand-search input::placeholder { color: var(--hp-faint); }
.hp-brand-search input:focus {
  outline: none;
  border-color: var(--hp-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 111, 154, .12);
}
.hp-brand-alpha { display: flex; flex-wrap: wrap; gap: 2px; }
.hp-brand-alpha button {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--hp-gray);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background var(--hp-t-fast), color var(--hp-t-fast);
}
.hp-brand-alpha button:hover:not(:disabled) { background: var(--hp-soft-2); color: var(--hp-ink); }
.hp-brand-alpha button.is-active { background: var(--hp-ink); color: #fff; }
.hp-brand-alpha button:disabled { opacity: .26; cursor: default; }
.hp-brand-alpha button:focus-visible { outline: 2px solid var(--hp-blue); outline-offset: 1px; }

/* Alphabetical groups — "A ───────────────────────────────── ⌃".
   Only the heading layer is new; the cards inside keep their original style. */
.hp-brand-groups { display: block; }
.hp-brand-group { margin: 0 0 30px; }
.hp-brand-group[hidden] { display: none; }
.hp-brand-group__head { margin: 0 0 14px; }
.hp-brand-group__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--hp-muted);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.hp-brand-group__letter {
  flex: 0 0 auto;
  min-width: 14px;
  color: var(--hp-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
}
.hp-brand-group__rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--hp-line);
}
.hp-brand-group__chevron {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--hp-faint);
  transition: transform var(--hp-t-fast), color var(--hp-t-fast);
}
.hp-brand-group__toggle:hover .hp-brand-group__letter,
.hp-brand-group__toggle:hover .hp-brand-group__chevron { color: var(--hp-ink); }
.hp-brand-group__toggle:focus-visible { outline: 2px solid var(--hp-blue); outline-offset: 2px; border-radius: 4px; }
.hp-brand-group.is-collapsed .hp-brand-grid { display: none; }
.hp-brand-group.is-collapsed .hp-brand-group__chevron { transform: rotate(180deg); }

.hp-brand-empty {
  margin: 0 0 32px;
  padding: 44px 16px;
  text-align: center;
  color: var(--hp-muted);
  font-size: var(--hp-fs-base);
  background: var(--hp-soft);
  border: 1px dashed var(--hp-line-strong);
  border-radius: var(--hp-radius-lg);
}
.hp-brand-card[hidden] { display: none; }

/* Bottom call to action */
.hp-brand-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 40px 0 8px;
  padding: 26px 30px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: linear-gradient(120deg, #f4f9fc 0%, #eef3f7 100%);
}
.hp-brand-cta__copy h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: var(--hp-ink); letter-spacing: -.01em; }
.hp-brand-cta__copy p { margin: 0; max-width: 620px; font-size: 14px; line-height: 1.65; color: var(--hp-gray); }
.hp-brand-cta__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--hp-radius-pill);
  background: var(--hp-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--hp-t-fast), transform var(--hp-t-fast);
}
.hp-brand-cta__btn:hover { background: #000; transform: translateY(-1px); }
.hp-brand-cta__btn:focus-visible { outline: 2px solid var(--hp-blue); outline-offset: 3px; }

/* ---------- Tabs ---------- */
.hp-tabs { display: flex; gap: var(--hp-sp-2); margin: 0 0 var(--hp-sp-5); flex-wrap: wrap; }
.hp-tab { border: 1px solid var(--hp-line-strong); background: var(--hp-surface); color: var(--hp-ink); border-radius: var(--hp-radius-sm); padding: 9px 18px; font-size: var(--hp-fs-sm); font-weight: 600; transition: background var(--hp-t-fast), color var(--hp-t-fast), border-color var(--hp-t-fast); }
.hp-tab:hover { border-color: var(--hp-ink); }
.hp-tab.is-active { background: var(--hp-ink); color: #fff; border-color: var(--hp-ink); }
.hp-tab-panel[hidden] { display: none; }

/* ---------- Collection / archive pages ---------- */
.hp-page-banner { background: linear-gradient(180deg, var(--hp-soft) 0%, var(--hp-soft-2) 100%); border-bottom: 1px solid var(--hp-line); padding: var(--hp-sp-7) 0; text-align: center; }
.hp-page-banner h1 { font-size: var(--hp-fs-2xl); font-weight: 700; letter-spacing: -.02em; }
.hp-breadcrumb { font-size: var(--hp-fs-sm); color: var(--hp-muted); margin-bottom: var(--hp-sp-3); }
.hp-breadcrumb a:hover { color: var(--hp-blue); }
.hp-toolbar { border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: var(--hp-sp-3) var(--hp-sp-4); display: flex; justify-content: space-between; align-items: center; gap: var(--hp-sp-3); font-size: var(--hp-fs-sm); margin: var(--hp-sp-5) 0 var(--hp-sp-4); color: var(--hp-gray); flex-wrap: wrap; background: var(--hp-surface); }
.hp-toolbar select { border: 1px solid var(--hp-line-strong); border-radius: var(--hp-radius-sm); padding: 7px 10px; font-size: var(--hp-fs-sm); background: var(--hp-surface); color: var(--hp-ink); }
.hp-collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hp-sp-5); }
.hp-pagination { display: flex; align-items: center; justify-content: center; gap: var(--hp-sp-2); margin: var(--hp-sp-6) 0; font-size: var(--hp-fs-base); }
.hp-pagination a, .hp-pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--hp-line); border-radius: var(--hp-radius-sm); padding: 0 var(--hp-sp-2); transition: border-color var(--hp-t-fast), background var(--hp-t-fast), color var(--hp-t-fast); }
.hp-pagination a:hover { border-color: var(--hp-blue); color: var(--hp-blue); }
.hp-pagination .current { background: var(--hp-blue); color: #fff; border-color: var(--hp-blue); }
.hp-pagination .count { border: 0; color: var(--hp-muted); }
.hp-prose { color: var(--hp-gray); font-size: var(--hp-fs-base); line-height: 1.8; }
.hp-prose h2 { font-size: var(--hp-fs-xl); margin: var(--hp-sp-6) 0 var(--hp-sp-3); }
.hp-faq { margin: var(--hp-sp-6) 0 var(--hp-sp-3); }
.hp-faq h2 { font-size: var(--hp-fs-lg); margin-bottom: var(--hp-sp-4); }
.hp-faq details { background: var(--hp-cream); border-radius: var(--hp-radius); margin-bottom: var(--hp-sp-2); }
.hp-faq summary { cursor: pointer; padding: var(--hp-sp-3) var(--hp-sp-4); font-size: var(--hp-fs-base); font-weight: 600; color: var(--hp-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: '+'; font-size: 18px; font-weight: 400; }
.hp-faq details[open] summary::after { content: '\2212'; }
.hp-faq .hp-faq-body { padding: 0 var(--hp-sp-4) var(--hp-sp-4); font-size: var(--hp-fs-base); line-height: 1.7; }

/* ---------- Footer ---------- */
.hp-footer { background: var(--hp-ink); color: #b7c0c8; padding: var(--hp-sp-7) 0 var(--hp-sp-5); font-size: var(--hp-fs-sm); }
.hp-footer a { color: #b7c0c8; }
.hp-footer a:hover { color: #fff; }
.hp-footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.25fr 1fr; gap: 40px; }
.hp-footer-title { color: #fff; font-size: var(--hp-fs-base); font-weight: 700; margin-bottom: var(--hp-sp-4); text-transform: uppercase; letter-spacing: .05em; }
.hp-footer-contact { display: flex; align-items: flex-start; gap: var(--hp-sp-3); margin-bottom: var(--hp-sp-3); line-height: 1.5; }
.hp-footer-contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; color: var(--hp-blue-200); }
.hp-footer-links li { margin-bottom: var(--hp-sp-2); font-size: var(--hp-fs-sm); font-weight: 600; letter-spacing: .03em; }
.hp-social { display: flex; gap: var(--hp-sp-3); }
.hp-social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #3d4750; border-radius: 50%; color: #d7dde2; transition: background var(--hp-t-fast), color var(--hp-t-fast), border-color var(--hp-t-fast); }
.hp-social a:hover { background: var(--hp-blue); border-color: var(--hp-blue); color: #fff; }
.hp-social svg { width: 15px; height: 15px; }
.hp-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--hp-sp-6); padding-top: var(--hp-sp-5); display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; }
.hp-legal p { font-size: var(--hp-fs-xs); line-height: 1.75; color: #98a2ab; margin-bottom: var(--hp-sp-3); }
.hp-copyright { font-size: var(--hp-fs-sm); color: #98a2ab; margin-top: var(--hp-sp-3); }

/* Configurable footer — vape101 five-column layout */
.hp-footer-grid--v2 { grid-template-columns: 1fr 1.15fr 1fr .85fr .9fr; gap: 32px; align-items: start; }
.hp-footer-grid--v2 .hp-footer-title { font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; margin-bottom: 14px; }
.hp-footer-grid--v2 .hp-footer-title--sub { margin-top: 24px; }
.hp-footer-grid--v2 .hp-footer-links li { font-size: 13px; font-weight: 400; letter-spacing: 0; margin-bottom: 10px; }
.hp-footer-grid--v2 .hp-footer-contact { margin-bottom: 0; }
.hp-footer-grid--v2 .hp-footer-contact a { font-size: 13px; }
.hp-footer-grid--v2 .hp-social { gap: 14px; }
.hp-footer-grid--v2 .hp-social a { width: auto; height: 24px; border: 0; border-radius: 0; color: #d7dde2; }
.hp-footer-grid--v2 .hp-social a:hover { background: transparent; color: #fff; }
.hp-footer-grid--v2 .hp-social svg { width: 20px; height: 20px; }
.hp-footer-payments { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-footer-payments a { display: block; line-height: 0; }
.hp-footer-payments img { width: 38px; height: 24px; object-fit: contain; border-radius: 3px; background: #fff; }

/* ---------- Age verification gate ----------
   The overlay is HIDDEN by default. Only when the tiny inline script in
   <head> decides the visitor is NOT verified does it add .hp-age-locked to
   <html>, which reveals the overlay before the first paint. This removes the
   flash where the overlay used to show until DOMContentLoaded hid it. */
.hp-age-overlay,
.hp-age-overlay[hidden] { display: none !important; }
.hp-age-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55); place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); overscroll-behavior: contain; }
html.hp-age-locked .hp-age-overlay { display: grid !important; }
html.hp-age-locked, html.hp-age-locked body { overflow: hidden; }
.hp-age-card { width: min(432px, 100%); background: var(--hp-surface); border-radius: var(--hp-radius-lg); overflow: hidden; box-shadow: var(--hp-shadow-lg); text-align: center; }
.hp-age-head { background: var(--hp-ink); color: #fff; font-size: var(--hp-fs-md); font-weight: 600; letter-spacing: .01em; padding: var(--hp-sp-4); }
.hp-age-body { padding: var(--hp-sp-6) var(--hp-sp-6) var(--hp-sp-5); }
.hp-age-plus { color: var(--hp-blue); font-size: 22px; font-weight: 600; margin-bottom: var(--hp-sp-2); }
.hp-age-title { font-size: var(--hp-fs-2xl); font-weight: 700; color: var(--hp-ink); margin-bottom: var(--hp-sp-3); }
.hp-age-desc { font-size: var(--hp-fs-base); color: var(--hp-gray); margin-bottom: var(--hp-sp-5); }
.hp-age-btn { display: block; width: 100%; border-radius: var(--hp-radius); padding: 14px 16px; font-size: var(--hp-fs-md); font-weight: 600; margin-bottom: var(--hp-sp-2); transition: background var(--hp-t-fast), border-color var(--hp-t-fast), transform var(--hp-t-fast); cursor: pointer; }
.hp-age-btn:active { transform: translateY(1px); }
.hp-age-btn-primary { background: var(--hp-blue); color: #fff; border: 1px solid var(--hp-blue); }
.hp-age-btn-primary:hover { background: var(--hp-blue-dark); border-color: var(--hp-blue-dark); }
.hp-age-btn-secondary { background: var(--hp-surface); color: var(--hp-ink); border: 1px solid var(--hp-line-strong); }
.hp-age-btn-secondary:hover { background: var(--hp-soft); }
.hp-age-fine { font-size: var(--hp-fs-xs); color: var(--hp-muted); line-height: 1.6; margin: var(--hp-sp-3) 0 0; }

/* ---------- Simple content pages ---------- */
.hp-entry { padding: var(--hp-sp-7) 0 var(--hp-sp-8); }
.hp-entry h1 { font-size: var(--hp-fs-2xl); margin-bottom: var(--hp-sp-5); }
.hp-entry h2 { font-size: var(--hp-fs-xl); margin: var(--hp-sp-6) 0 var(--hp-sp-3); }
.hp-entry p, .hp-entry li { font-size: var(--hp-fs-base); line-height: 1.8; }

/* ---------- Long-form content: migrated guides & policy pages ----------
   Scoped to single posts and pages so product layouts are untouched. */
body.single-post .hp-entry,
body.page .hp-entry { max-width: 900px; margin: 0 auto; }
body.single-post .hp-entry h2,
body.page .hp-entry h2 { font-size: 26px; line-height: 1.3; margin: 36px 0 14px; }
body.single-post .hp-entry h3,
body.page .hp-entry h3 { font-size: 21px; line-height: 1.35; margin: 28px 0 10px; }
body.single-post .hp-entry h4,
body.page .hp-entry h4 { font-size: 17px; line-height: 1.4; margin: 22px 0 8px; }
body.single-post .hp-entry p,
body.page .hp-entry p { margin: 0 0 16px; color: var(--hp-ink); }
body.single-post .hp-entry ul,
body.single-post .hp-entry ol,
body.page .hp-entry ul,
body.page .hp-entry ol { margin: 0 0 18px; padding-left: 22px; }
body.single-post .hp-entry li,
body.page .hp-entry li { margin: 0 0 8px; }
body.single-post .hp-entry a,
body.page .hp-entry a { color: var(--hp-blue); text-decoration: underline; }
body.single-post .hp-entry a:hover,
body.page .hp-entry a:hover { text-decoration: none; }
body.single-post .hp-entry table,
body.page .hp-entry table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
body.single-post .hp-entry th,
body.single-post .hp-entry td,
body.page .hp-entry th,
body.page .hp-entry td { border: 1px solid var(--hp-line); padding: 10px 12px; text-align: left; vertical-align: top; }
body.single-post .hp-entry th,
body.page .hp-entry th { background: var(--hp-soft, #f5f7f9); }
body.single-post .hp-entry img,
body.page .hp-entry img { max-width: 100%; height: auto; border-radius: 8px; }
body.single-post .hp-entry blockquote,
body.page .hp-entry blockquote { margin: 0 0 20px; padding: 12px 18px; border-left: 4px solid var(--hp-blue); background: var(--hp-soft, #f5f7f9); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hp-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hp-footer-grid--v2 { grid-template-columns: repeat(3, 1fr); }
  .hp-nav-inner { gap: 20px; }
  .hp-nav-inner > ul { gap: 20px; }
  .hp-nav a { font-size: 12px; }
  /* Keep the utility tools visible: give the menu a tighter gap and drop the
     search field so the account/cart icons are never pushed off-screen. */
  .hp-topnav-links { gap: 16px; justify-content: flex-start; }
  .hp-topnav-links > ul { gap: 16px; }
  .hp-topnav .hp-search { display: none; }
}
@media (max-width: 860px) {
  .hp-container { padding: 0 12px; }
  .hp-topnav-links { justify-content: flex-start; gap: 18px; overflow: visible; flex-wrap: wrap; }
  .hp-topnav-links > ul { justify-content: flex-start; gap: 18px; overflow: visible; }
  .hp-topnav-links::-webkit-scrollbar, .hp-topnav-links > ul::-webkit-scrollbar { display: none; }
  .hp-topnav-tools { margin-left: auto; }
  .hp-topnav .hp-search { display: none; }
  .hp-header-inner { min-height: 62px; }
  .hp-brand img { width: 180px; height: auto; }
  .hp-search { width: 120px; background: var(--hp-soft-2); }
  .hp-cart-amount { display: none; }
  .hp-hero-shell { padding: 10px; }
  .hp-hero-layout { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 10px; }
  .hp-slider { aspect-ratio: 2.2 / 1; }
  .hp-slider-arrow { width: 36px; height: 36px; }
  .hp-hero-side { gap: 10px; }
  .hp-nav-inner > ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 22px; scrollbar-width: none; }
  .hp-nav-inner > ul::-webkit-scrollbar { display: none; }
  .hp-nav a { white-space: nowrap; padding: 14px 0; }
  .hp-product-grid, .hp-collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-brand-grid, .hp-brand-grid--directory { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .hp-brand-band { padding: 40px 0 60px; }
  .hp-brand-tools { gap: 10px; }
  .hp-brand-search { max-width: none; flex: 1 1 100%; }
  .hp-brand-alpha {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hp-brand-alpha::-webkit-scrollbar { display: none; }
  .hp-brand-alpha button { flex: 0 0 auto; }
  .hp-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hp-legal { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .hp-container { padding: 0 12px; }
  .hp-topbar { font-size: 9px; padding: 5px 8px; }
  .hp-header-inner { min-height: 74px; gap: 6px; }
  .hp-header-left { flex: 0 0 28px; }
  .hp-menu-toggle { display: grid; place-items: center; }
  .hp-brand img { width: 138px; height: auto; }
  .hp-header-right { gap: 8px; }
  .hp-search { display: none; }
  .hp-search.is-open { display: flex; position: absolute; top: 100%; left: 12px; right: 12px; z-index: 50; width: auto; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
  /* Single-row header: tapping the hamburger expands the top bar menu into a
     vertical dropdown; account/cart icons stay visible in the bar. */
  .hp-topnav.is-open .hp-topnav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
    flex: none; display: block; overflow: visible; background: var(--hp-surface);
    border-bottom: 1px solid var(--hp-line); box-shadow: var(--hp-shadow-md); padding: 6px 0;
  }
  .hp-topnav.is-open .hp-topnav-links > ul { display: block; overflow: visible; }
  .hp-topnav.is-open .hp-topnav-links > ul > li { border-bottom: 1px solid var(--hp-line); }
  .hp-topnav.is-open .hp-topnav-links a { display: block; padding: 10px 14px; font-size: 13px; }
  .hp-topnav.is-open .hp-topnav-links .sub-menu,
  .hp-topnav.is-open .hp-topnav-links .hp-submenu { display: block; position: static; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 6px 26px; min-width: 0; }
  .hp-topnav { position: relative; }
  .hp-nav { display: none; }
  .hp-nav.is-open { display: block; }
  .hp-nav-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 12px; }
  .hp-nav-inner > ul { flex-direction: column; align-items: stretch; gap: 0; overflow: visible; width: 100%; }
  .hp-nav-inner > .hp-search { display: none; width: 100%; margin: 8px 0; }
  .hp-nav-inner > .hp-search.is-open { display: flex; }
  .hp-nav > .hp-container > ul > li { width: 100%; border-bottom: 1px solid var(--hp-line); }
  .hp-nav a { display: block; padding: 11px 0; font-size: 13px; }
  .hp-submenu, .hp-submenu.hp-mega { position: static; transform: none; box-shadow: none; border: 0; columns: 1; padding: 0 0 8px 12px; width: auto; }
  .hp-hero-shell { padding: 6px; }
  .hp-hero-layout { grid-template-columns: 1fr; gap: 6px; }
  .hp-slider { aspect-ratio: 16 / 9; }
  .hp-slider-arrow { width: 32px; height: 32px; }
  .hp-slider-prev { left: 8px; }
  .hp-slider-next { right: 8px; }
  .hp-slider-arrow svg { width: 20px; height: 20px; }
  .hp-slider-dots { bottom: 8px; }
  .hp-hero-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; gap: 6px; }
  .hp-hero-side-tile { aspect-ratio: 16 / 9; }
  .hp-section { padding: 26px 0 6px; }
  .hp-section-heading { font-size: 25px; margin-bottom: 16px; }
  .hp-product-grid, .hp-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hp-card-title { font-size: 12px; min-height: 32px; }
  .hp-card-price { font-size: 13px; }
  .hp-brand-grid, .hp-brand-grid--directory { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hp-brand-card { min-height: 122px; padding: 18px 12px 16px; gap: 8px; }
  .hp-brand-card--lg { min-height: 150px; padding: 20px 12px 18px; gap: 9px; }
  .hp-brand-card__media { height: 40px; }
  .hp-brand-card__media img { max-height: 34px; max-width: 82%; }
  .hp-brand-card--lg .hp-brand-card__media { height: 48px; }
  .hp-brand-card--lg .hp-brand-card__media img { max-height: 42px; }
  .hp-brand-card__fallback { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
  .hp-brand-card--lg .hp-brand-card__fallback { width: 50px; height: 50px; border-radius: 14px; font-size: 22px; }
  .hp-brand-card__name, .hp-brand-card--lg .hp-brand-card__name { font-size: 13px; }
  .hp-brand-card__meta { font-size: 11px; }
  .hp-brand-card__arrow { display: none; }
  .hp-brand-band { padding: 30px 0 54px; }
  .hp-brand-band h1 { font-size: 27px; }
  .hp-brand-band__sub { font-size: 13px; }
  .hp-brand-band .hp-breadcrumb { margin-bottom: 16px; }
  .hp-brand-stats { gap: 8px; margin-top: 20px; }
  .hp-brand-stats li { padding: 7px 12px; }
  .hp-brand-stats strong { font-size: 15px; }
  .hp-brand-stats li.hp-brand-stats__trust { display: none; }
  .hp-brand-tools { margin: -26px 0 22px; padding: 12px; border-radius: var(--hp-radius); }
  .hp-brand-alpha button { min-width: 24px; height: 26px; padding: 0 5px; font-size: 11px; }
  .hp-brand-cta { margin-top: 28px; padding: 20px; }
  .hp-brand-cta__copy h2 { font-size: 17px; }
  .hp-brand-cta__btn { width: 100%; justify-content: center; }
  .hp-page-banner { padding: 30px 0; }
  .hp-page-banner h1 { font-size: 25px; }
  .hp-toolbar { font-size: 11px; }
  .hp-footer { padding-top: 34px; }
  .hp-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .hp-legal p { font-size: 10px; }
  .hp-age-body { padding: 22px 20px 18px; }
  .hp-age-title { font-size: 22px; }
}

/* ---------- WooCommerce additions ---------- */
.hp-toolbar .woocommerce-result-count { margin: 0; }
.hp-toolbar .woocommerce-ordering { margin: 0; }
.hp-toolbar .woocommerce-ordering select { border: 1px solid var(--hp-line-strong); border-radius: var(--hp-radius-sm); padding: 7px 10px; font-size: var(--hp-fs-sm); background: var(--hp-surface); color: var(--hp-ink); }

/* ---------- Collection filter bar (Availability / Price / Options) ---------- */
.hp-collection-bar { margin: 24px 0 22px; font-size: var(--hp-fs-sm); }
.hp-collection-bar__count { color: var(--hp-gray); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.hp-collection-bar__controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hp-collection-bar__filters, .hp-collection-bar__sort { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-collection-bar__filter-label, .hp-collection-bar__sort-label { color: var(--hp-ink); font-size: 13px; font-weight: 600; }
.hp-collection-bar__clear { color: var(--hp-blue); font-size: 12px; font-weight: 600; text-decoration: none; margin-left: 4px; }
.hp-collection-bar__clear:hover { text-decoration: underline; }
.hp-collection-field { display: inline-flex; }
.hp-collection-field__control { position: relative; display: inline-flex; align-items: center; }
.hp-collection-field__control select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 108px;
  height: 34px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--hp-line-strong);
  border-radius: var(--hp-radius-sm);
  background: var(--hp-surface);
  color: var(--hp-ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--hp-t-fast), box-shadow var(--hp-t-fast);
}
.hp-collection-field__control select:hover { border-color: var(--hp-blue); }
.hp-collection-field__control select:focus { outline: none; border-color: var(--hp-blue); box-shadow: 0 0 0 3px rgba(27, 111, 154, .12); }
.hp-collection-field__control svg { position: absolute; right: 10px; color: var(--hp-muted); pointer-events: none; }
@media (max-width: 600px) {
  .hp-collection-bar__controls { align-items: flex-start; }
  .hp-collection-field__control select { min-width: 92px; height: 32px; }
}
.hp-pagination .woocommerce-pagination { display: flex; gap: var(--hp-sp-2); align-items: center; }
.hp-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 var(--hp-sp-2); border: 1px solid var(--hp-line); border-radius: var(--hp-radius-sm); }
.hp-pagination .page-numbers.current { background: var(--hp-blue); color: #fff; border-color: var(--hp-blue); }
.hp-single-product { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.hp-single-image img { width: 100%; max-width: 560px; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); }
.hp-single-product .quantity input { width: 70px; padding: 8px; border: 1px solid var(--hp-line-strong); border-radius: var(--hp-radius-sm); }
.hp-single-product .button, .woocommerce button.button.alt { background: var(--hp-blue); color: #fff; border: 0; border-radius: var(--hp-radius-sm); padding: 12px 24px; font-size: var(--hp-fs-base); font-weight: 600; transition: background var(--hp-t-fast), transform var(--hp-t-fast); }
.hp-single-product .button:hover, .woocommerce button.button.alt:hover { background: var(--hp-blue-dark); color: #fff; }
.hp-single-product .button:active, .woocommerce button.button.alt:active { transform: translateY(1px); }
.hp-widget { margin-bottom: 28px; }
.hp-widget-title { font-size: 15px; margin-bottom: 10px; }
@media (max-width: 860px) {
  .hp-single-product { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Single product page ---------- */
.hp-product-single { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; padding: 12px 0 36px; }
.hp-product-main-image { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); min-height: 460px; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.hp-product-main-image img { width: 100%; max-height: 520px; object-fit: contain; }
.hp-product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hp-gallery-thumb { width: 78px; height: 78px; object-fit: contain; border: 1px solid var(--hp-line); border-radius: 6px; padding: 4px; background: #fff; cursor: pointer; display: grid; place-items: center; transition: border-color .2s ease; }
.hp-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; border: 0; }
.hp-gallery-thumb:hover, .hp-gallery-thumb.is-active { border-color: var(--hp-blue); }
.hp-product-title { font-size: 30px; line-height: 1.25; font-weight: 600; margin-bottom: 12px; }
.hp-product-price { font-size: 22px; font-weight: 700; color: var(--hp-dark); margin-bottom: 18px; }
.hp-product-price del { color: var(--hp-muted); font-weight: 400; font-size: 16px; margin-right: 8px; }
.hp-product-price ins { text-decoration: none; }
.hp-product-short { margin-bottom: 22px; }
.hp-product-info form.cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hp-product-info .quantity { display: inline-flex; border: 1px solid var(--hp-line); border-radius: 5px; overflow: hidden; }
.hp-product-info .quantity input { width: 60px; border: 0; padding: 11px 8px; text-align: center; }
.hp-product-info .button { background: var(--hp-blue); color: #fff; border: 1px solid var(--hp-blue); border-radius: 5px; padding: 12px 28px; font-size: 14px; font-weight: 600; }
.hp-product-info .button:hover { background: var(--hp-blue-dark); color: #fff; }
.hp-product-info .variations { width: 100%; margin-bottom: 14px; }
.hp-product-info .variations td { padding: 5px 10px 5px 0; font-size: 13px; }
.hp-product-info .variations select { border: 1px solid var(--hp-line); border-radius: 5px; padding: 8px 10px; min-width: 180px; background: #fff; }
.hp-product-meta { border-top: 1px solid var(--hp-line); padding-top: 18px; font-size: 13px; line-height: 2; }
.hp-product-meta span { color: var(--hp-muted); display: inline-block; min-width: 88px; }

/* Stock availability badge (simple + variable products, theme & builder templates) */
.hp-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 13px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-pill, 999px);
  background: var(--hp-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hp-gray);
}
.hp-stock__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
}
.hp-stock--in { color: var(--hp-success); background: #eaf6f0; border-color: #cde9dc; }
.hp-stock--low { color: var(--hp-warning); background: #fdf5e6; border-color: #f0dfb8; }
.hp-stock--low .hp-stock__dot { animation: hp-stock-pulse 1.8s ease-in-out infinite; }
.hp-stock--out { color: var(--hp-danger); background: #fdecea; border-color: #f4d2cd; }
.hp-stock--select { color: var(--hp-muted); background: var(--hp-soft); border-color: var(--hp-line); }
@keyframes hp-stock-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .hp-stock--low .hp-stock__dot { animation: none; } }
.hp-product-benefits { background: var(--hp-soft); border-radius: 8px; padding: 16px 20px; margin-top: 22px; font-size: 12px; line-height: 2; color: var(--hp-gray); }
.hp-product-tabs { margin: 30px 0 10px; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); overflow: hidden; }
.hp-product-tabs details + details { border-top: 1px solid var(--hp-line); }
.hp-product-tabs summary { cursor: pointer; padding: 15px 20px; font-size: 14px; font-weight: 600; color: var(--hp-dark); list-style: none; background: #fff; }
.hp-product-tabs summary::-webkit-details-marker { display: none; }
.hp-product-tabs summary::after { content: '+'; float: right; font-size: 18px; font-weight: 400; }
.hp-product-tabs details[open] summary::after { content: '\2212'; }
.hp-product-tabs .hp-prose { padding: 4px 20px 20px; }
@media (max-width: 860px) {
  .hp-product-single { grid-template-columns: 1fr; gap: 26px; }
  .hp-product-main-image { min-height: 320px; }
  .hp-product-title { font-size: 25px; }
}

/* ---------- Cart & Checkout (classic + blocks) ---------- */
.hp-entry .woocommerce { max-width: 100%; }
.hp-entry table.cart,
.hp-entry .woocommerce-cart-form table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 13px; }
.hp-entry table.cart th,
.hp-entry table.cart td,
.hp-entry .woocommerce-cart-form th,
.hp-entry .woocommerce-cart-form td { padding: 12px 10px; border-bottom: 1px solid var(--hp-line); text-align: left; }
.hp-entry table.cart img { width: 64px; height: 64px; object-fit: contain; }
.hp-entry .cart_totals { max-width: 520px; margin-left: auto; }
.hp-entry .cart_totals h2 { font-size: 20px; margin-bottom: 14px; }
.hp-entry .checkout .form-row,
.hp-entry form.checkout .form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.hp-entry form.checkout input[type="text"],
.hp-entry form.checkout input[type="email"],
.hp-entry form.checkout input[type="tel"],
.hp-entry form.checkout textarea,
.hp-entry form.checkout select,
.hp-entry .woocommerce-cart-form input[type="number"] {
  border: 1px solid var(--hp-line-strong); border-radius: var(--hp-radius-sm); padding: 11px 12px; background: var(--hp-surface); color: var(--hp-ink); width: 100%; transition: border-color var(--hp-t-fast), box-shadow var(--hp-t-fast);
}
.hp-entry form.checkout input:focus,
.hp-entry form.checkout textarea:focus,
.hp-entry form.checkout select:focus,
.hp-entry .woocommerce-cart-form input[type="number"]:focus { outline: none; border-color: var(--hp-blue); box-shadow: 0 0 0 3px rgba(27,111,154,.12); }
.hp-entry .woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hp-entry .woocommerce-checkout-review-order-table th,
.hp-entry .woocommerce-checkout-review-order-table td { padding: 10px; border-bottom: 1px solid var(--hp-line); }
.hp-entry .woocommerce-info,
.hp-entry .woocommerce-message,
.hp-entry .woocommerce-error { padding: 12px 16px; border-radius: 5px; margin-bottom: 16px; font-size: 13px; }
.hp-entry .woocommerce-info { background: var(--hp-blue-050); color: var(--hp-blue-700); border-left: 3px solid var(--hp-info); }
.hp-entry .woocommerce-message { background: #eaf6ef; color: var(--hp-success); border-left: 3px solid var(--hp-success); }
.hp-entry .woocommerce-error { background: #fdecea; color: var(--hp-danger); border-left: 3px solid var(--hp-danger); }
/* WooCommerce Blocks checkout/cart */
.hp-entry .wc-block-cart,
.hp-entry .wc-block-checkout { max-width: 100%; }
.hp-entry .wc-block-components-totals-wrapper { border-color: var(--hp-line); }
@media (max-width: 600px) {
  .hp-entry .cart_totals { margin-left: 0; }
  .hp-entry table.cart th,
  .hp-entry table.cart td { padding: 8px 5px; }
}


/* ---------- My Account — tabbed login / register card ---------- */
body.hp-account {
  --hp-acct-accent: #c8451a;
  --hp-acct-accent-dark: #a83812;
  --hp-acct-field: #eef2ff;
  --hp-acct-field-line: #b8c6e8;
  --hp-acct-ink: #111827;
  --hp-acct-label: #6b7280;
}
body.hp-account .hp-entry { padding-top: 40px; }

/* Card shell */
body.hp-account-guest .hp-entry > .woocommerce {
  max-width: 580px; margin: 0 auto; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(17, 24, 39, .07); overflow: hidden;
}
body.hp-account-guest .woocommerce-notices-wrapper:empty { display: none; }
body.hp-account-guest .woocommerce-notices-wrapper { padding: 0 40px; }
body.hp-account-guest .woocommerce-notices-wrapper > *:first-child { margin-top: 20px; }
body.hp-account-guest .hp-entry .woocommerce-error,
body.hp-account-guest .hp-entry .woocommerce-info,
body.hp-account-guest .hp-entry .woocommerce-message { border-radius: 8px; font-size: 13px; }

/* Login / Register switch */
.hp-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e5e7eb; }
.hp-auth-tab {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  padding: 19px 10px; background: #f4f5f7; color: #4b5563;
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}
.hp-auth-tab:hover { background: #eceef1; }
.hp-auth-tab.is-active { background: #111318; color: #fff; }
.hp-auth-tab.is-active:hover { background: #111318; }
.hp-auth-tab:focus-visible { outline: 2px solid var(--hp-acct-accent); outline-offset: -3px; }

/* Panels */
body.hp-account-guest #customer_login { display: block; float: none; width: auto; max-width: none; margin: 0; }
body.hp-account-guest #customer_login [hidden] { display: none !important; }
body.hp-account-guest #customer_login .u-column1,
body.hp-account-guest #customer_login .u-column2 {
  float: none; width: auto; margin: 0; padding: 40px 40px 44px;
  border: 0; background: transparent; box-shadow: none;
}
/* The tab labels replace the WooCommerce headings visually, but they stay in the DOM for screen readers. */
body.hp-account-guest #customer_login h2,
body.hp-account-guest .hp-auth-intro {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Form fields */
body.hp-account-guest #customer_login form.woocommerce-form {
  margin: 0; padding: 0; border: 0; background: transparent;
}
body.hp-account .hp-entry form .form-row { margin-bottom: 22px; }
body.hp-account .hp-entry form .form-row > label:not(.woocommerce-form__label-for-checkbox) {
  display: block; margin: 0 0 9px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--hp-acct-label);
}
body.hp-account .hp-entry form input[type="text"],
body.hp-account .hp-entry form input[type="email"],
body.hp-account .hp-entry form input[type="password"],
body.hp-account .hp-entry form input[type="tel"],
body.hp-account .hp-entry form textarea,
body.hp-account .hp-entry form select {
  width: 100%; max-width: 100%; box-sizing: border-box; margin: 0;
  height: 50px; padding: 13px 16px;
  background: var(--hp-acct-field); border: 1px solid var(--hp-acct-field-line);
  border-radius: 10px; color: var(--hp-acct-ink); font-size: 14px; line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease;
}
body.hp-account .hp-entry form input:focus,
body.hp-account .hp-entry form textarea:focus,
body.hp-account .hp-entry form select:focus {
  outline: none; border-color: #8fa8dc; box-shadow: 0 0 0 3px rgba(143, 168, 220, .25);
}
body.hp-account .hp-entry form input::placeholder { color: #9aa3b2; }
body.hp-account .hp-entry .required { color: #ef4444; }

/* Registration — first / last name side by side */
.hp-register-names {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
body.hp-account-guest #customer_login .hp-register-names .form-row,
body.hp-account-guest #customer_login .hp-register-names .form-row-first,
body.hp-account-guest #customer_login .hp-register-names .form-row-last {
  width: 100%; float: none; margin: 0 0 22px; padding: 0; clear: none;
}
@media (max-width: 600px) {
  .hp-register-names { grid-template-columns: 1fr; gap: 0; }
}

/* Password field — theme-owned eye toggle (independent of WooCommerce JS) */
body.hp-account .password-input,
body.hp-account .hp-password-field { position: relative; display: block; }
body.hp-account .password-input input,
body.hp-account .hp-password-field input { padding-right: 52px !important; }
/* Hide WooCommerce's native toggle so our SVG eye is the only control. */
body.hp-account .show-password-input { display: none !important; }
.hp-eye-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; background: transparent; padding: 0; cursor: pointer;
  color: #8b93a1; border-radius: 6px;
  transition: color .18s ease, background .18s ease;
}
.hp-eye-toggle:hover { color: var(--hp-dark); background: rgba(17, 19, 24, .05); }
.hp-eye-toggle svg { width: 20px; height: 20px; display: block; }
.hp-eye-toggle:focus-visible { outline: 2px solid var(--hp-dark); outline-offset: 1px; }

/* Remember me / lost password */
body.hp-account-guest .woocommerce-form-login__rememberme {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 28px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--hp-acct-label); cursor: pointer;
}
body.hp-account-guest .woocommerce-form-login__rememberme input {
  width: 17px; height: 17px; margin: 0; accent-color: var(--hp-acct-accent); cursor: pointer;
}
body.hp-account-guest .lost_password { margin: 22px 0 0; font-size: 12px; text-align: left; }
body.hp-account-guest .lost_password a { color: var(--hp-acct-accent); text-decoration: none; }
body.hp-account-guest .lost_password a:hover { text-decoration: underline; }

/* Privacy notice on the register form */
body.hp-account-guest .woocommerce-privacy-policy-text {
  background: #f9fafb; border-radius: 8px; padding: 12px 14px; margin: 0 0 20px;
}
body.hp-account-guest .woocommerce-privacy-policy-text p {
  margin: 0; font-size: 11px; line-height: 1.7; color: var(--hp-acct-label);
}
body.hp-account-guest .woocommerce-privacy-policy-link { color: var(--hp-acct-accent); }

/* Primary button — pill shaped, black */
body.hp-account-guest .hp-entry form button[type="submit"] {
  width: 100%; margin: 0; padding: 16px 20px; height: 55px;
  background: #111318; color: #fff; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .18s ease, transform .1s ease;
}
body.hp-account-guest .hp-entry form button[type="submit"]:hover { background: #000; }
body.hp-account-guest .hp-entry form button[type="submit"]:active { transform: translateY(1px); }

/* Lost-password / reset-password — single focused card */
body.hp-account-lostpw .hp-entry { padding-top: 44px; padding-bottom: 80px; }
/* Drop the generic guest card so the reset panel is the only surface on screen. */
body.hp-account-lostpw .hp-entry > .woocommerce {
  max-width: 520px; margin: 0 auto; background: transparent;
  border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}
body.hp-account-lostpw .woocommerce-notices-wrapper { padding: 0; }
body.hp-account-lostpw .hp-entry .woocommerce-info,
body.hp-account-lostpw .hp-entry .woocommerce-message,
body.hp-account-lostpw .hp-entry .woocommerce-error {
  margin: 0 0 18px; border-radius: 12px; font-size: 13px; line-height: 1.65;
}

.hp-reset {
  max-width: 520px; margin: 0 auto; box-sizing: border-box;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 18px;
  box-shadow: 0 20px 55px rgba(17, 24, 39, .08);
  padding: 46px 44px 30px; text-align: center;
}
.hp-reset__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin: 0 auto 20px;
  border-radius: 50%; background: #fdf1ec; color: var(--hp-acct-accent, #c8451a);
}
.hp-reset__icon svg { width: 27px; height: 27px; display: block; }
.hp-reset__title {
  margin: 0 0 10px; font-size: 26px; line-height: 1.25;
  color: var(--hp-acct-ink, #111827); letter-spacing: -.01em;
}
.hp-reset__intro {
  margin: 0 auto 30px; max-width: 410px;
  font-size: 13.5px; line-height: 1.7; color: var(--hp-acct-label, #6b7280);
}
.hp-reset__form { text-align: left; }
/* WooCommerce floats these two by default; stack them instead. */
.hp-reset__form .form-row-first,
.hp-reset__form .form-row-last {
  width: 100%; float: none; clear: both; margin-left: 0; margin-right: 0;
}
.hp-reset__form .form-row { margin-bottom: 18px; }
.hp-reset__submit { margin: 4px 0 0; }
.hp-reset__submit button[type="submit"] { width: 100%; }
.hp-reset__foot {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid #eef0f3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hp-reset__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--hp-acct-ink, #111827);
  text-decoration: none; transition: color .18s ease;
}
.hp-reset__back:hover { color: var(--hp-acct-accent, #c8451a); }
.hp-reset__back svg { flex: 0 0 auto; }
.hp-reset__help { margin: 0; font-size: 12px; line-height: 1.6; color: #8b93a1; }
.hp-reset__help a { color: var(--hp-acct-accent, #c8451a); text-decoration: none; }
.hp-reset__help a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  body.hp-account-lostpw .hp-entry { padding-top: 26px; padding-bottom: 56px; }
  .hp-reset { padding: 32px 22px 24px; border-radius: 14px; }
  .hp-reset__icon { width: 50px; height: 50px; margin-bottom: 16px; }
  .hp-reset__icon svg { width: 23px; height: 23px; }
  .hp-reset__title { font-size: 22px; }
  .hp-reset__intro { font-size: 13px; margin-bottom: 24px; }
}

/* Logged-in dashboard — horizontal tab navigation + content card */
body.hp-account .woocommerce-MyAccount-navigation { float: none; width: auto; margin: 0 0 18px; border: 0; }
body.hp-account .woocommerce-MyAccount-navigation ul {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; border: 0;
}
body.hp-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; }
body.hp-account .woocommerce-MyAccount-navigation li a {
  display: block; padding: 10px 16px; border: 1px solid var(--hp-line); border-radius: 8px;
  background: #fff; color: var(--hp-dark); font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
body.hp-account .woocommerce-MyAccount-navigation li a:hover { border-color: var(--hp-blue); color: var(--hp-blue); }
body.hp-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--hp-blue); border-color: var(--hp-blue); color: #fff;
}
body.hp-account .woocommerce-MyAccount-content {
  float: none; width: auto; background: #fff; border: 1px solid var(--hp-line);
  border-radius: 14px; padding: 28px; box-shadow: 0 10px 34px rgba(33, 37, 41, .05);
}
body.hp-account .woocommerce-MyAccount-content table {
  width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0;
}
body.hp-account .woocommerce-MyAccount-content th,
body.hp-account .woocommerce-MyAccount-content td {
  padding: 11px 10px; border-bottom: 1px solid var(--hp-line); text-align: left;
}
body.hp-account:not(.hp-account-guest) .hp-entry form button[type="submit"] {
  width: auto; padding: 11px 20px; height: auto; background: var(--hp-blue);
  border-radius: 8px; font-size: 14px;
}
body.hp-account .woocommerce-MyAccount-content .woocommerce-Button { width: auto; }

@media (max-width: 600px) {
  body.hp-account-guest .hp-entry > .woocommerce { max-width: 100%; border-radius: 10px; }
  body.hp-account-guest #customer_login .u-column1,
  body.hp-account-guest #customer_login .u-column2 { padding: 28px 20px 32px; }
  body.hp-account-guest .woocommerce-notices-wrapper { padding: 0 20px; }
  body.hp-account .woocommerce-MyAccount-content { padding: 20px 16px; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  body.hp-account .hp-entry form input,
  body.hp-account .hp-entry form button[type="submit"],
  body.hp-account .hp-auth-tab,
  body.hp-account .woocommerce-MyAccount-navigation li a { transition: none; }
}

/* ==========================================================================
   Legacy indexed routes — account / blog index / promotion (v1.2.40)
   ========================================================================== */
.hp-legacy-blogs .hp-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hp-sp-5); }
.hp-blog-card { background: var(--hp-surface); border: 1px solid var(--hp-line); border-radius: var(--hp-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--hp-t-fast), transform var(--hp-t-fast); }
.hp-blog-card:hover { box-shadow: var(--hp-shadow-md); transform: translateY(-3px); }
.hp-blog-card__media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--hp-soft); overflow: hidden; }
.hp-blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hp-blog-card__ph { font-size: var(--hp-fs-3xl); font-weight: 700; color: var(--hp-faint); }
.hp-blog-card__body { padding: var(--hp-sp-4); display: flex; flex-direction: column; flex: 1; }
.hp-blog-card__body time { font-size: var(--hp-fs-xs); color: var(--hp-muted); }
.hp-blog-card__body h2 { font-size: var(--hp-fs-md); line-height: 1.4; margin: var(--hp-sp-2) 0; }
.hp-blog-card__body h2 a { color: var(--hp-ink); }
.hp-blog-card__body h2 a:hover { color: var(--hp-blue); }
.hp-blog-card__body p { font-size: var(--hp-fs-sm); color: var(--hp-gray); margin: 0; }
.hp-promo-code { display: inline-block; margin: var(--hp-sp-4) 0; padding: var(--hp-sp-3) var(--hp-sp-4); background: var(--hp-blue-050); border: 1px dashed var(--hp-blue); border-radius: var(--hp-radius-sm); font-size: var(--hp-fs-sm); color: var(--hp-blue-dark); }
.hp-legacy-account form { max-width: 520px; }
@media (max-width: 900px) {
  .hp-legacy-blogs .hp-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hp-legacy-blogs .hp-blog-grid { grid-template-columns: 1fr; }
}
