/* A compact search area gives the inventory the first screen. */
.social-feed #marketplace{gap:0;min-width:0}
.social-feed #marketplace>.section-heading{order:0;padding:20px 24px;margin:0 0 14px;min-height:0;border-radius:16px}
.social-feed #browse-title{font-size:clamp(27px,3vw,38px);line-height:1.15;letter-spacing:-.035em}
.social-feed .section-heading .eyebrow{font-size:10px;margin:0 0 8px;letter-spacing:.15em}
.social-feed .marketplace-intro{font-size:14px;line-height:1.5;margin:8px 0 0;max-width:none}
.social-feed #marketplace>.browse-tools{order:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0 0 10px}
.social-feed .search{min-width:0;padding:0 14px;border-color:#c9b99e;border-radius:13px;box-shadow:none}
.social-feed .search svg{width:20px;height:20px;flex:none}
.social-feed .search input{min-width:0;min-height:48px;font-size:16px;padding:10px 0}
.social-feed .search input::placeholder{color:#746a5d;opacity:1}
.social-feed .search-refinements{min-width:0;min-height:48px;border:0;background:transparent;z-index:30}
.social-feed .search-refinements>summary{min-height:48px;gap:7px;padding:10px 13px;border:1px solid #c9b99e;font-size:14px;border-radius:13px;box-sizing:border-box}
.social-feed .search-refinements>summary>b{font-weight:700}
.social-feed .search-refinements>summary .browse-filter-count:not([hidden]){display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:6px;background:var(--wine,#682d3c);color:#fffdf7;font-size:11px;font-weight:700}
.social-feed #marketplace>#departments{order:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 8px;padding:0;border:0}
.social-feed .department-card{min-width:0;min-height:46px;justify-content:center;padding:9px 10px;gap:7px;border-radius:12px;border:1px solid #ded0b8;background:#fffdf7;flex-direction:row}
.social-feed .department-card b{font-size:14px;line-height:1.25;white-space:nowrap}
.social-feed .department-card small,.social-feed .department-arrow{display:none}
.social-feed .department-icon{width:22px;height:22px;flex:none;background:none}
.social-feed .department-icon svg{width:22px;height:22px}
.social-feed #product-shortcuts{order:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 10px}
.social-feed #product-shortcuts .chip{grid-column:auto;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px 10px;border-radius:11px;font-size:13px;line-height:1.25;background:#fffdf7;border-color:#ded0b8}
.social-feed #product-shortcuts .chip[aria-pressed=true]{background:var(--wine,#682d3c);border-color:var(--wine,#682d3c);color:#fffdf7}
.social-feed .browse-scope{order:4;display:grid;grid-template-columns:minmax(90px,.9fr) minmax(0,1.7fr);align-items:center;gap:8px;margin:0 0 8px}
.social-feed .browse-scope .location-visible{position:relative;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 24px 10px 11px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:11px;border:1px solid #ded0b8;background:#fffdf7;font-size:13px;font-weight:650;color:#655747}
.social-feed .browse-scope .location-visible:before{content:none}
.social-feed .browse-scope .location-visible:after{content:'⌄';position:absolute;right:9px;top:10px}
.social-feed .discovery-modes{display:grid;grid-template-columns:.9fr 1.15fr 1fr;gap:2px;padding:3px;margin:0;border:1px solid #ded0b8;border-radius:12px;background:#ebe2d2}
.social-feed .discovery-modes .btn{min-width:0;min-height:44px;padding:7px 5px;margin:0;border:0;border-radius:8px;background:transparent;color:#655747;white-space:nowrap;font-size:12px;line-height:1.3;font-weight:650}
.social-feed .discovery-modes .btn[aria-pressed=true]{background:var(--wine,#682d3c);color:#fffdf7;box-shadow:0 2px 5px #54273114}
.social-feed #market-note{position:absolute;width:1px;height:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.social-feed #active-refinements{order:5;display:flex;gap:6px;flex-wrap:wrap;margin:0}
.social-feed #active-refinements>button{min-height:36px;margin:0 0 6px;padding:7px 11px;border-radius:9px;font-size:12px}
.social-feed #active-refinements>[data-remove-refinement=location]{display:none}
.social-feed .results-line{order:6;display:flex;align-items:center;flex-wrap:nowrap;gap:10px;min-height:44px;margin:0 0 10px}
.social-feed .results-line #count{flex:1 1 auto;min-width:0;margin:0;font-size:13px;line-height:1.4}
.social-feed .results-line #sort{flex:0 1 156px;min-width:135px;min-height:44px;font-size:12px;border:1px solid #ded0b8;border-radius:10px;background:#fffdf7}
.social-feed #marketplace>main{order:7}
.social-feed .search-refinements[open] #local-discovery{position:fixed;top:calc(var(--site-header-height,106px) + 12px);bottom:24px;right:max(24px,calc((100vw - 1460px)/2 + 30px));width:min(640px,calc(100vw - 48px));max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;overflow:auto;overscroll-behavior:contain;border:1px solid #c9b99e;border-radius:16px;background:#fffdf7;color:#242220;box-shadow:0 18px 55px #24222030}
.social-feed #local-discovery>.browse-filter-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-18px;z-index:1;background:#fffdf7;padding:8px 0 12px;border-bottom:1px solid #ded0b8}
.browse-filter-heading h3{margin:0;font-size:20px;letter-spacing:-.02em}
.browse-filter-heading p{margin:4px 0 0;font-size:12px;color:#655747}
.browse-filter-heading .btn{min-height:44px;padding:9px 14px;color:#682d3c;background:#f3eddf;border:1px solid #ded0b8;border-radius:10px;font-size:13px}
.social-feed #local-discovery :is(input,select){font-size:16px;background:#fffdf7;color:#242220;border-color:#c9b99e}
.social-feed #local-discovery>.browse-category-options,.social-feed #local-discovery>.category-refinements,.social-feed #local-discovery>.browse-delivery-options,.social-feed #local-discovery>.browse-search-extras{grid-column:1/-1;min-width:0;margin:0;padding:12px 0 0;border-top:1px solid #e4d9c5}
.social-feed .browse-category-options:has(>#chips[hidden]){display:none}
.browse-filter-label{grid-column:1/-1;font-size:12px;font-weight:750;letter-spacing:.02em;color:#655747;margin:0 0 8px}
.social-feed #local-discovery #chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;overflow:visible}
.social-feed #local-discovery #chips .chip{flex:0 1 auto;min-height:42px;font-size:12px;padding:8px 11px;background:#f3eddf;color:#655747;border-color:#ded0b8}
.social-feed #local-discovery #chips .chip[aria-pressed=true]{background:#682d3c;color:#fffdf7;border-color:#682d3c}
.social-feed #local-discovery>.category-refinements:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.social-feed #local-discovery .category-refinements label{min-width:0;margin:0;font-size:12px;line-height:1.4}
.social-feed #local-discovery .category-refinements>:is(.btn,p){grid-column:1/-1}
.social-feed #local-discovery .shipping-search{margin:0;min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap}
.social-feed #local-discovery #shipping-destination-wrap{margin:8px 0}
.social-feed #local-discovery #shipping-destination-wrap small{font-size:12px;line-height:1.5}
.social-feed #local-discovery .free-toggle{min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px;margin:0}
.social-feed #local-discovery input[type=checkbox]{width:18px;height:18px;min-height:18px;max-width:18px;flex:0 0 18px;margin:0;padding:0}
.social-feed #local-discovery .browse-search-extras{display:flex;flex-wrap:wrap;gap:8px}
.social-feed #local-discovery .browse-search-extras .btn{flex:1 1 150px;min-height:44px;line-height:1.35;padding:9px 10px;border:1px solid #ded0b8;border-radius:10px;background:#f3eddf;color:#682d3c;font-size:13px}
.social-feed #local-discovery #search-clear-location{background:#f3eddf;color:#655747;border-color:#ded0b8}
.social-feed #local-discovery .local-search-actions{border-color:#ded0b8}
.social-feed #local-discovery .local-search-actions .btn{color:#682d3c}
@media(max-width:600px){
 body:not(.native-app) .social-shell{padding:12px 14px 0!important}
 .site-header .bar{gap:8px;min-height:48px}
 .site-header .logo{font-size:26px;letter-spacing:-1px;gap:7px}.site-header .logo .mark{width:20px;height:24px;flex:none}
 .site-header .actions{gap:6px}
 .site-header .site-menu>summary{display:grid;place-items:center;width:44px;min-height:44px;padding:9px}
 .site-header .site-menu>summary>span{display:none}
 .site-header .site-menu>summary>svg{width:22px;height:22px}
 .site-header .social-notification,.site-header .actions #btn-messages{min-width:44px;width:44px;height:44px;min-height:44px}
 .social-feed #marketplace>.section-heading{padding:16px 18px;margin-bottom:12px;border-radius:14px}
 .social-feed .section-heading .eyebrow{font-size:9px;letter-spacing:.13em;margin-bottom:7px}
 .social-feed #browse-title{font-size:28px;line-height:1.12}
 .social-feed .marketplace-intro{margin-top:8px;font-size:12px;line-height:1.5}
 .social-feed .section-heading:after{width:120px;height:120px;right:-55px;top:-65px}
 .social-feed .search-refinements>summary{padding:10px 11px;font-size:13px}
 .social-feed .department-card{padding:9px 6px;gap:5px;min-height:44px}
 .social-feed .department-card b{font-size:12px}
 .social-feed .department-icon,.social-feed .department-icon svg{width:18px;height:18px}
 .social-feed #product-shortcuts .chip{font-size:12px;padding:7px 8px}
 .social-feed .browse-scope .location-visible{font-size:12px}
 .social-feed .discovery-modes .btn{font-size:11px;padding:7px 3px}
 .social-feed .search-refinements[open] #local-discovery{position:fixed;top:calc(var(--site-header-height,68px) + 10px);bottom:calc(78px + env(safe-area-inset-bottom,0px));left:14px;right:14px;width:auto;max-height:none;padding:16px;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
 .social-feed #local-discovery>*{grid-column:auto}
 .social-feed #local-discovery>:is(.location-picker,.browse-filter-heading,.browse-category-options,.category-refinements,.browse-delivery-options,.local-search-actions,.browse-search-extras,.note,.error,.location-help){grid-column:1/-1}
 .social-feed .browse-filter-heading{position:sticky;top:-16px;z-index:1;background:#fffdf7;margin:-1px -1px 0;padding:8px 0 12px}
 .social-feed .browse-filter-heading h3{font-size:18px}
}
@media(max-width:350px){
 .site-header .logo{font-size:23px}
 .site-header .actions{gap:4px}
 .social-feed .department-card b{font-size:11px}
 .social-feed .department-icon,.social-feed .department-icon svg{width:16px;height:16px}
 .social-feed .discovery-modes .btn{font-size:10px}
 .social-feed .search-refinements>summary{position:relative;width:44px;min-height:48px;padding:10px;justify-content:center}.social-feed .search-refinements>summary>b,.social-feed .search-refinements>summary .refine-chevron{display:none}.social-feed .search-refinements>summary>svg{display:block;width:20px;height:20px}.social-feed .search-refinements>summary .browse-filter-count:not([hidden]){position:absolute;right:-4px;top:-6px;min-width:18px;height:18px}
}

/* Keep the complete-marketplace action readable at every screen width. */
.social-feed #product-shortcuts [data-product-shortcut=all]{grid-column:1/-1;font-weight:750;border-color:var(--wine,#682d3c);color:var(--wine,#682d3c)}
.social-feed #product-shortcuts [data-product-shortcut=all][aria-pressed=true]{color:#fffdf7}
.social-feed #marketplace>.refine-products{order:3;min-height:44px;width:100%;margin:0 0 8px;padding:8px 10px;text-align:left;background:#f3eddf;border:1px solid #ded0b8;border-radius:10px;color:var(--wine,#682d3c);font-size:13px;font-weight:650;white-space:normal}
