/*!
 * NexGen HF Builder — Front-end CSS
 * Covers: sticky header, overlap/transparent mode, mobile nav, search overlay,
 *         mini-cart dropdown, nav menu styles, all HF widget styles.
 */

/* ─── CSS Variables ───────────────────────────────────────────────────────── */
:root {
  --nexgen-header-h:          80px;
  --nexgen-header-h-sticky:   64px;
  --nexgen-header-bg:         #ffffff;
  --nexgen-header-shadow:     0 2px 20px rgba(0,0,0,.08);
  --nexgen-header-transition: background .3s ease, box-shadow .3s ease, height .3s ease, transform .3s ease;
  --nexgen-mobile-nav-w:      320px;
  --nexgen-dropdown-radius:   8px;
  --nexgen-dropdown-shadow:   0 8px 40px rgba(0,0,0,.14);
  --nexgen-overlay-z:         9800;
  --nexgen-mini-cart-w:       360px;
}

/* =========================================================================
   HEADER WRAPPER
   ========================================================================= */
.nexgen-header,
.nexgen-hf-header {
  position: relative;
  width: 100%;
  z-index: 900;
  background: var(--nexgen-header-bg, #fff);
  transition: var(--nexgen-header-transition);
}

/* =========================================================================
   STICKY HEADER
   ========================================================================= */
.nexgen-header-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 950;
  box-shadow: var(--nexgen-header-shadow);
  animation: nexgen-sticky-in .25s ease;
}

@keyframes nexgen-sticky-in {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* Scroll-up sticky — hidden until scrolling up */
.nexgen-sticky-header.nexgen-sticky-scroll-up:not(.nexgen-header-sticky) {
  transform: translateY(-100%);
}

/* Spacer inserted after the header to reserve height */
.nexgen-header-spacer { display: block; }

/* Shrink on scroll (height transition) */
.nexgen-header-sticky .nexgen-hf-logo img { transition: height .3s ease; }

/* =========================================================================
   HEADER OVERLAP (transparent / hero-overlap mode)
   ========================================================================= */
.nexgen-header-overlap {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nexgen-header-overlap-color, #fff);
}

/* Logo swapping: show dark (scrolled) logo only when sticky/scrolled */
.nexgen-logo-dark { display: none; }
.nexgen-header-scrolled .nexgen-logo-dark,
.nexgen-header-sticky   .nexgen-logo-dark { display: block; }
.nexgen-header-scrolled .nexgen-logo-light,
.nexgen-header-sticky   .nexgen-logo-light { display: none; }

/* Text/icon color of overlap header links */
.nexgen-header-overlap .nexgen-hf-nav > ul > li > a,
.nexgen-header-overlap .nexgen-hf-search-btn,
.nexgen-header-overlap .nexgen-hf-cart-btn,
.nexgen-header-overlap .nexgen-hamburger span {
  color: var(--nexgen-header-overlap-color, #fff);
}
.nexgen-header-overlap .nexgen-hf-search-btn svg,
.nexgen-header-overlap .nexgen-hf-cart-btn svg {
  stroke: var(--nexgen-header-overlap-color, #fff);
}
.nexgen-header-overlap .nexgen-hamburger span {
  background: var(--nexgen-header-overlap-color, #fff);
}

/* After scrolling, restore normal colors */
.nexgen-header-scrolled.nexgen-header-overlap,
.nexgen-header-sticky.nexgen-header-overlap {
  background: var(--nexgen-header-bg-scrolled, #fff) !important;
  box-shadow: var(--nexgen-header-shadow) !important;
  color: inherit;
}

/* =========================================================================
   SITE LOGO
   ========================================================================= */
.nexgen-hf-logo { display: inline-flex; align-items: center; }
.nexgen-logo-link { display: inline-block; line-height: 0; }
.nexgen-hf-logo img { display: block; max-height: 56px; width: auto; transition: opacity .2s, max-height .3s; }
.nexgen-logo-text { font-size: 22px; font-weight: 700; color: inherit; white-space: nowrap; }

/* =========================================================================
   NAV MENU
   ========================================================================= */
.nexgen-hf-nav { display: flex; align-items: center; }

.nexgen-hf-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nexgen-hf-nav-list li { position: relative; }

.nexgen-hf-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.nexgen-hf-nav-list > li > a:hover,
.nexgen-hf-nav-list > li.current-menu-item > a,
.nexgen-hf-nav-list > li.current-menu-ancestor > a { color: var(--nexgen-primary, #4f46e5); }

/* Dropdown indicator arrows */
.nexgen-hf-indicator--arrow .menu-item-has-children > a::after  { content: '▾'; font-size: 10px; margin-left: 3px; opacity: .7; }
.nexgen-hf-indicator--chevron .menu-item-has-children > a::after { content: '›'; font-size: 16px; margin-left: 3px; transform: rotate(90deg); display: inline-block; }
.nexgen-hf-indicator--plus .menu-item-has-children > a::after   { content: '+'; margin-left: 3px; }
.nexgen-hf-indicator--none .menu-item-has-children > a::after   { display: none; }

/* ── Dropdowns ─────────────────────────────────────────────────────────── */
.nexgen-hf-nav-list .sub-menu,
.nexgen-hf-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--nexgen-dropdown-radius);
  box-shadow: var(--nexgen-dropdown-shadow);
  border: 1px solid var(--nexgen-border, #e5e7eb);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 500;
}

.nexgen-hf-nav-list .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

/* Open on hover */
.nexgen-hf-item-hover > .sub-menu,
.nexgen-hf-item-hover > .nexgen-hf-dropdown,
.nexgen-hf-nav-list li:focus-within > .sub-menu,
.nexgen-hf-nav-list li:focus-within > .nexgen-hf-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nexgen-hf-nav-list .sub-menu a {
  display: block;
  padding: 9px 20px;
  color: var(--nexgen-heading, #111827);
  text-decoration: none;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.nexgen-hf-nav-list .sub-menu a:hover { background: var(--nexgen-bg-alt, #f3f4f6); color: var(--nexgen-primary, #4f46e5); }

/* ── Full-width mega menu ─────────────────────────────────────────────── */
.nexgen-hf-dropdown-style--full-width .nexgen-hf-dropdown {
  position: fixed;
  left: 0;
  right: 0;
  width: 100vw;
  border-radius: 0;
  padding: 24px 0;
}

/* ── Flyout side panel ────────────────────────────────────────────────── */
.nexgen-hf-dropdown-style--flyout .sub-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 300px;
  border-radius: 0;
  padding-top: 80px;
  transform: translateX(100%);
  box-shadow: -4px 0 32px rgba(0,0,0,.15);
  transition: transform .3s ease, opacity .3s, visibility .3s;
  overflow-y: auto;
}
.nexgen-hf-dropdown-style--flyout .nexgen-hf-item-hover > .sub-menu {
  transform: translateX(0);
}

/* ── Vertical nav ─────────────────────────────────────────────────────── */
.nexgen-hf-nav--vertical .nexgen-hf-nav-list { flex-direction: column; align-items: stretch; }
.nexgen-hf-nav--vertical .nexgen-hf-nav-list > li > a { padding: 10px 20px; }
.nexgen-hf-nav--vertical .sub-menu { left: 100%; top: 0; }

/* =========================================================================
   MOBILE MENU TOGGLE (hamburger)
   ========================================================================= */
.nexgen-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.nexgen-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

/* Animated X state */
.nexgen-hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nexgen-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nexgen-hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Responsive visibility */
.nexgen-hf-show-mobile        { display: none; }
.nexgen-hf-show-tablet-mobile { display: none; }
.nexgen-hf-show-always        { display: flex; }

@media (max-width: 768px) {
  .nexgen-hf-show-mobile        { display: flex; }
  .nexgen-hf-show-tablet-mobile { display: flex; }
  .nexgen-hamburger             { display: flex; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .nexgen-hf-show-tablet-mobile { display: flex; }
}

/* =========================================================================
   MOBILE NAV DRAWER
   ========================================================================= */
#nexgen-mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: var(--nexgen-mobile-nav-w, 320px);
  max-width: calc(100vw - 48px);
  height: 100%;
  background: #fff;
  z-index: 9900;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 4px 0 32px rgba(0,0,0,.15);
  transition: left .3s ease;
  padding: 24px 0;
}
#nexgen-mobile-nav.open { left: 0; }

.nexgen-mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 4px;
}

#nexgen-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
#nexgen-mobile-nav a {
  display: block;
  padding: 12px 24px;
  color: var(--nexgen-heading, #111827);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--nexgen-border, #f3f4f6);
  transition: background .15s;
}
#nexgen-mobile-nav a:hover { background: var(--nexgen-bg-alt, #f3f4f6); }
#nexgen-mobile-nav .sub-menu a { padding-left: 40px; font-weight: 400; font-size: 14px; }
#nexgen-mobile-nav .sub-menu .sub-menu a { padding-left: 56px; }
#nexgen-mobile-nav .sub-menu { display: none; }
#nexgen-mobile-nav li.nexgen-sub-open > .sub-menu { display: block; }

/* Sub-menu toggle button */
.nexgen-sub-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.nexgen-sub-toggle span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
  margin-top: -4px;
}
.nexgen-sub-open > .nexgen-sub-toggle span { transform: rotate(-135deg); margin-top: 4px; }

/* Mobile nav overlay backdrop */
.nexgen-mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9850;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nexgen-mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Body locked when nav is open */
body.nexgen-mobile-nav-open { overflow: hidden; }

/* =========================================================================
   SEARCH
   ========================================================================= */
/* Search icon button */
.nexgen-hf-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: inherit;
  transition: color .2s, transform .2s;
}
.nexgen-hf-search-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.nexgen-hf-search-btn:hover { color: var(--nexgen-primary, #4f46e5); transform: scale(1.1); }

/* Inline search form */
.nexgen-hf-search-inline {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--nexgen-border, #e5e7eb);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color .2s;
}
.nexgen-hf-search-inline:focus-within { border-color: var(--nexgen-primary, #4f46e5); }
.nexgen-hf-search-inline .nexgen-search-input {
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 14px;
  background: transparent;
  flex: 1;
  min-width: 0;
}
.nexgen-hf-search-submit {
  background: none;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: inherit;
}
.nexgen-hf-search-submit svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* Dropdown form */
.nexgen-hf-search-dropdown-form {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--nexgen-dropdown-shadow);
  border: 1px solid var(--nexgen-border, #e5e7eb);
  padding: 12px;
  display: none;
  z-index: 500;
}
.nexgen-hf-search-wrap { position: relative; }
.nexgen-hf-search-wrap.nexgen-search-open .nexgen-hf-search-dropdown-form { display: block; animation: nexgen-fade-drop .2s ease; }
@keyframes nexgen-fade-drop { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

/* Full-screen search overlay */
#nexgen-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: var(--nexgen-overlay-z, 9800);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
#nexgen-search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.nexgen-search-overlay-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
}
.nexgen-search-overlay-close:hover { opacity: 1; }

.nexgen-search-overlay-form {
  width: 100%;
  max-width: 680px;
  position: relative;
}
.nexgen-search-overlay-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: clamp(24px, 4vw, 48px);
  padding: 16px 0;
  outline: none;
  caret-color: var(--nexgen-primary, #4f46e5);
  transition: border-color .2s;
}
.nexgen-search-overlay-input::placeholder { color: rgba(255,255,255,.4); }
.nexgen-search-overlay-input:focus { border-bottom-color: #fff; }

/* Results inside overlay */
#nexgen-search-overlay .nexgen-search-results {
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  margin-top: 8px;
  color: #fff;
}
#nexgen-search-overlay .nexgen-search-result-item a { color: #fff; }
#nexgen-search-overlay .nexgen-search-result-item a:hover { background: rgba(255,255,255,.08); }
#nexgen-search-overlay .nexgen-sr-meta,
#nexgen-search-overlay .nexgen-search-view-all { color: rgba(255,255,255,.6); }

/* =========================================================================
   CART / MINI-CART
   ========================================================================= */
.nexgen-hf-cart { position: relative; display: inline-flex; align-items: center; }

.nexgen-hf-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.nexgen-hf-cart-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.nexgen-hf-cart-btn:hover { color: var(--nexgen-primary, #4f46e5); }

.nexgen-hf-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.nexgen-hf-cart-subtotal { font-size: 14px; font-weight: 600; }

/* Mini-cart dropdown */
.nexgen-hf-mini-cart {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: var(--nexgen-mini-cart-w, 360px);
  background: #fff;
  border-radius: var(--nexgen-dropdown-radius);
  box-shadow: var(--nexgen-dropdown-shadow);
  border: 1px solid var(--nexgen-border, #e5e7eb);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 600;
}
.nexgen-cart-open .nexgen-hf-mini-cart {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nexgen-hf-mini-cart-inner {
  padding: 16px;
  max-height: 480px;
  overflow-y: auto;
}
/* WooCommerce mini-cart widget styles */
.nexgen-hf-mini-cart .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.nexgen-hf-mini-cart .woocommerce-mini-cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nexgen-border, #e5e7eb); }
.nexgen-hf-mini-cart .woocommerce-mini-cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.nexgen-hf-mini-cart .woocommerce-mini-cart__total { padding: 12px 0; font-weight: 700; display: flex; justify-content: space-between; }
.nexgen-hf-mini-cart .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 8px; }
.nexgen-hf-mini-cart .woocommerce-mini-cart__buttons a { display: block; text-align: center; padding: 10px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: opacity .2s; }
.nexgen-hf-mini-cart .woocommerce-mini-cart__buttons .checkout { background: var(--nexgen-primary, #4f46e5); color: #fff; }
.nexgen-hf-mini-cart .woocommerce-mini-cart__buttons .button { border: 2px solid var(--nexgen-primary, #4f46e5); color: var(--nexgen-primary, #4f46e5); }

/* =========================================================================
   SOCIAL ICONS
   ========================================================================= */
.nexgen-hf-social-icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nexgen-hf-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  transition: color .2s, transform .2s, opacity .2s;
}
.nexgen-hf-social-link:hover { color: var(--nexgen-primary, #4f46e5); transform: translateY(-2px); }
.nexgen-hf-social-link svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* =========================================================================
   CONTACT INFO
   ========================================================================= */
.nexgen-hf-contact-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nexgen-hf-contact--stack { flex-direction: column; align-items: flex-start; gap: 8px; }
.nexgen-hf-info-item { display: flex; align-items: center; gap: 8px; }
.nexgen-hf-info-icon { display: inline-flex; flex-shrink: 0; }
.nexgen-hf-info-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.nexgen-hf-info-text { font-size: 14px; color: inherit; text-decoration: none; }
a.nexgen-hf-info-text:hover { color: var(--nexgen-primary, #4f46e5); }

/* =========================================================================
   HEADER BUTTON
   ========================================================================= */
.nexgen-hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 6px;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.nexgen-hf-btn:hover { opacity: .9; transform: translateY(-1px); }

/* Sizes */
.nexgen-hf-btn--sm { font-size: 13px; padding: 6px 14px; }
.nexgen-hf-btn--md { font-size: 14px; padding: 9px 20px; }
.nexgen-hf-btn--lg { font-size: 16px; padding: 12px 28px; }

/* Styles */
.nexgen-hf-btn--filled  { background: var(--nexgen-primary, #4f46e5); color: #fff; border-color: var(--nexgen-primary, #4f46e5); }
.nexgen-hf-btn--outline { background: transparent; color: currentColor; border-color: currentColor; }
.nexgen-hf-btn--ghost   { background: transparent; color: inherit; border-color: transparent; }
.nexgen-hf-btn--ghost:hover { background: rgba(0,0,0,.06); }

/* =========================================================================
   SPACER / DIVIDER
   ========================================================================= */
.nexgen-hf-spacer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-shrink: 0;
}
.nexgen-hf-spacer-divider {
  display: block;
  width: 1px;
  height: 24px;
  background: rgba(0,0,0,.15);
}

/* =========================================================================
   ADMIN LIBRARY PAGE
   ========================================================================= */
.nexgen-hf-library-page h1 { margin-bottom: 8px; }

.nexgen-hf-lib-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0 24px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.nexgen-hf-lib-filters label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.nexgen-hf-lib-filters select,
.nexgen-hf-lib-filters input[type="search"] {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}
#nexgen-hf-filter-search { flex: 1; min-width: 200px; }

.nexgen-hf-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.nexgen-hf-lib-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.nexgen-hf-lib-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); transform: translateY(-3px); }

.nexgen-hf-lib-thumb {
  position: relative;
  aspect-ratio: 16/6;
  overflow: hidden;
  background: #f1f5f9;
}
.nexgen-hf-lib-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nexgen-hf-lib-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 48px;
  font-weight: 700;
  color: #cbd5e1;
}

.nexgen-hf-lib-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.nexgen-hf-lib-card:hover .nexgen-hf-lib-overlay { opacity: 1; }

.nexgen-hf-lib-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.nexgen-hf-lib-info { padding: 14px 16px; }
.nexgen-hf-lib-info strong { display: block; margin-bottom: 6px; font-size: 14px; }

.nexgen-hf-lib-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.nexgen-hf-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 50px;
}

/* Import modal */
.nexgen-hf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nexgen-hf-modal-inner {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.nexgen-hf-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  color: #64748b;
}
.nexgen-hf-modal-title { margin-bottom: 12px; }

/* Admin meta table */
.nexgen-hf-meta-table { width: 100%; border-collapse: collapse; }
.nexgen-hf-meta-table th { text-align: left; width: 130px; padding: 8px 12px 8px 0; font-weight: 600; font-size: 13px; vertical-align: top; white-space: nowrap; }
.nexgen-hf-meta-table td { padding: 6px 0; }
.nexgen-hf-meta-table p.description { margin: 4px 0 0; font-size: 12px; color: #718096; }

/* Layout grid */
.nexgen-hf-layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nexgen-hf-section h4 { margin-top: 0; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }

/* Badges in list table */
.nexgen-hf-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin: 1px 2px; }
.nexgen-hf-badge-include { background: #dcfce7; color: #166534; }
.nexgen-hf-badge-exclude { background: #fee2e2; color: #991b1b; }

/* Toggle switch */
.nexgen-toggle { display: inline-flex; align-items: center; cursor: pointer; }
.nexgen-toggle input { display: none; }
.nexgen-toggle-slider {
  width: 40px;
  height: 22px;
  background: #cbd5e1;
  border-radius: 50px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.nexgen-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.nexgen-toggle input:checked + .nexgen-toggle-slider { background: var(--nexgen-primary, #4f46e5); }
.nexgen-toggle input:checked + .nexgen-toggle-slider::after { left: 21px; }

/* Condition rows */
.nexgen-hf-condition-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.nexgen-hf-cond-rule  { width: 100px; }
.nexgen-hf-cond-type  { flex: 1; min-width: 180px; }
.nexgen-hf-cond-value { flex: 1; min-width: 140px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  /* Hide desktop nav, show hamburger on tablet */
  .nexgen-hf-nav { display: none; }
  .nexgen-hf-show-tablet-mobile { display: flex !important; }
  .nexgen-hamburger { display: flex !important; }

  .nexgen-hf-layout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nexgen-hf-mini-cart { width: calc(100vw - 32px); right: -16px; }
  .nexgen-hf-lib-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nexgen-hf-lib-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   TOP BAR / PRE-HEADER
   ========================================================================= */
#nexgen-topbar,
.nexgen-hf-topbar {
  position: relative;
  width: 100%;
  z-index: 901; /* above header */
  height: var(--nexgen-topbar-h, 40px);
  display: flex;
  align-items: center;
}

/* Sticky top bar: stays fixed at top */
.nexgen-topbar-sticky {
  position: sticky;
  top: 0;
  z-index: 951;
}

/* When header is sticky, push it below topbar */
.has-topbar .nexgen-header-sticky {
  top: var(--nexgen-topbar-h, 40px);
}

/* Body class: offset page for topbar height */
.has-topbar .nexgen-header-spacer {
  margin-top: var(--nexgen-topbar-h, 40px);
}

/* =========================================================================
   DEVICE VISIBILITY
   ========================================================================= */
/* Hide on desktop */
.nexgen-device-desktop .nexgen-hide-desktop { display: none !important; }

/* Hide on tablet */
.nexgen-device-tablet .nexgen-hide-tablet { display: none !important; }

/* Hide on mobile */
.nexgen-device-mobile .nexgen-hide-mobile { display: none !important; }

/* JS-driven fallback (window.innerWidth based classes on <body>) */
.nexgen-viewport-desktop .nexgen-hide-desktop { display: none !important; }
.nexgen-viewport-tablet  .nexgen-hide-tablet  { display: none !important; }
.nexgen-viewport-mobile  .nexgen-hide-mobile  { display: none !important; }

/* =========================================================================
   PER-ROW STICKY (Elementor section/container level)
   ========================================================================= */
/* Rows marked as sticky use CSS position:sticky */
.nexgen-row-sticky {
  position: sticky !important;
  top: var(--nexgen-sticky-row-offset, 0px);
  z-index: 800;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}

/* Sentinel element used by IntersectionObserver to detect "stuck" state */
.nexgen-sticky-sentinel {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}

/* "Stuck" state applied by JS when sentinel exits viewport */
.nexgen-row-is-sticky {
  box-shadow: var(--nexgen-header-shadow, 0 2px 20px rgba(0,0,0,.08));
}

/* Background applied on stuck */
.nexgen-row-is-sticky[data-sticky-bg] {
  background-color: var(--nexgen-row-sticky-bg) !important;
}

/* Shrink: reduce vertical padding on stuck rows */
.nexgen-row-is-sticky.nexgen-row-sticky-shrink > .elementor-container,
.nexgen-row-is-sticky.nexgen-row-sticky-shrink > .e-con-inner {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Shrink logo inside sticky rows */
.nexgen-row-is-sticky.nexgen-row-sticky-shrink .nexgen-hf-logo img {
  max-height: 36px;
}

/* =========================================================================
   PER-ROW OPACITY / TRANSPARENT MODE
   ========================================================================= */
.nexgen-row-transparent-mode {
  /* opacity controlled via --row-current-opacity CSS var, set by JS */
  background-color: rgba(0,0,0,0) !important; /* start transparent */
  transition: background-color .3s ease;
}

.nexgen-row-transparent-mode > .elementor-background-overlay,
.nexgen-row-transparent-mode > .elementor-shape {
  opacity: var(--row-current-opacity, 1);
  transition: opacity .3s ease;
}

/* Full header transparent (opacity mode) — background via CSS var */
.nexgen-header-overlap {
  /* override: use CSS var for real opacity fade */
}
.nexgen-header-overlap:not(.nexgen-header-scrolled):not(.nexgen-header-sticky) {
  background-color: rgba(0,0,0, calc(1 - var(--nexgen-header-init-opacity, 0))) !important;
}

/* =========================================================================
   MOBILE NAV PANEL (all 4 types)
   ========================================================================= */
#nexgen-mobile-panel {
  position: fixed;
  z-index: 9900;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition-property: transform, opacity, visibility;
  transition-timing-function: ease;
  /* speed set via inline --nexgen-panel-speed CSS var */
  transition-duration: var(--nexgen-panel-speed, 300ms);
  visibility: hidden;
}

/* ── Slide Left ─────────────────────────────────────────────────────────── */
#nexgen-mobile-panel.nexgen-mobile-panel--slide-left {
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--nexgen-panel-width, 320px);
  max-width: calc(100vw - 48px);
  transform: translateX(-100%);
  box-shadow: 4px 0 32px rgba(0,0,0,.15);
}
#nexgen-mobile-panel.nexgen-mobile-panel--slide-left.nexgen-panel-open {
  transform: translateX(0);
  visibility: visible;
}

/* ── Slide Right ────────────────────────────────────────────────────────── */
#nexgen-mobile-panel.nexgen-mobile-panel--slide-right {
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--nexgen-panel-width, 320px);
  max-width: calc(100vw - 48px);
  transform: translateX(100%);
  box-shadow: -4px 0 32px rgba(0,0,0,.15);
}
#nexgen-mobile-panel.nexgen-mobile-panel--slide-right.nexgen-panel-open {
  transform: translateX(0);
  visibility: visible;
}

/* ── Dropdown (top-down) ────────────────────────────────────────────────── */
#nexgen-mobile-panel.nexgen-mobile-panel--dropdown {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 90vh;
  transform: translateY(-100%);
  box-shadow: 0 4px 32px rgba(0,0,0,.15);
}
#nexgen-mobile-panel.nexgen-mobile-panel--dropdown.nexgen-panel-open {
  transform: translateY(0);
  visibility: visible;
}

/* ── Fullscreen ─────────────────────────────────────────────────────────── */
#nexgen-mobile-panel.nexgen-mobile-panel--fullscreen {
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  opacity: 0;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#nexgen-mobile-panel.nexgen-mobile-panel--fullscreen.nexgen-panel-open {
  opacity: 1;
  visibility: visible;
}
/* Fullscreen nav: larger type, center-aligned */
#nexgen-mobile-panel.nexgen-mobile-panel--fullscreen ul { width: 100%; }
#nexgen-mobile-panel.nexgen-mobile-panel--fullscreen a {
  font-size: clamp(18px, 4vw, 32px);
  padding: 14px 24px;
  text-align: center;
  border-bottom: none;
}

/* ── Panel inner padding ────────────────────────────────────────────────── */
.nexgen-mobile-panel-inner {
  padding: 24px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Panel Overlay (backdrop) ───────────────────────────────────────────── */
.nexgen-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9850;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--nexgen-panel-speed, 300ms) ease, visibility var(--nexgen-panel-speed, 300ms) ease;
}
.nexgen-panel-overlay.nexgen-panel-open {
  opacity: 1;
  visibility: visible;
}

/* Backdrop blur support */
.nexgen-panel-backdrop-blur {
  backdrop-filter: blur(var(--nexgen-panel-blur, 4px));
  -webkit-backdrop-filter: blur(var(--nexgen-panel-blur, 4px));
}

/* Body scroll lock when panel is open */
body.nexgen-panel-is-open { overflow: hidden; }

/* ── Panel Close Button ─────────────────────────────────────────────────── */
.nexgen-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 20px;
  line-height: 1;
  transition: opacity .2s, transform .2s;
  z-index: 10;
}
.nexgen-panel-close:hover { opacity: .7; transform: scale(1.1); }

/* Close button positions */
.nexgen-panel-close-inside-top-right  { position: absolute; top: 12px; right: 12px; }
.nexgen-panel-close-inside-top-left   { position: absolute; top: 12px; left: 12px; }
.nexgen-panel-close-inside-bottom-right { position: absolute; bottom: 12px; right: 12px; }
.nexgen-panel-close-inside-bottom-left  { position: absolute; bottom: 12px; left: 12px; }
.nexgen-panel-close-outside-top-right { position: fixed; top: 12px; right: 12px; z-index: 9901; }
.nexgen-panel-close-outside-top-left  { position: fixed; top: 12px; left: 12px;  z-index: 9901; }

/* Close button styles */
/* X style: SVG × rendered via ::before/after */
.nexgen-panel-close--x {
  width: 36px;
  height: 36px;
  position: relative;
}
.nexgen-panel-close--x::before,
.nexgen-panel-close--x::after {
  content: '';
  position: absolute;
  inset: 50% 10px auto;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nexgen-panel-close--x::before { transform: rotate(45deg); }
.nexgen-panel-close--x::after  { transform: rotate(-45deg); }

/* Icon style: uses dashicon font or SVG child */
.nexgen-panel-close--icon { font-size: 24px; }

/* Text style */
.nexgen-panel-close--text { font-size: 14px; font-weight: 600; letter-spacing: .02em; }

/* ── Panel menu styles ──────────────────────────────────────────────────── */
#nexgen-mobile-panel ul { list-style: none; margin: 0; padding: 0; }
#nexgen-mobile-panel a {
  display: block;
  padding: 12px 24px;
  color: var(--nexgen-heading, #111827);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--nexgen-border, #f3f4f6);
  transition: background .15s;
  position: relative;
}
#nexgen-mobile-panel a:hover { background: var(--nexgen-bg-alt, #f3f4f6); }
#nexgen-mobile-panel .sub-menu a { padding-left: 40px; font-weight: 400; font-size: 14px; }
#nexgen-mobile-panel .sub-menu .sub-menu a { padding-left: 56px; }
#nexgen-mobile-panel .sub-menu { display: none; }
#nexgen-mobile-panel li.nexgen-sub-open > .sub-menu { display: block; }

/* Sub-menu toggle arrow */
#nexgen-mobile-panel .nexgen-sub-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform .2s;
}
#nexgen-mobile-panel li.nexgen-sub-open > .nexgen-sub-toggle { transform: rotate(180deg); }

/* =========================================================================
   OPACITY TRANSITION for header overlap (JS-driven)
   ========================================================================= */
/* The header background fades from initial opacity to scrolled opacity.
   JS writes --nexgen-header-current-opacity on the header element. */
.nexgen-header-overlap {
  background-color: rgba(
    var(--nexgen-header-bg-rgb, 255,255,255),
    var(--nexgen-header-current-opacity, 0)
  ) !important;
}

/* When fully scrolled, show the bg-scrolled color */
.nexgen-header-overlap.nexgen-header-scrolled {
  background-color: var(--nexgen-header-bg-scrolled, #fff) !important;
}

/* =========================================================================
   ELEMENTOR SECTION — NEXGEN ROW TAB HELPERS
   ========================================================================= */
/* Sections marked as topbar row */
.nexgen-row-role--topbar { z-index: 901; }

/* Sections marked as main header row */
.nexgen-row-role--main { z-index: 900; }

/* Sections marked as bottom bar */
.nexgen-row-role--bottom-bar { z-index: 899; }

/* =========================================================================
   NEW HF WIDGETS — Secondary Menu, Search Form, My Account, Wishlist,
   Infobox, Language Switcher, Currency Switcher, Countdown
   ========================================================================= */

/* Secondary Menu */
.nexgen-hf-sec-nav-list { display:flex; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.nexgen-hf-sec-nav--vertical .nexgen-hf-sec-nav-list { flex-direction:column; }
.nexgen-hf-sec-nav-list li a { display:inline-block; padding:4px 10px; font-size:.875rem; color:inherit; text-decoration:none; transition:color .2s; }
.nexgen-hf-sec-nav-list li a:hover { color:var(--nexgen-primary,#2563eb); }
.nexgen-hf-sec-nav--sep .nexgen-hf-sec-nav-list li + li a { border-left:1px solid rgba(0,0,0,.15); }

/* Search Form */
.nexgen-hf-search-form { position:relative; }
.nexgen-hf-sf-wrap { display:flex; align-items:stretch; }
.nexgen-hf-sf-input { flex:1; padding:8px 14px; border:1px solid var(--nexgen-border,#e5e7eb); border-right:none; border-radius:6px 0 0 6px; background:#fff; font-size:.9375rem; outline:none; transition:border-color .2s; }
.nexgen-hf-sf-input:focus { border-color:var(--nexgen-primary,#2563eb); }
.nexgen-hf-sf-btn { padding:8px 16px; border-radius:0 6px 6px 0; font-size:.875rem; white-space:nowrap; }
.nexgen-hf-search-form .nexgen-search-results { position:absolute; top:100%; left:0; right:0; background:#fff; border:1px solid var(--nexgen-border,#e5e7eb); border-top:none; border-radius:0 0 6px 6px; max-height:320px; overflow-y:auto; z-index:9999; box-shadow:0 8px 24px rgba(0,0,0,.1); }

/* My Account */
.nexgen-hf-account { position:relative; display:inline-flex; }
.nexgen-hf-account-btn { display:flex; align-items:center; gap:6px; background:none; border:none; cursor:pointer; color:inherit; font-size:.875rem; padding:4px; border-radius:4px; transition:color .2s; }
.nexgen-hf-account-btn:hover { color:var(--nexgen-primary,#2563eb); }
.nexgen-hf-account-dropdown { position:absolute; top:calc(100% + 8px); right:0; min-width:180px; background:#fff; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:8px 0; z-index:1000; opacity:0; visibility:hidden; transform:translateY(-4px); transition:opacity .2s,visibility .2s,transform .2s; }
.nexgen-hf-account-btn[aria-expanded="true"] + .nexgen-hf-account-dropdown { opacity:1; visibility:visible; transform:translateY(0); }
.nexgen-hf-account-item { display:block; padding:8px 16px; font-size:.875rem; color:#374151; text-decoration:none; transition:background .15s,color .15s; }
.nexgen-hf-account-item:hover { background:#f3f4f6; color:var(--nexgen-primary,#2563eb); }

/* Wishlist Icon */
.nexgen-hf-wishlist { display:inline-flex; position:relative; }
.nexgen-hf-wishlist-btn { position:relative; display:flex; align-items:center; gap:4px; background:none; border:none; cursor:pointer; color:inherit; padding:4px; transition:color .2s; }
.nexgen-hf-wishlist-btn:hover { color:#ef4444; }
.nexgen-hf-wishlist-count { position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; border-radius:50%; background:#ef4444; color:#fff; font-size:10px; font-weight:700; line-height:18px; text-align:center; padding:0 4px; }

/* Infobox */
.nexgen-hf-infobox { display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; transition:color .2s; }
.nexgen-hf-infobox--stacked { flex-direction:column; text-align:center; }
.nexgen-hf-infobox-icon { flex-shrink:0; font-size:1.25rem; }
.nexgen-hf-infobox-body { display:flex; flex-direction:column; }
.nexgen-hf-infobox-title { font-weight:600; font-size:.8125rem; text-transform:uppercase; letter-spacing:.05em; opacity:.7; }
.nexgen-hf-infobox-content { font-size:.9375rem; font-weight:500; }
a.nexgen-hf-infobox:hover { color:var(--nexgen-primary,#2563eb); }

/* Language Switcher */
.nexgen-hf-lang-switcher { position:relative; display:inline-flex; align-items:center; }
.nexgen-hf-lang-current { display:flex; align-items:center; gap:6px; background:none; border:1px solid var(--nexgen-border,#e5e7eb); border-radius:4px; padding:4px 10px; cursor:pointer; font-size:.875rem; color:inherit; transition:border-color .2s; }
.nexgen-hf-lang-current:hover { border-color:var(--nexgen-primary,#2563eb); }
.nexgen-hf-lang-list { list-style:none; margin:0; padding:6px 0; position:absolute; top:calc(100% + 4px); left:0; min-width:140px; background:#fff; border-radius:6px; box-shadow:0 6px 20px rgba(0,0,0,.12); z-index:1001; opacity:0; visibility:hidden; transform:translateY(-4px); transition:opacity .2s,visibility .2s,transform .2s; }
.nexgen-hf-lang--dropdown:hover .nexgen-hf-lang-list { opacity:1; visibility:visible; transform:translateY(0); }
.nexgen-hf-lang-list--inline { position:static; box-shadow:none; opacity:1; visibility:visible; transform:none; display:flex; flex-wrap:wrap; gap:4px; background:none; border-radius:0; padding:0; }
.nexgen-hf-lang-list a { display:flex; align-items:center; gap:6px; padding:7px 14px; font-size:.875rem; color:#374151; text-decoration:none; transition:background .15s,color .15s; white-space:nowrap; }
.nexgen-hf-lang-list--inline a { padding:4px 8px; border-radius:4px; }
.nexgen-hf-lang-list a:hover { background:#f3f4f6; color:var(--nexgen-primary,#2563eb); }
.nexgen-hf-lang-active a { font-weight:600; color:var(--nexgen-primary,#2563eb); }
.nexgen-hf-lang-code { font-size:.75rem; opacity:.7; text-transform:uppercase; }

/* Currency Switcher */
.nexgen-hf-currency-switcher { position:relative; display:inline-flex; align-items:center; }
.nexgen-hf-currency-current { display:flex; align-items:center; gap:4px; background:none; border:1px solid var(--nexgen-border,#e5e7eb); border-radius:4px; padding:4px 10px; cursor:pointer; font-size:.875rem; font-weight:600; color:inherit; transition:border-color .2s; }
.nexgen-hf-currency-current:hover { border-color:var(--nexgen-primary,#2563eb); }
.nexgen-hf-currency-list { list-style:none; margin:0; padding:6px 0; position:absolute; top:calc(100% + 4px); left:0; min-width:100px; background:#fff; border-radius:6px; box-shadow:0 6px 20px rgba(0,0,0,.12); z-index:1001; opacity:0; visibility:hidden; transform:translateY(-4px); transition:opacity .2s,visibility .2s,transform .2s; }
.nexgen-hf-currency-switcher:hover .nexgen-hf-currency-list { opacity:1; visibility:visible; transform:translateY(0); }
.nexgen-hf-currency-list--inline { position:static; box-shadow:none; opacity:1; visibility:visible; transform:none; display:flex; flex-wrap:wrap; gap:4px; background:none; border-radius:0; padding:0; }
.nexgen-hf-currency-item { display:block; padding:7px 14px; font-size:.875rem; color:#374151; text-decoration:none; font-weight:600; white-space:nowrap; transition:background .15s,color .15s; }
.nexgen-hf-currency-item:hover { background:#f3f4f6; color:var(--nexgen-primary,#2563eb); }
.nexgen-hf-currency-code { font-size:.8125rem; opacity:.75; font-weight:400; }

/* Countdown */
.nexgen-hf-countdown { display:flex; align-items:center; gap:8px; }
.nexgen-hf-cd-unit { display:flex; flex-direction:column; align-items:center; min-width:36px; }
.nexgen-hf-cd-number { font-size:1.5rem; font-weight:700; line-height:1; font-variant-numeric:tabular-nums; color:var(--nexgen-primary,#2563eb); }
.nexgen-hf-cd-label { font-size:.625rem; text-transform:uppercase; letter-spacing:.06em; opacity:.65; margin-top:2px; }
.nexgen-hf-cd-sep { font-size:1.25rem; font-weight:700; opacity:.6; align-self:flex-start; margin-top:2px; }
