/* Buyer storefront visual system, inspired by the reference site's spacing and composition. */
:root {
  --ink: #29282d;
  --muted: #777982;
  --line: #e6e6e9;
  --line-soft: #eeeeef;
  --paper: #fff;
  --bg: #f3f3f5;
  --accent: #ef603d;
  --accent-deep: #d94d2b;
  --accent-soft: #fa7957;
  --accent-ink: #fff;
  --wash: #fff0e9;
  --accent-2: #ef603d;
  --accent-2-deep: #d94d2b;
  --accent-2-wash: #fff0e9;
  --radius: 13px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(34, 31, 42, .055);
  --shadow-lift: 0 13px 30px rgba(34, 31, 42, .12);
  --sans: Inter, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  --wrap: 1200px;
}

body { background: var(--bg); }
a:hover { color: var(--accent-deep); }

.topbar {
  background: #fff;
  color: #74767c;
  border-bottom: 1px solid #f4f4f4;
}
.topbar-row { min-height: 40px; }
.topbar-note > span:first-child,
.topbar-note > .topbar-sep:first-of-type { display: none; }
.topbar-note { gap: .6rem; }
.topbar-note .topbar-switch.topbar-lang::before { background: var(--accent); }
.topbar-switch a { color: #5e6068; }
.topbar-switch a.on { color: var(--accent); }
.topbar-links a { color: #555861; }
.topbar-links a:hover { color: var(--accent); }
.topbar .who strong { color: var(--accent); }
.topbar-reference-links { gap: 0; }
.topbar-reference-links .logout { margin-right: 1rem; }
.topbar-reference-links .topbar-utility-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  color: #777980;
  font-size: .83rem;
  text-decoration: none;
}
.topbar-reference-links .topbar-utility-link:hover { color: var(--accent); text-decoration: none; }
.topbar-utility-icon {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid #e1e1e4;
  border-radius: 50%;
  background: #f7f7f8;
  color: #34353a;
}
.topbar-utility-icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar-reference-sep { width: 1px; height: 22px; margin: 0 1rem; background: #e9e9eb; }

.site-header {
  border-bottom: 0;
  box-shadow: 0 2px 13px rgba(36, 36, 40, .035);
}
.header-bar {
  min-height: 90px;
  padding: .9rem 0;
  gap: 2rem;
}
.logo-text .wordmark,
.logo-text strong { color: var(--accent); font-size: 1.7rem; letter-spacing: -.045em; }
.logo-text .wm-go { color: var(--accent); }
.logo-text small { display: none; }
.logo img { width: 37px; height: 37px; }
.logo img.brand-logo {
  width: auto;
  height: 52px;
  max-width: min(220px, 42vw);
  object-fit: contain;
}
.search {
  max-width: 570px;
  border: 0;
  border-radius: 18px;
  background: #f4f4f6;
  padding: 5px;
}
.search input[type="search"] { padding: .55rem .9rem; }
.search > button[type="submit"] {
  min-height: 37px;
  border-radius: 12px;
  background: var(--accent);
}
.search > button[type="submit"]:hover { background: var(--accent-deep); }
.search-mode {
  background: #fff;
  color: var(--accent-deep);
  border: 1px solid #ffd2c2;
}
.search-mode:hover { background: #fff4ef; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(239, 96, 61, .17); }
.icon-link svg { color: var(--accent); }
.header-tools .icon-link small { display: none; }
.header-tools .icon-link { font-size: .83rem; }
.header-tools .account { gap: .85rem; }
.header-tools .logout { margin-left: .3rem; }

.cat-nav { background: #fff; border-top: 1px solid #f2f2f3; border-bottom: 1px solid var(--line-soft); }
.cat-row { min-height: 42px; }
.cat-row a { font-size: .86rem; }
.all-cats { background: var(--wash); color: var(--accent); }
.all-cats:hover, .all-cats.on { background: #ffe2d5; color: var(--accent-deep); }
.cat-links a, .cat-extra a { color: #62646d; }
.cat-links a:hover, .cat-extra a:hover { background: var(--wash); color: var(--accent-deep); }
.cat-links a.on,
.cat-extra a.on { color: var(--accent-deep); box-shadow: inset 0 -3px 0 var(--accent); }
.cat-extra .deal-link { color: #e08a2b; }
.cat-extra .deal-link:hover,
.cat-extra .deal-link.on { color: var(--accent-deep); }
.cat-note { display: none; }

.home { padding-top: 1.25rem; }
.home-hero {
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, .8fr);
  min-height: 415px;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.home-hero .hero-cats { display: none; }
.home-hero .carousel {
  min-height: 415px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.home-hero .slide { padding: 2.8rem 3.4rem; }
.home-hero .slide h1,
.home-hero .slide h2 { font-size: clamp(1.65rem, 2.9vw, 2.55rem); }
.home-hero .slide-a {
  background: radial-gradient(circle at 85% 25%, #ffd06c 0, transparent 34%),
    linear-gradient(120deg, #ee6841, #fa9569 60%, #ffd19b);
}
.home-hero .slide-b {
  background: repeating-linear-gradient(140deg, rgba(255,255,255,.08) 0 16px, transparent 16px 34px),
    linear-gradient(120deg, #b44a4a, #ef6746 58%, #ffab73);
}
.home-hero .slide-c {
  background: radial-gradient(circle at 80% 65%, #ffe1af 0, transparent 40%),
    linear-gradient(120deg, #df5940, #f5935d);
}
.home-hero .slide .eyebrow { color: #fff8db; }
.home-hero .hero-promos {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
}
.home-hero .promo {
  border: 0;
  border-radius: 18px;
  padding: 1.2rem 1.45rem;
  box-shadow: var(--shadow);
}
.home-hero .promo::after { color: rgba(44, 44, 49, .22); font-size: 2.1rem; }
.home-hero .promo strong { color: #29282d; font-size: 1.27rem; }
.home-hero .promo span { color: #62636a; }
.home-hero .promo-moq { background: linear-gradient(130deg, #fff3e8, #ffdbb6); }
.home-hero .promo-escrow { background: linear-gradient(130deg, #f1f5f5, #c7e4e7); }
.home-hero .promo-usd { background: linear-gradient(130deg, #fff0ed, #f8c1b0); }
.home-hero .promo-moq strong,
.home-hero .promo-escrow strong { color: #29282d; }

.block {
  border: 1px solid #f0f0f1;
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem 1.55rem;
  margin-bottom: 1.25rem;
}
.block-head {
  align-items: center;
  padding-bottom: .5rem;
  border-bottom: 0;
}
.block-head h2 {
  font-size: 1.32rem;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.block-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.48rem;
  height: 2px;
  width: 32px;
  background: var(--accent);
  border-radius: 2px;
}
.block-head .more { color: #44464c; }
.block-head .more:hover { color: var(--accent); }
.flash-block { background: linear-gradient(180deg, #fff8f4, #fff 150px); }
.tag-hot { background: var(--accent); }
.pop-cats .cat-scroll {
  grid-auto-columns: minmax(105px, 1fr);
  padding: .3rem 0 .4rem;
}
.pop-cats .cat-tile {
  padding: .65rem .4rem;
  border: 1px solid #ececee;
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(0,0,0,.04);
  transition: transform .18s, box-shadow .18s;
}
.pop-cats .cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.pop-cats .cat-tile-mark {
  width: 80px;
  height: 80px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}
.pop-cats .cat-tile-mark img { width: 100%; height: 100%; object-fit: contain; }
.pop-cats .cat-tile-name {
  max-width: 100%;
  font-size: .78rem;
  color: #4b4b50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card {
  border: 1px solid #ededee;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(28, 27, 32, .04);
}
.card-media { background: #fff; }
.card-media img { object-fit: contain; }
.card-body { padding: .9rem; }
.card h3 { font-weight: 600; }
.card .price { color: var(--accent); font-size: 1.2rem; }
.card .moq { color: #85858b; }
.store-card { background: #fff; border-radius: 13px; }
.store-mark { background: var(--accent); }
.store-go { color: var(--accent); }

.site-footer { background: #161616; color: #dadada; }
.site-footer a { color: #dadada; }
.site-footer h2 { color: #fff; }
.site-footer .footer-bottom { border-top-color: #383838; }
.app-tabbar a.on { color: var(--accent); }
.count { background: var(--accent); }

@media (max-width: 980px) {
  .header-bar { gap: 1rem; }
  .home-hero { grid-template-columns: minmax(0, 1.5fr) minmax(190px, .8fr); }
  .home-hero .carousel { min-height: 350px; }
  .home-hero .promo { padding: .8rem 1rem; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --wrap: 100%; }
  body { background: #f4f4f6; }
  .topbar { display: block; }
  .topbar-row { min-height: 34px; }
  .topbar-links { display: none; }
  .site-header { box-shadow: 0 2px 7px rgba(0,0,0,.055); }
  .header-bar { min-height: 58px; padding: .55rem 0; }
  .logo img { width: 31px; height: 31px; }
  .logo img.brand-logo { width: auto; height: 40px; max-width: 150px; }
  .logo-text .wordmark,
  .logo-text strong { font-size: 1.45rem; }
  .home { padding-top: .65rem; }
  .home-hero { display: block; min-height: 0; margin-bottom: .8rem; }
  .home-hero .carousel { min-height: 220px; border-radius: 15px; }
  .home-hero .slide { padding: 1.4rem 1.5rem 2.1rem; }
  .home-hero .slide h1,
  .home-hero .slide h2 { font-size: 1.5rem; }
  .home-hero .hero-promos { display: none; }
  .block { padding: 1rem .9rem 1.15rem; border-radius: 15px; margin-bottom: .85rem; }
  .block-head { flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
  .block-head h2 { font-size: 1.06rem; }
  .block-head h2::after { bottom: -.4rem; }
  .block-head p { order: 3; flex-basis: 100%; }
  .pop-cats .cat-scroll {
    display: grid;
    grid-auto-columns: 85px;
    gap: .6rem;
  }
  .pop-cats .cat-tile { padding: .45rem .3rem; }
  .pop-cats .cat-tile-mark { width: 65px; height: 65px; }
  .pop-cats .cat-tile-name { font-size: .7rem; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; }
  .row-scroll { grid-auto-columns: 44%; }
  .card { border-radius: 12px; }
  .card-body { padding: .68rem; }
  .card h3 { font-size: .82rem; }
  .card .price { font-size: 1.05rem; }
  .app-tabbar { box-shadow: 0 -4px 14px rgba(0,0,0,.07); }
}

@media (max-width: 420px) {
  .home-hero .carousel { min-height: 190px; }
  .home-hero .slide h1,
  .home-hero .slide h2 { font-size: 1.3rem; }
  .pop-cats .cat-scroll { grid-auto-columns: 75px; }
  .pop-cats .cat-tile-mark { width: 57px; height: 57px; }
}
