/* Storefront */
.announce {
  background: var(--ink);
  color: var(--surface);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
}
.announce a {
  color: var(--gold-2);
}
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 2px 10px rgba(20, 20, 60, 0.15);
}
.header .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none !important;
  white-space: nowrap;
}
.logo-link .logo-full {
  height: 30px;
  width: auto;
  display: block;
}
.logo-link .logo-emblem {
  display: none;
  flex: none;
}
.search {
  flex: 1;
  position: relative;
  max-width: 640px;
}
.search input {
  border: 0;
  min-height: 42px;
  padding-left: 40px;
  border-radius: 10px;
  background: #fff;
  color: #161827;
}
.search::before {
  content: '\26b2';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  color: #6b7086;
  font-size: 1.1rem;
  z-index: 1;
}
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 10;
}
.suggest a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text);
  text-decoration: none;
}
.suggest a:hover,
.suggest a.on {
  background: var(--surface-2);
}
.suggest img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.hnav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hnav a,
.hnav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  position: relative;
}
.hnav a:hover,
.hnav button:hover {
  background: rgba(255, 255, 255, 0.14);
}
.hnav .premium-link {
  color: var(--gold-2);
}
.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #1b1200;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 0 5px;
  min-width: 18px;
  text-align: center;
}
.dropdown {
  position: relative;
}
.dropdown .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
}
.dropdown.open .menu {
  display: block;
}
.dropdown .menu a,
.dropdown .menu button {
  display: flex;
  width: 100%;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.dropdown .menu a:hover,
.dropdown .menu button:hover {
  background: var(--surface-2);
}
.dropdown .menu .who {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  font-size: 0.85rem;
}
.catbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.catbar .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catbar a {
  padding: 10px 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
}
.catbar a:hover {
  color: var(--brand);
}
.mobile-search {
  display: none;
  padding: 0 0 10px;
}
@media (max-width: 820px) {
  .header .bar > .search {
    display: none;
  }
  .mobile-search {
    display: block;
  }
  .mobile-search .search {
    max-width: none;
  }
  .hnav .label {
    display: none;
  }
  .header .bar {
    gap: 8px;
  }
  .hnav {
    margin-left: auto;
  }
}
/* Small phones / large text: keep the logo and every header icon on screen. */
@media (max-width: 520px) {
  .header .bar {
    gap: 6px;
  }
  .logo-link {
    min-width: 0;
    flex-shrink: 1;
  }
  .logo-link .logo-full {
    height: 22px;
  }
  .hnav {
    gap: 0;
    min-width: 0;
  }
  .hnav a,
  .hnav button {
    padding: 8px 6px;
  }
}
/* Narrow phones: the round family emblem instead of the full wordmark. */
@media (max-width: 400px) {
  .logo-link .logo-full {
    display: none;
  }
  .logo-link .logo-emblem {
    display: block;
  }
}

main {
  min-height: 60vh;
  padding: 20px 0 48px;
}
.section {
  margin: 28px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  margin: 2px 0 0;
}

/* hero */
.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 260px;
  color: #fff;
}
.hero .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 36px 44px;
  opacity: 0;
  transition: opacity 0.25s;
  background-size: cover;
  background-position: center;
}
.hero .slide.on {
  min-height: 260px;
  opacity: 1;
  position: relative;
  /* fade in after the outgoing slide has faded out, so texts never overlap */
  transition: opacity 0.45s 0.25s;
}
.hero .slide::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 560px;
}
.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 520px;
}
.hero .dots {
  position: absolute;
  bottom: 14px;
  left: 44px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero .dots button {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}
.hero .dots button.on {
  width: 22px;
  background: #fff;
}
@media (max-width: 600px) {
  .hero .slide {
    padding: 28px 22px 40px;
  }
  .hero .dots {
    left: 22px;
  }
}

/* categories */
.cats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.cat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 8px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-tile .ic {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Phones: a swipeable row where each tile grows to fit its name, so long
   names and large system font sizes never spill out of the tile. */
@media (max-width: 600px) {
  .cats {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 2px 16px 6px;
  }
  .cats::-webkit-scrollbar {
    display: none;
  }
  .cat-tile {
    flex: 0 0 auto;
    min-width: 84px;
    padding: 12px 12px;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .cat-tile .ic {
    font-size: 1.7rem;
  }
}

/* product cards */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.products.scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.products.scroll .pcard {
  flex: 0 0 210px;
  scroll-snap-align: start;
}
@media (max-width: 520px) {
  .products:not(.scroll) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.pcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.pcard:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pcard.is-premium {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}
.pcard .pimg {
  aspect-ratio: 1;
  background: var(--surface-2);
  display: block;
}
.pcard .pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard .tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.pcard .wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1rem;
  color: #d93838;
}
.pcard .pbody {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pcard .ptitle {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none !important;
}
.pcard .pseller {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price-row .now {
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
}
.price-row .off {
  color: var(--ok);
  font-weight: 700;
  font-size: 0.8rem;
}
.pcard .pfoot {
  margin-top: auto;
  padding-top: 6px;
}
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--ok);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 6px;
}

/* premium band */
.premium-band {
  background: radial-gradient(circle at 90% 0%, rgba(244, 215, 122, 0.22), transparent 45%), linear-gradient(135deg, #14131a, #2a261f);
  border-radius: 20px;
  padding: 26px;
  color: #f4efe0;
}
.premium-band h2 {
  color: var(--gold-2);
}
.premium-band .muted {
  color: #c4bda8;
}
.premium-band .pcard {
  background: #1d1c24;
  border-color: #3a3426;
}
.premium-band .pcard .ptitle,
.premium-band .price-row .now {
  color: #f4efe0;
}
.seller-chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
}
.seller-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 215, 122, 0.3);
  color: #f4efe0 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.seller-chip img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.seller-chip small {
  display: block;
  color: #c4bda8;
}

/* offers */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.offer-card {
  position: relative;
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
}
.offer-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.offer-card h3 {
  color: #fff;
  margin: 8px 0 4px;
}
.offer-card p {
  opacity: 0.92;
  margin: 0 0 12px;
}
.offer-card .badge {
  background: rgba(255, 255, 255, 0.95);
  color: #161827;
  align-self: flex-start;
}
.offer-card .code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  color: #fff;
}
.offer-card .foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.offer-card a.btn {
  background: #fff;
  color: #161827;
  border-color: #fff;
}

/* listing */
.listing {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
}
.filters .card {
  position: sticky;
  top: 140px;
}
.filters h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 14px 0 8px;
}
.filters h4:first-child {
  margin-top: 0;
}
.filters a.f {
  display: block;
  padding: 5px 0;
  color: var(--text);
  font-size: 0.9rem;
}
.filters a.f.on {
  color: var(--brand);
  font-weight: 700;
}
@media (max-width: 860px) {
  .listing {
    grid-template-columns: minmax(0, 1fr);
  }
  .filters .card {
    position: static;
  }
  .filters .filter-body {
    display: none;
  }
  .filters.open .filter-body {
    display: block;
  }
}
.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

/* product page */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
}
@media (max-width: 860px) {
  .pdp {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
.gallery .main-img {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.gallery .main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery .thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.gallery .thumbs button {
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--line);
  padding: 0;
  cursor: pointer;
  background: var(--surface);
}
.gallery .thumbs button.on {
  border-color: var(--brand);
}
.gallery .thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp .price-row .now {
  font-size: 1.9rem;
}
.pdp .buy {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.pdp .buy .btn {
  flex: 1;
  min-width: 160px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.qty button {
  width: 36px;
  height: 38px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
}
.qty span {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
}
.seller-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.seller-box img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.partner-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--accent-50);
}
.hl {
  padding-left: 18px;
}
.hl li {
  margin: 4px 0;
}

/* cart / checkout */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}
.line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.line:last-child {
  border-bottom: 0;
}
.line img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}
.summary .r {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.summary .r.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}
.summary {
  position: sticky;
  top: 140px;
}
.ship-meter {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin: 8px 0 4px;
}
.ship-meter i {
  display: block;
  height: 100%;
  background: var(--ok);
}
.addr {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  margin-bottom: 10px;
  background: var(--surface);
}
.addr:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-50);
}
.addr input {
  accent-color: var(--brand);
  margin-right: 8px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 14px 22px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.timeline li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::after {
  display: none;
}
.steps {
  display: flex;
  gap: 0;
  margin: 16px 0;
}
.steps div {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding-top: 26px;
}
.steps div::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--line);
  z-index: 1;
}
.steps div::after {
  content: '';
  position: absolute;
  top: 11px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.steps div:first-child::after {
  display: none;
}
.steps div.done {
  color: var(--ok);
}
.steps div.done::before,
.steps div.done::after {
  background: var(--ok);
}

/* seller store page */
.store-hero {
  border-radius: 18px;
  padding: 26px;
  background: linear-gradient(135deg, var(--brand-deep), var(--accent));
  color: #fff;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
}
.store-hero.premium {
  background: radial-gradient(circle at 90% 0%, rgba(244, 215, 122, 0.3), transparent 45%), linear-gradient(135deg, #14131a, #2a261f);
}
.store-hero img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: #fff;
}
.store-hero h1 {
  color: #fff;
  margin: 0;
}

/* sell landing */
.sell-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-50), var(--accent-50));
}
@media (max-width: 800px) {
  .sell-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }
}
.sell-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}
.feature {
  display: flex;
  gap: 12px;
}
.feature .ic {
  font-size: 1.6rem;
}

footer.site {
  background: var(--ink);
  color: color-mix(in srgb, var(--surface) 75%, transparent);
  padding: 36px 0 24px;
  font-size: 0.9rem;
}
footer.site h4 {
  color: var(--surface);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
footer.site a {
  color: inherit;
  display: block;
  padding: 3px 0;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) {
  footer.site .cols {
    grid-template-columns: 1fr 1fr;
  }
}
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumbs a {
  color: var(--muted);
}

/* ------------------------------ location / nearby ------------------------------ */
.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  text-align: left;
  max-width: 210px;
  flex: none;
}
.loc-chip:hover {
  background: rgba(255, 255, 255, 0.18);
}
.loc-chip .txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.loc-chip small {
  font-size: 0.68rem;
  opacity: 0.8;
}
.loc-chip b {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-chip .caret {
  opacity: 0.8;
  font-size: 0.8rem;
}
.loc-mobile {
  display: none;
}
@media (max-width: 1180px) {
  .hnav .hide-mid {
    display: none;
  }
}
@media (max-width: 820px) {
  .loc-desktop {
    display: none;
  }
  .mobile-search {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .loc-mobile {
    display: inline-flex;
    max-width: 42%;
  }
  .mobile-search .search {
    flex: 1;
    min-width: 0;
  }
  .loc-chip small {
    display: none;
  }
}
.loc-banner {
  background: var(--accent-50);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 0.9rem;
}
.loc-banner .row {
  gap: 10px;
}
.pnear {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.chip-mini {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--ok-50);
  color: var(--ok);
}
.btn.xs {
  min-height: 30px;
  padding: 3px 9px;
  font-size: 0.78rem;
  border-radius: 7px;
}
.btn.wa {
  color: #128c4b;
}
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* shop cards (home strip, search strip) */
.shop-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.shop-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-card .shop-top {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  text-decoration: none !important;
  min-width: 0;
}
.shop-card .shop-top img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
}
.shop-card .shop-top span {
  min-width: 0;
}
.shop-card .shop-top b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.near-band {
  background: linear-gradient(135deg, var(--brand-50), var(--surface));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.near-cta,
.post-ad,
.near-prompt {
  background: linear-gradient(135deg, var(--accent-50), var(--brand-50));
}
.near-strip {
  margin-bottom: 18px;
  padding: 14px;
}

/* buy nearby rows */
.offer-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.offer-row:last-child {
  border-bottom: 0;
}
.offer-row .logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.offer-row .offer-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  font-size: 1.1rem;
  color: var(--ink);
}
.offer-row .acts {
  grid-column: 2 / -1;
}
.contact-box {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.contact-box .buy {
  margin: 0 0 10px;
}
.seller-box-lg {
  flex-direction: column;
  align-items: stretch;
}
.mini-map {
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  z-index: 0;
}
.store-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.store-map {
  height: auto;
  min-height: 240px;
  margin-top: 0;
}
@media (max-width: 760px) {
  .store-info {
    grid-template-columns: minmax(0, 1fr);
  }
}
.steps-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

/* sticky mobile buy bar */
.buybar {
  display: none;
}
@media (max-width: 760px) {
  .has-buybar {
    padding-bottom: 76px;
  }
  .buybar {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(20, 22, 40, 0.1);
  }
  .buybar .btn {
    flex: 1;
    min-width: 0;
  }
  .offer-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
}

/* nearby page */
.nearby-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.nsearch {
  gap: 8px;
  flex: 1;
  max-width: 560px;
  flex-wrap: nowrap;
}
.nsearch input {
  flex: 1;
  min-width: 0;
}
.nsearch select {
  width: auto;
}
.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.chips-row .chip {
  text-decoration: none;
}
.nearby-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.nearby-map {
  position: sticky;
  top: 140px;
  height: calc(100vh - 170px);
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  z-index: 0;
}
.nearby-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ncard {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}
.ncard.on {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.ncard .logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
}
.ncard .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nthumbs {
  display: flex;
  gap: 6px;
}
.nthumbs a {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}
.nthumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nthumbs span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
}
@media (max-width: 860px) {
  .nearby-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .nearby-map {
    position: relative;
    top: 0;
    height: 45vh;
    min-height: 260px;
  }
  .nsearch {
    max-width: none;
    width: 100%;
  }
}

/* ------------------------------ chat ------------------------------ */
.chat-wrap {
  max-width: 820px;
}
.thread-list {
  padding: 0;
  overflow: hidden;
}
.thread-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none !important;
}
.thread-row:last-child {
  border-bottom: 0;
}
.thread-row:hover {
  background: var(--surface-2);
}
.thread-row.unread b {
  color: var(--brand);
}
.thread-row img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.thread-row .grow,
.chat-head .grow {
  flex: 1;
  min-width: 0;
}
.ellip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.unread-dot {
  background: var(--accent);
  color: #1b1200;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 2px 8px;
}
.chat-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 420px;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.chat-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none !important;
  font-size: 0.88rem;
}
.chat-product img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}
.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bubble.mine {
  align-self: flex-end;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.theirs {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble time {
  display: block;
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 2px;
  text-align: right;
}
.chat-compose {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chat-compose textarea {
  min-height: 44px;
  max-height: 120px;
  resize: none;
  flex: 1;
}
@media (max-width: 600px) {
  .chat-card {
    height: calc(100vh - 170px);
  }
}
.leaflet-container {
  font-family: var(--font);
}
.header .bar > .search {
  min-width: 220px;
}
@media (max-width: 1480px) {
  .hnav .hide-mid,
  .hnav [data-msg-link] .label,
  .hnav a[href='#/sell'] .label {
    display: none;
  }
  .loc-chip {
    max-width: 180px;
  }
}

/* ---------------- front page (client sketch): seller cards | Now Shopping, then ADS ---------------- */
.home-top {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  margin: 8px 0 4px;
  min-height: 420px;
}
.home-cta {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, #232b55, #151a38);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.cta-card::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.cta-card .ic {
  font-size: 2.2rem;
  line-height: 1;
}
.cta-card b {
  font-size: clamp(1.15rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  font-weight: 800;
}
.cta-card small {
  opacity: 0.8;
  font-size: 0.9rem;
}
.cta-card.store b {
  color: #ffd84d;
}
.cta-card.sell b {
  color: #4fd4ff;
}
.cta-card .free {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #ff8a3d;
  color: #fff;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 10px;
  transform: rotate(4deg);
  box-shadow: 0 6px 14px rgba(255, 138, 61, 0.35);
}
.now-shop {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.now-head {
  align-self: flex-start;
  background: #fff;
  color: var(--brand-deep) !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  padding: 8px 20px;
  border-radius: 14px;
  text-decoration: none !important;
  box-shadow: var(--shadow);
}
.now-head {
  white-space: nowrap;
}
.now-head span {
  font-family: var(--font);
  color: var(--accent);
}
.hs.showcase {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--brand-deep);
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
  outline: none;
}
.hs.showcase:focus-visible {
  box-shadow: 0 0 0 3px var(--accent);
}
.hs-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.hs-slide.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
  z-index: 1;
}
.hs-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}
.hs-slide.on .hs-img {
  transform: scale(1);
}
.sc-label {
  position: absolute;
  left: 16px;
  bottom: 40px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 8px 16px;
  border-radius: 99px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.hs-dots {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.hs-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.3s;
}
.hs-dots button.on {
  width: 30px;
  background: rgba(255, 255, 255, 0.4);
}
.hs-dots button i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.hs-dots button.on i {
  width: 100%;
}
.hs.running .hs-dots button.on i {
  width: 0;
  animation: hs-progress var(--hs-ms, 5500ms) linear forwards;
}
@keyframes hs-progress {
  to {
    width: 100%;
  }
}
.ads-section {
  border-top: 2px solid var(--line);
  padding-top: 20px;
}
.ads-head {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}
/* phones keep the sketch's two columns, just tighter */
@media (max-width: 600px) {
  .home-top {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 10px;
    min-height: 330px;
  }
  .home-cta {
    gap: 10px;
  }
  .cta-card {
    padding: 14px 12px;
    border-radius: 16px;
    gap: 4px;
  }
  .cta-card .ic {
    font-size: 1.6rem;
  }
  .cta-card b {
    font-size: 1.02rem;
  }
  .cta-card small {
    font-size: 0.72rem;
  }
  .cta-card .free {
    top: 10px;
    right: 8px;
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  .now-shop {
    gap: 8px;
  }
  .now-head {
    font-size: 1.02rem;
    padding: 6px 10px;
    border-radius: 10px;
  }
  .hs.showcase {
    border-radius: 16px;
  }
  .sc-label {
    left: 10px;
    bottom: 30px;
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  .hs-dots {
    left: 12px;
    bottom: 12px;
  }
  .ads-head {
    font-size: 1.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hs-img,
  .hs-slide.on .hs-img {
    transform: none;
    transition: none;
  }
}

/* ads: one image at a time, shown whole over a blurred copy of itself, changing every 3 seconds */
.hs.ad-rotator {
  position: relative;
  height: min(70vh, 560px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--brand-deep);
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
  outline: none;
}
.hs.ad-rotator:focus-visible {
  box-shadow: 0 0 0 3px var(--accent);
}
.ad-rotator .hs-slide {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.ad-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.55);
}
.ad-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.ad-rotator .hs-dots {
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 99px;
}
@media (max-width: 600px) {
  .hs.ad-rotator {
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
  }
}
.poster-view img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 10px;
}

/* floating cart, since the header only carries sign-in */
.cart-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff !important;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  text-decoration: none !important;
  box-shadow: var(--shadow-lg);
}
.cart-fab .cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brand-deep);
  color: #fff;
}

/* minimal header: logo on the left, sign-in (or account menu) on the right */
.header .hnav {
  margin-left: auto;
}
.header .hnav .label {
  display: inline;
}
.header .hnav a.signin-btn {
  background: #fff;
  color: var(--brand-deep);
  padding: 8px 18px;
  border-radius: 99px;
  font-weight: 700;
}
.header .hnav a.signin-btn:hover {
  background: #fff;
  opacity: 0.92;
}

/* ads: title with the "Post your ad" button, and the poster's own "My ads" list */
.ads-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ads-bar .ads-head {
  margin: 0;
}
.my-ad {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.my-ad img {
  width: 90px;
  height: 112px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: 10px;
  flex: none;
}

/* footer: the support email is the only contact shown; tapping it opens a new mail */
footer.site .mail-link {
  display: inline-block;
  margin-top: 4px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--accent) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ad dots sit just below the box, so they never cover a poster's own text */
.hs.ad-rotator {
  overflow: visible;
  margin-bottom: 30px;
}
.ad-rotator .hs-slide {
  border-radius: inherit;
}
.ad-rotator .hs-dots {
  bottom: -24px;
  background: none;
  padding: 0;
}
.ad-rotator .hs-dots button {
  background: var(--line);
}
.ad-rotator .hs-dots button.on {
  background: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.ad-rotator .hs-dots button i {
  background: var(--accent);
}

/* Telugu tagline in the middle of the header (one line on desktop, two on phones) */
.hdr-tagline {
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: center;
  font-family: 'Noto Sans Telugu', 'Nirmala UI', 'Gautami', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  color: #fff;
  letter-spacing: 0.01em;
}
.hdr-tagline span:last-child {
  color: #ffb3cc;
}
.header .hnav {
  margin-left: 0;
}
@media (max-width: 760px) {
  .hdr-tagline {
    font-size: 0.74rem;
    line-height: 1.4;
  }
  .hdr-tagline span {
    display: block;
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .hdr-tagline {
    font-size: 0.68rem;
  }
}

/* "Buy or sell used products" card: two actions instead of one link */
.cta-card .cta-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
.cta-card .cta-acts .btn {
  text-decoration: none !important;
}
.cta-card .cta-acts .btn:not(.accent) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
@media (max-width: 600px) {
  .cta-card .cta-acts {
    gap: 6px;
    margin-top: 6px;
  }
  .cta-card .cta-acts .btn {
    padding: 5px 9px;
    font-size: 0.74rem;
  }
}

/* ---------------- brand header: white bar with the full logo, tagline band below ---------------- */
.header.brand-header {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 2px 14px rgba(27, 42, 107, 0.12);
}
.brand-header .bar {
  height: 84px;
  gap: 12px;
}
.brand-header .logo-link {
  flex: none;
}
.brand-header .logo-stacked {
  display: block;
  height: 64px;
  width: auto;
}
.brand-header .hnav {
  margin-left: auto;
}
.brand-header .hnav a,
.brand-header .hnav button {
  color: var(--brand-deep);
}
.brand-header .hnav a:hover,
.brand-header .hnav button:hover {
  background: #eef0fa;
}
.brand-header .hnav a.signin-btn {
  background: linear-gradient(135deg, #e6336f, #ff5c8a);
  color: #fff;
  padding: 10px 24px;
  border-radius: 99px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(230, 51, 111, 0.35);
}
.brand-header .hnav a.signin-btn:hover {
  background: linear-gradient(135deg, #d42a63, #f24f7e);
  opacity: 1;
}
.brand-header .dropdown > button {
  border: 1.5px solid #dfe3f3;
  border-radius: 99px;
  padding: 7px 14px;
}
.tag-band {
  background: linear-gradient(90deg, #fdebf1, #f3eefb 50%, #eef0fa);
  border-top: 1px solid #f1e4ee;
  padding: 7px 16px;
}
.tag-band .hdr-tagline {
  flex: none;
  color: var(--brand-deep);
  font-size: 0.98rem;
}
.tag-band .hdr-tagline span {
  display: inline;
}
.tag-band .hdr-tagline span:last-child {
  color: #e6336f;
}
@media (max-width: 760px) {
  .brand-header .bar {
    height: 66px;
  }
  .brand-header .logo-stacked {
    height: 48px;
  }
  .brand-header .hnav a.signin-btn {
    padding: 8px 18px;
  }
  .tag-band {
    padding: 6px 10px;
  }
  .tag-band .hdr-tagline {
    font-size: 0.8rem;
  }
}
@media (max-width: 380px) {
  .tag-band .hdr-tagline {
    font-size: 0.72rem;
  }
}

/* signed-in account button on the white header: always navy, readable */
.brand-header .hnav .dropdown > button,
.brand-header .hnav .dropdown > button .label {
  color: var(--brand-deep) !important;
  opacity: 1;
  font-weight: 700;
}
/* phones: the tagline on two centred lines, big enough to read */
@media (max-width: 760px) {
  .tag-band .hdr-tagline {
    font-size: 0.86rem;
    line-height: 1.45;
  }
  .tag-band .hdr-tagline span {
    display: block;
  }
}

/* laptops/desktops: the compact one-line logo in a slim bar (phones keep the stacked logo) */
@media (min-width: 761px) {
  .brand-header .bar {
    height: 64px;
  }
  .brand-header .logo-stacked {
    height: 34px;
  }
  .brand-header .hnav a.signin-btn {
    padding: 8px 22px;
  }
  .tag-band {
    padding: 5px 16px;
  }
  .tag-band .hdr-tagline {
    font-size: 0.92rem;
  }
}
