/* HollyBOM customer shell + design system (R114).
 * One header/footer and one set of tokens for every customer page
 * (storefront web pages and the standalone own_* pages).
 * Layout: full-bleed navy header (top row + category row), centred 1280px content, light grey canvas. */
:root {
  --hb-header: #0f1b2d;
  --hb-header-2: #1a2a42;
  --hb-header-text: #ffffff;
  --hb-header-muted: #b7c4d8;
  --hb-brand: #1463d8;
  --hb-brand-strong: #0b4fb5;
  --hb-brand-soft: #e8f0fd;
  --hb-canvas: #f2f4f7;
  --hb-surface: #ffffff;
  --hb-line: #dfe3ea;
  --hb-line-strong: #c9d0db;
  --hb-text: #111827;
  --hb-muted: #5b6574;
  --hb-success: #137a43;
  --hb-success-soft: #e6f4ec;
  --hb-warning: #a15c00;
  --hb-warning-soft: #fdf3e1;
  --hb-danger: #b42318;
  --hb-danger-soft: #fdecea;
  --hb-price: #b12704;
  --hb-radius: 8px;
  --hb-radius-lg: 12px;
  --hb-shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .06);
  --hb-font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hb-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --hb-max: 1280px;
  color-scheme: light;
}

/* System font everywhere: also stops the native web bundle from downloading its Inter files. */
html body, html body * { font-family: var(--hb-font) !important; }
html body code, html body kbd, html body .hb-mono { font-family: var(--hb-mono) !important; }
body.hbs-page { background: var(--hb-canvas); color: var(--hb-text); margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body.hbs-page > * { flex-shrink: 0; }
body.hbs-page > footer.hbs-footer { margin-top: auto; }

/* Retired headers/footers stay in the DOM for older scripts but are not shown. */
body.hbs-page > header:not(.hbs-header),
body.hbs-page > footer:not(.hbs-footer),
body.hbs-page .hb-store-header,
body.hbs-page header.navbar,
body.hbs-page .web-footer { display: none !important; }

/* ------------------------------------------------------------------ isolation
 * own_* pages style bare header/nav/footer/button/input/a elements; keep those rules
 * off the shell. :where() keeps the resets weaker than every shell component class. */
body.hbs-page > header.hbs-header, body.hbs-page > footer.hbs-footer { display: block; max-width: none; margin: 0; padding: 0; gap: 0; }
:where(.hbs-header, .hbs-footer, .hbs-drawer) button { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; width: auto; overflow-wrap: normal; }
:where(.hbs-header, .hbs-footer, .hbs-drawer) input, :where(.hbs-header) select { width: auto; border-radius: 0; font: inherit; }
:where(.hbs-header, .hbs-footer, .hbs-drawer) a, :where(.hbs-header, .hbs-footer, .hbs-drawer) p { overflow-wrap: normal; }
.hbs-sub { display: block; }
.hbs-footer { font-size: 14px; }

/* ------------------------------------------------------------------ header */
.hbs-header { background: var(--hb-header); color: var(--hb-header-text); position: relative; z-index: 1040; }
.hbs-header a { color: inherit; text-decoration: none; }
.hbs-top {
  max-width: var(--hb-max); margin: 0 auto; display: grid; align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
}
.hbs-menu-btn { display: none; }
.hbs-logo { font-size: 23px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; padding: 4px 2px; border-radius: 4px; }
.hbs-logo span { color: #5ea0ff; }
.hbs-search { display: flex; min-width: 0; height: 42px; border-radius: var(--hb-radius); overflow: hidden; background: #fff; box-shadow: 0 0 0 2px transparent; }
.hbs-search:focus-within { box-shadow: 0 0 0 3px #5ea0ff; }
.hbs-search select {
  flex: 0 0 auto; border: 0; background: #eef1f5; color: var(--hb-text); font-size: 13px; padding: 0 8px; max-width: 120px;
  border-right: 1px solid var(--hb-line); cursor: pointer;
}
.hbs-search input { flex: 1; min-width: 0; border: 0; padding: 0 12px; font-size: 15px; color: var(--hb-text); outline: none; }
.hbs-search button { flex: 0 0 auto; border: 0; background: var(--hb-brand); color: #fff; padding: 0 20px; font-size: 15px; font-weight: 600; cursor: pointer; }
.hbs-search button:hover { background: var(--hb-brand-strong); }
.hbs-actions { display: flex; align-items: stretch; gap: 4px; }
.hbs-act { display: flex; flex-direction: column; justify-content: center; padding: 4px 10px; border-radius: 4px; border: 1px solid transparent; line-height: 1.25; white-space: nowrap; cursor: pointer; background: none; color: inherit; font-size: 14px; }
.hbs-act:hover, .hbs-act:focus-visible, .hbs-acct[open] > summary { border-color: var(--hb-header-muted); outline: none; }
.hbs-act small { font-size: 12px; color: var(--hb-header-muted); }
.hbs-act b { font-size: 14px; font-weight: 700; }
.hbs-count-link { flex-direction: row; align-items: center; gap: 8px; }
.hbs-count-link .hbs-ico { position: relative; width: 30px; height: 26px; flex: 0 0 auto; }
.hbs-count-link .hbs-label { display: flex; flex-direction: column; }
.hbs-count-link svg { width: 30px; height: 26px; display: block; }
.hbs-badge { position: absolute; top: -6px; left: 14px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #5ea0ff; color: var(--hb-header); font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.hbs-badge[data-zero] { background: var(--hb-header-2); color: var(--hb-header-muted); }
.hbs-acct { position: relative; }
.hbs-acct > summary { list-style: none; }
.hbs-acct > summary::-webkit-details-marker { display: none; }
.hbs-acct-panel {
  position: absolute; right: 0; top: calc(100% + 6px); width: 280px; background: #fff; color: var(--hb-text);
  border-radius: var(--hb-radius); box-shadow: 0 8px 28px rgba(15, 27, 45, .22); padding: 14px; display: grid; gap: 2px; z-index: 1050;
}
.hbs-acct-panel h4 { margin: 0 0 6px; font-size: 13px; color: var(--hb-muted); font-weight: 600; }
.hbs-acct-panel a, .hbs-acct-panel button { display: block; padding: 8px 10px; border-radius: 6px; color: var(--hb-text); font-size: 14px; text-align: left; background: none; border: 0; cursor: pointer; width: 100%; }
.hbs-acct-panel a:hover, .hbs-acct-panel button:hover { background: var(--hb-canvas); }
.hbs-acct-panel hr { border: 0; border-top: 1px solid var(--hb-line); margin: 6px 0; }
.hbs-acct-panel .hbs-signin { background: var(--hb-brand); color: #fff; text-align: center; font-weight: 600; }
.hbs-acct-panel .hbs-signin:hover { background: var(--hb-brand-strong); }
.hbs-acct-panel p { margin: 4px 0 0; font-size: 13px; color: var(--hb-muted); text-align: center; }
.hbs-acct-panel p a { display: inline; padding: 0; color: var(--hb-brand); }

.hbs-sub { background: var(--hb-header-2); }
.hbs-sub-inner {
  max-width: var(--hb-max); margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
}
.hbs-sub-inner::-webkit-scrollbar { display: none; }
.hbs-sub a { padding: 9px 10px; font-size: 14px; white-space: nowrap; border: 1px solid transparent; border-radius: 4px; color: #e6edf7; }
.hbs-sub a:hover, .hbs-sub a[aria-current] { border-color: var(--hb-header-muted); color: #fff; }
.hbs-sub .hbs-sub-strong { font-weight: 700; }
.hbs-sub .hbs-sub-sep { flex: 1; }

/* Mobile drawer (categories + account) */
.hbs-drawer { position: fixed; inset: 0; z-index: 1100; display: none; }
.hbs-drawer[data-open] { display: block; }
.hbs-drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 27, 45, .55); }
.hbs-drawer-panel {
  position: absolute; inset: 0 auto 0 0; width: min(86vw, 340px); background: #fff; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hbs-drawer-head { background: var(--hb-header); color: #fff; padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 16px max(18px, env(safe-area-inset-left, 0px)); font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.hbs-drawer-head button { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.hbs-drawer h5 { margin: 0; padding: 14px 18px 6px; font-size: 13px; color: var(--hb-muted); }
.hbs-drawer a, .hbs-drawer button.hbs-drawer-link { display: block; padding: 12px 18px; color: var(--hb-text); text-decoration: none; font-size: 15px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
.hbs-drawer a:hover, .hbs-drawer button.hbs-drawer-link:hover { background: var(--hb-canvas); }
.hbs-drawer hr { border: 0; border-top: 6px solid var(--hb-canvas); margin: 6px 0; }

@media (max-width: 900px) {
  .hbs-top { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .hbs-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; color: #fff; cursor: pointer; border-radius: 4px; }
  .hbs-menu-btn svg { width: 24px; height: 24px; }
  .hbs-logo { font-size: 21px; }
  .hbs-search { grid-column: 1 / -1; grid-row: 2; height: 44px; }
  .hbs-search select { display: none; }
  .hbs-actions { grid-column: 4; justify-self: end; }
  .hbs-act.hbs-hide-sm, .hbs-act small { display: none; }
  .hbs-act { padding: 4px 6px; }
  .hbs-acct-panel { position: fixed; right: max(8px, env(safe-area-inset-right, 0px)); left: max(8px, env(safe-area-inset-left, 0px)); width: auto; top: 56px; }
  .hbs-count-link .hbs-label { display: none; }
}

/* ------------------------------------------------------------------ page frame */
.hbs-main { max-width: var(--hb-max); margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
.hbs-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--hb-muted); margin: 0 0 12px; }
.hbs-crumbs a { color: var(--hb-brand); text-decoration: none; }
.hbs-crumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ components */
.hbx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--hb-line-strong); background: #fff; color: var(--hb-text);
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.hbx-btn:hover { border-color: var(--hb-muted); }
.hbx-btn:focus-visible { outline: 3px solid #5ea0ff; outline-offset: 2px; }
.hbx-btn[disabled], .hbx-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.hbx-btn--primary { background: var(--hb-brand); border-color: var(--hb-brand); color: #fff; }
.hbx-btn--primary:hover { background: var(--hb-brand-strong); border-color: var(--hb-brand-strong); }
.hbx-btn--dark { background: var(--hb-header); border-color: var(--hb-header); color: #fff; }
.hbx-btn--dark:hover { background: #1f3352; }
.hbx-btn--ghost { background: transparent; border-color: transparent; color: var(--hb-brand); padding: 0 8px; }
.hbx-btn--block { width: 100%; }
.hbx-btn--lg { min-height: 46px; font-size: 15px; }

.hbx-card { background: var(--hb-surface); border: 1px solid var(--hb-line); border-radius: var(--hb-radius-lg); padding: 20px; }
.hbx-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--hb-canvas); color: var(--hb-muted); white-space: nowrap; }
.hbx-pill--ok { background: var(--hb-success-soft); color: var(--hb-success); }
.hbx-pill--warn { background: var(--hb-warning-soft); color: var(--hb-warning); }
.hbx-pill--bad { background: var(--hb-danger-soft); color: var(--hb-danger); }
.hbx-pill--info { background: var(--hb-brand-soft); color: var(--hb-brand-strong); }
.hbx-price { color: var(--hb-price); font-weight: 700; font-variant-numeric: tabular-nums; }
.hbx-num { font-variant-numeric: tabular-nums; }
.hbx-muted { color: var(--hb-muted); }
.hbx-test-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--hb-warning-soft); color: var(--hb-warning); font-size: 12px; font-weight: 600; vertical-align: 2px; }

/* ------------------------------------------------------------------ footer */
.hbs-footer { background: var(--hb-header); color: var(--hb-header-muted); }
body.hbs-page > .hbs-drawer + .hbs-footer, body.hbs-page > footer.hbs-footer { padding-top: 0; }
body.hbs-page > main, body.hbs-page > .page_content, body.hbs-page > div:not(.hbs-drawer) { margin-bottom: 32px; }
.hbs-footer-top { display: block; width: 100%; background: var(--hb-header-2); color: #fff; text-align: center; padding: 12px; font-size: 14px; border: 0; cursor: pointer; }
.hbs-footer-top:hover { background: #24375a; }
.hbs-footer-inner {
  max-width: var(--hb-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px;
  padding: 32px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
}
.hbs-footer h6 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.hbs-footer a { display: block; color: var(--hb-header-muted); text-decoration: none; font-size: 14px; padding: 3px 0; }
.hbs-footer a:hover { color: #fff; text-decoration: underline; }
.hbs-footer-base { border-top: 1px solid #23334d; text-align: center; font-size: 12.5px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* R114 order detail status colours */
.hb-order-status.hb-order-status--pending { background: var(--hb-warning-soft); color: var(--hb-warning); }
.hb-customer-order .hb-primary-action { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--hb-brand); color: #fff !important; font-weight: 700; text-decoration: none; }
.hb-customer-order .hb-due { color: var(--hb-price); }
.hb-orders-pay { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; background: var(--hb-brand); color: #fff !important; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.hb-invoice-list-title { font-size: 26px; margin: 18px 0 12px; }
body.hb-invoice-list-page .website-list { margin-left: 0 !important; margin-right: 0 !important; padding-left: 16px !important; padding-right: 16px !important; }
@media (max-width: 640px) { .hb-customer-order > header h1 { font-size: 22px; } }
.hbs-sub-note { color: rgba(255,255,255,.65); font-size: 13px; white-space: nowrap; }
.hbs-footer-base a { color: inherit; text-decoration: underline; }
.hbs-sub-note { align-self: center; line-height: 1.2; }
@media (max-width: 640px) { .hbs-sub-note { display: none; } }
.hbs-footer .hbs-footer-base a { display: inline; padding: 0; margin: 0; }
/* R116 search suggestions */
.hbs-search { overflow: visible; }
.hbs-search select { border-radius: var(--hb-radius) 0 0 var(--hb-radius); }
.hbs-search button[type=submit] { border-radius: 0 var(--hb-radius) var(--hb-radius) 0; }
.hbs-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1300; background: #fff; border-radius: var(--hb-radius); box-shadow: 0 12px 32px rgba(15, 27, 45, .25); padding: 6px 0; max-height: 70vh; overflow-y: auto; }
.hbs-suggest a { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; padding: 6px 14px; color: var(--hb-text); text-decoration: none; font-size: 14px; }
.hbs-suggest a:hover, .hbs-suggest a:focus { background: #f1f5fb; outline: none; }
.hbs-suggest img { grid-row: 1 / span 2; width: 36px; height: 36px; object-fit: contain; border: 1px solid var(--hb-line); border-radius: 6px; }
.hbs-suggest b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbs-suggest a span { font-size: 12.5px; color: var(--hb-muted); grid-column: 2; }
.hbs-suggest .hbs-suggest-cat { display: inline-block; grid-column: auto; font-size: 11.5px; background: var(--hb-brand-soft); color: var(--hb-brand-strong); border-radius: 4px; padding: 0 6px; margin-right: 6px; }
.hbs-suggest a:has(.hbs-suggest-cat), .hbs-suggest .hbs-suggest-all { display: block; }
.hbs-suggest .hbs-suggest-all { border-top: 1px solid var(--hb-line); margin-top: 4px; padding-top: 8px; color: var(--hb-brand); font-weight: 600; }
/* R116 customer after-sales pages (returns, order questions): same frame as the order page */
.hb-return-page, .hb-customer-service { max-width: 1040px; margin: 0 auto; padding: 18px 24px 56px; font-size: 14px; line-height: 1.6; color: var(--hb-text); box-sizing: border-box; }
.hb-return-page h1, .hb-customer-service h1 { font-size: 26px; line-height: 1.3; margin: 10px 0 6px; }
.hb-return-page h2, .hb-customer-service h2 { font-size: 18px; margin: 22px 0 10px; }
.hb-return-page h3 { font-size: 16px; margin: 0 0 6px; overflow-wrap: anywhere; }
.hb-return-page h4 { font-size: 14px; margin: 12px 0 4px; }
.hb-return-page > p, .hb-customer-service > p { color: var(--hb-muted); margin: 0 0 12px; }
.hb-return-page > a:first-child, .hb-customer-service > a:first-child { display: inline-block; color: var(--hb-brand); }
.hb-return-page article, .hb-return-page form, .hb-return-page > details { background: #fff; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-lg); padding: 16px; margin: 0 0 12px; }
.hb-return-page article p { margin: 4px 0; overflow-wrap: anywhere; }
.hb-return-page article > p:first-of-type { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--hb-brand-soft); color: var(--hb-brand-strong); font-weight: 700; font-size: 13px; margin: 6px 0; }
.hb-return-page details summary { cursor: pointer; color: var(--hb-brand); font-weight: 600; }
.hb-return-page dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 13px; color: var(--hb-muted); }
.hb-return-page dd { margin: 0; overflow-wrap: anywhere; }
.hb-return-page label { display: grid; gap: 6px; margin: 10px 0; font-weight: 600; }
.hb-return-page :is(input, select, textarea) { border: 1px solid var(--hb-line-strong); border-radius: 8px; min-height: 40px; padding: 8px 10px; font-size: 15px; max-width: 520px; width: 100%; box-sizing: border-box; background: #fff; }
.hb-return-page button[type=submit] { min-height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--hb-brand); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.hb-return-next { background: var(--hb-success-soft); color: var(--hb-success); border-radius: 8px; padding: 8px 12px; }
@media (max-width: 640px) { .hb-return-page, .hb-customer-service { padding: 14px 16px 40px; } .hb-return-page h1, .hb-customer-service h1 { font-size: 22px; } }

.hbs-soft-launch{background:#fff4d6;color:#5c4400;font-size:13px;line-height:1.5;padding:6px max(16px,env(safe-area-inset-left,0px));text-align:center;border-bottom:1px solid #f0d58a}
