:root {
  --red: #e62e04;
  --red-dark: #c42603;
  --orange: #ff6a00;
  --amber: #ffb800;
  --green: #25d366;
  --green-dark: #128c7e;
  --ink: #191919;
  --ink-2: #555;
  --ink-3: #888;
  --line: #ececec;
  --bg: #f4f4f4;
  --card: #fff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .05);
  --grad: linear-gradient(90deg, var(--red), var(--orange));
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

a:hover {
  color: var(--red);
}

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 .5em;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

/* top strip & header */
.topstrip {
  background: #1b1b1b;
  color: #ddd;
  font-size: 12.5px;
}

.topstrip-inner {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 6px 16px;
}

.topstrip b {
  color: #fff;
}

.topstrip a:hover {
  color: #fff;
  text-decoration: underline;
}

.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* The logo PNG has generous white margins, so it is drawn larger and pulled in with negative margins. */
.logo-img {
  display: block;
  height: 62px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin: -8px -6px;
}

.logo .logo-img~.logo-mark,
.logo .logo-img~.logo-text {
  display: none;
}

.logo-footer .logo-img {
  height: 60px;
  margin: 0;
  background: #fff;
  border-radius: 10px;
  padding: 4px 10px;
  box-sizing: content-box;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 24px/1 Arial, sans-serif;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text b {
  font-size: 21px;
  letter-spacing: .5px;
  color: var(--red);
}

.logo-text small {
  font-size: 9.5px;
  letter-spacing: 2.2px;
  color: var(--ink-2);
  font-weight: 600;
  margin-top: 2px;
}

.search {
  flex: 1;
  display: flex;
  border: 2px solid var(--red);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}

.search input {
  flex: 1;
  border: 0;
  padding: 9px 16px;
  outline: none;
  min-width: 0;
}

.search button {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 0 20px;
  cursor: pointer;
  font-size: 16px;
}

.header-actions {
  display: flex;
  gap: 6px;
}

.h-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  position: relative;
  font-weight: 600;
  font-size: 14px;
}

.h-action:hover {
  background: var(--bg);
  color: var(--ink);
}

.h-ico {
  font-size: 20px;
}

.badge {
  position: absolute;
  top: 0;
  left: 22px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

.mainnav {
  border-top: 1px solid var(--line);
  position: relative;
}

.mainnav-inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mainnav-inner::-webkit-scrollbar {
  display: none;
}

.nav-item>a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-item>a:hover,
.nav-item.active>a {
  border-bottom-color: var(--red);
  color: var(--red);
}

.nav-item a.hot {
  color: var(--red);
}

.nav-item a.earn {
  color: #0a7d3b;
}

.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  border-top: 1px solid var(--line);
}

.mega-inner {
  padding: 18px 16px 22px;
  columns: 4 220px;
  column-gap: 24px;
}

.mega-inner a {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  break-inside: avoid;
}

.mega-inner a .count {
  color: var(--ink-3);
  font-size: 12px;
  margin-left: auto;
}

.mega-brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  padding: 18px 16px 22px;
}

.mega-brands h5 {
  margin: 0 0 6px;
  font-size: 14px;
}

.mega-brands h5 a {
  color: var(--red);
}

.mega-brands a.part {
  display: block;
  font-size: 13px;
  padding: 2px 0;
  color: var(--ink-2);
}

main#app {
  padding-top: 18px;
  padding-bottom: 40px;
  min-height: 60vh;
  outline: none;
}

.loading {
  padding: 80px 0;
  text-align: center;
  color: var(--ink-3);
}

/* generic UI */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  cursor: pointer;
  background: var(--grad);
  color: #fff;
  transition: transform .05s, filter .15s;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn-outline {
  background: #fff;
  color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
}

.btn-outline:hover {
  background: #fff5f2;
  color: var(--red);
}

.btn-ghost {
  background: var(--bg);
  color: var(--ink);
}

.btn-ghost:hover {
  background: #e9e9e9;
  color: var(--ink);
}

.btn-wa {
  background: var(--green);
  color: #fff;
}

.btn-wa:hover {
  background: #1ebe5b;
}

.btn-dark {
  background: #1b1b1b;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
  white-space: normal;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
}

.pill-red {
  background: #ffece6;
  color: var(--red);
}

.pill-green {
  background: #e5f8ed;
  color: #0a7d3b;
}

.pill-amber {
  background: #fff4d6;
  color: #8a5a00;
}

.pill-blue {
  background: #e7efff;
  color: #1e3a8a;
}

.pill-grey {
  background: #eee;
  color: #555;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
}

.section-head a {
  font-weight: 600;
  color: var(--red);
  font-size: 14px;
  white-space: nowrap;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--ink-2);
}

.empty .big {
  font-size: 48px;
}

form .field {
  margin-bottom: 14px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 5px;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=password],
input[type=number],
input[type=search],
input[type=url],
select,
textarea {
  width: 100%;
  border: 1.5px solid #dcdcdc;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 46, 4, .12);
}

.hint {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.form-error {
  background: #ffece6;
  color: var(--red-dark);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}

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

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1.5px solid #dcdcdc;
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
  margin-bottom: 8px;
  font-weight: 500;
}

.choice:has(input:checked) {
  border-color: var(--red);
  background: #fff7f4;
}

.choice input {
  margin-top: 3px;
  accent-color: var(--red);
}

.choice small {
  display: block;
  color: var(--ink-3);
  font-weight: 400;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 14px;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 340px;
  background: #1b1b1b;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  color: #fff;
  display: block;
}

.slide:hover {
  color: #fff;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  user-select: none;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 65%);
}

.slide-text {
  position: absolute;
  z-index: 1;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 440px;
}

.slide-text h2 {
  font-size: 34px;
  line-height: 1.12;
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.slide-text p {
  font-size: 15.5px;
  margin: 0 0 16px;
  opacity: .95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

.slide-cta {
  background: #fff;
  color: var(--red);
}

.slide:hover .slide-cta {
  filter: none;
  transform: translateY(-1px);
  color: var(--red);
}

.sl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .85);
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.slider:hover .sl-arrow,
.sl-arrow:focus-visible {
  opacity: 1;
}

.sl-prev {
  left: 12px;
}

.sl-next {
  right: 12px;
}

.sl-dots {
  position: absolute;
  z-index: 2;
  left: 64px;
  bottom: 16px;
  display: flex;
  gap: 7px;
}

.sl-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .3s, background .3s;
}

.sl-dots button.on {
  width: 26px;
  background: #fff;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 340px;
}

.hero-side .card {
  padding: 14px 16px;
  min-height: 0;
}

.hero-side .welcome h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.hero-side .perk {
  padding: 3px 0;
  font-size: 13px;
}

.hero-side .perk span:first-child {
  font-size: 18px;
}

.hero-side .earn-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.hero-side .earn-card p {
  font-size: 12.5px;
}

.hero-side .welcome {
  flex: 1;
}

.hero-side .earn-card p {
  margin: 0;
}

.welcome h3 {
  font-size: 16px;
}

.perk {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 13.5px;
}

.perk span:first-child {
  font-size: 22px;
}

.earn-card {
  background: linear-gradient(135deg, #0a7d3b, #18b663);
  color: #fff;
  display: block;
}

.earn-card:hover {
  color: #fff;
  filter: brightness(1.05);
}

.earn-card h3 {
  color: #fff;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.tile {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform .1s;
}

.tile:hover {
  transform: translateY(-2px);
  color: var(--red);
}

.tile .ico {
  font-size: 30px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff3ee;
}

.flash {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 22px;
}

.flash-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.flash-head h2 {
  margin: 0;
  font-size: 21px;
  color: var(--red);
}

.countdown {
  display: flex;
  gap: 4px;
  align-items: center;
  font-weight: 700;
}

.countdown b {
  background: #1b1b1b;
  color: #fff;
  border-radius: 6px;
  padding: 3px 6px;
  font-variant-numeric: tabular-nums;
}

.flash-head a {
  margin-left: auto;
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
}

.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.hscroll>* {
  scroll-snap-align: start;
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.brand-chip {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 12px;
  text-align: center;
  font-weight: 800;
  font-size: 17px;
}

.brand-chip small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
}

.brand-chip:hover {
  color: var(--red);
  box-shadow: 0 0 0 2px var(--red);
}

.brand-chip.soon {
  opacity: .6;
}

/* product cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.pcard {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
  position: relative;
}

.pcard:hover {
  box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
  color: inherit;
}

.pcard .thumb {
  aspect-ratio: 1;
  background: #fafafa;
  position: relative;
}

.pcard .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.pcard .tag.new {
  background: #1e3a8a;
}

.pcard .body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.pcard .name {
  font-size: 13.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.price {
  font-weight: 800;
  color: var(--red);
  font-size: 18px;
}

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

.was {
  color: var(--ink-3);
  text-decoration: line-through;
  font-size: 12.5px;
  margin-left: 6px;
  font-weight: 400;
}

.off {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}

.meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  align-items: center;
}

.stars {
  color: var(--amber);
  letter-spacing: -1px;
}

.pcard .add {
  margin-top: auto;
  padding-top: 6px;
}

.pcard .add .btn {
  width: 100%;
  padding: 7px;
  font-size: 13px;
}

/* listing */
.listing {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  align-items: start;
}

.facets {
  position: sticky;
  top: 130px;
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.facets h4 {
  font-size: 14px;
  margin: 14px 0 6px;
}

.facets h4:first-child {
  margin-top: 0;
}

.facets a {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 4px 8px;
  border-radius: 6px;
}

.facets a.on {
  background: #fff0eb;
  color: var(--red);
  font-weight: 700;
}

.facets a .count {
  color: var(--ink-3);
  font-size: 12px;
}

.price-filter {
  display: flex;
  gap: 6px;
}

.price-filter input {
  padding: 7px 8px;
  font-size: 13px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.toolbar h1 {
  font-size: 22px;
  margin: 0;
}

.toolbar select {
  width: auto;
  padding: 7px 10px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip {
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.chip.on,
.chip:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff7f4;
}

.chip .count {
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 4px;
}

.load-more {
  text-align: center;
  margin-top: 18px;
}

.filter-toggle {
  display: none;
}

/* product page */
.product {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 26px;
}

.product .gallery img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fafafa;
}

.product h1 {
  font-size: 24px;
}

.price-box {
  background: linear-gradient(90deg, #fff1ec, #fff8f0);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
}

.price-box .price {
  font-size: 30px;
}

.wholesale-note {
  font-size: 13px;
  color: #0a7d3b;
  font-weight: 600;
  margin-top: 4px;
}

.specs {
  font-size: 14px;
  margin: 10px 0;
}

.specs div {
  display: flex;
  gap: 10px;
  padding: 4px 0;
}

.specs div span:first-child {
  width: 120px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  border: 0;
  background: #fff;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}

.qty button:hover {
  background: var(--bg);
}

.qty input {
  width: 52px;
  border: 0;
  text-align: center;
  padding: 6px 0;
  -moz-appearance: textfield;
  outline: none;
  box-shadow: none;
}

.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.buy-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}

.share-box {
  border: 1.5px dashed #18b663;
  background: #f1fbf5;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  margin-top: 14px;
}

.desc {
  margin-top: 18px;
  white-space: pre-line;
  color: var(--ink-2);
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
}

.trust div {
  background: var(--bg);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

/* cart & checkout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}

.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line img {
  border-radius: 10px;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.cart-line .name {
  font-weight: 600;
  font-size: 14px;
}

.cart-line .right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.link-btn {
  border: 0;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--red);
}

.summary {
  position: sticky;
  top: 130px;
}

.summary .row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14.5px;
}

.summary .row.total {
  font-size: 19px;
  font-weight: 800;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
}

.summary .row.total span:last-child {
  color: var(--red);
}

.summary .row.disc span:last-child {
  color: #0a7d3b;
}

.ref-banner {
  background: #f1fbf5;
  color: #0a7d3b;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin: 8px 0;
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.steps span.on {
  color: var(--red);
}

/* order */
.success-hero {
  text-align: center;
  padding: 30px 18px;
}

.success-hero .big {
  font-size: 56px;
}

.order-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-size: 20px;
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline li {
  position: relative;
  padding: 0 0 18px 30px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  box-shadow: 0 0 0 3px #fff;
  z-index: 1;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: -4px;
  width: 2px;
  background: #e5e5e5;
}

.timeline li:last-child::after {
  display: none;
}

.timeline li.done::before {
  background: #18b663;
}

.timeline li.current::before {
  background: var(--red);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(230, 46, 4, .25);
}

.timeline li.cancelled::before {
  background: #999;
}

.timeline .when {
  font-size: 12.5px;
  color: var(--ink-3);
}

.timeline b {
  display: block;
}

.order-items .row b {
  white-space: nowrap;
}

.order-items .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.status-pending,
.status-confirmed {
  background: #fff4d6;
  color: #8a5a00;
}

.status-processing,
.status-shipped,
.status-out_for_delivery,
.status-ready_for_pickup {
  background: #e7efff;
  color: #1e3a8a;
}

.status-delivered {
  background: #e5f8ed;
  color: #0a7d3b;
}

.status-cancelled {
  background: #eee;
  color: #666;
}

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tbl th,
.tbl td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tbl th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ink-3);
  letter-spacing: .4px;
}

.tbl-wrap {
  overflow-x: auto;
}

/* auth */
.auth {
  max-width: 440px;
  margin: 20px auto;
}

.auth h1 {
  text-align: center;
}

.auth .switch {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
}

.auth .switch a {
  color: var(--red);
  font-weight: 700;
}

/* account / earn / admin */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  overflow-x: auto;
}

.tabs button {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  color: var(--ink-2);
}

.tabs button.on {
  color: var(--red);
  border-bottom-color: var(--red);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.stat .v {
  font-size: 22px;
  font-weight: 800;
}

.stat .k {
  font-size: 12.5px;
  color: var(--ink-3);
}

.stat.hl {
  background: var(--grad);
  color: #fff;
}

.stat.hl .k {
  color: rgba(255, 255, 255, .85);
}

.stat.green {
  background: linear-gradient(135deg, #0a7d3b, #18b663);
  color: #fff;
}

.stat.green .k {
  color: rgba(255, 255, 255, .85);
}

.copy-row {
  display: flex;
  gap: 8px;
}

.copy-row input {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
}

.earn-hero {
  background: linear-gradient(135deg, #0a7d3b, #18b663);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 18px;
}

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

.earn-hero p {
  font-size: 16px;
  max-width: 640px;
  opacity: .95;
}

.earn-hero .btn {
  background: #fff;
  color: #0a7d3b;
}

.how {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.how .card .n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5f8ed;
  color: #0a7d3b;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.tips li {
  margin-bottom: 8px;
}

.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.inline-form .field {
  margin: 0;
  flex: 1;
  min-width: 140px;
}

.admin-row-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-row-form select,
.admin-row-form input {
  width: auto;
  padding: 6px 8px;
  font-size: 13px;
}

.admin-edit input {
  padding: 5px 7px;
  font-size: 13px;
  width: 90px;
}

/* toast & float */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: #1b1b1b;
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  animation: pop .2s ease-out;
  pointer-events: auto;
  max-width: 92vw;
}

.toast.error {
  background: var(--red-dark);
}

.toast.ok {
  background: #0a7d3b;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  z-index: 60;
}

.wa-float:hover {
  background: #1ebe5b;
}

.footer {
  background: #1b1b1b;
  color: #bbb;
  padding: 36px 0 18px;
  font-size: 14px;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1.3fr;
  gap: 24px;
}

.footer h4 {
  color: #fff;
  font-size: 14px;
}

.footer a {
  display: block;
  padding: 3px 0;
}

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

.logo-footer .logo-text b {
  color: #fff;
}

.logo-footer .logo-text small {
  color: #aaa;
}

.copyright {
  border-top: 1px solid #333;
  margin-top: 24px;
  padding-top: 14px;
  font-size: 12.5px;
}

/* responsive */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

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

@media (max-width: 860px) {

  .listing,
  .two-col {
    grid-template-columns: 1fr;
  }

  .facets {
    position: static;
    max-height: none;
    display: none;
  }

  .facets.open {
    display: block;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .summary {
    position: static;
  }

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

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

@media (max-width: 640px) {
  .hide-sm {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .search {
    order: 10;
    flex-basis: 100%;
  }

  .header-actions {
    margin-left: auto;
  }

  .h-label {
    display: none;
  }

  .badge {
    left: 26px;
  }

  .logo-text b {
    font-size: 18px;
  }

  .logo-img {
    height: 50px;
    max-width: 170px;
    margin: -6px -4px;
  }

  .wrap {
    padding: 0 12px;
  }

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

  .hscroll {
    grid-auto-columns: 150px;
  }

  .slider {
    height: 230px;
  }

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

  .slide::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, 0) 75%);
  }

  .slide-text {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 34px;
    transform: none;
  }

  .slide-text h2 {
    font-size: 21px;
    margin-bottom: 6px;
  }

  .slide-text p {
    display: none;
  }

  .slide-cta {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .sl-dots {
    left: 16px;
    bottom: 12px;
  }

  .sl-arrow {
    display: none;
  }

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

  .tiles {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .tile {
    padding: 10px 4px;
    font-size: 11px;
  }

  .tile .ico {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .price {
    font-size: 16px;
  }

  .earn-hero {
    padding: 22px;
  }

  .earn-hero h1 {
    font-size: 25px;
  }

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

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

  .cart-line {
    grid-template-columns: 64px 1fr;
  }

  .cart-line img {
    width: 64px;
    height: 64px;
  }

  .cart-line .right {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .mega {
    display: none !important;
  }
}

/* M-Pesa payments */
.btn-mpesa {
  background: #2fa84f;
  color: #fff;
}

.btn-mpesa:hover {
  background: #27913f;
  color: #fff;
}

.pay-card {
  margin-top: 14px;
  border: 2px solid #2fa84f;
}

.pay-card.paid {
  border-color: #c8ecd4;
  background: #f1fbf5;
}

.pay-card .inline-form {
  margin: 10px 0;
}

.paybill {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.paybill summary {
  cursor: pointer;
  font-weight: 700;
  color: #0a7d3b;
}

.paybill-steps {
  padding-left: 20px;
  margin: 10px 0;
}

.paybill-steps li {
  padding: 3px 0;
}

.big-num {
  font-size: 18px;
  letter-spacing: .5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pay-wait {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid #bfe8cd;
  border-top-color: #0a7d3b;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Lipa na M-PESA card (matches the shop's printed Paybill sign) */
.lipa {
  border: 2px solid #1f6b2e;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #1b1b1b;
  max-width: 420px;
  margin: 10px 0 14px;
}

.lipa-head {
  background: #1f6b2e;
  color: #fff;
  padding: 10px 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
}

.lipa-head b {
  color: #7ed957;
}

.lipa-head small {
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
  opacity: .9;
}

.lipa-body {
  padding: 12px 16px 14px;
}

.lipa-name {
  color: #3aa935;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lipa-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #555;
  margin-top: 6px;
}

.lipa-num {
  font-size: 30px;
  font-weight: 900;
  color: #1f6b2e;
  letter-spacing: 2px;
  line-height: 1.1;
}

.lipa-acc {
  display: flex;
  gap: 5px;
}

.lipa-acc span {
  border: 2px solid #333;
  border-radius: 6px;
  width: 30px;
  text-align: center;
  font-size: 22px;
  padding: 2px 0;
  color: #1b1b1b;
}

.lipa-note {
  font-size: 12.5px;
  color: #555;
  margin: 10px 0 0;
}

.lipa-compact {
  max-width: 280px;
}

.lipa-compact .lipa-head {
  font-size: 16px;
  padding: 8px 12px;
}

.lipa-compact .lipa-body {
  padding: 8px 12px 10px;
}

.lipa-compact .lipa-num {
  font-size: 24px;
}

.lipa-compact .lipa-acc span {
  width: 24px;
  font-size: 17px;
}

.footer .lipa {
  margin: 0;
}

/* admin: slider & photo uploads */
.slide-form {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  margin-bottom: 14px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.slide-thumb {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  object-position: right center;
  border-radius: 10px;
  background: #222;
}

.upload-btn {
  cursor: pointer;
  margin: 0;
  font-weight: 700;
}

.thumb-upload {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  cursor: pointer;
  margin: 0;
}

.thumb-upload img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.thumb-upload span {
  position: absolute;
  right: -4px;
  bottom: -4px;
  background: #fff;
  border-radius: 50%;
  font-size: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

@media (max-width: 640px) {
  .slide-form {
    grid-template-columns: 1fr;
  }
}

.cat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.tile .ico {
  overflow: hidden;
}

.mega-inner .cat-img {
  width: 28px;
  height: 28px;
}

.chip .cat-img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  vertical-align: middle;
  object-fit: cover;
}