/*
 * Issue #82 mockup fidelity layer.
 * This file is intentionally loaded last: the approved storefront/admin
 * mockups are the visual source of truth for the final shared system.
 */

:root {
  --bgvp-fidelity-blue: #075fc7;
  --bgvp-fidelity-blue-dark: #064ca1;
  --bgvp-fidelity-ink: #101a28;
  --bgvp-fidelity-muted: #5d6878;
  --bgvp-fidelity-line: #dbe2ea;
  --bgvp-fidelity-soft-line: #e8edf2;
  --bgvp-fidelity-ice: #f7f9fc;
  --bgvp-fidelity-paper: #ffffff;
  --bgvp-fidelity-page-gutter: clamp(1.25rem, 4.85vw, 3.375rem);
  --bgvp-navigation-height: 82px;
  --bgvp-navigation-item-height: 81px;
  --bgvp-navigation-link-size: 12.5px;
  --bgvp-navigation-brand-gap: clamp(1.75rem, 4vw, 3.5rem);
  --bgvp-navigation-item-gap: clamp(0.1rem, 0.55vw, 0.45rem);
}

body.storefront-surface,
body.admin-surface {
  color: var(--bgvp-fidelity-ink);
  background: var(--bgvp-fidelity-paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
}

/* Shared light navigation ------------------------------------------------- */
.site-navigation,
.bgvp-storefront-navigation,
#mainNav.bgvp-storefront-navigation,
#mainNav.bgvp-storefront-navigation.navbar-shrink {
  min-height: var(--bgvp-navigation-height);
  padding: 0;
  background: rgba(255, 255, 255, 0.985);
  border: 0;
  border-bottom: 1px solid var(--bgvp-fidelity-line);
  box-shadow: none;
}

.site-navigation > .container-xl,
.bgvp-storefront-navigation > .container-xl {
  width: 100%;
  max-width: none;
  min-height: var(--bgvp-navigation-height);
  padding-inline: var(--bgvp-fidelity-page-gutter);
}

.site-navigation .site-brand,
.bgvp-storefront-navigation .site-brand {
  min-width: 96px;
  min-height: 64px;
  margin-right: var(--bgvp-navigation-brand-gap);
  padding: 0;
  background: transparent;
  border-radius: 0;
}

/* The user explicitly keeps the original YueMao logo geometry. */
.site-navigation .yuemao-store-logo,
.bgvp-storefront-navigation .yuemao-store-logo {
  width: auto;
  max-width: 94px;
  max-height: 56px;
  object-fit: contain;
  filter: none;
}

.site-navigation-links {
  align-items: stretch;
  gap: var(--bgvp-navigation-item-gap);
}

.site-navigation .nav-link,
.site-navigation .nav-button,
.bgvp-storefront-navigation .bgvp-storefront-link {
  position: relative;
  display: inline-flex;
  min-height: var(--bgvp-navigation-item-height);
  align-items: center;
  padding: 0 0.48rem !important;
  color: #263141;
  background: transparent;
  border-radius: 0;
  font-size: var(--bgvp-navigation-link-size);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-navigation .nav-link:hover,
.site-navigation .nav-link:focus-visible,
.site-navigation .nav-link.is-active,
.site-navigation .nav-button:hover,
.site-navigation .nav-button:focus-visible,
.site-navigation .nav-button.is-active {
  color: var(--bgvp-fidelity-blue);
  background: transparent;
}

.site-navigation .nav-link::after,
.site-navigation .nav-button::after {
  right: 0.48rem;
  bottom: 0;
  left: 0.48rem;
  height: 2px;
  background: var(--bgvp-fidelity-blue);
}

.site-navigation .site-nav-actions {
  flex: 0 0 auto;
  align-self: stretch;
  gap: clamp(0.2rem, 0.6vw, 0.55rem);
  margin-left: clamp(0.75rem, 1.5vw, 1.5rem);
}

.site-navigation .site-nav-action,
.site-navigation .site-nav-action.btn,
.bgvp-storefront-navigation .bgvp-storefront-actions a {
  min-width: 38px;
  min-height: var(--bgvp-navigation-item-height);
  padding: 0 0.15rem;
  color: #314056 !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 11px;
  line-height: 1.15;
}

.site-navigation .site-nav-action-symbol {
  width: 24px;
  height: 24px;
}

.site-navigation .site-nav-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.site-navigation .site-nav-action-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-navigation .site-nav-action:hover,
.site-navigation .site-nav-action:focus-visible,
.site-navigation .site-nav-action.is-active {
  color: var(--bgvp-fidelity-blue) !important;
  background: transparent;
}

.site-navigation .dropdown-menu {
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--bgvp-fidelity-line);
  border-radius: 4px;
  box-shadow: 0 14px 32px rgba(21, 42, 68, 0.12);
}

.site-navigation .dropdown-item {
  min-height: 40px;
  border-radius: 2px;
  color: #263141;
  font-size: 13px;
}

/* Four-point assurance strip. */
.bgvp-site .promise-bar {
  width: 100%;
  height: 110px;
  min-height: 110px;
  margin: 0;
  color: #263141;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid var(--bgvp-fidelity-line);
  box-shadow: none;
}

.bgvp-site .promise-bar > .container,
.bgvp-site .promise-bar .row {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
}

.bgvp-site .promise-bar .row {
  padding: 0;
}

.bgvp-site .promise-item {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 52px;
  border-right: 1px solid var(--bgvp-fidelity-line);
}

.bgvp-site .promise-item:first-child {
  padding-left: 70px;
}

.bgvp-site .promise-item:last-child {
  border-right: 0;
}

.bgvp-site .promise-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  fill: none;
  stroke: var(--bgvp-fidelity-blue);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bgvp-site .promise-item > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.bgvp-site .promise-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.bgvp-site .promise-title b {
  color: #5f6b7c;
  font-size: 11px;
  font-weight: 650;
}

.bgvp-site .promise-item strong {
  color: #1d2735;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.bgvp-site .promise-item > div > span:last-child {
  color: #5f6b7c;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.35;
  white-space: nowrap;
}

/* Editorial brand portfolio. */
.bgvp-site .home-brand-portfolio {
  position: relative;
  min-height: 0;
  padding: 48px 0 38px;
  overflow: hidden;
  background: linear-gradient(105deg, #ffffff 0%, #fbfcfe 60%, #f5f8fc 100%);
  border-bottom: 1px solid var(--bgvp-fidelity-line);
}

.bgvp-site .home-brand-portfolio::before {
  display: none;
}

.bgvp-site .home-brand-portfolio > .container,
.bgvp-site .product-section > .container {
  position: relative;
  width: 100%;
  max-width: none;
  padding-inline: var(--bgvp-fidelity-page-gutter) !important;
}

.bgvp-site .product-section > .container {
  max-width: 1068px;
  margin-inline: auto;
}

.bgvp-site .home-brand-technical-art {
  position: absolute;
  top: -16px;
  right: -56px;
  z-index: 0;
  width: min(50vw, 610px);
  margin: 0;
  pointer-events: none;
}

.bgvp-site .home-brand-technical-art img {
  width: 100%;
  opacity: 0.085;
  filter: grayscale(1) saturate(0.45) sepia(0.05) hue-rotate(175deg);
}

.bgvp-site .home-brand-heading {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 38px;
}

.bgvp-site .home-brand-heading p {
  display: none;
}

.bgvp-site .section-kicker {
  color: var(--bgvp-fidelity-blue);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.bgvp-site .home-brand-heading h2,
.bgvp-site .section-heading h2 {
  margin: 10px 0 0;
  color: #111b29;
  font-size: 26px;
  font-weight: 730;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.bgvp-site .home-brand-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.bgvp-site .home-primary-brand {
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  gap: 0;
  min-height: 270px;
  padding: 0;
  color: var(--bgvp-fidelity-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bgvp-site .home-primary-brand::before,
.bgvp-site .home-primary-brand::after {
  display: none;
}

.bgvp-site .home-primary-brand-copy {
  align-self: start;
  padding-right: 60px;
}

.bgvp-site .home-primary-brand-mark {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--bgvp-fidelity-blue);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.16em;
}

.bgvp-site .home-primary-brand-mark span + span {
  padding-left: 18px;
  border-left: 1px solid #bcc8d7;
}

.bgvp-site .home-primary-brand .section-kicker {
  display: none;
}

.bgvp-site .home-primary-brand h3 {
  margin: 0 0 6px;
  color: #0e1724;
  font-size: 44px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.015em;
}

.bgvp-site .home-primary-brand p {
  max-width: 430px;
  margin: 15px 0 0;
  color: #5b6675;
  font-size: 13px;
  line-height: 1.75;
}

.bgvp-site .home-primary-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 23px;
}

.bgvp-site .home-primary-brand-actions .btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 2px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.bgvp-site .home-primary-brand-actions .btn-primary {
  color: #fff;
  background: var(--bgvp-fidelity-blue);
  border-color: var(--bgvp-fidelity-blue);
}

.bgvp-site .home-primary-brand-actions .btn-secondary {
  color: var(--bgvp-fidelity-blue);
  background: #fff;
  border: 1px solid var(--bgvp-fidelity-blue);
}

.bgvp-site .home-primary-brand-service {
  align-self: stretch;
  padding: 0 0 0 38px;
  background: transparent;
  border: 0;
  border-left: 1px solid #cfd8e3;
}

.bgvp-site .home-primary-brand-service-label {
  color: var(--bgvp-fidelity-blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.bgvp-site .home-primary-brand-service ul {
  margin: 15px 0 0;
}

.bgvp-site .home-primary-brand-service li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0;
  padding: 12px 0;
  border-bottom: 1px solid #dfe5ec;
}

.bgvp-site .home-primary-brand-service li:last-child {
  border-bottom: 0;
}

.bgvp-site .home-primary-brand-service li > span {
  color: #243246;
  font-size: 12px;
  font-weight: 650;
}

.bgvp-site .home-primary-brand-service strong {
  margin: 0 0 3px;
  color: #1b2635;
  font-size: 13px;
  font-weight: 700;
}

.bgvp-site .home-primary-brand-service small {
  color: #778393;
  font-size: 11.5px;
  line-height: 1.5;
}

.bgvp-site .home-retail-brands {
  padding: 27px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bgvp-site .home-retail-brands-heading {
  align-items: end;
  margin-bottom: 16px;
}

.bgvp-site .home-retail-brands :is(h2, h3) {
  margin: 7px 0 0;
  color: #121c2a;
  font-size: 22px;
  font-weight: 720;
}

.bgvp-site .home-retail-brands-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.bgvp-site .home-retail-brands-count strong {
  color: var(--bgvp-fidelity-blue);
  font-size: 30px;
  font-weight: 760;
  line-height: 1;
}

.bgvp-site .home-retail-brands-count span {
  color: #647184;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bgvp-site .home-retail-brand-item,
.bgvp-site .home-retail-brand-item.is-static {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 16px;
  min-height: 48px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #303c4e;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.bgvp-site .home-retail-brand-item.is-static {
  grid-template-columns: 25px minmax(0, 1fr);
}

.bgvp-site .home-retail-brand-number {
  color: #5f6b7c;
  font-size: 12px;
}

.bgvp-site a.home-retail-brand-item:hover,
.bgvp-site a.home-retail-brand-item:focus-visible {
  color: var(--bgvp-fidelity-blue);
  background: #f1f6fc;
}

.bgvp-site .home-retail-brands-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.bgvp-site .home-retail-brands-toggle {
  min-height: 42px;
  padding: 0 0 0 16px;
  color: var(--bgvp-fidelity-blue);
  background: #fff;
  border: 1px solid #c7d2df;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
}

.bgvp-site .home-retail-brands-toggle-icon {
  width: 42px;
  height: 40px;
  margin-left: 14px;
  color: #27364a;
  background: #fff;
  border-left: 1px solid #c7d2df;
}

.bgvp-site .home-retail-brands-note {
  margin: 18px 0 0;
  color: #5f6b7c;
  font-size: 13px;
  line-height: 1.55;
}

/* Homepage product rail. */
.bgvp-site .product-section {
  padding: 38px 0 48px;
  background: #fbfcfe;
  border: 0;
}

.bgvp-site .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 20px;
}

.bgvp-site .section-heading p {
  margin: 9px 0 0;
  color: #5f6b7c;
  font-size: 13px;
  line-height: 1.55;
}

.bgvp-site .text-link {
  min-height: 38px;
  padding: 0 4px 7px;
  color: #27364a;
  border-bottom: 1px solid #9aa8b9;
  font-size: 12px;
  font-weight: 650;
}

.bgvp-site .product-section .row {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}













.storefront-surface .product-stock-state {
  padding: 2px 5px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
}









/* Shared footer, matching the mockup's quiet ice-white ending. */
.site-footer {
  padding: 0;
  color: #5f6b7b;
  background: #f6f8fb;
  border-top: 1px solid #d9e1e9;
  box-shadow: none;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.65fr) repeat(3, minmax(115px, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
  max-width: none;
  padding: 26px var(--bgvp-fidelity-page-gutter);
}

.site-footer-brand > a {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  align-items: center;
  padding: 0;
  background: transparent;
}

.site-footer-brand .yuemao-store-logo,
.footer-brand .yuemao-store-logo {
  width: auto;
  max-width: 96px;
  height: auto;
  max-height: 48px;
}

.site-footer-brand p {
  max-width: 290px;
  margin: 12px 0 0;
  color: #5b6776;
  font-size: 11px;
  line-height: 1.75;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 5px;
}

.site-footer nav h2 {
  margin: 0 0 9px;
  color: #223047;
  font-size: 12px;
  font-weight: 720;
}

.site-footer nav a,
.footer-logout {
  min-height: 24px;
  color: #56626f;
  font-size: 11px;
  line-height: 1.45;
}

.site-footer-bottom {
  display: flex;
  width: calc(100% - (2 * var(--bgvp-fidelity-page-gutter)));
  max-width: none;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  margin-inline: var(--bgvp-fidelity-page-gutter);
  padding: 12px 0;
  color: var(--bgvp-fidelity-muted);
  border-top: 1px solid #dfe5ec;
  font-size: 10px;
}

/* Responsive extension derived from the completed desktop reference. */
@media (max-width: 1199.98px) and (min-width: 992px) {
  .site-navigation > .container-xl,
  .bgvp-storefront-navigation > .container-xl {
    padding-inline: var(--bgvp-fidelity-page-gutter);
  }

  .site-navigation .site-brand,
  .bgvp-storefront-navigation .site-brand {
    min-width: 102px;
    margin-right: 13px;
  }

  .site-navigation .nav-link,
  .site-navigation .nav-button,
  .bgvp-storefront-navigation .bgvp-storefront-link {
    padding-inline: 0.38rem !important;
  }
}

@media (max-width: 991.98px) {
  .site-navigation,
  .bgvp-storefront-navigation,
  #mainNav.bgvp-storefront-navigation,
  #mainNav.bgvp-storefront-navigation.navbar-shrink {
    min-height: 64px;
    max-height: none;
    padding: 0;
  }

  .site-navigation > .container-xl,
  .bgvp-storefront-navigation > .container-xl {
    min-height: 64px;
    padding-inline: 16px;
  }

  .site-navigation .site-brand,
  .bgvp-storefront-navigation .site-brand {
    min-width: 0;
    min-height: 56px;
    margin-right: auto;
    padding: 0;
  }

  .site-navigation .yuemao-store-logo,
  .bgvp-storefront-navigation .yuemao-store-logo {
    max-width: 82px;
    max-height: 48px;
  }

  .site-navigation .navbar-toggler,
  .bgvp-storefront-navigation .bgvp-storefront-toggler {
    position: relative;
    display: inline-flex;
    box-sizing: border-box;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #14263d;
    background: transparent;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
  }

  .site-navigation .navbar-toggler:hover,
  .bgvp-storefront-navigation .bgvp-storefront-toggler:hover {
    color: var(--bgvp-fidelity-blue);
    background: #f1f5fa;
    border: 0;
    box-shadow: none;
  }

  .site-navigation .navbar-toggler:focus-visible,
  .bgvp-storefront-navigation .bgvp-storefront-toggler:focus-visible {
    color: var(--bgvp-fidelity-blue);
    background: #f1f5fa;
    border: 0;
    outline: 2px solid rgba(7, 95, 199, 0.35);
    outline-offset: 1px;
    box-shadow: none;
  }

  .site-navigation .navbar-toggler > span,
  .site-navigation .navbar-toggler > span::before,
  .site-navigation .navbar-toggler > span::after,
  .storefront-surface .site-navigation .navbar-toggler > span,
  .storefront-surface .site-navigation .navbar-toggler > span::before,
  .storefront-surface .site-navigation .navbar-toggler > span::after,
  .admin-surface .site-navigation .navbar-toggler > span,
  .admin-surface .site-navigation .navbar-toggler > span::before,
  .admin-surface .site-navigation .navbar-toggler > span::after,
  .bgvp-storefront-navigation .bgvp-storefront-toggler > span,
  .bgvp-storefront-navigation .bgvp-storefront-toggler > span::before,
  .bgvp-storefront-navigation .bgvp-storefront-toggler > span::after {
    display: block;
    width: 24px;
    height: 2px;
    content: "";
    color: inherit !important;
    background: currentColor !important;
    border: 0;
    border-radius: 99px;
    font-size: 0;
    filter: none;
  }

  .site-navigation .navbar-toggler > span,
  .storefront-surface .site-navigation .navbar-toggler > span,
  .admin-surface .site-navigation .navbar-toggler > span,
  .bgvp-storefront-navigation .bgvp-storefront-toggler > span {
    position: relative;
  }

  .site-navigation .navbar-toggler > span::before,
  .site-navigation .navbar-toggler > span::after,
  .storefront-surface .site-navigation .navbar-toggler > span::before,
  .storefront-surface .site-navigation .navbar-toggler > span::after,
  .admin-surface .site-navigation .navbar-toggler > span::before,
  .admin-surface .site-navigation .navbar-toggler > span::after,
  .bgvp-storefront-navigation .bgvp-storefront-toggler > span::before,
  .bgvp-storefront-navigation .bgvp-storefront-toggler > span::after {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center;
    transition: transform 180ms ease;
  }

  .site-navigation .navbar-toggler > span::before,
  .bgvp-storefront-navigation .bgvp-storefront-toggler > span::before {
    transform: translateY(-7px);
  }

  .site-navigation .navbar-toggler > span::after,
  .bgvp-storefront-navigation .bgvp-storefront-toggler > span::after {
    transform: translateY(7px);
  }

  .site-navigation .navbar-toggler[aria-expanded="true"] > span,
  .bgvp-storefront-navigation .bgvp-storefront-toggler[aria-expanded="true"] > span {
    color: var(--bgvp-fidelity-blue);
    background: transparent !important;
  }

  .site-navigation .navbar-toggler[aria-expanded="true"] > span::before,
  .bgvp-storefront-navigation .bgvp-storefront-toggler[aria-expanded="true"] > span::before {
    transform: rotate(45deg);
  }

  .site-navigation .navbar-toggler[aria-expanded="true"] > span::after,
  .bgvp-storefront-navigation .bgvp-storefront-toggler[aria-expanded="true"] > span::after {
    transform: rotate(-45deg);
  }

  .site-navigation .navbar-collapse,
  .storefront-surface .site-navigation .navbar-collapse,
  .bgvp-storefront-navigation .bgvp-storefront-collapse {
    width: 100%;
    margin: 7px 0 12px;
    padding: 8px;
    color: #263141;
    background: rgba(255, 255, 255, 0.995);
    border: 1px solid var(--bgvp-fidelity-line);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(27, 48, 73, 0.13);
  }

  .site-navigation .site-navigation-links {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .site-navigation .navbar-collapse :is(.nav-link, .nav-button),
  .storefront-surface .site-navigation .navbar-collapse :is(.nav-link, .nav-button) {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 0 13px !important;
    color: #263141;
    background: transparent;
    border: 0;
    border-radius: 5px;
    box-shadow: none;
    font-size: 14px;
  }

  .site-navigation .navbar-collapse :is(.nav-link, .nav-button):hover,
  .site-navigation .navbar-collapse :is(.nav-link, .nav-button):focus-visible,
  .site-navigation .navbar-collapse :is(.nav-link, .nav-button).is-active {
    color: var(--bgvp-fidelity-blue);
    background: #eef5fd;
    box-shadow: inset 2px 0 0 var(--bgvp-fidelity-blue);
  }

  .site-navigation .navbar-collapse :is(.nav-link, .nav-button)::after {
    display: none;
  }

  .site-navigation .site-nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid var(--bgvp-fidelity-soft-line);
  }

  .site-navigation .site-nav-actions > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 4px);
    justify-self: center;
  }

  .site-navigation .navbar-collapse .site-nav-action,
  .storefront-surface .site-navigation .navbar-collapse .site-nav-action {
    min-height: 48px;
    padding: 5px 8px;
    color: #314056 !important;
    background: #f8fafc;
    border: 1px solid var(--bgvp-fidelity-line);
    border-radius: 6px;
    font-size: 12px;
    box-shadow: none;
  }

  .site-navigation .navbar-collapse .site-nav-action:hover,
  .site-navigation .navbar-collapse .site-nav-action:focus-visible,
  .site-navigation .navbar-collapse .site-nav-action.is-active {
    color: var(--bgvp-fidelity-blue) !important;
    background: #eef5fd;
    border-color: #a9c6e8;
  }



  .bgvp-site .promise-bar {
    height: auto;
    min-height: 0;
  }

  .bgvp-site .promise-bar > .container,
  .bgvp-site .promise-bar .row {
    padding: 0;
  }

  .bgvp-site .promise-item {
    min-height: 94px;
    padding: 0 20px;
    border-bottom: 1px solid var(--bgvp-fidelity-line);
  }

  .bgvp-site .promise-item:nth-child(2n) {
    border-right: 0;
  }

  .bgvp-site .home-primary-brand {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .bgvp-site .home-primary-brand-copy {
    padding-right: 0;
  }

  .bgvp-site .home-primary-brand-service {
    padding: 26px 0 0;
    border-top: 1px solid #cfd8e3;
    border-left: 0;
  }

  .site-footer-grid {
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(105px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --bgvp-fidelity-page-gutter: 20px;
  }

  .bgvp-site .promise-item {
    gap: 11px;
    min-height: 90px;
    padding: 0 12px;
  }

  .bgvp-site .promise-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .bgvp-site .promise-title {
    gap: 7px;
  }

  .bgvp-site .promise-item strong {
    font-size: 13px;
  }

  .bgvp-site .promise-item > div > span:last-child {
    font-size: 12.5px;
    white-space: normal;
  }

  .bgvp-site .home-brand-portfolio {
    padding: 38px 0 32px;
  }

  .bgvp-site .home-brand-technical-art {
    top: 24px;
    right: -110px;
    width: 520px;
  }

  .bgvp-site .home-brand-heading {
    margin-bottom: 32px;
  }

  .bgvp-site .home-brand-heading h2,
  .bgvp-site .section-heading h2 {
    font-size: 23px;
  }

  .bgvp-site .home-primary-brand h3 {
    font-size: 38px;
  }

  .bgvp-site .home-primary-brand-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .bgvp-site .home-primary-brand-actions .btn {
    min-width: 0;
    padding-inline: 13px;
    font-size: 12px;
  }

  .bgvp-site .home-retail-brand-item,
  .bgvp-site .home-retail-brand-item.is-static {
    min-height: 48px;
    padding-inline: 8px;
  }

  .bgvp-site .section-heading {
    display: grid;
    gap: 15px;
    align-items: start;
  }

  .bgvp-site .text-link {
    width: fit-content;
  }

  .bgvp-site .product-section .row > .col {
    width: 100%;
    flex: 0 0 100%;
  }





  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-block: 30px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer nav a,
  .footer-logout {
    min-height: 44px;
    font-size: 13px;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-block: 14px;
  }

  .storefront-surface :is(.section-kicker, .brand-section-label, .brand-content-hero > span) {
    font-size: 12px;
    line-height: 1.4;
  }



  .storefront-surface .product-stock-state {
    font-size: 11px;
  }



  .storefront-surface .product-stock-state {
    justify-self: start;
  }
}

/* Unreferenced storefront pages inherit the completed homepage language. */
.storefront-surface:not(.bgvp-site) {
  background: #fbfcfe;
}

.storefront-surface:not(.bgvp-site) .site-main {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 30px var(--bgvp-fidelity-page-gutter) 52px;
}

.storefront-surface .page-section {
  margin-bottom: 32px;
}

.storefront-surface :is(.catalog-hero, .brand-content-hero, .storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header, .managed-content-page-header) {
  position: relative;
  min-height: 190px;
  margin: 0 0 28px;
  padding: 36px 40px;
  overflow: hidden;
  color: var(--bgvp-fidelity-ink);
  background:
    radial-gradient(circle at 82% 26%, rgba(7, 95, 199, 0.08), transparent 26%),
    linear-gradient(105deg, #ffffff 0%, #f5f8fc 100%);
  border: 1px solid var(--bgvp-fidelity-line);
  border-radius: 4px;
  box-shadow: none;
}

.storefront-surface :is(.catalog-hero, .brand-content-hero, .storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header, .managed-content-page-header)::before,
.storefront-surface :is(.catalog-hero, .brand-content-hero, .storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header, .managed-content-page-header)::after {
  opacity: 0.18;
}

.storefront-surface :is(.catalog-hero, .brand-content-hero, .storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header, .managed-content-page-header) .section-kicker {
  color: var(--bgvp-fidelity-blue);
}

.storefront-surface :is(.catalog-hero, .brand-content-hero, .storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header, .managed-content-page-header) h1,
.storefront-surface :is(.account-panel-header, .member-dashboard-header, .order-page-header, .legal-page-header) h1 {
  margin: 9px 0 0;
  color: #111c2b;
  font-size: clamp(32px, 3.2vw, 40px);
  font-weight: 730;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.storefront-surface :is(.catalog-hero, .brand-content-hero, .storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header, .managed-content-page-header) p:not(.section-kicker) {
  max-width: 680px;
  margin: 14px 0 0;
  color: #647183;
  font-size: 14px;
  line-height: 1.75;
}

.storefront-surface .catalog-hero-signal {
  color: var(--bgvp-fidelity-blue);
  opacity: 0.72;
  filter: none;
}

.storefront-surface .catalog-category-nav {
  display: flex;
  gap: 26px;
  margin: 0 0 22px;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bgvp-fidelity-line);
}

.storefront-surface .catalog-category-nav a {
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 4px;
  color: #4d5a6d;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
}

.storefront-surface .catalog-category-nav a:hover,
.storefront-surface .catalog-category-nav a:focus-visible,
.storefront-surface .catalog-category-nav a.is-active {
  color: var(--bgvp-fidelity-blue);
  background: transparent;
  border-bottom-color: var(--bgvp-fidelity-blue);
}

.storefront-surface :is(.catalog-filter, .legal-card, .cart-items-panel, .cart-summary-panel, .checkout-form-section, .checkout-summary, .product-purchase-panel, .product-spec-card, .member-panel, .order-panel) {
  background: #fff;
  border: 1px solid var(--bgvp-fidelity-line);
  border-radius: 4px;
  box-shadow: none;
}


.storefront-surface .product-detail-main-frame {
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--bgvp-fidelity-line);
  border-radius: 4px;
  box-shadow: none;
}

.storefront-surface .product-detail-info h1 {
  color: #111c2b;
  font-size: clamp(32px, 3vw, 38px);
  font-weight: 730;
  line-height: 1.2;
}

.storefront-surface .catalog-filter {
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
}

.storefront-surface :is(.catalog-filter-field, .account-form, .checkout-form-section, .stacked-form) label {
  color: #425168;
  font-size: 12px;
  font-weight: 650;
}

.storefront-surface :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([data-quantity-stepper] *), select, textarea) {
  min-height: 48px;
  color: #26354a;
  background: #fff;
  border: 1px solid #cdd7e2;
  border-radius: 3px;
  box-shadow: none;
  font-size: 14px;
}

.storefront-surface textarea {
  min-height: 112px;
}

.storefront-surface :is(input, select, textarea):focus {
  border-color: #6ea2db;
  box-shadow: 0 0 0 3px rgba(7, 95, 199, 0.1);
}

.storefront-surface .btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 3px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 680;
}

.storefront-surface .btn-primary {
  color: #fff;
  background: var(--bgvp-fidelity-blue);
  border-color: var(--bgvp-fidelity-blue);
}

.storefront-surface .btn-primary:hover,
.storefront-surface .btn-primary:focus-visible {
  background: var(--bgvp-fidelity-blue-dark);
  border-color: var(--bgvp-fidelity-blue-dark);
}

.storefront-surface :is(.btn-secondary, .btn-outline-primary) {
  color: var(--bgvp-fidelity-blue);
  background: #fff;
  border-color: #a9bdd3;
}

.storefront-surface :is(.btn-secondary, .btn-outline-primary):hover,
.storefront-surface :is(.btn-secondary, .btn-outline-primary):focus-visible {
  color: #fff;
  background: var(--bgvp-fidelity-blue);
  border-color: var(--bgvp-fidelity-blue);
}

.storefront-surface :is(.catalog-result-heading, .storefront-page-header, .member-dashboard-header, .order-page-header, .legal-page-header) {
  border-color: var(--bgvp-fidelity-line);
}

.storefront-surface .catalog-result-heading h2,
.storefront-surface :is(.cart-summary-panel, .checkout-summary, .legal-card, .product-spec-card) h2 {
  color: #162337;
  font-weight: 710;
}





.storefront-surface .account-story {
  color: #eaf2fb;
  background: linear-gradient(145deg, #111f33, #07111f);
  border-radius: 0;
}

.storefront-surface .checkout-progress {
  margin-bottom: 26px;
  color: #687487;
  background: #fff;
  border: 1px solid var(--bgvp-fidelity-line);
  border-radius: 4px;
}

.storefront-surface .checkout-progress > .is-current {
  color: var(--bgvp-fidelity-blue);
}

.storefront-surface :is(.data-table, .cart-table) {
  background: #fff;
  border-color: var(--bgvp-fidelity-line);
  border-radius: 3px;
  box-shadow: none;
}

.storefront-surface :is(.data-table, .cart-table) thead {
  color: #26354a;
  background: #f7f9fc;
}

.storefront-surface :is(.data-table, .cart-table) th {
  border-color: var(--bgvp-fidelity-line);
  font-size: 13px;
  font-weight: 650;
}

.storefront-surface :is(.data-table, .cart-table) td {
  border-color: #e2e7ed;
  font-size: 14px;
}

.storefront-surface .table-action-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: var(--bgvp-fidelity-blue);
  border: 1px solid var(--bgvp-fidelity-blue);
  border-radius: 3px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.storefront-surface :is(.friendly-error-page, .newebpay-transfer-page .store-empty-state) {
  width: 100%;
  max-width: 920px;
  min-height: 320px;
  margin: 36px auto 72px;
  padding: 48px;
  color: #223047;
  background: linear-gradient(105deg, #fff, #f6f9fc);
  border: 1px solid var(--bgvp-fidelity-line);
  border-radius: 4px;
  box-shadow: none;
  text-align: center;
}

.storefront-surface .friendly-error-page .action-row,
.storefront-surface .newebpay-transfer-page .store-empty-state form,
.storefront-surface .newebpay-transfer-page .store-map-return-actions {
  justify-content: center;
}

@media (max-width: 767.98px) {
  .storefront-surface:not(.bgvp-site) .site-main {
    padding: 20px 16px 36px;
  }

  .storefront-surface :is(.catalog-hero, .brand-content-hero, .storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header, .managed-content-page-header) {
    min-height: 0 !important;
    margin-bottom: 18px;
    padding: 26px 20px;
  }

  .storefront-surface :is(.catalog-hero, .brand-content-hero, .storefront-page-header, .legal-page-header, .member-dashboard-header, .order-page-header, .managed-content-page-header) h1,
  .storefront-surface :is(.account-panel-header, .member-dashboard-header, .order-page-header, .legal-page-header) h1 {
    font-size: 30px;
  }

  .storefront-surface .catalog-category-nav {
    gap: 18px;
    margin-bottom: 16px;
  }

  .storefront-surface .catalog-filter {
    padding: 12px;
  }





  .storefront-surface .btn {
    width: auto;
    min-height: 48px;
  }

  .storefront-surface :is(.friendly-error-page, .newebpay-transfer-page .store-empty-state) {
    min-height: 0;
    margin: 0 auto 36px;
    padding: 36px 20px;
  }
}

@media (max-width: 389.98px) {

  .bgvp-site .home-primary-brand-actions {
    flex-wrap: wrap !important;
  }

  .bgvp-site .home-primary-brand-actions .btn {
    flex: 0 0 auto;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-navigation .navbar-toggler > span::before,
  .site-navigation .navbar-toggler > span::after,
  .bgvp-storefront-navigation .bgvp-storefront-toggler > span::before,
  .bgvp-storefront-navigation .bgvp-storefront-toggler > span::after {
    transition: none;
  }
}

/* Administration reference canvas --------------------------------------- */
.admin-surface {
  color: #172235;
  background: #fff;
}

.admin-surface .site-utility-bar {
  display: block;
  height: 49px;
  min-height: 49px;
  color: #26344a;
  background: #fbfcfe;
  border-bottom: 1px solid #dce3eb;
  font-size: 14px;
}

.admin-surface .site-utility-bar > .container-xl {
  width: 100%;
  max-width: none;
  height: 49px;
  padding-inline: 29px;
}

.admin-surface .site-utility-bar > .container-xl > span:first-child {
  color: #26344a;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.admin-surface .site-utility-bar a {
  color: var(--bgvp-fidelity-blue);
  font-weight: 650;
}

.admin-surface .site-navigation {
  min-height: var(--bgvp-navigation-height);
  height: var(--bgvp-navigation-height);
  background: #fff;
  border-bottom: 1px solid #dce3eb;
  box-shadow: none;
}

.admin-surface .site-navigation > .container-xl {
  min-height: var(--bgvp-navigation-height);
  height: var(--bgvp-navigation-height);
  padding-inline: 29px;
}

.admin-surface .site-navigation .site-brand {
  min-width: 96px;
  min-height: 64px;
  margin-right: var(--bgvp-navigation-brand-gap);
}

.admin-surface .site-navigation .yuemao-store-logo {
  max-width: 94px;
  max-height: 56px;
}

.admin-surface .site-navigation-links {
  height: var(--bgvp-navigation-height);
  gap: var(--bgvp-navigation-item-gap);
}

.admin-surface .site-navigation .nav-link,
.admin-surface .site-navigation .nav-button {
  min-height: var(--bgvp-navigation-item-height);
  padding: 0 0.48rem !important;
  color: #223047;
  font-size: var(--bgvp-navigation-link-size);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.admin-surface .site-navigation .nav-link::after,
.admin-surface .site-navigation .nav-button::after {
  right: 0.48rem;
  left: 0.48rem;
}

.admin-surface .site-navigation .site-nav-actions {
  height: var(--bgvp-navigation-height);
  margin-left: clamp(0.75rem, 1.5vw, 1.5rem);
}

.admin-surface .site-navigation .site-nav-action {
  min-height: var(--bgvp-navigation-item-height);
  color: #314056 !important;
}

.admin-surface .site-main {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}



.admin-surface .page-heading {
  min-height: 44px;
  align-items: center;
  gap: 41px;
  margin: 0 0 31px;
  padding: 0;
  border: 0;
}

.admin-surface .page-heading::before,
.admin-surface .page-heading::after {
  display: none;
}

/* The h1 also renders the YUEMAO ADMIN eyebrow as a block ::before, so a fixed 40px
   box cannot hold eyebrow + title: the title spilled onto the description below it. */
.admin-surface .page-heading h1 {
  margin: 0;
  color: #14233a;
  font-size: 32px;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Chinese glyphs fill about 1.46em, more than the 1.25 line box, so the title needs
   a real step above the description at every width — not only on phones. */
.admin-surface .page-heading > div > p {
  margin-top: 8px;
}

.admin-surface .admin-order-page .page-heading {
  justify-content: flex-start;
}

.admin-surface .admin-order-page .page-heading .section-kicker {
  display: none;
}

.admin-surface .admin-order-page .page-heading .btn {
  min-height: 36px;
  height: 36px;
  margin: 0;
  padding: 0 15px;
  color: #29415f;
  background: #fff;
  border: 1px solid #ccd7e3;
  border-radius: 4px;
  box-shadow: none;
  font-size: 13px;
}

.admin-surface .admin-order-mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-surface .admin-order-mail-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--bgvp-fidelity-blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-surface .admin-order-queues,
.admin-surface .admin-management-tabs {
  display: flex;
  min-height: 58px;
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin: 0 0 28px;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfd8e3;
}

.admin-surface .admin-order-queues a,
.admin-surface .admin-management-tab {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  padding: 0 20px;
  color: #27354a;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.admin-surface .admin-order-queues a:first-child,
.admin-surface .admin-management-tab:first-child {
  padding-left: 20px;
}

.admin-surface .admin-order-queues a:hover,
.admin-surface .admin-order-queues a:focus-visible,
.admin-surface .admin-order-queues a.is-active,
.admin-surface .admin-management-tab:hover,
.admin-surface .admin-management-tab:focus-visible,
.admin-surface .admin-management-tab.is-active {
  color: var(--bgvp-fidelity-blue);
  background: transparent;
  border-bottom-color: var(--bgvp-fidelity-blue);
}

.admin-surface .admin-newebpay-callback-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  min-height: 76px;
  align-items: center;
  margin: 0 0 24px;
  padding: 14px 18px;
  color: #5a4823;
  background: #fffbf1;
  border: 1px solid #e9c567;
  border-radius: 5px;
  box-shadow: none;
}

.admin-surface .admin-order-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 130px 110px;
  gap: 12px;
  min-height: 52px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-surface .admin-order-keyword {
  position: relative;
  min-height: 52px;
}

.admin-surface .admin-order-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #42536b;
  stroke-width: 1.7;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-surface .admin-order-keyword input {
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 0 16px 0 48px;
  color: #223047;
  background: #fff;
  border: 1px solid #cad5e1;
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
}

.admin-surface .admin-order-search > .btn,
.admin-surface .admin-order-search > [data-auto-search-submit] {
  display: inline-flex !important;
  width: 110px !important;
  height: 52px !important;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #fff;
  background: var(--bgvp-fidelity-blue);
  border: 1px solid var(--bgvp-fidelity-blue);
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}

.admin-surface .admin-order-search-note {
  margin: 13px 0 20px;
  color: #5b6776;
  font-size: 12px;
  line-height: 1.5;
}

.admin-surface .data-table,
.admin-surface .admin-order-table {
  width: 100%;
  table-layout: fixed;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfd8e3;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 3px;
  box-shadow: none;
}

.admin-surface .data-table.admin-card-table {
  border-radius: 3px !important;
}

.admin-surface .search-form {
  background: #fff;
  border: 1px solid var(--bgvp-fidelity-line);
  border-radius: 4px !important;
  box-shadow: none;
}

.admin-surface :is(.stacked-form, .product-form, .home-setting-form) {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
}

.admin-surface :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea) {
  min-height: 48px;
  color: #26354a;
  background: #fff;
  border: 1px solid #cdd7e2;
  border-radius: 3px !important;
  box-shadow: none;
}

.admin-surface :is(input, select, textarea):focus {
  border-color: #6ea2db;
  box-shadow: 0 0 0 3px rgba(7, 95, 199, 0.1);
}

.admin-surface .btn {
  min-height: 44px;
  border-radius: 3px !important;
  box-shadow: none;
  font-size: 14px;
  font-weight: 680;
}

.admin-surface .btn-primary {
  color: #fff;
  background: var(--bgvp-fidelity-blue);
  border-color: var(--bgvp-fidelity-blue);
}

.admin-surface :is(.btn-secondary, .btn-outline-primary) {
  color: var(--bgvp-fidelity-blue);
  background: #fff;
  border-color: #a9bdd3;
}

.bgvp-image-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #758397;
  background: #f3f6f9;
  border: 1px dashed #c8d3df;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.news-admin-cover-preview .bgvp-image-fallback {
  width: 100%;
  min-height: 180px;
  padding: 20px;
}

.home-image-card > .bgvp-image-fallback {
  width: 100%;
  min-height: 173px;
  padding: 16px;
}

.admin-surface.controller-shippingsetting .page-heading {
  max-width: 780px;
  justify-content: flex-start;
}

.admin-surface .data-table thead,
.admin-surface .admin-order-table thead {
  color: #223047;
  background: #f7f9fc;
}

.admin-surface .data-table th,
.admin-surface .admin-order-table th {
  height: 49px;
  padding: 0 20px;
  color: #223047;
  background: #f7f9fc;
  border: 0;
  border-bottom: 1px solid #cfd8e3;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
}

.admin-surface .admin-order-table th:nth-child(1),
.admin-surface .admin-order-table td:nth-child(1) { width: 18%; }
.admin-surface .admin-order-table th:nth-child(2),
.admin-surface .admin-order-table td:nth-child(2) { width: 23%; }
.admin-surface .admin-order-table th:nth-child(3),
.admin-surface .admin-order-table td:nth-child(3) { width: 14%; }
.admin-surface .admin-order-table th:nth-child(4),
.admin-surface .admin-order-table td:nth-child(4) { width: 15%; }
.admin-surface .admin-order-table th:nth-child(5),
.admin-surface .admin-order-table td:nth-child(5) { width: 14%; }
.admin-surface .admin-order-table th:nth-child(6),
.admin-surface .admin-order-table td:nth-child(6) { width: 16%; }

.admin-surface .data-table td,
.admin-surface .admin-order-table td {
  height: 76px;
  padding: 8px 20px;
  color: #27364a;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #dce3ea;
  font-size: 14px;
  line-height: 1.45;
  vertical-align: middle;
}

.admin-surface .admin-order-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-surface .admin-order-table td > strong {
  color: #173c73;
  font-size: 14px;
  font-weight: 700;
}

.admin-surface .admin-order-table td > small {
  margin-top: 3px;
  color: #6d7b8e;
  font-size: 12px;
}

.admin-surface .admin-order-state-stack {
  gap: 5px;
}

.admin-surface .order-state {
  font-size: 12px;
}

.admin-surface .admin-order-work-tag,
.admin-surface .admin-shipment-attention-tag {
  border-radius: 3px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.admin-surface .table-action-link,
.admin-surface .table-action-button {
  display: inline-flex;
  min-width: 102px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: #0756b5;
  background: #fff;
  border: 1px solid #c7d3df;
  border-radius: 4px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

/* This generic colour is more specific than .table-action-danger in site.css and
   loads after it, so the delete action needs its red restated here. */
.admin-surface .table-action-danger,
.admin-surface .table-action-danger:hover,
.admin-surface .table-action-danger:focus-visible {
  color: var(--bgvp-color-admin-danger);
  border-color: #d9b3b6;
}

.admin-surface .pagination {
  margin-top: 0;
  padding: 16px 20px;
  border: 1px solid #cfd8e3;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.admin-footer {
  color: #5b6776;
  background: #f7f9fc;
  border-top: 1px solid #dce3eb;
}

.admin-footer a {
  color: var(--bgvp-fidelity-blue);
}

@media (min-width: 1200px) {
  .admin-surface .site-navigation > .container-xl {
    position: relative;
  }

  .admin-surface .site-navigation-links {
    position: absolute;
    left: clamp(380px, 32.55vw, 500px);
    gap: clamp(50px, 5.2vw, 80px);
    margin: 0 !important;
  }

  .admin-surface .site-navigation .site-nav-actions {
    position: absolute;
    right: 29px;
    margin: 0;
  }

  .admin-surface .admin-order-table td.admin-order-state-stack {
    display: table-cell;
  }

  .admin-surface .admin-order-table td.admin-order-state-stack > * {
    display: flex;
    width: fit-content;
    margin-bottom: 5px;
  }

  .admin-surface .admin-order-table td.admin-order-state-stack > *:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 1199.98px) {
  .admin-surface .site-utility-bar {
    display: none;
  }

  .admin-surface .site-navigation {
    height: auto;
    min-height: 64px;
  }

  .admin-surface .site-navigation > .container-xl {
    height: auto;
    min-height: 64px;
    padding-inline: 16px;
  }

  .admin-surface .site-navigation .site-brand {
    min-width: 0;
    min-height: 56px;
    margin-right: auto;
  }

  .admin-surface .site-navigation .navbar-collapse {
    width: 100%;
  }



  .admin-surface .admin-order-table,
  .admin-surface .admin-order-table tbody {
    display: block;
  }

  .admin-surface .admin-order-table th,
  .admin-surface .admin-order-table td {
    width: 100% !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .admin-surface .site-navigation,
  .admin-surface .site-navigation > .container-xl {
    height: 82px;
    min-height: 82px;
  }

  .admin-surface .site-navigation > .container-xl {
    padding-inline: 16px;
  }

  .admin-surface .site-navigation .site-brand {
    min-width: 92px;
    min-height: 64px;
    margin-right: 18px;
  }

  .admin-surface .site-navigation .yuemao-store-logo {
    max-width: 94px;
    max-height: 56px;
  }

  .admin-surface .site-navigation .navbar-collapse {
    position: static;
    display: flex !important;
    width: auto;
    max-height: none;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .admin-surface .site-navigation-links {
    display: flex;
    width: auto !important;
    height: 82px;
    flex: 0 1 auto;
    gap: clamp(8px, 1vw, 14px);
    margin: 0 auto !important;
  }

  .admin-surface .site-navigation .nav-item,
  .admin-surface .site-navigation .nav-link,
  .admin-surface .site-navigation .nav-button {
    width: auto;
  }

  .admin-surface .site-navigation .nav-link,
  .admin-surface .site-navigation .nav-button {
    height: 81px;
    min-height: 81px;
    padding: 0 4px !important;
    font-size: 12.5px;
  }

  .admin-surface .site-navigation .site-nav-actions {
    position: static;
    display: flex;
    width: 82px !important;
    height: 82px;
    flex: 0 0 82px;
    gap: 6px;
    margin: 0 0 0 12px;
    padding: 0;
    border: 0;
  }

  .admin-surface .site-navigation .site-nav-actions > :last-child:nth-child(odd) {
    width: auto;
  }

  .admin-surface .site-navigation .site-nav-action {
    width: 38px !important;
    min-width: 38px;
    height: 81px;
    min-height: 81px;
    flex: 0 0 38px;
    padding-inline: 2px;
    background: transparent;
    border: 0;
  }

  .admin-surface .site-navigation .navbar-collapse .dropdown-menu {
    position: absolute;
    width: auto;
    min-width: 220px;
  }
}

@media (max-width: 767.98px) {


  .admin-surface .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }

  .admin-surface .admin-order-page .page-heading {
    flex-wrap: nowrap;
  }

  .admin-surface .admin-order-page .page-heading > div {
    width: auto;
    flex: 0 0 auto;
  }

  .admin-surface .admin-order-page .page-heading .btn {
    width: auto !important;
    flex: 0 0 auto;
  }

  .admin-surface .page-heading h1 {
    font-size: 26px;
  }

  .admin-surface .admin-order-queues,
  .admin-surface .admin-management-tabs {
    min-height: 50px;
    gap: 8px;
    margin-bottom: 18px;
  }

  .admin-surface .admin-order-queues a,
  .admin-surface .admin-management-tab {
    min-height: 50px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .admin-surface .admin-order-search {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 9px;
  }

  .admin-surface .admin-order-keyword {
    grid-column: 1 / -1;
  }

  .admin-surface .admin-order-search > .btn,
  .admin-surface .admin-order-search > [data-auto-search-submit] {
    width: 100% !important;
  }

  .admin-surface .admin-card-table tbody {
    gap: 10px;
  }

  .admin-surface .admin-card-table tbody tr {
    padding: 12px;
    border-radius: 5px;
    box-shadow: none;
  }

  .admin-surface .admin-card-table td,
  .admin-surface .admin-order-table td {
    width: 100% !important;
    height: auto;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
  }

  .admin-surface .admin-order-table td > strong {
    font-size: 15px;
  }

  .admin-surface .admin-order-table td > small,
  .admin-surface .admin-order-table :is(.order-state, .admin-order-work-tag, .admin-shipment-attention-tag) {
    font-size: 12px;
  }

  .admin-surface .table-action-link,
  .admin-surface .table-action-button {
    width: auto;
    min-width: 112px;
    min-height: 44px;
  }

  .admin-surface .admin-card-table .table-action-link,
  .admin-surface .admin-card-table .table-action-button {
    width: auto !important;
    justify-self: end;
  }
}

/* Issue #82: mobile acceptance remediation after physical-device review. */
.storefront-surface .product-spec-card {
  color: var(--bgvp-fidelity-ink);
}

.storefront-surface .product-spec-heading {
  border-bottom-color: var(--bgvp-fidelity-line);
}

.storefront-surface .product-spec-heading > span {
  color: var(--bgvp-fidelity-blue);
}

.storefront-surface .product-specification-text {
  color: #4b596b;
}

.storefront-surface .brand-content-hero > span,
.storefront-surface .brand-section-label {
  color: var(--bgvp-fidelity-blue);
}

.storefront-surface .cart-summary-panel {
  color: var(--bgvp-fidelity-ink);
}

.storefront-surface .cart-summary-panel dt {
  color: #687587;
}

.storefront-surface .cart-summary-panel dd,
.storefront-surface .cart-summary-panel .cart-summary-total > span {
  color: #27364a;
}

.storefront-surface .cart-summary-panel .cart-summary-total > strong {
  color: var(--bgvp-fidelity-blue);
}

.storefront-surface .cart-summary-panel .cart-secure-note,
.storefront-surface .cart-remove-button {
  color: #647287;
}

.bgvp-site .home-retail-brands-toggle {
  min-height: 44px;
}

@media (max-width: 991.98px) {
  .admin-surface .site-navigation,
  .admin-surface .site-navigation > .container-xl {
    height: auto;
    max-height: none;
  }

  .admin-surface .site-navigation-links {
    position: static;
    width: 100%;
    height: auto;
    gap: 2px;
    margin: 0 !important;
  }

  .admin-surface .site-navigation .nav-link,
  .admin-surface .site-navigation .nav-button {
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 0 13px !important;
    font-size: 14px;
  }

  .admin-surface .site-navigation .site-nav-actions {
    position: static;
    width: 100%;
    height: auto;
    margin: 8px 0 0;
  }

  .admin-surface .site-navigation .site-nav-action {
    width: 100%;
    height: auto;
    min-height: 48px;
  }

  .admin-surface .site-navigation .navbar-collapse .dropdown-menu {
    position: static;
    width: 100%;
    margin: 2px 0 6px;
    box-shadow: none;
  }
}

@media (max-width: 1199.98px) {

  .admin-surface .admin-card-table td {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .admin-surface .admin-card-table td::before {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin: 0;
  }

  .admin-surface .admin-card-table td > * {
    grid-column: 2;
    min-width: 0;
  }

  .admin-surface .admin-card-table td.table-action-cell {
    display: grid;
  }

  .admin-surface .admin-order-table :is(.admin-order-work-tag, .admin-shipment-attention-tag) {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    white-space: normal;
  }

  .admin-surface .admin-order-table .order-state {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: keep-all;
  }

  .admin-surface .admin-order-table td > :is(strong, small) {
    overflow-wrap: anywhere;
  }

  .admin-surface .admin-order-mail-link {
    height: 44px;
    min-height: 44px;
  }

  .admin-surface .admin-order-page .page-heading .admin-order-mail-link {
    height: 44px;
    min-height: 44px;
  }

  .admin-surface .admin-card-table thead {
    display: block !important;
    width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    contain: strict;
  }

  .admin-surface .admin-card-table thead tr,
  .admin-surface .admin-card-table thead th {
    display: block !important;
    width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }
}

@media (max-width: 767.98px) {
  .bgvp-site .promise-item:first-child {
    padding-left: 12px;
  }

  .storefront-surface .audio-selected-variant {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 4px 10px;
    align-items: start;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
  }

  .storefront-surface .audio-selected-variant .audio-color-swatch {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 2px;
  }

  .storefront-surface .audio-selected-variant #SelectedColorText,
  .storefront-surface .audio-selected-variant #SelectedCableLengthText {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .storefront-surface .audio-selected-variant #SelectedCableLengthText:not(:empty)::before {
    content: none;
    margin: 0;
  }

  .storefront-surface .product-spec-card {
    align-self: start;
  }

  .storefront-surface .product-specification-text {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.75;
  }

  .storefront-surface .product-story-copy > p:not(.section-kicker) {
    color: #4b596b;
  }

  .admin-surface .admin-order-detail-page .admin-order-heading h1 {
    height: auto;
    font-size: clamp(22px, 6.8vw, 26px);
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-surface .admin-order-detail-page .admin-order-heading > div {
    min-width: 0;
  }

  .storefront-surface .order-detail-page .order-cancellation-area .btn,
  .storefront-surface .order-detail-page .order-detail-back-link {
    width: 100% !important;
    min-height: 48px;
    justify-self: stretch;
  }

  .storefront-surface .checkout-summary-products > summary,
  .storefront-surface .checkout-optional-section > summary,
  .storefront-surface .checkout-form-section details > summary,
  .storefront-surface .order-history-disclosure > summary {
    display: flex;
    min-height: 44px;
    align-items: center;
  }

  .storefront-surface .checkout-progress > div:not(.is-current):not(.is-complete) > span {
    color: #687587;
    border-color: #aeb9c7;
  }

  .site-footer-brand p {
    color: #5f6d80;
    font-size: 13px;
    line-height: 1.65;
  }

  .site-footer-bottom {
    color: var(--bgvp-fidelity-muted);
    font-size: 12px;
  }
}

@media (max-width: 991.98px) {
  .admin-surface .checkbox-line {
    min-height: 44px;
    align-items: center;
    padding-block: 8px;
  }

  .admin-surface .ql-toolbar.ql-snow {
    display: flex;
    height: auto;
    flex-wrap: wrap !important;
    gap: 4px;
    padding: 6px;
    overflow-x: visible;
  }

  .admin-surface .ql-toolbar.ql-snow .ql-formats {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap !important;
    margin: 0;
  }

  .admin-surface .ql-toolbar.ql-snow button {
    width: 44px;
    height: 44px;
  }

  .admin-surface .ql-toolbar.ql-snow :is(.ql-picker-label, .ql-picker) {
    min-height: 44px;
  }
}

@media (max-width: 359.98px) {
  .bgvp-site .promise-bar .row {
    display: flex;
  }

  .bgvp-site .promise-item,
  .bgvp-site .promise-item:first-child {
    width: 100%;
    max-width: none;
    min-height: 72px;
    flex: 0 0 100%;
    padding: 0 20px;
    border-right: 0;
  }

  .bgvp-site .promise-title {
    display: flex;
    width: auto;
  }

  .admin-surface .admin-card-table td,
  .admin-surface .admin-order-items .admin-card-table td {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-surface .admin-card-table td::before {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-surface .admin-card-table td > *,
  .admin-surface .admin-card-table td.table-action-cell .table-action-link,
  .admin-surface .admin-card-table td.table-action-cell .table-action-button {
    grid-column: 1;
  }

}

/* Keep the operational order queue dense on 992–1199px tablets. Other wide
   CRUD tables may remain cards because they carry more columns. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .admin-surface .admin-order-table {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
  }

  .admin-surface .admin-order-table thead {
    position: static !important;
    display: table-header-group !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    overflow: visible;
    clip: auto;
    clip-path: none;
    contain: none;
    white-space: normal;
  }

  .admin-surface .admin-order-table thead tr {
    display: table-row !important;
    width: auto !important;
    height: auto !important;
  }

  .admin-surface .admin-order-table tbody {
    display: table-row-group;
    width: auto;
  }

  .admin-surface .admin-order-table tbody tr {
    display: table-row;
    padding: 0;
    overflow: visible;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .admin-surface .admin-order-table th,
  .admin-surface .admin-order-table td {
    display: table-cell;
    height: 82px;
    min-height: 0;
    padding: 10px 12px;
    font-size: 13px;
    vertical-align: middle;
  }

  .admin-surface .admin-order-table th {
    height: 49px !important;
    min-height: 49px;
    overflow: visible;
  }

  .admin-surface .admin-order-table thead th {
    display: table-cell !important;
    max-width: none !important;
    height: 49px !important;
    min-height: 49px !important;
    padding: 0 12px !important;
    overflow: visible;
  }

  .admin-surface .admin-order-table th:nth-child(1),
  .admin-surface .admin-order-table td:nth-child(1) { width: 18% !important; }
  .admin-surface .admin-order-table th:nth-child(2),
  .admin-surface .admin-order-table td:nth-child(2) { width: 23% !important; }
  .admin-surface .admin-order-table th:nth-child(3),
  .admin-surface .admin-order-table td:nth-child(3) { width: 14% !important; }
  .admin-surface .admin-order-table th:nth-child(4),
  .admin-surface .admin-order-table td:nth-child(4) { width: 15% !important; }
  .admin-surface .admin-order-table th:nth-child(5),
  .admin-surface .admin-order-table td:nth-child(5) { width: 14% !important; }
  .admin-surface .admin-order-table th:nth-child(6),
  .admin-surface .admin-order-table td:nth-child(6) { width: 16% !important; }

  .admin-surface .admin-order-table td::before {
    display: none;
  }

  .admin-surface .admin-order-table td.admin-order-state-stack,
  .admin-surface .admin-order-table td.table-action-cell {
    display: table-cell;
  }

  .admin-surface .admin-order-table td.admin-order-state-stack > * {
    display: flex;
    width: fit-content;
    margin-bottom: 5px;
  }

  .admin-surface .admin-order-table td.admin-order-state-stack > *:last-child {
    margin-bottom: 0;
  }

  .admin-surface .admin-order-table .table-action-link {
    width: auto !important;
    min-width: 90px;
    justify-self: auto;
  }

  .admin-surface .table-scroll:has(.admin-order-table) {
    overflow-x: auto;
  }
}

/* Issue #86 / TIN-299 ----------------------------------------------------
 * Resolve the shared causes before page-specific defects: one centered shell,
 * one header separator, one Hero crop ratio, then local component fixes.
 */
:root {
  --bgvp-fidelity-shell-max: 1440px;
  --bgvp-fidelity-shell-gutter: clamp(1rem, 3vw, 2.5rem);
}

body.admin-surface {
  background: var(--bgvp-fidelity-ice);
}

.site-navigation > .container-xl,
.bgvp-storefront-navigation > .container-xl,
.admin-footer > .container-xl {
  width: 100%;
  max-width: var(--bgvp-fidelity-shell-max);
  margin-inline: auto;
  padding-inline: var(--bgvp-fidelity-shell-gutter);
}

.site-navigation .nav-link::after,
.site-navigation .nav-button::after {
  bottom: 4px;
}

@media (min-width: 992px) {
  .storefront-surface .site-navigation .storefront-nav-dropdown-toggle::before {
    position: absolute;
    right: 0.48rem;
    bottom: 4px;
    left: 0.48rem;
    height: 2px;
    content: "";
    background: var(--bgvp-fidelity-blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--bgvp-motion-fast) var(--bgvp-motion-ease);
  }

  .storefront-surface .site-navigation .storefront-nav-dropdown-toggle:hover::before,
  .storefront-surface .site-navigation .storefront-nav-dropdown-toggle:focus-visible::before,
  .storefront-surface .site-navigation .storefront-nav-dropdown-toggle.is-active::before {
    transform: scaleX(1);
  }
}

.admin-surface .site-navigation .site-brand {
  order: 1;
}

.admin-surface .site-navigation .navbar-collapse {
  order: 2;
}

.admin-surface .site-navigation .admin-primary-actions {
  order: 3;
}

.admin-surface .site-navigation .navbar-toggler {
  order: 4;
}

@media (min-width: 992px) {
  .storefront-surface .site-navigation :is(.storefront-primary-actions, .storefront-secondary-actions) {
    gap: 0.25rem;
  }

  .storefront-surface .site-navigation .storefront-primary-actions {
    margin-left: 0.25rem;
  }

  .storefront-surface .site-navigation :is(.storefront-primary-actions, .storefront-secondary-actions) > .site-nav-action,
  .storefront-surface .site-navigation .storefront-secondary-actions > .site-nav-logout {
    flex: 0 0 3.25rem;
    width: 3.25rem;
  }

  .storefront-surface .site-navigation .storefront-secondary-actions > .site-nav-logout > .site-nav-action {
    width: 100%;
  }

  .storefront-surface .site-navigation :is(.storefront-primary-actions, .storefront-secondary-actions) .site-nav-action-label {
    text-align: center;
    white-space: nowrap;
  }
}

/* Keep the homepage canvas aligned to the same shell as the product pages. */
.bgvp-site .promise-bar {
  width: calc(100% - (2 * var(--bgvp-fidelity-shell-gutter)));
  max-width: var(--bgvp-fidelity-shell-max);
  margin-inline: auto;
}

.bgvp-site .home-brand-portfolio > .container,
.bgvp-site .product-section > .container {
  width: 100%;
  max-width: var(--bgvp-fidelity-shell-max);
  margin-inline: auto;
  padding-inline: var(--bgvp-fidelity-shell-gutter) !important;
}

.site-footer-grid,
.site-footer-bottom {
  max-width: var(--bgvp-fidelity-shell-max);
  margin-inline: auto;
}

.site-footer-grid {
  padding-inline: var(--bgvp-fidelity-shell-gutter);
}

.site-footer-bottom {
  width: calc(100% - (2 * var(--bgvp-fidelity-shell-gutter)));
}

/* Match admin navigation geometry to the storefront and constrain every work page. */
.admin-surface .site-navigation .site-brand {
  min-width: 96px;
  margin-right: var(--bgvp-navigation-brand-gap);
}

.admin-surface .site-navigation :is(.nav-link, .nav-button).is-active {
  color: var(--bgvp-fidelity-blue) !important;
  background: transparent !important;
}

.admin-surface .admin-order-table thead .table-sort-link {
  color: inherit;
  font-weight: 700;
  text-decoration-color: rgba(7, 95, 199, 0.38);
}

.admin-surface .admin-order-table thead .table-sort-link:hover,
.admin-surface .admin-order-table thead .table-sort-link:focus-visible {
  color: var(--bgvp-fidelity-blue);
  text-decoration-color: currentColor;
}

.admin-surface .site-main {
  width: 100%;
  max-width: var(--bgvp-fidelity-shell-max);
  margin-inline: auto;
  padding-inline: var(--bgvp-fidelity-shell-gutter);
}



/* Local defects reported in TIN-299. */
.admin-surface .admin-order-keyword {
  min-width: 0;
}

.admin-surface .admin-order-keyword input {
  padding-inline: 52px 16px !important;
}

.admin-surface .admin-order-search-icon {
  left: 17px;
  width: 18px;
  height: 18px;
}

.bgvp-site .home-retail-brands-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 16px;
  overflow: visible;
}

.bgvp-site .home-retail-brands-toggle-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #27364a;
  background: #fff;
  border: 1px solid #9fb0c3;
  border-radius: 50%;
  line-height: 1;
  overflow: visible;
}

@media (min-width: 1200px) {
  .admin-surface .site-navigation > .container-xl {
    position: static;
  }

  .admin-surface .site-navigation .navbar-collapse {
    display: flex !important;
    min-width: 0;
  }

  .admin-surface .site-navigation-links {
    position: static;
    left: auto;
    height: var(--bgvp-navigation-height);
    gap: var(--bgvp-navigation-item-gap);
    margin: 0 auto !important;
  }

  .admin-surface .site-navigation .site-nav-actions {
    position: static;
    right: auto;
    margin-left: clamp(0.75rem, 1.5vw, 1.5rem);
  }
}

@media (max-width: 991.98px) {
  .admin-surface .site-navigation .yuemao-store-logo {
    max-width: 82px;
    max-height: 48px;
  }

  .site-navigation > .container-xl,
  .bgvp-storefront-navigation > .container-xl {
    flex-wrap: wrap;
    padding-inline: 16px;
  }

  .site-navigation .navbar-toggler,
  .bgvp-storefront-navigation .bgvp-storefront-toggler,
  .site-navigation .navbar-toggler:hover,
  .bgvp-storefront-navigation .bgvp-storefront-toggler:hover,
  .site-navigation .navbar-toggler:focus-visible,
  .bgvp-storefront-navigation .bgvp-storefront-toggler:focus-visible {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
  }

  .storefront-surface .site-navigation .site-brand {
    margin-right: 0;
  }

  .storefront-surface .site-navigation .storefront-primary-actions {
    display: flex;
    width: auto;
    height: 64px;
    flex: 0 0 auto;
    align-self: center;
    grid-template-columns: none;
    gap: 0;
    margin: 0 2px 0 auto;
    padding: 0;
    border: 0;
  }

  .storefront-surface .site-navigation .storefront-primary-actions .site-nav-action,
  .storefront-surface .site-navigation .storefront-primary-actions > :last-child:nth-child(odd) {
    width: 40px;
    min-width: 40px;
    height: 64px;
    min-height: 64px;
    justify-self: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .storefront-surface .site-navigation .storefront-primary-actions .site-nav-action-label {
    display: none;
  }

  .storefront-surface .site-navigation .storefront-primary-actions .site-nav-action-symbol,
  .storefront-surface .site-navigation .storefront-primary-actions .site-nav-icon {
    width: 20px;
    height: 20px;
  }

  .storefront-surface .site-navigation .navbar-collapse {
    flex-basis: 100%;
  }

  .admin-surface .site-navigation .site-brand {
    order: 1;
    margin-right: 0;
  }

  .admin-surface .site-navigation .admin-primary-actions {
    display: flex;
    width: auto;
    height: 64px;
    flex: 0 0 auto;
    align-self: center;
    order: 2;
    gap: 0;
    margin: 0 2px 0 auto;
    padding: 0;
    border: 0;
  }

  .admin-surface .site-navigation .admin-primary-actions > *,
  .admin-surface .site-navigation .admin-primary-actions .site-nav-action {
    width: 40px !important;
    min-width: 40px;
    height: 64px;
    min-height: 64px;
    flex: 0 0 40px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .admin-surface .site-navigation .admin-primary-actions .site-nav-action-label {
    display: none;
  }

  .admin-surface .site-navigation .admin-primary-actions :is(.site-nav-action-symbol, .site-nav-icon) {
    width: 20px;
    height: 20px;
  }

  .admin-surface .site-navigation .navbar-toggler {
    order: 3;
  }

  .admin-surface .site-navigation .navbar-collapse {
    flex-basis: 100%;
    order: 4;
  }

  .storefront-surface .site-navigation .storefront-secondary-actions {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    grid-template-columns: none;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .storefront-surface .site-navigation .storefront-secondary-actions > *,
  .storefront-surface .site-navigation .storefront-secondary-actions > :last-child:nth-child(odd),
  .storefront-surface .site-navigation .storefront-secondary-actions .site-nav-action {
    width: auto !important;
    min-width: 0;
    min-height: 44px;
    flex: 0 1 auto;
    justify-self: auto;
  }

  .bgvp-site .promise-bar {
    width: calc(100% - 32px);
  }

  .admin-surface .site-main {
    padding-inline: 16px;
  }


}

@media (max-width: 479.98px) {
  .site-navigation .site-brand,
  .bgvp-storefront-navigation .site-brand {
    min-width: 74px;
  }

  .site-navigation .yuemao-store-logo,
  .bgvp-storefront-navigation .yuemao-store-logo,
  .admin-surface .site-navigation .yuemao-store-logo {
    max-width: 76px;
    max-height: 48px;
  }

}

/* Issue #86: one responsive contract across storefront and administration. */

@media (min-width: 768px) and (max-width: 991.98px) {
  .bgvp-site .promise-item,
  .bgvp-site .promise-item:first-child {
    padding-inline: 24px;
  }

  .bgvp-site .promise-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  :is(.storefront-surface, .admin-surface) .site-main,
  :is(.storefront-surface, .admin-surface) .site-main > *,
  :is(.storefront-surface, .admin-surface) :is(section, article, form, fieldset, table, details) {
    min-width: 0;
    max-width: 100%;
  }

  .storefront-surface:not(.bgvp-site) .site-main {
    padding: 20px var(--bgvp-page-gutter) 40px;
  }

  .admin-surface .site-main {
    padding-inline: var(--bgvp-page-gutter);
  }

  :is(.storefront-surface, .admin-surface)
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
  :is(.storefront-surface, .admin-surface) :is(select, textarea, .form-control, .form-select) {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }

  :is(.storefront-surface, .admin-surface)
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
  :is(.storefront-surface, .admin-surface) :is(select, .form-control:not(textarea), .form-select) {
    min-height: var(--bgvp-field-height);
  }

  :is(.storefront-surface, .admin-surface) :is(.btn, .table-action-link, .table-action-button) {
    max-width: 100%;
    min-width: 0;
    min-height: var(--bgvp-button-height);
    padding: 10px 14px;
    font-size: var(--bgvp-type-label);
    line-height: 1.35;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  :is(.storefront-surface, .admin-surface)
    :is(

      .home-primary-brand-actions,
      .news-details-actions,
      .custom-earphone-details-actions,
      .page-heading-actions,
      .action-row,
      .admin-page-bottom-actions,
      .admin-inline-actions,
      .admin-empty-state-actions,
      .auth-verification-actions,
      .order-store-reselection-actions,
      .checkout-store-map-recovery-actions,
      .store-map-return-actions,
      .product-spec-actions,
      .table-actions
    ) {
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap !important;
    gap: 8px;
  }

  :is(.storefront-surface, .admin-surface)
    :is(

      .home-primary-brand-actions,
      .news-details-actions,
      .custom-earphone-details-actions,
      .page-heading-actions,
      .action-row,
      .admin-page-bottom-actions,
      .admin-inline-actions,
      .admin-empty-state-actions,
      .auth-verification-actions,
      .order-store-reselection-actions,
      .checkout-store-map-recovery-actions,
      .store-map-return-actions,
      .product-spec-actions,
      .table-actions
    ) > * {
    min-width: 0;
    max-width: 100%;
  }

  :is(.storefront-surface, .admin-surface)
    :is(
      .home-primary-brand-actions,
      .news-details-actions,
      .custom-earphone-details-actions,
      .page-heading-actions,
      .action-row,
      .admin-page-bottom-actions,
      .admin-inline-actions,
      .admin-empty-state-actions,
      .auth-verification-actions,
      .product-spec-actions,
      .table-actions
    ) :is(.btn, .table-action-link, .table-action-button) {
    width: auto !important;
    flex: 0 1 auto;
  }

  :is(.storefront-surface, .admin-surface)
    :is(
      .page-heading,
      .catalog-hero,
      .brand-content-hero,
      .storefront-page-header,
      .legal-page-header,
      .member-dashboard-header,
      .order-page-header,
      .managed-content-page-header,
      .account-panel-header
    ) h1 {
    height: auto;
    min-width: 0;
    font-size: var(--bgvp-type-page-title);
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-surface .page-heading h1 {
    font-size: var(--bgvp-type-admin-page-title);
  }

  :is(.storefront-surface, .admin-surface) :is(.page-heading, .page-heading > div) {
    min-width: 0;
    max-width: 100%;
  }

  .bgvp-site .home-primary-brand-actions {
    display: flex !important;
    width: 100%;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .bgvp-site .home-primary-brand-actions .btn {
    width: auto !important;
    min-width: 0;
    height: auto;
    min-height: var(--bgvp-button-height);
    flex: 0 1 auto;
    padding-inline: 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .bgvp-site .promise-item,
  .bgvp-site .promise-item:first-child {
    min-width: 0;
    padding-inline: 12px;
  }

  .bgvp-site .promise-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .bgvp-site .promise-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
  }

  .bgvp-site .promise-item strong,
  .bgvp-site .promise-item > div > span:last-child {
    min-width: 0;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .storefront-surface .member-action-link {
    min-width: 0;
    max-width: 100%;
  }

  .storefront-surface .site-footer-intro .btn-light {
    width: auto;
    max-width: 100%;
    min-height: var(--bgvp-button-height);
    white-space: normal;
  }

  .admin-surface .admin-order-page .page-heading {
    flex-wrap: wrap;
  }

  .admin-surface .admin-order-page .page-heading > div {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .admin-surface .admin-order-page .page-heading .btn {
    width: auto !important;
    min-width: 0;
    flex: 0 1 auto;
  }

  .admin-surface .admin-card-table td > *,
  .admin-surface .admin-order-table td > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .admin-surface :is(.admin-order-work-tag, .admin-shipment-attention-tag) {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  .admin-surface .order-state {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: keep-all;
  }
}

@media (max-width: 575.98px) {
  .admin-surface .admin-order-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-surface .admin-order-search > *,
  .admin-surface .admin-order-keyword,
  .admin-surface .admin-order-search > .btn,
  .admin-surface .admin-order-search > [data-auto-search-submit] {
    width: 100%;
    min-width: 0;
    grid-column: 1;
  }

  .admin-surface .admin-card-table :is(.table-action-link, .table-action-button),
  .admin-surface .admin-order-table :is(.table-action-link, .table-action-button) {
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    justify-self: start;
  }
}

/* Issue #86 / TIN-299: one product-grid component for the homepage and catalog. */
.product-section-toolbar,
.catalog-result-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.catalog-result-actions > span {
  color: var(--bgvp-fidelity-muted);
  font-size: 12px;
  white-space: nowrap;
}

.product-grid-view-toggle {
  --product-grid-view-control-size: 44px;
  --product-grid-view-icon-size: 16px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  color: #607086;
  background: #fff;
  border: 1px solid var(--bgvp-fidelity-line);
  border-radius: 4px;
  overflow: hidden;
}

.product-section-toolbar .product-grid-view-toggle,
.catalog-result-actions .product-grid-view-toggle {
  margin-left: auto;
}

.product-grid-view-button {
  display: inline-flex;
  width: var(--product-grid-view-control-size);
  min-width: var(--product-grid-view-control-size);
  height: var(--product-grid-view-control-size);
  min-height: var(--product-grid-view-control-size);
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #607086;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--bgvp-fidelity-line);
  border-radius: 0;
}

.product-grid-view-button:hover,
.product-grid-view-button:focus-visible {
  color: var(--bgvp-fidelity-blue);
  background: #f2f7fc;
}

.product-grid-view-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--bgvp-fidelity-blue);
  outline-offset: -3px;
}

.product-grid-view-button[aria-pressed="true"] {
  color: #fff;
  background: var(--bgvp-fidelity-blue);
}

.product-grid-view-icon {
  display: grid;
  width: var(--product-grid-view-icon-size);
  height: var(--product-grid-view-icon-size);
}

.product-grid-view-icon--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.product-grid-view-icon--one {
  grid-template-columns: minmax(0, 1fr);
}

.product-grid-view-icon > span {
  background: currentColor;
  border-radius: 1px;
}

.admin-surface .admin-status-chip {
  white-space: nowrap;
}

@media (min-width: 1200px) {
  /* Five equal fixed columns gave 排序 as much room as 標題 and left the action
     column too narrow for its buttons, so this table measures its content instead. */
  .controller-newsmanager.action-index .admin-card-table,
  .controller-productmanager.action-index .admin-card-table {
    table-layout: auto;
  }

  .controller-productmanager.action-index .admin-card-table :is(th, td) {
    padding-inline: 12px;
  }

  .controller-productmanager.action-index .admin-card-table td:is(
    [data-label="商品編號"],
    [data-label="價格"],
    [data-label="庫存"],
    [data-label="排序"]
  ) {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }
}

.storefront-surface .product-grid[data-product-grid] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}





@media (min-width: 1280px) {
  .storefront-surface .product-grid[data-product-grid] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.5vw, 1.5rem);
  }
}

@media (min-width: 992px) {
  .product-grid-view-toggle {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .product-grid-view-toggle {
    --product-grid-view-control-size: clamp(36px, 4.4vw, 42px);
    --product-grid-view-icon-size: clamp(14px, 1.65vw, 16px);
  }

  .bgvp-site .product-section .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .product-section-toolbar,
  .catalog-result-actions {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-result-heading {
    flex-wrap: wrap;
    gap: 14px;
  }

  html:not([data-product-grid-view="one"]) .storefront-surface .product-grid[data-product-grid],
  html[data-product-grid-view="two"] .storefront-surface .product-grid[data-product-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-product-grid-view="one"] .storefront-surface .product-grid[data-product-grid] {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Card-mode tables own one border per record. Their table wrapper must not
   draw a second frame around the complete card collection. */
@media (max-width: 1199.98px) {
  .admin-surface .data-table.admin-card-table:not(.admin-order-table) {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0 !important;
  }

  .admin-surface .admin-card-table:not(.admin-order-table) tbody {
    display: grid;
    width: 100%;
    gap: 12px;
  }

  .admin-surface .admin-card-table:not(.admin-order-table) tbody tr {
    border-radius: 5px;
    box-shadow: none;
  }
}

@media (max-width: 991.98px) {
  .admin-surface .data-table.admin-card-table.admin-order-table {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0 !important;
  }

  .admin-surface .admin-card-table.admin-order-table tbody {
    display: grid;
    width: 100%;
    gap: 12px;
  }

  .admin-surface .admin-card-table.admin-order-table tbody tr {
    border-radius: 5px;
    box-shadow: none;
  }

  .storefront-surface .data-table.member-order-table {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0 !important;
  }

  .storefront-surface .member-order-table tbody {
    display: grid;
    width: 100%;
    gap: 14px;
  }
}

@media (max-width: 575.98px) {
  .product-grid-view-toggle {
    --product-grid-view-control-size: 36px;
    --product-grid-view-icon-size: 14px;
  }

  .bgvp-site .home-retail-brands-actions {
    justify-content: flex-start;
  }

  .bgvp-site .home-retail-brands-toggle {
    width: auto;
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 359.98px) {
  .bgvp-site .promise-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--bgvp-fidelity-line);
  }

  .bgvp-site .promise-item:last-child {
    border-bottom: 0;
  }

  .storefront-surface .site-navigation .storefront-primary-actions .site-nav-action,
  .storefront-surface .site-navigation .storefront-primary-actions > :last-child:nth-child(odd) {
    width: 36px;
    min-width: 36px;
  }

  .admin-surface .site-navigation .admin-primary-actions > *,
  .admin-surface .site-navigation .admin-primary-actions .site-nav-action {
    width: 36px !important;
    min-width: 36px;
    flex-basis: 36px;
  }

  .site-navigation .site-brand,
  .bgvp-storefront-navigation .site-brand {
    min-width: 66px;
  }

  .site-navigation .yuemao-store-logo,
  .bgvp-storefront-navigation .yuemao-store-logo,
  .admin-surface .site-navigation .yuemao-store-logo {
    max-width: 68px;
    max-height: 48px;
  }
}

/* Issue #101: integrated admin hierarchy and unclipped table actions.
   The page heading owns hierarchy and actions; table wrappers own overflow. */
.admin-surface .page-heading {
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: 12px;
  margin-bottom: 24px;
}

.admin-surface .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

@media (min-width: 1200px) {
  .admin-surface .table-scroll > .data-table.admin-card-table {
    min-width: 720px;
    table-layout: auto;
    overflow: visible;
  }

  .admin-surface .admin-card-table .table-action-cell {
    width: 228px;
    min-width: 228px;
    padding-inline: 12px;
  }

  .admin-surface .admin-card-table .table-actions {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .admin-surface .admin-card-table .table-actions > * {
    min-width: 0;
    flex: 0 1 102px;
  }

  .admin-surface .admin-card-table .table-actions :is(.table-action-link, .table-action-button) {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 1199.98px) {
  .admin-surface .table-scroll:has(.admin-card-table:not(.admin-order-table)) {
    overflow: visible;
  }

  .admin-surface .admin-card-table .table-actions > *,
  .admin-surface .admin-card-table .table-actions :is(.table-action-link, .table-action-button) {
    width: 100% !important;
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  .admin-surface .table-scroll:has(.admin-order-table) {
    overflow: visible;
  }
}

@media (max-width: 767.98px) {
  .admin-surface .page-heading .page-heading-actions,
  .admin-surface .page-heading .page-heading-actions > .btn {
    width: 100% !important;
  }
}
