/* ==========================================================
   Unified Header & Footer — White B2B style, site-wide
   Scoped under .supei-hf-* prefix to avoid conflicts with
   homepage.css (dark sections) and supei-bundle.css (legacy).
   Loaded on ALL pages at priority 5.
   ========================================================== */

@font-face {
  font-family: "Inter Local";
  src: url("/wp-content/plugins/woocommerce/assets/fonts/Inter-VariableFont_slnt,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Scoped design tokens ---------- */
:root {
  --hf-primary: #1a56db;
  --hf-primary-hover: #1e40af;
  --hf-primary-light: #eff6ff;
  --hf-primary-100: #dbeafe;
  --hf-bg-white: #ffffff;
  --hf-bg-secondary: #f8fafc;
  --hf-bg-tertiary: #f1f5f9;
  --hf-bg-dark: #1e293b;
  --hf-bg-footer: #0f172a;
  --hf-text-primary: #1e293b;
  --hf-text-secondary: #475569;
  --hf-text-muted: #64748b;
  --hf-text-inverse: #ffffff;
  --hf-border: #e2e8f0;
  --hf-border-light: #f1f5f9;
  --hf-border-dark: #cbd5e1;
  --hf-drawer-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0.34) 0%, rgba(15, 23, 42, 0.68) 100%);
  --hf-drawer-surface: #ffffff;
  --hf-drawer-surface-soft: #f8fafc;
  --hf-drawer-border-soft: rgba(226, 232, 240, 0.92);
  --hf-drawer-shadow: -18px 0 40px rgba(15, 23, 42, 0.16);
  --hf-drawer-card-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  --hf-success: #047857;
  --hf-error: #dc2626;
  --hf-font-zh: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --hf-font-en: "Inter Local", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --hf-font-base: "Inter Local", "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --hf-font-quick: "Inter Local", "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  --hf-font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", "Fira Code", monospace;
  --hf-header-height: 56px;
  --hf-header-height-mobile: 48px;
  --hf-motion-composite-fast: transform 0.16s ease, opacity 0.16s ease;
  --hf-motion-composite-base: transform 0.22s ease, opacity 0.22s ease;
  --hf-radius-sm: 3px;
  --hf-radius-md: 6px;
  --hf-radius-lg: 8px;
  --hf-z-sticky: 720;
  --hf-z-overlay: 1100;
  --hf-z-drawer: 1220;
  --hf-z-toast: 1300;
  --hf-z-bottom-nav: 720;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.supei-hf-header,
.supei-hf-header *,
.supei-hf-quickbar,
.supei-hf-quickbar *,
.supei-hf-mobile-bottom-nav,
.supei-hf-mobile-bottom-nav * {
  box-sizing: border-box;
}

/* ==========================================================
   TOP BAR
   ========================================================== */
.supei-hf-topbar {
  background: var(--hf-bg-dark);
  color: #cbd5e1;
  font-size: 12px;
  height: 32px;
  max-height: 32px;
  line-height: 32px;
  font-family: var(--hf-font-base);
  overflow: clip;
  transition: opacity 0.22s ease;
}
.supei-hf-topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.supei-hf-topbar a { color: #cbd5e1; padding: 0 8px; text-decoration: none; }
.supei-hf-topbar a:hover { color: #fff; }
.supei-hf-topbar__left,
.supei-hf-topbar__right { display: flex; align-items: center; gap: 4px; }
.supei-hf-topbar__sep { color: #475569; margin: 0 2px; }

/* ==========================================================
   MAIN HEADER
   ========================================================== */
.supei-hf-header {
  position: sticky !important;
  top: 0;
  z-index: var(--hf-z-sticky);
  background: var(--hf-bg-white);
  border-bottom: 1px solid var(--hf-border);
  height: var(--hf-header-height);
  font-family: var(--hf-font-base);
  transition: var(--hf-motion-composite-base);
}
body.supei-header-scrolled .supei-hf-header {
  border-bottom-color: rgba(148, 163, 184, 0.32);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  height: 52px;
}
body.admin-bar .supei-hf-header {
  top: 32px;
}
.supei-hf-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
  min-width: 0;
}
body.supei-header-scrolled .supei-hf-header__inner {
  gap: 18px;
}

body.supei-header-scrolled .supei-hf-logo {
  gap: 6px;
  font-size: 15px;
}

body.supei-header-scrolled .supei-hf-logo__icon {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

body.supei-header-scrolled .supei-hf-logo__text {
  font-size: 13px;
}

/* Logo */
.supei-hf-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--hf-text-primary);
}
.supei-hf-logo__icon {
  width: 32px; height: 32px;
  background: var(--hf-primary);
  border-radius: var(--hf-radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
}
.supei-hf-logo__text { font-size: 14px; }
.supei-hf-logo__accent { color: var(--hf-primary); }

/* ---------- Main Navigation ---------- */
.supei-hf-nav {
  display: flex; align-items: center; gap: 24px; height: 100%;
  list-style: none;
}
.supei-hf-nav__list {
  display: flex; align-items: center; gap: 24px; height: 100%;
  list-style: none; margin: 0; padding: 0;
}
.supei-hf-nav > li,
.supei-hf-nav__list > li {
  height: 100%; display: flex; align-items: center; position: relative;
}
.supei-hf-nav > li > a,
.supei-hf-nav__list > li > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 10px;
  font-size: 14px; color: var(--hf-text-primary); font-weight: 500;
  white-space: nowrap; border-radius: var(--hf-radius-md);
  text-decoration: none;
}
body.supei-header-scrolled .supei-hf-nav,
body.supei-header-scrolled .supei-hf-nav__list {
  gap: 18px;
}
body.supei-header-scrolled .supei-hf-nav > li > a,
body.supei-header-scrolled .supei-hf-nav__list > li > a {
  padding: 5px 8px;
  font-size: 13px;
}
.supei-hf-nav > li > a:hover,
.supei-hf-nav > li.current-menu-item > a,
.supei-hf-nav > li.current_page_item > a,
.supei-hf-nav__list > li > a:hover,
.supei-hf-nav__list > li.current-menu-item > a,
.supei-hf-nav__list > li.current_page_item > a {
  color: var(--hf-primary);
  background: var(--hf-primary-light);
}
/* Dropdown arrow */
.supei-hf-nav > li.menu-item-has-children > a::after,
.supei-hf-nav__list > li.menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s;
}
.supei-hf-nav > li.menu-item-has-children:hover > a::after,
.supei-hf-nav__list > li.menu-item-has-children:hover > a::after {
  transform: rotate(225deg) translateY(-1px);
}
/* Sub-menu */
.supei-hf-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: var(--hf-bg-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  box-shadow: 0 10px 15px rgba(0,0,0,0.06);
  padding: 8px;
  list-style: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 250;
}
.supei-hf-nav li:hover > .sub-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.supei-hf-nav li.menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.supei-hf-nav .sub-menu > li { position: relative; }
.supei-hf-nav .sub-menu > li > a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 40px; padding: 9px 12px;
  color: var(--hf-text-primary); font-size: 16px; font-weight: 500;
  border-radius: var(--hf-radius-sm);
  text-decoration: none;
  white-space: nowrap;
}
.supei-hf-nav .sub-menu > li > a:hover {
  color: var(--hf-primary); background: var(--hf-primary-light);
}
/* Second-level sub-menu fly-out */
.supei-hf-nav .sub-menu .sub-menu {
  top: -8px; left: calc(100% - 1px);
  transform: translateX(-4px);
}
.supei-hf-nav .sub-menu li:hover > .sub-menu {
  transform: translateX(0);
}
.supei-hf-nav .sub-menu li.menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
/* Nav CTA button */
.supei-hf-nav .nav-cta,
.supei-hf-nav a.nav-cta {
  background: var(--hf-primary);
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--hf-radius-sm);
}
.supei-hf-nav .nav-cta:hover,
.supei-hf-nav a.nav-cta:hover {
  background: var(--hf-primary-hover);
  color: #fff;
}
/* Active category indicator (set via aria-current by nav menu filter) */
.supei-hf-nav a[aria-current="page"],
.supei-hf-nav__list a[aria-current="page"],
.supei-hf-nav a.current-cat,
.supei-hf-nav__list a.current-cat {
  color: var(--hf-primary);
  font-weight: 600;
  background: var(--hf-primary-light);
}

/* ---------- Header Actions (search, cart) ---------- */
.supei-hf-actions {
  display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0;
}
body.supei-header-scrolled .supei-hf-actions {
  gap: 8px;
}
.supei-hf-search {
  position: relative; width: 260px; min-width: 0;
}
body.supei-header-scrolled .supei-hf-search {
  width: 220px;
}
.supei-hf-search__input {
  width: 100%; height: 36px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-sm);
  font-size: 16px; background: var(--hf-bg-secondary);
  outline: none;
}
body.supei-header-scrolled .supei-hf-search__input {
  height: 32px;
  font-size: 13px;
}
.supei-hf-search__input:focus {
  border-color: var(--hf-primary);
  box-shadow: 0 0 0 3px var(--hf-primary-100);
  background: var(--hf-bg-white);
}
.supei-hf-search__input::placeholder { color: var(--hf-text-secondary); opacity: 1; }
.supei-hf-search__btn {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: var(--hf-radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--hf-text-muted); background: none; border: none; cursor: pointer;
}
body.supei-header-scrolled .supei-hf-search__btn {
  width: 36px;
  height: 36px;
}
.supei-hf-search__btn:hover { color: var(--hf-primary); background: var(--hf-primary-light); }
.supei-hf-search__suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--hf-border);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  z-index: 120;
}
.supei-hf-search__suggestions[hidden] {
  display: none;
}
.supei-hf-search__suggestion {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--hf-text-primary);
  text-decoration: none;
}
.supei-hf-search__suggestion:hover,
.supei-hf-search__suggestion.is-active {
  background: var(--hf-primary-light);
  color: var(--hf-primary);
}
.supei-hf-search__suggestion-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.supei-hf-search__suggestion-meta {
  font-size: 11px;
  color: var(--hf-text-muted);
  line-height: 1.45;
}

.supei-hf-actions__btn {
  position: relative; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--hf-text-secondary); border-radius: var(--hf-radius-sm);
  text-decoration: none;
}
body.supei-header-scrolled .supei-hf-actions__btn {
  width: 38px;
  height: 38px;
}
.supei-hf-actions__btn:hover { color: var(--hf-primary); background: var(--hf-primary-light); }

/* Cart badge */
.supei-hf-cart-count {
  position: absolute; top: -2px; right: -4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  font-size: 10px; font-weight: 700; color: #fff;
  background: var(--hf-error); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ---------- Mobile Menu Toggle ---------- */
.supei-hf-menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--hf-text-primary);
  border-radius: var(--hf-radius-sm);
  background: none; border: none; cursor: pointer;
  flex-shrink: 0;
}
.supei-hf-menu-toggle svg { display: block; width: 22px; height: 22px; }

/* ==========================================================
   QUICK ORDER BAR
   ========================================================== */
.supei-hf-quickbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 253, 0.98));
  border-bottom: 0;
  padding: 10px 0 12px;
  font-family: var(--hf-font-quick);
  max-height: 120px;
  overflow: clip;
  transition: opacity 0.22s ease;
}
.supei-hf-quickbar__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: minmax(180px, 210px) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}
.supei-hf-quickbar__inner::before {
  display: none;
}
.supei-hf-quickbar__lead {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.supei-hf-quickbar__label {
  font-family: var(--hf-font-base);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f2f3f;
  white-space: nowrap;
}
.supei-hf-quickbar__caption {
  font-size: 11px;
  line-height: 1.4;
  color: #6b7b8c;
}
.supei-hf-quickbar__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  min-width: 0;
}
.supei-hf-quickbar__sku {
  font-family: var(--hf-font-mono);
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(214, 223, 233, 0.96);
  border-radius: 999px;
  font-size: 12px;
  outline: none;
  color: #233547;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.supei-hf-quickbar__sku:focus {
  border-color: rgba(134, 164, 201, 0.9);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
}
.supei-hf-quickbar__qty {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(214, 223, 233, 0.96);
  border-radius: 999px;
  font-family: var(--hf-font-base);
  font-size: 12px;
  font-weight: 600;
  outline: none;
  text-align: center;
  color: #233547;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.supei-hf-quickbar__qty:focus {
  border-color: rgba(134, 164, 201, 0.9);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
}
.supei-hf-quickbar__sku::placeholder,
.supei-hf-quickbar__qty::placeholder {
  color: rgba(106, 123, 140, 0.72);
}
.supei-hf-quickbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.supei-hf-quickbar__status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.96);
  font-size: 11px;
  color: #6b7b8c;
  min-width: 100%;
}
.supei-hf-quickbar__status:empty {
  display: none;
}
.supei-hf-quickbar__status-wrap {
  grid-column: 2 / -1;
  min-width: 0;
}

body.supei-header-scrolled .supei-hf-topbar {
  max-height: 0;
  opacity: 0;
}

body.supei-header-scrolled .supei-hf-quickbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

body.supei-header-scrolled .supei-hf-quickbar__inner {
  opacity: 0;
  transform: translateY(-10px);
}

/* ---------- B2B Buttons (scoped, does NOT conflict with homepage .btn) ---------- */
.supei-hf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; font-family: var(--hf-font-base);
  border: 1px solid transparent; border-radius: 12px;
  cursor: pointer; transition: var(--hf-motion-composite-fast);
  line-height: 1.4; white-space: nowrap; text-decoration: none;
}
.supei-hf-btn--sm { padding: 4px 12px; font-size: 12px; }
.supei-hf-btn--primary {
  min-height: 40px;
  padding: 0 15px;
  background: #f3f6fa;
  color: #19324a;
  border-color: rgba(207, 218, 229, 0.96);
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transform: translateZ(0);
  backface-visibility: hidden;
}
.supei-hf-btn--primary:hover,
.supei-hf-btn--primary:focus-visible {
  background: #eaf0f7;
  color: #12293f;
  border-color: rgba(191, 205, 221, 0.98);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px) translateZ(0);
}
.supei-hf-btn--ghost {
  min-height: 40px;
  padding: 0 14px;
  background: #ffffff;
  color: #3f5165;
  border-color: rgba(214, 223, 233, 0.96);
  font-weight: 600;
}
.supei-hf-btn--ghost:hover {
  background: #f8fafd;
  color: #243a50;
  border-color: rgba(191, 205, 221, 0.98);
}
.supei-hf-btn:disabled,
.supei-hf-btn.is-loading {
  cursor: wait;
  opacity: 0.62;
  pointer-events: none;
  transform: none;
}


/* ==========================================================
   MOBILE NAV
   ========================================================== */
.supei-hf-mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.58);
  z-index: var(--hf-z-overlay);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.supei-hf-mobile-overlay.is-open,
body.supei-menu-open .supei-hf-mobile-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.supei-hf-mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 260px; max-width: 80vw;
  background: var(--hf-bg-white);
  z-index: calc(var(--hf-z-overlay) + 1);
  transform: translateX(-100%);
  transition: transform 0.2s;
  overflow-y: auto;
  font-family: var(--hf-font-base);
}
.supei-hf-mobile-nav.is-open { transform: translateX(0); }

.supei-hf-mobile-nav__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--hf-border-light);
}
.supei-hf-mobile-nav__title { font-weight: 600; font-size: 15px; }
.supei-hf-mobile-nav__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--hf-text-muted);
  background: none; border: none; cursor: pointer;
  font-size: 13px;
}
.supei-hf-mobile-nav__close:hover { background: var(--hf-bg-tertiary); color: var(--hf-text-primary); }
.supei-hf-menu-toggle:focus-visible,
.supei-hf-mobile-nav__close:focus-visible,
.supei-hf-mobile-nav nav a:focus-visible,
.supei-cart-drawer__close:focus-visible,
.supei-cart-drawer__remove:focus-visible,
.supei-cart-drawer__actions a:focus-visible {
  outline: 2px solid var(--hf-primary);
  outline-offset: 2px;
}

.supei-hf-mobile-nav nav a {
  display: block; padding: 12px 16px;
  border-bottom: 1px solid var(--hf-border-light);
  font-size: 15px; color: var(--hf-text-primary);
  text-decoration: none;
}
.supei-hf-mobile-nav nav a:hover { background: var(--hf-bg-secondary); }
.supei-hf-mobile-nav nav a.nav-cta {
  background: var(--hf-primary); color: #fff; font-weight: 600;
  margin-top: 8px; text-align: center;
}
.supei-hf-mobile-nav nav a.nav-cta:hover { background: var(--hf-primary-hover); color: #fff; }
.supei-hf-mobile-nav nav ul { margin: 0; padding: 0; list-style: none; }
.supei-hf-mobile-nav nav li { list-style: none; }
/* Mobile sub-menu accordion — hidden by default, toggle on click */
.supei-hf-mobile-nav nav .menu-item-has-children > a {
  display: flex; align-items: center; justify-content: space-between;
}
.supei-hf-mobile-nav nav .menu-item-has-children > a::after {
  content: '+'; font-size: 18px; font-weight: 400; opacity: 0.5;
  margin-left: 8px; transition: transform 0.2s;
}
.supei-hf-mobile-nav nav .menu-item-has-children.is-open > a::after {
  transform: rotate(45deg);
}
.supei-hf-mobile-nav nav .sub-menu { display: none; }
.supei-hf-mobile-nav nav .menu-item-has-children.is-open > .sub-menu { display: block; }
.supei-hf-mobile-nav nav .sub-menu a { padding-left: 32px; font-size: 13px; color: var(--hf-text-secondary); }
.supei-hf-mobile-nav nav .sub-menu .sub-menu a { padding-left: 48px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.supei-hf-footer {
  background: var(--hf-bg-footer);
  color: #cbd5e1;
  font-size: 13px;
  font-family: var(--hf-font-base);
}
.supei-hf-footer a { color: #cbd5e1; text-decoration: none; }
.supei-hf-footer a:hover { color: #fff; }

.supei-hf-footer__service {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid #1e293b;
  max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px;
}
.supei-hf-footer__service-item {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  color: #cbd5e1; font-size: 14px;
}

.supei-hf-footer__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  padding: 32px 16px;
  max-width: 1280px; margin: 0 auto;
}
.supei-hf-footer__heading {
  display: block; width: 100%; padding: 0; border: 0; background: transparent;
  font-family: inherit; font-size: 13px; color: #fff; font-weight: 600;
  margin-bottom: 16px; text-align: left; text-transform: uppercase; letter-spacing: 0.05em;
}
.supei-hf-footer__col a { display: block; padding: 4px 0; font-size: 13px; }
.supei-hf-footer__col .supei-hf-footer__phone {
  font-size: 18px; color: #bfdbfe; margin-bottom: 4px; font-weight: 700;
}
.supei-hf-footer__col .supei-hf-footer__hours {
  font-size: 12px; margin-bottom: 12px;
}

.supei-hf-footer__bottom {
  padding: 20px 0;
  border-top: 1px solid #1e293b;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px;
}
.supei-hf-footer__bottom-links { display: flex; gap: 16px; }

/* Back to top */
.supei-hf-back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 40px; height: 40px;
  background: var(--hf-bg-white);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--hf-text-secondary);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: var(--hf-z-sticky);
}
.supei-hf-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.supei-hf-back-to-top:hover { color: var(--hf-primary); border-color: var(--hf-primary); }

/* ---------- Mobile Bottom Nav ---------- */
.supei-hf-mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--hf-bg-white);
  border-top: 1px solid var(--hf-border);
  z-index: var(--hf-z-bottom-nav);
  min-height: calc(58px + env(safe-area-inset-bottom));
  padding: 5px 0 max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
}
.supei-hf-mobile-bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  flex: 1 1 0;
  min-width: 0;
  font-size: 10px; color: var(--hf-text-muted);
  line-height: 1.15;
  padding: 4px 6px; text-decoration: none;
}
.supei-hf-mobile-bottom-nav__item svg {
  flex: 0 0 auto;
}
.supei-hf-mobile-bottom-nav__item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.supei-hf-mobile-bottom-nav__item--active,
.supei-hf-mobile-bottom-nav__item.active { color: var(--hf-primary); }

/* ---------- Cart Drawer ---------- */
.supei-cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--hf-drawer-overlay);
  z-index: var(--hf-z-overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.supei-cart-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.supei-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 78vw);
  max-width: calc(100vw - 72px);
  background:
    linear-gradient(180deg, var(--hf-drawer-surface) 0%, var(--hf-drawer-surface-soft) 100%);
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  z-index: var(--hf-z-drawer);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--hf-drawer-shadow);
  overflow: hidden;
  overscroll-behavior: contain;
  font-family: var(--hf-font-base, "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif);
}
.supei-cart-drawer.is-open { transform: translateX(0); }
.supei-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--hf-drawer-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}
.supei-cart-drawer__header h2 {
  margin: 0;
  color: var(--hf-text-primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.supei-cart-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  color: var(--hf-text-primary);
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: var(--hf-motion-composite-fast);
}
.supei-cart-drawer__close span[aria-hidden="true"] {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}
.supei-cart-drawer__close:hover {
  color: var(--hf-primary);
  background: var(--hf-primary-light);
  border-color: rgba(26, 86, 219, 0.22);
  transform: translateY(-1px);
}
.supei-cart-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 24px 24px;
  scrollbar-gutter: stable;
}
.supei-cart-drawer__loading,
.supei-cart-drawer__empty {
  margin-top: 4px;
  padding: 34px 24px;
  color: var(--hf-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--hf-drawer-border-soft);
  border-radius: 18px;
  box-shadow: var(--hf-drawer-card-shadow);
}
.supei-cart-drawer__empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--hf-text-primary);
  font-size: 19px;
  line-height: 1.25;
}
.supei-cart-drawer__empty p {
  margin: 0;
}
.supei-cart-drawer__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 32px;
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hf-border-light);
}
.supei-cart-drawer__thumb {
  width: 88px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--hf-drawer-border-soft);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.supei-cart-drawer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.supei-cart-drawer__details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}
.supei-cart-drawer__name {
  display: block;
  color: var(--hf-text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.supei-cart-drawer__name:hover { color: var(--hf-primary); }
.supei-cart-drawer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--hf-text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.supei-cart-drawer__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.supei-cart-drawer__qty.is-updating {
  opacity: 0.72;
}
.supei-cart-drawer__qty-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--hf-text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.supei-cart-drawer__qty-btn:hover {
  color: var(--hf-primary);
  background: var(--hf-primary-light);
}
.supei-cart-drawer__qty-input {
  width: 46px;
  height: 32px;
  border: none;
  border-left: 1px solid rgba(226, 232, 240, 0.92);
  border-right: 1px solid rgba(226, 232, 240, 0.92);
  padding: 0;
  text-align: center;
  background: transparent;
  color: var(--hf-text-primary);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--hf-font-mono);
  outline: none;
  -moz-appearance: textfield;
}
.supei-cart-drawer__qty-input::-webkit-outer-spin-button,
.supei-cart-drawer__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.supei-cart-drawer__qty-input:focus {
  background: rgba(239, 246, 255, 0.8);
}
.supei-cart-drawer__price {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--hf-primary-hover);
  background: var(--hf-primary-light);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.supei-cart-drawer__remove {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hf-text-muted);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: var(--hf-motion-composite-fast);
}
.supei-cart-drawer__remove:hover {
  color: var(--hf-error);
  background: rgba(254, 242, 242, 0.96);
  border-color: rgba(220, 38, 38, 0.16);
  transform: translateY(-1px);
}
.supei-cart-drawer__footer {
  flex: 0 0 auto;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--hf-drawer-border-soft);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 1) 30%);
  box-shadow: 0 -16px 32px rgba(15, 23, 42, 0.08);
}
.supei-cart-drawer__subtotal {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px 18px;
  color: var(--hf-text-primary);
  border: 1px solid var(--hf-drawer-border-soft);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--hf-drawer-card-shadow);
}
.supei-cart-drawer__subtotal span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hf-text-muted);
}
.supei-cart-drawer__subtotal strong {
  color: var(--hf-primary-hover);
  font-size: 26px;
  line-height: 1;
}
.supei-cart-drawer__actions {
  display: grid;
  gap: 12px;
}
.supei-cart-drawer__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  color: var(--hf-text-primary);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  touch-action: manipulation;
  transition: var(--hf-motion-composite-fast);
}
.supei-cart-drawer__actions a:hover {
  color: var(--hf-primary);
  background: var(--hf-primary-light);
  border-color: rgba(26, 86, 219, 0.18);
  box-shadow: 0 16px 28px rgba(26, 86, 219, 0.10);
  transform: translateY(-1px);
}
.supei-cart-drawer__actions a:last-child {
  color: #fff;
  border-color: var(--hf-primary-hover);
  background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-hover) 100%);
  box-shadow: 0 16px 30px rgba(30, 64, 175, 0.22);
}
.supei-cart-drawer__actions a:last-child:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--hf-primary-hover) 0%, #1736a1 100%);
  border-color: #1736a1;
}
body.supei-cart-drawer-open,
body.supei-menu-open {
  overflow: hidden;
}

body.supei-menu-open .supei-hf-header,
body.supei-cart-drawer-open .supei-hf-header,
body.supei-menu-open .supei-hf-mobile-bottom-nav,
body.supei-cart-drawer-open .supei-hf-mobile-bottom-nav,
body.supei-menu-open .supei-hf-back-to-top,
body.supei-cart-drawer-open .supei-hf-back-to-top {
  pointer-events: none;
}

body.admin-bar .supei-cart-drawer-overlay,
body.admin-bar .supei-cart-drawer {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .supei-cart-drawer-overlay,
  body.admin-bar .supei-cart-drawer {
    top: 46px;
  }

  body.admin-bar .supei-hf-header {
    top: 46px;
  }
}

/* ==========================================================
   RESPONSIVE — Tablet (≤992px)
   ========================================================== */
@media (max-width: 992px) {
  .supei-hf-topbar { display: none; }
  .supei-hf-nav { display: none; }
  .supei-hf-menu-toggle { display: flex; }
  .supei-hf-search { width: 160px; }
  .supei-hf-quickbar__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .supei-hf-quickbar__actions {
    justify-content: flex-start;
  }
  .supei-hf-quickbar__status-wrap {
    grid-column: auto;
  }
  .supei-hf-footer__service { grid-template-columns: repeat(2, 1fr); }
  .supei-hf-footer__grid { grid-template-columns: repeat(3, 1fr); }

}

/* ==========================================================
   RESPONSIVE — Mobile (≤768px)
   ========================================================== */
@media (max-width: 768px) {
  .supei-hf-mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
  body { padding-bottom: max(82px, calc(82px + env(safe-area-inset-bottom))); }
  .supei-hf-header { height: var(--hf-header-height-mobile); }
  body.supei-header-scrolled .supei-hf-header { height: 44px; }
  .supei-hf-header__inner { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .supei-hf-logo { min-width: 0; }
  .supei-hf-logo__text { font-size: 14px; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .supei-hf-logo__icon { width: 28px; height: 28px; font-size: 13px; }
  .supei-hf-actions { flex: 1 1 auto; gap: 8px; }
  .supei-hf-search { flex: 1; max-width: none; width: auto; }
  .supei-hf-search__input { height: 44px; font-size: 16px; }
  .supei-hf-menu-toggle,
  .supei-hf-actions__btn { flex: 0 0 44px; }
  .supei-hf-mobile-bottom-nav { width: 100%; max-width: 100vw; }
  .supei-hf-quickbar { display: none; }
  .supei-hf-footer { padding-bottom: max(82px, calc(82px + env(safe-area-inset-bottom))); }
  .supei-hf-footer__service { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .supei-hf-footer__grid { grid-template-columns: 1fr; gap: 16px; }
  .supei-hf-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .supei-hf-back-to-top { bottom: max(82px, calc(82px + env(safe-area-inset-bottom))); right: 12px; width: 36px; height: 36px; }
  /* Footer accordion on mobile */
  .supei-hf-footer__heading {
    cursor: pointer; user-select: none;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .supei-hf-footer__heading::after {
    content: "+"; font-size: 18px; font-weight: 400; opacity: 0.6;
    transition: transform 0.2s;
  }
  .supei-hf-footer__col.is-open .supei-hf-footer__heading::after { content: "-"; }
  .supei-hf-footer__col a,
  .supei-hf-footer__col .supei-hf-footer__phone,
  .supei-hf-footer__col .supei-hf-footer__hours,
  .supei-hf-footer__col span { display: none; }
  .supei-hf-footer__col.is-open a,
  .supei-hf-footer__col.is-open .supei-hf-footer__phone,
  .supei-hf-footer__col.is-open .supei-hf-footer__hours,
  .supei-hf-footer__col.is-open span { display: block; }
  .supei-hf-footer__col:last-child a,
  .supei-hf-footer__col:last-child .supei-hf-footer__phone,
  .supei-hf-footer__col:last-child .supei-hf-footer__hours,
  .supei-hf-footer__col:last-child span { display: block; }
  .supei-hf-footer__col:last-child .supei-hf-footer__heading { cursor: default; }
  .supei-hf-footer__col:last-child .supei-hf-footer__heading::after { content: none; }
}

@media (max-width: 620px) {
  .supei-hf-header__inner { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .supei-hf-logo { gap: 6px; }
  .supei-hf-logo__text { display: none; }
  .supei-hf-actions { gap: 4px; }
  .supei-hf-actions__btn { display: none; }
  .supei-hf-search__input { padding-left: 12px; padding-right: 36px; }
  .supei-hf-search__btn { width: 38px; height: 38px; }
  .supei-hf-menu-toggle,
  .supei-hf-actions__btn { flex-basis: 40px; width: 40px; height: 40px; }
}

@media (min-width: 769px) and (max-width: 880px) {
  .supei-hf-quickbar {
    padding: 10px 0;
  }
  .supei-hf-quickbar__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .supei-hf-quickbar__actions,
  .supei-hf-quickbar__status-wrap {
    grid-column: auto;
  }
}
/* Touch-safe hover suppression */
@media (hover: none) {
  .supei-hf-nav > li.menu-item-has-children:hover > a::after,
  .supei-hf-nav__list > li.menu-item-has-children:hover > a::after { transform: rotate(45deg) translateY(-1px); }
  .supei-hf-nav li:hover > .sub-menu { opacity: 0; visibility: hidden; transform: translateY(8px); }
  .supei-hf-nav .sub-menu li:hover > .sub-menu { transform: translateX(-4px); }
  .supei-hf-nav li.menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .supei-hf-nav .sub-menu li.menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  .supei-hf-nav > li.menu-item-has-children.is-open > a::after,
  .supei-hf-nav__list > li.menu-item-has-children.is-open > a::after {
    transform: rotate(225deg) translateY(-1px);
  }
}

@media (max-width: 480px) {
  .supei-hf-footer__service { grid-template-columns: 1fr; text-align: center; }
}

@media (min-width: 993px) {
  .supei-hf-mobile-nav,
  .supei-hf-mobile-overlay { display: none; }
}
/* Breadcrumb */
.supei-breadcrumb{background:var(--hf-bg-white);border-bottom:1px solid var(--hf-border);padding:10px 0;font-family:var(--hf-font-base)}
.supei-breadcrumb__inner{max-width:1280px;margin:0 auto;padding:0 16px;display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:13px;color:var(--hf-text-muted)}
.supei-breadcrumb a{color:var(--hf-text-secondary);text-decoration:none}
.supei-breadcrumb a:hover{color:var(--hf-primary)}
.supei-breadcrumb__sep{color:var(--hf-border-dark);margin:0 4px;user-select:none}
.supei-breadcrumb__current{color:var(--hf-text-primary);font-weight:500}
@media(max-width:768px){
.supei-breadcrumb{padding:8px 0}
.supei-breadcrumb__inner{font-size:12px}
}
.supei-hf-nav a,.supei-hf-actions__btn,.supei-hf-search__btn,.supei-hf-menu-toggle,.supei-hf-mobile-bottom-nav__item{touch-action:manipulation}
.supei-hf-mobile-nav{transition:transform 0.25s ease,opacity 0.2s ease}
.supei-hf-mobile-overlay{transition:opacity 0.25s ease}
@media(prefers-reduced-motion:reduce){
.supei-hf-header,.supei-hf-topbar,.supei-hf-quickbar,.supei-hf-nav .sub-menu,.supei-hf-btn,.supei-hf-mobile-nav,.supei-hf-mobile-overlay,.supei-hf-back-to-top,.supei-cart-drawer,.supei-cart-drawer-overlay,.supei-cart-drawer__close,.supei-cart-drawer__remove,.supei-cart-drawer__actions a{transition:none;animation:none}
}
.quick-order-status{color:var(--hf-text-muted, #64748b)}
.quick-order-status.is-error{color:var(--hf-error, #dc2626)}
.quick-order-status.is-success{color:var(--hf-success, #047857)}
body.supei-header-scrolled .supei-hf-quickbar__inner::before,
body.home .supei-hf-quickbar__inner::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

body.home .supei-hf-quickbar {
  padding: 10px 0 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 253, 0.98));
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

body.home .supei-hf-quickbar__inner {
  position: relative;
  padding: 10px 14px;
  grid-template-columns: minmax(180px, 210px) minmax(280px, 1fr) auto;
  gap: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 252, 0.98));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body.home .supei-hf-quickbar__inner::before {
  display: none;
}

body.home .supei-hf-quickbar__lead {
  gap: 2px;
}

body.home .supei-hf-quickbar__label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #1f2f3f;
}

body.home .supei-hf-quickbar__caption {
  font-size: 11px;
  color: #6b7b8c;
}

body.home .supei-hf-quickbar__sku,
body.home .supei-hf-quickbar__qty {
  height: 40px;
  font-size: 12px;
  color: #233547;
  border-color: rgba(214, 223, 233, 0.96);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.home .supei-hf-quickbar__sku:focus,
body.home .supei-hf-quickbar__qty:focus {
  border-color: rgba(134, 164, 201, 0.9);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
}

body.home .supei-hf-quickbar__sku::placeholder,
body.home .supei-hf-quickbar__qty::placeholder {
  color: rgba(106, 123, 140, 0.72);
}

body.home .supei-hf-quickbar__actions {
  gap: 8px;
}

body.home .supei-hf-quickbar__status {
  min-height: 38px;
  font-size: 11px;
  color: #6b7b8c;
  background: #f8fafc;
  border-color: rgba(226, 232, 240, 0.96);
}

body.home .supei-hf-btn {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 12px;
}

body.home .supei-hf-btn--sm {
  padding: 4px 12px;
  font-size: 12px;
}

body.home .supei-hf-btn--primary {
  min-height: 40px;
  padding: 0 15px;
  background: #f3f6fa;
  color: #19324a;
  border-color: rgba(207, 218, 229, 0.96);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

body.home .supei-hf-btn--primary:hover,
body.home .supei-hf-btn--primary:focus-visible {
  background: #eaf0f7;
  color: #12293f;
  border-color: rgba(191, 205, 221, 0.98);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

body.home .supei-hf-btn--ghost {
  min-height: 40px;
  padding: 0 14px;
  background: #ffffff;
  color: #3f5165;
  border-color: rgba(214, 223, 233, 0.96);
}

body.home .supei-hf-btn--ghost:hover,
body.home .supei-hf-btn--ghost:focus-visible {
  background: #f8fafd;
  color: #243a50;
  border-color: rgba(191, 205, 221, 0.98);
}

body.home .supei-hf-quickbar__inner::before {
  display: none;
}

@media (max-width: 992px) {
  body.home .supei-hf-quickbar__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.home .supei-hf-quickbar__status-wrap {
    grid-column: auto;
  }
}

@media (min-width: 769px) and (max-width: 880px) {
  body.home .supei-hf-quickbar {
    padding: 10px 0;
  }

  body.home .supei-hf-quickbar__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home .supei-hf-quickbar__actions,
  body.home .supei-hf-quickbar__status-wrap {
    grid-column: auto;
  }
}
