/* Ollo's public storefront. The accent and section order are supplied by the content editor. */
:root {
  --ink: #19212b;
  --muted: #586370;
  --line: #e2e7eb;
  --soft: #eff2f9;
  --orange: #0675b7;
  --orange-dark: #05679f;
  --storefront-page: #fff;
  --storefront-accent-soft: color-mix(in srgb, var(--orange) 9%, #fff);
  --storefront-accent-ink: color-mix(in srgb, var(--orange) 68%, #161c36);
  --storefront-width: 1180px;
}

body {
  background: var(--storefront-page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
h1, h2, h3, .brand-name, .modal h2, .section-heading h2, .seller-banner h2 { font-family: inherit; }
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--storefront-accent-ink);
  outline-offset: 3px;
}
main, footer { max-width: calc(var(--storefront-width) + 48px); padding-inline: 24px; }
.topline, .header {
  padding-inline: max(24px, calc((100% - var(--storefront-width)) / 2));
}
.topline {
  min-height: 30px;
  background: #edf0f8;
  color: var(--muted);
  font-size: 11px;
}
.topline>span, .toplinks a, .toplinks button { color: var(--muted); }
.toplinks a, .toplinks button { font-size: 11px; }
.toplinks :is(a, button):hover { color: var(--storefront-accent-ink); }
.header {
  min-height: 70px;
  height: auto;
  gap: 15px;
  background: #fff;
  border-color: var(--line);
}
.header .brand { gap: 10px; flex-shrink: 0; }
.brand-name { color: var(--ink); font-size: 25px; font-weight: 800; letter-spacing: -.055em; }
.brand-name>span { color: var(--muted); font-weight: 600; }
.brand-lockup { display: block; width: 132px; height: auto; }
.footer-brand .brand-lockup { width: 108px; }
.brand :is(.brand-lockup, .brand-mark, .brand-name)[hidden] { display: none; }
.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--orange);
  color: var(--cms-action-text, #fff);
  font-weight: 800;
  box-shadow: none;
}
.header .search {
  flex: 1 1 240px;
  min-width: 120px;
  height: 46px;
  margin: 0;
  border: 1px solid #dfe4f2;
  border-radius: 12px;
  background: #f5f7fc;
}
.header .search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--storefront-accent-soft);
}
.header .search input {
  min-width: 0;
  font-size: 14px;
  color: var(--ink);
}
.header .search input::placeholder { color: #606b83; opacity: 1; }
.header .search input:focus-visible { outline: none; }
.header .search button { min-height: 36px; padding-inline: 16px; border-radius: 8px; font-size: 13px; }
.header .search-icon { color: #637093; }
.header .header-post { min-height: 44px; font-size: 13px; }
.header .profile-button { width: 42px; height: 42px; color: #465471; background: #f8faff; border-color: #e2e7f3; }
.header .profile-button:hover { background: var(--storefront-accent-soft); color: var(--storefront-accent-ink); }
.header .favorites-link { color: #465471; font-size: 13px; min-height: 44px; }
.header .favorites-link .count { background: var(--storefront-accent-soft); color: var(--storefront-accent-ink); }

.hero {
  isolation: isolate;
  display: flex;
  min-height: 232px;
  margin-top: 22px;
  padding: 24px 34px;
  border: 1px solid #242c53;
  border-radius: 23px;
  background: radial-gradient(ellipse at 93% 29%, #3a4581 0%, #202950 38%, #17213d 80%);
  color: #fff;
  overflow: hidden;
}
.hero-copy { flex: 1 1 auto; min-width: 0; }
.hero .eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 11px;
  border: 1px solid #69729a;
  border-radius: 50px;
  padding: 5px 10px;
  background: #ffffff0e;
  color: #f0efff;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .045em;
  font-weight: 650;
  text-transform: none;
}
.hero .eyebrow-dot { background: #c2b8ff; box-shadow: none; }
.hero h1 {
  margin: 0;
  max-width: 19ch;
  color: #fff;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.hero h1 em { color: #d7ccff; margin: 0; font-weight: inherit; }
.hero-copy>p { color: #e0e5f6; max-width: 53ch; margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.hero-actions :is(.market-browse, .outline-button) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #7b86ac;
  border-radius: 9px;
  background: #ffffff0d;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  white-space: normal;
  text-align: center;
}
.hero-actions .market-browse {
  background: #fff;
  border-color: #fff;
  color: #212d51;
}
.hero-actions .market-browse:hover { background: #e9eaff; }
.hero-actions #wantStart {
  border-color: transparent;
  background: none;
  color: #ebe6ff;
}
.hero-actions .outline-button:hover, .hero-actions #wantStart:hover { background: #ffffff24; color: white; }
.hero-actions [hidden] { display: none; }
.hero-actions :is(a, button):focus-visible { outline-color: #ddd4ff; }
.hero-actions .ui-icon { width: 15px; height: 15px; }
.hero-note, .hero-note strong { color: #dee4fa; font-size: 11px; }
.hero-note { padding: 4px; white-space: normal; }
.hero-note[data-empty="true"] { display: none; }
.hero-art { display: block; flex: 0 0 37%; width: 37%; height: auto; min-width: 250px; max-width: 365px; }
.market-hero-illustration { display: block; width: 100%; height: auto; }
.hero-art.cms-has-image .market-hero-illustration { display: none; }
.hero .hero-art.cms-has-image { border-radius: 16px; background: #ffffff16; }
.hero #cmsHeroImage { max-height: 204px; width: 100%; object-fit: cover; border-radius: inherit; }

.market-home { padding-top: 22px; }
.market-discovery { display: block; margin: 0 0 22px; }
.market-discovery-head, .market-home .listings-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px 14px;
  margin-bottom: 10px;
}
.market-discovery-head h2 {
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.025em;
  margin: 0;
}
#marketCatalogue {
  min-height: 37px;
  margin: 0;
  color: var(--storefront-accent-ink);
  border-color: #dde2f0;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.25;
}
.market-categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
  padding: 0;
  overflow: visible;
}
.market-categories button {
  --tile-wash: #ececfa;
  --tile-ink: #493e88;
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  min-height: 93px;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--tile-ink) 13%, var(--tile-wash));
  border-radius: 14px;
  background: var(--tile-wash);
  color: var(--ink);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .15s, box-shadow .15s;
}
.market-categories button[data-market-tile="transport"] { --tile-wash: #edeafa; --tile-ink: #4f419e; }
.market-categories button[data-market-cat="transport/spare-parts"] { --tile-wash: #fff0dd; --tile-ink: #8b5327; }
.market-categories button[data-market-tile="real-estate"] { --tile-wash: #e4f2ef; --tile-ink: #28695d; }
.market-categories button[data-market-tile="phone"] { --tile-wash: #e8effe; --tile-ink: #3457a5; }
.market-categories button[data-market-cat="home-stuff"] { --tile-wash: #faebf2; --tile-ink: #82436b; }
.market-categories button[data-market-tile="work"] { --tile-wash: #edf1e4; --tile-ink: #4c663b; }
.market-categories button:hover, .market-categories button[aria-pressed="true"] {
  border-color: var(--tile-ink);
  background: var(--tile-wash);
  color: var(--ink);
}
.market-categories button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--tile-ink); }
.market-categories button::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--tile-ink);
  border-right: 1.5px solid var(--tile-ink);
  transform: rotate(45deg);
}
.market-category-art {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: #ffffffc4;
  color: var(--tile-ink);
}
.market-category-art .ui-icon { width: 23px; height: 23px; color: inherit; }
.market-home .listings-heading h2 {
  color: var(--ink);
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.13;
  letter-spacing: -.036em;
  overflow-wrap: anywhere;
}
.market-part-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.market-part-actions :is(#marketParts,#marketPhotoPart) {
  min-height: 39px;
  padding: 7px 10px;
  border: 1px solid #dcdff1;
  border-radius: 9px;
  background: var(--storefront-accent-soft);
  color: var(--storefront-accent-ink);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.market-part-actions :is(#marketParts,#marketPhotoPart)[hidden] { display: none; }
.market-part-actions svg { width: 15px; height: 15px; flex: 0 0 auto; }
.market-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.market-home .filter-row, .market-toolbar { margin: 0; gap: 6px; }
.market-home .filter-row button,
.market-home .sort-button,
:is(button#marketMore, #marketMore > summary) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 37px;
  padding: 6px 9px;
  border: 1px solid #e1e6f2;
  border-radius: 8px;
  background: #f9faff;
  color: #424e6a;
  font-size: 12px;
}
.market-home .filter-row .ui-icon { width: 15px; height: 15px; flex: 0 0 auto; }
.market-home .filter-row [aria-pressed="true"] {
  border-color: var(--orange);
  color: var(--storefront-accent-ink);
  background: var(--storefront-accent-soft);
}
#marketViews { background: #eef1f9; border-radius: 9px; padding: 3px; }
#marketViews button { color: #56637f; min-height: 31px; padding: 5px 9px; }
#marketViews [aria-pressed="true"] { color: var(--storefront-accent-ink); }
.market-toolbar #ocListingTools { border-color: var(--line); box-shadow: 0 9px 22px #15244621; }
.market-toolbar:has(#openMatches .matches-count) :is(button#marketMore, #marketMore > summary)::before { background: var(--orange); }
.ui-filter-token { background: var(--storefront-accent-soft); color: var(--storefront-accent-ink); }
#marketPartReset { margin: 7px 0 0; color: var(--storefront-accent-ink); }

.market-home .listing-grid { gap: 14px; margin-top: 13px; }
.market-home .listing-grid:empty { display: none; }
.market-home .listing-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 3px 8px #14234a08;
  overflow: hidden;
}
.market-home .listing-card:hover { border-color: #cbd3e9; box-shadow: 0 6px 17px #14234a12; }
.market-home .listing-image { background: #eceffa; border-radius: 14px 14px 0 0; }
.market-home .listing-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 8px;
  color: #58668d;
  background: linear-gradient(145deg,#f2f4fc,#e8edfa);
  text-align: center;
  font-size: 12px;
}
.market-home .listing-placeholder .ui-icon { width: 30px; height: 30px; }
.market-home .favorite-button {
  width: 35px;
  height: 35px;
  top: 8px;
  right: 8px;
  color: #384461;
  border: 1px solid #ffffffb8;
  background: #fffffff2;
  box-shadow: 0 2px 10px #19243d19;
}
.market-home .favorite-button.saved { color: #a4245c; }
.market-home .listing-info { padding: 12px; }
.market-home .listing-price { color: var(--ink); }
.market-home .listing-title { color: #2c3853; }
.market-home .listing-meta { color: var(--muted); }
.market-facts span { background: #eef1fa; color: #475677; }
.market-home .compare-toggle { color: #475677; border-color: #e0e6f2; }
.market-home .compare-toggle[aria-pressed="true"] { background: var(--storefront-accent-soft); color: var(--storefront-accent-ink); border-color: var(--orange); }

.market-home .empty-state:not(.hidden) {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
}
.market-home .empty-state>.market-empty-icon {
  margin: 0;
  background: var(--storefront-accent-soft);
  color: var(--storefront-accent-ink);
  border-color: #e3e7f5;
}
.market-home .empty-state h3 { margin: 0 0 5px; font-size: 16px; }
.market-home .empty-state p { margin: 0; max-width: 54ch; font-size: 13px; color: var(--muted); }
.market-empty-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.market-home .market-empty-actions button { margin: 0; min-height: 39px; font-size: 12px; }

.category-section { margin-top: 25px; }
.category-section .section-heading h2 { font-size: 24px; }
.catalog-directory .catalog-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 10px #19243d06;
}
.catalog-directory .catalog-head { color: var(--ink); }
.catalog-links>button { color: #4d5b75; }
.catalog-links>button.catalog-more, .all-link { color: var(--storefront-accent-ink); }
.seller-banner {
  border-color: #dce4fa;
  background: linear-gradient(120deg, #edf0ff, #f6f8ff);
}
.seller-graphic { background: #dce3ff; color: #5146a2; }
.trust-row>div { color: var(--muted); }
.trust-icon { background: #eef1fa; color: #546689; }
.trust-icon .ui-icon { width: 17px; height: 17px; }
footer { color: var(--muted); padding-bottom: 23px; }
footer a { color: inherit; font-size: 12px; }

.modal-backdrop { background: #101a3c80; }
.modal {
  border: 1px solid #e5e9f4;
  border-radius: 19px;
  box-shadow: 0 24px 75px #14234b42;
  color: var(--ink);
}
.modal h2, .modal h3 { color: var(--ink); }
#modalContent :is(h2, h3)[tabindex="-1"]:focus { outline: none; }
.modal p, .modal .form-hint { color: var(--muted); }
.modal-close {
  background: #f2f5fb;
  border-color: #e3e8f4;
  color: #42506d;
  width: 37px;
  height: 37px;
}
.modal-close .ui-icon { width: 18px; height: 18px; }
.form-field :is(input, textarea, select) { border-color: #dce3f0; }
.form-field :is(input, textarea, select):focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--storefront-accent-soft);
}
.catalog-compare-dock { background: #1d2a49; }
.compare-scroll { border-color: var(--line); }
.compare-table .compare-spacer, .compare-table tbody th { background: #f0f3fa; color: #41516f; }
.compare-table tbody tr:first-child td { color: var(--storefront-accent-ink); }
.compare-toolbar .text-button { color: var(--storefront-accent-ink); }
.compare-mode input { accent-color: var(--orange); }

@media (min-width: 651px) and (max-width: 950px) {
  .header .favorites-link { display: inline-flex; }
  .header .favorites-link>span:not(.heart) { display: none; }
  .market-categories button { padding-inline: 10px; }
  .hero { min-height: 207px; padding: 22px; }
  .hero-art { min-width: 210px; }
  .market-home .empty-state:not(.hidden) { grid-template-columns: auto minmax(0,1fr); }
  .market-empty-actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 650px) {
  main, footer, .topline, .header { padding-inline: 12px; }
  .topline, .toplinks :is(a, button) { font-size: 10px; }
  .toplinks { gap: 10px; }
  .header { grid-template-rows: 40px 44px; gap: 6px 8px; min-height: 105px; }
  .header .brand-mark { width: 34px; height: 34px; }
  .header .brand-name { font-size: 23px; }
  .header .search, .header .search.mobile-open { height: 44px; border-radius: 11px; }
  .header .search input { font-size: 16px; }
  .header .search button { min-height: 34px; font-size: 12px; padding-inline: 10px; }
  .header .profile-button { width: 39px; height: 39px; }
  .hero {
    display: block;
    min-height: 0;
    margin-top: 12px;
    padding: 17px 15px;
    border-radius: 17px;
  }
  .hero .eyebrow { margin-bottom: 8px; padding: 4px 8px; font-size: 10px; }
  .hero h1 { max-width: 16ch; font-size: clamp(28px, 8vw, 35px); }
  .hero-copy>p { display: block; margin-top: 7px; font-size: 12px; max-width: 100%; }
  .hero-art {
    position: absolute;
    z-index: -1;
    top: 12px;
    right: -25px;
    width: 49%;
    min-width: 0;
    opacity: .34;
    mask-image: linear-gradient(90deg, transparent 3%, #000 54%);
  }
  .hero .hero-art.cms-has-image { opacity: .45; }
  .hero-actions { margin-top: 11px; gap: 5px; }
  .hero-actions :is(.market-browse, .outline-button) { padding-inline: 8px; font-size: 11px; min-height: 36px; }
  .hero-actions .market-browse { display: none; }
  .hero-actions #wantStart { padding-inline: 5px; }
  .hero-note { font-size: 10px; }
  .market-home { padding-top: 15px; }
  .market-discovery { margin-bottom: 17px; }
  .market-discovery-head { margin-bottom: 7px; }
  .market-discovery-head h2 { font-size: 18px; }
  #marketCatalogue { min-height: 34px; font-size: 11px; padding: 5px 8px; }
  .market-categories { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .market-categories button { gap: 5px; min-height: 65px; padding: 7px; border-radius: 11px; font-size: 11px; }
  .market-categories button::after { top: 10px; right: 10px; width: 5px; height: 5px; }
  .market-category-art { width: 28px; height: 28px; border-radius: 8px; }
  .market-category-art .ui-icon { width: 19px; height: 19px; }
  .market-home .listings-heading { flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
  .market-part-actions :is(#marketParts,#marketPhotoPart) { font-size: 11px; min-height: 34px; padding-inline: 7px; }
  .market-controls { padding: 5px; gap: 4px; }
  .market-home .filter-row, .market-toolbar { gap: 4px; }
  .market-toolbar { position: relative; width: 100%; }
  details#marketMore { position: static; }
  .market-toolbar > #ocListingTools { box-shadow: none; }
  .market-home .filter-row button, .market-home .sort-button, :is(button#marketMore, #marketMore > summary) { min-height: 34px; padding-inline: 6px; font-size: 11px; }
  #marketViews button { min-height: 29px; padding-inline: 7px; font-size: 11px; }
  .market-home .listing-grid { gap: 8px; margin-top: 8px; }
  .market-home .listing-info { padding: 9px; }
  .market-home .empty-state:not(.hidden) { padding: 12px; grid-template-columns: auto minmax(0,1fr); gap: 7px 9px; }
  .market-home .empty-state h3 { font-size: 14px; }
  .market-home .empty-state p { font-size: 12px; }
  .market-empty-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .market-home .market-empty-actions button { min-height: 36px; font-size: 11px; }
  .category-section .section-heading h2 { font-size: 21px; }
  .trust-row { display: grid; grid-template-columns: minmax(0,1fr); overflow: visible; gap: 0; }
  .trust-row>div { min-width: 0; }
  footer>div { flex-wrap: wrap; gap: 8px 12px; margin-left: 0; }
  footer>div a { white-space: normal; }
  .mobile-nav { background: #fffffff8; border-color: var(--line); box-shadow: 0 -3px 16px #19294f0c; }
  .mobile-nav :is(button, a) { color: #4d5b76; }
  .mobile-nav .nav-active { color: var(--storefront-accent-ink); }
  .mobile-nav small { font-size: 10px; }
  .modal { border-radius: 15px; }
}

/* Search-first marketplace layout. */
.market-art-library { position: absolute; width: 0; height: 0; pointer-events: none; }
.market-header.header {
  display: block;
  min-height: 0;
  padding: 0;
  border-bottom-color: #ebedef;
  box-shadow: none;
}
.market-header .topline {
  height: auto;
  min-height: 43px;
  gap: 18px;
  justify-content: flex-start;
  border: 0;
  background: #292c31;
  color: #e9edf0;
}
.market-header .topline>span { color: #dfe3e8; }
.market-header .toplinks { margin-left: auto; }
.market-header .toplinks :is(a, button),
.market-header .toplinks #cmsEditWebsite { color: #f1f3f6; }
.market-header .toplinks :is(a, button):hover { color: #a6dcff; }
.market-utility-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.market-header .favorites-link {
  min-height: 34px;
  color: #f5f7f8;
  font-size: 12px;
}
.market-header .favorites-link .count { color: #fff; background: #464a53; }
.market-header .profile-button {
  width: 33px;
  height: 33px;
  color: #f0f2f5;
  border-color: #585d65;
  border-radius: 8px;
  background: #3c4046;
}
.market-header .profile-button:hover { color: #fff; background: #52575e; }
.market-header .header-post {
  min-height: 32px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
}
.market-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 69px;
  padding-inline: max(24px, calc((100% - var(--storefront-width)) / 2));
}
.market-search-row .brand { gap: 9px; }
.market-search-row .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.market-search-row .brand-name { font-size: 26px; }
#marketCatalogue.market-catalogue-button {
  flex: 0 0 auto;
  gap: 7px;
  min-height: 43px;
  margin: 0;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.market-catalogue-button .ui-icon,
.market-header-region .ui-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.market-header .search {
  min-width: 0;
  height: 43px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: #fff;
}
.market-header .search input { font-size: 15px; }
.market-header .search button { min-height: 33px; border-radius: 5px; padding-inline: 14px; }
.market-header-region {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 175px;
  min-height: 43px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}
.market-header-region span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.market-header-region .ui-icon { color: var(--storefront-accent-ink); }
.market-mobile-catalogue { display: none; }

.market-home { padding-top: 16px; }
.market-feed { min-width: 0; }
.market-side { display: none; }
.market-discovery { margin-bottom: 23px; }
.market-discovery-head {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.market-categories { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.market-categories button {
  min-height: 82px;
  padding: 10px 10px 28px;
  border-color: transparent;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.18;
}
.market-categories button[data-market-tile="transport"] { grid-column: span 2; --tile-wash: #e8f4fc; --tile-ink: #366d92; }
.market-categories button[data-market-tile="real-estate"] { --tile-wash: #e7f4eb; --tile-ink: #42836d; }
.market-categories button[data-market-tile="work"] { --tile-wash: #fff3da; --tile-ink: #936336; }
.market-categories button[data-market-tile="phone"] { --tile-wash: #f0ebfb; --tile-ink: #675396; }
.market-categories button[data-market-cat="transport/spare-parts"] { --tile-wash: #eaf0f8; --tile-ink: #506b87; }
.market-categories button[data-market-cat="home-stuff"] { --tile-wash: #fcecef; --tile-ink: #8c5668; }
.market-categories button[data-market-cat="clothes-footwear"] { --tile-wash: #fff0ee; --tile-ink: #aa675f; }
.market-categories button[data-market-cat="animals"] { --tile-wash: #fff4df; --tile-ink: #986544; }
.market-categories button[data-market-cat="construction"] { --tile-wash: #fcf1df; --tile-ink: #99653b; }
.market-categories button[data-market-cat="production-work"] { --tile-wash: #eaf2fb; --tile-ink: #5173a6; }
.market-categories button[data-market-cat="for-children"] { --tile-wash: #e7f5f0; --tile-ink: #4f8c78; }
.market-categories button[data-market-cat="agriculture"] { --tile-wash: #eff5e6; --tile-ink: #69834e; }
.market-categories button[data-market-cat="entertainment"] { --tile-wash: #f1edfa; --tile-ink: #6d589c; }
.market-categories button::after { content: none; }
.market-category-art {
  position: absolute;
  right: 4px;
  bottom: 3px;
  width: 76px;
  height: 51px;
  border-radius: 0;
  background: none;
}
.market-category-art svg { width: 100%; height: 100%; display: block; }
.market-categories [data-market-tile="transport"] .market-category-art { width: 108px; height: 73px; }
.market-category-label { position: relative; z-index: 1; }
.market-category-label-short { display: none; }
.market-home .listings-heading { margin-bottom: 9px; }
.market-home .listings-heading h2 { font-size: clamp(22px, 2.5vw, 30px); }
.market-controls { border-radius: 10px; padding: 5px; background: #fafbfc; }
.market-home .listing-grid:not(.list-view) { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 19px 12px; }
.market-home .listing-grid:not(.list-view) .listing-card,
.market-home .listing-grid:not(.list-view) .listing-card:hover { border: 0; border-radius: 0; box-shadow: none; }
.market-home .listing-image { border-radius: 10px; }
.market-home .listing-grid:not(.list-view) .listing-info { padding: 8px 1px 2px; }
.market-home .listing-price { margin-top: 4px; font-size: 20px; }
.market-home .listing-title { color: var(--ink); font-weight: 650; }
.market-home .listing-title:hover { color: var(--storefront-accent-ink); }
.market-home .empty-state:not(.hidden) { background: #f7f9fa; }
.market-home .compare-toggle { min-height: 30px; border-color: #e2e7eb; border-radius: 7px; }
@media (hover: hover) {
  .market-gallery .market-photo-arrow { opacity: 0; }
  .market-gallery:hover .market-photo-arrow, .market-gallery:focus-within .market-photo-arrow { opacity: 1; }
}
@media (min-width: 1051px) {
  .market-home:has(.market-side:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 226px;
    align-items: start;
    gap: 19px;
  }
  .market-home:has(.market-side:not([hidden])) .listing-grid:not(.list-view) {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .market-side:not([hidden]) {
    display: block;
    padding: 14px 12px 12px;
    border: 1px solid #eceff1;
    border-radius: 11px;
    background: #f5f7f8;
  }
  .market-side h2 { margin: 0 0 8px; padding: 0 4px; font-size: 17px; }
  .market-side-list { display: grid; gap: 4px; }
  .market-side-list button {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 37px;
    padding: 5px 7px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 630;
    text-align: left;
  }
  .market-side-list button[hidden] { display: none; }
  .market-side-list button:hover { background: var(--storefront-accent-soft); }
  .market-side-list svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--storefront-accent-ink); }
}
@media (min-width: 651px) and (max-width: 950px) {
  .market-header .topline>span { display: none; }
  .market-header .toplinks { margin-left: 0; margin-right: auto; }
  .market-categories { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .market-categories button[data-market-tile="transport"] { grid-column: auto; }
  .market-categories [data-market-tile="transport"] .market-category-art { width: 76px; height: 51px; }
  .market-home .listing-grid:not(.list-view) { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .market-header .topline {
    min-height: 33px;
    padding: 3px 12px;
    gap: 6px;
    background: #fff;
  }
  .market-header .topline>span { display: none; }
  .market-header .toplinks { margin-left: 0; margin-right: auto; gap: 8px; }
  .market-header .toplinks :is(a, button),
  .market-header .toplinks #cmsEditWebsite { color: #485564; font-size: 10px; }
  .market-header .profile-button { width: 29px; height: 29px; color: #495564; background: #f3f6f9; border-color: #e5eaef; }
  .market-header .profile-button:hover { color: var(--storefront-accent-ink); background: var(--storefront-accent-soft); }
  .market-header .profile-button .ui-icon { width: 17px; height: 17px; }
  .market-search-row {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    gap: 5px 8px;
    min-height: 0;
    padding: 2px 12px 9px;
  }
  .market-search-row .brand { grid-column: 1; grid-row: 1; }
  .market-search-row .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .market-search-row .brand-name { font-size: 23px; }
  .market-search-row .brand-lockup { width: 117px; }
  #marketCatalogue.market-catalogue-button { display: none; }
  .market-header-region { grid-column: 2; grid-row: 1; justify-self: end; min-height: 34px; max-width: 100%; font-size: 12px; }
  .market-header .search, .market-header .search.mobile-open { grid-column: 1/-1; grid-row: 2; height: 41px; border-radius: 8px; }
  .market-header .search input { font-size: 16px; }
  .market-header .search button { min-height: 30px; padding-inline: 10px; }
  .market-home { padding-top: 10px; }
  .market-discovery { margin-bottom: 15px; }
  .market-discovery-head { position: static; width: auto; height: auto; margin: 0 0 6px; overflow: visible; clip-path: none; }
  .market-discovery-head h2 { font-size: 17px; }
  .market-mobile-catalogue { display: inline-flex; align-items: center; min-height: 32px; color: var(--storefront-accent-ink); font-size: 11px; }
  .market-categories { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .market-categories button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 65px;
    padding: 4px;
    border-radius: 9px;
    text-align: center;
    font-size: 11px;
  }
  .market-categories button[data-market-tile="transport"] { grid-column: auto; }
  .market-categories button:nth-child(n+9) { display: none; }
  .market-categories .market-category-art,
  .market-categories [data-market-tile="transport"] .market-category-art {
    position: static;
    width: 50px;
    max-width: 100%;
    height: 34px;
  }
  .market-category-label-full { display: none; }
  .market-category-label-short { display: inline; }
  .market-home .listing-grid:not(.list-view) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 8px; }
  .market-home .listing-price { font-size: 19px; }
}

/* Category filters use the same listing fields as the full search form. */
.market-discovery[hidden] { display: none; }
.market-quick-filters {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  flex: 1 0 100%;
}
.market-quick-filters[hidden] { display: none; }
.market-quick-filters button {
  min-height: 44px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--storefront-ink, #222c42);
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.market-quick-filters button:hover,
.market-quick-filters .is-active {
  border-color: var(--storefront-accent-ink);
  color: var(--storefront-accent-ink);
  background: var(--storefront-accent-soft, #edf5ff);
}
.market-quick-filters .ui-icon { width: 17px; height: 17px; flex: 0 0 auto; color: var(--storefront-accent-ink); }
.market-quick-filters button > span { min-width: 0; overflow-wrap: anywhere; }
.market-quick-filters small { display: block; font-size: 11px; line-height: 1.25; }
#marketQuickForm { display: grid; gap: 12px; }
#marketQuickForm > .primary-button { min-height: 44px; }
#marketQuickModels:empty, #marketQuickForm #ocFormError:empty { display: none; }

/* Both part searches share a form with a separate, consistently spaced action. */
#marketPartForm { display: grid; gap: 16px; }
#marketPartForm > .part-scan { margin: 0; }
#marketPartForm .form-field { min-width: 0; margin: 0; gap: 8px; }
#marketPartForm .form-field > label { margin: 0; }
#marketPartForm .form-field > :is(input, select) { width: 100%; min-height: 44px; }
#marketPartForm > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
#marketPartForm #ocFormError:empty { display: none; }
#marketPartForm > .primary-button {
  justify-self: start;
  justify-content: center;
  min-height: 44px;
  min-width: 160px;
  max-width: 100%;
  margin-top: 4px;
}
@media (max-width: 650px) {
  #marketPartForm > .form-grid { grid-template-columns: minmax(0, 1fr); }
  #marketPartForm > .primary-button { justify-self: stretch; width: 100%; min-width: 0; }
  .market-quick-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-home .filter-row button, .market-home .sort-button, button#marketMore { min-height: 40px; }
  .market-mobile-catalogue { min-height: 44px; }
}
