/* One listing language, with distinct photographic compositions for discovery. */
.product-card .product-image {position:relative}
.product-card .product-photo {display:block;width:100%;height:100%;color:inherit;overflow:hidden;border-radius:inherit}
.product-card .product-photo img {display:block;width:100%;height:100%;object-fit:cover;object-position:center;transform:none}
.product-card .card-title {display:block;color:inherit;text-decoration:none;font:inherit;padding:0}
.product-card .listing-source {display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
:is(#marketView,#searchView,#closetView,#memberOverlay) .listing-source .seller-link {display:block;color:var(--mm-navy);font-size:12px;line-height:1.5;min-height:32px;margin:0;padding:6px 0;max-width:100%;overflow-wrap:anywhere;text-align:left}
.product-card .listing-kind {font-size:11px;color:var(--mm-muted);white-space:nowrap}
.product-card .product-photo:focus-visible,.product-card .card-title:focus-visible {outline:2px solid var(--mm-navy);outline-offset:4px}
:is(#marketView,#searchView,#closetView,#memberOverlay) .product-card .save {width:44px;height:44px;right:8px;top:8px;border-radius:50%;background:#fffffff2;color:var(--mm-navy)}
:is(#marketView,#searchView,#closetView,#memberOverlay) .product-card .brandline .brand-link {max-width:100%;white-space:normal;font-size:14px;font-weight:600;line-height:1.4;letter-spacing:-.02em;color:var(--mm-ink)}
:is(#marketView,#searchView,#closetView,#memberOverlay) .product-card .product-copy h3 {display:block;min-height:0;font-size:13px;font-weight:400;line-height:1.5;letter-spacing:0;margin:3px 0 5px;color:var(--mm-muted);overflow-wrap:anywhere}
:is(#marketView,#searchView,#closetView,#memberOverlay) .product-card .product-copy {padding:8px 0 0}
:is(#marketView,#searchView,#closetView,#memberOverlay) .product-card .product-foot {display:block;padding:0;margin:0}
:is(#marketView,#searchView,#closetView,#memberOverlay) .product-card .product-meta {display:flex;justify-content:flex-start;align-items:baseline;gap:6px 12px;flex-wrap:wrap;line-height:1.5}
:is(#marketView,#searchView,#closetView,#memberOverlay) .product-card .product-meta strong {font-size:14px;line-height:1.5;font-weight:500;letter-spacing:0;font-variant-numeric:tabular-nums}
:is(#marketView,#searchView,#closetView,#memberOverlay) .product-card .product-size {font-size:13px;color:var(--mm-ink);line-height:1.5}
#marketView .market-main {--discovery-gutter:32px;padding:16px var(--discovery-gutter) 72px;max-width:1800px;margin:auto}
#marketView .market-main>[hidden],#marketView .discovery-feed [hidden],#marketView .discovery-destination [hidden] {display:none!important}
#marketView .discovery-heading {display:flex;align-items:baseline;justify-content:flex-start;gap:24px;margin:0 0 14px;flex-wrap:wrap}
#marketView .discovery-heading :is(h1,h2) {font-size:clamp(28px,2.65vw,40px);line-height:1.15;font-weight:600;letter-spacing:-.035em;margin:0;color:var(--mm-ink)}
#marketView .discovery-heading h1 {font-size:clamp(32px,2.9vw,42px)}
#marketView .discovery-link {display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0;border:0;background:transparent;color:var(--mm-navy);font:500 14px/1.4 var(--sans);text-decoration:none;cursor:pointer}
#marketView .discovery-link span {font-size:22px;font-weight:400;line-height:1}
#marketView .discovery-link:hover {text-decoration:underline;text-underline-offset:4px}
#marketView .discovery-link:focus-visible,#marketView .closet-owner:focus-visible {outline:2px solid var(--mm-navy);outline-offset:4px;border-radius:2px}
#marketView .discovery-status,#marketView [data-more-status] {font-size:14px;line-height:1.6;color:var(--mm-muted);margin:0 0 16px;max-width:65ch}
#marketView .for-you {padding:0;margin:0 0 24px;border:0}
#marketView #forYouGrid,#marketView .product-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px}
#marketView .product-card .product-image {height:auto;max-height:none;aspect-ratio:4/3;border-radius:3px;background:#f3f4f3}
#marketView .product-card .product-photo>img {width:100%;height:100%;object-fit:contain;padding:0;filter:none}
#marketView .product-card .condition {display:none}
#marketView .category-feature {position:relative;display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;margin:0 calc(-1*var(--discovery-gutter));padding:28px var(--discovery-gutter) 24px;background:var(--powder,#b4d4f4);border:0;border-radius:0;color:var(--mm-ink)}
#marketView .category-feature>header {padding-top:0;min-width:0}
#marketView .category-feature h2 {font-size:clamp(36px,3.5vw,52px);line-height:1.05;letter-spacing:-.04em;font-weight:600;margin:0 0 8px}
#marketView .category-feature h2 a {color:inherit;text-decoration:none}
#marketView .category-feature .discovery-link {color:var(--mm-ink);font-size:14px;white-space:nowrap;gap:8px}
#marketView .category-composition {display:grid;grid-template-columns:1.05fr 1.12fr .9fr;align-items:start;gap:18px;padding-top:12px}
#marketView .category-composition .product-card:first-child {padding-top:36px}
#marketView .category-composition .product-card:nth-child(3) {padding-top:10px}
#marketView .category-composition .product-card .product-image {aspect-ratio:1.15}
#marketView .category-composition .product-card:nth-child(2) .product-image {aspect-ratio:1.1}
#marketView .category-composition .product-copy h3,#marketView .category-composition .listing-kind {color:#37556f}
#marketView .category-feature[data-count="1"] .category-composition {grid-template-columns:minmax(0,400px)}
#marketView .category-feature[data-count="2"] .category-composition {grid-template-columns:repeat(2,minmax(0,1fr))}
#marketView .discovery-section {padding:28px 0;margin:0;border-bottom:1px solid var(--mm-line)}
#marketView .compact-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#marketView .compact-grid .product-card {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:14px;align-items:start;position:relative}
#marketView .compact-grid .product-image {aspect-ratio:4/5;overflow:visible}
#marketView .compact-grid .product-photo {overflow:hidden;border-radius:3px}
#marketView .compact-grid .save {right:4px;top:4px;width:44px;height:44px}
#marketView .compact-grid .product-copy {padding:8px 0 0}
#marketView .compact-grid .brand-link {font-size:13px}
#marketView .compact-grid .product-copy h3 {font-size:12px}
#marketView .compact-grid .listing-source {flex-wrap:wrap;gap:0 8px;margin-top:8px}
#marketView .closet-discovery .discovery-heading {align-items:flex-end;gap:28px}
#marketView .closet-owner {display:block;background:transparent;border:0;padding:10px 0 0;color:var(--mm-navy);font:500 16px/1.5 var(--sans);text-align:left;overflow-wrap:anywhere}
#marketView .discovery-feed .closet-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#marketView .closet-grid .product-image {aspect-ratio:1.15}
#marketView .discovery-continuation {border-bottom:0;padding-top:32px}
#marketView .discovery-continuation h2 {font-size:28px}
#marketView .discovery-more {display:block;min-height:44px;margin:28px auto 0;font-size:14px}
#marketView .discovery-end {padding:20px 0;margin:24px 0 0;border-top:1px solid var(--mm-line);font-size:14px;line-height:1.5;color:var(--mm-muted)}
#marketView .discovery-back {margin:0 0 6px}
#marketView .discovery-destination .discovery-heading {margin-bottom:22px}
#marketView .discovery-destination .product-image {aspect-ratio:1.2}
#marketView .discovery-destination h1:focus {outline:none}
@media(min-width:1600px){#marketView .category-feature {grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:1100px){
 #marketView .market-main {--discovery-gutter:24px}
 #marketView .category-feature {grid-template-columns:120px minmax(0,1fr)}
 #marketView .category-composition {gap:12px}
 #marketView .compact-grid {gap:16px}
 #marketView .compact-grid .product-card {grid-template-columns:1fr;gap:2px}
 #marketView .compact-grid .product-image {aspect-ratio:1.25}
}
@media(max-width:800px){
 #marketView .market-main {--discovery-gutter:16px;padding-top:18px;padding-bottom:36px}
 #marketView .discovery-heading {gap:4px 18px;margin-bottom:12px}
 #marketView .discovery-heading :is(h1,h2) {font-size:30px}
 #marketView .discovery-heading h1 {font-size:34px}
 #marketView #forYouGrid,#marketView .product-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
 #marketView .product-card .product-image {aspect-ratio:1}
 #marketView .product-card .brandline .brand-link {font-size:13px;line-height:1.4;white-space:normal;text-overflow:clip}
 #marketView .product-card .product-copy h3 {font-size:12px;line-height:1.5;margin:3px 0 5px}
 #marketView .product-card .product-meta {gap:4px 10px;flex-wrap:wrap}
 #marketView .product-card .product-meta strong,#marketView .product-card .product-size {font-size:12px;line-height:1.5}
 #marketView .listing-source {flex-wrap:wrap;gap:0 8px}
 #marketView .listing-source .seller-link {font-size:11px;min-height:32px;line-height:1.5;padding:6px 0;display:block}
 #marketView .listing-kind {font-size:11px}
 #marketView .for-you {margin-bottom:24px}
 #marketView .category-feature {display:block;padding-top:24px;padding-bottom:24px}
 #marketView .category-feature>header {display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:12px}
 #marketView .category-feature h2 {font-size:38px;margin:0}
 #marketView .category-composition {grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px 12px;padding-top:0;align-items:start}
 #marketView .category-composition .product-card:first-child {grid-row:span 2;padding-top:28px}
 #marketView .category-composition .product-card:nth-child(3) {padding-top:0}
 #marketView .category-composition .product-card:first-child .product-image {aspect-ratio:3/4}
 #marketView .category-composition .product-card:nth-child(2) .product-image,#marketView .category-composition .product-card:nth-child(3) .product-image {aspect-ratio:1.3}
 #marketView .category-composition .product-card .save {width:44px;height:44px;right:4px;top:4px}
 #marketView .category-composition .product-card .listing-source {display:flex}
 #marketView .category-composition .product-card .listing-source .seller-link {display:none}
 #marketView .category-composition .product-copy h3 {font-size:12px}
 #marketView .category-feature[data-count="1"] .category-composition {display:block;max-width:260px}
 #marketView .category-feature[data-count="1"] .product-card:first-child {padding-top:0}
 #marketView .category-feature[data-count="2"] .category-composition {grid-template-columns:repeat(2,minmax(0,1fr))}
 #marketView .discovery-section {padding:24px 0}
 #marketView .compact-grid {display:grid;grid-template-columns:1fr;gap:18px}
 #marketView .compact-grid .product-card {grid-template-columns:108px minmax(0,1fr);gap:14px}
 #marketView .compact-grid .product-image {aspect-ratio:1}
 #marketView .compact-grid .product-copy {padding:0}
 #marketView .compact-grid .brand-link {font-size:14px}
 #marketView .compact-grid .product-copy h3 {font-size:13px}
 #marketView .compact-grid .listing-source {margin-top:4px;justify-content:flex-start;gap:10px}
 #marketView .closet-discovery .discovery-heading {align-items:baseline;gap:0 16px}
 #marketView .closet-owner {font-size:14px;padding-top:8px}
 #marketView .closet-grid {display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:14px;margin-right:calc(-1*var(--discovery-gutter));padding-right:var(--discovery-gutter);padding-bottom:10px;scrollbar-color:#7e9db8 #eaf2fa}
 #marketView .closet-grid>.product-card {flex:0 0 78%;scroll-snap-align:start}
 #marketView .closet-grid .product-card .product-image {aspect-ratio:1.1}
 #marketView .discovery-continuation h2 {font-size:28px}
 #marketView .discovery-destination .product-image {aspect-ratio:1}
 .product-card .product-photo {-webkit-tap-highlight-color:transparent}
}
@media(prefers-reduced-motion:no-preference){.product-photo:active {opacity:.88;transition:opacity .12s ease-out}}

/* Measured audit fixes across the existing shell. */
:is(input,textarea)::placeholder {color:#5e6b7b;opacity:1}
@media(max-width:800px){#mainNav button b {font-size:11px;letter-spacing:0}}
#marketView .category-composition .product-card .product-photo>img {object-fit:contain}

@media(max-width:800px){
 #mainNav button[data-view="market"] b {font-size:0}
 #mainNav button[data-view="market"] b:after {font-size:11px}
}

/* Full photographs preserve soles, toe boxes, and garment edges at every crop size. */
.product-photo {position:relative}
.listing-image-fallback:not([hidden]) {display:flex;align-items:center;justify-content:center;position:absolute;inset:0;padding:20px;background:#f3f4f3;color:var(--mm-muted);font:400 13px/1.5 var(--sans);text-align:center}
.product-photo img[hidden] {display:none!important}
