/* DIR 412: preserve the Market header and its existing filters. */
.market-results .published-business-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.market-results .market-business-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.market-business-cover{position:relative;aspect-ratio:16/7;overflow:hidden;background:linear-gradient(125deg,#eaf3ff,#f4f8ff);display:grid;place-items:center}
.market-business-cover-mark{font-size:3rem;line-height:1;color:#7da6d7}
.market-business-image{display:block;width:100%;height:100%;object-fit:cover}
.market-business-cover-logo .market-business-image{object-fit:contain;padding:24px}
.market-business-body{padding:0 20px 20px;display:flex;flex-direction:column;gap:10px;flex:1}
.market-business-identity{display:flex;align-items:flex-end;gap:12px;min-width:0;margin-top:-18px;position:relative}
.market-business-logo{width:68px;height:68px;flex:none;display:grid;place-items:center;border:3px solid white;border-radius:14px;background:#eff6ff;color:#2458a0;font-size:1.75rem;font-weight:700;overflow:hidden;box-shadow:0 3px 10px #1e3a5f1a}
.market-business-logo .market-business-image{object-fit:contain}
.market-business-heading{padding-top:22px;min-width:0;flex:1}
.market-business-heading h3{margin:0;font-size:1.15rem;line-height:1.3;color:#172e4a}
.market-business-location,.market-business-category{margin:3px 0 0;color:#64748b;font-size:.86rem}
.market-business-description{margin:0;color:#475569;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5}
.market-business-footer{margin-top:auto;padding-top:10px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;border-top:1px solid #e8eef6}
.market-business-state{margin:0;font-size:.8rem;color:#475569}
.market-business-state.is-published{color:#166534}
.market-business-state.is-preparing{color:#92400e}
.market-results .market-business-open{margin:0;padding:11px 18px}
.market-business-category[hidden],.market-business-description[hidden]{display:none}
@media(max-width:640px){.market-results .published-business-list{grid-template-columns:1fr;gap:16px}.market-business-body{padding:0 16px 16px}.market-business-logo{width:58px;height:58px}.market-business-cover{aspect-ratio:16/8}}
.market-business-engagement{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#475569;font-size:.85rem}
.market-business-stars{display:flex}
.market-business-engagement button{border:0;background:transparent;cursor:pointer;color:#976200;font-size:1.2rem;min-width:26px;min-height:32px;padding:0 3px}
.market-business-engagement .market-business-heart{color:#af264b}
.market-business-engagement button:focus-visible{outline:2px solid #2563eb;border-radius:4px}
.market-results .market-search-results{grid-template-columns:repeat(4,minmax(0,1fr))}
.market-search-results .market-business-card{grid-column:span 2}
.market-results .market-product-card{padding:12px;display:flex;flex-direction:column;gap:8px}
.market-product-card h3,.market-product-card p{margin:0}
.market-product-card a{padding:0;margin:0;background:none;color:#2054a8}
.market-product-photo{position:relative;aspect-ratio:16/9;background:#eff6ff;border-radius:9px;overflow:hidden}
.market-product-photo img{display:block;width:100%;height:100%;object-fit:cover}
.market-product-heart{position:absolute;z-index:1;top:8px;right:8px}
.market-product-card button{border:1px solid #bad1f4;background:#fff;border-radius:8px;padding:7px 10px;color:#1746a2;font-weight:700;cursor:pointer}
.market-product-card>button,.market-product-options>button{background:#135af0;color:white}
.market-product-price{font-weight:700;color:#134fb9}
.market-product-card>input{width:5em;padding:5px}
.market-product-options label{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:5px 0}
.market-product-options select{max-width:65%}
.market-product-options fieldset{min-width:0;margin:8px 0;padding:8px;border:1px solid #dce4ee}
@media(max-width:1000px){.market-results .market-search-results{grid-template-columns:repeat(2,minmax(0,1fr))}.market-search-results .market-business-card{grid-column:auto}}
@media(max-width:535px){.market-results .market-search-results{grid-template-columns:1fr}}
.market-product-card .market-product-logo{width:24px;height:24px;object-fit:contain;vertical-align:middle;margin-right:6px}
@media(min-width:1061px){.market-form{grid-template-columns:minmax(220px,1.6fr) minmax(145px,1fr) minmax(145px,1fr) auto auto}}
.market-business-cover{aspect-ratio:16/5;max-height:190px}
.market-business-availability{font-size:.78rem;color:#475569}
.market-product-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;margin-top:auto}
.market-product-quantity{display:flex;align-items:stretch;border:1px solid #bad1f4;border-radius:8px;overflow:hidden}
.market-product-quantity button{border:0;border-radius:0}
.market-product-quantity button:disabled{opacity:.45;cursor:default}
.market-product-quantity input{width:3em;border:0;text-align:center;appearance:textfield}
.market-product-quantity input::-webkit-outer-spin-button,.market-product-quantity input::-webkit-inner-spin-button{appearance:none}
.market-product-actions>button{flex:1;background:#135af0;color:white}
@media(min-width:1061px){.explore-content{max-width:1240px}}
@media(max-width:640px){.market-business-cover{aspect-ratio:16/7}}

.market-result-title{margin:18px 0 3px;font-size:1.3rem;line-height:1.2;color:#102a50}
.market-result-title span{color:#075cf5}
.market-result-title:not([hidden])+#location-status{margin:0 0 13px;color:#475569;font-size:.88rem}
.market-result-types{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.market-result-types[hidden],.market-results .published-business-card[hidden]{display:none}
.market-result-types button{border:1px solid #cad9ed;border-radius:8px;background:white;color:#163a75;padding:7px 12px;cursor:pointer}
.market-result-types button[aria-pressed=true]{background:#eaf2ff;border-color:#88b5ff;color:#0748bd}

.market-business-body{gap:6px;padding:0 18px 15px}
.market-business-identity{display:block;margin-top:-42px}
.market-business-logo{width:62px;height:62px}
.market-business-heading{display:flex;align-items:center;justify-content:space-between;column-gap:10px;flex-wrap:wrap;padding-top:4px}
.market-business-metadata{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.market-business-metadata>*{margin:0}
.market-business-category:not([hidden])+.market-business-location:not(:empty)::before{content:'·';margin-right:6px}
.market-business-engagement{gap:5px}
.market-business-engagement button{min-width:21px;min-height:26px;padding:0 2px;font-size:1.05rem}
.market-business-footer{border-top:0;padding-top:4px}
.market-business-state{border:1px solid #d8e3ee;border-radius:8px;padding:5px 8px;background:#f3f6fb;font-weight:700}
.market-business-state.is-accepting{background:#eafaeb;border-color:#caebce;color:#166534}
.market-business-state.is-accepting::before{content:'●';margin-right:6px}
.market-business-state.is-preparing{background:#fff4e7;border-color:#f5ddc2}

.market-results .market-product-card{padding:0 0 10px;overflow:hidden;gap:9px}
.market-product-photo{border-radius:0;aspect-ratio:2.54}
.market-product-card .market-product-heart{background:#132f58d9;color:white;border-color:#ffffffbd}
.market-product-card .market-product-heart[aria-pressed=true]{color:#ffd0dc}
.market-product-identity,.market-product-pricing,.market-product-actions,.market-product-options,.market-product-card>p{margin:0 12px}
.market-product-identity{display:flex;position:relative;gap:9px;min-width:0}
.market-product-identity-text{min-width:0}
.market-product-identity h3{font-size:1rem;overflow-wrap:anywhere}
.market-product-identity-text>a{font-size:.85rem;display:inline}
.market-product-card .market-product-logo-link{display:grid;place-items:center;width:60px;height:60px;flex:none;margin-top:-24px;border:3px solid white;border-radius:50%;background:#eef5ff;color:#164991;font-weight:800;overflow:hidden;box-shadow:0 2px 8px #1c37651a}
.market-product-card .market-product-logo{width:100%;height:100%;object-fit:contain;margin:0;background:white}
.market-product-rating summary{display:flex;align-items:center;gap:4px;font-size:.78rem;cursor:pointer;min-height:24px}
.market-product-rating summary::-webkit-details-marker{display:none}
.market-rating-star{color:#9b6300}
.market-product-rating .market-business-engagement button{background:white;border-color:#d6e0ed}
.market-product-pricing{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
.market-product-price{color:#075cf5;font-size:1rem}
.market-product-stock{background:#f2f5fa;color:#475569;padding:3px 6px;border-radius:7px;font-size:.72rem;font-weight:700}
.market-product-stock.is-available{background:#d9f6dc;color:#166534}
.market-product-stock.is-available::before{content:'✓';margin-right:4px}
.market-product-actions{margin-top:auto}
.market-product-options{margin-top:2px}
.market-product-card>p[role=status]:empty{display:none}
.market-product-card>p[role=status]{font-size:.85rem}

@media(min-width:1061px){
 .explore-page header nav{max-width:1240px}
 .explore-banner{height:195px}
 .banner-inner{max-width:1240px;padding:29px 36px}
 .banner-inner h1{font-size:clamp(34px,3.5vw,48px);margin:8px 0 5px}
 .explore-content .market-search{margin-top:-31px}
}
