:root {
  --butler-blue-50: #eff6ff;
  --butler-blue-100: #dbeafe;
  --butler-blue-600: #2563eb;
  --butler-blue-700: #1d4ed8;
  --butler-blue-900: #1e3a8a;
  --butler-ink: #0f172a;
  --butler-muted: #64748b;
  --butler-line: #e2e8f0;
  --butler-surface: #ffffff;
  --butler-canvas: #f8fafc;
  --butler-success: #047857;
  --butler-danger: #b91c1c;
  --butler-radius: 1rem;
  --butler-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100vw; }
body.marketplace-body {
  background: var(--butler-canvas); color: var(--butler-ink); font-size: 1rem; line-height: 1.55;
  overflow-x: hidden; width: 100%; max-width: 100vw;
}
button, a, input, select, textarea { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
}
.marketplace-shell { width: 100%; max-width: 106rem; margin-inline: auto; padding-inline: clamp(1rem, 3vw, 3rem); box-sizing: border-box; }
.marketplace-header {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: white; background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  box-shadow: 0 6px 20px rgba(30,64,175,.18);
  backdrop-filter: blur(12px);
}
.marketplace-header__inner { width: 100%; }
.marketplace-header__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; }
.marketplace-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: white; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.marketplace-brand__mark { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; color: white; background: rgba(255,255,255,.22); font-size: 1.15rem; flex-shrink: 0; }
.marketplace-brand__label { display: flex; flex-direction: column; }
.marketplace-brand__title { display: block; font-size: clamp(1.375rem, 4vw, 1.625rem); font-weight: 850; color: #ffffff; letter-spacing: -0.02em; line-height: 1.15; }
.marketplace-brand__tagline { color: #dbeafe; font-size: 0.75rem; font-weight: 700; margin-top: 1px; }

/* Mobile Quick Action Buttons (<1024px) */
.marketplace-header__mobile-actions { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.mobile-action-btn {
  width: 2.35rem; height: 2.35rem; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff; display: grid; place-items: center; font-size: 1.05rem;
  position: relative; transition: all 0.15s ease; cursor: pointer; text-decoration: none; flex-shrink: 0;
}
.mobile-action-btn:hover { background: rgba(255, 255, 255, 0.32); color: #ffffff; }
.mobile-action-btn__badge {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: #ec4899; box-shadow: 0 0 0 2px #2563eb;
}

/* Search Bar (Row 2 on mobile/tablet, centered on desktop) */
.marketplace-search { position: relative; width: 100%; }
.marketplace-search input {
  width: 100%;
  min-height: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  background-color: #ffffff !important;
  color: #0f172a !important;
  padding: 0.65rem 2.85rem 0.65rem 2.85rem;
  font-size: 1rem !important; /* 16px prevents iOS auto-zoom */
  font-weight: 500;
  caret-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.marketplace-search input:focus,
.marketplace-search input:active,
.marketplace-search input:focus-visible {
  background-color: #ffffff !important;
  color: #0f172a !important;
  outline: 3px solid rgba(37, 99, 235, .35);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}
.marketplace-search input::placeholder { color: #64748b !important; opacity: 1; font-size: 1rem !important; font-weight: 500; }
.marketplace-search input::-webkit-input-placeholder { color: #64748b !important; opacity: 1; font-size: 1rem !important; font-weight: 500; }
.marketplace-search input:-ms-input-placeholder { color: #64748b !important; opacity: 1; font-size: 1rem !important; font-weight: 500; }
.marketplace-search input:-webkit-autofill,
.marketplace-search input:-webkit-autofill:hover,
.marketplace-search input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
}
.marketplace-search__icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.05rem; pointer-events: none; }
.marketplace-search__clear { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border-radius: 50%; color: #94a3b8; font-size: 0.95rem; display: grid; place-items: center; border: none; background: transparent; cursor: pointer; }
.marketplace-search__clear.hidden { display: none !important; }
.marketplace-search__clear:hover { color: #0f172a; background: #f1f5f9; }

.marketplace-actions { display: flex; align-items: center; gap: .4rem; }
.marketplace-action { min-height: 2.5rem; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .75rem; border-radius: 999px; color: white; background: rgba(255,255,255,.16); font-size: .9rem; font-weight: 800; text-decoration: none; }
.marketplace-action:hover { background: rgba(255,255,255,.28); color: white; }
.marketplace-hero { color: white; background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 62%, #60a5fa 100%); }
.marketplace-hero__inner { padding-block: 2.75rem 2.25rem; text-align: center; }
.marketplace-eyebrow { color: #dbeafe; font-size: 0.875rem; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.marketplace-title { margin-top: 0.5rem; color: white; font-size: clamp(1.875rem, 3vw, 2rem); line-height: 1.15; font-weight: 850; letter-spacing: -0.025em; }
.marketplace-subtitle { margin: 0.75rem auto 0; max-width: 44rem; color: #dbeafe; font-size: 1.15rem; line-height: 1.6; font-weight: 500; }
.marketplace-section { padding-block: 1.25rem 3rem; }
.marketplace-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.marketplace-section__title-group { display: flex; flex-direction: column; gap: 0.2rem; }
.marketplace-section__title { font-size: clamp(1.375rem, 3vw, 1.625rem); line-height: 1.25; font-weight: 850; letter-spacing: -0.02em; color: var(--butler-ink); margin: 0; }
.marketplace-section__hint { margin-top: .2rem; color: var(--butler-muted); font-size: .9rem; font-weight: 600; }
.marketplace-section__controls { display: flex; align-items: center; gap: 0.75rem; }
.view-all-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1rem;
  border-radius: 9999px; background: #eff6ff; color: #2563eb;
  font-size: 0.875rem; font-weight: 700; text-decoration: none; transition: all 0.15s ease;
}
.view-all-pill:hover { background: #dbeafe; color: #1d4ed8; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem; }
.service-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1.25rem;
  background: var(--butler-surface);
  padding: 1.35rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: 0 20px 32px -8px rgba(29, 78, 216, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
}
.service-card__media { height: 8.5rem; overflow: hidden; border-radius: 0.95rem; background: var(--butler-blue-50); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__icon {
  width: 3.75rem;
  height: 3.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #dbeafe;
  color: var(--butler-blue-700);
  font-size: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 6px rgba(37, 99, 235, 0.06);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.28);
  transform: scale(1.04);
}
.service-card__title {
  margin-top: 1.15rem;
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--butler-ink);
  line-height: 1.3;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}
.service-card:hover .service-card__title { color: var(--butler-blue-700); }
.service-card__description {
  margin-top: 0.5rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 450;
  flex: 1;
}
.service-card__link {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--butler-blue-700);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.service-card__arrow {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--butler-blue-50);
  color: var(--butler-blue-700);
  font-size: 0.85rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.service-card:hover .service-card__arrow {
  background: var(--butler-blue-700);
  color: #ffffff;
  transform: translateX(4px);
}

.service-switcher {
  position: relative;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.service-switcher::-webkit-scrollbar {
  display: none;
}
.service-switcher__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-pill__icon {
  font-size: 0.95rem;
  color: #64748b;
  transition: color 0.18s ease;
}
.service-pill__label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.service-pill__line1,
.service-pill__line2 {
  white-space: nowrap;
}
.service-pill:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-1px);
}
.service-pill:hover .service-pill__icon {
  color: #1d4ed8;
}
.service-pill:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.service-pill.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
  transform: none;
}
.service-pill.is-active .service-pill__icon {
  color: #ffffff;
}
.browse-intro { padding-block: 0.5rem 0.25rem; color: inherit; background: transparent; }
.browse-intro a { color: var(--butler-blue-700); }
.browse-intro .marketplace-hero-card {
  position: relative; overflow: hidden; border-radius: 1.25rem;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 24px -4px rgba(29, 78, 216, 0.22);
  color: #ffffff; display: flex; align-items: center; justify-content: space-between;
  min-height: 5.5rem;
}
.marketplace-hero-card__content { position: relative; z-index: 2; max-width: 36rem; }
.marketplace-hero-card__title {
  font-size: clamp(1.5rem, 3.5vw, 1.75rem) !important;
  font-weight: 850 !important; color: #ffffff !important;
  line-height: 1.2 !important; letter-spacing: -0.02em !important;
  margin: 0 !important;
}
.marketplace-hero-card__desc {
  font-size: 0.975rem !important; font-weight: 500 !important;
  color: #dbeafe !important; line-height: 1.45 !important;
  margin: 0.35rem 0 0 !important;
}
.marketplace-hero-card__art {
  position: absolute; right: 0; bottom: 0; height: 100%; width: 220px;
  pointer-events: none; opacity: 0.85; z-index: 1;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.marketplace-hero-card__wave { width: 100%; height: auto; max-height: 100%; }
.browse-intro .button-secondary { border-color: rgba(255,255,255,.55); color: white; background: rgba(255,255,255,.13); font-size: 0.95rem; }
.browse-intro .button-secondary:hover { background: rgba(255,255,255,.24); }
.browse-intro .button-primary { color: #1d4ed8; background: white; font-size: 0.95rem; }
.browse-intro .button-primary:hover { background: #eff6ff; }
.browse-intro .button-quiet { color: #1e3a8a; background: white; font-size: 0.95rem; }
.browse-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; margin-top: .65rem; }
.button-primary, .button-secondary, .button-quiet { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .85rem; padding: .7rem 1.15rem; font-size: .975rem; font-weight: 800; transition: background .2s, color .2s, border-color .2s; }
.button-primary { color: white; background: var(--butler-blue-700); }
.button-primary:hover { background: var(--butler-blue-900); }
.button-secondary { color: var(--butler-blue-700); background: white; border: 1px solid #bfdbfe; }
.button-secondary:hover { background: var(--butler-blue-50); }
.button-quiet { color: #475569; background: #f1f5f9; }
.marketplace-alert { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; border-radius: 1rem; padding: 1rem 1.25rem; font-size: 1rem; }
.marketplace-alert--warning { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.marketplace-alert--error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.marketplace-sort { display: none; }
@media (min-width: 768px) {
  .marketplace-sort { flex: none; display: inline-flex; align-items: center; gap: .5rem; color: var(--butler-muted); font-size: .875rem; font-weight: 750; }
}
.marketplace-sort select { height: 2.35rem; border: 1px solid var(--butler-line); border-radius: .7rem; padding: 0 2rem 0 .7rem; color: #334155; background: white; font-size: .875rem; font-weight: 700; }
.filter-rail { position: relative; overflow: hidden; }
.filter-rail::after { content: ''; position: absolute; z-index: 2; top: 0; right: 0; bottom: .25rem; width: 3rem; pointer-events: none; background: linear-gradient(90deg, transparent, var(--butler-canvas)); }
.filter-bar { display: flex; gap: .4rem; overflow-x: auto; padding: 0 2.5rem .35rem 0; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip { white-space: nowrap; border-radius: 999px; padding: .45rem .8rem; background: #f1f5f9; color: #475569; font-size: .875rem; font-weight: 750; }
.filter-chip.is-active { background: var(--butler-blue-700); color: white; }
.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.listing-grid.is-searching > * { opacity: .45; transition: opacity .15s ease; }
.listing-card {
  min-width: 0; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid #e2e8f0; border-radius: 1.15rem; background: #ffffff;
  box-shadow: 0 2px 10px rgba(15,23,42,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.listing-card:hover { transform: translateY(-3px); border-color: #93c5fd; box-shadow: 0 12px 28px rgba(15,23,42,.09); }
.listing-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f5f9; }
.listing-card__media::before { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: marketplace-shimmer 1.3s infinite; }
.listing-card__media img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.listing-card__fallback { position: relative; width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; color: #94a3b8; background: #f1f5f9; }
.listing-card__fallback i { color: #94a3b8; font-size: 1.6rem; }

/* Floating Category Badge & Favorite Button */
.listing-card__badge-pill {
  position: absolute; top: 0.65rem; left: 0.65rem; z-index: 5;
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.65rem;
  max-width: calc(100% - 3.25rem); min-width: 0; box-sizing: border-box;
  border-radius: 9999px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  font-size: 0.75rem; font-weight: 700; color: #1e293b; line-height: 1; pointer-events: none;
}
.listing-card__badge-pill span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.listing-card__fav-btn {
  position: absolute; top: 0.65rem; right: 0.65rem; z-index: 5;
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  border: none; color: #64748b; display: grid; place-items: center;
  font-size: 0.95rem; cursor: pointer; transition: color 0.15s ease, transform 0.15s ease;
}
.listing-card__fav-btn:hover { color: #ef4444; transform: scale(1.08); }

.listing-card__body { flex: 1; display: flex; flex-direction: column; padding: 0.85rem 0.95rem 1rem; }
.listing-card__title {
  display: -webkit-box; overflow: hidden; min-height: 2.75rem;
  color: var(--butler-ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.3;
  letter-spacing: -.01em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 0;
}
.listing-card__provider {
  display: flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem;
  color: #475569; font-size: 0.9375rem; font-weight: 600; line-height: 1.4;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.listing-card__provider-icon { color: #94a3b8; font-size: 0.85rem; flex-shrink: 0; }
.listing-card__location-meta {
  display: flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem;
  color: #64748b; font-size: 0.875rem; font-weight: 500; line-height: 1.4;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.listing-card__loc, .listing-card__time { display: inline-flex; align-items: center; gap: 0.25rem; }
.listing-card__loc i, .listing-card__time i { color: #94a3b8; font-size: 0.75rem; }
.listing-card__dot { color: #cbd5e1; font-weight: 700; }

.listing-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 0.65rem;
  min-width: 0; margin-top: auto; padding-top: 0.75rem;
}
.listing-card__price-wrapper { min-width: 0; overflow: hidden; }
.listing-card__price { min-width: 0; color: var(--butler-ink); font-size: 1.25rem; font-weight: 800; line-height: 1.2; white-space: nowrap; margin: 0; }
.listing-card__price-unit { margin-left: .15rem; color: var(--butler-muted); font-size: .8125rem; font-weight: 600; }
.listing-card__action {
  flex: none; min-width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; border-radius: .75rem; padding: 0 .95rem; color: white; background: #2563eb;
  font-size: .95rem; font-weight: 700; box-shadow: 0 4px 12px rgba(37,99,235,.22);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease; border: none; cursor: pointer;
}
.listing-card__action:hover { transform: translateY(-1px); background: #1d4ed8; box-shadow: 0 6px 16px rgba(29,78,216,.28); }
.listing-card__action:active { transform: translateY(0); }
.listing-card__action:focus-visible { outline: 3px solid rgba(37,99,235,.3); outline-offset: 2px; }
.listing-card__purchase { flex: none; }
.listing-card__quantity { height: 2.5rem; display: inline-flex; align-items: center; gap: .25rem; border: 1px solid #bfdbfe; border-radius: .75rem; padding: .15rem; color: var(--butler-blue-900); background: var(--butler-blue-50); }
.listing-card__quantity.hidden { display: none; }
.listing-card__quantity-button { width: 1.85rem; height: 1.85rem; display: inline-grid; place-items: center; border-radius: .5rem; color: var(--butler-blue-700); background: white; font-size: .75rem; border: none; cursor: pointer; transition: color .18s ease, background .18s ease, transform .18s ease; }
.listing-card__quantity-button:hover { color: white; background: var(--butler-blue-700); }
.listing-card__quantity-button:active { transform: scale(.95); }
.listing-card__quantity-button:focus-visible { outline: 2px solid rgba(37,99,235,.35); outline-offset: 1px; }
.listing-card__quantity-value { min-width: 1.35rem; color: var(--butler-blue-900); font-size: .875rem; font-weight: 850; text-align: center; }

/* Bottom Navigation Bar for Mobile and Tablet */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(14px);
  border-top: 1px solid #e2e8f0;
  padding-top: 0.45rem;
  padding-bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}
.bottom-nav__inner {
  display: flex; align-items: center; justify-content: space-around;
  width: 100%; max-width: 500px; margin: 0 auto; padding: 0 0.25rem;
}
.bottom-nav__item {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem; padding: 0.2rem 0.1rem; color: #64748b;
  text-decoration: none; border: none; background: transparent; cursor: pointer;
  transition: color 0.15s ease;
}
.bottom-nav__icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; height: 1.85rem; min-width: 1.85rem;
  transition: all 0.15s ease;
}
.bottom-nav__label { font-size: 0.75rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.bottom-nav__item.is-active { color: #1d4ed8; }
.bottom-nav__item.is-active .bottom-nav__icon-wrap {
  background: #eff6ff; color: #1d4ed8; padding: 0.25rem 0.85rem; border-radius: 9999px;
}
.bottom-nav__item.is-active .bottom-nav__label { color: #1d4ed8; font-weight: 700; }
.bottom-nav__badge {
  position: absolute; top: -4px; right: -8px; height: 18px; min-width: 18px;
  border-radius: 9999px; background: #dc2626; color: #ffffff;
  font-size: 0.7rem; font-weight: 800; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 4px;
  box-shadow: 0 0 0 2px #ffffff;
}

@media (max-width: 1023px) {
  [data-shop-root],
  #order-history-app,
  .order-tracking-shell,
  .order-success-shell {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
}
.marketplace-sentinel { min-height: 2px; padding-top: .25rem; }
.listing-end-state { padding-top: .75rem; color: var(--butler-muted); font-size: .75rem; font-weight: 650; text-align: center; }
.listing-loading { display: none; }
.listing-loading.is-visible { display: block; }
.listing-loading-more { padding: .8rem 0 .25rem; color: var(--butler-muted); font-size: .78rem; font-weight: 650; text-align: center; }
.listing-skeleton { aspect-ratio: 4 / 5.2; border-radius: .9rem; }
.marketplace-inline-error { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .75rem; border: 1px solid #fecaca; border-radius: .9rem; padding: 1rem; color: #991b1b; background: #fef2f2; font-size: .82rem; }
.marketplace-inline-error div { display: grid; }
.marketplace-inline-error span { color: #b91c1c; font-size: .75rem; }

@media (min-width: 1440px) {
  .listing-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.empty-state { grid-column: 1 / -1; padding: 2rem 1rem; text-align: center; }
.empty-state__icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; margin: 0 auto .65rem; border-radius: 50%; color: var(--butler-blue-700); background: var(--butler-blue-50); font-size: 1rem; }
.empty-state__title { font-size: 1.05rem; font-weight: 850; color: var(--butler-ink); }
.empty-state__text { margin: .25rem auto 0; max-width: 28rem; color: var(--butler-muted); font-size: .85rem; line-height: 1.45; }
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.branch-card { border: 1px solid var(--butler-line); border-radius: .85rem; background: #f8fafc; padding: 1rem; }
.skeleton { position: relative; overflow: hidden; background: #e2e8f0; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: marketplace-shimmer 1.3s infinite; }
@keyframes marketplace-shimmer { to { transform: translateX(100%); } }
.marketplace-panel { border: 1px solid var(--butler-line); border-radius: var(--butler-radius); background: white; box-shadow: 0 4px 18px rgba(15,23,42,.045); }
.marketplace-footer { margin-top: auto; border-top: 1px solid var(--butler-line); background: white; padding-block: 1.75rem; color: var(--butler-muted); font-size: .9rem; font-weight: 500; text-align: center; }
.marketplace-modal { padding: 0; border: 0; border-radius: 1rem; width: min(44rem, calc(100% - 1.5rem)); max-height: calc(100vh - 2rem); box-shadow: 0 24px 64px rgba(15,23,42,.25); }
.marketplace-modal::backdrop { background: rgba(15,23,42,.55); }

/* Booking details modal: explicit layout avoids relying on missing generated width utilities. */
.listing-modal-backdrop {
  position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(15, 23, 42, .58); backdrop-filter: blur(4px);
}
.listing-modal-backdrop.hidden { display: none !important; }
.listing-modal-dialog {
  display: flex; flex-direction: column; width: min(100%, 760px); max-height: min(90vh, 900px); max-height: min(90dvh, 900px); min-height: 0;
  overflow: hidden; border: 1px solid #e2e8f0; border-radius: 22px; background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}
.listing-modal-header {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 28px; border-bottom: 1px solid #f1f5f9; background: #fff;
}
.listing-modal-heading { display: flex; min-width: 0; align-items: center; gap: 14px; }
.listing-modal-heading-icon {
  display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 13px;
  background: #eff6ff; color: #2563eb; font-size: 18px;
}
.listing-modal-heading h3 { margin: 0; color: #0f172a; font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.listing-modal-heading p { margin: 4px 0 0; color: #64748b; font-size: 14px; line-height: 1.45; }
.listing-modal-close {
  display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 12px;
  background: transparent; color: #64748b; font-size: 18px; cursor: pointer; transition: background .15s, color .15s;
}
.listing-modal-close:hover { background: #f1f5f9; color: #0f172a; }
.listing-modal-close:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 2px; }
.listing-modal-summary-wrap { flex: 0 0 auto; padding: 18px 28px 0; }
.listing-modal-summary {
  display: flex; min-width: 0; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #e2e8f0;
  border-radius: 15px; background: #f8fafc;
}
.listing-modal-thumb {
  position: relative; display: grid; flex: 0 0 58px; width: 58px; height: 58px; overflow: hidden; place-items: center;
  border-radius: 12px; background: #eaf2ff; color: #2563eb; font-size: 22px;
}
.listing-modal-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing-modal-thumb img.hidden { display: none; }
.listing-modal-summary-copy { flex: 1; min-width: 0; }
.listing-modal-badge { display: inline-block; margin-bottom: 3px; color: #475569; font-size: 12px; font-weight: 600; }
.listing-modal-badge.is-rental { color: #1d4ed8; }
.listing-modal-summary-copy h4 { overflow: hidden; margin: 0; color: #0f172a; font-size: 18px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.listing-modal-summary-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; color: #64748b; font-size: 13px; line-height: 1.4; }
.listing-modal-summary-meta span:first-child { overflow: hidden; max-width: min(26rem, 100%); text-overflow: ellipsis; white-space: nowrap; }
.listing-modal-duration-tag { white-space: nowrap; }
.listing-modal-price { flex: 0 0 auto; color: #1d4ed8; font-size: 19px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.listing-modal-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
.listing-modal-fields {
  display: flex; flex: 1 1 auto; flex-direction: column; gap: 18px; min-height: 0; overflow-x: hidden; overflow-y: auto;
  padding: 22px 28px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
}
.listing-rental-fields:not(.hidden) { display: grid; gap: 16px; }
.listing-rental-section,
.listing-rental-pricing {
  display: grid; gap: 15px; min-width: 0; padding: 18px 20px; border: 1px solid #e2e8f0; border-radius: 15px;
  background: #fff;
}
.listing-rental-section-title {
  display: flex; align-items: center; gap: 9px; margin: 0; color: #1e293b; font-size: 16px; font-weight: 650; line-height: 1.4;
}
.listing-rental-section-title > i { color: #2563eb; font-size: 15px; }
.listing-rental-section-title > span { margin-left: auto; color: #64748b; font-size: 12px; font-weight: 500; }
.listing-rental-schedule-grid,
.listing-rental-branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.listing-rental-field { display: grid; min-width: 0; gap: 7px; }
.listing-rental-field > label,
.listing-rental-label-row > label:first-child { color: #334155; font-size: 14px; font-weight: 600; line-height: 1.4; }
.listing-rental-required { color: #dc2626; }
.listing-rental-input {
  display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; font: inherit; font-size: 16px; line-height: 1.4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025); transition: border-color .15s, box-shadow .15s;
}
.listing-rental-input:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 3px #dbeafe; }
.listing-rental-input::placeholder { color: #8491a3; opacity: 1; }
.listing-rental-instructions textarea.listing-rental-input { min-height: 88px; resize: vertical; }
.listing-rental-help { margin: -5px 0 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.listing-rental-label-row { display: flex; min-height: 24px; align-items: center; justify-content: space-between; gap: 10px; }
.listing-rental-checkbox { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; color: #475569; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.listing-rental-checkbox input { width: 18px; height: 18px; margin: 0; accent-color: #2563eb; }
.listing-rental-pricing { gap: 12px; border-color: #dbeafe; background: #f8fbff; }
.listing-rental-pricing-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: #475569; font-size: 14px; line-height: 1.5; }
.listing-rental-pricing-row > span { display: grid; min-width: 0; gap: 2px; font-weight: 500; }
.listing-rental-pricing-row small { color: #64748b; font-size: 12px; font-weight: 400; line-height: 1.45; }
.listing-rental-pricing-row > strong { flex: 0 0 auto; color: #334155; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.listing-rental-charge { padding-top: 12px; border-top: 1px solid #dbeafe; }
.listing-rental-charge > strong { color: #1d4ed8; font-size: 18px; }
.listing-rental-deposit { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 11px; margin-top: 2px; padding: 14px; border-top: 1px solid #dbeafe; border-radius: 11px; background: #f0fdf4; }
.listing-rental-deposit-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #dcfce7; color: #047857; font-size: 14px; }
.listing-rental-deposit-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; color: #166534; font-size: 13px; line-height: 1.45; }
.listing-rental-deposit-heading > strong:last-child { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.listing-rental-deposit p { margin: 4px 0 0; color: #4b6353; font-size: 12px; line-height: 1.5; }
.listing-service-fields:not(.hidden) { display: flex; flex-direction: column; gap: 22px; }
.listing-service-section { display: grid; gap: 14px; }
.listing-service-section-title { display: flex; align-items: center; gap: 9px; margin: 0; color: #1e293b; font-size: 18px; font-weight: 650; line-height: 1.4; }
.listing-service-section-title i { color: #2563eb; font-size: 16px; }
.listing-service-schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.listing-service-schedule-grid > div,
.listing-service-section > div,
.listing-service-note { display: grid; min-width: 0; gap: 7px; }
.listing-service-section > div.hidden { display: none !important; }
.listing-service-section label,
.listing-service-note label { color: #334155; font-size: 14px; font-weight: 600; line-height: 1.4; }
.listing-service-section label .text-red-500 { color: #dc2626; }
.listing-modal-input {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #cbd5e1;
  border-radius: 11px; background: #fff; color: #0f172a; font: inherit; font-size: 16px; line-height: 1.4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025); transition: border-color .15s, box-shadow .15s;
}
.listing-modal-input:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 3px #dbeafe; }
.listing-modal-input::placeholder { color: #8491a3; opacity: 1; }
.listing-service-section textarea.listing-modal-input { min-height: 86px; resize: vertical; }
.listing-service-duration {
  display: flex; align-items: center; gap: 9px; padding-top: 13px; border-top: 1px solid #f1f5f9;
  color: #64748b; font-size: 14px; line-height: 1.45;
}
.listing-service-duration > i { color: #2563eb; }
.listing-service-duration strong { color: #334155; font-weight: 600; }
.listing-service-note label span { color: #64748b; font-weight: 400; }
.listing-modal-footer {
  display: grid; flex: 0 0 auto; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px;
  padding: 16px 28px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e2e8f0;
  background: #fff; box-shadow: 0 -6px 20px rgba(15, 23, 42, .035);
}
.listing-modal-total { display: grid; gap: 2px; min-width: 0; }
.listing-modal-total > span { color: #64748b; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.listing-modal-total > strong { color: #1d4ed8; font-size: 22px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.listing-modal-total > small { color: #64748b; font-size: 12px; line-height: 1.4; }
.listing-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.listing-modal-cancel,
.listing-modal-submit { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.listing-modal-cancel { border: 1px solid #cbd5e1; background: #fff; color: #475569; }
.listing-modal-cancel:hover { border-color: #94a3b8; background: #f8fafc; color: #0f172a; }
.listing-modal-submit { border: 1px solid #1d4ed8; background: #2563eb; color: #fff; box-shadow: 0 3px 8px rgba(37, 99, 235, .17); }
.listing-modal-submit:hover:not(:disabled) { background: #1d4ed8; }
.listing-modal-submit:disabled { opacity: .7; cursor: wait; }
.listing-modal-submit:focus-visible,
.listing-modal-cancel:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 2px; }
.listing-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .listing-modal-backdrop { align-items: flex-end; padding: 8px 8px max(8px, env(safe-area-inset-bottom, 0px)); }
  .listing-modal-dialog { width: 100%; max-height: calc(100vh - 16px - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 16px 16px; }
  .listing-modal-header { gap: 10px; padding: 17px 18px; }
  .listing-modal-heading { gap: 11px; }
  .listing-modal-heading-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
  .listing-modal-heading h3 { font-size: 21px; }
  .listing-modal-heading p { max-width: 250px; font-size: 13px; }
  .listing-modal-close { flex-basis: 40px; width: 40px; height: 40px; }
  .listing-modal-summary-wrap { padding: 14px 18px 0; }
  .listing-modal-summary { gap: 11px; padding: 12px; }
  .listing-modal-thumb { flex-basis: 48px; width: 48px; height: 48px; border-radius: 11px; font-size: 19px; }
  .listing-modal-summary-copy h4 { font-size: 16px; }
  .listing-modal-summary-meta { gap: 3px 8px; font-size: 12px; }
  .listing-modal-price { font-size: 17px; }
  .listing-modal-fields { gap: 18px; padding: 18px; }
  .listing-rental-fields:not(.hidden) { gap: 13px; }
  .listing-rental-section, .listing-rental-pricing { gap: 13px; padding: 15px; border-radius: 13px; }
  .listing-rental-section-title { font-size: 15px; }
  .listing-rental-schedule-grid, .listing-rental-branch-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .listing-rental-label-row { flex-wrap: wrap; }
  .listing-rental-checkbox { margin-left: auto; }
  .listing-rental-pricing-row { gap: 10px; font-size: 13px; }
  .listing-rental-deposit { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 12px; }
  .listing-rental-deposit-icon { width: 28px; height: 28px; }
  .listing-service-fields:not(.hidden) { gap: 20px; }
  .listing-service-section-title { font-size: 17px; }
  .listing-service-schedule-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .listing-modal-footer { grid-template-columns: 1fr; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .listing-modal-total { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; }
  .listing-modal-total > strong { justify-self: end; font-size: 21px; }
  .listing-modal-total > small { grid-column: 1 / -1; }
  .listing-modal-actions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); width: 100%; }
  .listing-modal-cancel, .listing-modal-submit { width: 100%; min-height: 50px; padding-inline: 10px; font-size: 15px; }
}

/* Responsive Layout Rules */
@media (min-width: 1024px) {
  .marketplace-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.25rem;
  }
  .marketplace-header__top {
    flex: 0 0 auto;
    width: auto;
  }
  .marketplace-search {
    flex: 1 1 auto;
    max-width: 34rem;
    margin: 0 auto;
  }
  .marketplace-actions {
    flex: 0 0 auto;
  }
  .marketplace-header__mobile-actions {
    display: none !important;
  }
  .bottom-nav {
    display: none !important;
  }
  .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 1023px) {
  .marketplace-header {
    padding-block: 0.75rem 0.85rem;
  }
  .marketplace-header__inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .marketplace-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .marketplace-actions {
    display: none !important;
  }
  .marketplace-header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }
  .marketplace-search {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .marketplace-search input {
    padding-left: 2.35rem !important;
    padding-right: 1.5rem !important;
    font-size: 0.8125rem !important;
  }
  .marketplace-search input::placeholder {
    font-size: 0.8125rem !important;
  }
  body.marketplace-body [data-shop-root] {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
  #cart-fab {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (max-width: 767px) {
  .marketplace-shell {
    padding-inline: 0.85rem;
  }
  .service-switcher__inner {
    padding: 0.5rem 0.85rem;
    gap: 0.45rem;
  }
  .service-pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    min-height: 2.35rem;
    border-radius: 9999px;
  }
  .service-pill__icon {
    font-size: 0.9rem;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .listing-card {
    border-radius: 1rem;
  }
  .listing-card__badge-pill {
    top: 0.45rem;
    left: 0.45rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.6875rem; /* 11px cleanly fits long category names */
    letter-spacing: -0.015em;
    gap: 0.25rem;
    max-width: calc(100% - 2.85rem);
    min-width: 0;
    box-sizing: border-box;
  }
  .listing-card__badge-pill i {
    font-size: 0.7rem;
  }
  .listing-card__fav-btn {
    top: 0.45rem;
    right: 0.45rem;
    width: 1.95rem;
    height: 1.95rem;
    font-size: 0.85rem;
    position: absolute;
  }
  .listing-card__fav-btn::before {
    content: '';
    position: absolute;
    inset: -6px; /* expands touch target to 44px without physical layout overlap */
  }
  .listing-card__body {
    padding: 0.65rem 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .listing-card__title {
    font-size: 0.95rem; /* 15.2px, strictly in 15–16px range */
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    min-height: 2.47rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
  }
  .listing-card__provider {
    font-size: 0.85rem; /* 13.6px, strictly in 13–14px range */
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .listing-card__provider a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .listing-card__provider-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .listing-card__location-meta {
    font-size: 0.8125rem; /* 13px, strictly 13px */
    font-weight: 500;
    line-height: 1.35;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .listing-card__loc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
  }
  .listing-card__time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
  }
  .listing-card__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
    flex-wrap: wrap;
    min-width: 0;
    margin-top: auto;
    padding-top: 0.45rem;
  }
  .listing-card__price-wrapper {
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible;
  }
  .listing-card__price {
    font-size: 1.0625rem; /* 17px bold, strictly in 17–19px bold range */
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    color: var(--butler-ink);
    margin: 0;
  }
  .listing-card__price-unit {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--butler-muted);
  }
  .listing-card__purchase {
    flex: 0 0 auto;
  }
  .listing-card__action {
    width: auto;
    min-width: 2.35rem;
    min-height: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.8125rem; /* 13px */
    font-weight: 700;
    border-radius: 9999px; /* Pill button as in approved mock */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
    position: relative;
  }
  .listing-card__action::before {
    content: '';
    position: absolute;
    inset: -6px; /* expands touch target to 44px */
  }
  .listing-card__action i {
    font-size: 0.8rem;
  }
  .listing-card__quantity {
    height: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.25rem;
    border-radius: 9999px;
  }
  .listing-card__quantity-button {
    width: 1.65rem;
    height: 1.65rem;
    min-width: 1.65rem;
    min-height: 1.65rem;
    font-size: 0.75rem;
    border-radius: 9999px;
  }
  .listing-card__quantity-value {
    font-size: 0.875rem;
    font-weight: 850;
    min-width: 1.25rem;
  }
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 359px) {
  .listing-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
