/* Wooden shelves and cream inventory cards, adapted from the October reference set. */
.market-look{--wood:#714322;--cream:#fff1d2;--edge:#5f371d;background-position:center;background-size:cover}
.market-look:after{background:linear-gradient(#38200e35,#38200e80)}
.market-look .module-wash{background:repeating-linear-gradient(0deg,#b3824805 0 3px,#44231104 3px 5px)}
.market-look .module-topbar{top:18px;width:calc(100% - 48px);max-width:1500px;height:105px;grid-template-columns:240px 1fr 76px;gap:20px}
.market-look .module-heading{grid-column:2;grid-row:1;justify-self:center;text-align:center;min-width:330px;padding:12px 42px 14px;border:4px solid #59351d;border-radius:12px;background:repeating-linear-gradient(0deg,#0000 0 24px,#64381636 25px 27px),linear-gradient(#b87d3c,#905725);box-shadow:inset 0 0 0 3px #d8a35f,0 5px 0 #43271175;position:relative}
.market-look .module-heading:before,.market-look .module-heading:after{content:'';position:absolute;top:-26px;width:9px;height:32px;border:2px solid #422e20;border-radius:8px;background:linear-gradient(90deg,#554737,#c7b9a0,#514536)}
.market-look .module-heading:before{left:35px}.market-look .module-heading:after{right:35px}
.market-look .module-heading small{display:none}.market-look .module-heading h2{font-size:46px;font-weight:700;color:#fff2d9;text-shadow:2px 3px #543315;line-height:1.15}
.market-look .module-heading p{color:#f3d4a2;font-size:16px;margin-top:5px}
.market-look .module-back{grid-column:3;grid-row:1;width:65px;height:65px;background:radial-gradient(circle at 40% 20%,#ff8870,#ce4130 75%);border:3px solid #702b1b;box-shadow:inset 0 0 0 3px #ffac7c88,0 4px 0 #4f2a19;color:#fff5e4;font:58px/1.15 Georgia,serif;padding-bottom:8px}
.market-look .module-wallet{grid-column:1;grid-row:1;display:flex;align-items:center;gap:13px;justify-content:center;min-width:0;padding:12px 18px;border:4px solid #60381b;border-radius:30px;background:linear-gradient(#84552b,#644021);box-shadow:inset 0 0 0 3px #be8c49,0 4px 0 #472b1980;color:#fff5d8}
.market-look .module-wallet:before{content:'₫';display:grid;place-items:center;width:40px;height:40px;background:#82994d;border:3px solid #b5ca76;border-radius:9px;transform:rotate(-9deg);font-size:32px;color:#f1f1be}
.market-look .module-wallet small{display:none}.market-look .module-wallet b{font-size:30px;white-space:nowrap}
.market-look .module-body{top:144px;bottom:22px;width:calc(100% - 48px);max-width:1500px;padding:0;overflow:hidden;border:5px solid #60391e;border-radius:18px;background:repeating-linear-gradient(0deg,#0000 0 88px,#4228121a 89px 92px),linear-gradient(100deg,#935f31,#663a1e);box-shadow:inset 0 0 0 3px #b98243,0 8px 0 #41271866,0 12px 24px #38201055}
.market-layout{height:100%;display:grid;grid-template-columns:190px minmax(0,1fr);gap:0;padding:10px}
.market-categories{padding:10px 10px 10px 0;display:flex;flex-direction:column;gap:9px;border-right:2px solid #47291366}
.market-categories button{min-height:88px;padding:14px 12px;display:flex;align-items:center;text-align:left;gap:12px;color:#fbeed6;border:2px solid #5e371d;border-radius:10px;background:linear-gradient(120deg,#8b5a2e,#71431f);box-shadow:inset 0 1px #bb8d5155;font-size:24px;transition:background .15s,transform .15s}
.market-categories button span{font-size:34px;width:34px;text-align:center}.market-categories button b{font-weight:400;line-height:1.15}
.market-categories button[aria-pressed=true]{color:#533414;background:linear-gradient(120deg,#ffe5a0,#f9c65e);border-color:#a97930;box-shadow:inset 0 0 0 3px #fff0b6,0 3px 0 #4c2d19}
.market-look button:focus-visible,.market-look summary:focus-visible{outline:3px solid #fff2ac;outline-offset:3px}.market-look button:active{transform:translateY(2px)}
.market-content{overflow:auto;min-height:0;min-width:0;padding:6px 6px 16px 12px;scrollbar-width:thin;scrollbar-color:#d5a05b #694223;overscroll-behavior:contain}
.market-look .stock-grid,.market-look .recipe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;align-items:start}
.market-look .stock-card,.market-look .recipe-card{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;min-height:0;padding:11px 10px 12px;border:2px solid #ba8b51;border-radius:12px;background:radial-gradient(ellipse at 40% 15%,#fff7e4,#f8e5c0);box-shadow:inset 0 0 0 3px #fff6df,0 3px 0 #44251260;color:#58381f;position:relative}
.market-look .stock-card> b,.market-look .recipe-card> b{font-size:23px;font-weight:400;text-align:center;line-height:1.15;min-height:46px;display:grid;place-items:center;margin:0 0 3px}
.market-picture{height:146px;position:relative;display:flex;align-items:center;justify-content:center;margin:0 0 7px}
.market-art{height:100%;width:85%;overflow:hidden;filter:drop-shadow(1px 4px 1px #70431e22)}
.market-recipe-original{object-fit:contain;display:block;max-width:100%;filter:drop-shadow(0 3px 2px #57351d25)}
.market-photo-cutout{object-fit:contain;display:block;max-width:100%;filter:drop-shadow(0 3px 2px #57351d25)}
.market-look .recipe-card .market-recipe-original{transform:translateY(-4px) scale(1.12);transform-origin:center}
.market-look .recipe-card[data-item="dabao"] .market-recipe-original{transform:translateY(-12px) scale(1.1)}
.market-art-fallback{font-size:78px;line-height:1.15}
.market-quantity{position:absolute;bottom:2px;right:0;padding:3px 10px;border:2px solid #b18044;border-radius:11px;background:#79502c;color:#fff6dc;font-size:25px;line-height:1.15}
.market-look .recipe-card .market-picture{height:174px;padding-bottom:28px}
.market-price{position:absolute;bottom:0;left:0;right:0;border-radius:9px;background:#80502a;color:#fff4d9;padding:4px 2px;text-align:center;font-size:18px;line-height:1.25;box-shadow:inset 0 1px #b68850}
.market-look .stock-copy,.market-look .recipe-card>div{display:flex;flex-direction:column;min-width:0}
.market-look .stock-copy{gap:2px}.market-look .stock-copy>span{font-size:15px;color:#795b37;line-height:1.25}.market-look .stock-copy>i{margin:5px 0;height:7px;background:#e2c897;border:1px solid #bb945d}
.market-look .market-status{font-size:12px;letter-spacing:.03em;color:#67743a;text-align:center;margin-bottom:4px}.market-look .stock-low .market-status,.market-look .stock-empty .market-status{color:#a04b2c}
.market-look .stock-market-actions{display:grid;grid-template-columns:1fr;gap:5px;margin-top:9px;width:100%}
.market-look .stock-market-actions button:first-child{display:flex;flex-direction:row;gap:7px;align-items:center;justify-content:center;min-height:44px}
.market-look .stock-market-actions button:first-child b{font-size:20px}.market-look .stock-market-actions button:first-child small{font-size:16px}
.market-look .stock-market-actions .market-haggle-pick{min-height:35px;background:#eacf9d;border:1px solid #b48951;color:#71502e;box-shadow:none;font-size:16px}
.market-look .recipe-actions{display:grid;grid-template-columns:1fr;gap:6px;margin-top:10px}.market-look .recipe-actions button{min-height:44px;font-size:18px}
.market-look .recipe-actions button+button{min-height:35px;background:#f1d8a8;color:#775527;border-color:#bc975d;box-shadow:none;font-size:16px}
.market-look .recipe-card.featured{border-color:#b89947;background:radial-gradient(ellipse at top,#fff6d3,#f4dcaa)}
.market-look .recipe-card.locked{filter:none;opacity:.9}.market-look .recipe-card.locked .market-art{filter:saturate(.72)}.market-look .recipe-card.locked .market-recipe-original{filter:drop-shadow(1px 4px 2px #58321d30) saturate(1.26) contrast(1.12)}
.market-look .recipe-card em{font-size:13px;line-height:1.25;color:#735636;min-height:34px;text-align:center}
.market-details{border-top:1px dashed #b68c5466;margin-top:5px;padding-top:3px;font-size:15px;color:#79512c}
.market-details summary{cursor:pointer;min-height:32px;display:list-item;align-content:center;font-size:15px}
.market-details[open] summary{margin-bottom:5px}.market-details .market-reason{font-size:14px;line-height:1.3;margin-bottom:6px;display:block}
.market-look .market-details .pricing-row{display:flex;gap:4px;flex-wrap:wrap}.market-look .pricing-row button{flex:1;min-height:42px;font-size:15px;padding:4px}
.market-look .stock-alert{margin:0;padding:10px 13px;border:0;background:#f4dfb8;color:#614022;box-shadow:none;border-radius:9px}
.market-look .shift-warehouse-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;padding:9px 12px;border:1px solid #c59a5b;border-radius:10px;background:#f5e2bf;color:#674329;font:600 14px/1.35 'Segoe UI',sans-serif}
.market-look .shift-warehouse-actions span{min-width:0}
.market-look .shift-warehouse-actions button{flex:none;min-height:44px;padding:8px 15px;border:2px solid #6a7d40;border-radius:9px;background:#87a65b;color:#fffbea;font:700 15px/1.25 'Segoe UI',sans-serif;cursor:pointer}
@media(max-width:650px){.market-look .shift-warehouse-actions{align-items:stretch;flex-direction:column}.market-look .shift-warehouse-actions button{width:100%}}
.market-overview{margin-bottom:10px}.market-overview .module-summary{margin-bottom:10px;gap:10px}.market-overview .module-summary>div{padding:8px 13px;border:1px solid #c89b5c;border-radius:10px;background:#f5dfb9;box-shadow:inset 0 0 0 2px #fff0d0}
.market-overview .module-summary b{font-size:25px}.market-overview .module-summary span{font-size:14px;line-height:1.25;display:block}.market-overview .module-summary small{font-size:12px}
.market-morning-details{padding:6px 12px;border:1px solid #c29456;background:#eed4a5;border-radius:9px;margin-top:6px}.market-morning-details>summary{font-size:18px;min-height:34px}
.market-morning-details .market-morning,.market-morning-details .forecast-card,.market-morning-details .haggle-card{margin-top:10px}.market-morning-details .market-price-strip{flex-wrap:wrap}
.market-empty{padding:40px 20px;text-align:center;font-size:23px;color:#fff0cc}
@media(min-width:1450px){.market-look .stock-grid,.market-look .recipe-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1050px){.market-layout{grid-template-columns:145px 1fr}.market-categories button{font-size:21px;gap:6px;padding:10px 8px}.market-categories button span{font-size:26px;width:28px}.market-look .module-topbar{grid-template-columns:185px 1fr 58px;gap:12px}.market-look .module-heading{min-width:280px;padding:13px 22px}.market-look .module-wallet{padding:10px}.market-look .module-wallet b{font-size:24px}.market-look .module-back{width:56px;height:56px;font-size:49px}}
@media(max-width:700px){
 .market-look .module-topbar{top:10px;left:12px;transform:none;width:calc(100% - 24px);height:80px;grid-template-columns:1fr 50px;gap:6px}
 .market-look .module-heading{grid-column:1;justify-self:start;min-width:0;background:none;box-shadow:none;border:0;text-align:left;padding:0}.market-look .module-heading:before,.market-look .module-heading:after{display:none}.market-look .module-heading h2{font-size:35px}.market-look .module-heading p{display:none}
 .market-look .module-wallet{grid-column:1;justify-self:end;padding:6px 10px;border-width:2px;gap:6px;box-shadow:inset 0 0 0 1px #ba894c;margin-top:41px}.market-look .module-wallet:before{width:22px;height:23px;font-size:18px;border-width:1px}.market-look .module-wallet b{font-size:21px}
 .market-look .module-back{grid-column:2;width:46px;height:46px;font-size:42px;padding-bottom:6px}
 .market-look .module-body{top:99px;bottom:8px;width:calc(100% - 14px);border-width:3px;border-radius:13px}
 .market-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);padding:5px}
 .market-categories{flex-direction:row;overflow-x:auto;border-right:0;padding:0 0 8px;gap:6px;scrollbar-width:none}.market-categories button{min-height:46px;white-space:nowrap;font-size:18px;padding:7px 10px;gap:4px;flex-shrink:0;border-radius:8px}.market-categories button span{font-size:19px;width:21px}
 .market-content{padding:2px 2px 14px}.market-look .stock-grid,.market-look .recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.market-look .stock-card,.market-look .recipe-card{padding:9px 7px;border-radius:10px}
 .market-look .stock-card>b,.market-look .recipe-card>b{font-size:21px;min-height:43px}.market-picture{height:125px}.market-look .recipe-card .market-picture{height:151px}.market-price{font-size:14px}.market-quantity{font-size:22px}
 .market-look .stock-market-actions .market-haggle-pick,.market-look .recipe-actions button+button,.market-details summary{min-height:44px}.market-overview .module-summary{grid-template-columns:1fr}.market-overview .module-summary>div{padding:7px 10px}.market-overview .module-summary>div+div{display:none}
 .market-look .stock-copy>span{font-size:13px}.market-look .stock-market-actions button:first-child{flex-direction:column;gap:0;min-height:49px}.market-look .stock-market-actions button:first-child small{font-size:14px}.market-look .stock-market-actions button:first-child b{font-size:18px}
}
@media(max-height:520px) and (min-width:701px){.market-look .module-topbar{top:6px;height:65px}.market-look .module-heading{padding:7px 28px}.market-look .module-heading h2{font-size:33px}.market-look .module-heading p{display:none}.market-look .module-body{top:80px;bottom:8px}.market-layout{grid-template-columns:140px 1fr}.market-categories button{min-height:54px;font-size:19px}.market-look .module-back{width:48px;height:48px;font-size:42px}.market-look .stock-grid,.market-look .recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
