: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;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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: 14px;
  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: relative;
  z-index: 80;
  background: var(--surface);
  box-shadow: 0 1px 0 rgb(31 25 19 / 6%);
}

.topbar {
  min-height: 32px;
  color: #d9d4cf;
  background: #25221f;
}

.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: 12px;
}

.topbar-links {
  font-size: 12px;
}

.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-links .icon,
.location .icon {
  width: 14px;
  height: 14px;
}

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

.header-main {
  min-height: 102px;
  display: grid;
  grid-template-columns: 250px minmax(460px, 1fr) 310px;
  align-items: center;
  gap: 26px;
}

.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;
  color: #fff;
  background: var(--primary);
  border-radius: 12px 12px 4px 12px;
  box-shadow: 0 8px 18px rgb(217 61 0 / 22%);
}

.brand-mark .icon {
  width: 28px;
  height: 28px;
}

.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: 11px;
}

.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-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: 24px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.hot-keywords button {
  padding: 0;
  color: var(--muted);
  background: transparent;
}

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

.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: 12px;
}

.header-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
}

.header-action {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  transition: background-color 180ms ease;
}

.header-action:hover {
  background: var(--surface-warm);
}

.header-action .action-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}

.header-action > span:last-child {
  display: grid;
  gap: 3px;
  text-align: left;
}

.header-action small {
  color: var(--muted);
  font-size: 11px;
}

.header-action strong {
  font-size: 13px;
}

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

.main-nav {
  border-top: 1px solid var(--border);
  background: #fff;
}

.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: 14px;
  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: absolute;
  z-index: 70;
  top: 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: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.hero-categories {
  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 button {
  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 button:hover,
.hero-categories li button.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

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

.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;
}

.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;
  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: 38px;
  width: 54%;
  color: #fff;
  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: 11px;
  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: 14px;
}

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

.hero-deal {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  width: 126px;
  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: 11px;
  font-style: normal;
  line-height: 1.2;
}

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

.hero-deal small {
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: 20px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.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 {
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 50%;
}

.hero-dots {
  display: flex;
  gap: 6px;
}

.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 {
  padding: 18px 16px 15px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

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

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

.buyer-card-head strong {
  font-size: 15px;
}

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

.buyer-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.buyer-card-actions .button {
  min-height: 36px;
  padding: 0 10px;
}

.buyer-benefits {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 14px;
}

.buyer-benefits span {
  display: grid;
  place-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

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

.service-board {
  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: 12px;
}

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

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

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

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

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

.bulletin {
  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: 12px;
}

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

.bulletin li a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.trust-strip {
  margin-top: 12px;
  padding: 16px 0;
  background: #fff;
  border-block: 1px solid var(--border);
}

.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: 14px;
}

.trust-grid small {
  align-self: start;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  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: 13px;
}

.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 {
  overflow: hidden;
  max-width: 100%;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-shortcut small {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  font-size: 11px;
  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: 12px;
  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: 12px;
}

.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: 11px;
}

.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: 30px 0;
  color: #fff;
  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;
}

.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: 11px;
  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: 11px;
}

.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: 11px;
}

.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: 12px;
  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: 11px;
}

.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: 11px;
}

.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: 11px;
  font-weight: 700;
}

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

.flash-card h3 {
  min-height: 42px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  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: 12px;
}

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

.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: 10px;
}

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

#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: 10px;
  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 {
  padding: 11px 12px 12px;
}

.product-title {
  min-height: 44px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  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;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

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

.product-price small {
  font-size: 12px;
  font-weight: 700;
}

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

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

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

.product-tags {
  min-height: 25px;
  display: flex;
  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: 10px;
}

.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: 11px;
}

.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: 12px;
}

.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: 15px;
}

.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: 12px;
  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: 10px;
  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: 11px;
}

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

.footer-main h3 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 15px;
}

.footer-main nav a {
  width: fit-content;
  color: #918a84;
  font-size: 13px;
  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: 13px;
}

.footer-app p {
  margin-top: 3px;
  color: #918a84;
  font-size: 11px;
}

.footer-bottom {
  color: #7f7872;
  background: #1b1916;
  font-size: 11px;
}

.footer-bottom .container {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom .container > div {
  display: flex;
  gap: 18px;
}

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

.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: 11px;
}

.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: 12px;
}

.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: 13px;
  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: 11px;
}

.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: 11px;
  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: 12px;
  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: 12px;
}

.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: 11px;
}

.modal-specs dd {
  font-size: 13px;
  font-weight: 600;
}

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

.modal-option > span {
  font-size: 12px;
}

.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: 11px;
  font-style: normal;
}

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

.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: 12px;
  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;
  padding: 46px;
}

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

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

.login-form label > span {
  font-size: 12px;
}

.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: 11px;
}

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

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

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

.login-help a {
  color: var(--primary);
}

.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) {
  .header-main {
    grid-template-columns: 220px minmax(350px, 1fr) 260px;
    gap: 18px;
  }

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

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

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

  .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: 1024px) {
  .topbar-links a:nth-last-child(1),
  .topbar-links a:nth-last-child(2) {
    display: none;
  }

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

  .header-actions .header-action:last-child {
    display: none;
  }

  .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);
  }

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

  .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 {
    position: sticky;
    top: 0;
    z-index: 90;
  }

  .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;
    border-radius: 9px 9px 3px 9px;
  }

  .brand-mark .icon {
    width: 23px;
    height: 23px;
  }

  .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: 22px;
  }

  .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);
  }

  .category-panel {
    top: 118px;
    max-height: calc(100vh - 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: 24px;
    width: 65%;
  }

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

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

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

  .hero-controls {
    top: auto;
    right: auto;
    bottom: 18px;
    left: 24px;
  }

  .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;
  }

  .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: 10px;
  }

  .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: 9px;
    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: 20px;
    width: calc(100% - 40px);
    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: 12px;
  }

  .hero-deal {
    width: 92px;
    bottom: 14px;
  }

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

  .hero-controls {
    bottom: 17px;
    left: 20px;
  }

  .hero-arrow {
    display: none;
  }

  .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: 12px;
  }

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

  .factory-feature dd {
    font-size: 15px;
  }

  .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: 12px;
  }

  .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: 12px;
  }

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

  .product-sold {
    font-size: 10px;
  }

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

  .product-supplier span {
    display: none;
  }

  .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-bottom .container > span:nth-child(2) {
    display: none;
  }

  .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;
  }
}
