:root {
  --ink: #18212b;
  --ink-soft: #52606d;
  --muted: #71808e;
  --line: #e2e6ea;
  --line-strong: #ccd3d9;
  --surface: #ffffff;
  --surface-soft: #f5f6f7;
  --surface-warm: #fbf5ef;
  --kp-emerald: #08785d;
  --kp-gold: #d3a743;
  --brand: #08785d;
  --brand-dark: #063f32;
  --brand-soft: #e8f7f1;
  --forest: #045f46;
  --forest-soft: #e8f7f1;
  --navy: #063b31;
  --warning: #9a5b09;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 5%), 0 1px 4px rgb(16 24 40 / 5%);
  --shadow-md: 0 12px 32px rgb(20 37 54 / 10%);
  --shadow-lg: 0 24px 64px rgb(20 37 54 / 18%);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shell: 1320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-soft);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-soft);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

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

button {
  border: 0;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

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

[hidden] {
  display: none !important;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

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

:focus-visible {
  outline: 3px solid var(--kp-gold);
  outline-offset: 3px;
}

.utility-bar {
  background: linear-gradient(105deg, #033d2d, #046b50 68%, #049e73);
  color: #d8f1e8;
  font-size: 12px;
}

.utility-bar__inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-bar p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}

.civic-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.civic-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 74%);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #e7f7f0);
  color: #035a43;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 3px 12px rgb(0 38 27 / 24%);
}

.civic-brand > span {
  min-width: 0;
  display: grid;
  line-height: 1.12;
}

.civic-brand strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.civic-brand small {
  margin-top: 4px;
  color: #bce7d8;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.utility-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4dd4a8;
  box-shadow: 0 0 0 3px rgb(77 212 168 / 16%);
}

.utility-bar nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.utility-bar a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.market-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgb(20 37 54 / 5%);
  backdrop-filter: blur(12px);
}

.market-header__main {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 30px;
}

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

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}

.brand__mark svg {
  width: 27px;
  fill: currentColor;
  stroke: none;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgb(4 63 49 / 18%));
}

.brand > span:last-child {
  display: grid;
  line-height: 1.08;
}

.brand strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-search-wrap {
  position: relative;
  min-width: 0;
}

.market-search {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr 52px;
  overflow: hidden;
  border: 1px solid #cfd6dc;
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.market-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(4 120 87 / 14%);
}

.market-search input {
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.market-search input::placeholder {
  color: #88949f;
}

.market-search__button {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}

.market-search__button svg {
  width: 21px;
}

.search-suggestions {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  max-height: min(520px, calc(100vh - 170px));
  overflow-y: auto;
  border: 1px solid #d6ddd9;
  border-radius: 14px;
  padding: 8px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 24px 64px rgb(3 61 45 / 20%);
  backdrop-filter: blur(18px);
}

.search-suggestions__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-suggestion {
  min-height: 62px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink);
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  background: #eef8f4;
}

.search-suggestion__media {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #eee4d7, #d8c7b4);
  color: var(--brand-dark);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-weight: 800;
}

.search-suggestion__media img { width: 100%; height: 100%; object-fit: cover; }
.search-suggestion__copy { min-width: 0; display: grid; gap: 3px; }
.search-suggestion__copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion__copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion__price { color: var(--brand); font-size: 11px; font-weight: 850; white-space: nowrap; }
.search-suggestion--simple { grid-template-columns: 32px minmax(0, 1fr) auto; min-height: 50px; }
.search-suggestion--simple .search-suggestion__media { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); font-size: 10px; }
.search-suggestion__arrow { color: var(--brand); font-weight: 850; }

.search-suggestions__all,
.search-suggestions__empty {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border-radius: 9px;
  padding: 10px;
  background: #063b31;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.search-suggestions__empty { background: #f3f6f4; color: var(--muted); cursor: default; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.header-action,
.cart-button {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.header-action:hover,
.cart-button:hover {
  background: var(--surface-soft);
}

.header-action svg,
.cart-button > svg {
  width: 24px;
  flex: 0 0 auto;
  color: var(--ink-soft);
}

.header-action span,
.cart-button span {
  display: grid;
  line-height: 1.15;
}

.header-action small,
.cart-button small {
  color: var(--muted);
  font-size: 10px;
}

.header-action strong,
.cart-button strong {
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.cart-count {
  position: absolute;
  top: 1px;
  left: 30px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding-inline: 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.category-nav {
  border-top: 1px solid #edf0f2;
}

.category-nav__inner {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
}

.category-nav__all {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.category-nav__all svg {
  width: 18px;
}

.category-nav__links {
  min-width: 0;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.category-nav__links button,
.category-nav__links a {
  padding: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}

.category-nav__links button:hover,
.category-nav__links a:hover,
.category-nav__featured:hover,
.category-nav__all:hover {
  color: var(--brand);
}

.category-nav__featured {
  color: var(--brand);
  font-weight: 750;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 500px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #eee3d5;
  box-shadow: var(--shadow-sm);
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: url("/assets/marketplace-hero.webp");
  background-position: center;
  background-size: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(50%, 620px);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px;
  background: linear-gradient(90deg, rgb(255 251 246 / 99%) 0%, rgb(255 251 246 / 96%) 72%, rgb(255 251 246 / 0%) 100%);
}

.hero__kicker,
.section-kicker {
  display: inline-block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-kicker--light {
  color: #f1cf70;
}

.hero h1 {
  max-width: 590px;
  margin: 14px 0 18px;
  color: #16212a;
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero__content > p {
  max-width: 540px;
  margin: 0;
  color: #4a5966;
  font-size: 16px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.button--primary:hover:not(:disabled) {
  background: var(--brand-dark);
}

.button--quiet {
  border-color: #d4d8dc;
  background: rgb(255 255 255 / 76%);
  color: var(--ink);
}

.button--quiet:hover {
  border-color: #aeb6bd;
  background: #fff;
}

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

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

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

.button--light:hover {
  background: #f4f6f7;
}

.button--full {
  width: 100%;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  color: #52616d;
  font-size: 12px;
  font-weight: 650;
}

.hero__proof span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__proof b {
  color: var(--forest);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.service-strip article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
}

.service-strip article + article {
  border-left: 1px solid var(--line);
}

.service-strip__icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.service-strip__icon svg {
  width: 21px;
}

.service-strip article div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.service-strip strong {
  font-size: 13px;
}

.service-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-section {
  padding-block: 78px 20px;
}

.market-section--catalogue {
  padding-bottom: 92px;
}

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

.section-heading h2,
.maker-banner h2,
.cod-section h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-link {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

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

.product-card__media-link {
  display: block;
  color: inherit;
}

.product-card:hover {
  border-color: #c9cfd5;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 0.9;
  overflow: hidden;
  background: #f0ece7;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.025);
}

.product-card__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eee4d7, #d9c8b6);
  color: rgb(20 37 54 / 48%);
  font-size: 42px;
  font-weight: 800;
}

.product-card__badge,
.product-card__stock {
  position: absolute;
  z-index: 2;
  top: 12px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.product-card__badge {
  left: 12px;
  background: var(--brand);
  color: #fff;
}

.product-card__stock {
  right: 12px;
  background: rgb(255 255 255 / 92%);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

.product-card__body {
  padding: 16px 16px 17px;
}

.product-card__category {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-card h3 {
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card h3 a:hover {
  color: var(--brand);
}

.product-card__maker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.verified-mark {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.product-card__price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.product-card__price {
  color: var(--brand);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.product-card__delivery {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.product-card__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #edf0f2;
}

.product-card__add,
.product-card__buy {
  height: 36px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.product-card__add {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.product-card__buy {
  background: var(--brand);
  color: #fff;
}

.product-card__buy:hover {
  background: var(--brand-dark);
}

.product-card__add:hover:not(:disabled) {
  background: var(--brand);
  color: #fff;
}

.product-card__add:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.compact-empty {
  padding: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.category-market {
  padding-bottom: 4px;
}

.category-shelves {
  display: grid;
  gap: 34px;
}

.category-shelf {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f8f9fa;
}

.category-shelf--loading {
  color: var(--muted);
  text-align: center;
}

.category-shelf__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.category-shelf__head span {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.category-shelf__head h3 {
  margin: 4px 0 0;
  font-size: 23px;
}

.category-shelf__controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.category-shelf__controls button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
}

.category-shelf__controls button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.category-shelf__controls a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.category-shelf__rail {
  display: grid;
  grid-auto-columns: minmax(235px, 24%);
  grid-auto-flow: column;
  gap: 15px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 3px 3px 12px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.category-shelf__rail .product-card {
  scroll-snap-align: start;
}

.maker-banner {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-top: 70px;
  padding: 45px 54px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.maker-banner > div {
  max-width: 830px;
}

.maker-banner h2 {
  color: #fff;
}

.maker-banner p {
  margin: 13px 0 0;
  color: #c5d2dc;
  font-size: 14px;
}

.section-heading--catalogue {
  align-items: center;
}

.catalogue-selects {
  display: flex;
  gap: 10px;
}

.catalogue-selects label {
  display: grid;
  gap: 5px;
}

.catalogue-selects label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.catalogue-selects select {
  min-width: 184px;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  margin: -4px 0 22px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-pill {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.filter-pill:hover,
.filter-pill.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.empty-state {
  margin-top: 18px;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.empty-state > span {
  color: var(--muted);
  font-size: 38px;
}

.empty-state h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.skeleton-card {
  height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.skeleton-card::before,
.skeleton-card::after {
  content: "";
  display: block;
  background: linear-gradient(90deg, #edf0f2 25%, #f8f9fa 37%, #edf0f2 63%);
  background-size: 400% 100%;
  animation: shimmer 1.35s ease infinite;
}

.skeleton-card::before {
  height: 260px;
}

.skeleton-card::after {
  width: 72%;
  height: 16px;
  margin: 30px 16px;
  border-radius: 4px;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.cod-section {
  padding: 84px 0;
  background: var(--navy);
  color: #fff;
}

.cod-section__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  align-items: center;
}

.cod-section h2 {
  color: #fff;
}

.cod-section__intro > p {
  margin: 18px 0 0;
  color: #c5d2dc;
  font-size: 15px;
  line-height: 1.75;
}

.cod-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cod-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.cod-steps li:first-child {
  border-top: 1px solid rgb(255 255 255 / 13%);
}

.cod-steps > li > span {
  color: #f1cf70;
  font-size: 12px;
  font-weight: 800;
}

.cod-steps strong {
  font-size: 16px;
}

.cod-steps p {
  margin: 5px 0 0;
  color: #aebfcb;
  font-size: 13px;
}

.site-footer {
  padding: 58px 0 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 70px;
}

.brand--footer .brand__mark {
  width: 38px;
  height: 38px;
}

.footer-brand p {
  max-width: 310px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-government {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid #d8e9e2;
  border-radius: 12px;
  padding: 9px 12px 9px 9px;
  background: #f3faf7;
}

.footer-government > .civic-brand__mark {
  width: 42px;
  height: 42px;
  border-color: #b8dacd;
  box-shadow: none;
}

.footer-government > span {
  display: grid;
  line-height: 1.2;
}

.footer-government strong {
  color: var(--navy);
  font-size: 10px;
}

.footer-government small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-grid h2 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid span,
.footer-grid button {
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: default;
  font-size: 12px;
  text-align: left;
}

.footer-grid a,
.footer-grid button {
  cursor: pointer;
}

.footer-grid a:hover,
.footer-grid button:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
}

dialog::backdrop {
  background: rgb(10 20 30 / 58%);
  backdrop-filter: blur(2px);
}

.drawer {
  width: min(560px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  overflow-y: auto;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.drawer[open] {
  animation: drawer-in 180ms ease-out;
}

@keyframes drawer-in {
  from { transform: translateX(36px); opacity: 0.7; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer__header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 97%);
  backdrop-filter: blur(10px);
}

.drawer__header h2 {
  margin: 4px 0 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.icon-button {
  width: 39px;
  height: 39px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 25px;
}

.icon-button:hover {
  background: #e8ecef;
}

.drawer-empty {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
}

.drawer-empty__icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 28px;
}

.drawer-empty h3 {
  margin: 18px 0 5px;
  font-size: 20px;
}

.drawer-empty p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.cart-artisan {
  display: grid;
  gap: 3px;
  margin: 20px 28px 0;
  padding: 13px 14px;
  border: 1px solid #cce9df;
  border-radius: 9px;
  background: var(--forest-soft);
}

.cart-artisan strong {
  color: #125340;
  font-size: 13px;
}

.cart-artisan span {
  color: #417365;
  font-size: 11px;
}

.cart-items {
  padding: 8px 28px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line__visual {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 8px;
  background: #f0ece7;
}

.cart-line__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.cart-line__details {
  min-width: 0;
}

.cart-line__details strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-line__details > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.quantity-control {
  width: max-content;
  display: flex;
  align-items: center;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.quantity-control button,
.quantity-control span {
  width: 28px;
  height: 27px;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 12px;
}

.quantity-control button {
  cursor: pointer;
}

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

.quantity-control span {
  border-inline: 1px solid var(--line-strong);
  font-weight: 750;
}

.cart-line__price {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.remove-line {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.totals {
  margin: 0;
  padding: 18px 28px;
  background: #fafbfb;
  border-bottom: 1px solid var(--line);
}

.totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.totals dd {
  margin: 0;
  font-weight: 700;
}

.totals .totals__grand {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.totals__grand dd {
  color: var(--brand);
  font-size: 18px;
}

.checkout-form {
  padding: 24px 28px 32px;
}

.form-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.form-heading > div {
  display: grid;
  gap: 3px;
}

.form-heading strong {
  font-size: 15px;
}

.form-heading small {
  color: var(--muted);
  font-size: 10px;
}

.form-heading > span {
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.field--wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  outline: none;
  font-size: 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(4 120 87 / 12%);
}

.cod-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin: 19px 0;
  padding: 13px;
  border: 1px solid #cce9df;
  border-radius: 9px;
  background: var(--forest-soft);
}

.cod-choice__mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.cod-choice div {
  display: grid;
  gap: 2px;
}

.cod-choice strong {
  color: #125340;
  font-size: 12px;
}

.cod-choice small {
  color: #4a776a;
  font-size: 10px;
}

.cod-choice b {
  padding: 4px 7px;
  border-radius: 5px;
  background: #fff;
  color: var(--forest);
  font-size: 9px;
  text-transform: uppercase;
}

.checkout-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.checkout-assurance svg {
  width: 14px;
}

.order-success {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 30px;
  text-align: center;
}

.order-success__mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 30px;
  font-weight: 900;
}

.order-success h3 {
  margin: 20px 0 7px;
  font-size: 23px;
}

.order-success p {
  max-width: 390px;
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.order-success__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.orders-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 40px));
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.orders-dialog__note {
  margin: 18px 28px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f3f6f8;
  color: var(--ink-soft);
  font-size: 11px;
}

.orders-loading {
  padding: 50px 28px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.orders-list {
  display: grid;
  gap: 13px;
  padding: 20px 28px 30px;
}

.customer-order-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.customer-order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fafbfb;
  border-bottom: 1px solid var(--line);
}

.customer-order-card__head > div {
  display: grid;
  gap: 2px;
}

.customer-order-card__head strong {
  font-size: 13px;
}

.customer-order-card__head small {
  color: var(--muted);
  font-size: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2f5;
  color: #425466;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-chip[data-tone="positive"] {
  background: var(--forest-soft);
  color: var(--forest);
}

.status-chip[data-tone="active"] {
  background: #e9f2ff;
  color: #175cd3;
}

.status-chip[data-tone="negative"] {
  background: #fff0ee;
  color: var(--danger);
}

.customer-order-card__body {
  padding: 15px 16px;
}

.customer-order-card__summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 11px;
}

.customer-order-card__summary strong {
  color: var(--brand);
  font-size: 13px;
}

.order-timeline {
  display: flex;
  gap: 0;
  margin-top: 17px;
  overflow-x: auto;
}

.order-timeline span {
  position: relative;
  min-width: 92px;
  flex: 1;
  padding-top: 19px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.order-timeline span::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 2px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border: 2px solid #cbd3da;
  border-radius: 50%;
  background: #fff;
}

.order-timeline span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #dfe4e8;
}

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

.order-timeline span.is-complete {
  color: var(--forest);
  font-weight: 750;
}

.order-timeline span.is-complete::before,
.order-timeline span.is-complete::after {
  border-color: var(--forest);
  background: var(--forest);
}

.shipment-detail {
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 10px;
}

.shipment-detail a {
  color: var(--brand);
  font-weight: 750;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  width: min(420px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.toast__icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.toast p {
  margin: 0;
  font-size: 12px;
}

.toast button {
  padding: 2px 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

@media (max-width: 1160px) {
  .market-header__main {
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding-block: 14px;
  }

  .market-search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-actions {
    justify-self: end;
  }

  .category-nav__links {
    gap: 18px;
  }

  .hero__content {
    width: 58%;
    padding: 48px;
  }

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

  .service-strip article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .service-strip article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .cod-section__grid {
    gap: 60px;
  }

  .footer-grid {
    gap: 35px;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .utility-bar__inner {
    justify-content: center;
  }

  .utility-bar nav {
    display: none;
  }

  .brand small,
  .header-action--link,
  .category-nav__featured {
    display: none;
  }

  .market-header__main {
    min-height: auto;
  }

  .header-action,
  .cart-button {
    width: 43px;
    min-height: 43px;
    justify-content: center;
    padding: 7px;
  }

  .header-action span,
  .cart-button span {
    display: none;
  }

  .cart-count {
    top: -2px;
    left: 26px;
  }

  .category-nav__inner {
    gap: 15px;
  }

  .category-nav__all {
    padding-right: 14px;
  }

  .hero {
    min-height: 620px;
  }

  .hero__media {
    background-position: 64% center;
  }

  .hero__content {
    width: 100%;
    min-height: 620px;
    justify-content: end;
    padding: 38px 30px;
    background: linear-gradient(0deg, rgb(255 251 246 / 100%) 0%, rgb(255 251 246 / 96%) 48%, rgb(255 251 246 / 8%) 78%);
  }

  .hero h1 {
    max-width: 650px;
    font-size: 40px;
  }

  .hero__content > p {
    max-width: 640px;
  }

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

  .section-heading,
  .section-heading--catalogue {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

  .catalogue-selects {
    width: 100%;
  }

  .catalogue-selects label {
    flex: 1;
  }

  .catalogue-selects select {
    width: 100%;
    min-width: 0;
  }

  .maker-banner {
    align-items: start;
    flex-direction: column;
    padding: 40px;
  }

  .cod-section__grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

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

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

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 20px), var(--shell));
  }

  .utility-bar {
    font-size: 10px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 19px;
  }

  .market-header__main {
    gap: 10px;
  }

  .market-search {
    height: 44px;
  }

  .category-nav__inner {
    overflow-x: auto;
  }

  .category-nav__links {
    overflow: visible;
  }

  .hero {
    min-height: 580px;
    margin-top: 12px;
    border-radius: 12px;
  }

  .hero__content {
    min-height: 580px;
    padding: 28px 22px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero__content > p {
    font-size: 14px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__proof {
    gap: 10px 13px;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .service-strip article + article,
  .service-strip article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .market-section {
    padding-top: 58px;
  }

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

  .product-card {
    display: grid;
    grid-template-columns: 42% 58%;
  }

  .product-card__media {
    height: 100%;
    min-height: 230px;
    aspect-ratio: auto;
  }

  .product-card__media-link {
    height: 100%;
  }

  .product-card__stock {
    display: none;
  }

  .product-card__body {
    display: flex;
    flex-direction: column;
    padding: 14px;
  }

  .product-card__footer {
    margin-top: auto;
  }

  .product-card__delivery {
    display: none;
  }

  .product-card__add {
    min-width: 68px;
  }

  .category-shelf {
    padding: 16px;
  }

  .category-shelf__head {
    align-items: flex-start;
  }

  .category-shelf__controls button {
    display: none;
  }

  .category-shelf__rail {
    grid-auto-columns: 86%;
  }

  .category-shelf__rail .product-card {
    display: block;
  }

  .category-shelf__rail .product-card__media {
    min-height: 0;
    aspect-ratio: 1 / .9;
  }

  .maker-banner {
    margin-top: 52px;
    padding: 32px 25px;
  }

  .catalogue-selects {
    flex-direction: column;
  }

  .cod-section {
    padding: 62px 0;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .drawer {
    width: 100%;
  }

  .drawer__header,
  .checkout-form {
    padding-inline: 20px;
  }

  .cart-artisan {
    margin-inline: 20px;
  }

  .cart-items,
  .totals {
    padding-inline: 20px;
  }

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

  .field--wide {
    grid-column: auto;
  }

  .orders-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .orders-list,
  .orders-dialog__note {
    margin-inline: 20px;
  }

  .orders-list {
    padding-inline: 0;
  }

  .customer-order-card__summary {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Marketplace experience v2 */
:root {
  --brand: #047857;
  --brand-dark: #035a43;
  --forest: #045f46;
  --navy: #063b31;
  --surface-soft: #f3f7f5;
  --surface-warm: #eaf5f0;
  --shadow-md: 0 18px 45px rgb(25 38 33 / 11%);
  --shadow-lg: 0 32px 80px rgb(16 44 39 / 20%);
}

body { background: #f8f7f3; }

.market-hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid #ddd9cf;
  border-radius: 26px;
  background: #fffaf3;
  box-shadow: 0 24px 70px rgb(31 47 41 / 12%);
}

.market-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 5vw, 78px);
  background:
    radial-gradient(circle at 12% 15%, rgb(213 165 46 / 12%), transparent 32%),
    linear-gradient(145deg, #fffef9, #eef8f3);
}

.market-hero__copy::after {
  position: absolute;
  right: -34px;
  bottom: 42px;
  width: 92px;
  height: 92px;
  border: 1px solid rgb(4 120 87 / 22%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 13px #f6fbf8, inset 0 0 0 14px rgb(4 120 87 / 14%);
  content: "";
}

.market-hero h1 {
  max-width: 650px;
  margin: 17px 0 22px;
  color: #17241f;
  font-family: Iowan Old Style, Baskerville, Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 5.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.market-hero__copy > p {
  max-width: 570px;
  margin: 0;
  color: #56615d;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
}

.button--hero { padding-inline: 24px; box-shadow: 0 10px 24px rgb(4 120 87 / 24%); }

.hero-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-category-chips a {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cdded7;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgb(255 255 255 / 72%);
  color: #33584c;
  font-size: 10px;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-category-chips a:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

.market-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
}

.market-hero__metrics div { padding-right: 20px; }
.market-hero__metrics div + div { border-left: 1px solid #dcd6cb; padding-left: 20px; }
.market-hero__metrics dt { color: var(--forest); font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 30px; font-weight: 800; line-height: 1; }
.market-hero__metrics dd { margin: 6px 0 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }

.market-hero__visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #cdb8a1 url("/assets/marketplace-hero.webp") center / cover no-repeat;
}

.market-hero__image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.market-hero__visual::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgb(8 27 22 / 5%), rgb(8 27 22 / 46%)); content: ""; }
.market-hero__visual::after { position: absolute; z-index: 3; inset: 18px; border: 1px solid rgb(255 255 255 / 42%); border-radius: 18px; content: ""; pointer-events: none; }

.market-hero__seal {
  position: absolute;
  z-index: 2;
  top: 48px;
  right: 45px;
  width: 120px;
  height: 120px;
  display: grid;
  place-content: center;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 50%;
  background: rgb(16 44 39 / 84%);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(12px);
}

.market-hero__seal b { font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 25px; }
.market-hero__seal small { margin-top: 2px; color: #d9e9e2; font-size: 8px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.35; text-transform: uppercase; }

.market-hero__trust {
  position: absolute;
  z-index: 2;
  top: 44px;
  left: 42px;
  display: grid;
  grid-template-columns: 34px auto;
  column-gap: 10px;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 12px;
  padding: 10px 14px 10px 10px;
  background: rgb(255 253 248 / 88%);
  box-shadow: 0 12px 38px rgb(8 27 22 / 18%);
  backdrop-filter: blur(14px);
}

.market-hero__trust > span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.market-hero__trust strong { font-size: 10px; line-height: 1.1; }
.market-hero__trust small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.hero-feature-card {
  position: absolute;
  z-index: 2;
  right: 44px;
  bottom: 42px;
  left: 44px;
  display: grid;
  gap: 5px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 15px;
  padding: 20px 21px;
  background: rgb(255 253 248 / 91%);
  box-shadow: 0 18px 50px rgb(8 27 22 / 24%);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, background 180ms ease;
}

.hero-feature-card:hover { background: #fff; transform: translateY(-3px); }
.hero-feature-card > span { color: var(--brand); font-size: 9px; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.hero-feature-card strong { overflow: hidden; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 23px; text-overflow: ellipsis; white-space: nowrap; }
.hero-feature-card small { color: var(--muted); font-size: 11px; }
.hero-feature-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hero-feature-card__actions a { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brand); border-radius: 8px; padding: 7px 13px; color: var(--brand-dark); font-size: 10px; font-weight: 850; }
.hero-feature-card__actions a:first-child { background: var(--brand); color: #fff; }

.featured-market {
  margin-top: 32px;
  padding-block: 70px 74px;
  border-block: 1px solid #315e51;
  background:
    radial-gradient(circle at 88% 10%, rgb(213 165 46 / 28%), transparent 29%),
    radial-gradient(circle at 8% 90%, rgb(52 157 126 / 25%), transparent 34%),
    linear-gradient(125deg, #082f27, #104b3e 58%, #173e35);
}
.featured-market__heading { margin-bottom: 28px; }
.featured-market__heading .section-kicker { color: #e4bd58; }
.featured-market__heading h2 { margin: 7px 0 8px; color: #fffdf7; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.035em; }
.featured-market__heading p { color: #c7dbd4; }
.featured-market__controls { display: flex; gap: 10px; }
.featured-market__controls button { width: 48px; height: 48px; border: 1px solid rgb(255 255 255 / 48%); border-radius: 50%; background: #fffdf7; color: var(--forest); cursor: pointer; font-size: 20px; font-weight: 800; box-shadow: 0 9px 22px rgb(0 0 0 / 22%); transition: transform 160ms ease, background 160ms ease; }
.featured-market__controls button:hover:not(:disabled) { background: #fff; transform: translateY(-2px); }
.featured-market__controls button:disabled { cursor: default; opacity: 0.36; }
.featured-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; padding: 4px 4px 15px; scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x mandatory; }
.featured-rail::-webkit-scrollbar { display: none; }
.featured-rail .product-card { min-width: 0; height: 100%; border: 1px solid #d9c37f; background: #fffaf0; box-shadow: 0 18px 36px rgb(0 18 14 / 24%); scroll-snap-align: start; }
.featured-rail .product-card__body { background: linear-gradient(155deg, #fffdf7, #f6ead0); }
.featured-rail .product-card__category { color: #08775b; }
.featured-rail .skeleton-card { min-width: 0; }
.product-card { border-radius: 15px; }
.product-card__media { aspect-ratio: 1 / 0.98; }
.product-card__body { padding: 18px 18px 19px; }
.product-card h3 { font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 19px; font-weight: 700; }
.product-card__rating { min-height: 22px; display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.product-card__rating span { color: #d48828; font-size: 13px; letter-spacing: 0.05em; }
.product-card__rating small { color: var(--muted); font-size: 10px; }

.maker-stories { margin-top: 78px; padding-block: 82px; overflow: hidden; background: #102f29; color: #fff; }
.maker-stories__inner { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); align-items: center; gap: 68px; }
.maker-stories__intro h2 { max-width: 490px; margin: 10px 0 18px; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.maker-stories__intro p { max-width: 470px; margin: 0 0 28px; color: #b9cbc4; font-size: 14px; line-height: 1.75; }
.maker-spotlight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.maker-card { min-width: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / 13%); border-radius: 16px; background: rgb(255 255 255 / 7%); }
.maker-card__media { height: 190px; display: grid; place-items: center; overflow: hidden; background: #32574d; color: #b9cbc4; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 58px; }
.maker-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 360ms ease; }
.maker-card:hover .maker-card__media img { transform: scale(1.035); }
.maker-card__body { padding: 17px; }
.maker-card__verified { color: #8fdbc0; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.maker-card h3 { margin: 7px 0 5px; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 19px; }
.maker-card p { min-height: 38px; margin: 0; color: #b9cbc4; font-size: 10px; line-height: 1.55; }
.maker-card button { margin-top: 13px; padding: 0; background: transparent; color: #9ce6ce; cursor: pointer; font-size: 11px; font-weight: 750; }
.maker-card button:hover { text-decoration: underline; text-underline-offset: 4px; }

.maker-banner { border-radius: 20px; background: linear-gradient(118deg, #063f32, #08785d 67%, #a57b25); }
.cod-section { background: #063f32; }

/* WadaanMardan final civic-commerce polish: a confident marketplace shell,
   premium merchandising surfaces, and clear institutional identity. */
.market-header { box-shadow: 0 8px 32px rgb(6 63 50 / 7%); }
.market-header__main { min-height: 94px; }
.brand__mark { overflow: visible; background: transparent; box-shadow: none; }
.brand > span:last-child strong { font-family: Iowan Old Style, Baskerville, Georgia, serif; letter-spacing: -.025em; }
.market-search { border: 2px solid #08785d; border-radius: 9px; box-shadow: 0 5px 18px rgb(6 63 50 / 8%); }
.market-search__button { background: #d3a743; color: #12211d; }
.category-nav { background: #063f32; }
.market-hero { margin-top: 24px; border: 1px solid #d9e4de; box-shadow: 0 28px 70px rgb(6 63 50 / 13%); }
.featured-market { position: relative; background: radial-gradient(circle at 84% 0%, rgb(211 167 67 / 25%), transparent 32%), linear-gradient(130deg,#052f26,#075a46 62%,#063f32); }
.featured-market::before { position:absolute;inset:0;background-image:linear-gradient(rgb(255 255 255 / 3%) 1px,transparent 1px),linear-gradient(90deg,rgb(255 255 255 / 3%) 1px,transparent 1px);background-size:34px 34px;content:"";pointer-events:none; }
.featured-market > * { position: relative; }
.featured-rail .product-card { border: 2px solid #d3a743; border-radius: 18px; transform: translateZ(0); transition: transform .2s ease,box-shadow .2s ease; }
.featured-rail .product-card:hover { transform: translateY(-6px); box-shadow: 0 25px 55px rgb(0 18 14 / 35%); }
.category-shelf { border-radius: 20px; background:#fff; box-shadow:0 12px 38px rgb(6 63 50 / 7%); }
.site-footer { border-top: 5px solid #d3a743; background: #062b23; }

@media (max-width: 1050px) {
  .market-hero { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .market-hero__visual { min-height: 560px; }
  .market-hero__copy { padding: 44px; }
  .market-hero h1 { font-size: clamp(42px, 5.7vw, 62px); }
  .featured-rail { grid-auto-columns: calc((100% - 36px) / 3); }
  .maker-stories__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .market-hero { display: flex; min-height: 0; flex-direction: column; }
  .market-hero__copy { order: 2; padding: 38px 28px; }
  .market-hero__copy::after { display: none; }
  .market-hero__visual { min-height: 390px; }
  .market-hero__seal { top: 28px; right: 28px; width: 100px; height: 100px; }
  .market-hero__trust { top: 28px; left: 28px; }
  .hero-feature-card { right: 24px; bottom: 24px; left: 24px; }
  .market-hero__metrics { margin-top: 30px; }
  .featured-rail { grid-auto-columns: calc((100% - 18px) / 2); }
  .maker-spotlight { overflow-x: auto; grid-template-columns: repeat(3, minmax(230px, 1fr)); scroll-snap-type: x mandatory; }
  .maker-card { scroll-snap-align: start; }
}

@media (max-width: 520px) {
  .market-hero { width: calc(100% - 24px); margin-top: 12px; border-radius: 18px; }
  .market-hero__visual { min-height: 310px; }
  .market-hero__seal { width: 86px; height: 86px; }
  .market-hero__seal b { font-size: 20px; }
  .market-hero__trust { top: 16px; left: 16px; grid-template-columns: 28px auto; padding: 8px 10px 8px 8px; }
  .market-hero__trust > span { width: 28px; height: 28px; }
  .market-hero__trust small { display: none; }
  .market-hero__copy { padding: 32px 22px; }
  .market-hero h1 { font-size: 43px; }
  .hero-category-chips { margin-top: 18px; }
  .hero-category-chips a { font-size: 9px; }
  .market-hero__metrics dd { font-size: 8px; }
  .hero-feature-card { right: 14px; bottom: 14px; left: 14px; padding: 16px; }
  .hero-feature-card strong { font-size: 18px; }
  .hero-feature-card__actions a { flex: 1; }
  .featured-market { padding-block: 48px 52px; }
  .featured-market__heading { align-items: flex-end; }
  .featured-market__controls button { width: 42px; height: 42px; }
  .featured-rail { grid-auto-columns: minmax(260px, 84%); gap: 14px; }
  .maker-stories { padding-block: 58px; }
}

/* WadaanMardan v1.1 mobile-first navigation, sale pricing, and public support. */
.utility-bar__inner { justify-content: flex-end; }
.category-nav__links a, .category-nav__links button, .category-nav__all, .category-nav__featured { color: #fffdf7 !important; opacity: 1; }
.category-nav__links a:hover, .category-nav__links button:hover, .category-nav__all:hover, .category-nav__featured:hover { color: #f3cf65 !important; }
.product-card__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.product-card__compare-price { color: #8a6451; font-size: 12px; font-weight: 650; }
.customer-support-pulse { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 10px 18px 10px 10px; border: 0; border-radius: 999px; background: #d3a743; color: #062f27; box-shadow: 0 15px 38px rgb(0 45 35 / 30%); cursor: pointer; font: inherit; }
.customer-support-pulse::before { position: absolute; inset: -5px; border: 2px solid rgb(211 167 67 / 65%); border-radius: inherit; content: ""; animation: support-pulse 1.8s ease-out infinite; }
.customer-support-pulse span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #064d3d; color: #fff; font-size: 20px; font-weight: 900; }
.customer-support-pulse strong { font-size: 13px; }
.support-dialog { width: min(560px, calc(100% - 28px)); border: 0; border-radius: 22px; padding: 24px; box-shadow: 0 30px 80px rgb(0 30 22 / 35%); }
.support-dialog::backdrop { background: rgb(0 25 20 / 62%); backdrop-filter: blur(4px); }
.support-dialog form { display: grid; gap: 15px; }
@keyframes support-pulse { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.18); opacity: 0; } }

@media (max-width: 760px) {
  .utility-bar { display: none; }
  .market-header__main { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px 16px; }
  .market-header .brand strong { font-size: 20px; }
  .market-header .brand small { font-size: 8px; }
  .market-search-wrap { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .header-actions { gap: 4px; }
  .header-action span { display: none; }
  .header-action, .cart-button { min-width: 42px; min-height: 42px; padding: 7px; }
  .category-nav__inner { padding-inline: 12px; overflow-x: auto; scrollbar-width: none; }
  .category-nav__inner::-webkit-scrollbar { display: none; }
  .category-nav__links { display: flex !important; min-width: max-content; }
  .market-hero { margin-top: 14px; border-radius: 18px; }
  .market-hero__copy { padding: 30px 23px; }
  .market-hero__copy h1 { font-size: clamp(43px, 14vw, 66px); }
  .market-hero__visual { min-height: 380px; }
  .market-hero__metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .market-hero__metrics div { padding: 12px 6px; }
  .service-strip { grid-template-columns: 1fr 1fr; padding-inline: 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card__body { padding: 12px; }
  .product-card__body h3 { font-size: 15px; }
  .product-card__footer { display: grid; grid-template-columns: 1fr; }
  .product-card__delivery { font-size: 9px; }
  .customer-support-pulse { right: 12px; bottom: 12px; min-height: 48px; padding-right: 13px; }
  .customer-support-pulse strong { max-width: 92px; line-height: 1.05; }
}

@media (max-width: 390px) {
  .product-grid { grid-template-columns: 1fr; }
  .service-strip { grid-template-columns: 1fr; }
}
