[hidden]{display:none!important}
:root{--radius:14px;--tint:#e7efff;--blue-dark:#084ac7}
.filters {display:flex; gap:14px; flex-wrap:wrap; padding-block:10px 20px}
.filters label {display:grid; gap:4px; font-weight:600; font-size:.8rem}
select {padding:9px 12px; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--ink); min-height:44px; max-width:100%}
.results {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px}
.product-card {min-width:0; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--card)}
.product-image,.detail-image {background:white; display:grid; place-items:center; position:relative; overflow:hidden}
.product-image {height:200px; border-bottom:1px solid var(--line)}
.product-image img {width:100%; height:100%; padding:22px; object-fit:contain; position:absolute; inset:0}
.image-fallback {font-size:.75rem; color:var(--muted); padding:24px; text-align:center}
.card-body {padding:22px; display:flex; flex-direction:column; flex:1}
.card-body h3 {margin-bottom:18px}
.card-body .eyebrow {margin-bottom:10px}
.price-caption {font-size:.75rem; color:var(--muted); margin-bottom:2px; margin-top:auto}
.price {font:700 1.55rem/1.35 Georgia,serif; margin-bottom:6px; color:var(--ink)}
.card-body .meta {margin-bottom:18px}
.empty-state {grid-column:1/-1; padding:32px; border:1px dashed var(--line); border-radius:var(--radius); background:var(--card)}
.empty-state p {max-width:650px; color:var(--muted); margin-bottom:0}
.empty-state .button {margin-top:20px}
dialog {width:min(880px,calc(100% - 28px)); max-height:calc(100dvh - 32px); padding:28px; background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:var(--radius); overflow:auto}
dialog::backdrop {background:#14213db3}
.dialog-head {display:flex; align-items:start; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:20px}
.dialog-head h2 {margin:0; max-width:660px}
.close {flex:none; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:var(--paper); color:var(--ink); font-size:1.6rem; line-height:1}
.detail-image {width:150px; height:150px; margin:0 auto 22px; border-radius:12px}
.detail-image img {width:100%; height:100%; object-fit:contain; position:absolute; inset:0; padding:10px}
.offers {display:grid; gap:10px; margin-bottom:32px}
.offer {display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:18px; align-items:center; padding:18px; border:1px solid var(--line); border-radius:12px}
.offer h4 {margin-bottom:4px}
.offer p {margin-bottom:3px}
.offer-price {font-weight:800}
.history-chart {margin:24px 0; padding-block:16px; border-top:1px solid var(--line)}
.history-chart svg {display:block; width:100%; height:auto}
.history-chart svg text {fill:var(--muted); font:11px system-ui,sans-serif}
.history-chart polyline {fill:none; stroke:var(--blue); stroke-width:2.5; vector-effect:non-scaling-stroke}
details {padding-block:14px; border-top:1px solid var(--line)}
summary {cursor:pointer; font-weight:650; min-height:32px}
details p {margin:12px 0 0}
.table-scroll {overflow-x:auto}
table {width:100%; border-collapse:collapse; font-size:.85rem; margin-top:16px}
th,td {padding:10px; text-align:left; border:1px solid var(--line)}
th {background:var(--tint)}


.button {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 18px;border:1px solid #174b78;border-radius:8px;background:#174b78;color:white;font:700 .88rem/1.4 system-ui;cursor:pointer}
.taller .offer a.button {color:white;display:inline-flex}
.search button {background:#e3e7e3;color:#405145;cursor:pointer}
.history-chart polyline {stroke:var(--brand-blue)}
.product-card h3 {font-size:1.1rem;line-height:1.4;margin-top:0}
.product-card .eyebrow {margin-top:0}
.product-card .price {margin-top:0}
.dialog-head h2 {line-height:1.35}
dialog {max-width:calc(100% - 28px)}
@media(max-width:700px){.taller .results{grid-template-columns:1fr}.offer{grid-template-columns:1fr;gap:10px}dialog{padding:18px}.filters{display:grid}.filters select{width:100%}}
