:root {
  --primary: #d93d00;
  --primary-dark: #b82f00;
  --primary-soft: #fff0e9;
  --accent: #f5b900;
  --accent-soft: #fff8dd;
  --ink: #1b1815;
  --muted: #6f6962;
  --muted-light: #99918a;
  --border: #e8e3dc;
  --border-strong: #d6cec5;
  --surface: #ffffff;
  --surface-warm: #f7f5f2;
  --page: #f3f1ed;
  --green: #0b7652;
  --green-dark: #10372d;
  --blue: #156cc5;
  --danger: #bd2d23;
  --shadow-sm: 0 2px 10px rgb(34 27 20 / 7%);
  --shadow-md: 0 10px 28px rgb(34 27 20 / 12%);
  --shadow-lg: 0 24px 60px rgb(20 16 12 / 24%);
  --radius: 6px;
  --radius-sm: 4px;
  --container: 1440px;
  --font-caption: 14px;
  --font-body: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: var(--font-body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button,
a[href] {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol,
dl,
dd,
p,
h1,
h2,
h3 {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgb(217 61 0 / 32%);
  outline-offset: 2px;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.button-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button-outline {
  color: var(--primary);
  background: #fff;
  border-color: rgb(217 61 0 / 45%);
}

.button-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.button-dark {
  color: #fff;
  background: #23201c;
  border-color: #23201c;
}

.button-dark:hover {
  background: #050403;
  border-color: #050403;
}

.button-light {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.button-light:hover {
  color: var(--primary);
  border-color: var(--primary-soft);
}

.button-ghost-light {
  color: #fff;
  border-color: rgb(255 255 255 / 62%);
  background: rgb(20 16 12 / 20%);
  backdrop-filter: blur(8px);
}

.button-ghost-light:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 14%);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border-radius: 50%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--surface);
  box-shadow: 0 1px 0 rgb(31 25 19 / 6%);
  overflow-anchor: none;
  transition: box-shadow 240ms ease;
}

.site-header.is-compact {
  box-shadow: 0 9px 28px rgb(31 25 19 / 10%);
}

.site-header.is-compact .topbar {
  min-height: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.site-header.is-compact .main-nav {
  min-height: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  border-top-width: 0;
  border-top-color: transparent;
}

.site-header.is-compact .header-main {
  min-height: 50px;
  grid-template-columns: minmax(210px, 250px) minmax(320px, 620px);
  justify-content: center;
  column-gap: 80px;
  padding-block: 4px;
}

.site-header.is-compact .header-actions {
  display: none;
}

.site-header.is-compact .hot-keywords {
  height: 0;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.site-header.is-compact .brand-mark {
  width: 42px;
  height: 42px;
}

.site-header.is-compact .brand-copy strong {
  font-size: 23px;
}

.site-header.is-compact .brand-copy small {
  margin-top: 3px;
}

.site-header.is-compact .search-form {
  height: 42px;
  padding: 1px;
}

.site-header.is-compact .search-submit {
  height: 100%;
  min-height: 0;
}

.site-header.is-compact .header-action {
  height: 42px;
  min-height: 42px;
  padding-block: 0;
}

.site-header.is-compact .header-action .action-icon {
  width: 30px;
  height: 30px;
}

.site-header.is-compact .header-action small,
.site-header.is-compact .header-action strong {
  line-height: 1.15;
}

.topbar {
  position: relative;
  z-index: 140;
  min-height: 32px;
  max-height: 32px;
  overflow: visible;
  color: #d9d4cf;
  background: #25221f;
  will-change: max-height, opacity, transform;
  transition:
    max-height 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 180ms ease,
    transform 240ms ease;
}

.site-header.is-compact .topbar {
  overflow: hidden;
}

.topbar-inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-left,
.topbar-links,
.location {
  display: flex;
  align-items: center;
}

.topbar-left,
.topbar-links {
  gap: 13px;
  white-space: nowrap;
}

.topbar-left {
  font-size: var(--font-caption);
}

.topbar-links {
  font-size: var(--font-caption);
}

.topbar-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: inherit;
  background: transparent;
  transition: color 160ms ease;
}

.topbar-links a:hover,
.text-link:hover {
  color: #fff;
}

.topbar-auth {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.topbar-user-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.topbar-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}

.topbar-user-avatar {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #0f8f79, #086957);
  border-radius: 50%;
  font-size: var(--font-caption);
  font-weight: 800;
}

.topbar-user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.topbar-user-copy {
  max-width: 150px;
  display: grid;
  line-height: 1.15;
}

.topbar-user-copy strong,
.topbar-user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-copy strong {
  color: #fff;
  font-size: var(--font-caption);
}

.topbar-user-copy small {
  color: #aaa29b;
  font-size: var(--font-caption);
}

.topbar-user-chevron {
  width: 11px !important;
  height: 11px !important;
  transition: transform 180ms ease;
}

.topbar-user-entry:hover .topbar-user-chevron,
.topbar-user-entry:focus-within .topbar-user-chevron {
  transform: rotate(180deg);
}

.topbar-user-card {
  position: absolute;
  z-index: 240;
  top: calc(100% + 10px);
  right: 0;
  width: 272px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 38px rgb(31 25 19 / 18%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 180ms ease;
}

.topbar-user-entry:hover .topbar-user-card,
.topbar-user-entry:focus-within .topbar-user-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.topbar-user-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.topbar-user-card-head > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.topbar-user-card-head strong,
.topbar-user-card-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-card-head strong {
  font-size: var(--font-caption);
}

.topbar-user-card-head small {
  color: var(--muted);
  font-size: var(--font-caption);
}

.topbar-user-card-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #0f8f79, #086957);
  border-radius: 50%;
  font-size: var(--font-body);
  font-weight: 800;
}

.topbar-user-card-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.topbar-user-card-link,
.topbar-user-card-logout {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: var(--font-caption);
  font-weight: 700;
}

.topbar-user-card-link {
  color: #fff;
  background: linear-gradient(145deg, #0f8f79, #086957);
}

.topbar-user-card-link .icon {
  width: 14px;
  height: 14px;
}

.topbar-user-card-logout {
  justify-content: center;
  color: #b63a2d;
  background: #fff5f2;
}

.topbar-user-card-logout:hover {
  color: #fff;
  background: #b63a2d;
}

.topbar-user-card-logout:disabled {
  cursor: wait;
  opacity: .55;
}

.topbar-links .icon,
.location .icon {
  width: 14px;
  height: 14px;
}

.language-picker {
  position: relative;
}

.language-trigger {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 5px;
  color: inherit;
  background: transparent;
  border-radius: 3px;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  color: #fff;
  background: rgb(255 255 255 / 9%);
}

.language-trigger span {
  font-size: var(--font-caption);
}

.language-chevron {
  width: 12px !important;
  height: 12px !important;
  transition: transform 180ms ease;
}

.language-trigger[aria-expanded="true"] .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  z-index: 130;
  top: calc(100% + 9px);
  right: 0;
  width: 178px;
  display: grid;
  gap: 3px;
  padding: 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.language-menu[hidden] {
  display: none;
}

.language-menu strong {
  padding: 5px 8px 7px;
  color: var(--muted);
  font-size: var(--font-caption);
  text-transform: uppercase;
}

.language-menu button,
.mobile-language-options button {
  min-height: 34px;
  padding: 0 9px;
  color: #4d4741;
  background: transparent;
  border-radius: var(--radius-sm);
  text-align: left;
}

.language-menu button:hover,
.language-menu button.is-active,
.mobile-language-options button:hover,
.mobile-language-options button.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.mobile-nav-language {
  display: none;
}

.location-picker {
  position: relative;
  min-width: 0;
}

.location {
  gap: 5px;
  min-width: 0;
  max-width: min(260px, 42vw);
  min-height: 26px;
  padding: 0 4px;
  color: inherit;
  background: transparent;
  border-radius: 3px;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.location [data-location-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location:hover,
.location[aria-expanded="true"] {
  color: #fff;
  background: rgb(255 255 255 / 9%);
}

.location-chevron {
  width: 12px !important;
  height: 12px !important;
  transition: transform 180ms ease;
}

.location[aria-expanded="true"] .location-chevron {
  transform: rotate(180deg);
}

.location-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 15px;
  box-sizing: border-box;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.location-menu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.location-menu-head > div {
  flex: 1 1 190px;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.location-menu-head strong {
  font-size: var(--font-body);
}

.location-menu-head small {
  color: var(--muted);
  font-size: var(--font-caption);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.location-menu-head button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  font-size: var(--font-caption);
  white-space: nowrap;
}

.location-menu-head button:hover {
  color: #fff;
  background: var(--primary);
}

.location-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.location-city-grid button {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding-inline: 8px;
  overflow: hidden;
  color: #4d4741;
  background: var(--surface-warm);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--font-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.location-city-grid button:hover,
.location-city-grid button.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgb(217 61 0 / 22%);
}

.location-menu > p {
  margin-top: 11px;
  color: var(--muted-light);
  font-size: var(--font-caption);
}

.topbar-divider {
  width: 1px;
  height: 12px;
  background: rgb(255 255 255 / 18%);
}

.header-main {
  position: relative;
  z-index: 120;
  min-height: 102px;
  display: grid;
  grid-template-columns: 250px minmax(460px, 1fr) 190px;
  align-items: center;
  gap: 26px;
  transition:
    min-height 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    padding 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 240ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--font-caption);
}

.search-area {
  position: relative;
  align-self: center;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 104px;
  height: 46px;
  padding: 3px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 7px 20px rgb(75 46 28 / 8%);
}

.search-input-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-input-icon {
  margin-left: 13px;
  color: var(--muted);
}

.search-input-wrap input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-input-wrap input::placeholder {
  color: #99928b;
}

.search-input-wrap input[type="search"]::-webkit-search-cancel-button,
.search-input-wrap input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 3px;
  color: var(--muted);
  background: transparent;
  border-radius: 50%;
}

.search-submit {
  min-height: 36px;
  padding-inline: 20px;
  font-size: 16px;
  border-radius: 3px;
}

.hot-keywords {
  height: 30px;
  max-height: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
  color: var(--muted);
  font-size: var(--font-caption);
  white-space: nowrap;
  transition:
    max-height 220ms ease,
    opacity 160ms ease;
}

.hot-keywords button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  transition:
    color 160ms ease,
    transform 160ms ease;
  will-change: transform, color;
}

.hot-keywords button:hover {
  color: var(--primary);
}

.hot-keywords button.is-jumping {
  color: var(--primary);
  animation: hot-keyword-jump 230ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

@keyframes hot-keyword-jump {
  0%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-6px);
  }
}

.search-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% - 18px);
  left: 0;
  right: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.search-suggestion {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius-sm);
  text-align: left;
}

.search-suggestion:hover,
.search-suggestion[aria-selected="true"] {
  color: var(--ink);
  background: var(--surface-warm);
}

.search-suggestion strong {
  color: var(--ink);
  font-weight: 500;
}

.search-suggestion span {
  margin-left: auto;
  font-size: var(--font-caption);
}

.header-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.account-entry {
  position: relative;
  min-width: 0;
}

.account-entry .header-action {
  width: 100%;
  height: 100%;
}

.header-action {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(145deg, #fff 0%, #faf8f6 100%);
  border: 1px solid #e7e2dd;
  border-radius: 9px;
  box-shadow: 0 5px 16px rgb(31 25 19 / 6%);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.header-action:hover {
  border-color: rgb(217 61 0 / 30%);
  box-shadow: 0 9px 22px rgb(31 25 19 / 11%);
  transform: translateY(-1px);
}

.header-action .action-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #df4a0b, #b93100);
  border-radius: 10px;
  box-shadow: 0 5px 12px rgb(181 49 0 / 18%);
}

.header-action .action-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.header-action.cart-action .action-icon {
  background: linear-gradient(145deg, #38322e, #1e1b19);
  box-shadow: 0 5px 12px rgb(31 25 19 / 16%);
}

.header-action > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
  white-space: nowrap;
}

.header-action small {
  color: var(--muted);
  font-size: var(--font-caption);
  line-height: 1.2;
}

.header-action strong {
  color: #302b27;
  font-size: var(--font-caption);
  line-height: 1.25;
}

.account-action[data-authenticated="true"] .action-icon {
  background: linear-gradient(145deg, #0f8f79, #086957);
  box-shadow: 0 5px 12px rgb(8 105 87 / 20%);
}

.account-action[data-authenticated="true"] small,
.account-action[data-authenticated="true"] strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-action[data-authenticated="true"] strong {
  color: #087a68;
}

.account-menu {
  position: absolute;
  z-index: 220;
  top: calc(100% + 9px);
  right: 0;
  width: 264px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 38px rgb(31 25 19 / 18%);
}

.account-menu[hidden],
.buyer-card-actions[hidden] {
  display: none;
}

.account-menu-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-menu-profile > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-menu-profile strong,
.account-menu-profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-profile strong {
  font-size: var(--font-caption);
}

.account-menu-profile small {
  color: var(--muted);
  font-size: var(--font-caption);
}

.account-menu-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #0f8f79, #086957);
  border-radius: 50%;
  font-size: var(--font-body);
  font-weight: 800;
}

.account-menu-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-menu-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding: 9px 10px;
  background: #f4faf8;
  border: 1px solid #d7ebe6;
  border-radius: 7px;
  font-size: var(--font-caption);
}

.account-menu-status span {
  color: #087a68;
  font-weight: 700;
}

.account-menu-status i {
  color: #75807b;
  font-style: normal;
}

.account-menu-primary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding: 0 11px;
  color: #fff;
  background: linear-gradient(145deg, #0f8f79, #086957);
  border-radius: 7px;
  font-size: var(--font-caption);
  font-weight: 700;
}

.account-menu-primary:hover {
  color: #fff;
  filter: brightness(1.04);
}

.account-menu-primary .icon {
  width: 14px;
  height: 14px;
}

.account-menu-logout {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
  color: #b63a2d;
  background: #fff5f2;
  border-radius: 7px;
  font-size: var(--font-caption);
  font-weight: 700;
}

.account-menu-logout:hover {
  color: #fff;
  background: #b63a2d;
}

.account-menu-logout .icon {
  width: 14px;
  height: 14px;
}

.mobile-menu-button {
  display: none;
}

.main-nav {
  position: relative;
  z-index: 110;
  max-height: 44px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: #fff;
  will-change: max-height, opacity, transform;
  transition:
    max-height 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 180ms ease,
    transform 240ms ease,
    border-color 200ms ease;
}

.main-nav-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.category-trigger {
  width: 218px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
  text-align: left;
}

.category-trigger .chevron {
  margin-left: auto;
  transition: transform 180ms ease;
}

.category-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  overflow: hidden;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  font-size: var(--font-body);
  white-space: nowrap;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-side-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}

.nav-side-link:hover {
  color: var(--primary);
}

.category-panel {
  position: fixed;
  z-index: 70;
  top: var(--sticky-header-height, 178px);
  left: 0;
  right: 0;
  padding: 18px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: panel-in 180ms ease both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-panel-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.category-panel-grid a {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.category-panel-grid a:hover {
  background: var(--primary-soft);
  border-color: rgb(217 61 0 / 15%);
}

.category-panel-grid strong {
  color: var(--primary);
}

.category-panel-grid span {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--font-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: var(--font-caption);
  font-weight: 700;
}

.hero-section {
  min-height: 386px;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) 460px;
  gap: 12px;
  padding-top: 12px;
}

.hero-categories,
.hero-side {
  background: #fff;
}

.hero-categories {
  position: relative;
  z-index: 20;
  padding: 14px 0 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-categories > .section-kicker {
  padding: 0 17px 10px;
}

.hero-categories ul {
  display: grid;
}

.hero-categories li a {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  background: transparent;
  text-align: left;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.hero-categories li a:hover,
.hero-categories li a.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.hero-categories li span {
  color: var(--muted-light);
  font-size: var(--font-caption);
}

.category-all-button {
  width: calc(100% - 24px);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 8px 12px 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.category-flyout {
  position: absolute;
  z-index: 40;
  top: 0;
  left: calc(100% - 1px);
  width: min(720px, calc(100vw - 260px));
  min-height: 100%;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 14px 18px 38px rgb(31 25 19 / 17%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-8px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 200ms ease;
}

.hero-categories:hover .category-flyout,
.hero-categories:focus-within .category-flyout,
.category-flyout.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.category-flyout-main {
  min-width: 0;
  padding: 12px 10px;
  background: #f8f7f5;
  border-right: 1px solid var(--border);
}

.category-flyout-main > strong {
  display: block;
  padding: 5px 8px 10px;
  color: var(--muted);
  font-size: var(--font-caption);
}

.category-flyout-main > div {
  display: grid;
  gap: 2px;
}

.category-flyout-main a {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: #4e4742;
  background: transparent;
  border-radius: 4px;
  text-align: left;
}

.category-flyout-main a .icon {
  width: 12px;
  height: 12px;
  opacity: 0;
}

.category-flyout-main a:hover,
.category-flyout-main a.is-active {
  color: var(--primary);
  background: #fff;
}

.category-flyout-main a.is-active .icon {
  opacity: 1;
}

.category-flyout-sub {
  min-width: 0;
  padding: 18px 20px 20px;
  background: #fff;
}

.category-flyout-sub > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
}

.category-flyout-sub > header span {
  display: block;
  color: var(--muted);
  font-size: var(--font-caption);
}

.category-flyout-sub h3 {
  margin-top: 3px;
  font-size: 18px;
}

.category-flyout-sub > header small {
  color: var(--muted);
  font-size: var(--font-caption);
}

.category-flyout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.category-flyout-grid a {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 12px;
  background: #faf9f7;
  border: 1px solid transparent;
  border-radius: 5px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.category-flyout-grid a:hover {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgb(217 61 0 / 20%);
  transform: translateY(-1px);
}

.category-flyout-grid strong {
  overflow: hidden;
  font-size: var(--font-caption);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-flyout-grid span {
  color: var(--muted);
  font-size: var(--font-caption);
}

.hero-carousel {
  position: relative;
  min-width: 0;
  min-height: 362px;
  overflow: hidden;
  background: #191714;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 450ms ease;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(14 11 9 / 84%) 0%, rgb(14 11 9 / 56%) 48%, rgb(14 11 9 / 8%) 100%),
    linear-gradient(0deg, rgb(14 11 9 / 38%), transparent 48%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 68px;
  width: 54%;
  min-width: 0;
  color: #fff;
  overflow-wrap: anywhere;
  transform: translateY(-50%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  color: #fff2cc;
  background: rgb(217 61 0 / 84%);
  border-radius: var(--radius-sm);
  font-size: var(--font-caption);
  font-weight: 700;
}

.hero-copy h1 {
  margin-top: 12px;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 800;
}

.hero-copy p {
  margin-top: 10px;
  color: rgb(255 255 255 / 82%);
  font-size: var(--font-body);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-deal {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  width: 126px;
  max-width: 126px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 12px 10px;
  color: #281706;
  background: var(--accent);
  border: 3px solid rgb(255 255 255 / 82%);
  border-radius: 50%;
  aspect-ratio: 1;
  box-shadow: 0 11px 28px rgb(0 0 0 / 25%);
}

.hero-deal span,
.hero-deal em {
  font-size: var(--font-caption);
  font-style: normal;
  line-height: 1.2;
}

.hero-deal strong {
  font-size: 25px;
  line-height: 1;
}

.hero-deal small {
  font-size: var(--font-caption);
}

.hero-arrow,
.hero-dots button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(255 255 255 / 20%);
  border: 1px solid rgb(255 255 255 / 58%);
  backdrop-filter: blur(7px);
}

.hero-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    opacity 180ms ease,
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.hero-carousel:hover .hero-arrow,
.hero-carousel:focus-within .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.hero-arrow:hover {
  color: #251b13;
  background: rgb(255 255 255 / 88%);
  border-color: #fff;
}

.hero-arrow-prev {
  left: 14px;
}

.hero-arrow-next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  z-index: 6;
  bottom: 16px;
  left: 50%;
  display: flex;
  gap: 6px;
  padding: 6px 9px;
  background: rgb(20 16 13 / 30%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 16px;
  backdrop-filter: blur(7px);
  transform: translateX(-50%);
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  transition: width 180ms ease;
}

.hero-dots button.is-active {
  width: 24px;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 10px;
}

.hero-side {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.buyer-card {
  min-width: 0;
  padding: 18px 16px 15px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.buyer-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buyer-card-head > div {
  min-width: 0;
}

.avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #292520;
  border-radius: 50%;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.buyer-card.is-authenticated .avatar {
  color: #fff;
  background: linear-gradient(145deg, #0f8f79, #086957);
  box-shadow: 0 7px 18px rgb(8 105 87 / 18%);
}

.buyer-card.is-authenticated .buyer-card-head strong {
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-card.is-authenticated .buyer-card-head p {
  max-width: 184px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-card-head strong {
  font-size: var(--font-body);
}

.buyer-card-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--font-caption);
  overflow-wrap: anywhere;
}

.buyer-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.buyer-card-actions .button {
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.buyer-benefits span {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: var(--font-caption);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.buyer-benefits .icon {
  color: var(--primary);
}

.service-board {
  min-width: 0;
  padding: 16px;
}

.service-board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.service-board-title a,
.bulletin-head a {
  color: var(--muted);
  font-size: var(--font-caption);
}

.service-board-title a:hover,
.bulletin-head a:hover {
  color: var(--primary);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.service-grid a {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 4px;
  color: var(--muted);
  font-size: var(--font-caption);
  text-align: center;
  transition: color 160ms ease;
}

.service-grid a span {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.service-grid a:hover {
  color: var(--primary);
}

.service-grid .icon {
  width: 23px;
  height: 23px;
}

.bulletin {
  min-width: 0;
  padding: 0 16px 14px;
}

.bulletin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.bulletin ul {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.bulletin li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--font-caption);
}

.bulletin li span {
  flex: 0 0 auto;
  padding: 0 4px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 2px;
}

.bulletin li a {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:not([lang^="zh"]) .service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

html:not([lang^="zh"]) .service-grid a {
  min-height: 52px;
  grid-template-columns: 24px minmax(0, 1fr);
  place-items: center start;
  gap: 5px;
  padding: 6px 4px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 5px;
}

html:not([lang^="zh"]) .service-grid .icon {
  width: 20px;
  height: 20px;
}

.bulletin li a:hover {
  color: var(--primary);
}

.trust-strip {
  margin-top: 12px;
  padding: 0;
  background: transparent;
}

.trust-strip > .container {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.trust-grid > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid var(--border);
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}

.trust-grid strong {
  align-self: end;
  font-size: var(--font-body);
}

.trust-grid small {
  align-self: start;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--font-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-section,
.promo-section,
.flash-section {
  margin-top: 30px;
}

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

.section-heading h2,
.flash-header h2,
.recommend-header h2,
.sourcing-copy h2 {
  font-size: 25px;
  line-height: 1.25;
}

.section-heading > a,
.flash-header > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--font-caption);
}

.section-heading > a:hover,
.flash-header > a:hover {
  color: var(--primary);
}

.category-shortcuts {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.category-shortcut {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: var(--ink);
  background: transparent;
  border-radius: var(--radius-sm);
  text-align: center;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.category-shortcut:hover {
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.category-shortcut img,
.category-shortcut .shortcut-placeholder {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 6%);
}

.category-shortcut .shortcut-placeholder {
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
}

.category-shortcut .shortcut-placeholder .icon {
  width: 30px;
  height: 30px;
}

.category-shortcut strong {
  min-height: 2.7em;
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  font-size: var(--font-caption);
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-shortcut small {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  font-size: var(--font-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-section {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
}

.promo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.promo-card {
  position: relative;
  min-height: 254px;
  overflow: hidden;
  background: #221d18;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.promo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.promo-card:hover img {
  transform: scale(1.035);
}

.promo-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(17 14 12 / 86%) 0%, rgb(17 14 12 / 48%) 60%, transparent 100%);
  content: "";
}

.promo-card > div {
  position: relative;
  z-index: 2;
  width: 62%;
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: 28px;
  color: #fff;
}

.promo-card > div > span {
  color: #ffe28b;
  font-size: var(--font-caption);
  font-weight: 700;
}

.promo-card h2 {
  margin-top: 8px;
  font-size: 27px;
  line-height: 1.2;
}

.promo-card p {
  margin-top: 8px;
  color: rgb(255 255 255 / 75%);
  font-size: var(--font-caption);
}

.promo-card .button {
  width: fit-content;
  min-height: 36px;
  margin-top: 16px;
}

.promo-small {
  min-height: 121px;
}

.promo-small > div {
  width: 74%;
  padding: 17px;
}

.promo-small h2 {
  margin-top: 4px;
  font-size: 19px;
}

.promo-small p {
  margin-top: 4px;
  font-size: var(--font-caption);
}

.promo-blue::after {
  background: linear-gradient(90deg, rgb(7 41 73 / 90%), rgb(7 41 73 / 35%));
}

.promo-green::after {
  background: linear-gradient(90deg, rgb(11 55 42 / 90%), rgb(11 55 42 / 28%));
}

.factory-section {
  margin-top: 30px;
  padding: 0;
  color: #fff;
  background: transparent;
}

.factory-section > .container {
  padding: 30px;
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    var(--green-dark);
  background-size: 34px 34px;
  border-radius: var(--radius);
}

.section-heading-light .section-kicker {
  color: #ffc955;
}

.section-heading-light > a {
  color: rgb(255 255 255 / 68%);
}

.factory-filter {
  display: flex;
  gap: 8px;
}

.factory-filter button {
  min-height: 34px;
  padding: 0 14px;
  color: rgb(255 255 255 / 72%);
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: var(--radius-sm);
}

.factory-filter button.is-active,
.factory-filter button:hover {
  color: #1d160b;
  background: #ffc955;
  border-color: #ffc955;
}

.factory-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.factory-feature {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
}

.factory-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-feature::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(9 33 26 / 94%) 0%, rgb(9 33 26 / 14%) 72%);
  content: "";
}

.factory-feature-copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: #2f2100;
  background: #ffc955;
  border-radius: var(--radius-sm);
  font-size: var(--font-caption);
  font-weight: 700;
}

.factory-feature h3 {
  margin-top: 10px;
  font-size: 23px;
}

.factory-feature p {
  max-width: 520px;
  margin-top: 8px;
  color: rgb(255 255 255 / 72%);
}

.factory-feature dl {
  display: flex;
  gap: 28px;
  margin-top: 17px;
}

.factory-feature dl div {
  display: grid;
  gap: 2px;
}

.factory-feature dt {
  color: rgb(255 255 255 / 57%);
  font-size: var(--font-caption);
}

.factory-feature dd {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.factory-feature .button {
  margin-top: 18px;
}

.factory-list {
  display: grid;
  gap: 12px;
}

.factory-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 16px;
  padding: 14px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.factory-card:hover {
  background: rgb(255 255 255 / 11%);
  transform: translateY(-2px);
}

.factory-card img {
  width: 142px;
  height: 108px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.factory-card-content {
  min-width: 0;
  display: grid;
  align-content: center;
}

.factory-card-content > span {
  color: #ffc955;
  font-size: var(--font-caption);
}

.factory-card h3 {
  overflow: hidden;
  margin-top: 3px;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-card p {
  overflow: hidden;
  margin-top: 5px;
  color: rgb(255 255 255 / 63%);
  font-size: var(--font-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: rgb(255 255 255 / 62%);
  font-size: var(--font-caption);
}

.factory-card-meta strong {
  color: #fff;
}

.flash-header,
.recommend-header {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}

.flash-header {
  justify-content: space-between;
}

.flash-title {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: var(--font-caption);
}

.countdown strong {
  min-width: 28px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #2b2621;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

.countdown i {
  font-style: normal;
  font-weight: 700;
}

.flash-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.flash-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.flash-card:hover {
  border-color: rgb(217 61 0 / 34%);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.flash-card-image {
  position: relative;
  aspect-ratio: 1.14 / 1;
  overflow: hidden;
  background: var(--surface-warm);
}

.flash-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.flash-card:hover img {
  transform: scale(1.04);
}

.flash-card-image span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  color: #fff;
  background: var(--primary);
  border-radius: 3px;
  font-size: var(--font-caption);
  font-weight: 700;
}

.flash-card-content {
  padding: 11px;
}

.flash-card h3 {
  min-height: 42px;
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--font-caption);
  font-weight: 500;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flash-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 9px;
}

.flash-price strong {
  color: var(--primary);
  font-size: 21px;
}

.flash-price strong small {
  font-size: var(--font-caption);
}

.flash-price del,
.flash-sold {
  color: var(--muted-light);
  font-size: var(--font-caption);
}

.flash-sold {
  display: block;
  margin-top: 3px;
}

.recommend-section {
  margin-top: 30px;
  padding: 30px 0 360px;
  background: #fff;
}

.recommend-header {
  flex-wrap: wrap;
}

.recommend-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.recommend-tabs button {
  min-height: 34px;
  padding: 0 13px;
  color: var(--muted);
  background: var(--surface-warm);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.recommend-tabs button.is-active,
.recommend-tabs button:hover {
  color: #fff;
  background: var(--primary);
}

.filter-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.filter-button:hover {
  border-color: var(--primary);
}

.filter-count {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  border-radius: 9px;
  font-size: var(--font-caption);
}

.active-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: var(--font-caption);
}

#active-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 8px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 13px;
}

#clear-filters {
  padding: 0;
  color: var(--primary);
  background: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.product-card:hover {
  border-color: rgb(217 61 0 / 42%);
  box-shadow: 0 12px 28px rgb(43 32 23 / 13%);
  transform: translateY(-3px);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-warm);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  max-width: calc(100% - 56px);
  padding: 4px 7px;
  overflow: hidden;
  color: #fff;
  background: var(--primary);
  border-radius: 3px;
  font-size: var(--font-caption);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-badge.badge-green {
  background: var(--green);
}

.product-badge.badge-blue {
  background: var(--blue);
}

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a443e;
  background: rgb(255 255 255 / 90%);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgb(0 0 0 / 10%);
}

.favorite-button:hover,
.favorite-button.is-active {
  color: var(--primary);
}

.favorite-button.is-active .icon {
  fill: currentColor;
}

.product-card-content {
  min-width: 0;
  overflow: hidden;
  padding: 11px 12px 12px;
}

.product-title {
  min-height: 44px;
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--font-body);
  font-weight: 500;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-price-row {
  min-height: 36px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.product-price {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--primary);
}

.product-price small {
  font-size: var(--font-caption);
  font-weight: 700;
}

.product-price strong {
  white-space: nowrap;
  font-size: 24px;
  line-height: 1;
}

.product-price em {
  margin-left: 3px;
  color: var(--muted);
  font-size: var(--font-caption);
  font-style: normal;
}

.product-sold {
  color: var(--muted);
  font-size: var(--font-caption);
  white-space: nowrap;
}

.product-tags {
  height: 47px;
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  overflow: hidden;
}

.product-tags span {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: #7d5b00;
  background: var(--accent-soft);
  border-radius: 2px;
  font-size: var(--font-caption);
}

.product-tags span.orange {
  color: var(--primary);
  background: var(--primary-soft);
}

.product-supplier {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--font-caption);
}

.product-supplier strong {
  overflow: hidden;
  color: #4b453f;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-supplier span {
  flex: 0 0 auto;
}

.product-supplier .icon {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 220ms ease,
    margin-top 220ms ease,
    opacity 180ms ease;
}

.product-card:hover .product-card-actions,
.product-card:focus-within .product-card-actions {
  max-height: 48px;
  margin-top: 10px;
  opacity: 1;
}

.product-card-actions button {
  min-height: 34px;
  padding: 0 7px;
  font-size: var(--font-caption);
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 70px 20px;
  text-align: center;
}

.empty-state > .icon {
  width: 50px;
  height: 50px;
  color: var(--muted-light);
}

.empty-state h3 {
  margin-top: 14px;
  font-size: 19px;
}

.empty-state p {
  margin-top: 5px;
  color: var(--muted);
}

.empty-state .button {
  margin-top: 18px;
}

.load-more {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: min(100%, 360px);
  margin: 24px auto 0;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.load-more:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.sourcing-section {
  position: relative;
  z-index: 3;
  margin-top: -300px;
  padding: 42px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 6%) 0 12%, transparent 12% 24%, rgb(255 255 255 / 5%) 24% 36%, transparent 36%),
    var(--primary);
  background-size: 420px 100%;
}

.sourcing-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: center;
  gap: 64px;
}

.sourcing-copy .section-kicker {
  color: #ffe39a;
}

.sourcing-copy h2 {
  margin-top: 5px;
  font-size: 31px;
  line-height: 1.28;
}

.sourcing-copy > p {
  max-width: 620px;
  margin-top: 12px;
  color: rgb(255 255 255 / 80%);
  font-size: var(--font-body);
}

.sourcing-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  color: rgb(255 255 255 / 88%);
}

.sourcing-copy li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sourcing-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.sourcing-form label {
  display: grid;
  gap: 6px;
}

.sourcing-form label > span {
  font-size: var(--font-caption);
  font-weight: 600;
}

.sourcing-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: 0;
}

.sourcing-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(217 61 0 / 10%);
}

.sourcing-form input::placeholder {
  color: #aaa29b;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sourcing-form .button {
  min-height: 44px;
  margin-top: 4px;
}

.sourcing-form small {
  color: var(--muted);
  font-size: var(--font-caption);
  text-align: center;
}

.site-footer {
  color: #bdb6af;
  background: #24211e;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, 1fr) 180px;
  gap: 46px;
  padding-block: 44px;
}

.brand-footer .brand-copy strong {
  color: #fff;
}

.brand-footer .brand-copy small {
  color: #9d9690;
}

.footer-brand > p {
  max-width: 340px;
  margin-top: 18px;
  color: #918a84;
  line-height: 1.8;
}

.footer-contact {
  display: grid;
  gap: 3px;
  margin-top: 18px;
}

.footer-contact strong {
  color: #fff;
  font-size: 22px;
}

.footer-contact span {
  font-size: var(--font-caption);
}

.footer-main nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-main h3 {
  margin-bottom: 5px;
  color: #fff;
  font-size: var(--font-body);
}

.footer-main nav a {
  width: fit-content;
  color: #918a84;
  font-size: var(--font-caption);
  transition: color 160ms ease;
}

.footer-main nav a:hover {
  color: #fff;
}

.footer-app {
  display: grid;
  justify-items: start;
}

.qr-placeholder {
  width: 104px;
  height: 104px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 11px;
  background: #fff;
}

.qr-placeholder span {
  background: #25211e;
}

.qr-placeholder span:nth-child(2n),
.qr-placeholder span:nth-child(7) {
  background: transparent;
  box-shadow: inset 0 0 0 3px #25211e;
}

.footer-app strong {
  margin-top: 13px;
  color: #fff;
  font-size: var(--font-caption);
}

.footer-app p {
  margin-top: 3px;
  color: #918a84;
  font-size: var(--font-caption);
}

.footer-bottom {
  color: #fff;
  background: #1b1916;
  font-size: var(--font-caption);
}

.footer-bottom .container {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding-block: 12px;
}

.footer-copyright,
.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-legal-links {
  justify-content: flex-end;
}

.footer-legal-links a {
  display: inline-flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.footer-legal-links a img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 2px;
}

.footer-bottom a:hover {
  color: var(--accent);
}

.mobile-bottom-nav {
  display: none;
}

.floating-service {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: 76px;
  width: 54px;
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgb(104 34 5 / 28%);
}

.floating-service:hover {
  background: var(--primary-dark);
}

.floating-service span {
  font-size: var(--font-caption);
}

.drawer-backdrop {
  position: fixed;
  z-index: 190;
  inset: 0;
  background: rgb(17 13 10 / 52%);
  backdrop-filter: blur(2px);
}

.cart-drawer {
  position: fixed;
  z-index: 210;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 50px rgb(20 15 10 / 20%);
  transform: translateX(105%);
  transition: transform 260ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  font-size: 20px;
}

.drawer-header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--font-caption);
}

.drawer-header .icon-button {
  background: var(--surface-warm);
}

.cart-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-content {
  min-width: 0;
}

.cart-item h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--font-caption);
  font-weight: 500;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-item-price {
  margin-top: 7px;
  color: var(--primary);
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}

.cart-item-controls .quantity-control {
  transform: scale(0.88);
  transform-origin: left center;
}

.remove-cart-item {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
}

.remove-cart-item:hover {
  color: var(--danger);
}

.cart-empty {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
}

.cart-empty > .icon {
  width: 54px;
  height: 54px;
  color: var(--muted-light);
}

.cart-empty h3 {
  margin-top: 15px;
}

.cart-empty p {
  max-width: 240px;
  margin-top: 6px;
  color: var(--muted);
}

.cart-empty .button {
  margin-top: 18px;
}

.cart-footer {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.cart-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cart-summary strong {
  color: var(--primary);
  font-size: 20px;
}

.cart-footer > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--font-caption);
}

.checkout-button {
  width: 100%;
  min-height: 46px;
  margin-top: 15px;
}

.modal {
  position: fixed;
  z-index: 230;
  display: none;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.modal.is-open {
  display: grid;
  animation: modal-in 220ms ease both;
}

@keyframes modal-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: rgb(255 255 255 / 90%);
  box-shadow: var(--shadow-sm);
}

.product-modal {
  top: 50%;
  left: 50%;
  width: min(960px, calc(100% - 30px));
  max-height: min(690px, calc(100vh - 30px));
  grid-template-columns: 47% 53%;
  overflow: auto;
  border-radius: var(--radius);
  transform: translate(-50%, -50%);
}

.modal.product-modal.is-open {
  display: grid;
}

.product-modal-media {
  position: relative;
  min-height: 560px;
  background: var(--surface-warm);
}

.product-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 5px 9px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: var(--font-caption);
  font-weight: 700;
}

.product-modal-copy {
  min-width: 0;
  padding: 38px 34px 30px;
}

.modal-supplier {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: var(--font-caption);
  font-weight: 600;
}

.modal-supplier::before {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--green);
}

.product-modal-copy h2 {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.35;
}

.modal-product-desc {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  padding: 15px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
}

.modal-price-box > span {
  color: var(--muted);
  font-size: var(--font-caption);
}

.modal-price-box strong {
  color: var(--primary);
  font-size: 18px;
}

.modal-price-box strong em {
  font-size: 32px;
  font-style: normal;
}

.modal-price-box small {
  margin-left: auto;
  color: var(--muted);
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border-block: 1px solid var(--border);
}

.modal-specs div {
  display: grid;
  gap: 3px;
  padding: 12px 4px;
}

.modal-specs dt {
  color: var(--muted);
  font-size: var(--font-caption);
}

.modal-specs dd {
  font-size: var(--font-caption);
  font-weight: 600;
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.modal-option > span {
  font-size: var(--font-caption);
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 38px 56px 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quantity-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface-warm);
}

.quantity-control button:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.quantity-control input {
  width: 100%;
  border: 0;
  border-inline: 1px solid var(--border);
  outline: 0;
  text-align: center;
  appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.modal-option > em {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--font-caption);
  font-style: normal;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--font-caption);
}

.modal-badges span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.modal-badges .icon {
  color: var(--green);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: 24px;
}

.modal-actions .button {
  min-height: 46px;
}

.login-modal {
  top: 50%;
  left: 50%;
  width: min(800px, calc(100% - 30px));
  min-height: 500px;
  grid-template-columns: 44% 56%;
  overflow: hidden;
  border-radius: var(--radius);
  transform: translate(-50%, -50%);
}

.modal.login-modal.is-open {
  display: grid;
}

.login-visual {
  display: grid;
  align-content: center;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(16 55 45 / 10%), rgb(16 55 45 / 92%)),
    url("assets/images/packaging.webp") center / cover;
}

.login-visual > span {
  color: #ffd878;
  font-size: var(--font-caption);
  font-weight: 700;
}

.login-visual h2 {
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.3;
}

.login-visual ul {
  display: grid;
  gap: 11px;
  margin-top: 26px;
}

.login-visual li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 86%);
}

.login-form {
  display: grid;
  align-content: center;
  gap: 16px;
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  padding: 46px;
}

.login-form h2 {
  margin-bottom: 5px;
  font-size: 27px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #f4f2ef;
  border-radius: 7px;
}

.auth-tabs button {
  min-height: 36px;
  color: #6d655f;
  background: transparent;
  border-radius: 5px;
  font-weight: 600;
}

.auth-tabs button.is-active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 2px 8px rgb(31 25 19 / 8%);
}

.auth-pane {
  display: grid;
  gap: 14px;
}

.auth-pane[hidden] {
  display: none;
}

.login-form label {
  display: grid;
  gap: 7px;
}

.login-form label > span {
  font-size: var(--font-caption);
}

.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: 0;
}

.login-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(217 61 0 / 10%);
}

.code-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.code-input button {
  min-width: 108px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  color: var(--muted);
  font-size: var(--font-caption);
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.login-form .button {
  min-height: 46px;
}

.login-help {
  color: var(--muted);
  font-size: var(--font-caption);
  text-align: center;
}

.login-help button {
  padding: 0;
  color: var(--primary);
  background: transparent;
  font: inherit;
}

.filter-modal {
  top: 50%;
  left: 50%;
  width: min(560px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--radius);
  transform: translate(-50%, -50%);
}

.filter-modal-head {
  padding-right: 40px;
}

.filter-modal-head h2 {
  font-size: 24px;
}

.filter-groups {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.filter-groups fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-groups legend {
  width: 100%;
  margin-bottom: 8px;
  font-weight: 600;
}

.filter-groups label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.filter-groups label:has(input:checked) {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgb(217 61 0 / 38%);
}

.filter-groups input {
  accent-color: var(--primary);
}

.filter-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-top: 26px;
}

.filter-modal-actions .button {
  min-height: 44px;
}

.support-modal {
  top: 50%;
  left: 50%;
  width: min(410px, calc(100% - 30px));
  padding: 38px 34px 30px;
  border-radius: var(--radius);
  text-align: center;
  transform: translate(-50%, -50%);
}

.support-avatar {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}

.support-avatar .icon {
  width: 30px;
  height: 30px;
}

.support-modal h2 {
  margin-top: 16px;
  font-size: 22px;
}

.support-modal p {
  margin-top: 8px;
  color: var(--muted);
}

.support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

.support-modal > small {
  display: block;
  margin-top: 14px;
  color: var(--muted-light);
}

.toast-region {
  position: fixed;
  z-index: 300;
  top: 22px;
  left: 50%;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 30px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  color: #fff;
  background: rgb(36 33 30 / 96%);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  animation: toast-in 220ms ease both;
}

.toast .icon {
  color: #8ce0bd;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1600px) {
  .container {
    width: min(calc(100% - 48px), 1540px);
  }

  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1240px) {
  .topbar-links a:nth-of-type(n + 3):not(.topbar-manage-company),
  .topbar-left > span:nth-of-type(2) {
    display: none;
  }

  .header-main {
    grid-template-columns: 220px minmax(320px, 1fr) 180px;
    gap: 18px;
  }

  .brand-copy strong {
    font-size: 24px;
  }

  .header-action {
    padding-inline: 5px;
  }

  .hero-section {
    grid-template-columns: 200px minmax(0, 1fr) 330px;
  }

  html:not([lang^="zh"]) .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .category-shortcuts {
    grid-template-columns: repeat(5, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .flash-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .flash-card:last-child {
    display: none;
  }

  .footer-main {
    grid-template-columns: minmax(250px, 1.4fr) repeat(3, 1fr);
  }

  .footer-app {
    display: none;
  }
}

@media (max-width: 1360px) and (min-width: 1241px) {
  .hero-section {
    grid-template-columns: 210px minmax(0, 1fr) 360px;
  }

  html:not([lang^="zh"]) .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .topbar-links a:nth-last-child(1):not(.topbar-manage-company),
  .topbar-links a:nth-last-child(2):not(.topbar-manage-company) {
    display: none;
  }

  .header-main {
    grid-template-columns: 210px minmax(0, 1fr) 180px;
  }

  .header-actions {
    grid-template-columns: 1fr;
  }

  .category-trigger {
    width: 200px;
  }

  .nav-links a:nth-child(n + 6) {
    display: none;
  }

  .hero-section {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .hero-side {
    display: none;
  }

  .trust-grid > div {
    padding-inline: 10px;
  }

  .trust-grid > div:nth-child(5) {
    display: none;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-strip > .container {
    padding: 14px 12px;
  }

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

  .factory-section > .container {
    padding: 22px 16px;
  }

  .factory-feature {
    min-height: 430px;
  }

  .factory-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .factory-card {
    grid-template-columns: 1fr;
  }

  .factory-card img {
    width: 100%;
    height: 122px;
  }

  .sourcing-layout {
    grid-template-columns: 1fr 390px;
    gap: 30px;
  }

  .sourcing-copy h2 {
    font-size: 27px;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 66px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .topbar {
    display: none;
  }

  .site-header {
    z-index: 90;
  }

  .site-header.is-compact .header-main {
    min-height: 88px;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch;
    padding-block: 4px;
    column-gap: 10px;
    row-gap: 4px;
  }

  .site-header.is-compact .brand-mark {
    width: 34px;
    height: 34px;
  }

  .site-header.is-compact .brand-copy strong {
    font-size: 20px;
  }

  .site-header.is-compact .search-form {
    height: 38px;
  }

  .site-header.is-compact .mobile-menu-button {
    width: 38px;
    height: 38px;
  }

  .header-main {
    min-height: 118px;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .mobile-menu-button {
    display: inline-flex;
    margin-left: 0;
  }

  .brand {
    justify-self: start;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .brand-copy small {
    display: none;
  }

  .search-area {
    grid-column: 1 / -1;
  }

  .search-form {
    grid-template-columns: 1fr 82px;
    height: 44px;
  }

  .search-submit {
    padding-inline: 12px;
  }

  .hot-keywords {
    height: 32px;
    max-height: 32px;
    padding-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hot-keywords::-webkit-scrollbar {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 118px;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open .container {
    display: grid;
    align-items: stretch;
    padding-block: 8px;
  }

  .main-nav.is-open .category-trigger {
    width: 100%;
  }

  .main-nav.is-open .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 8px 0;
  }

  .main-nav.is-open .nav-links a,
  .main-nav.is-open .nav-links a:nth-child(n) {
    display: flex;
    justify-content: center;
    background: var(--surface-warm);
  }

  .main-nav.is-open .nav-side-link {
    justify-content: center;
    min-height: 36px;
    margin: 0;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
  }

  .main-nav.is-open .mobile-nav-language {
    display: grid;
    gap: 8px;
    margin-top: 8px;
  }

  .mobile-nav-language > span {
    color: var(--muted);
    font-size: var(--font-caption);
    font-weight: 700;
  }

  .mobile-language-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .mobile-language-options button {
    min-height: 36px;
    background: var(--surface-warm);
    text-align: center;
  }

  .category-panel {
    max-height: calc(100vh - var(--sticky-header-height, 118px));
    overflow-y: auto;
  }

  .category-panel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .hero-categories {
    display: none;
  }

  .hero-carousel {
    min-height: 330px;
  }

  .hero-copy {
    left: 60px;
    width: 65%;
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .hero-deal {
    right: 16px;
    bottom: 16px;
    width: 108px;
  }

  .hero-deal strong {
    font-size: 22px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 0;
  }

  .trust-grid > div:nth-child(5) {
    display: grid;
  }

  .trust-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .trust-grid > div {
    min-height: 44px;
  }

  .category-shortcuts {
    grid-template-columns: repeat(5, 1fr);
    padding: 14px 8px;
  }

  .category-shortcut img,
  .category-shortcut .shortcut-placeholder {
    width: 58px;
    height: 58px;
  }

  .category-shortcut small {
    display: none;
  }

  .promo-section {
    grid-template-columns: 1fr;
  }

  .promo-main {
    min-height: 280px;
  }

  .promo-stack {
    grid-template-columns: 1fr 1fr;
  }

  .promo-small {
    min-height: 180px;
  }

  .factory-filter {
    display: none;
  }

  .factory-feature {
    min-height: 410px;
  }

  .factory-feature dl {
    gap: 18px;
  }

  .factory-list {
    grid-template-columns: 1fr;
  }

  .factory-card {
    grid-template-columns: 120px 1fr;
  }

  .factory-card img {
    width: 120px;
    height: 100px;
  }

  .flash-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .flash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flash-card:last-child {
    display: block;
  }

  .recommend-section {
    padding-bottom: 280px;
  }

  .recommend-header {
    align-items: flex-start;
  }

  .recommend-tabs {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .recommend-tabs::-webkit-scrollbar {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card-actions {
    max-height: 48px;
    margin-top: 10px;
    opacity: 1;
  }

  .sourcing-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sourcing-copy h2 {
    font-size: 29px;
  }

  .sourcing-form {
    max-width: 520px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-main nav:nth-of-type(3) {
    display: none;
  }

  .footer-bottom .container {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0 18px;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 150;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 62px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: rgb(255 255 255 / 97%);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgb(34 26 18 / 8%);
    backdrop-filter: blur(10px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    min-width: 0;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    color: var(--muted);
    background: transparent;
    font-size: var(--font-caption);
  }

  .mobile-bottom-nav .is-active {
    color: var(--primary);
  }

  .bottom-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .bottom-cart-count {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-size: var(--font-caption);
    font-style: normal;
  }

  .floating-service {
    bottom: 76px;
  }

  .product-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 20px);
  }

  .product-modal-media {
    min-height: 310px;
    max-height: 340px;
  }

  .product-modal-copy {
    padding: 26px 22px 22px;
  }

  .login-modal {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 190px;
    padding: 30px;
  }

  .login-visual h2 {
    font-size: 26px;
  }

  .login-visual ul {
    display: none;
  }

  .login-form {
    padding: 30px;
  }
}

@media (max-width: 560px) {
  .hero-carousel {
    min-height: 360px;
  }

  .hero-slide img {
    object-position: 65% center;
  }

  .hero-copy {
    top: 34px;
    left: 58px;
    width: calc(100% - 78px);
    transform: none;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-copy p {
    max-width: 260px;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-actions .button {
    min-height: 38px;
    padding-inline: 13px;
    font-size: var(--font-caption);
    white-space: normal;
  }

  .hero-deal {
    display: none;
  }

  .hero-arrow {
    width: 34px;
    height: 34px;
  }

  .hero-arrow-prev {
    left: 8px;
  }

  .hero-arrow-next {
    right: 8px;
  }

  .hero-dots {
    bottom: 12px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div,
  .trust-grid > div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
  }

  .trust-grid > div:last-child {
    border-bottom: 0;
  }

  .section-heading h2,
  .flash-header h2,
  .recommend-header h2,
  .sourcing-copy h2 {
    font-size: 22px;
  }

  .section-heading > a {
    display: none;
  }

  .category-shortcuts {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-shortcut:nth-child(n + 9) {
    display: none;
  }

  .category-shortcut img,
  .category-shortcut .shortcut-placeholder {
    width: 54px;
    height: 54px;
  }

  .promo-card > div {
    width: 76%;
    padding: 22px;
  }

  .promo-card h2 {
    font-size: 23px;
  }

  .promo-stack {
    grid-template-columns: 1fr;
  }

  .promo-small {
    min-height: 170px;
  }

  .factory-feature {
    min-height: 440px;
  }

  .factory-feature-copy {
    padding: 20px;
  }

  .factory-feature h3 {
    font-size: 19px;
  }

  .factory-feature p {
    font-size: var(--font-caption);
  }

  .factory-feature dl {
    gap: 12px;
  }

  .factory-feature dd {
    font-size: var(--font-body);
  }

  .factory-card {
    grid-template-columns: 96px 1fr;
    gap: 11px;
    padding: 11px;
  }

  .factory-card img {
    width: 96px;
    height: 90px;
  }

  .factory-card-meta {
    gap: 8px;
  }

  .flash-header {
    align-items: flex-start;
  }

  .flash-header > a {
    display: none;
  }

  .flash-grid {
    gap: 8px;
  }

  .flash-card-content {
    padding: 9px;
  }

  .flash-card h3 {
    font-size: var(--font-caption);
  }

  .flash-price strong {
    font-size: 18px;
  }

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

  .product-card-content {
    padding: 9px;
  }

  .product-title {
    min-height: 40px;
    font-size: var(--font-caption);
  }

  .product-price strong {
    font-size: 20px;
  }

  .product-price-row {
    display: grid;
    align-items: start;
    gap: 4px;
  }

  .product-sold {
    margin-left: 0;
    font-size: var(--font-caption);
  }

  .product-tags {
    height: 45px;
  }

  .product-tags span:nth-child(n + 3) {
    display: none;
  }

  .product-supplier span {
    display: none;
  }

  .product-supplier {
    align-items: flex-start;
  }

  .product-supplier strong {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-card-actions {
    grid-template-columns: 1fr;
  }

  .product-card-actions button:first-child {
    display: none;
  }

  .sourcing-section {
    padding: 34px 0;
  }

  .sourcing-copy h2 {
    font-size: 25px;
  }

  .sourcing-copy ul {
    display: grid;
    gap: 9px;
  }

  .sourcing-form {
    padding: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-main nav:nth-of-type(3) {
    display: grid;
  }

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

  .footer-main nav:last-of-type {
    display: none;
  }

  .footer-copyright,
  .footer-legal-links {
    display: grid;
    justify-items: start;
    gap: 5px;
  }

  .footer-legal-links a {
    display: inline-flex !important;
    flex-wrap: nowrap;
    white-space: normal;
  }

  .floating-service {
    right: 12px;
    width: 48px;
    min-height: 62px;
  }

  .product-modal-media {
    min-height: 260px;
    max-height: 280px;
  }

  .modal-specs {
    grid-template-columns: 1fr 1fr;
  }

  .modal-specs div:last-child {
    display: none;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 158px;
  }

  .login-visual h2 {
    font-size: 23px;
  }

  .login-form {
    padding: 24px 22px;
  }

  .support-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
