/* v1.5 audit corrections. Keep the approved green, type and overlay hero. */
.ui-icon{width:20px;height:20px;flex:none;vertical-align:middle}.nav-trigger,.menu-type,.menu-section,.category-back{display:flex;align-items:center;gap:10px}.menu-type,.menu-section{justify-content:space-between}.category-choice>.ui-icon{margin-left:auto}.back{display:grid;place-items:center;width:44px;height:44px}.category-heading:empty{display:none}.category-main h1{margin:16px 0}.category-main .crumb{font-size:13px}.category-main .muted{font-size:14px}.card .photo{background:#f4f5f2}.card .photo img{object-fit:contain;padding:14px}.card-location{font-size:12px;color:var(--muted);margin-top:4px}.card .product-name{line-height:1.4;min-height:2.8em}.seller-page h2{margin-bottom:24px}.seller-page .grid{grid-template-columns:repeat(4,minmax(0,1fr))}.form-actions>a,.filters .text-link{display:inline-flex;align-items:center;min-height:44px}.seller small{font-size:12px}.mock-footer{background:#f6f7f4;padding:24px 16px}.mock-footer p{margin:0 auto;max-width:700px;font-size:12px}.mock-footer details{max-width:700px;margin:auto}.mock-footer summary{padding:10px;min-height:44px}.mock-footer details p{margin:12px 0}.mock-footer a{text-decoration:underline}.purchase-actions{display:flex;gap:12px;margin:18px 0}.purchase-actions>.btn:first-child{flex:1}.purchase-actions .outline{min-width:48px}.location{font-size:13px;color:var(--muted)}.detail .zoom-button img{object-fit:contain;height:490px;background:#f4f5f2;padding:20px}.thumbs{margin-top:12px}.thumbs button[aria-pressed=true]{outline:2px solid var(--accent)}.thumbs img{object-fit:contain}.detail-info .detail-price{margin-top:12px}.detail-info h2{font-size:20px}.condition{padding:16px}.btn,button,a{transition:background-color .15s,color .15s}.btn:active{transform:translateY(1px)}.state-panel .text-link{margin-left:12px}.profile-head{gap:16px}.category-choice{min-height:56px}.hero-secondary{min-height:44px!important}.review-product img{object-fit:contain}.account-links{padding-bottom:0}.section-heading .text-link{flex-shrink:0}
@media(max-width:1000px){.seller-page .grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.detail .detail-cover>img{height:270px;padding:10px}.detail .thumbs img{height:52px;width:44px}.detail .thumbs{gap:8px}.detail-info{padding-top:4px}.detail-info .crumb{font-size:12px;margin:6px 0}.detail-price{font-size:28px!important}.purchase-actions{margin:12px 0}.card .photo img{padding:8px}.seller-page .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mock-footer{padding-bottom:24px}.home-page .section-heading{margin-top:24px}.home-page .section-heading h2{font-size:21px}.profile-head{flex-wrap:wrap}.profile-head>.btn{margin-left:auto}.category-heading{margin-top:12px}.category-heading:has(.category-back:only-child){margin-top:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.btn:active{transform:none}}
/* Uniform portrait feed. Crop only thumbnails; detail/zoom retains the full source. */
.card .photo>a:first-child{aspect-ratio:3/4}
.card .photo img{object-fit:cover;object-position:var(--photo-position,50% 50%);padding:0}
@media(min-width:1001px){.grid,.catalog .grid,.seller-page .grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 16px}.catalog{grid-template-columns:170px minmax(0,1fr);gap:24px}.home-page .section-heading{margin:20px 0 16px}}
@media(min-width:761px) and (max-width:1000px){.grid,.catalog .grid,.seller-page .grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Home categories filter the existing feed, independently from the menu tree. */
.home-page>.feed-categories{display:flex;gap:28px;margin:0 0 16px;padding:0;border-bottom:1px solid var(--border)}
.home-page>.feed-categories .chip{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:12px 0;min-height:46px;font-size:14px;flex:none}
.home-page>.feed-categories .chip:first-child{border-bottom-color:transparent}
.home-page>.feed-categories .chip[aria-current]{border-bottom-color:var(--text);font-weight:600}
.feed-refinements{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:14px}
.feed-refinements label{display:flex;align-items:center;gap:8px}
.feed-refinements label[hidden]{display:none}
.feed-refinements select{min-height:44px;max-width:160px;padding:8px 28px 8px 12px;border:1px solid var(--border);border-radius:4px;background:#fff;color:var(--text);font:inherit}
#feed-count{margin-left:auto;color:var(--muted);white-space:nowrap}
#home-feed>.empty-state{grid-column:1/-1}
.home-page .section-heading{margin:20px 0 16px}
@media(min-width:761px){.home-page>.feed-categories{display:none}}
@media(max-width:760px){.home-page>.feed-categories{justify-content:space-between;gap:12px;overflow-x:auto}.home-page>.feed-categories .chip{font-size:14px}.home-page .section-heading h2{font-size:20px}.feed-refinements{gap:8px}.feed-refinements label{gap:6px}.feed-refinements select{max-width:132px}.feed-refinements:has(#feed-brand-label:not([hidden])) #feed-count{flex-basis:100%;margin:0}}

.category-entry{display:flex;align-items:stretch;border-bottom:1px solid var(--border)}
.category-entry .category-choice{flex:1;min-width:0;border:0;margin:0}
.category-expand{display:grid;place-items:center;flex:0 0 52px;min-height:56px;border:0;background:transparent;color:var(--text)}
.category-expand:hover{background:var(--ground)}
.category-expand:focus-visible,.feed-categories a:focus-visible{outline:2px solid var(--text);outline-offset:-2px}

.feed-categories{scroll-margin-top:16px}

.home-page .section-heading{align-items:center;gap:20px}
.home-page .feed-refinements{margin-left:auto}
@media(max-width:760px){.home-page .section-heading{flex-wrap:wrap;gap:12px;margin-top:16px}.home-page .section-heading>.text-link{margin-left:auto}.home-page .feed-refinements{order:3;flex-basis:100%;margin:0}.home-page .section-heading h2{margin:0}}
