@import url('https://analog-deal-hunter-bb0prspnu-bot-flip.vercel.app/styles.css');
/* Temporary exact-style bridge to the healthy bb0 deployment. This keeps the preview pixel-consistent while the source is being recovered. */
.seller-description{margin:22px 0 18px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.seller-description .detail-kicker{margin:0 0 10px}
#sellerDescription{white-space:pre-wrap;line-height:1.65;font-size:14px;color:#4e4b47}

/* Seller description readability */
.seller-description{margin:22px 0 18px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
#sellerDescription{line-height:1.65;font-size:14px;color:#4e4b47}
.seller-block{padding:10px 0;border-bottom:1px solid #e7e1d8}.seller-block:last-child{border-bottom:0}
.seller-block b{display:block;font-size:11px;letter-spacing:.05em;color:var(--ink);margin-bottom:4px}.seller-block p,.seller-paragraph{margin:0 0 10px;white-space:pre-wrap}.seller-paragraph:last-child{margin-bottom:0}


/* V5: stable marketplace card geometry + progressive detail */
.product-card{display:flex;flex-direction:column;min-height:100%}.product-image{width:100%;aspect-ratio:1/1;overflow:hidden;background:#e6e1d8}.product-image img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}.product-body{display:flex;flex-direction:column;flex:1}.card-actions{margin-top:auto}
.main-route-photo{object-fit:contain;object-position:center;background:#fff}.thumb-route img{object-fit:cover;object-position:center}
#sellerDescription{white-space:normal!important;line-height:1.7}.seller-description .translating:after{content:'  · đang dịch…';font-size:10px;color:var(--muted)}
.seller-block{padding:12px 0;border-bottom:1px solid #e7e1d8}.seller-block b{font-size:11px;letter-spacing:.04em;margin-bottom:6px}.seller-block p,.seller-paragraph{margin:0 0 12px;white-space:pre-wrap}.seller-paragraph{padding-bottom:10px;border-bottom:1px solid rgba(215,210,201,.55)}.seller-bullet{position:relative;margin:0 0 9px;padding-left:16px;line-height:1.65}.seller-bullet:before{content:'•';position:absolute;left:2px;color:var(--red)}
@media(max-width:600px){.product-image{aspect-ratio:1/1}.product-title{min-height:38px}.price-sub{min-height:31px}.main-route-photo{aspect-ratio:4/3}}


/* MERGED FROM V19: iPad sizing + tablet icon only */
/* V18 — compact homepage on iPad/desktop; keep local page untouched */
.category-scroll .tablet-icon{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;margin-right:6px;vertical-align:-2px;color:currentColor}
.category-scroll .tablet-icon svg{width:15px;height:15px;display:block;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.category-scroll .tablet-icon svg circle{fill:currentColor;stroke:none}
.category-scroll button[data-catalog="tablet"] .tablet-icon{flex:0 0 15px}

@media (min-width:901px) and (max-width:1400px){
  .hero{min-height:360px}
  .hero-copy{height:360px;padding:30px 38px 24px}
  .hero h1{font-size:56px;letter-spacing:-3.8px;margin:14px 0 9px;max-width:470px}
  .hero .lead{font-size:13px;line-height:1.4;max-width:440px}
  .hero .search-box{left:38px;right:38px;bottom:22px;height:58px}
  .purpose{padding:18px 0 22px}
  .purpose .section-intro{margin-bottom:10px}
  .purpose .section-intro h2{font-size:22px}
  .purpose-grid button{min-height:78px;padding:12px 14px}
  .purpose-grid b{font-size:17px;margin-top:7px}
  .purpose-grid small{font-size:9px;margin-top:3px}
  .search-hub{padding:10px 12px}
  .results{padding-top:28px}
}


/* V19 — iPad landscape sizing + stable tablet icon. Search logic untouched. */
.category-scroll .tablet-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:17px;
  height:17px;
  margin-right:5px;
  flex:0 0 17px;
  vertical-align:-3px;
}
.category-scroll .tablet-icon svg{width:17px;height:17px;display:block;overflow:visible}
.category-scroll .tablet-icon .tablet-shell{fill:#3e4145;stroke:none}
.category-scroll .tablet-icon .tablet-screen{fill:#dfe5e8;stroke:none}
.category-scroll .tablet-icon .tablet-home{fill:#b9c0c4;stroke:none}

@media (min-width:768px) and (max-width:1180px){
  .hero{min-height:320px!important}
  .hero-copy{height:320px!important;padding:24px 32px 20px!important}
  .hero h1{font-size:50px!important;line-height:.92!important;letter-spacing:-3.2px!important;margin:12px 0 7px!important;max-width:450px!important}
  .hero .lead{font-size:12px!important;line-height:1.35!important;max-width:430px!important}
  .hero .search-box{left:32px!important;right:32px!important;bottom:18px!important;height:54px!important}
  .hero .search-box input{font-size:14px!important}
  .hero .search-box button{min-width:150px!important;padding:0 18px!important}
  .purpose{padding:14px 0 18px!important}
  .purpose .section-intro{margin-bottom:8px!important}
  .purpose .section-intro h2{font-size:21px!important}
  .purpose-grid{gap:8px!important}
  .purpose-grid button{min-height:72px!important;padding:10px 12px!important}
  .purpose-grid b{font-size:16px!important;margin-top:5px!important}
  .purpose-grid small{font-size:9px!important;margin-top:2px!important}
  .purpose-grid i{font-size:8px!important}
  .search-hub{padding:8px 10px!important}
  .explore-label{margin-bottom:7px!important}
  .category-scroll{gap:6px!important}
  .category-scroll button{padding:8px 10px!important}
  .hot-scroll{margin-top:7px!important;padding-top:7px!important}
  .results{padding-top:22px!important}
}



/* V28 — compact filter under catalog. */
.market-filter{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.market-filter-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.market-filter-head b{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
.market-filter-head button{border:0;background:none;color:var(--muted);font:inherit;font-size:10px;text-decoration:underline;cursor:pointer;padding:2px 0}
.market-filter-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1.35fr 1fr;gap:6px;align-items:end}
.market-filter-grid label{display:flex;flex-direction:column;gap:3px;min-width:0}
.market-filter-grid label>span{font-size:9px;font-weight:700;letter-spacing:.035em;color:var(--muted)}
.market-filter-grid select,.market-filter-grid input{width:100%;height:34px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:3px;padding:0 8px;font:inherit;font-size:11px;outline:none}
.market-filter-grid select:focus,.market-filter-grid input:focus{border-color:#aaa39a}
.market-filter-grid .price-range{grid-column:auto}.price-range>div{display:grid;grid-template-columns:1fr 10px 1fr;align-items:center;gap:3px}.price-range i{text-align:center;color:var(--muted);font-style:normal;font-size:10px}
.price-presets{display:flex;align-items:center;gap:5px;overflow-x:auto;padding-top:6px;scrollbar-width:none}.price-presets::-webkit-scrollbar{display:none}.price-presets button{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 8px;font:inherit;font-size:9px;color:var(--ink);cursor:pointer}.price-presets .apply-filter{margin-left:auto;background:var(--ink);border-color:var(--ink);color:#fff;padding-left:12px;padding-right:12px}
.results-head{align-items:end}.results-head>div:first-child p{display:none}.results-head .filters{display:none!important}.mode-bar{display:none!important}
@media(max-width:900px){.market-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.market-filter-grid .price-range{grid-column:span 2}.price-presets .apply-filter{margin-left:0}}
@media(max-width:560px){.market-filter{margin-top:8px;padding-top:8px}.market-filter-head{margin-bottom:5px}.market-filter-grid{grid-template-columns:1fr 1fr;gap:5px}.market-filter-grid .price-range{grid-column:span 2}.market-filter-grid select,.market-filter-grid input{height:32px;font-size:10px;padding:0 6px}.price-presets{padding-top:5px;padding-bottom:1px}.price-presets button{padding:5px 7px}.results{padding-top:14px!important}}

/* V29 — working price filter */
.custom-price{display:grid;grid-template-columns:1fr 10px 1fr auto;gap:5px;align-items:center;padding-top:6px}.custom-price input{height:32px;border:1px solid var(--line);border-radius:3px;padding:0 8px;font:inherit;font-size:10px}.custom-price i{font-style:normal;text-align:center;color:var(--muted)}.custom-price .apply-filter{height:32px;border:0;border-radius:3px;background:var(--ink);color:#fff;padding:0 12px;font:inherit;font-size:10px;font-weight:800}.price-presets{display:none!important}@media(max-width:560px){.custom-price{grid-template-columns:1fr 8px 1fr}.custom-price .apply-filter{grid-column:1/-1;width:100%}}

/* V30 — compact one-line price filter + batch result rendering */
.custom-price{display:none!important}.market-filter-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.market-filter-grid label>span{white-space:nowrap}.market-filter-grid select{height:32px;padding:0 7px}@media(max-width:760px){.market-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-filter-grid label:nth-child(4){grid-column:auto}.market-filter-grid select{height:31px}.market-filter{padding-top:7px;margin-top:7px}}

/* v35: stable search rendering — keep old grid in place while a new query resolves */
#resultsSection.searching #productGrid{min-height:420px;contain:layout paint;}
#resultsSection.searching #productGrid{opacity:.72;transition:opacity .12s linear;}
#productGrid{transition:opacity .12s linear;}
#pagination{min-height:52px;}
.scroll-loader,.scroll-end{min-height:44px;display:flex;align-items:center;justify-content:center;}
