/* Design tokens sampled from the homepage design (dark only). Brand pink, not web's red. */
:root {
  --bg: #10141c;
  --surface: #1e2431;
  --surface-raised: #353a46;
  --surface-sunken: #0a0a0b;
  --line: #3a3f4b;
  --text: #ffffff;
  --text-soft: #b9bfcc;
  --text-faint: #7d8494;
  --accent: #d8368e;
  --accent-strong: #e64a9f;
  --accent-text: #f05aac;
  --star: #f6c443;
  --countdown: #f7d16f;
  --wish-bg: #fde8ef;
  --wish: #e74340;
  --deals-from: #eb50ae;
  --deals-to: #b97bf2;
  --info: #3f73f5;
  --info-bg: #1b2438;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: 24px;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Poppins", "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.page {
  flex: 1;
  padding-bottom: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--ghost {
  background: var(--surface-raised);
  color: var(--text);
}

.btn--ghost:hover {
  background: #424857;
}

.btn--accent {
  background: var(--accent);
  color: #ffffff;
}

.btn--accent:hover {
  background: var(--accent-strong);
}

.btn--accent:disabled,
.btn--accent:disabled:hover {
  background: var(--accent);
  opacity: 0.3;
  cursor: not-allowed;
}

.btn--light {
  background: #ffffff;
  color: var(--bg);
}

.btn--light:hover {
  background: #e3e6ec;
}

.btn--done {
  background: #2f9e5b;
}

.btn--done:hover {
  background: #2f9e5b;
}

/* Header */
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
}

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

.brand__logo {
  flex-shrink: 0;
  width: 42px;
  height: 43px;
  margin: -5px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.search {
  position: relative;
  flex: 0 1 438px;
  margin-left: 64px;
}

.search__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.search__input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-sunken);
  outline: none;
  font-size: 14px;
}

.search__input::placeholder {
  color: var(--text-faint);
}

.search__input:focus {
  border-color: var(--text-faint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.pill-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

button.pill-link {
  background: transparent;
}

.pill-link:hover,
.pill-link--active {
  border-color: var(--accent);
}

.pill-link__icon--compact {
  display: none;
}

.pill-link__dot {
  position: absolute;
  top: -5px;
  right: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

/* Section heads */
.page-section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.section-head__title--small {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
}

.section-head__link {
  color: var(--accent-text);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.section-head__link--light {
  color: #ffffff;
}

.section-head__link:hover {
  text-decoration: underline;
}

/* Page title with back button */
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 22px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1c2027;
}

.back-link:hover {
  background: var(--surface-raised);
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  aspect-ratio: 1140 / 318;
}

.hero-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.hero-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(16, 20, 28, 0.35);
  transform: translateX(-50%);
}

.hero-carousel__dot {
  width: 16px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-carousel__dot--active {
  width: 26px;
  background: var(--accent);
}

/* Horizontal scrollers */
.category-row,
.product-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar,
.product-row::-webkit-scrollbar {
  display: none;
}

.scroll-arrows {
  display: flex;
  gap: 8px;
}

.scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1c2027;
  color: var(--text);
}

.scroll-arrow:hover {
  background: var(--surface-raised);
}

/* Categories */
.category-card {
  flex: 0 0 153px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  scroll-snap-align: start;
  transition: background 0.15s ease;
}

.category-card:hover {
  background: #262d3c;
}

.category-card__media {
  width: 100%;
  height: 92px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__name {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* Category page toolbar */
.category-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-pills {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 16px;
  margin: -2px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.category-pill:hover {
  background: #262d3c;
}

.category-pill--active,
.category-pill--active:hover {
  background: #ffffff;
  color: var(--bg);
}

.category-toolbar__actions {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--text-faint);
  border-radius: 999px;
  background: transparent;
}

.icon-pill:hover {
  border-color: var(--text-soft);
}

.icon-pill--active,
.icon-pill--active:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.empty-state {
  padding: 48px 16px;
  text-align: center;
}

.empty-state__text {
  margin: 0 0 16px;
  color: var(--text-soft);
}

/* Sort + filter modals */
html:has(.modal[open]) {
  overflow: hidden;
}

.modal {
  width: min(404px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  overflow-y: auto;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--bg);
  color: var(--text);
  scrollbar-width: none;
}

.modal--filter {
  width: min(511px, calc(100vw - 32px));
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

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

.modal__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.modal__close {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
}

.modal__close:hover {
  color: var(--text);
}

.modal__panel {
  margin-bottom: 24px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.modal__panel-title {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 16px;
}

.modal__apply {
  width: 100%;
  min-height: 56px;
  font-size: 20px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.choice--check {
  gap: 8px;
  min-height: 29px;
  font-size: 14px;
  font-weight: 400;
}

.choice input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: none;
  background: #ffffff;
  cursor: pointer;
}

.choice input[type="radio"] {
  border-radius: 50%;
}

.choice input[type="radio"]:checked {
  border: 2px solid var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 2px #ffffff;
}

.choice input[type="checkbox"] {
  border-radius: 4px;
}

.choice input[type="checkbox"]:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.stars-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stars-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.stars-field__required {
  color: var(--wish);
}

.stars-field__control {
  position: relative;
}

.stars-field__control .price__star {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
}

.stars-field__input {
  width: 100%;
  height: 36px;
  padding: 0 8px 0 34px;
  border: 1px solid var(--text-faint);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  color: var(--text-soft);
  font-size: 14px;
  outline: none;
}

.stars-field__input:focus {
  border-color: var(--text-soft);
  color: var(--text);
}

.range {
  position: relative;
  height: 24px;
  margin-top: 8px;
}

.range::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, #ffffff var(--from, 0%), var(--accent) var(--from, 0%), var(--accent) var(--to, 100%), #ffffff var(--to, 100%));
}

.range__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  background: transparent;
  outline: none;
  pointer-events: none;
}

.range__input--top {
  z-index: 1;
}

.range__input::-webkit-slider-runnable-track {
  background: transparent;
}

.range__input::-moz-range-track {
  background: transparent;
}

.range__input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  appearance: none;
  cursor: pointer;
  pointer-events: auto;
}

.range__input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  pointer-events: auto;
}

.range__input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.range__input:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.range__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 12px;
}

.range__label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Top deals panel */
.deals-panel {
  margin-top: 36px;
  padding: 28px 32px 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(100deg, var(--deals-from) 0%, #e98fd6 55%, var(--deals-to) 100%);
}

.deals-panel .section-head__title {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.deals-panel__countdown {
  margin-left: 8px;
  color: var(--countdown);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.deals-panel .product-card {
  flex: 0 0 265px;
  scroll-snap-align: start;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.product-card__media {
  position: relative;
  aspect-ratio: 229 / 144;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wish-button {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wish-bg);
  color: var(--wish);
}

.wish-button svg {
  fill: none;
  transition: transform 0.15s ease;
}

.wish-button:hover svg {
  transform: scale(1.1);
}

.wish-button--active svg {
  fill: currentColor;
}

.views-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 5px;
  border-radius: 999px;
  background: #2a3140;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 500;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  margin-top: 14px;
}

.deal-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 5px;
  border-radius: 999px;
  background: #3a3220;
  color: var(--countdown);
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.deal-chip b {
  font-weight: 700;
}

.product-card__title {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__title a:hover {
  color: var(--text);
}

.price {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.price__star {
  flex-shrink: 0;
  color: var(--star);
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Web's .channel-promote-btn, value for value, including its body font and normal line height */
.product-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8568e 0%, #d367a5 100%);
  color: #ffffff;
  font: 700 0.8rem/normal "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.product-card__btn:hover,
.product-card__btn:focus-visible {
  filter: brightness(1.06);
  outline: 0;
}

.product-card__btn--view {
  background: var(--surface-raised);
  color: var(--text);
}

.product-card__btn--view:hover,
.product-card__btn--view:focus-visible {
  background: #424857;
  filter: none;
}

.product-card__btn.btn--done,
.product-card__btn.btn--done:hover {
  background: #2f9e5b;
}

/* Product page */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 534px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.product-gallery {
  aspect-ratio: 534 / 445;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--info);
  font-size: 14px;
  font-weight: 500;
}

.product-info__title {
  margin: 12px 0 0;
  color: #e3e6ec;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin: 10px 0 0;
}

.product-price__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 33px;
  font-weight: 700;
  line-height: 1.2;
}

.product-price__naira {
  color: var(--text-faint);
  font-size: 24px;
}

.product-info__market {
  margin-top: 26px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--surface);
  border-bottom: 1px solid var(--surface);
}

.product-info__market-label {
  margin: 0 0 6px;
  color: var(--text-soft);
}

.product-info__market-value {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.product-info__cart {
  width: 100%;
  max-width: 309px;
  min-height: 56px;
  margin-top: 24px;
  font-size: 20px;
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: #e3e6ec;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

button.product-chip:hover {
  background: #262d3c;
}

.product-chip svg {
  fill: none;
}

.product-chip.wish-button--active svg {
  fill: currentColor;
  color: var(--wish);
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  gap: 10px;
  margin-top: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--surface);
  border-bottom: 1px solid var(--surface);
}

.product-thumb {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.product-thumb--active {
  border-color: var(--accent);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-details {
  max-width: 850px;
  margin-top: 32px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 27px;
}

.product-details__title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.product-details__text {
  margin: 0;
}

.product-details__specs-title {
  margin: 54px 0 0;
}

.product-details__specs {
  margin: 0;
  padding-left: 24px;
}

.product-related {
  margin-top: 54px;
  padding-top: 32px;
  border-top: 1px solid var(--surface);
}

/* Cart modal + order confirmation */
.modal--cart {
  width: min(640px, calc(100vw - 32px));
  padding: 32px;
}

.cart-items {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.cart-item__media {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__title {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 18px;
}

.cart-item__title:hover {
  color: var(--text);
}

.cart-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-item__remove {
  display: inline-flex;
  margin-left: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wish);
}

.cart-empty {
  margin: 0;
  padding: 32px 0 16px;
  color: var(--text-soft);
  text-align: center;
}

.cart-totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 29px;
  color: var(--text-soft);
  font-size: 14px;
}

.cart-totals__row .cart-stars {
  color: var(--text);
  font-size: 13px;
}

.cart-totals__total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
}

.cart-totals__total .cart-stars {
  font-size: 16px;
}

.cart-wallet__short {
  margin: 0 0 8px;
  color: var(--wish);
  font-size: 16px;
  text-align: center;
}

.cart-wallet__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 16px;
}

.cart-wallet__balance {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.cart-pay {
  margin-top: 8px;
}

.cart-naira {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.cart-buy {
  margin-top: 12px;
}

.order-success {
  padding: 64px 40px 72px;
  text-align: center;
}

.order-success .modal__close {
  position: absolute;
  top: 32px;
  right: 32px;
}

.order-success__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}

.order-success__title {
  margin: 16px 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.order-success__text {
  max-width: 420px;
  margin: 0 auto;
  color: var(--text-faint);
  font-size: 16px;
  line-height: 24px;
}

.order-success__text b {
  color: var(--text);
}

/* My Orders */
.order-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.order-row__media {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.order-row__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-row__body {
  flex: 1;
  min-width: 0;
}

.order-row__number {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.order-row__title {
  margin: 2px 0;
  color: var(--text-soft);
  font-size: 15px;
}

.order-row__date {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.order-row__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
}

.order-row__actions .btn {
  min-width: 104px;
  min-height: 42px;
  font-size: 15px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.order-status--pending {
  background: #f7ca4f;
  color: #6b5412;
}

.order-status--delivered {
  background: #5cd97a;
  color: #1c5c30;
}

/* Order detail */
.order-detail {
  display: grid;
  grid-template-columns: minmax(0, 307px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.order-detail__media {
  aspect-ratio: 307 / 256;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.order-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-detail__title a:hover {
  color: var(--text);
  text-decoration: underline;
}

.order-detail__buy {
  max-width: 228px;
}

.order-history {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--surface);
}

.order-history__title {
  margin: 0 0 22px;
  color: #e3e6ec;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.status-steps {
  display: grid;
  gap: 21px;
  max-width: 517px;
  margin: 0;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  list-style: none;
}

.status-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: #e3e6ec;
  font-size: 15px;
  font-weight: 600;
}

.status-step__mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2f3540;
  color: #7d8494;
}

.status-step--done .status-step__mark {
  background: #5cc46f;
  color: #123a1c;
}

.status-step__date {
  margin-left: auto;
  color: var(--text-soft);
  font-weight: 400;
}

/* Wallet: web's balance card, values from web's dark theme */
.wallet-balance-card {
  max-width: 720px;
  padding: 26px 28px 28px;
  overflow: hidden;
  border: 1px solid #1d2432;
  border-radius: 18px;
  background: #10141c;
  color: #edf1f7;
}

.wallet-balance-card__label {
  margin: 0;
  color: #7e8899;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.wallet-balance-card__value {
  margin: 10px 0 6px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.wallet-balance-card__hint {
  margin: 0;
  color: #a2abbb;
  font-size: 14px;
}

.wallet-balance-card__rate {
  margin: 24px -28px 0;
  padding: 14px 28px;
  border-top: 1px solid #1d2432;
  background: #1b2130;
  color: #7e8899;
  font-size: 13px;
  text-align: center;
}

.wallet-balance-card__btn {
  display: block;
  margin-top: 16px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9d4382 0%, #d987bb 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.star-icon {
  color: #9d4382;
}

/* Login: web's two-panel auth layout in the shop's colours */
.auth-page {
  flex: 1;
  padding: 22px;
  background: radial-gradient(circle at top left, rgba(216, 54, 142, 0.14), transparent 28%), var(--bg);
}

.auth-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  max-width: 1320px;
  margin: 0 auto 22px;
}

.auth-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-topbar__text {
  color: var(--text-soft);
  font-size: 14px;
}

.auth-topbar__signup {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.auth-topbar__signup:hover {
  border-color: var(--accent);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr minmax(420px, 0.85fr);
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
}

.auth-showcase,
.auth-card {
  border-radius: var(--radius-xl);
}

.auth-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--deals-from) 0%, #e98fd6 55%, var(--deals-to) 100%);
}

.auth-showcase__eyebrow,
.auth-card__eyebrow {
  margin: 0 0 12px;
  font-size: 12.8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-showcase h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 70px);
  font-weight: 700;
  line-height: 1.05;
}

.auth-showcase__copy {
  max-width: 44ch;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.auth-card {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.auth-card__eyebrow {
  color: var(--text-faint);
}

.auth-card__header {
  margin-bottom: 24px;
}

.auth-card__header h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
}

.auth-card__header p:last-child {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.auth-back {
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
}

.auth-options {
  display: grid;
  gap: 12px;
}

.auth-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.auth-option svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.auth-option--email {
  background: var(--accent);
  color: #ffffff;
}

.auth-option--email:hover {
  background: var(--accent-strong);
}

.auth-option--google {
  background: #ffffff;
  color: #1f1f1f;
}

.auth-option--google:hover {
  background: #e3e6ec;
}

.auth-option--kingschat {
  background: #2f6fed;
  color: #ffffff;
}

.auth-option--kingschat:hover {
  background: #2a63d4;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field > span:first-child {
  font-size: 15px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  outline: 0;
}

.auth-field input:focus {
  border-color: var(--text-faint);
}

.auth-field input[aria-invalid="true"] {
  border-color: var(--wish);
}

.auth-password {
  position: relative;
  display: block;
}

.auth-password input {
  padding-right: 48px;
}

.auth-password__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  transform: translateY(-50%);
}

.auth-password__toggle[aria-pressed="true"] {
  color: var(--accent-text);
}

.auth-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 14px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.auth-link {
  color: var(--accent-text);
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit {
  min-height: 48px;
  font-size: 15px;
}

.auth-message {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(231, 67, 64, 0.14);
  color: #ff9d9b;
  font-size: 14px;
  line-height: 1.5;
}

.auth-footnote {
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* 404 */
.error-page {
  max-width: 480px;
  margin: 48px auto;
  text-align: center;
}

.error-page__code {
  margin: 0;
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.error-page__title {
  margin: 12px 0 8px;
  font-size: 26px;
}

.error-page__text {
  margin: 0 0 24px;
  color: var(--text-soft);
}

.error-page .btn {
  min-height: 44px;
  padding: 10px 24px;
  font-size: 15px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--surface);
  color: var(--text-faint);
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-footer__copy {
  margin: 0;
}

.site-footer__links {
  display: flex;
  gap: 16px;
}

.site-footer__links a:hover {
  color: var(--text);
}

/* Listing left nav (category, deals, trending): the Sort and Filter dialogs shown closed, in place. Open dialogs (tablet, phone) stay modals. */
@media (min-width: 861px) {
  .category-page--nav .category-toolbar__actions {
    display: none;
  }

  .category-page--nav .category-listing {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .category-page--nav .category-nav {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 20px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .category-page--nav .modal:not([open]) {
    position: static;
    display: block;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
  }

  .category-page--nav .modal:not([open]) .modal__close,
  .category-page--nav [data-sort-modal]:not([open]) .modal__apply {
    display: none;
  }

  .category-page--nav .modal:not([open]) .modal__head {
    margin-bottom: 10px;
  }

  .category-page--nav .modal:not([open]) .modal__title {
    font-size: 18px;
  }

  .category-page--nav .modal:not([open]) .modal__panel {
    margin-bottom: 12px;
    padding: 14px 16px;
  }

  .category-page--nav [data-sort-modal]:not([open]) .modal__panel {
    margin-bottom: 0;
  }

  .category-page--nav .modal:not([open]) .modal__apply {
    min-height: 44px;
    font-size: 16px;
  }

  .category-page--nav .modal:not([open]) .stars-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

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

@media (min-width: 861px) and (max-width: 1100px) {
  .category-page--nav .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .search {
    margin-left: 16px;
  }

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

@media (max-width: 1000px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }

  .product-grid {
    gap: 14px;
  }

  .deals-panel {
    padding: 22px 20px 24px;
  }

  .product-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .order-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .order-detail__media {
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    gap: 16px 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .pill-link {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .pill-link__label {
    display: none;
  }

  .pill-link__icon--compact {
    display: block;
  }

  .pill-link__dot {
    top: -3px;
    right: -1px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  .brand__name {
    font-size: 22px;
  }

  .hero-carousel {
    border-radius: var(--radius-md);
  }

  .hero-carousel__dots {
    bottom: 8px;
  }

  .hero-carousel__dot {
    width: 10px;
    height: 4px;
  }

  .hero-carousel__dot--active {
    width: 18px;
  }

  .page-section {
    margin-top: 28px;
  }

  .section-head__title {
    font-size: 20px;
  }

  .deals-panel__countdown {
    font-size: 15px;
  }

  .section-head__link {
    font-size: 14px;
  }

  .category-toolbar,
  .category-toolbar__actions,
  .category-pills {
    gap: 8px;
  }

  .category-pill {
    padding: 0 14px;
    font-size: 13px;
  }

  .icon-pill {
    width: 40px;
  }

  .product-gallery {
    border-radius: var(--radius-lg);
  }

  .product-info__title {
    font-size: 18px;
  }

  .product-price__stars {
    font-size: 26px;
  }

  .product-price__naira {
    font-size: 18px;
  }

  .product-info__market-value {
    font-size: 22px;
  }

  .product-info__cart {
    max-width: none;
    min-height: 48px;
    font-size: 17px;
  }

  .product-chips {
    margin-top: 20px;
    gap: 8px;
  }

  .product-chip {
    padding: 0 12px;
    font-size: 13px;
  }

  .product-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
    padding: 20px 0;
  }

  .product-details {
    font-size: 15px;
    line-height: 25px;
  }

  .product-details__specs-title {
    margin-top: 32px;
  }

  .product-details__specs {
    padding-left: 20px;
  }

  .product-related {
    margin-top: 32px;
    padding-top: 24px;
  }

  .modal {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .modal__panel {
    margin-bottom: 16px;
    padding: 16px;
  }

  .modal__apply {
    min-height: 48px;
    font-size: 17px;
  }

  .modal--cart {
    padding: 20px 16px;
  }

  .order-detail__media {
    max-width: none;
  }

  .order-history {
    margin-top: 24px;
    padding-top: 24px;
  }

  .status-steps {
    gap: 14px;
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .auth-page {
    padding: 16px;
  }

  .auth-showcase {
    display: none;
  }

  .auth-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .auth-card__header h2 {
    font-size: 26px;
  }

  .wallet-balance-card {
    padding: 22px 20px 20px;
  }

  .wallet-balance-card__value {
    font-size: 34px;
  }

  .wallet-balance-card__rate {
    margin: 20px -20px 0;
    padding: 12px 20px;
  }

  .order-list {
    gap: 12px;
  }

  .order-row {
    flex-wrap: wrap;
    padding: 12px;
  }

  .order-row__media {
    width: 56px;
    height: 56px;
  }

  .order-row__body {
    flex-basis: calc(100% - 68px);
  }

  .order-row__title {
    font-size: 14px;
  }

  .order-row__actions {
    width: 100%;
    justify-content: space-between;
  }

  .cart-item {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 12px;
  }

  .cart-item__media,
  .cart-item__remove {
    grid-row: span 2;
  }

  .cart-item__remove {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-left: 0;
  }

  .cart-item__media {
    grid-row: 1 / span 2;
  }

  .cart-item__title,
  .cart-stars {
    grid-column: 2;
  }

  .cart-totals__row .cart-stars,
  .cart-totals__total .cart-stars {
    grid-column: auto;
  }

  .cart-wallet__balance {
    font-size: 19px;
  }

  .cart-naira {
    font-size: 14px;
  }

  .order-success {
    padding: 56px 16px;
  }

  .order-success .modal__close {
    top: 20px;
    right: 16px;
  }

  .category-row,
  .product-row {
    gap: 12px;
  }

  .category-card {
    flex-basis: 120px;
    padding: 12px 12px 14px;
  }

  .category-card__media {
    height: 72px;
  }

  .category-card__name {
    font-size: 13px;
  }

  .deals-panel {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    border-radius: 0;
    padding: 20px var(--gutter) 22px;
  }

  .deals-panel .product-card {
    flex-basis: 220px;
  }

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

  .product-card {
    padding: 10px;
    border-radius: var(--radius-md);
  }

  .wish-button {
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
  }

  .price {
    font-size: 14px;
  }
}
