/* Compact used-device showcase. Its container, not the entire screen, sets card count. */
.used-showcase{container:used-showcase / inline-size;min-width:0;align-self:start;color:var(--ink,#202127);padding:18px 0 0;touch-action:pan-y}
.used-showcase-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 22px}
.used-showcase-heading h1{font-size:26px;line-height:1.2;letter-spacing:-.6px;margin:0;font-weight:750}
.used-showcase-heading>a{font-size:12px;line-height:1.4;font-weight:700;color:var(--blue,#2945ed);white-space:nowrap;padding:10px 0}
.used-card-grid{--used-columns:1;display:grid;grid-template-columns:repeat(var(--used-columns),minmax(0,1fr));gap:12px;align-items:stretch}
.used-card{min-width:0;border:1px solid #e1e4ed;background:#fff;border-radius:16px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.used-card[hidden],.used-showcase-footer[hidden]{display:none!important}
.used-card:hover{border-color:#c3cbf5;box-shadow:0 4px 16px #20212708}
.used-card-link{height:100%;display:flex;flex-direction:column;text-decoration:none;color:inherit;padding:10px}
.used-card-link:focus-visible{outline:3px solid var(--blue,#2945ed);outline-offset:-4px;border-radius:15px}
.used-card-photo{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f6f7f9;border-radius:11px;height:248px;flex:none}
.used-card-photo img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center center;padding:10px;flex:none}
.used-card-photo img[data-subject-fit]{padding:0;transform-origin:center;transform:translate(var(--photo-fit-x,0),var(--photo-fit-y,0)) scale(var(--photo-fit-scale,1))}
.used-card-info{display:flex;flex-direction:column;flex:1;min-width:0;padding:15px 3px 4px}
.used-card-type{font-size:11px;line-height:1.4;color:#626876;margin:0 0 6px;overflow-wrap:anywhere}
.used-card-info h2{font-size:16px;line-height:1.3;letter-spacing:-.15px;font-weight:700;margin:0 0 7px;min-height:2.6em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.used-card-specs{font-size:12px;line-height:1.5;color:#5f6470;margin:0 0 17px;min-height:3em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.used-card-price{font-size:25px;line-height:1.2;letter-spacing:-.6px;font-weight:750;white-space:nowrap;margin-top:auto;display:flex;align-items:baseline;gap:4px}
.used-card-price small{font-size:16px;font-weight:500;letter-spacing:0}
.used-card-price>span{margin-left:auto;font-size:17px;font-weight:400;color:var(--blue,#2945ed)}
.used-card-store{display:flex;align-items:baseline;gap:6px;font-size:12px;line-height:1.4;color:#286b59;min-height:2.8em;margin:12px 0 0;overflow-wrap:anywhere}
.used-stock-dot{width:6px;height:6px;border-radius:50%;flex:none;background:#168554;align-self:flex-start;margin-top:5px}
.used-showcase-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0 0}
.used-showcase-counter{font-size:12px;color:#626876;font-variant-numeric:tabular-nums}
.used-showcase-arrows{display:flex;gap:8px}
.used-showcase-arrows button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #dfe3ed;border-radius:50%;background:#fff;color:#262d3b;font-size:22px;cursor:pointer}
.used-showcase-arrows button:hover{background:#f1f3fa;border-color:#bcc8f7}
.used-showcase-arrows button:focus-visible,.used-showcase-heading>a:focus-visible{outline:3px solid var(--blue,#2945ed);outline-offset:3px}
.used-showcase-empty{grid-column:1/-1;padding:50px 24px;background:#f4f6fa;border-radius:16px}
.used-showcase-empty h2{font-size:25px;margin:0 0 12px}
.used-showcase-empty p{font-size:14px;margin:0 0 24px}
@container used-showcase (min-width:400px){.used-card-grid{--used-columns:2}}
@container used-showcase (min-width:600px){.used-card-grid{--used-columns:3}}
@container used-showcase (min-width:800px){.used-card-grid{--used-columns:4}}
@container used-showcase (max-width:599px){.used-showcase-heading{align-items:flex-start;flex-wrap:wrap;gap:4px}.used-showcase-heading h1{font-size:23px}.used-card-photo{height:235px}}
/* On tablets the showcase uses the full row with two readable cards. */
@media(min-width:681px) and (max-width:1180px){.home-top{grid-template-columns:minmax(0,1fr)}.home-top>.home-categories{display:none}.home-top>.side-promos{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}.used-card-grid{--used-columns:2}.used-card-photo{height:clamp(240px,32vw,330px)}.used-card-info h2{font-size:16px}}
@media(max-width:680px){.used-showcase{padding-top:10px}.used-card-grid{--used-columns:2;gap:8px}.used-showcase-heading{gap:5px;margin-bottom:12px}.used-showcase-heading h1{font-size:22px}.used-card{border-radius:13px}.used-card-link{padding:7px}.used-card-photo{height:clamp(150px,44vw,220px);border-radius:9px}.used-card-info{padding:12px 3px 4px}.used-card-type{font-size:10px;min-height:2.8em;margin-bottom:5px}.used-card-info h2{font-size:14px;min-height:2.6em}.used-card-specs{font-size:11px;min-height:3em;margin-bottom:12px}.used-card-store{font-size:11px;min-height:2.8em;margin-top:10px}.used-card-price{font-size:22px;gap:3px}.used-card-price small{font-size:13px}.used-card-price>span{font-size:14px}.used-showcase-footer{padding-top:12px}}
@media(max-width:360px){.used-card-price{font-size:20px}.used-card-price small{font-size:12px}.used-card-info h2{font-size:13px}}
@media(pointer:coarse){.used-showcase-arrows button{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.used-card{transition:none}}
