.market-hub{
  --market-ink:#064d46;
  --market-green:#007953;
  --market-green-dark:#00594d;
  --market-green-soft:#eaf5ee;
  --market-lime:#e8f2d8;
  --market-orange:#f47a32;
  --market-line:#d7e4dc;
  --market-muted:#5e756b;
  --market-surface:#f7faf8;
  --market-shadow:0 18px 45px rgba(16,61,50,.08);
  color:var(--market-ink);
  padding-block:28px 118px;
  font-size:15px;
}
.market-hub[data-marketplace]{padding-block:0 40px}
.market-hub *{box-sizing:border-box}
.market-hub a{color:inherit;text-decoration:none}
.market-hub a:hover{text-decoration:none}
.market-hub h1,.market-hub h2,.market-hub h3,.market-hub p{overflow-wrap:anywhere}
.market-hub h1{font-size:clamp(2rem,3.1vw,3.2rem);font-weight:750;line-height:1.02;letter-spacing:-.04em;margin:8px 0 14px}
.market-hub h2{font-size:clamp(1.28rem,2vw,1.65rem);line-height:1.15;letter-spacing:-.02em;margin:0}
.market-hub button,.market-hub input,.market-hub select{font:inherit}
.market-hub button{cursor:pointer}
.market-hub :focus-visible{outline:3px solid #f5a061;outline-offset:3px}
.market-hub svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.market-hub [hidden]{display:none!important}

/* Hero */
.market-hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  min-height:280px;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:linear-gradient(105deg,#f7f8f0,#e9f2e0);
  box-shadow:none;
}
.market-hero::before{content:"";position:absolute;inset:auto auto -95px -65px;width:260px;height:260px;border-radius:50%;background:rgba(154,196,127,.12)}
.market-hero-copy{position:relative;z-index:2;padding:38px 10px 48px 36px;align-self:center}
.market-eyebrow,.market-section-kicker{margin:0;color:#34765b;font-size:.72rem;font-weight:850;letter-spacing:.15em}
.market-hero-lead{max-width:520px;margin:0;color:#224f49;font-size:1.05rem;line-height:1.35}
.market-hero-points{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:26px;color:#335f50;font-size:.82rem;font-weight:720}
.market-hero-points span{display:flex;align-items:center;gap:7px}
.market-hero-points svg{width:19px;height:19px;color:var(--market-orange)}
.market-hero-art{position:relative;min-height:280px;display:flex;align-items:flex-end;justify-content:flex-end}
.market-hero-art>img{position:absolute;inset:0 0 0 auto;width:100%;height:100%;object-fit:contain;object-position:center 52%;mix-blend-mode:multiply}
.market-hero-card{position:absolute;z-index:3;right:24px;top:26px;width:215px;padding:24px;border:1px solid rgba(9,97,77,.15);border-radius:18px;background:rgba(255,255,248,.94);box-shadow:none;backdrop-filter:blur(8px)}
.market-hero-card strong{display:block;font-size:1.02rem;line-height:1.15}
.market-hero-card>span{display:block;margin:8px 0 13px;color:var(--market-muted);font-size:.74rem;line-height:1.45}
.market-hero-card button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:38px;border:1px solid #b7cfc3;border-radius:10px;background:#fff;color:var(--market-green-dark);font-size:.78rem;font-weight:800}

/* Shopping shortcuts */
.market-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:-24px 24px 14px;padding:14px;background:#fff;border-radius:14px 14px 0 0;position:relative;z-index:4}
.market-shortcut{min-width:0;display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid var(--market-line);border-radius:9px;background:#fff;box-shadow:none;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.market-shortcut:hover{transform:translateY(-2px);border-color:#b7d3c4;box-shadow:0 12px 28px rgba(16,61,50,.1)}
.market-shortcut-icon{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#fff5ed;color:var(--market-orange)}
.market-shortcut-icon svg{width:20px;height:20px}
.market-shortcut>span:last-child{min-width:0;display:flex;flex-direction:column}
.market-shortcut strong{font-size:.92rem;line-height:1.2}
.market-shortcut small{margin-top:3px;color:var(--market-muted);font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Search + filters */
.market-search{margin:0 24px;padding:0}
.market-search-panel{padding:20px 16px 16px;border-radius:12px;background:linear-gradient(110deg,#f2f8f5,#edf6f3)}
.market-search-main{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr) 126px;gap:12px;align-items:end}
.market-hub label{display:block;margin-bottom:7px;color:#245c4a;font-size:.77rem;font-weight:800}
.market-input-wrap{position:relative;display:block}
.market-input-wrap svg{position:absolute;left:13px;top:50%;width:19px;height:19px;transform:translateY(-50%);color:#608277;pointer-events:none}
.market-hub input:not([type=checkbox]),.market-hub select{width:100%;min-width:0;min-height:44px;border:1px solid #c6d8d6;border-radius:7px;background:#fff;color:var(--market-ink);padding:10px 12px;transition:border-color .15s ease,box-shadow .15s ease}
.market-input-wrap input{padding-left:42px!important}
.market-hub input:not([type=checkbox]):focus,.market-hub select:focus{border-color:#68a28d;box-shadow:0 0 0 4px rgba(8,117,95,.08);outline:none}
/* Site-wide input sizing also applies to native checkboxes; reset it here. */
.market-hub input[type="checkbox"]{appearance:auto;display:inline-block;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;margin:0;padding:0;border:1px solid #779b88;border-radius:4px;background:#fff;accent-color:var(--market-green);vertical-align:middle;cursor:pointer}
.market-quick-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:14px}
.market-hub .market-quick-filter{display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;width:auto;min-width:0;min-height:40px;margin:0;padding:9px 12px;border:1px solid #d6e6dc;border-radius:8px;background:rgba(255,255,255,.76);color:#245c4a;font-size:.78rem;font-weight:700;line-height:1.3;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.market-hub .market-quick-filter:hover{border-color:#9fc6b1;background:#fff}
.market-hub .market-quick-filter:has(input:checked){border-color:#83b8a0;background:#e3f2e9}
.market-hub .market-quick-filter:has(input:focus-visible){outline:3px solid #f5a061;outline-offset:2px}
.market-hub .market-quick-filter:has(input:disabled){opacity:.6;cursor:not-allowed}
.market-quick-filter-hint{margin:8px 0 0;color:var(--market-muted);font-size:.75rem;line-height:1.45}
.market-hub button,.market-hub .btn{min-height:44px;border:1px solid #c6d8d6;border-radius:7px;background:#fff;color:var(--market-ink);padding:10px 14px}
.market-hub .market-primary,.market-hub .btn-brand{border-color:var(--market-green);background:var(--market-green);color:#fff;font-weight:780}
.market-hub .market-primary:hover,.market-hub .btn-brand:hover{background:var(--market-green-dark);border-color:var(--market-green-dark)}
.market-search-button{min-width:92px}
.market-locate{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-weight:720}
.market-locate svg{width:18px;height:18px}
#market-location-status{margin:10px 0 0;color:#3d6c5c;font-size:.8rem;font-weight:650}
#market-location-status:empty{display:none}
.market-category-row{margin-top:20px}
.market-row-label{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:.77rem;font-weight:800;color:#245c4a}
.market-row-label a{display:none;color:var(--market-green);font-weight:800}
.market-categories{display:flex;gap:8px;overflow:auto;max-width:100%;padding:10px 0 3px;scrollbar-width:thin}
.market-categories a{flex:0 0 auto;white-space:nowrap;padding:8px 15px;border:1px solid #d2e0d8;border-radius:999px;background:#fff;color:#315c4d;font-size:.77rem;font-weight:730;transition:.15s ease}
.market-categories a:hover{border-color:#94bca9;background:#f7fbf8}
.market-categories .active{border-color:var(--market-green);background:var(--market-green);color:#fff;box-shadow:none}
.market-refine-row{display:flex;align-items:center;gap:24px;margin-top:14px;position:relative}
.market-filters{flex:0 0 auto;min-width:0}
.market-filters summary{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:9px 13px;border:1px solid #c5d6cd;border-radius:7px;background:#fff;font-size:.8rem;font-weight:780;cursor:pointer;list-style:none}
.market-filters summary::-webkit-details-marker{display:none}
.market-filters summary svg{width:17px;height:17px}
.market-filters[open] summary{border-color:#9fc1b0;background:#f9fcfa}
.market-filter-fields{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;align-items:end;margin-top:14px;padding:16px;border:1px solid #dce7e1;border-radius:14px;background:#fff}
.market-check{display:flex!important;align-items:center;gap:8px;min-height:44px;margin:0!important;color:#395f52!important;font-weight:650!important}
.market-check input{width:18px;height:18px;accent-color:var(--market-green)}
.market-clear{display:inline-flex;align-items:center;justify-content:center;min-height:46px;color:var(--market-green);font-weight:760;text-decoration:underline!important}
.market-sort{flex:0 0 auto;display:flex;align-items:center;gap:8px}
.market-sort label{margin:0;white-space:nowrap;color:#63786f;font-size:.74rem}
.market-sort select{width:180px;min-height:42px}
.market-sort button{min-height:42px;padding-inline:12px;font-weight:700}
.market-hint{margin:10px 0 0;color:var(--market-muted);font-size:.75rem;line-height:1.5}
.market-guest-hint{display:flex;align-items:center;gap:8px;margin:18px 2px 8px}
.market-guest-hint svg{width:17px;height:17px;flex:0 0 auto;color:#6d887c}

/* Results */
.market-section{margin:28px 24px}
.market-main-results{margin-top:16px}
.market-result-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}
.market-result-heading .market-section-kicker{margin-bottom:6px}
.market-result-heading>span{padding-bottom:2px;color:#60776c;font-size:.78rem}
.market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.market-card{min-width:0;overflow:hidden;border:1px solid #dce6e0;border-radius:8px;background:#fff;box-shadow:none;display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.market-card:hover{transform:translateY(-3px);border-color:#bfd4c9;box-shadow:0 15px 32px rgba(16,61,50,.1)}
.market-media{position:relative;overflow:hidden;background:#eef4ef}
.market-image{aspect-ratio:1.6;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#59786b!important;overflow:hidden}
.market-image img{width:100%;height:100%;object-fit:cover;transition:transform .28s ease}
.market-card:hover .market-image img{transform:scale(1.025)}
.market-image-placeholder{font-size:3rem;line-height:1}
.market-image-label{margin-top:5px;font-size:.75rem;font-weight:700}
.market-media-badges{position:absolute;left:10px;top:10px;display:flex;gap:6px;pointer-events:none}
.market-media-badges span{padding:5px 8px;border-radius:999px;box-shadow:0 4px 10px rgba(0,0,0,.09);font-size:.66rem;font-weight:850}
.market-nearby-badge{background:#e5f5e7;color:#1b7549}
.market-sale-badge{background:#fff0e6;color:#d96219}
.market-wishlist-form{position:absolute;right:10px;top:10px}
.market-save{display:grid!important;place-items:center!important;width:36px;min-height:36px!important;height:36px!important;padding:0!important;border-color:rgba(255,255,255,.92)!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;color:#315e4f!important;box-shadow:0 4px 12px rgba(16,61,50,.14);font-size:1.25rem!important;line-height:1!important}
.market-save[aria-pressed=true]{color:#e45e42!important}
.market-card-body{display:flex;flex:1;flex-direction:column;padding:10px 11px 11px}
.market-card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:23px}
.market-category-chip{align-self:flex-start;max-width:100%;margin:2px 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 7px;border-radius:6px;background:#edf8ec;color:#2c7b51;font-size:.64rem;font-weight:800}
.market-rating{margin-top:5px;white-space:nowrap;color:#e67b25;font-size:.7rem;font-weight:820}
.market-rating small{color:#718178;font-weight:600}
.market-card h3{margin:0 0 4px;font-size:.95rem;font-weight:700;line-height:1.28;letter-spacing:-.01em}
.market-card h3 a:hover{color:var(--market-green)}
.market-seller{width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#607571!important;font-size:.75rem;font-weight:500}
.market-place{margin:4px 0;color:#6a7d74;font-size:.7rem;line-height:1.3}
.market-price{display:flex;align-items:baseline;gap:6px;margin:0 0 5px;color:#104f3f}
.market-price strong{font-size:1.12rem;font-weight:900;white-space:nowrap}
.market-price del{color:#819088;font-size:.72rem;font-weight:500}
.market-offer{margin:0 0 6px;color:#167051;font-size:.68rem;font-weight:730}
.market-badges{display:flex;flex-wrap:wrap;gap:5px;margin:2px 0 12px}
.market-badges span{padding:4px 6px;border-radius:5px;background:#f1f5f2;color:#557066;font-size:.62rem;font-weight:720}
.market-actions{margin-top:auto}
.market-actions form{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
.market-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:8px 10px;font-size:.75rem;font-weight:780;white-space:nowrap}
.market-actions .btn svg{width:16px;height:16px}
.market-buy-now{padding-inline:10px!important;background:#fff!important;color:#315d4e!important}

/* Empty + promotional states */
.market-empty{padding:34px 22px;text-align:center;border:1px solid var(--market-line);border-radius:18px;background:#f4f8f5}
.market-empty-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 12px;border-radius:50%;background:#fff0e7;color:#ce5c1b;font-size:1.4rem;font-weight:900}
.market-empty h2{margin-bottom:8px}
.market-empty p{margin:0;color:var(--market-muted);line-height:1.5}
.market-empty a,.market-empty button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:13px 5px 0;padding:9px 13px;border:1px solid #b8cfc3;border-radius:10px;background:#fff;color:var(--market-green-dark);font-weight:760}
.market-empty .market-empty-primary{border-color:var(--market-green);background:var(--market-green);color:#fff}
.market-empty-catalog{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:26px;text-align:left;padding:34px 42px;background:linear-gradient(105deg,#f2f8f3,#f8fbf8)}
.market-empty-catalog .market-section-kicker{margin-bottom:6px}
.market-empty-visual{display:grid;place-items:center;width:116px;height:116px;border-radius:0;background:#e7f2e8;color:#4a8f66}
.market-empty-visual svg{width:72px;height:72px;stroke-width:2.2}
.market-empty-actions{display:flex;flex-wrap:wrap;gap:7px}
.market-empty-actions a,.market-empty-actions button{margin:14px 0 0}
.market-pagination{text-align:center;padding:25px 0 0}
.market-pagination a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:4px;padding:10px 18px;border:1px solid #87af9b;border-radius:10px;background:#fff;color:var(--market-green-dark);font-weight:760}
.market-local{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;margin:24px 24px 0;padding:24px;border:1px solid #d9e6cf;border-radius:10px;background:linear-gradient(90deg,#eef6e2 0%,#e8f3da 65%,#e8f3da88),url("../images/directory/local-streetscape.svg") right bottom/auto 100% no-repeat}
.market-local-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;background:#fff7ed;color:var(--market-orange)}
.market-local-icon svg{width:31px;height:31px}
.market-local h2{font-size:1.1rem}
.market-local p{margin:5px 0 0;color:#557065;font-size:.82rem}
.market-local button{min-width:150px;border-color:#9db9aa;background:#fff;color:var(--market-green-dark);font-weight:780}
.market-cart{position:sticky;bottom:18px;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 66px 0 0;padding:14px 18px;border-radius:14px;background:#103d32;color:#fff;box-shadow:0 12px 35px rgba(16,61,50,.25)}
.market-cart a{flex:0 0 auto;padding:9px 12px;border-radius:9px;background:#fff;color:#103d32;font-weight:800}
.market-skeleton{height:355px;border-radius:17px;background:linear-gradient(100deg,#edf3ef 30%,#fafcfb 50%,#edf3ef 70%);background-size:200% 100%;animation:market-pulse 1.3s infinite}
@keyframes market-pulse{to{background-position:-200% 0}}

/* Filter dialog */
#market-filter-dialog{width:min(100%,650px);max-width:100%;max-height:86dvh;margin:auto auto 0;padding:18px 16px 24px;border:0;border-radius:22px 22px 0 0;color:var(--market-ink);box-shadow:0 -12px 40px rgba(12,48,39,.15)}
#market-filter-dialog::backdrop{background:rgba(8,34,28,.48);backdrop-filter:blur(2px)}
.market-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:0 2px 12px;border-bottom:1px solid var(--market-line)}
.market-dialog-head strong{font-size:1.05rem}
.market-dialog-head button{min-height:38px!important;padding:7px 12px!important;color:var(--market-green);font-weight:800}
#market-filter-dialog .market-filter-fields{clear:both;grid-template-columns:repeat(2,minmax(0,1fr));border:0;padding:4px 0 0;margin-top:0}
.market-hub .commerce-text{white-space:pre-wrap}
.market-mobile-nav{display:none}

/* Reference layout and progressive controls. */
.market-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.market-hero-copy{max-width:580px}
.market-hub .market-hero-card button{padding:8px;font-size:.7rem;white-space:nowrap;min-height:36px}
.market-hero-art>img{right:105px;width:100%;max-width:none;mask-image:linear-gradient(to right,transparent,#000 15%,#000 85%,transparent)}
.market-row-label .market-see-all{display:block;padding:0;min-height:28px;border:0;background:none;color:var(--market-green);font-size:.75rem}
.market-category-icon{display:none}
.market-categories.is-expanded{flex-wrap:wrap}
.market-view{display:flex;align-items:center;gap:5px;margin-left:auto;font-size:.75rem}
.market-view button{display:grid;place-items:center;min-height:36px;width:36px;padding:8px;border:0;background:transparent}
.market-view button[aria-pressed=true]{background:#e5f2ed}
.market-view svg{width:20px;height:20px}
.market-filters[open] .market-filter-fields{position:absolute;z-index:12;top:44px;left:0;right:0;box-shadow:0 15px 32px #103d321a}
.market-filters>.market-hint{max-width:280px}
.market-price{margin-top:6px}
.market-badges{gap:4px;margin-bottom:8px}
.market-badges span{padding:2px 5px;font-weight:500}
.market-actions .btn-brand{background:linear-gradient(#006454,#005047);border-color:#006454;border-radius:6px}
.market-guest-hint{margin:24px;font-size:.72rem}
.market-list-view .market-grid{grid-template-columns:1fr}
.market-list-view .market-card{display:grid;grid-template-columns:minmax(180px,28%) 1fr}
.market-list-view .market-media,.market-list-view .market-image{height:100%}
.market-list-view .market-actions{max-width:240px}
.market-list-view .market-card-body{padding:18px}
.market-pagination:empty{display:none}
#market-filter-dialog .market-dialog-body{min-width:0}

/* Tablet: two product columns and a compact four-item shopping toolbar. */
@media(max-width:1050px){
  .market-hero{min-height:260px;grid-template-columns:1fr 1fr}
  .market-hero-art{min-height:260px}
  .market-hero-copy{padding:30px 0 44px 24px}
  .market-hub h1{font-size:2.4rem}
  .market-hero-lead{font-size:.95rem}
  .market-hero-art>img{right:30px;width:120%}
  .market-hero-card{width:170px;right:14px;top:auto;bottom:30px;padding:14px}
  .market-hero-card strong{font-size:.9rem}
  .market-toolbar{margin-inline:12px;gap:10px;padding:10px}
  .market-shortcut{gap:8px;padding:10px 8px}
  .market-shortcut-icon{width:34px;height:34px}
  .market-shortcut strong{font-size:.75rem}
  .market-shortcut small{font-size:.65rem}
  .market-search{margin-inline:12px}
  .market-search-main{grid-template-columns:minmax(0,1.45fr) minmax(0,.9fr) 90px;gap:10px}
  .market-search-panel{padding:16px 12px}
  .market-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .market-section{margin-inline:12px}
  .market-local{margin-inline:12px}
  .market-filter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Phone: search first, icon categories, shortcuts, full-width photo cards. */
@media(max-width:650px){
  .market-hub[data-marketplace]{width:100%;padding:0 0 calc(80px + env(safe-area-inset-bottom));font-size:14px;display:flex;flex-direction:column}
  :where(.market-hub[data-marketplace])>*,.market-search>*,.market-search-panel>*{order:6;min-width:0}
  .market-hero{order:0;min-height:190px;display:block;border-radius:0}
  .market-hero-copy{padding:20px 43% 22px 16px;max-width:none}
  .market-hub h1{font-size:clamp(1.7rem,8vw,2.1rem);line-height:1.04;max-width:185px;margin:7px 0 8px}
  .market-eyebrow{font-size:.6rem;letter-spacing:.12em}
  .market-hero-lead{font-size:.8rem;line-height:1.3}
  .market-hero-art{position:absolute;inset:0 0 0 48%;min-height:0}
  .market-hero-art>img{inset:0 auto 0 -5%;width:120%;height:100%;object-fit:cover;object-position:50% 50%;mask-image:linear-gradient(to right,transparent,#000 18%)}
  .market-hero-card{display:none}
  .market-search,.market-search-panel{display:contents}
  .market-search-main{order:1;display:grid;grid-template-columns:1fr;gap:0;margin:10px 14px 0}
  .market-search-main label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .market-query,.market-city-field,.market-search-button{grid-column:1}
  .market-input-wrap svg{width:18px;height:18px}
  .market-hub input:not([type=checkbox]),.market-hub select{min-height:44px;border-radius:6px;font-size:16px}
  .market-query input{border-radius:7px 7px 0 0!important}
  .market-city-field input{border-top:0!important;border-radius:0 0 7px 7px!important}
  .market-search-button{margin-top:8px;min-height:44px;width:100%;border-radius:6px}
  .market-quick-filters{order:2;margin:12px 14px 0;gap:6px}
  .market-hub .market-quick-filter{min-height:40px;padding:8px 10px;font-size:.73rem}
  .market-quick-filter-hint{order:2;margin:7px 14px 0;font-size:.7rem}
  #market-location-status{order:2;margin:8px 14px 0}
  .market-category-row{order:3;margin:18px 14px 12px;padding:0}
  .market-row-label{font-size:.78rem}
  .market-categories{gap:12px;padding:8px 0 0;scroll-snap-type:x proximity}
  .market-categories a{display:flex;flex-direction:column;align-items:center;gap:5px;flex:0 0 68px;max-width:90px;white-space:normal;text-align:center;padding:0;border:0;border-radius:0;background:transparent!important;color:var(--market-ink)!important;font-size:.64rem;line-height:1.2;scroll-snap-align:start}
  .market-category-icon{display:grid;place-items:center;width:60px;height:54px;border-radius:20px;background:#fff3e8;color:#f57826}
  .market-category-icon svg{width:24px;height:24px}
  .market-categories a:nth-child(3n) .market-category-icon{background:#f1efff;color:#8265d7}
  .market-categories a:nth-child(4n) .market-category-icon{background:#fbf0f3;color:#8c7985}
  .market-categories .active .market-category-icon{background:#00594d;color:#fff}
  .market-toolbar{order:4;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 14px 12px;padding:0;border-radius:0}
  .market-shortcut{flex-direction:column;justify-content:center;gap:4px;min-width:0;padding:9px 3px;text-align:center;border-radius:7px}
  .market-shortcut-icon{width:27px;height:27px}
  .market-shortcut-icon svg{width:18px;height:18px}
  .market-shortcut>span:last-child{align-items:center}
  .market-shortcut strong{font-size:.65rem}
  .market-shortcut small{font-size:.6rem}
  .market-refine-row{order:5;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 14px 12px;padding:0;border:0}
  .market-filters summary{display:flex;justify-content:center;width:100%;min-height:44px;border-radius:6px}
  .market-filters summary span,.market-sort label,.market-view{display:none}
  .market-sort{min-width:0;display:flex;flex-wrap:wrap}
  .market-sort select{width:100%;min-height:44px;font-size:.75rem}
  .market-sort-submit{width:100%}
  .market-filters[open] .market-filter-fields{position:static;grid-template-columns:1fr;box-shadow:none;padding:10px}
  .market-filters[open]{grid-column:1/-1}
  .market-main-results.market-section{margin:0 14px 20px}
  .market-section{margin:24px 14px}
  .market-result-heading{margin-bottom:10px}
  .market-result-heading>span{font-size:.68rem}
  .market-grid{grid-template-columns:1fr;gap:14px}
  .market-card{display:flex;border-radius:8px;min-height:0}
  .market-media{height:auto;min-height:0}
  .market-image{height:auto;aspect-ratio:2.15}
  .market-card-body{padding:11px 12px;position:relative}
  .market-card h3{font-size:.88rem}
  .market-seller{font-size:.74rem}
  .market-place{font-size:.65rem}
  .market-rating{font-size:.74rem}
  .market-price strong{font-size:1rem}
  .market-category-chip{font-size:.64rem;max-width:calc(100% - 125px)}
  .market-badges{max-width:calc(100% - 125px)}
  .market-actions{align-self:flex-end;width:112px;margin-top:0}
  .market-actions .btn{min-height:40px;font-size:.71rem;padding:8px}
  .market-actions .btn svg{display:none}
  .market-card-body:has(.market-category-chip) .market-actions{margin-top:-42px}
  .market-card-body:has(.market-offer) .market-actions{margin-top:8px}
  .market-wishlist-form{right:9px;top:9px}
  .market-save{width:34px!important;height:34px!important;min-height:34px!important}
  .market-local{grid-template-columns:auto 1fr;margin:20px 14px;padding:18px;gap:12px}
  .market-local h2{font-size:1rem}
  .market-local p{font-size:.74rem}
  .market-local button{grid-column:1/-1;width:100%}
  .market-empty-catalog{display:block;text-align:center;padding:28px 18px}
  .market-empty-visual{margin:0 auto 16px}
  .market-empty-actions{justify-content:center}
  .market-guest-hint{margin:10px 14px;font-size:.7rem}
  .market-cart{bottom:calc(72px + env(safe-area-inset-bottom));margin:16px 14px 0;font-size:.75rem}
  .market-skeleton{height:330px}
  .market-mobile-nav{position:fixed;z-index:40;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);min-height:62px;padding:7px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-top:1px solid #d7e2dc;background:rgba(255,255,255,.98)}
  .market-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#60766d;font-size:.6rem}
  .market-mobile-nav a.active{color:var(--market-green);font-weight:700}
  .market-mobile-nav svg{width:21px;height:21px}
  #market-filter-dialog .market-filter-fields{grid-template-columns:1fr;gap:12px}
  #market-filter-dialog input,#market-filter-dialog select{font-size:16px}
  .market-list-view .market-card{display:flex}
  .market-list-view .market-image{height:auto}
  .market-list-view .market-card-body{padding:11px 12px}
}

@media(prefers-reduced-motion:reduce){
  .market-skeleton{animation:none}
  .market-card,.market-image img,.market-shortcut{transition:none}
}

.market-details{display:grid;grid-template-columns:1fr 1fr;gap:28px}.market-details dl{display:grid;grid-template-columns:auto 1fr;gap:8px}.market-details dd{margin:0}.market-details .market-gallery{grid-column:1/-1}.market-gallery{display:flex;gap:12px;overflow:auto;scroll-snap-type:x mandatory}.market-gallery img,.market-gallery video{width:min(100%,480px);max-height:420px;object-fit:contain;scroll-snap-align:start;background:#edf2ee;border-radius:12px}@media(max-width:650px){.market-details{grid-template-columns:1fr}}
