.finds { --ink:#17242e; --muted:#52636c; --edge:#dbe3e5; --accent:#0a6359; color:var(--ink); }
.finds,.finds * { box-sizing:border-box; }
.finds-shell,.finds-admin { width:min(100%,1200px); margin:auto; padding:clamp(20px,4vw,56px); }
.finds-admin { flex:1; min-width:0; align-self:flex-start; }
.finds-header,.finds-tools,.finds-pages,.finds-table-item { display:flex; align-items:center; gap:14px; }
.finds-header { justify-content:space-between; }
.finds-header { flex-wrap:wrap; margin:0 0 24px; }
.finds-header h1,.finds-header h2,.finds-detail h2,.finds-empty h2 { margin:0; color:var(--ink); font-weight:750; letter-spacing:-.035em; line-height:1.12; }
.finds-header h1 { font-size:clamp(2rem,4vw,3rem); }
.finds-header h2,.finds-detail h2 { font-size:clamp(1.5rem,2.6vw,2.1rem); }
.finds-header p,.finds-empty p,.finds-form fieldset p { margin:.5rem 0 0; color:var(--muted); }
.finds-back,.finds-tools a:not(.finds-btn),.finds-pages a,.finds-tablewrap a,.finds-empty a { color:var(--accent); font-weight:650; text-decoration:underline; text-underline-offset:.22em; }
.finds-back { display:inline-block; margin-bottom:18px; }
.finds-carousel,.finds-form,.finds-tablewrap,.finds-filters,.finds-empty { border:1px solid var(--edge); border-radius:18px; background:#fff; }
.finds-carousel { padding:clamp(12px,1.4vw,18px); margin:0 0 24px; min-width:0; }
.finds-tools { flex-wrap:wrap; gap:10px; }
.finds-tools [hidden] { display:none; }
.finds-tools button:not(.finds-btn),.finds-close { width:44px; height:44px; border:1px solid var(--edge); border-radius:50%; background:#fff; font-size:21px; color:var(--ink); }
.finds-tools button:disabled { opacity:.42; }
.finds-grid { display:grid; gap:clamp(10px,1.5vw,18px); grid-template-columns:repeat(auto-fill,minmax(min(100%,215px),1fr)); }
@media(max-width:600px) {
    .finds-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.finds-track { display:grid; grid-auto-flow:column; grid-auto-columns:clamp(248px,calc((100% - 20px)/3),420px); gap:10px; overflow-x:auto; scroll-snap-type:x proximity; padding:3px; scrollbar-width:thin; }
.finds-card { display:flex; flex-direction:column; min-width:0; scroll-snap-align:start; border:1px solid var(--edge); border-radius:15px; background:#fff; }
.finds-open { flex:1; width:100%; display:flex; flex-direction:column; background:#fff; text-align:left; border-radius:14px 14px 0 0; overflow:hidden; }
.finds-card:hover { border-color:#6e968d; box-shadow:0 5px 16px #1c403d12; }
.finds :where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid #167e89; outline-offset:2px; }
.finds-cover { display:block; width:100%; aspect-ratio:4/3; background:#f4f6f4; border-bottom:1px solid var(--edge); }
.finds-cover img,.finds-main-photo,.finds-thumbs img,.finds-edit-photos img,.finds-table-item img { width:100%; height:100%; object-fit:contain; }
.finds-card-body { flex:1; width:100%; display:flex; flex-direction:column; gap:8px; padding:16px; }
.finds-category { color:var(--accent); font-size:.79rem; font-weight:700; overflow-wrap:anywhere; }
.finds-name { color:var(--ink); font-size:1.08rem; line-height:1.3; overflow-wrap:anywhere; }
.finds-prices { display:flex; flex-wrap:wrap; align-items:baseline; gap:.35em .65em; }
.finds-prices strong { font-size:1.14rem; color:var(--accent); }
.finds-prices del,.finds-detail-copy small,.finds-count { color:var(--muted); font-size:.88rem; }
.finds-grid .finds-open { border-radius:inherit; }
.finds-grid .finds-cover { position:relative; flex:none; background:#fff; }
.finds-grid .finds-cover img { position:absolute; inset:0; padding:clamp(6px,1vw,12px); }
.finds-grid .finds-card-body { gap:8px; padding:clamp(10px,1.3vw,16px); }
.finds-grid .finds-name {
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
    font-size:clamp(.9375rem,1.4vw,1.0625rem); line-height:1.3;
}
.finds-grid .finds-prices { margin-top:auto; gap:2px 6px; color:var(--muted); font-size:.8125rem; }
.finds-grid .finds-prices strong { white-space:nowrap; }
.finds-dialog,.finds-history-layer {
    position:fixed; inset:0; width:min(1040px,calc(100% - 24px)); max-width:none;
    height:85vh; height:85dvh; max-height:none; margin:auto; padding:0; overflow:hidden;
    color:var(--ink); border:0; border-radius:16px; background:#fff;
}
.finds-dialog [data-find-detail] { height:100%; overflow:auto; overscroll-behavior:contain; }
.finds-dialog::backdrop { background:rgba(13,25,33,.74); }
.finds-close { position:absolute; right:12px; top:12px; z-index:1; font-size:26px; line-height:1; box-shadow:0 2px 8px #15262d22; }
.finds-detail { display:grid; grid-template-columns:1fr 1fr; }
.finds-gallery { display:flex; flex-direction:column; justify-content:center; gap:12px; min-width:0; padding:20px; background:#f2f5f3; }
.finds-main-photo { height:auto; aspect-ratio:1; }
.finds-thumbs,.finds-edit-photos { display:flex; flex-wrap:wrap; gap:8px; }
.finds-thumbs a { display:block; width:44px; height:44px; background:#fff; border:2px solid transparent; border-radius:7px; overflow:hidden; }
.finds-thumbs a[aria-current=true] { border-color:var(--accent); }
.finds-product .finds-detail { margin-top:16px; border:1px solid var(--edge); border-radius:16px; overflow:hidden; background:#fff; }
.finds-product h1 { font-size:clamp(1.7rem,4vw,2.8rem); line-height:1.12; font-weight:750; }
.finds-product .finds-main-photo { aspect-ratio:4/3; height:auto; }
.finds-product :is(.finds-overview,.finds-purchase) { display:contents; }
.finds-detail-copy { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:16px; padding:52px clamp(20px,3vw,36px) 32px; overflow-wrap:anywhere; }
.finds-description { white-space:pre-line; color:#3a4a54; }
.finds-btn { display:inline-flex; justify-content:center; align-items:center; gap:.65em; min-height:44px; padding:9px 18px; background:var(--accent); color:white; border-radius:9px; font-weight:650; text-decoration:none; }
.finds-btn:hover { background:#084c45; }
.finds-count,.finds-pages { margin:20px 0; }
.finds-pages { justify-content:center; flex-wrap:wrap; }
.finds-filters { display:grid; gap:12px; align-items:end; grid-template-columns:2fr 1fr 1fr auto; padding:16px; }
.finds-form label,.finds-filters label { display:grid; gap:6px; font-size:.9rem; font-weight:650; min-width:0; }
.finds :is(input:not([type=checkbox]),select,textarea) { width:100%; min-height:44px; padding:9px 11px; border:1px solid #bac8cd; border-radius:8px; background:#fff; color:var(--ink); font:inherit; }
.finds-empty,.finds-form,.finds-delete { padding:clamp(16px,3vw,28px); margin-top:16px; }
.finds-form { max-width:800px; display:grid; gap:18px; }
.finds-form fieldset { display:grid; gap:12px; padding:14px; min-width:0; border:1px solid var(--edge); border-radius:8px; }
.finds-form legend { font-weight:700; padding:0 6px; }
.finds-pair { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.finds-edit-photos label,.finds-edit-photos figure { width:92px; margin:0; }
.finds-edit-photos figcaption { color:var(--muted); font-size:.8rem; }
.finds-edit-photos img { height:76px; background:#f3f6f4; }
.finds-delete { color:#8a2430; max-width:800px; }
.finds-delete summary { cursor:pointer; font-weight:650; }
.finds-delete button { margin-top:12px; text-decoration:underline; font-weight:650; }
.finds-tablewrap { margin:20px 0; overflow:auto; }
.finds-tablewrap table { width:100%; border-collapse:collapse; }
.finds-tablewrap th,.finds-tablewrap td { padding:14px; border-bottom:1px solid var(--edge); text-align:left; }
.finds-tablewrap th { font-size:.84rem; color:var(--muted); }
.finds-table-item img { width:54px; height:54px; flex:none; background:#f3f6f4; border-radius:7px; }
.finds-table-item small { display:block; color:var(--muted); }
.finds-error,.finds-notice { padding:12px 14px; margin:12px 0; border-radius:8px; }
.finds-error { background:#fff0f1; color:#851c30; }
.finds-notice { background:#e9f6ee; color:#185639; }
@media(min-width:960px) {
    .finds-admin .finds-filters { grid-template-columns:2fr 1fr 1fr 1fr auto; }
}
@media(max-width:720px) {
    .finds-filters { grid-template-columns:1fr 1fr; }
    .finds-filters label:first-child,.finds-filters .finds-btn { grid-column:1/-1; }
    .finds-detail { grid-template-columns:1fr; }
    .finds-main-photo { max-height:31vh; aspect-ratio:4/3; }
    .finds-detail-copy { padding:20px; gap:12px; }
    .finds-track { grid-auto-columns:min(88%,320px); }
    .finds-pair { grid-template-columns:1fr; }
}

.finds-history-link { display:block; padding:10px 14px; border-top:1px solid var(--edge); color:var(--accent); font-weight:650; text-decoration:underline; text-underline-offset:3px; }
.finds-history { margin:16px 0; min-width:0; }
.finds-history summary,.finds-history button { cursor:pointer; color:var(--accent); font-weight:650; }
.finds-history [hidden] { display:none; }
.finds-history [data-history-status] { font-weight:650; margin:.65rem 0; }
.finds-history svg { width:100%; height:auto; display:block; background:#f4f8f7; border-radius:8px; }
.finds-history .finds-guide { stroke:#d6e4e1; }
.finds-history .finds-trend,.finds-history .finds-range { fill:none; stroke:#13756b; stroke-width:2; }
.finds-dot { fill:#12675f; }
.finds-low { fill:#9f420e; stroke:white; stroke-width:1; }
.finds-history-axis { display:flex; justify-content:space-between; font-size:.85rem; color:var(--muted); }
.finds-history-axis span:only-child { margin-inline:auto; }
.finds-history ul { padding:0; max-height:15rem; overflow:auto; margin:.75rem 0; }
.finds-history li { padding:.4rem 0; border-bottom:1px solid var(--edge); }
.finds-min-badge { display:inline-block; padding:1px 6px; border-radius:4px; background:#fff0d7; color:#783407; font-size:.85rem; }

.finds-dialog .finds-detail { --space:clamp(16px,3vw,32px); display:flex; flex-direction:column; min-height:100%; }
.finds-dialog .finds-gallery {
    position:relative; flex:1 0 auto; align-items:center; gap:8px; padding:12px var(--space);
    border-bottom:1px solid var(--edge); background:#fff;
}
.finds-dialog .finds-main-photo { width:100%; height:clamp(160px,33vh,360px); max-height:none; aspect-ratio:auto; }
.finds-dialog .finds-thumbs { justify-content:center; gap:4px; }
.finds-dialog .finds-thumbs a { border:1px solid var(--edge); }
.finds-dialog .finds-thumbs a[aria-current=true] { border:2px solid var(--accent); }
.finds-dialog .finds-detail-copy {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(205px,28%); gap:var(--space);
    align-items:start; padding:22px var(--space);
}
.finds-dialog .finds-overview,.finds-dialog .finds-purchase { display:grid; align-content:start; gap:8px; min-width:0; }
.finds-dialog .finds-overview h2 { font-size:clamp(1.2rem,2vw,1.55rem); line-height:1.19; }
.finds-dialog .finds-description { margin:0; font-size:1rem; line-height:1.5; }
.finds-dialog .finds-purchase { border-left:1px solid var(--edge); padding-left:var(--space); }
.finds-dialog .finds-prices { flex-direction:column; gap:0; }
.finds-dialog .finds-prices strong { font-size:1.2rem; line-height:1.3; }
.finds-dialog .finds-purchase small { font-size:.8125rem; line-height:1.4; }
.finds-dialog .finds-purchase .finds-btn { width:100%; }
.finds-dialog .finds-purchase .finds-back { margin:0; width:fit-content; font-size:.875rem; }
.finds-history-trigger {
    display:flex; justify-content:space-between; align-items:center; width:100%; gap:12px;
    padding:14px var(--space); border-top:1px solid var(--edge); color:var(--accent);
    background:#fff; text-align:left; font-weight:650; cursor:pointer;
}
.finds-history-trigger:hover { background:#f4f8f7; }
.finds-history-layer { background:rgb(16 32 39 / 40%); }
.finds-history-layer::backdrop { background:transparent; }
.finds-history-drawer {
    display:flex; flex-direction:column; width:85%; height:100%; margin-left:auto;
    background:#fff; box-shadow:-8px 0 28px #162b331a;
}
@media(prefers-reduced-motion:no-preference) {
    .finds-dialog::backdrop,.finds-history-layer { transition:background-color .36s ease; }
    .finds-dialog[data-motion-closing]::backdrop,.finds-history-layer[data-motion-closing] { background-color:transparent; }
    @starting-style {
        .finds-dialog[open]::backdrop,.finds-history-layer[open] { background-color:transparent; }
    }
}
.finds-history-header {
    display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex:none;
    padding:clamp(12px,2vw,24px); border-bottom:1px solid var(--edge);
}
.finds-history-header h3 { margin:0; font-size:clamp(1.1rem,2vw,1.5rem); font-weight:750; line-height:1.2; }
.finds-history-header p { margin:4px 0 0; font-size:.875rem; line-height:1.35; color:var(--muted); overflow-wrap:anywhere; }
.finds-history-header .finds-close { position:static; flex:none; }
.finds-history-body { flex:1; margin:0; overflow:auto; overscroll-behavior:contain; padding:clamp(12px,2vw,24px); }
.finds-history-body [data-history-status] { margin:0 0 12px; color:var(--accent); }
.finds-history-body svg { height:144px; }
.finds-axis-price { fill:var(--muted); font-size:11px; }
.finds-history-body small { color:var(--muted); line-height:1.4; }
.finds-product .finds-history { align-self:stretch; }
.finds-history-table { overflow-x:auto; margin:16px 0 4px; }
.finds-history-table table { width:100%; border-collapse:collapse; font-size:.875rem; font-variant-numeric:tabular-nums; }
.finds-history-table caption { text-align:left; font-size:1rem; font-weight:700; padding-bottom:8px; }
.finds-history-table :is(th,td) { text-align:right; padding:8px clamp(3px,1vw,12px); border-bottom:1px solid var(--edge); white-space:nowrap; }
.finds-history-table th:first-child { text-align:left; }
.finds-history-table thead th { color:var(--muted); background:#f4f8f7; }
.finds-history-year::before { content:"/"; }
.finds-min-price { color:var(--accent); font-weight:700; }
.finds-history-table .finds-min-badge { display:block; width:fit-content; margin-top:3px; font-size:.7rem; }
.finds-history-body button { min-height:44px; }
@media(min-width:721px) {
    .finds-dialog .finds-gallery { padding-inline:132px; }
    .finds-dialog .finds-thumbs { position:absolute; left:var(--space); display:grid; grid-template-columns:repeat(2,44px); }
}
@media(max-width:720px) {
    .finds-dialog .finds-main-photo { height:clamp(140px,24vh,220px); }
    .finds-history-table table { font-size:.8rem; }
    .finds-history-table :is(th,td) { padding-inline:3px; }
    .finds-dialog .finds-detail-copy { grid-template-columns:1fr; gap:16px; padding:16px var(--space); }
    .finds-dialog .finds-purchase { border:0; padding:0; }
    .finds-dialog .finds-prices { flex-direction:row; gap:.5em; }
}
@media(max-width:480px) {
    .finds-history-year { display:block; font-weight:400; color:var(--muted); }
    .finds-history-year::before { content:none; }
    .finds-history-table .finds-min-badge { max-width:6.5em; padding-inline:3px; white-space:normal; }
}
@media(max-width:360px) {
    .finds-history-table :is(th,td) { padding-inline:1px; }
}

/* Dashboard: miniatura ao lado do resumo. O modal usa o layout completo. */
.finds-carousel > .finds-header { margin:0 0 8px; gap:4px 12px; }
.finds-carousel > .finds-header h2 { font-size:1.25rem; letter-spacing:-.02em; }
.finds-carousel .finds-tools { gap:6px; }
.finds-carousel .finds-tools a { display:inline-flex; align-items:center; gap:3px; min-height:36px; font-size:.875rem; }
.finds-carousel .finds-tools button { width:36px; height:36px; font-size:1rem; }
.finds-track .finds-card { --photo:64px; --inset:10px; --gap:10px; border-radius:10px; }
.finds-track .finds-open {
    display:grid; grid-template-columns:var(--photo) minmax(0,1fr); gap:var(--gap); align-items:center;
    padding:var(--inset) var(--inset) 0; border-radius:9px 9px 0 0;
}
.finds-track .finds-cover { width:var(--photo); height:var(--photo); aspect-ratio:1; border:0; border-radius:6px; overflow:hidden; }
.finds-track .finds-card-body { padding:0; gap:4px; }
.finds-track .finds-name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:.9375rem; line-height:1.3; }
.finds-track .finds-prices { font-size:.875rem; line-height:1.35; }
.finds-track .finds-prices strong { font-size:inherit; }
.finds-track .finds-history-link {
    align-self:flex-start; margin-left:calc(var(--inset) + var(--photo) + var(--gap));
    padding:3px 0 6px; min-height:27px; border:0; font-size:.8125rem; font-weight:550;
}

/* Na home a foto lidera o card, com parte do próximo card visível em telas pequenas. */
.home-achadinhos > .section-heading { margin-bottom:20px; color:#f5f6f7; }
.home-achadinhos .finds-tools a { color:#f5f6f7; min-height:44px; display:inline-flex; align-items:center; }
.home-achadinhos .finds-track { grid-auto-columns:clamp(164px,22%,260px); gap:14px; scroll-padding-inline:3px; }
.home-achadinhos .finds-open { display:flex; padding:0; gap:0; border-radius:inherit; }
.home-achadinhos .finds-cover { position:relative; width:100%; height:auto; flex:none; aspect-ratio:4/3; border-radius:0; background:#fff; }
.home-achadinhos .finds-cover img { position:absolute; inset:0; padding:8px; }
.home-achadinhos .finds-card-body { width:100%; padding:12px; gap:8px; border-top:1px solid var(--edge); }
.home-achadinhos .finds-prices { margin-top:auto; color:var(--muted); }
.home-achadinhos .finds-prices strong { white-space:nowrap; color:var(--accent); font-size:1rem; }
