:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --teal: #6366f1;
  --yellow: #fbbf24;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1280px;
  margin: auto;
  padding: 0 28px;
}
header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.logo {
  font-size: 53px;
  letter-spacing: -7px;
  line-height: 1;
  font-weight: 1000;
  padding-right: 8px;
}
.top-link {
  font-size: 19px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.top-link svg {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border: 1px solid #e5eaf1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.top-link:hover svg {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16), inset 0 1px 0 #ffffff;
}
.top-link b {
  font-size: 14px;
}
.header-spacer {
  flex: 1;
}
.login-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.sell-btn {
  background: white;
  border: 5px solid var(--teal);
  border-left-color: var(--yellow);
  border-bottom-color: #2563eb;
  border-radius: 30px;
  padding: 7px 21px;
  font-weight: 800;
  box-shadow: 0 3px 5px #0f172a15;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sell-btn span {
  font-size: 25px;
}
.searchbar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
}
.location {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--ink);
  background: #fff;
  border-radius: 5px;
  width: 285px;
  padding: 0 16px;
}
.location span {
  font-size: 28px;
}
.location select {
  width: 100%;
  border: 0;
  background: #fff;
  outline: none;
}
.location-picker {
  position: relative;
  width: 285px;
  flex: none;
  z-index: 80;
}
.location-trigger {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background: white;
  text-align: left;
}
.location-picker.open .location-trigger {
  border-color: #00a49a;
  box-shadow: 0 0 0 1px #00a49a;
}
.location-pin {
  font-size: 25px;
  line-height: 1;
}
.location-trigger-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.location-trigger-copy small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.location-trigger-copy b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.location-chevron {
  font-size: 17px;
  transition: transform 0.18s ease;
}
.location-picker.open .location-chevron {
  transform: rotate(180deg);
}
.location-panel {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: min(620px, 72vh);
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px #0f172a30;
  padding: 14px;
}
.location-current {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px;
  color: #00877f;
  background: #effcfb;
  border-radius: 6px;
  text-align: left;
}
.location-current > span:first-child {
  font-size: 25px;
  line-height: 1;
}
.location-current > span:last-child {
  display: grid;
  gap: 4px;
}
.location-current b {
  font-size: 13px;
}
.location-current small {
  color: #527173;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.location-current:disabled {
  cursor: wait;
  opacity: 0.7;
}
.location-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 0 11px;
  border: 1px solid #b8c7c8;
  border-radius: 5px;
}
.location-search:focus-within {
  border-color: #00a49a;
  box-shadow: 0 0 0 1px #00a49a;
}
.location-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 0;
  font-size: 12px;
}
.location-group h3 {
  position: sticky;
  top: -14px;
  margin: 0;
  padding: 12px 8px 7px;
  background: white;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.location-group button {
  display: block;
  width: 100%;
  padding: 10px 9px;
  border-radius: 4px;
  text-align: left;
  font-size: 12px;
}
.location-group button:hover,
.location-group button:focus-visible {
  color: #00877f;
  background: #f0f8f7;
}
.location-no-results {
  padding: 14px 9px;
  color: var(--muted);
  font-size: 12px;
}
.search-field {
  display: flex;
  flex: 1;
  min-height: 54px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  overflow: hidden;
}
.search-field input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
}
.search-field button {
  background: var(--ink);
  color: white;
  width: 62px;
  font-size: 32px;
}
.category-nav {
  box-shadow: 0 3px 5px #0f172a06;
}
.category-nav .wrap {
  display: flex;
  align-items: center;
  gap: 23px;
  min-height: 53px;
  white-space: nowrap;
  overflow: auto;
}
.category-nav button {
  font-size: 13px;
  padding: 10px 0;
}
.category-nav button:first-child {
  font-size: 12px;
  font-weight: 800;
}
.category-nav span {
  margin-left: 12px;
}
main {
  padding-top: 27px !important;
}
.current-location-summary {
  margin: 0 0 18px;
  padding: 17px 20px;
  border-left: 5px solid var(--teal);
  border-radius: 6px;
  background: #f0faf9;
  box-shadow: 0 4px 14px #0f172a0d;
}
.current-location-summary span {
  display: block;
  margin-bottom: 5px;
  color: #587274;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.current-location-summary strong {
  display: block;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.hero {
  height: 360px;
  background: #edf5ef;
  border-radius: 10px;
  display: flex;
  overflow: hidden;
  position: relative;
}
.hero-copy {
  padding: 43px 42px;
  z-index: 2;
  width: 55%;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.hero h1 {
  font-size: 47px;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 16px 0;
}
.hero p {
  font-size: 14px;
  margin: 0 0 23px;
  color: #506d68;
}
.primary {
  background: var(--ink);
  color: white;
  padding: 14px 19px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
}
.primary:hover {
  background: #07555a;
}
.primary span {
  font-size: 19px;
}
.hero-note {
  font-size: 10px;
  margin-top: 23px;
  color: #53716a;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-note span {
  font-size: 18px;
}
.hero-art {
  position: relative;
  flex: 1;
}
.orbit {
  position: absolute;
  border: 1px solid #c9ded2;
  border-radius: 50%;
  width: 420px;
  height: 420px;
  top: -35px;
  left: 30px;
}
.orbit-two {
  width: 330px;
  height: 330px;
  top: 10px;
  left: 75px;
}
.hero-photo {
  background: white;
  padding: 9px;
  position: absolute;
  box-shadow: 0 12px 28px #0f172a18;
  border-radius: 5px;
}
.hero-photo img {
  width: 100%;
  height: calc(100% - 26px);
  object-fit: cover;
  border-radius: 2px;
}
.hero-photo span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  padding: 9px 3px;
}
.photo-one {
  width: 180px;
  height: 235px;
  left: 15px;
  top: 42px;
  transform: rotate(-10deg);
}
.photo-two {
  width: 205px;
  height: 220px;
  left: 208px;
  top: 110px;
  transform: rotate(9deg);
}
.deal-badge {
  background: var(--yellow);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  position: absolute;
  top: 15px;
  left: 294px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  transform: rotate(12deg);
  z-index: 2;
}
.spark {
  position: absolute;
  font-size: 44px;
  color: #167966;
}
.spark-one {
  top: 8px;
  left: 195px;
}
.spark-two {
  bottom: 12px;
  left: 126px;
}
.categories {
  padding: 35px 0 29px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.section-heading h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 0;
}
.section-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 18px;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  white-space: nowrap;
}
.category-icon {
  height: 73px;
  width: 73px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 34px;
  transition: transform 0.2s;
}
.category-item:hover .category-icon {
  transform: translateY(-5px);
}
.category-item.selected .category-icon {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.listings {
  border-top: 1px solid #edf0ef;
  padding: 30px 0;
}
.listing-heading {
  margin-bottom: 22px;
}
.listing-heading .eyebrow {
  color: #6f8586;
  font-size: 9px;
  display: block;
  margin-bottom: 9px;
}
.saved-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
}
.saved-link span {
  font-size: 12px;
  font-weight: 700;
}
.saved-link b {
  background: #eef3f2;
  border-radius: 10px;
  padding: 3px 7px;
  font-size: 11px;
}
.saved-link.active {
  color: #00877f;
}
.filterbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.filter-pills {
  display: flex;
  gap: 9px;
}
.filter {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 15px;
  font-size: 11px;
}
.filter.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.filter span {
  margin-left: 10px;
}
.sort {
  font-size: 11px;
  color: var(--muted);
}
.sort select {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  border: 0;
  margin-left: 5px;
  background: white;
  max-width: 125px;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px;
}
.card {
  border: 1px solid #dfe6e5;
  border-radius: 7px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  background: white;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #0f172a10;
}
.card-photo {
  height: 185px;
  position: relative;
  background: #eef2f1;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover img {
  transform: scale(1.035);
}
.featured {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--yellow);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  border-radius: 2px;
  padding: 5px 7px;
}
.favorite {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fffffff0;
  display: grid;
  place-items: center;
  font-size: 23px;
  line-height: 1;
}
.favorite.saved {
  color: #d85057;
}
.card-body {
  padding: 17px 15px 14px;
}
.card-price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.card-title {
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.card-condition {
  font-size: 9px;
  color: #547576;
  margin-bottom: 13px;
}
.load-more {
  text-align: center;
  padding: 32px 0 2px;
}
.load-more button {
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 22px;
}
.load-more span {
  margin-left: 12px;
}
.load-more p {
  font-size: 10px;
  color: var(--muted);
  margin: 15px 0 0;
}
.sell-banner {
  background: #fff8df;
  border: 1px solid #f6edcc;
  border-radius: 8px;
  padding: 27px 30px;
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 5px 0 32px;
}
.banner-icon {
  height: 49px;
  width: 49px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 28px;
  display: grid;
  place-items: center;
}
.sell-banner h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.sell-banner p {
  font-size: 12px;
  color: #7d785f;
  margin: 0;
}
.sell-banner .primary {
  margin-left: auto;
  white-space: nowrap;
}
.app-banner {
  background: #f1f7f7;
  display: flex;
  align-items: center;
  padding: 30px 36px;
  gap: 48px;
  border-radius: 8px 8px 0 0;
}
.app-mark {
  font-size: 74px;
  letter-spacing: -10px;
  transform: rotate(-8deg);
  font-weight: 1000;
  line-height: 0.9;
  color: #007d78;
}
.app-mark span {
  font-size: 12px;
  display: block;
  letter-spacing: 0;
  margin-top: 15px;
}
.app-banner h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.app-banner p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.app-download {
  margin-left: auto;
  border-left: 1px solid #d2dede;
  padding-left: 35px;
}
.app-download > b {
  font-size: 10px;
  letter-spacing: 1px;
}
.app-download > div {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}
.app-download a {
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px 12px;
  font-size: 24px;
}
.app-download a span {
  font-size: 7px;
}
.app-download strong {
  font-size: 14px;
  display: block;
  margin-top: 2px;
}
footer {
  background: #f0f3f3;
  border-top: 1px solid #dce5e4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.2fr;
  padding-top: 35px;
  padding-bottom: 30px;
  gap: 35px;
}
footer h4 {
  font-size: 10px;
  margin: 0 0 15px;
}
footer button,
footer p {
  font-size: 11px;
  color: #6b8081;
  line-height: 1.9;
}
footer button {
  display: block;
  padding: 0;
  margin: 0 0 3px;
}
.social > div {
  font-size: 23px;
}
.footer-bottom {
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  padding: 17px 0;
}
.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
}
.footer-bottom span {
  color: #bbd0d1;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 35px;
  width: 550px;
  max-width: calc(100% - 30px);
  color: var(--ink);
  box-shadow: 0 20px 100px #0f172a40;
  max-height: 90vh;
}
dialog::backdrop {
  background: #0f172a80;
  backdrop-filter: blur(4px);
}
.close {
  position: absolute;
  top: 10px;
  right: 13px;
  font-size: 27px;
  background: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  z-index: 2;
}
dialog h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin: 14px 0 10px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 15px 0;
}
form label input,
form label select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #cddada;
  border-radius: 4px;
  padding: 12px;
  margin-top: 7px;
  color: var(--ink);
  background: white;
  outline-color: #00a59c;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
.form-row {
  display: flex;
  gap: 15px;
}
.form-row label {
  flex: 1;
  min-width: 0;
}
.full {
  width: 100%;
  margin: 8px 0;
}
small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin-top: 10px;
}
.detail-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 7px;
}
.detail-price {
  font-size: 28px;
  font-weight: 800;
  margin-top: 22px;
}
.detail-tags {
  font-size: 12px;
  color: var(--muted);
}
.seller-box {
  padding: 17px;
  background: #f0f7f5;
  border-radius: 6px;
  margin: 20px 0;
}
.seller-box b {
  font-size: 13px;
}
.seller-box p {
  margin: 5px 0 0;
  font-size: 11px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: 7px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 10;
  max-width: 90%;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.price-panel {
  padding: 16px;
  background: #f3f7f6;
  border-radius: 6px;
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  gap: 12px;
}
.price-panel[hidden] {
  display: none;
}
.price-panel label {
  font-size: 11px;
}
.price-panel input {
  display: block;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 4px;
  margin-top: 7px;
  width: 150px;
}
.price-panel button {
  font-size: 11px;
}
.results-line {
  font-size: 12px;
  margin: 0 0 18px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 50px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
}
.back-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 38px;
  width: 38px;
  box-shadow: 0 3px 12px #0f172a10;
  font-size: 20px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #00a59c;
  outline-offset: 4px;
}
button:hover {
  filter: brightness(0.97);
}
@media (min-width: 1450px) {
  .wrap {
    max-width: 1340px;
  }
  .hero {
    height: 380px;
  }
  .hero-copy {
    padding-top: 50px;
  }
  .hero-art {
    margin-right: 50px;
  }
  .card-photo {
    height: 200px;
  }
}
@media (max-width: 1050px) {
  .wrap {
    padding-left: 22px;
    padding-right: 22px;
  }
  .category-nav .wrap {
    gap: 20px;
  }
  .hero-copy {
    padding: 38px 30px;
    width: 52%;
  }
  .hero h1 {
    font-size: 40px;
  }
  .photo-two {
    left: 160px;
    width: 175px;
  }
  .photo-one {
    left: 0;
    width: 160px;
  }
  .deal-badge {
    left: 240px;
    width: 100px;
    height: 100px;
    font-size: 12px;
  }
  .category-grid {
    gap: 8px;
  }
  .category-icon {
    width: 62px;
    height: 62px;
    font-size: 29px;
  }
  .category-item {
    font-size: 10px;
  }
  .listing-grid {
    gap: 15px;
  }
  .card-photo {
    height: 160px;
  }
  .card-price {
    font-size: 18px;
  }
  .card-meta {
    font-size: 9px;
  }
  .app-banner {
    gap: 30px;
    padding: 28px;
  }
  .app-download {
    padding-left: 25px;
  }
  .app-mark {
    font-size: 65px;
  }
  .app-banner h2 {
    font-size: 19px;
  }
  .app-download a {
    padding: 7px 9px;
  }
  .app-download strong {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar {
    height: 67px;
    gap: 22px;
  }
  .logo {
    font-size: 44px;
  }
  .top-link {
    display: none;
  }
  .sell-btn {
    padding: 3px 14px;
    border-width: 4px;
    font-size: 12px;
  }
  .sell-btn span {
    font-size: 22px;
  }
  .login-link {
    font-size: 13px;
  }
  .searchbar {
    gap: 8px;
    padding-bottom: 15px;
  }
  .location {
    width: 125px;
    padding: 0 8px;
    gap: 3px;
  }
  .location span {
    font-size: 21px;
  }
  .location select {
    font-size: 11px;
  }
  .location-picker {
    width: 132px;
  }
  .location-trigger {
    min-height: 47px;
    gap: 6px;
    padding: 6px 8px;
  }
  .location-pin {
    font-size: 20px;
  }
  .location-trigger-copy small {
    display: none;
  }
  .location-trigger-copy b {
    font-size: 11px;
  }
  .location-chevron {
    font-size: 14px;
  }
  .location-panel {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - 92px);
  }
  .search-field input {
    font-size: 12px;
    padding: 13px 10px;
  }
  .search-field {
    min-height: 47px;
  }
  .search-field button {
    width: 43px;
    font-size: 27px;
  }
  .category-nav .wrap {
    min-height: 45px;
    gap: 23px;
  }
  .category-nav button {
    font-size: 11px;
  }
  main {
    padding-top: 16px !important;
  }
  .hero {
    height: 315px;
  }
  .hero-copy {
    padding: 27px 22px;
    width: 60%;
  }
  .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .hero h1 {
    font-size: 34px;
    letter-spacing: -1.5px;
    margin-top: 14px;
  }
  .hero p {
    font-size: 11px;
    line-height: 1.6;
    max-width: 210px;
  }
  .hero .primary {
    font-size: 11px;
    padding: 11px 13px;
    gap: 15px;
  }
  .hero-note {
    font-size: 8px;
    max-width: 180px;
    line-height: 1.5;
    margin-top: 17px;
  }
  .hero-art {
    margin-left: -20px;
  }
  .photo-one {
    width: 120px;
    height: 170px;
    top: 40px;
    left: 0;
  }
  .photo-two {
    width: 125px;
    height: 145px;
    top: 155px;
    left: 45px;
  }
  .hero-photo {
    padding: 6px;
  }
  .hero-photo span {
    font-size: 7px;
  }
  .deal-badge {
    left: 70px;
    top: 7px;
    width: 77px;
    height: 77px;
    font-size: 10px;
  }
  .spark-one {
    font-size: 24px;
    left: -15px;
  }
  .spark-two {
    display: none;
  }
  .orbit {
    left: -70px;
  }
  .orbit-two {
    left: -25px;
  }
  .categories {
    padding: 25px 0;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading > span {
    display: none;
  }
  .category-grid {
    display: flex;
    overflow: auto;
    gap: 22px;
    padding: 4px 4px 10px;
  }
  .category-icon {
    width: 59px;
    height: 59px;
  }
  .category-item {
    font-size: 10px;
    min-width: 65px;
  }
  .listings {
    padding-top: 23px;
  }
  .listing-heading .eyebrow {
    font-size: 8px;
  }
  .saved-link span {
    display: none;
  }
  .filterbar {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 17px;
  }
  .filter-pills {
    gap: 6px;
  }
  .filter {
    font-size: 10px;
    padding: 8px 12px;
  }
  .sort {
    margin-left: auto;
  }
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }
  .card-photo {
    height: 175px;
  }
  .card-body {
    padding: 12px 11px;
  }
  .card-price {
    font-size: 18px;
  }
  .card-title {
    font-size: 12px;
    margin: 7px 0 9px;
  }
  .card-condition {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .card-meta {
    font-size: 8px;
  }
  .featured {
    font-size: 7px;
    left: 8px;
    bottom: 8px;
  }
  .sell-banner {
    padding: 22px;
    gap: 13px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .banner-icon {
    width: 39px;
    height: 39px;
    font-size: 24px;
  }
  .sell-banner > div:nth-child(2) {
    flex: 1;
  }
  .sell-banner h2 {
    font-size: 16px;
    line-height: 1.4;
  }
  .sell-banner p {
    font-size: 10px;
    line-height: 1.6;
  }
  .sell-banner .primary {
    margin: 3px 0 0 52px;
    font-size: 11px;
    padding: 10px 15px;
  }
  .app-banner {
    gap: 25px;
    padding: 25px 22px;
    flex-wrap: wrap;
  }
  .app-mark {
    font-size: 60px;
  }
  .app-mark span {
    font-size: 9px;
  }
  .app-banner h2 {
    font-size: 19px;
  }
  .app-banner p {
    font-size: 9px;
    max-width: 180px;
    line-height: 1.6;
  }
  .app-download {
    margin: 0;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid #d2dede;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .app-download > div {
    margin: 0;
  }
  .app-download > b {
    font-size: 8px;
    max-width: 70px;
    line-height: 1.7;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 28px;
  }
  .footer-bottom .wrap {
    flex-direction: column;
    gap: 9px;
    font-size: 9px;
  }
  .price-panel {
    flex-wrap: wrap;
  }
  .price-panel input {
    width: 125px;
  }
  dialog {
    padding: 28px 22px;
  }
  .detail-image {
    height: 230px;
  }
}
@media (max-width: 390px) {
  .hero h1 {
    font-size: 29px;
  }
  .hero-copy {
    padding: 25px 17px;
  }
  .hero-art {
    margin-left: -30px;
  }
  .card-photo {
    height: 145px;
  }
  .card-price {
    font-size: 16px;
  }
  .filter {
    padding: 8px 9px;
  }
  .card-meta {
    font-size: 7px;
  }
  .app-banner {
    gap: 20px;
  }
  .app-banner h2 {
    font-size: 17px;
  }
}
.remove-ad {
  display: block;
  margin: 18px auto 0;
  color: #b74747;
  text-decoration: underline;
  font-size: 12px;
}
.account-link {
  font-size: 12px;
  font-weight: 700;
}
.text-link {
  font-size: 12px;
  text-decoration: underline;
  display: block;
  margin: 15px auto;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .account-link {
    font-size: 10px;
    max-width: 65px;
  }
  .topbar {
    gap: 14px;
  }
}
[hidden] {
  display: none !important;
}

/* --- Homepage category sections (category layout update; additive only) --- */
.category-sections {
  padding: 4px 0 12px;
}
.cat-section {
  padding: 12px 0 34px;
  border-top: 1px solid #edf0ef;
}
.category-sections .cat-section:first-child {
  border-top: 0;
  padding-top: 6px;
}
.cat-section .section-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cat-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
}
.cat-heading-icon {
  width: 52px;
  height: 52px;
  font-size: 27px;
  flex: none;
}
.cat-heading-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.cat-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-left: 6px;
  white-space: nowrap;
}
.cat-section .card {
  cursor: pointer;
}
/* Category strip ("View All Categories" dropdown). */
.category-nav {
  position: relative;
}
.category-nav .wrap {
  position: relative;
}
.nav-more-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 45px #0f172a1f;
  padding: 22px 28px 26px;
  z-index: 70;
  max-height: min(72vh, 640px);
  overflow: auto;
}
.nav-more-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 28px;
}
.nav-more-groups button {
  font-size: 13px;
  font-weight: 700;
  padding: 11px 0;
  text-align: left;
  white-space: normal;
}
.nav-more-groups button:hover {
  color: #00877f;
}
.nav-more-panel .category-tree {
  margin-top: 20px;
  padding-top: 22px;
}
.nav-more-panel .cat-tree-head {
  color: var(--muted);
}
/* Expanded "View All Categories" panel: every remaining category,
   grouped by family, using the existing chip design. */
.category-tree {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #edf0ef;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 36px;
}
.cat-tree-head {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 7px;
}
.category-tree .subcategory-browser {
  padding: 0;
}
@media (max-width: 1050px) {
  .category-tree {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .nav-more-panel {
    padding: 16px;
  }
  .nav-more-groups {
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .nav-more-groups button {
    font-size: 11px;
    padding: 9px 0;
  }
  .category-tree {
    grid-template-columns: 1fr;
    margin-top: 14px;
    padding-top: 14px;
  }
}
.cat-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  background: white;
  white-space: nowrap;
}
.cat-view-all span {
  margin-left: 8px;
}
.cat-view-all:hover {
  background: var(--ink);
  color: white;
}
.cat-empty {
  font-size: 12px;
  color: var(--muted);
  background: #f6faf9;
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 28px 22px;
  text-align: center;
  margin: 0;
}
.location-results-state {
  margin: 18px 0 28px;
  padding: 42px 24px;
  border: 1px dashed #9fb5b6;
  border-radius: 10px;
  background: #f6faf9;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.cat-empty a {
  color: var(--ink);
  text-decoration: underline;
  font-weight: 700;
}
.cat-banner {
  display: flex;
  align-items: center;
  margin: 10px 0 40px;
  border-radius: 10px;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 10px 30px #0f172a22;
}
.cat-banner > img {
  width: 30%;
  height: 225px;
  object-fit: cover;
  flex: none;
}
.cat-banner-content {
  padding: 30px 36px;
}
.cat-banner-content .eyebrow {
  color: var(--teal);
}
.cat-banner-content h3 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 12px 0 10px;
}
.cat-banner-content p {
  font-size: 13px;
  color: #c9dcdb;
  line-height: 1.7;
  margin: 0 0 6px;
  max-width: 430px;
}
.cat-banner-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 800;
  margin-top: 10px;
  white-space: nowrap;
}
.cat-banner-btn:hover {
  filter: brightness(1.06);
}
@media (max-width: 1050px) {
  .cat-banner > img {
    height: 190px;
  }
  .cat-banner-content {
    padding: 24px 26px;
  }
  .cat-banner-content h3 {
    font-size: 21px;
  }
}
@media (max-width: 760px) {
  .cat-section {
    padding: 6px 0 24px;
  }
  .cat-section-heading {
    gap: 10px;
    font-size: 18px;
  }
  .cat-heading-icon {
    width: 43px;
    height: 43px;
    font-size: 22px;
  }
  .cat-count {
    display: none;
  }
  .cat-section .section-heading {
    gap: 12px;
  }
  .cat-view-all {
    padding: 8px 11px;
    font-size: 11px;
  }
  .cat-banner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    margin: 4px 0 26px;
  }
  .cat-banner > img {
    width: 100%;
    height: 148px;
  }
  .cat-banner-content {
    padding: 20px;
  }
  .cat-banner-content h3 {
    font-size: 19px;
    margin: 9px 0 8px;
  }
  .cat-banner-content p {
    font-size: 11px;
    line-height: 1.6;
  }
  .cat-banner-btn {
    font-size: 11px;
    padding: 11px 15px;
  }
}

/* --- Category listings page (category.html; additive only) --- */
.cat-page {
  padding: 0 0 44px;
}
.cat-page h1 {
  font-size: 22px;
  letter-spacing: -0.3px;
  margin: 4px 0 5px;
}
.cat-page .results-line {
  margin: 4px 0 0;
}
.feed-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin-bottom: 18px;
}
.feed-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: white;
}
.feed-filter-toggle b {
  background: var(--ink);
  color: white;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  display: inline-grid;
  place-items: center;
}
.feed-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.feed-main {
  min-width: 0;
}
.feed-empty {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: #f6faf9;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 60px 20px;
  margin: 0;
}
.feed-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
}
.fs-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
}
.fs-card h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
.fs-card h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0 0 8px;
  color: var(--ink);
}
.fs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fs-close {
  display: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 15px;
  line-height: 1;
}
.fs-clear {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #00877f;
  background: #f2fbfa;
}
.fs-clear:hover {
  border-color: #00877f;
}
.fs-list {
  display: grid;
  gap: 1px;
}
.fs-list button {
  width: 100%;
  text-align: left;
  font-size: 12px;
  padding: 7px 9px;
  border-radius: 5px;
  color: var(--ink);
}
.fs-list button:hover {
  background: #f0f7f6;
  color: #00877f;
}
.fs-list button.fs-current {
  color: #00877f;
  font-weight: 700;
  background: #e6f8f6;
}
.fs-list button span {
  float: right;
  color: var(--muted);
  font-weight: 400;
}
#fsCats li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
#fsCats li.active > button:first-child {
  color: #00877f;
  font-weight: 800;
}
#fsCats .fs-branch {
  font-size: 11px;
  color: var(--muted);
  padding: 7px 6px;
}
#fsCats .fs-children {
  grid-column: 1 / -1;
  display: grid;
  gap: 1px;
  padding: 1px 0 4px 14px;
}
#fsCats .fs-children button {
  font-size: 11px;
  color: var(--muted);
}
.fs-choices label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  padding: 6px 4px;
  color: var(--ink);
  cursor: pointer;
}
.fs-choices input {
  accent-color: #00a59c;
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  flex: none;
}
.fs-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.fs-price input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 7px;
  font-size: 11px;
  color: var(--ink);
  outline-color: #00a59c;
}
.fs-dash {
  color: var(--muted);
}
.fs-apply {
  border: 1px solid #00a59c;
  background: #e8fbfa;
  color: #00877f;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 700;
}
.fs-apply:hover {
  background: #00a59c;
  color: white;
}
.fs-backdrop {
  position: fixed;
  inset: 0;
  background: #0f172a5c;
  z-index: 55;
}
.cat-page .load-more {
  margin: 30px 0 6px;
}
@media (max-width: 1050px) {
  .feed-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-filter-toggle {
    display: inline-flex;
  }
  .feed-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: #f7f9f9;
    padding: 14px;
    overflow: auto;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 0 18px 50px #0f172a2e;
    z-index: 60;
  }
  .feed-sidebar.open {
    transform: none;
  }
  .fs-close {
    display: inline-block;
  }
  .fs-card {
    padding: 13px 14px;
  }
}
@media (max-width: 760px) {
  .cat-page h1 {
    font-size: 17px;
  }
  .feed-toolbar {
    padding: 9px 12px;
    margin-bottom: 14px;
  }
  .feed-empty {
    padding: 44px 14px;
    font-size: 13px;
  }
}

/* --- Bottom app navigation (mobile only; hidden on desktop) --- */
.bottom-nav,
.quick-contact,
.mobile-contact,
.chat-drawer {
  display: none;
}

/* --- Mobile-only polish (desktop layout untouched) --- */
@media (max-width: 760px) {
  /* Guardrail: never scroll sideways on phones. */
  body {
    overflow-x: clip;
  }

  /* Header: tighter, balanced, professional rows. */
  .topbar {
    height: 62px;
    gap: 10px;
  }
  .logo {
    font-size: 38px;
    letter-spacing: -4px;
    padding-right: 2px;
  }
  /* Branded logo text (inline-styled by branding.js): keep one neat line on phones. */
  .topbar .logo {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap !important;
    text-overflow: ellipsis;
    line-height: 1 !important;
    font-size: clamp(14px, 4.2vw, 19px) !important;
    letter-spacing: -0.5px !important;
    font-weight: 900;
    padding-right: 4px;
  }
  .topbar .logo img {
    height: 34px;
    width: auto;
  }

  /* Main sections live only in the bottom navigation on phones:
     the header keeps brand + search, with no duplicated items. */
  .topbar .account-link:not(#adminLink),
  .topbar #signIn,
  .topbar .login-link,
  .topbar .sell-btn {
    display: none;
  }
  /* Admin stays reachable for signed-in admins (not a duplicate of any nav item). */
  .topbar > a#adminLink {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink);
  }
  .searchbar {
    padding-bottom: 12px;
    gap: 0;
  }
  .location-trigger {
    min-height: 48px;
  }
  .search-field {
    min-height: 48px;
  }

  /* Mobile header layout: brand left, location right on the same row,
     full-width search bar underneath. */
  header {
    position: relative;
  }
  .topbar {
    height: 68px; /* a touch more vertical room for the two-part brand row */
  }
  .location-picker {
    position: absolute;
    top: 12px;
    right: 16px;
    width: auto;
    z-index: 80;
  }
  .location-trigger {
    min-height: 46px;
    gap: 9px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 1px 3px #0f172a12;
  }
  .location-pin {
    font-size: 19px;
    color: var(--teal);
  }
  .location-trigger-copy {
    gap: 1px;
  }
  .location-trigger-copy small {
    display: block;
    font-size: 7px;
    line-height: 9px;
    letter-spacing: 0.8px;
  }
  .location-trigger-copy b {
    font-size: 12px;
    line-height: 14px;
    max-width: 26vw;
  }
  .location-chevron {
    font-size: 14px;
  }
  .search-field {
    flex: 1 1 auto;
    width: 100%;
  }

  /* Category panels: 2 comfortable columns instead of 4 cramped ones. */
  .nav-more-groups {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-tree {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Banner: about half the normal mobile height, compact centered copy. */
  .hero {
    height: 158px;
  }
  .hero-copy {
    width: 100%;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .hero-art,
  .hero p,
  .hero-note {
    display: none;
  }
  .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
    margin-bottom: 4px;
  }
  .hero h1 {
    font-size: 31px;
    line-height: 1.06;
    letter-spacing: -1.2px;
    margin: 0 0 10px;
  }
  .hero .primary {
    gap: 14px;
    padding: 9px 13px;
    font-size: 11px;
  }
  .hero .primary span {
    font-size: 15px;
  }

  /* Small floating scroll-top button: comfortable touch target, inside the safe area. */
  .back-top {
    height: 44px;
    width: 44px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  /* Toast above the bottom bar. */
  .toast {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  /* --- Quick contact (call + WhatsApp), shown left above the bottom bar --- */
  .quick-contact {
    position: fixed;
    left: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 51;
  }
  .qc-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: 0 5px 16px #0f172a22;
    transition: transform 0.18s ease;
  }
  .qc-btn:active {
    transform: scale(0.92);
  }
  .qc-btn svg {
    width: 20px;
    height: 20px;
  }
  .qc-wa {
    background: #25d366;
    border-color: #1fbf5b;
    color: #fff;
    box-shadow: 0 5px 16px #0f172a2b;
  }
  .qc-call {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
  }

  /* --- Mobile contact bar on listing pages --- */
  body:has(.mobile-contact) {
    padding-bottom: calc(64px + 62px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-contact {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(66px + 10px + env(safe-area-inset-bottom, 0px));
    z-index: 51;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 7px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 32px #0f172a2e;
  }
  .mc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 4px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 800;
    background: #f1f4f6;
    color: var(--ink);
    transition: transform 0.15s ease, background 0.15s ease;
  }
  .mc-btn:active {
    transform: scale(0.95);
  }
  .mc-btn svg {
    width: 18px;
    height: 18px;
  }
  .mc-call svg {
    color: var(--ink);
  }
  .mc-wa svg {
    color: #1faa53;
  }
  .mc-chat {
    background: var(--ink);
    color: #fff;
  }
  .mc-chat svg {
    color: #fff;
  }

  /* --- In-site chat drawer (bottom sheet) --- */
  .chat-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    display: flex;
    flex-direction: column;
    max-height: 76vh;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 46px #0f172a38;
    z-index: 75;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: chatrise 0.24s ease;
  }
  @keyframes chatrise {
    from {
      transform: translateY(40px);
      opacity: 0.4;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
  .chat-drawer-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .chat-drawer-head .seller-avatar {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .chat-drawer-id {
    flex: 1;
    min-width: 0;
  }
  .chat-drawer-id b {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat-drawer-id small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 17px;
    flex: none;
  }
  .chat-drawer-messages {
    min-height: 240px;
    max-height: 48vh;
    overflow: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f5f7f6;
  }
  .chat-empty {
    font-size: 11px;
    color: #67787a;
    text-align: center;
    margin: 24px auto;
    max-width: 240px;
  }
  .chat-drawer .bubble {
    align-self: flex-start;
    max-width: 80%;
    background: #fff;
    border: 1px solid #e6eae8;
    border-radius: 3px 12px 12px 12px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .chat-drawer .bubble.mine {
    align-self: flex-end;
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    border-radius: 12px 3px 12px 12px;
  }
  .chat-drawer .bubble small {
    display: block;
    margin-top: 3px;
    font-size: 8px;
    opacity: 0.55;
  }
  .chat-drawer-form {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .chat-drawer-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    background: #f7f9f9;
  }
  #drawerSend {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    flex: none;
  }
  #drawerSend svg {
    width: 17px;
    height: 17px;
  }

  /* --- Bottom app navigation --- */
  body:has(.bottom-nav) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px #0f172a14;
    z-index: 50;
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #67787a;
    transition: color 0.18s ease;
  }
  .bottom-nav a svg {
    width: 22px;
    height: 22px;
    display: block;
  }
  .bottom-nav a.active,
  .bottom-nav a.active:active {
    color: var(--ink);
  }
  /* Center sell action: raised accent button, matching the header pill. */
  .bottom-nav a.nav-sell {
    color: var(--ink);
  }
  .bottom-nav a.nav-sell .fab {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-top: -16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 6px 14px #0f172a33;
    transition: transform 0.18s ease;
  }
  .bottom-nav a.nav-sell .fab svg {
    width: 18px;
    height: 18px;
  }
  .bottom-nav a.nav-sell:active .fab {
    transform: scale(0.93);
  }
}
