:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#172033;background:#f4f6f8;font-synthesis:none;
  --accent:#ef233c;--accent-dark:#c80f29;--ink:#172033;--muted:#64748b;
  --line:#dbe2ea;--surface:#fff;--soft:#f8fafc;--success:#08733e;--danger:#a51b1b;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#fff 0,#f4f6f8 300px)}
button,input{font:inherit}
button{touch-action:manipulation}
svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.site-head{position:sticky;top:0;z-index:5;border-bottom:1px solid #e5e9ef;background:rgba(255,255,255,.94);backdrop-filter:blur(14px)}
.site-head-inner{width:min(100% - 32px,960px);min-height:76px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand-logo{display:block;width:142px;height:auto;object-fit:contain}
.tool-label{display:flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid #d7dee7;border-radius:11px;background:#f8fafc;color:#334155;font-size:13px;font-weight:750}
.tool-label svg{width:18px;height:18px;color:var(--accent)}
.price-shell{width:min(100% - 32px,900px);margin:auto;padding:42px 0 36px}
.page-intro{max-width:650px;margin-bottom:22px}
.eyebrow,.state-label{display:block;color:var(--accent);font-size:11px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.page-intro h1{margin:7px 0 8px;color:var(--ink);font-size:clamp(29px,4vw,42px);line-height:1.08;letter-spacing:-.035em}
.location-card,.lookup-panel{border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 14px 40px rgba(15,23,42,.07)}
.location-card{padding:20px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px}
.location-main{display:flex;align-items:center;gap:15px;min-width:0}
.location-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:14px;background:#fff0f2;color:var(--accent)}
.location-icon svg{width:25px;height:25px}
.location-copy{min-width:0}
.location-copy h2{margin:4px 0;color:var(--ink);font-size:19px;line-height:1.25}
.location-copy p{max-width:590px;margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.location-copy p:empty{display:none}
.primary-action{display:flex;align-items:center;justify-content:center;gap:9px;min-width:190px;min-height:46px;padding:11px 17px;border:1px solid var(--accent-dark);border-radius:12px;background:var(--accent);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 4px 0 #ad1025;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.primary-action:hover{background:#dc1731}
.primary-action:active{transform:translateY(3px);box-shadow:0 1px 0 #ad1025}
.primary-action:disabled{cursor:wait;background:#94a3b8;border-color:#64748b;box-shadow:0 3px 0 #64748b}
.primary-action svg{width:18px;height:18px}
.location-card.error{border-color:#fecaca;background:#fffafa}
.location-card.error .location-icon{background:#fee2e2;color:var(--danger)}
.location-card.success{border-color:#b9dfc9;background:#fbfffc;box-shadow:none}
.location-card.success .location-icon{background:#e5f7ed;color:var(--success)}
.location-card.success .state-label{color:var(--success)}
.location-card.out-of-range{grid-template-columns:minmax(0,1fr) minmax(220px,310px);align-items:stretch;padding:0;overflow:hidden}
.location-card.out-of-range .location-main{padding:25px 12px 8px 25px;align-items:flex-start}
.location-card.out-of-range .primary-action{align-self:end;margin:0 12px 25px 25px;grid-column:1;width:max-content}
.out-of-range-art{grid-column:2;grid-row:1/3;margin:0;min-height:230px;background:#f1f5f9;border-left:1px solid #e3e8ef}
.out-of-range-art img{display:block;width:100%;height:100%;min-height:230px;max-height:340px;object-fit:contain}
.lookup-panel{margin-top:18px;padding:24px}
.lookup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.lookup-head h2{margin:5px 0 4px;color:var(--ink);font-size:22px;letter-spacing:-.02em}
.lookup-head p{margin:0;color:var(--muted);font-size:13px}
.store-pill{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 10px;flex:none;max-width:310px;padding:10px 13px;border:1px solid #bee0ca;border-radius:12px;background:#f3fbf6;color:#185c37;font-size:12px}
.store-dot{flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:#16a35f;box-shadow:0 0 0 4px #daf5e6}
.store-pill>span:nth-child(2){display:grid;min-width:0}.store-pill b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-pill small{margin-top:2px;color:#527060}
.store-attendant{grid-column:2;color:#185c37;font-size:10px;font-weight:800}
.lookup-form label{display:block;margin-bottom:7px;color:#475569;font-size:12px;font-weight:800}
.search-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}
.search-icon{position:absolute;left:14px;top:50%;display:grid;transform:translateY(-50%);color:#94a3b8;pointer-events:none}
.search-icon svg{width:19px;height:19px}
.lookup-form input{width:100%;min-width:0;min-height:48px;padding:11px 14px 11px 44px;border:1px solid #cbd5e1;border-radius:12px;outline:none;background:#fff;color:#0f172a;font-size:15px}
.lookup-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(239,35,60,.1)}
.lookup-form button{min-width:108px;border:1px solid #111827;border-radius:12px;background:#172033;color:#fff;font-weight:800;cursor:pointer}
.lookup-form button:hover{background:#273449}
.camera-button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:44px;margin-top:10px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#334155;font-weight:750;cursor:pointer}
.camera-button:hover{border-color:var(--accent);color:var(--accent)}
.camera-button svg{width:18px;height:18px}
.camera-wrap{position:relative;margin-top:14px;border-radius:16px;overflow:hidden;background:#111;min-height:250px}
.camera-wrap video{display:block;width:100%;min-height:250px;object-fit:cover}
.scan-frame{position:absolute;inset:24% 10%;border:2px solid #fff;border-radius:12px;box-shadow:0 0 0 999px #0007}
.camera-wrap button{position:absolute;right:12px;bottom:12px;border:0;border-radius:10px;padding:9px 12px;background:#fff;color:#172033;font-weight:800}
.result-head{display:flex;align-items:center;min-height:35px;margin-top:8px;border-bottom:1px solid #edf0f4}
.lookup-status{margin:0;color:#64748b;font-size:12px;font-weight:750}
.results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.product-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
.product-card:hover{border-color:#f09aa5;box-shadow:0 8px 22px rgba(15,23,42,.06)}
.product-thumb{display:grid;place-items:center;width:54px;height:54px;overflow:hidden;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#94a3b8}
.product-thumb img{width:100%;height:100%;object-fit:contain}
.product-thumb svg{width:23px;height:23px}
.product-main{min-width:0}.product-main h3{overflow:hidden;margin:0;color:#172033;font-size:14px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.product-main .meta{overflow:hidden;margin-top:4px;color:#64748b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.product-card .price{color:#e11d35;font-size:17px;font-weight:900;text-align:right;white-space:nowrap}
.product-card .price small{display:block;margin-top:2px;color:#64748b;font-size:9px;font-weight:650}
.stock-pill{grid-column:2/4;width:max-content;max-width:100%;border-radius:999px;padding:5px 9px;background:#e7f7ed;color:var(--success);font-size:10px;font-weight:850}
.stock-pill.low{background:#fff3d7;color:#8b5900}.stock-pill.none{background:#ffebeb;color:var(--danger)}
.empty-result{grid-column:1/-1;padding:28px 18px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;text-align:center}
.empty-result svg{width:28px;height:28px;color:#94a3b8}.empty-result h3{margin:8px 0 4px;font-size:15px}.empty-result p{margin:0;color:#64748b;font-size:12px}
footer{display:flex;align-items:center;justify-content:center;gap:8px;padding:20px 10px 0;color:#64748b;font-size:11px;line-height:1.4;text-align:center}
footer svg{flex:0 0 17px;width:17px;height:17px;color:#16a35f}
@media(max-width:720px){
  .price-shell{width:min(100% - 24px,900px);padding:28px 0}.page-intro{margin-bottom:17px}
  .location-card{grid-template-columns:1fr}.primary-action{width:100%}
  .location-card.out-of-range{grid-template-columns:1fr}.location-card.out-of-range .location-main{padding:20px 20px 6px}
  .location-card.out-of-range .primary-action{grid-column:1;width:calc(100% - 40px);margin:0 20px 20px}
  .out-of-range-art{grid-column:1;grid-row:auto;margin:0 20px;border:1px solid #e3e8ef;border-radius:14px;min-height:180px;overflow:hidden}
  .out-of-range-art img{min-height:180px;max-height:270px}
  .lookup-head{display:grid}.store-pill{max-width:100%}.results{grid-template-columns:1fr}
}
@media(max-width:440px){
  .site-head-inner{width:calc(100% - 24px);min-height:66px}.brand-logo{width:116px}.tool-label{padding:8px}.tool-label span{display:none}
  .price-shell{width:calc(100% - 20px);padding-top:22px}.page-intro h1{font-size:30px}
  .location-card,.lookup-panel{padding:17px;border-radius:15px}.location-main{align-items:flex-start}.location-icon{width:44px;height:44px;flex-basis:44px}
  .location-copy h2{font-size:17px}.lookup-panel{padding:17px}.lookup-head h2{font-size:20px}
  .search-row{grid-template-columns:1fr}.lookup-form button{min-height:46px}.search-icon{top:24px}
  .product-card{grid-template-columns:48px minmax(0,1fr) auto}.product-thumb{width:48px;height:48px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
