body{background-color:#fff;margin:0}body.trade-modal-open{overflow:hidden}.trade-container{box-sizing:border-box;width:100%;max-width:1200px;margin:0 auto;padding:40px 20px 60px;font-family:Segoe UI,sans-serif}.trade-hero{box-sizing:border-box;text-align:center;color:#fff;background-image:url(/trade/farm-bg.jpg);background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:14px;justify-content:center;align-items:center;width:100%;min-height:220px;margin-bottom:35px;padding:50px 20px;display:flex;position:relative;overflow:hidden}.trade-hero:before{content:"";background:#0006;position:absolute;inset:0}.trade-hero h1{z-index:1;color:#fff;letter-spacing:.3px;max-width:850px;margin:0;font-size:32px;font-weight:700;line-height:1.25;position:relative}.section-title{text-align:center;color:#222;margin:35px 0 24px;font-size:20px;font-weight:500;line-height:1.3}.category-row{flex-wrap:wrap;justify-content:center;align-items:stretch;gap:18px;margin-bottom:40px;display:flex}.category-item{box-sizing:border-box;text-align:center;color:#333;cursor:pointer;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;min-width:82px;padding:10px 12px;font-size:14px;line-height:1.3;transition:background-color .2s,transform .2s;display:flex}.category-item img{object-fit:contain;width:50px;height:50px;margin-bottom:7px;display:block}.category-item p{word-break:break-word;margin:0;font-size:14px;line-height:1.3}.category-item.active{background-color:#e6f4ea}.category-item:hover{background-color:#f0f0f0;transform:scale(1.04)}.trade-layout{grid-template-columns:1fr;gap:24px;width:100%;display:grid;position:relative}.trade-layout.with-detail{grid-template-columns:minmax(0,2fr) minmax(300px,1fr);align-items:start}.listings-wrapper{grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;align-items:stretch;gap:18px;width:100%;min-width:0;display:grid}.listings-wrapper.three-cols{grid-template-columns:repeat(3,minmax(0,1fr))}.listings-wrapper.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.listing-card-horizontal{box-sizing:border-box;cursor:pointer;background:#fff;border:1px solid #e1e1e1;border-radius:12px;align-items:center;gap:12px;width:100%;min-width:0;min-height:126px;padding:12px;transition:transform .2s,box-shadow .2s,border-color .2s;display:flex;position:relative;overflow:hidden;box-shadow:0 2px 7px #00000012}.listing-card-horizontal:hover{border-color:#d3e7d7;transform:translateY(-3px);box-shadow:0 7px 18px #0000001a}.listing-card-horizontal.selected{background-color:#f4fbf6;border-color:#4ab44c}.listing-image-wrapper{background:#f5f5f5;border-radius:9px;flex:0 0 90px;width:90px;height:90px;overflow:hidden}.listing-img{object-fit:cover;width:100%;height:100%;display:block}.listing-info{flex:1;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:12px;min-width:0;display:grid}.left-info{flex-direction:column;justify-content:center;gap:5px;min-width:0;display:flex}.listing-product-name{color:#222;word-break:break-word;-webkit-box-orient:vertical;margin:0;font-size:16px;font-weight:500;line-height:1.3;display:-webkit-box;overflow:hidden}.location{color:#666;white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:13px;line-height:1.3;overflow:hidden}.quantity{color:#555;margin:0;font-size:13px;font-weight:400;line-height:1.3}.right-info{text-align:right;flex-direction:column;justify-content:center;align-items:flex-end;gap:4px;min-width:105px;display:flex}.available-date{color:#777;white-space:nowrap;margin:0;font-size:11px;line-height:1.3}.available-date span{color:#555;font-weight:500}.price{white-space:nowrap;margin:0;font-size:14px;font-weight:400;line-height:1.3}.prebook-btn{box-sizing:border-box;color:#fff;cursor:pointer;background-color:#4ab44c;border:none;border-radius:6px;justify-content:center;align-items:center;width:82px;min-height:31px;margin-top:3px;padding:6px 10px;font-family:inherit;font-size:12px;font-weight:500;line-height:1;transition:background-color .2s,transform .2s;display:inline-flex}.prebook-btn:hover{background-color:#218838;transform:translateY(-1px)}.loading-state{box-sizing:border-box;color:#555;flex-direction:column;grid-column:1/-1;justify-content:center;align-items:center;gap:12px;width:100%;min-height:360px;font-size:14px;font-weight:400;display:flex}.spinner{box-sizing:border-box;border:4px solid #e9e9e9;border-top-color:#4ab44c;border-radius:50%;width:42px;height:42px;animation:.9s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.no-listings{box-sizing:border-box;color:#666;text-align:center;grid-column:1/-1;justify-content:center;align-items:center;min-height:180px;padding:20px;display:flex}.no-listings p{margin:0}.product-detail-panel{box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none;z-index:20;background:#fff;border:1px solid #e0e0e0;border-radius:14px;align-self:start;width:100%;max-width:none;max-height:calc(100vh - 40px);padding:18px;top:20px;overflow-y:auto;box-shadow:0 4px 16px #00000014}.product-detail-panel::-webkit-scrollbar{display:none}.detail-img{object-fit:cover;background:#f5f5f5;border-radius:10px;width:100%;height:170px;margin-bottom:16px;display:block}.close-btn{z-index:5;color:#e00000;cursor:pointer;background:#fffffff2;border:1px solid #eee;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;padding:0;font-size:17px;line-height:1;transition:background-color .2s,transform .2s;display:flex;position:absolute;top:10px;right:10px;box-shadow:0 2px 6px #00000014}.close-btn:hover{background:#fff3f3;transform:scale(1.04)}.bottom-sheet-handle{display:none}.product-header{flex-direction:column;gap:6px;min-width:0;margin-bottom:14px;display:flex}.header-row{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.product-title{color:#222;word-break:break-word;min-width:0;margin:0;font-size:20px;font-weight:500;line-height:1.3}.product-location{color:#555;margin:0;font-size:13px;line-height:1.4}.posted-date{color:#777;white-space:nowrap;flex:none;margin:2px 0 0;font-size:11px;line-height:1.3}.details-box{background:#fafafa;border-radius:9px;margin-bottom:14px;padding:12px}.scrollable{max-height:300px;overflow-y:auto}.detail-row{border-bottom:1px solid #eee;grid-template-columns:minmax(100px,40%) minmax(0,1fr);gap:12px;padding:9px 0;display:grid}.detail-row:last-child{border-bottom:none}.detail-row span:first-child{color:#333;font-size:13px;font-weight:500}.detail-row span:last-child{color:#555;text-align:right;overflow-wrap:anywhere;font-size:13px}.total-box{color:#333;background:#f1f7f2;border:1px solid #e0eee2;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:12px;font-size:14px;display:flex}.total-box strong{font-size:15px;font-weight:400}.detail-prebook-btn{width:100%;min-height:40px;margin-top:0;font-size:13px}.product-detail-overlay{display:none}@media (max-width:1100px){.trade-container{max-width:100%;padding-left:18px;padding-right:18px}.listings-wrapper.three-cols,.listings-wrapper.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.trade-layout.with-detail{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr)}.listing-card-horizontal{min-height:120px}.listing-image-wrapper{flex-basis:78px;width:78px;height:78px}.right-info{min-width:95px}}@media (max-width:900px){.trade-layout.with-detail{grid-template-columns:1fr}.product-detail-panel{max-height:calc(100vh - 30px);position:sticky;top:15px}.listings-wrapper.three-cols,.listings-wrapper.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:768px){body{overflow-x:hidden}.trade-container{width:100%;padding:20px 12px 40px}.trade-hero{border-radius:12px;min-height:170px;margin-bottom:25px;padding:35px 18px}.trade-hero h1{font-size:24px;line-height:1.25}.section-title{margin:25px 0 18px;font-size:18px}.category-row{scrollbar-width:none;flex-wrap:nowrap;justify-content:flex-start;gap:8px;margin-bottom:25px;padding-bottom:5px;overflow-x:auto}.category-row::-webkit-scrollbar{display:none}.category-item{flex:none;min-width:72px;padding:8px}.category-item img{width:44px;height:44px}.category-item p{font-size:12px}.trade-layout,.trade-layout.with-detail{width:100%;display:block}.listings-wrapper,.listings-wrapper.three-cols,.listings-wrapper.two-cols{grid-template-columns:1fr;gap:12px;width:100%;display:grid}.listing-card-horizontal{border-radius:10px;gap:10px;width:100%;min-width:0;min-height:108px;padding:10px}.listing-image-wrapper{border-radius:8px;flex:0 0 72px;width:72px;height:72px}.listing-info{grid-template-columns:minmax(0,1fr) auto;gap:8px}.left-info{gap:4px}.listing-product-name{font-size:14px;line-height:1.25}.location,.quantity{font-size:12px;line-height:1.25}.right-info{gap:3px;min-width:88px}.available-date{white-space:normal;max-width:100px;font-size:9px}.price{font-size:14px}.prebook-btn{width:76px;min-height:29px;padding:5px 7px;font-size:11px}.loading-state{justify-content:center;width:100%;min-height:55vh}.product-detail-overlay{z-index:999;background:#0000006b;animation:.2s fadeIn;display:block;position:fixed;inset:0}.product-detail-panel{box-sizing:border-box;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;z-index:1000;background:#fff;animation:.28s ease-out slideUp;box-shadow:0 -6px 25px #00000029;width:100%!important;height:72dvh!important;min-height:0!important;max-height:72dvh!important;padding:24px 16px calc(16px + env(safe-area-inset-bottom))!important;border:none!important;border-radius:18px 18px 0 0!important;margin:0!important;position:fixed!important;inset:auto 0 0!important;overflow:hidden auto!important}.bottom-sheet-handle{z-index:10;background:#d2d2d2;border-radius:999px;width:42px;height:4px;display:block;position:absolute;top:8px;left:50%;transform:translate(-50%)}.product-detail-panel .close-btn{z-index:20;justify-content:center;align-items:center;width:30px;height:30px;padding:0;display:flex;position:absolute;top:12px;right:12px}.product-detail-panel .detail-img{object-fit:cover;border-radius:10px;width:100%;height:150px;margin-bottom:12px;display:block}.product-detail-panel .product-header{margin-bottom:10px}.product-detail-panel .product-title{font-size:19px;line-height:1.3}.product-detail-panel .product-location{font-size:13px}.product-detail-panel .posted-date{font-size:11px}.product-detail-panel .details-box{margin-bottom:10px;padding:8px 10px}.product-detail-panel .scrollable{height:auto!important;max-height:none!important;overflow:visible!important}.product-detail-panel .detail-row{grid-template-columns:minmax(90px,38%) minmax(0,1fr);gap:8px;padding:8px 0}.product-detail-panel .detail-row span:first-child,.product-detail-panel .detail-row span:last-child{font-size:12px}.product-detail-panel .total-box{margin-bottom:10px;padding:10px}.product-detail-panel .detail-prebook-btn{width:100%;min-height:42px;margin-bottom:4px}.bottom-sheet-handle{background:#d2d2d2;border-radius:999px;width:42px;height:4px;display:block;position:absolute;top:8px;left:50%;transform:translate(-50%)}.product-detail-panel .close-btn{width:30px;height:30px;font-size:16px;top:16px;right:14px}.detail-img{border-radius:10px;width:100%;height:190px;margin-bottom:14px}.product-header{margin-bottom:12px}.header-row{padding-right:35px;display:block}.product-title{font-size:19px;line-height:1.3}.posted-date{white-space:normal;margin-top:5px;font-size:11px}.product-location{font-size:13px}.details-box{margin-bottom:12px;padding:10px}.scrollable{max-height:260px}.detail-row{grid-template-columns:minmax(90px,38%) minmax(0,1fr);gap:8px;padding:9px 0}.detail-row span:first-child,.detail-row span:last-child{font-size:12px}.total-box{margin-bottom:10px;padding:11px}.total-box strong{font-size:17px}.detail-prebook-btn{width:100%;min-height:42px;font-size:13px}}@media (max-width:480px){.trade-container{padding:16px 10px 30px}.trade-hero{min-height:145px;padding:28px 14px}.trade-hero h1{font-size:21px}.listing-card-horizontal{gap:8px;min-height:102px;padding:8px}.listing-image-wrapper{flex-basis:64px;width:64px;height:64px}.listing-product-name{font-size:13px}.location,.quantity{font-size:11px}.right-info{min-width:80px}.available-date{font-size:8.5px}.price{font-size:13px}.prebook-btn{width:70px;min-height:27px;font-size:10px}.product-detail-panel{max-height:92vh;padding-left:13px;padding-right:13px}.detail-img{height:175px}}@media (max-width:360px){.listing-card-horizontal{gap:7px}.listing-image-wrapper{flex-basis:58px;width:58px;height:58px}.listing-product-name{font-size:12px}.location,.quantity{font-size:10px}.right-info{min-width:72px}.available-date{font-size:8px}.price{font-size:12px}.prebook-btn{width:64px;font-size:9px}}@keyframes slideUp{0%{opacity:.7;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.listing-card-horizontal,.category-item,.prebook-btn,.product-detail-panel,.product-detail-overlay{transition:none;animation:none}.spinner{animation:none}}
